Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix C1: linear-charge fidelity and purified-distance expansion

Open
QAlgorithms.Papers.Independent.Extend50.P09.u1_linearCharge_expansion

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.

All logarithms are base two. Asymptotic inequalities are eventual bounds with positive constants chosen before the sizes, ancillary vectors, and erased sets over which they are uniform. For fixed 0<a<10<a<10<a<1, α=an\alpha=anα=an is imposed only along an admissible unbounded integer-size subsequence, with positive k,tk,tk,t; the threshold may depend on its little-o convergence rate.

Let Fn=F(ΩRE,IR/2k⊗ζ0)F_n=F(\Omega_{RE},I_R/2^k\otimes\zeta_0)Fn​=F(ΩRE​,IR​/2k⊗ζ0​) and Pn=P(ΩRE,IR/2k⊗ζ0)P_n=P(\Omega_{RE},I_R/2^k\otimes\zeta_0)Pn​=P(ΩRE​,IR​/2k⊗ζ0​), where Ω\OmegaΩ and its environmental marginal ζ0\zeta_0ζ0​ are the exact averaged Choi objects of Appendix C1. If kt=o(n)kt=o(n)kt=o(n) then

Fn=1−tk32a(1−a)n2+O(k3t3/n3).F_n=1-\frac{tk}{32a(1-a)n^2}+O(k^3t^3/n^3).Fn​=1−32a(1−a)n2tk​+O(k3t3/n3).

If additionally k2t2=o(n)k^2t^2=o(n)k2t2=o(n), then

Pn=tk4na(1−a)(1+O(k2t2/n)).P_n=\frac{\sqrt{tk}}{4n\sqrt{a(1-a)}}\left(1+O(k^2t^2/n)\right).Pn​=4na(1−a)​tk​​(1+O(k2t2/n)).

The errors are absolute for the fidelity expansion and relative for purified distance, with constants depending only on the fixed aaa.

The preceding (C14) expansion is retained uniformly over 0≤j≤k0\le j\le k0≤j≤k under kt=o(n)kt=o(n)kt=o(n), with the same parameter-independent remainder constant:

∑i=0t(ti)βihj,i=1−t(k−2j)232a(1−a)n2+O(k3t3/n3).\sum_{i=0}^t\binom ti\sqrt{\beta_i h_{j,i}}=1-\frac{t(k-2j)^2}{32a(1-a)n^2}+O(k^3t^3/n^3).i=0∑t​(it​)βi​hj,i​​=1−32a(1−a)n2t(k−2j)2​+O(k3t3/n3).
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 C1, PDF p.20, (C14)–(C16), including C14 uniformly for
all logical weights 0<=j<=k. Fidelity expansion holds under
kt=o(n); the relative purified-distance expansion uses k²t²=o(n).
Constants precede all admissible subsequences. -/
theorem u1_linearCharge_expansion (a : ℝ) (ha0 : 0 < a) (ha1 : a < 1) :
    ∃ C : ℝ, 0 < C ∧ ∀ N k t alpha : ℕ → ℕ,
    Tendsto N atTop atTop →
    (∀ i, 0 < N i ∧ 0 < k i ∧ k i ≤ N i ∧ 0 < t i ∧ t i ≤ N i ∧
      alpha i ≤ N i-k i ∧ (alpha i : ℝ) = a*N i) →
    (Tendsto (fun i => (k i : ℝ)*t i/N i) atTop (nhds 0) →
      ∃ i0 : ℕ, ∀ i ≥ i0,
      (∀ j : ℕ, j ≤ k i →
        |(∑ r ∈ Finset.range (t i+1), ((t i).choose r : ℝ) *
          Real.sqrt (choiMarginalCoefficient (N i) (k i) (t i) (alpha i) r *
            hyper (N i) (t i) (j+alpha i) r)) -
          (1-(t i : ℝ)*((k i : ℝ)-2*j)^2/(32*a*(1-a)*(N i : ℝ)^2))| ≤
            C*(k i : ℝ)^3*(t i : ℝ)^3/(N i : ℝ)^3) ∧
      |comparatorFidelity (N i) (k i) (t i) (alpha i) -
        (1-(t i : ℝ)*k i/(32*a*(1-a)*(N i : ℝ)^2))| ≤
          C*(k i : ℝ)^3*(t i : ℝ)^3/(N i : ℝ)^3) ∧
    (Tendsto (fun i => u1Ratio false (N i) (k i) (t i)) atTop (nhds 0) →
      ∃ i0 : ℕ, ∀ i ≥ i0,
      |comparatorDistance (N i) (k i) (t i) (alpha i) /
        u1Leading false a (N i) (k i) (t i)-1| ≤
          C*u1Ratio false (N i) (k i) (t i)) := 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. 20, Appendix C1: linear-charge fidelity and purified-distance expansion
Read-back

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

For every real aaa with 0<a<10<a<10<a<1, there exists a real C>0C>0C>0 with the following properties. Let N,k,t,α:N→NN,k,t,\alpha:\mathbb N\to\mathbb NN,k,t,α:N→N be any four sequences such that Ni→+∞N_i\to+\inftyNi​→+∞ and, for every iii,

Ni>0,0<ki≤Ni,0<ti≤Ni,αi≤Ni−ki,αi=aNi.N_i>0,\quad 0<k_i\le N_i,\quad 0<t_i\le N_i,\quad \alpha_i\le N_i-k_i,\quad \alpha_i=aN_i.Ni​>0,0<ki​≤Ni​,0<ti​≤Ni​,αi​≤Ni​−ki​,αi​=aNi​.

