Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Example 1 and Appendix A / LP (72): depolarizing finite-blocklength cost

Open
QAlgorithms.Papers.Independent.Intakethird100.P65.depolarizing_block_lp

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

All systems have finite positive dimension and fixed computational bases. Matrix order is Loewner order and logarithms are base two.

Let d≥1d\ge1d≥1, 0≤p≤10\le p\le10≤p≤1, ε≥0\varepsilon\ge0ε≥0, and n≥0n\ge0n≥0. For k=0,…,nk=0,\ldots,nk=0,…,n put q1=d(1−p)+p/dq_1=d(1-p)+p/dq1​=d(1−p)+p/d, q2=p/dq_2=p/dq2​=p/d, pk=q1kq2n−kp_k=q_1^kq_2^{n-k}pk​=q1k​q2n−k​, and wk=(nk)(1/d)k(d−1/d)n−kw_k=\binom nk(1/d)^k(d-1/d)^{n-k}wk​=(kn​)(1/d)k(d−1/d)n−k. Minimize dnsd^nsdns over real s,yk,rks,y_k,r_ks,yk​,rk​ subject to yk−rk+pk≥0y_k-r_k+p_k\ge0yk​−rk​+pk​≥0, yk≥0y_k\ge0yk​≥0, 0≤rk≤s0\le r_k\le s0≤rk​≤s, ∑kwkrk=1\sum_kw_kr_k=1∑k​wk​rk​=1, and ∑kwkyk≤ε\sum_kw_ky_k\le\varepsilon∑k​wk​yk​≤ε; denote its infimum by ttt. Then

SNS,ε(1)(Dp⊗n)=log⁡2⌈t⌉.S_{\rm NS,\varepsilon}^{(1)}(\mathcal D_p^{\otimes n})=\log_2\lceil\sqrt t\rceil.SNS,ε(1)​(Dp⊗n​)=log2​⌈t​⌉.

An optimal solution of the channel SDP exists with J=∑krkPknJ=\sum_kr_kP_k^nJ=∑k​rk​Pkn​, Y=∑kykPknY=\sum_ky_kP_k^nY=∑k​yk​Pkn​, and V=sIdnV=sI_{d^n}V=sIdn​, attaining the trace objective dnsd^nsdns. Here PknP_k^nPkn​ sums all products with exactly kkk normalized maximally entangled projectors and n−kn-kn−k orthogonal complements. Empty products and 000^000 equal one, retaining the scalar boundaries.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P65
Formal statement
noncomputable section

open Filter QAlgorithms

open scoped BigOperators Matrix ComplexConjugate ComplexOrder Topology

namespace QAlgorithms.Papers.Independent.Intakethird100.P65

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Dependency50.P09 (transposeBob)

open QAlgorithms.Papers.Independent.Dependency50.P35 (maxRelative)

open QAlgorithms.Papers.Independent.Independent2.P01 (dampingKraus damping)

open QAlgorithms.Papers.Independent.Gap48.P33 (phaseFlipChannel)

open QAlgorithms.Papers.Independent.Information100.P06 (Below)

open QAlgorithms.Papers.Independent.Information100.P34 (choi)

open QAlgorithms.Papers.Independent.Information100.P62 (Stochastic)

open QAlgorithms.Papers.Independent.Information100.P63 (Mat)

open QAlgorithms.Papers.Independent.Information100.P67 (IsSubnormalized purifiedDistance)

open QAlgorithms.Papers.Independent.Information100.P69 (replacer permute)

open QAlgorithms.Papers.Independent.Information100.P71 (diamond channelPower channelRelative)

open QAlgorithms.Papers.Independent.Support50.P39 (quantumMutualInformation)

variable {A B C D R : Type} [Fintype A] [DecidableEq A]
  [Fintype B] [DecidableEq B] [Fintype C] [DecidableEq C]
  [Fintype D] [DecidableEq D] [Fintype R] [DecidableEq R]

variable [Nonempty A] [Nonempty B] [Nonempty C] [Nonempty D] [Nonempty R]

/-- Example 1 and Appendix A, Eqs.(71)--(72), PDF pp.13,18: finite-blocklength
LP and an attained SDP optimum of the symmetric form. n=0 and d=1 are meaningful
with the usual empty-product and 0^0=1 conventions. -/
theorem depolarizing_block_lp (p e : ℝ) (h0 : 0 ≤ p) (h1 : p ≤ 1) (he : 0 ≤ e) (n : ℕ) :
    oneUseSimulationCost .ns (channelPower (basisDepolarizing A p) n) e =
      roundedTraceCost (depolarizingValue (Fintype.card A) n p e) ∧
    ∃ s : ℝ, ∃ y r : Fin (n+1) → ℝ,
      depolarizingFeasible (Fintype.card A) n p e s y r ∧
      traceFeasible (channelPower (basisDepolarizing A p) n) e
        (sectorMatrix A n y) (sectorMatrix A n r) ((s : ℂ) • (1 : Mat (Fin n → A))) ∧
      (Fintype.card A : ℝ)^n * s = traceValue (channelPower (basisDepolarizing A p) n) e := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P65

end
Source
Quantum Channel Simulation and the Channel's Smooth Max-Information, arXiv:1807.05354v2, PDF p. 18, Example 1 and Appendix A / LP (72): depolarizing finite-blocklength cost
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For a finite type AAA with decidable equality, real numbers 0≤p≤10\le p\le10≤p≤1 and e≥0e\ge0e≥0, and every natural nnn, put d=∣A∣d=|A|d=∣A∣, Dp(X)=(1−p)X+(p/d)tr⁡(X)IA\mathcal D_p(X)=(1-p)X+(p/d)\operatorname{tr}(X)I_ADp​(X)=(1−p)X+(p/d)tr(X)IA​, and H=Dp⊗nH=\mathcal D_p^{\otimes n}H=Dp⊗n​, where tensor powers are defined by products of matrix-unit entries. Define

