Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, Eq. (16): concentration-to-worst-error reduction

Open
QAlgorithms.Papers.Independent.Extend50.P03.concentration_worst_reduction

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

prove2quantum

A code encodes kkk logical qubits in nnn physical qubits, with 0≤k≤n0\le k\le n0≤k≤n, by appending a fixed normalized (n−k)(n-k)(n−k)-qubit eigenvector ψα\psi_\alphaψα​ of the Hamming-weight charge Q(n−k)Q^{(n-k)}Q(n−k) with eigenvalue 0≤α≤n−k0\le\alpha\le n-k0≤α≤n−k, then applying UUU. Thus EU(ρ)=U(ρ⊗∣ψα⟩⟨ψα∣)U†\mathcal E_U(\rho)=U(\rho\otimes|\psi_\alpha\rangle\langle\psi_\alpha|)U^\daggerEU​(ρ)=U(ρ⊗∣ψα​⟩⟨ψα​∣)U†. The ancilla is chosen independently of UUU. The law H×H_\timesH×​ is probability Haar on the full charge centralizer, including every sector phase. Erasure of a set SSS of t≤nt\le nt≤n wires gives its complement to the decoder. Fidelity FFF means root fidelity and P=1−F2P=\sqrt{1-F^2}P=1−F2​. The optimized Choi error uses normalized kkk EPR pairs; the optimized worst error chooses one CPTP decoder before all normalized joint logical/reference states over every finite reference dimension. Let n→∞n\to\inftyn→∞ and fix b∈(0,1/2)b\in(0,1/2)b∈(0,1/2) such that eventually b≤α/n≤(α+k)/n≤1−bb\le\alpha/n\le(\alpha+k)/n\le1-bb≤α/n≤(α+k)/n≤1−b, 1≤k,t1\le k,t1≤k,t, and t≤min⁡(α,n−α−k)t\le\min(\alpha,n-\alpha-k)t≤min(α,n−α−k). Write h=min⁡{H2(α/n),H2((α+k)/n)}h=\min\{H_2(\alpha/n),H_2((\alpha+k)/n)\}h=min{H2​(α/n),H2​((α+k)/n)}, where H2H_2H2​ is binary entropy. There are C>0C>0C>0 and an integer D≥0D\ge0D≥0, uniform in the ancilla, erasure set and logical basis inputs, such that eventually the following holds. For ϵ≥0\epsilon\ge0ϵ≥0, δ,δ′>0\delta,\delta'>0δ,δ′>0, if one normalized state ζ\zetaζ independent of xxx satisfies P(ρavgx,x,ζ)≤ϵP(\rho_{\rm avg}^{x,x},\zeta)\le\epsilonP(ρavgx,x​,ζ)≤ϵ for every computational basis string xxx, then

Pr⁡ ⁣[εworst>ϵ+δ+2kδ′]≤CnD(2k−nh/4+t/2δ+22k−nh/2+tδ′).\Pr\!\left[\varepsilon_{\rm worst}>\epsilon+\delta+2^k\sqrt{\delta'}\right]\le Cn^D\left(\frac{2^{k-nh/4+t/2}}\delta+\frac{2^{2k-nh/2+t}}{\delta'}\right).Pr[εworst​>ϵ+δ+2kδ′​]≤CnD(δ2k−nh/4+t/2​+δ′22k−nh/2+t​).

Here ρavgx,x\rho_{\rm avg}^{x,x}ρavgx,x​ is the constructed Haar-averaged erased-register output. This is a concentration-to-recovery reduction; the right side need not be at most one.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P03
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped Matrix ComplexConjugate ComplexOrder ENNReal Matrix.Norms.Elementwise

namespace QAlgorithms.Papers.Independent.Extend50.P03

open QAlgorithms.Papers.Independent.Support50.P23 (minEntropy)

attribute [local instance] Classical.propDecidable

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P03.matrixContinuousENorm

/-- Lemma 2, PDF pp.10–11, Eq.(16): retain n/4, n/2, and the conservative
2^k sqrt(deltaPrime). The Appendix C regime is explicit in the guarantee. -/
theorem concentration_worst_reduction : ConcentrationGuarantee ChargeHaar := by sorry

end QAlgorithms.Papers.Independent.Extend50.P03

end
Source
Charge-conserving unitaries typically generate optimal covariant quantum error-correcting codes, arXiv:2102.11835v1, PDF p. 10, Lemma 2, Eq. (16): concentration-to-worst-error reduction
Read-back

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

This theorem says that for every real bbb with 0<b<120<b<\tfrac120<b<21​, there exist a real C>0C>0C>0 and a natural number DDD such that the following holds for every sequence of natural-number tuples di=(ni,ki,αi,ti)d_i=(n_i,k_i,\alpha_i,t_i)di​=(ni​,ki​,αi​,ti​) with ni→∞n_i\to\inftyni​→∞ and eventually satisfying

1≤ni,1≤ki≤ni,αi≤ni−ki,1≤ti≤ni,b≤αini,αi+kini≤1−b,ti≤αi,αi+ki≤ni−ti.1\leq n_i,\quad1\leq k_i\leq n_i,\quad \alpha_i\leq n_i-k_i,\quad1\leq t_i\leq n_i,\quad b\leq\frac{\alpha_i}{n_i},\quad \frac{\alpha_i+k_i}{n_i}\leq1-b,\quad t_i\leq\alpha_i,\quad\alpha_i+k_i\leq n_i-t_i.1≤ni​,1≤ki​≤ni​,αi​≤ni​−ki​,1≤ti​≤ni​,b≤ni​αi​​,ni​αi​+ki​​≤1−b,ti​≤αi​,αi​+ki​≤ni​−ti​.

