Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix B1: exact Choi Lambda and SDP reduction

Open
QAlgorithms.Papers.Independent.Extend50.P09.u1_choi_lambda_exact

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n,k,t,αn,k,t,\alphan,k,t,α be integers with 0≤k,t≤n0\le k,t\le n0≤k,t≤n and 0≤α≤n−k0\le\alpha\le n-k0≤α≤n−k. Append a fixed unit vector of charge α\alphaα to kkk logical qubits and conjugate by a Haar-random unitary in the full commutant of the nnn-qubit Hamming-weight operator. Erase a fixed known set of ttt sites. Let ϵChoi\epsilon_{\rm Choi}ϵChoi​ and ϵworst\epsilon_{\rm worst}ϵworst​ denote the optimal CPTP recovery errors, using root fidelity FFF and purified distance P=1−F2P=\sqrt{1-F^2}P=1−F2​, respectively on the normalized maximally entangled input and on all reference-entangled inputs with one common decoder.

For finite positive-dimensional registers P,QP,QP,Q and a positive operator XPQX^{PQ}XPQ, write Hmin⁡(P∣Q)X=sup⁡{h:∃σQ≥0, Tr⁡σQ=1, X≤2−hIP⊗σQ}H_{\min}(P|Q)_X=\sup\{h:\exists\sigma_Q\ge0,\ \operatorname{Tr}\sigma_Q=1,\ X\le2^{-h}I_P\otimes\sigma_Q\}Hmin​(P∣Q)X​=sup{h:∃σQ​≥0, TrσQ​=1, X≤2−hIP​⊗σQ​}. The supremum is extended-real, so Hmin⁡(0)=+∞H_{\min}(0)=+\inftyHmin​(0)=+∞; throughout, −log⁡20=+∞-\log_2 0=+\infty−log2​0=+∞.

Let A=A1A2A=A_1A_2A=A1​A2​, where A1A_1A1​ has kkk qubits, and let Ψ=ΦkRA1⊗ψαA2\Psi=\Phi_k^{RA_1}\otimes\psi_\alpha^{A_2}Ψ=ΦkRA1​​⊗ψαA2​​. For a physical charge j∈[α,α+k]j\in[\alpha,\alpha+k]j∈[α,α+k], let ϕq(m)\phi_q^{(m)}ϕq(m)​ be the normalized maximally entangled vector on the weight-qqq sector of two mmm-qubit registers. Then

ΠjA∣Ψ⟩=(kj−α)/2k ∣ϕj−α(k)⟩∣ψα⟩,\Pi_j^A|\Psi\rangle=\sqrt{\binom{k}{j-\alpha}/2^k}\,|\phi_{j-\alpha}^{(k)}\rangle|\psi_\alpha\rangle,ΠjA​∣Ψ⟩=(j−αk​)/2k​∣ϕj−α(k)​⟩∣ψα​⟩, Λ=∑i=0n−tΠi(n−t)⊗∣Γi⟩⟨Γi∣,Hmin⁡(Λ)=−log⁡2s(Λ).\Lambda=\sum_{i=0}^{n-t}\Pi_i^{(n-t)}\otimes|\Gamma_i\rangle\langle\Gamma_i|,\qquad H_{\min}(\Lambda)=-\log_2 s(\Lambda).Λ=i=0∑n−t​Πi(n−t)​⊗∣Γi​⟩⟨Γi​∣,Hmin​(Λ)=−log2​s(Λ).

Here s(X)=inf⁡{Tr⁡σ:σ≥0, I⊗σ≥X}s(X)=\inf\{\operatorname{Tr}\sigma:\sigma\ge0,\ I\otimes\sigma\ge X\}s(X)=inf{Trσ:σ≥0, I⊗σ≥X}, and

∣Γi⟩=∑0≤j≤n0≤j−i≤t0≤j−α≤k(tj−i)(kj−α)2k(nj)∣ϕj−i(t)⟩∣ϕj−α(k)⟩∣ψα⟩.|\Gamma_i\rangle=\sum_{\substack{0\le j\le n\\0\le j-i\le t\\0\le j-\alpha\le k}} \sqrt{\frac{\binom{t}{j-i}\binom{k}{j-\alpha}}{2^k\binom{n}{j}}} |\phi_{j-i}^{(t)}\rangle|\phi_{j-\alpha}^{(k)}\rangle|\psi_\alpha\rangle.∣Γi​⟩=0≤j≤n0≤j−i≤t0≤j−α≤k​∑​2k(jn​)(j−it​)(j−αk​)​​∣ϕj−i(t)​⟩∣ϕj−α(k)​⟩∣ψα​⟩.