wk=(nk)d−k(d−d−1)n−k,ak=(d(1−p)+p/d)k(p/d)n−k.w_k=\binom nk d^{-k}(d-d^{-1})^{n-k},\qquad a_k=\bigl(d(1-p)+p/d\bigr)^k(p/d)^{n-k}.wk​=(kn​)d−k(d−d−1)n−k,ak​=(d(1−p)+p/d)k(p/d)n−k.

Let vvv be the real infimum of dnsd^nsdns over real sss and vectors y,r∈Rn+1y,r\in\mathbb R^{n+1}y,r∈Rn+1 satisfying, for every 0≤k≤n0\le k\le n0≤k≤n,

0≤yk−rk+ak,yk≥0,0≤rk≤s,∑k=0nwkrk=1,∑k=0nwkyk≤e.0\le y_k-r_k+a_k,\quad y_k\ge0,\quad 0\le r_k\le s,\qquad \sum_{k=0}^nw_kr_k=1,\quad \sum_{k=0}^nw_ky_k\le e.0≤yk​−rk​+ak​,yk​≥0,0≤rk​≤s,k=0∑n​wk​rk​=1,k=0∑n​wk​yk​≤e.

Then cns(H,e)=log⁡2⌈v⌉c_{\mathrm{ns}}(H,e)=\log_2\lceil\sqrt v\rceilcns​(H,e)=log2​⌈v​⌉. Moreover, there exist s,y,rs,y,rs,y,r satisfying these constraints for which Y=∑kykPkY=\sum_ky_kP_kY=∑k​yk​Pk​, J=∑krkPkJ=\sum_kr_kP_kJ=∑k​rk​Pk​, and V=sIAnV=sI_{A^n}V=sIAn​ satisfy V=V†V=V^\daggerV=V†, Y,J⪰0Y,J\succeq0Y,J⪰0, Tr⁡BnY⪯eIAn\operatorname{Tr}_{B^n}Y\preceq eI_{A^n}TrBn​Y⪯eIAn​, J−JH⪯YJ-J_H\preceq YJ−JH​⪯Y, Tr⁡BnJ=IAn\operatorname{Tr}_{B^n}J=I_{A^n}TrBn​J=IAn​, and J⪯IAn⊗VJ\preceq I_{A^n}\otimes VJ⪯IAn​⊗V, and dnsd^nsdns equals the real infimum of Re⁡tr⁡V′\operatorname{Re}\operatorname{tr}V'RetrV′ over all triples Y′,J′,V′Y',J',V'Y′,J′,V′ satisfying those same matrix constraints. Here JH((a,b),(a′,b′))=H(∣a⟩⟨a′∣)b,b′J_H((a,b),(a',b'))=H(|a\rangle\langle a'|)_{b,b'}JH​((a,b),(a′,b′))=H(∣a⟩⟨a′∣)b,b′​; PkP_kPk​ is the sum over all kkk-element subsets S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1} of ⨂iQi\bigotimes_i Q_i⨂i​Qi​, with Qi=ΦAQ_i=\Phi_AQi​=ΦA​ for i∈Si\in Si∈S and Qi=I−ΦAQ_i=I-\Phi_AQi​=I−ΦA​ otherwise, where ΦA((a,b),(a′,b′))=d−1\Phi_A((a,b),(a',b'))=d^{-1}ΦA​((a,b),(a′,b′))=d−1 if a=ba=ba=b and a′=b′a'=b'a′=b′, and is 000 otherwise. The cost cns(H,e)c_{\mathrm{ns}}(H,e)cns​(H,e) is the infimum of log⁡2m\log_2mlog2​m over positive integers mmm whose infimum error using the mmm-dimensional identity channel is at most eee: the error is inf⁡P∥Wm(P)−H∥⋄/2\inf_P\|\mathcal W_m(P)-H\|_\diamond/2infP​∥Wm​(P)−H∥⋄​/2, where PPP is a channel with each output marginal determined only by its corresponding input marginal and Wm(P)(X)b,d=∑a,c<mP(X⊗∣a⟩⟨c∣)(a,b),(c,d)\mathcal W_m(P)(X)_{b,d}=\sum_{a,c<m}P(X\otimes|a\rangle\langle c|)_{(a,b),(c,d)}Wm​(P)(X)b,d​=∑a,c<m​P(X⊗∣a⟩⟨c∣)(a,b),(c,d)​. Channels are finite normalized Kraus maps, and ∥F∥⋄=sup⁡∥X∥1≤1∥(idAn⊗F)(X)∥1\|F\|_\diamond=\sup_{\|X\|_1\le1}\|(\mathrm{id}_{A^n}\otimes F)(X)\|_1∥F∥⋄​=sup∥X∥1​≤1​∥(idAn​⊗F)(X)∥1​, over arbitrary matrices on An×AnA^n\times A^nAn×An, with ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The assertion includes n=0n=0n=0, where the string register is a singleton, empty tensor products equal 111, and the scalar constraints force r0=1r_0=1r0​=1 and s≥1s\ge1s≥1. No upper bound on eee or displayed nonemptiness condition on AAA is imposed; division by zero is 000, real infima default to 000 when empty or unbounded below, and the rounding uses the natural-number ceiling with log⁡20=0\log_2 0=0log2​0=0.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me