To define the quantities used below, let Wm={0,1}mW_m=\{0,1\}^mWm​={0,1}m, with weight ∣x∣|x|∣x∣ equal to the sum of the bits, and put

B(m,z)={(mz),z≥0,0,z<0,h(n,t,q,r)=B(n−t,q−r)(nq),c(n,k,t,α,r)=2−k∑j=0k(kj) h(n,t,j+α,r),B(m,z)= \begin{cases}\binom m z,&z\ge0,\\0,&z<0,\end{cases} \qquad h(n,t,q,r)=\frac{B(n-t,q-r)}{\binom n q}, \qquad c(n,k,t,\alpha,r)=2^{-k}\sum_{j=0}^{k}\binom k j\,h(n,t,j+\alpha,r),B(m,z)={(zm​),0,​z≥0,z<0,​h(n,t,q,r)=(qn​)B(n−t,q−r)​,c(n,k,t,α,r)=2−kj=0∑k​(jk​)h(n,t,j+α,r),

where q−rq-rq−r in BBB is integer subtraction, n−tn-tn−t is natural subtraction truncated at zero, and division by zero has value zero. Define diagonal matrices AAA on Wk×WtW_k\times W_tWk​×Wt​ and CtC_tCt​ on WtW_tWt​ by

A(x,y),(x,y)=2−kh(n,t,∣x∣+α,∣y∣),(Ct)y,y=c(n,k,t,α,∣y∣).A_{(x,y),(x,y)}=2^{-k}h(n,t,|x|+\alpha,|y|), \qquad (C_t)_{y,y}=c(n,k,t,\alpha,|y|).A(x,y),(x,y)​=2−kh(n,t,∣x∣+α,∣y∣),(Ct​)y,y​=c(n,k,t,α,∣y∣).

For positive semidefinite matrices, let

F(R,S)=Re⁡Tr⁡R SR,Fc(n,k,t,α)=F(A,2−kIWk⊗Ct),Dc(n,k,t,α)=1−Fc(n,k,t,α)2,F(R,S)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt R\,S\sqrt R}, \qquad F_c(n,k,t,\alpha)=F(A,2^{-k}I_{W_k}\otimes C_t), \qquad D_c(n,k,t,\alpha)=\sqrt{1-F_c(n,k,t,\alpha)^2},F(R,S)=ReTrR​SR​​,Fc​(n,k,t,α)=F(A,2−kIWk​​⊗Ct​),Dc​(n,k,t,α)=1−Fc​(n,k,t,α)2​,

where square roots are obtained by continuous functional calculus. If kiti/Ni→0k_it_i/N_i\to0ki​ti​/Ni​→0, there exists i0i_0i0​ such that, for every i≥i0i\ge i_0i≥i0​, simultaneously for every natural j≤kij\le k_ij≤ki​,

∣∑r=0ti(tir)c(Ni,ki,ti,αi,r) h(Ni,ti,j+αi,r)−(1−ti(ki−2j)232a(1−a)Ni2)∣≤Cki3ti3Ni3,\left| \sum_{r=0}^{t_i}\binom{t_i}r \sqrt{c(N_i,k_i,t_i,\alpha_i,r)\,h(N_i,t_i,j+\alpha_i,r)} -\left(1-\frac{t_i(k_i-2j)^2}{32a(1-a)N_i^2}\right) \right| \le \frac{Ck_i^3t_i^3}{N_i^3},​r=0∑ti​​(rti​​)c(Ni​,ki​,ti​,αi​,r)h(Ni​,ti​,j+αi​,r)​−(1−32a(1−a)Ni2​ti​(ki​−2j)2​)​≤Ni3​Cki3​ti3​​,

and

∣Fc(Ni,ki,ti,αi)−(1−tiki32a(1−a)Ni2)∣≤Cki3ti3Ni3.\left| F_c(N_i,k_i,t_i,\alpha_i) -\left(1-\frac{t_ik_i}{32a(1-a)N_i^2}\right) \right| \le \frac{Ck_i^3t_i^3}{N_i^3}.​Fc​(Ni​,ki​,ti​,αi​)−(1−32a(1−a)Ni2​ti​ki​​)​≤Ni3​Cki3​ti3​​.

Separately, if ki2ti2/Ni→0k_i^2t_i^2/N_i\to0ki2​ti2​/Ni​→0, there exists an i0i_0i0​ such that, for every i≥i0i\ge i_0i≥i0​,

∣Dc(Ni,ki,ti,αi)tiki/(4Nia(1−a))−1∣≤Cki2ti2Ni.\left| \frac{D_c(N_i,k_i,t_i,\alpha_i)} {\sqrt{t_ik_i}/(4N_i\sqrt{a(1-a)})}-1 \right| \le C\frac{k_i^2t_i^2}{N_i}.​ti​ki​​/(4Ni​a(1−a)​)Dc​(Ni​,ki​,ti​,αi​)​−1​≤CNi​ki2​ti2​​.

The same CCC, depending only on aaa, applies to both implications; their eventual cutoffs may differ. The exact integer identity αi=aNi\alpha_i=aN_iαi​=aNi​ is required at every index, so for irrational aaa there are no sequences satisfying these hypotheses.

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