Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§III B3 / Appendix B: constant-charge code bound

Open
QAlgorithms.Papers.Independent.Extend50.P09.constantCharge_code_bound

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.

Fix positive k,tk,tk,t and an integer α>2\alpha>2α>2, independent of nnn. There are C>0C>0C>0 and n0n_0n0​ such that, for every admissible n≥n0n\ge n_0n≥n0​, every allowed ancillary vector and every erased set of size ttt,

EϵChoi≤Cn−1/2,Eϵworst≤Cn−1/2.\mathbb E\epsilon_{\rm Choi}\le Cn^{-1/2},\qquad \mathbb E\epsilon_{\rm worst}\le Cn^{-1/2}.EϵChoi​≤Cn−1/2,Eϵworst​≤Cn−1/2.

This records the sufficiently-large-fixed-charge upper bound; it asserts neither a matching lower bound nor exponential concentration.

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

/-- §III B3, PDF p.8: for sufficiently large FIXED charge, the
polynomial partial-decoupling term is dominated. alpha>2 suffices for its
n^(-alpha/4) purified-distance bound; only an O(n^(-1/2)) upper bound is claimed. -/
theorem constantCharge_code_bound (alpha k t : ℕ)
    (ha : 2 < alpha) (hk : 0 < k) (ht : 0 < t)
    (laws : PhysicalUnitaryLaws 2) (hlaw : ∀ n, IsCommutantHaarLaw (U1Group n) (laws n)) :
    ∃ C : ℝ, 0 < C ∧ ∃ n0 : ℕ, ∀ n ≥ n0, ∀ h : k ≤ n,
    alpha ≤ n-k → t ≤ n →
    ∀ psi : EuclideanSpace ℂ (CovariantWord 2 (n-k)), ChargeState alpha psi →
    ∀ S : Finset (Fin n), S.card = t →
    (∫ U, choiError (noisyEncoder h (pureDensity psi) S U) ∂laws n) ≤ C / Real.sqrt n ∧
    (∫ U, optimalWorstRecoveryError (noisyEncoder h (pureDensity psi) S U) ∂laws n) ≤ C / Real.sqrt n := 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. 8, §III B3 / Appendix B: constant-charge code bound
Read-back

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

Fix natural numbers α>2\alpha>2α>2, k>0k>0k>0, and t>0t>0t>0. For every natural number nnn, let μn\mu_nμn​ be a probability measure on matrices on binary strings of length nnn, concentrated on matrices UUU with U†U=IU^\dagger U=IU†U=I commuting with the diagonal matrix whose entry at xxx is its Hamming weight, and invariant under left multiplication by every such matrix. Then there are C>0C>0C>0 and n0∈Nn_0\in\mathbb Nn0​∈N such that for every n≥n0n\ge n_0n≥n0​, every k≤nk\le nk≤n with α≤n−k\alpha\le n-kα≤n−k and t≤nt\le nt≤n, every unit vector ψ\psiψ on n−kn-kn−k binary coordinates whose amplitudes vanish outside weight α\alphaα, and every erased set SSS of size ttt, both mean recovery errors below are at most C/nC/\sqrt nC/n​. The encoded channel is CU(X)=Tr⁡S[U(X⊗∣ψ⟩⟨ψ∣)U†]\mathcal C_U(X)=\operatorname{Tr}_{S}[U(X\otimes|\psi\rangle\langle\psi|)U^\dagger]CU​(X)=TrS​[U(X⊗∣ψ⟩⟨ψ∣)U†], with XXX on the first kkk coordinates and the coordinates outside SSS retained. For p(A,B)=1−(Re⁡tr⁡A BA)2p(A,B)=\sqrt{1-(\operatorname{Re}\operatorname{tr}\sqrt{\sqrt A\,B\sqrt A})^2}p(A,B)=1−(RetrA​BA​​)2​, using the defined functional calculus, the first error is

ec(U)=inf⁡Dp ⁣(Φk,(id⁡⊗DCU)(Φk)),Φk=∣ϕk⟩⟨ϕk∣,∣ϕk⟩=2−k/2∑x∣x,x⟩,e_{\mathrm c}(U)=\inf_{\mathcal D}p\!\left(\Phi_k, (\operatorname{id}\otimes\mathcal D\mathcal C_U)(\Phi_k)\right), \quad \Phi_k=|\phi_k\rangle\langle\phi_k|, \quad |\phi_k\rangle=2^{-k/2}\sum_x|x,x\rangle,ec​(U)=Dinf​p(Φk​,(id⊗DCU​)(Φk​)),Φk​=∣ϕk​⟩⟨ϕk​∣,∣ϕk​⟩=2−k/2x∑​∣x,x⟩,

and the second is ew(U)=inf⁡Dsup⁡∥ξ∥=1p(∣ξ⟩⟨ξ∣,(id⁡⊗DCU)(∣ξ⟩⟨ξ∣))e_{\mathrm w}(U)=\inf_{\mathcal D}\sup_{\|\xi\|=1}p(|\xi\rangle\langle\xi|,(\operatorname{id}\otimes\mathcal D\mathcal C_U)(|\xi\rangle\langle\xi|))ew​(U)=infD​sup∥ξ∥=1​p(∣ξ⟩⟨ξ∣,(id⊗DCU​)(∣ξ⟩⟨ξ∣)), where ξ\xiξ ranges over two kkk-coordinate logical registers. In both infima, D(X)=∑aKaXKa†\mathcal D(X)=\sum_aK_aXK_a^\daggerD(X)=∑a​Ka​XKa†​ with finitely many KaK_aKa​ and ∑aKa†Ka=I\sum_aK_a^\dagger K_a=I∑a​Ka†​Ka​=I. Thus ∫ec dμn≤C/n\int e_{\mathrm c}\,d\mu_n\le C/\sqrt n∫ec​dμn​≤C/n​ and ∫ew dμn≤C/n\int e_{\mathrm w}\,d\mu_n\le C/\sqrt n∫ew​dμn​≤C/n​, uniformly over the stated ancillary vectors and erased sets.

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