These are identities for the independently constructed Λ\LambdaΛ; the Γi\Gamma_iΓi​ need not have unit norm.

For every physical block 0≤i≤n−t0\le i\le n-t0≤i≤n−t, let Gi=∣Γi⟩⟨Γi∣G_i=|\Gamma_i\rangle\langle\Gamma_i|Gi​=∣Γi​⟩⟨Γi​∣ on the bipartition (Aˉ1A1A2):(RE)(\bar A_1A_1A_2):(RE)(Aˉ1​A1​A2​):(RE). Its individual SDP value and entropy are

s(Gi)=si,Hmin⁡(Gi)=−log⁡2si,si=(∑j=0n(tj−i)(kj−α)2k(nj))2.s(G_i)=s_i,\qquad H_{\min}(G_i)=-\log_2s_i,\qquad s_i=\left(\sum_{j=0}^n\frac{\binom t{j-i}\binom k{j-\alpha}}{\sqrt{2^k\binom nj}}\right)^2.s(Gi​)=si​,Hmin​(Gi​)=−log2​si​,si​=​j=0∑n​2k(jn​)​(j−it​)(j−αk​)​​2.

This retains (B22)–(B23), with si=0s_i=0si​=0 and entropy +∞+\infty+∞ for a zero block.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P09
Formal statement
noncomputable section

open scoped Matrix Matrix.Norms.Elementwise ComplexConjugate ENNReal ComplexOrder

open MeasureTheory Filter

namespace QAlgorithms.Papers.Independent.Extend50.P09

attribute [local instance] Classical.propDecidable Classical.decEq

-- Exact generic definitions from the pinned accepted library.

open QAlgorithms.Papers.Independent.Information100.P22 (Op mixed bell)

open QAlgorithms.Papers.Independent.Information100.P67 (conditionalMinEntropy)

open QAlgorithms.Papers.Independent.Advance50.P02 (negLog)

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P09.covariantMatrixMeasurable

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P09.covariantMatrixBorel

