Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Example 2 / Eqs.(59)–(61): depolarizing zero-error cost

Open
QAlgorithms.Papers.Independent.Intakethird100.P65.depolarizing_zeroError

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 be the dimension of a system and 0≤p≤10\le p\le10≤p≤1. Extend the depolarizing channel linearly by Dp(X)=(1−p)X+pTr⁡(X)Id/d\mathcal D_p(X)=(1-p)X+p\operatorname{Tr}(X)I_d/dDp​(X)=(1−p)X+pTr(X)Id​/d. Its regularized zero-error NS simulation cost is

SNS,0(Dp)=12log⁡2(d2(1−p)+p).S_{\rm NS,0}(\mathcal D_p)=\tfrac12\log_2(d^2(1-p)+p).SNS,0​(Dp​)=21​log2​(d2(1−p)+p).

This is not the rounded one-shot cost. It equals log⁡2d\log_2dlog2​d at p=0p=0p=0 and zero at p=1p=1p=1 or d=1d=1d=1.

The explicit matrices V=(d(1−p)+p/d)IV=(d(1-p)+p/d)IV=(d(1−p)+p/d)I and X=∑i,j∣ii⟩⟨jj∣X=\sum_{i,j}|ii\rangle\langle jj|X=∑i,j​∣ii⟩⟨jj∣ satisfy the primal and dual constraints in Eqs.(57),(58), and both objective values equal the independently defined minimum t0(Dp)t_0(\mathcal D_p)t0​(Dp​). Thus both displayed witnesses in Eq.(59) are optimal.

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 2, Eqs.(59)--(61), PDF pp.13--14: noise probability p in [0,1],
including d=1. This is the regularized zero-error cost. The explicit primal and
dual optimizers in Eq.(59) are retained with their common optimal objective. -/
theorem depolarizing_zeroError (p : ℝ) (h0 : 0 ≤ p) (h1 : p ≤ 1) :
    zeroErrorCost (basisDepolarizing A p) =
      Real.logb 2 ((Fintype.card A : ℝ)^2 * (1-p) + p) / 2 ∧
    ZeroErrorWitnessPair (basisDepolarizing A p) (depolarizingPrimalWitness A p)
      (choi (fun X : Mat A => X)) := 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. 14, Example 2 / Eqs.(59)–(61): depolarizing zero-error cost
Read-back

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

For a finite type AAA with decidable equality and every real ppp satisfying 0≤p≤10\le p\le10≤p≤1, put d=∣A∣d=|A|d=∣A∣ and define

N(Y)=(1−p)Y+p tr⁡YdIA.N(Y)=(1-p)Y+\frac{p\,\operatorname{tr}Y}{d}I_A.N(Y)=(1−p)Y+dptrY​IA​.

The theorem asserts

C0(N)=12log⁡2 ⁣(d2(1−p)+p)C_0(N)=\frac12\log_2\!\left(d^2(1-p)+p\right)C0​(N)=21​log2​(d2(1−p)+p)

and the matrix certificate specified below. Here C0(N)C_0(N)C0​(N) is defined as follows, including its nested infima: a channel is any map admitting a finite representation Y↦∑jKjYKj†Y\mapsto\sum_jK_jYK_j^\daggerY↦∑j​Kj​YKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I; for each natural number nnn, let N[n]N^{[n]}N[n] act on matrix units by