There exists a natural number NNN such that, for every i≥Ni\geq Ni≥N, every unit ancilla ψ∈CQni−ki\psi\in\mathbb C^{Q_{n_i-k_i}}ψ∈CQni​−ki​​ supported on weight αi\alpha_iαi​, every probability measure μ\muμ on unitaries on QniQ_{n_i}Qni​​ that is almost surely supported on unitaries commuting with the Hamming-weight operator and is invariant under left multiplication by every such unitary, every subset SSS of size tit_iti​, every real ϵ≥0\epsilon\geq0ϵ≥0, every real δ,δ′>0\delta,\delta'>0δ,δ′>0, and every positive semidefinite trace-one matrix ζ\zetaζ on QtiQ_{t_i}Qti​​, the following implication holds. Writing n=ni,k=ki,α=αi,t=tin=n_i,k=k_i,\alpha=\alpha_i,t=t_in=ni​,k=ki​,α=αi​,t=ti​, let

σx=∑ℓ=0t(n−t∣x∣+α−ℓ)(n∣x∣+α)Πt,ℓ(x∈Qk),hend=min⁡ ⁣{H2(α/n),H2((α+k)/n)},\sigma_x=\sum_{\ell=0}^{t} \frac{\binom{n-t}{|x|+\alpha-\ell}}{\binom n{|x|+\alpha}}\Pi_{t,\ell} \quad(x\in Q_k), \qquad h_{\mathrm{end}}=\min\!\left\{H_2(\alpha/n),H_2((\alpha+k)/n)\right\},σx​=ℓ=0∑t​(∣x∣+αn​)(∣x∣+α−ℓn−t​)​Πt,ℓ​(x∈Qk​),hend​=min{H2​(α/n),H2​((α+k)/n)},

where Qs={0,1}sQ_s=\{0,1\}^sQs​={0,1}s, Πt,ℓ\Pi_{t,\ell}Πt,ℓ​ is the diagonal projector onto weight ℓ\ellℓ, out-of-range integer binomial coefficients are 000, and H2(p)=binEntropy⁡(p)/ln⁡2H_2(p)=\operatorname{binEntropy}(p)/\ln2H2​(p)=binEntropy(p)/ln2. If

1−f(σx,ζ)2≤ϵfor every x∈Qk,f(X,Y)=Re⁡Tr⁡X Y X,\sqrt{1-f(\sigma_x,\zeta)^2}\leq\epsilon \quad\text{for every }x\in Q_k, \qquad f(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\,\sqrt X},1−f(σx​,ζ)2​≤ϵfor every x∈Qk​,f(X,Y)=ReTrX​YX​​,

then

μ ⁣{U:ϵ+δ+2kδ′<ewc(U)}≤CnD(2 k−nhend/4+t/2δ+2 2k−nhend/2+tδ′).\mu\!\left\{U:\epsilon+\delta+2^k\sqrt{\delta'}<e_{\mathrm{wc}}(U)\right\} \leq C n^D\left( \frac{2^{\,k-nh_{\mathrm{end}}/4+t/2}}{\delta} +\frac{2^{\,2k-nh_{\mathrm{end}}/2+t}}{\delta'} \right).μ{U:ϵ+δ+2kδ′​<ewc​(U)}≤CnD(δ2k−nhend​/4+t/2​+δ′22k−nhend​/2+t​).

Here ewc(U)=1−Fwc(NU)2e_{\mathrm{wc}}(U)=\sqrt{1-F_{\mathrm{wc}}(\mathcal N_U)^2}ewc​(U)=1−Fwc​(NU​)2​, with NU(X)=Tr⁡S[U(X⊗∣ψ⟩⟨ψ∣)U†]\mathcal N_U(X)=\operatorname{Tr}_{S}[U(X\otimes|\psi\rangle\langle\psi|)U^\dagger]NU​(X)=TrS​[U(X⊗∣ψ⟩⟨ψ∣)U†], and

Fwc(N)=sup⁡Dinf⁡r∈Nρ⪰0, Tr⁡ρ=1f ⁣(ρ,(idr+1⊗D∘N)(ρ)),F_{\mathrm{wc}}(\mathcal N)= \sup_{\mathcal D}\inf_{\substack{r\in\mathbb N\\ \rho\succeq0,\ \operatorname{Tr}\rho=1}} f\!\left(\rho,(\mathrm{id}_{r+1}\otimes\mathcal D\circ\mathcal N)(\rho)\right),Fwc​(N)=Dsup​r∈Nρ⪰0, Trρ=1​inf​f(ρ,(idr+1​⊗D∘N)(ρ)),

where ρ\rhoρ is indexed by {0,…,r}×Qk\{0,\ldots,r\}\times Q_k{0,…,r}×Qk​, and decoders range over finite Kraus maps D(X)=∑jKjXKj†\mathcal D(X)=\sum_jK_jXK_j^\daggerD(X)=∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. The measure inequality uses the nonnegative extended-real embedding of its displayed real right side; no upper bound on ϵ,δ,δ′\epsilon,\delta,\delta'ϵ,δ,δ′ is imposed.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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