/-- Appendix B1, PDF p.17, (B7),(B10)–(B14): exact physical Lambda
factorization and the SDP reduction, with the individual Gamma_i SDP and
entropy values (B22)–(B23). i runs only through 0,...,n-t; zero Gamma_i have
SDP value zero and extended entropy +infinity. -/
theorem u1_choi_lambda_exact (n k t alpha : ℕ) (hk : k ≤ n) (ht : t ≤ n)
    (ha : alpha ≤ n-k) (psi : EuclideanSpace ℂ (CovariantWord 2 (n-k)))
    (hpsi : ChargeState alpha psi) :
    (∀ j : ℕ, alpha ≤ j → j ≤ alpha+k → ∀ r : CovariantWord 2 k, ∀ a : CovariantWord 2 n,
      (if chargeHammingWeight a = j then initialChoi hk psi (r,a) else 0) =
        (Real.sqrt ((k.choose (j-alpha) : ℝ)/(2 : ℝ)^k) : ℂ) *
          sectorBell k (j-alpha) (firstCoordinates hk a,r) * psi (remainingCoordinates a)) ∧
    (∀ a b : (CovariantWord 2 n × CovariantWord 2 n) × (CovariantWord 2 k × CovariantWord 2 t),
      choiLambda hk ht psi a b =
        ∑ i ∈ Finset.range (n-t+1),
          u1SectorProjector (n-t) i (remainingCoordinates (k := t) a.1.2) (remainingCoordinates (k := t) b.1.2) *
          choiGammaCoefficient hk ht alpha psi i a.1.1 (firstCoordinates ht a.1.2) a.2.1 a.2.2 *
          conj (choiGammaCoefficient hk ht alpha psi i b.1.1 (firstCoordinates ht b.1.2) b.2.1 b.2.2)) ∧
    (∀ i : ℕ, i ≤ n-t →
      let G : Op ((CovariantWord 2 n × CovariantWord 2 t) ×
          (CovariantWord 2 k × CovariantWord 2 t)) := fun a b =>
        choiGammaCoefficient hk ht alpha psi i a.1.1 a.1.2 a.2.1 a.2.2 *
        conj (choiGammaCoefficient hk ht alpha psi i b.1.1 b.1.2 b.2.1 b.2.2)
      let si := (∑ j ∈ Finset.range (n+1),
        chooseZ t ((j : ℤ)-i) * chooseZ k ((j : ℤ)-alpha) /
          Real.sqrt ((2 : ℝ)^k * (n.choose j : ℝ)))^2
      sdp G = si ∧ conditionalMinEntropy G = negLog si) ∧
    conditionalMinEntropy (choiLambda hk ht psi) = negLog (sdp (choiLambda hk ht psi)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P09

end
Source
Near-optimal covariant quantum error-correcting codes from random unitaries with symmetries, arXiv:2112.01498v2, PDF p. 17, Appendix B1: exact Choi Lambda and SDP reduction
Read-back

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

Let n,k,t,α∈Nn,k,t,\alpha\in\mathbb Nn,k,t,α∈N, with k≤nk\le nk≤n, t≤nt\le nt≤n, and α≤n−k\alpha\le n-kα≤n−k, and let ψ∈CWn−k\psi\in\mathbb C^{W_{n-k}}ψ∈CWn−k​ have norm one and vanish outside words of weight α\alphaα, where Wm={0,1}mW_m=\{0,1\}^mWm​={0,1}m and ∣a∣|a|∣a∣ is the sum of the bits of aaa. Write a≤h,a>ha_{\le h},a_{>h}a≤h​,a>h​ for the prefix and suffix at a cut h≤nh\le nh≤n, and define

βm,q(u,v)={(mq)−1/2,u=v and ∣u∣=q,0,otherwise,χ(r,a)=2−k/21{r=a≤k}ψ(a>k).\beta_{m,q}(u,v)= \begin{cases} \binom mq^{-1/2},&u=v\text{ and }|u|=q,\\ 0,&\text{otherwise}, \end{cases} \qquad \chi(r,a)=2^{-k/2}\mathbf1_{\{r=a_{\le k}\}}\psi(a_{>k}).βm,q​(u,v)={(qm​)−1/2,0,​u=v and ∣u∣=q,otherwise,​χ(r,a)=2−k/21{r=a≤k​}​ψ(a>k​).

Inverses of zero are interpreted as zero. Define B(m,z)=0B(m,z)=0B(m,z)=0 for negative integers zzz, and B(m,z)=(mz)B(m,z)=\binom m zB(m,z)=(zm​) for z≥0z\ge0z≥0. Set

Γi(a,b,r,e)=∑0≤j≤ni≤j, j−i≤tα≤j, j−α≤k(tj−i)(kj−α)2k(nj) βt,j−i(b,e) βk,j−α(a≤k,r) ψ(a>k).\Gamma_i(a,b,r,e)= \sum_{\substack{0\le j\le n\\i\le j,\ j-i\le t\\\alpha\le j,\ j-\alpha\le k}} \sqrt{\frac{\binom t{j-i}\binom k{j-\alpha}}{2^k\binom n j}}\, \beta_{t,j-i}(b,e)\, \beta_{k,j-\alpha}(a_{\le k},r)\,\psi(a_{>k}).Γi​(a,b,r,e)=0≤j≤ni≤j, j−i≤tα≤j, j−α≤k​∑​2k(jn​)(j−it​)(j−αk​)​​βt,j−i​(b,e)βk,j−α​(a≤k​,r)ψ(a>k​).

Also define ξn(a,b)=2n/(n∣a∣)\xi_n(a,b)=\sqrt{2^n/\binom n{|a|}}ξn​(a,b)=2n/(∣a∣n​)​ when ∣a∣=∣b∣|a|=|b|∣a∣=∣b∣, and zero otherwise, and

En,t((b,e),(b′,e′))=2−n1{b≤t=e, b≤t′=e′, b>t=b>t′}.E_{n,t}((b,e),(b',e'))= 2^{-n}\mathbf1_{\{b_{\le t}=e,\ b'_{\le t}=e',\ b_{>t}=b'_{>t}\}}.En,t​((b,e),(b′,e′))=2−n1{b≤t​=e, b≤t′​=e′, b>t​=b>t′​}​.

Let Λ\LambdaΛ be the matrix on (Wn×Wn)×(Wk×Wt)(W_n\times W_n)\times(W_k\times W_t)(Wn​×Wn​)×(Wk​×Wt​) whose entry at ((a,b),(r,e))((a,b),(r,e))((a,b),(r,e)) and ((a′,b′),(r′,e′))((a',b'),(r',e'))((a′,b′),(r′,e′)) is

ξn(a,b)ξn(a′,b′)‾ χ(r,a)χ(r′,a′)‾ En,t((b,e),(b′,e′)).\xi_n(a,b)\overline{\xi_n(a',b')}\, \chi(r,a)\overline{\chi(r',a')}\, E_{n,t}((b,e),(b',e')).ξn​(a,b)ξn​(a′,b′)​χ(r,a)χ(r′,a′)​En,t​((b,e),(b′,e′)).

Then, for every integer jjj with α≤j≤α+k\alpha\le j\le\alpha+kα≤j≤α+k, every r∈Wkr\in W_kr∈Wk​, and every a∈Wna\in W_na∈Wn​,

1{∣a∣=j}χ(r,a)=(kj−α)2k βk,j−α(a≤k,r) ψ(a>k),\mathbf1_{\{|a|=j\}}\chi(r,a)= \sqrt{\frac{\binom k{j-\alpha}}{2^k}}\, \beta_{k,j-\alpha}(a_{\le k},r)\,\psi(a_{>k}),1{∣a∣=j}​χ(r,a)=2k(j−αk​)​​βk,j−α​(a≤k​,r)ψ(a>k​),

and every entry of Λ\LambdaΛ satisfies

Λ(((a,b),(r,e)),((a′,b′),(r′,e′)))=∑i=0n−t1{b>t=b>t′, ∣b>t∣=i} Γi(a,b≤t,r,e) Γi(a′,b≤t′,r′,e′)‾.\Lambda(((a,b),(r,e)),((a',b'),(r',e'))) =\sum_{i=0}^{n-t} \mathbf1_{\{b_{>t}=b'_{>t},\ |b_{>t}|=i\}}\, \Gamma_i(a,b_{\le t},r,e)\, \overline{\Gamma_i(a',b'_{\le t},r',e')}.Λ(((a,b),(r,e)),((a′,b′),(r′,e′)))=i=0∑n−t​1{b>t​=b>t′​, ∣b>t​∣=i}​Γi​(a,b≤t​,r,e)Γi​(a′,b≤t′​,r′,e′)​.

For each i≤n−ti\le n-ti≤n−t, define a matrix GiG_iGi​ on (Wn×Wt)×(Wk×Wt)(W_n\times W_t)\times(W_k\times W_t)(Wn​×Wt​)×(Wk​×Wt​) by

Gi((a,b,r,e),(a′,b′,r′,e′))=Γi(a,b,r,e)Γi(a′,b′,r′,e′)‾,si=(∑j=0nB(t,j−i)B(k,j−α)2k(nj))2.G_i((a,b,r,e),(a',b',r',e'))= \Gamma_i(a,b,r,e)\overline{\Gamma_i(a',b',r',e')}, \qquad s_i=\left(\sum_{j=0}^{n} \frac{B(t,j-i)B(k,j-\alpha)}{\sqrt{2^k\binom n j}}\right)^2.Gi​((a,b,r,e),(a′,b′,r′,e′))=Γi​(a,b,r,e)Γi​(a′,b′,r′,e′)​,si​=​j=0∑n​2k(jn​)​B(t,j−i)B(k,j−α)​​2.

For a matrix TTT on any finite product A×BA\times BA×B, put

s(T)=inf⁡{Tr⁡σ: σ≥0, IA⊗σ−T≥0},Hmin⁡(T)=sup⁡{λ∈R: ∃σ≥0, Tr⁡σ=1, 2−λIA⊗σ−T≥0},s(T)=\inf\{\operatorname{Tr}\sigma:\ \sigma\ge0,\ I_A\otimes\sigma-T\ge0\}, \quad H_{\min}(T)=\sup\{\lambda\in\mathbb R:\ \exists\sigma\ge0,\ \operatorname{Tr}\sigma=1,\ 2^{-\lambda}I_A\otimes\sigma-T\ge0\},s(T)=inf{Trσ: σ≥0, IA​⊗σ−T≥0},Hmin​(T)=sup{λ∈R: ∃σ≥0, Trσ=1, 2−λIA​⊗σ−T≥0},

where traces in s(T)s(T)s(T) mean their real parts. The assertion is that s(Gi)=sis(G_i)=s_is(Gi​)=si​, Hmin⁡(Gi)=ℓ(si)H_{\min}(G_i)=\ell(s_i)Hmin​(Gi​)=ℓ(si​), and Hmin⁡(Λ)=ℓ(s(Λ))H_{\min}(\Lambda)=\ell(s(\Lambda))Hmin​(Λ)=ℓ(s(Λ)), where ℓ(0)=+∞\ell(0)=+\inftyℓ(0)=+∞ and ℓ(x)=−log⁡2x\ell(x)=-\log_2xℓ(x)=−log2​x for x≠0x\ne0x=0. Zero values of sis_isi​ are therefore explicitly assigned the bound +∞+\infty+∞. Zero register lengths, including n=k=t=α=0n=k=t=\alpha=0n=k=t=α=0, are allowed; their word sets are singletons.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me