N[n](Exx′)(y,y′)=∏i=0n−1N(Exixi′)(yi,yi′),x,x′,y,y′∈An.N^{[n]}(E_{xx'})(y,y')=\prod_{i=0}^{n-1}N(E_{x_i x'_i})(y_i,y'_i), \qquad x,x',y,y'\in A^n.N[n](Exx′​)(y,y′)=i=0∏n−1​N(Exi​xi′​​)(yi​,yi′​),x,x′,y,y′∈An.

For each positive integer mmm, consider channels PPP from matrices on An×{0,…,m−1}A^n\times\{0,\ldots,m-1\}An×{0,…,m−1} to matrices on {0,…,m−1}×An\{0,\ldots,m-1\}\times A^n{0,…,m−1}×An for which there exist channels F:An→{0,…,m−1}F:A^n\to\{0,\ldots,m-1\}F:An→{0,…,m−1} and G:{0,…,m−1}→AnG:\{0,\ldots,m-1\}\to A^nG:{0,…,m−1}→An satisfying, for every input matrix YYY,

tr⁡An(P(Y))=F(tr⁡{0,…,m−1}Y),tr⁡{0,…,m−1}(P(Y))=G(tr⁡AnY).\operatorname{tr}_{A^n}(P(Y))=F(\operatorname{tr}_{\{0,\ldots,m-1\}}Y), \qquad \operatorname{tr}_{\{0,\ldots,m-1\}}(P(Y))=G(\operatorname{tr}_{A^n}Y).trAn​(P(Y))=F(tr{0,…,m−1}​Y),tr{0,…,m−1}​(P(Y))=G(trAn​Y).

Such a PPP, wired to the identity map on the mmm-dimensional register, induces

WP(Y)(b,b′)=∑u,v=0m−1P(Y⊗Euv)((u,b),(v,b′)).W_P(Y)(b,b')=\sum_{u,v=0}^{m-1}P(Y\otimes E_{uv})((u,b),(v,b')).WP​(Y)(b,b′)=u,v=0∑m−1​P(Y⊗Euv​)((u,b),(v,b′)).

Let en(m)e_n(m)en​(m) be the infimum over these PPP of

12sup⁡∥Z∥1≤1∥(id⁡An⊗(WP−N[n]))(Z)∥1,\frac12\sup_{\|Z\|_1\le1} \left\|(\operatorname{id}_{A^n}\otimes(W_P-N^{[n]}))(Z)\right\|_1,21​∥Z∥1​≤1sup​​(idAn​⊗(WP​−N[n]))(Z)​1​,

where ZZZ ranges over all complex matrices on An×AnA^n\times A^nAn×An, the amplified map applies the indicated map to each reference-indexed block, and ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​. Set cn=inf⁡{log⁡2m:m∈N, m>0, en(m)≤0}c_n=\inf\{\log_2m:m\in\mathbb N,\ m>0,\ e_n(m)\le0\}cn​=inf{log2​m:m∈N, m>0, en​(m)≤0}; then

C0(N)=inf⁡{s∈R:∀δ>0 ∃n0∈N ∀n≥n0, n>0⇒cnn≤s+δ}.C_0(N)=\inf\left\{s\in\mathbb R: \forall\delta>0\ \exists n_0\in\mathbb N\ \forall n\ge n_0,\ n>0\Rightarrow \frac{c_n}{n}\le s+\delta\right\}.C0​(N)=inf{s∈R:∀δ>0 ∃n0​∈N ∀n≥n0​, n>0⇒ncn​​≤s+δ}.

In particular, the condition defining cnc_ncn​ concerns the infimum error and does not itself require an attaining code. For the asserted certificate, define JN((a,b),(a′,b′))=N(Eaa′)(b,b′)J_N((a,b),(a',b'))=N(E_{aa'})(b,b')JN​((a,b),(a′,b′))=N(Eaa′​)(b,b′), let Jid((a,b),(a′,b′))J_{\mathrm{id}}((a,b),(a',b'))Jid​((a,b),(a′,b′)) equal 111 when a=ba=ba=b and a′=b′a'=b'a′=b′ and 000 otherwise, and put V=(d(1−p)+p/d)IAV=(d(1-p)+p/d)I_AV=(d(1−p)+p/d)IA​ and

z(N)=inf⁡{Re⁡tr⁡W:W=W†, IA⊗W−JN⪰0}.z(N)=\inf\{\operatorname{Re}\operatorname{tr}W:W=W^\dagger,\ I_A\otimes W-J_N\succeq0\}.z(N)=inf{RetrW:W=W†, IA​⊗W−JN​⪰0}.

The certificate asserts

V=V†,IA⊗V−JN⪰0,Jid⪰0,IA−tr⁡AJid⪰0,Re⁡tr⁡V=z(N),Re⁡tr⁡(JNJid)=z(N).V=V^\dagger,\quad I_A\otimes V-J_N\succeq0,\quad J_{\mathrm{id}}\succeq0,\quad I_A-\operatorname{tr}_A J_{\mathrm{id}}\succeq0,\quad \operatorname{Re}\operatorname{tr}V=z(N),\quad \operatorname{Re}\operatorname{tr}(J_NJ_{\mathrm{id}})=z(N).V=V†,IA​⊗V−JN​⪰0,Jid​⪰0,IA​−trA​Jid​⪰0,RetrV=z(N),Retr(JN​Jid​)=z(N).

Both endpoints p=0,1p=0,1p=0,1 are included. No nonemptiness assumption on AAA is displayed; the formulas use total real arithmetic, with division by 000 and log⁡20\log_2 0log2​0 equal to 000, and real infima of empty or unbounded-below sets equal to 000.

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