Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2: U(1) worst-error concentration

Open
QAlgorithms.Papers.Independent.Extend50.P09.u1_worst_concentration

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.

Let ρavgx,x\rho_{\rm avg}^{x,x}ρavgx,x​ be the ensemble mean of the erased-register output for logical computational basis word xxx. Suppose a single density matrix ζ\zetaζ, independent of xxx, obeys P(ρavgx,x,ζ)≤εP(\rho_{\rm avg}^{x,x},\zeta)\le\varepsilonP(ρavgx,x​,ζ)≤ε for every xxx, where ε≥0\varepsilon\ge0ε≥0. Put h=min⁡{Hb(α/n),Hb((α+k)/n)}h=\min\{H_b(\alpha/n),H_b((\alpha+k)/n)\}h=min{Hb​(α/n),Hb​((α+k)/n)}, with HbH_bHb​ binary entropy. For every δ,δ′>0\delta,\delta'>0δ,δ′>0, there are universal C>0C>0C>0 and a nonnegative integer bbb, valid for all sufficiently large nnn, for which

Pr⁡[ϵworst>ε+δ+2kδ′]≤Cnbδ2k−nh/4+t/2+Cnbδ′22k−nh/2+t.\Pr[\epsilon_{\rm worst}>\varepsilon+\delta+2^k\sqrt{\delta'}] \le\frac{Cn^b}{\delta}2^{k-nh/4+t/2}+\frac{Cn^b}{\delta'}2^{2k-nh/2+t}.Pr[ϵworst​>ε+δ+2kδ′​]≤δCnb​2k−nh/4+t/2+δ′Cnb​22k−nh/2+t.

The polynomial factors represent the source's logarithmic remainders; these estimates may be uninformative at entropy endpoints.

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

/-- Lemma 2, PDF pp.6–7, (42)–(44). Polynomial prefactors express the
O(log n) log-probability remainder; Markov estimates are UPPER bounds. -/
theorem u1_worst_concentration :
    ∃ C : ℝ, 0 < C ∧ ∃ b n0 : ℕ, ∀ n ≥ n0, ∀ k alpha t : ℕ,
    ∀ hk : k ≤ n, alpha ≤ n-k → t ≤ n → 0 < n →
    ∀ psi : EuclideanSpace ℂ (CovariantWord 2 (n-k)), ChargeState alpha psi →
    ∀ S : Finset (Fin n), S.card = t →
    ∀ mu : Measure (Op (CovariantWord 2 n)), IsCommutantHaarLaw (U1Group n) mu →
    ∀ z : Op (RetainedConfigurations 2 n S), IsDensityMatrix z →
    ∀ epsilon delta deltaPrime : ℝ, 0 ≤ epsilon → 0 < delta → 0 < deltaPrime →
    (∀ x : CovariantWord 2 k,
      pdist (∫ U, retain S (appendUnitaryEncoder hk (pureDensity psi) U (pureDensity (ket x))) ∂mu) z ≤ epsilon) →
    let H := min (binEntropy2 ((alpha : ℝ)/n)) (binEntropy2 (((alpha+k : ℕ) : ℝ)/n))
    let p1 := C * (n : ℝ)^b * Real.rpow 2 ((k : ℝ)-(n : ℝ)/4*H+(t : ℝ)/2)/delta
    let p2 := C * (n : ℝ)^b * Real.rpow 2 (2*(k : ℝ)-(n : ℝ)/2*H+t)/deltaPrime
    mu.real {U | epsilon+delta+(2 : ℝ)^k*Real.sqrt deltaPrime <
      optimalWorstRecoveryError (noisyEncoder hk (pureDensity psi) S U)} ≤ p1+p2 := 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. 6, Lemma 2: U(1) worst-error concentration
Read-back

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

There exist a real C>0C>0C>0 and natural numbers b,n0b,n_0b,n0​ such that the following holds for every n≥n0n\ge n_0n≥n0​, natural numbers k,α,tk,\alpha,tk,α,t satisfying k≤nk\le nk≤n, α≤n−k\alpha\le n-kα≤n−k, t≤nt\le nt≤n, and n>0n>0n>0, every unit vector ψ\psiψ on n−kn-kn−k binary coordinates supported on strings of Hamming weight α\alphaα, and every erased set S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1} of size ttt. Let μ\muμ be any probability measure on physical matrices that is concentrated on U†U=IU^\dagger U=IU†U=I commuting with the diagonal Hamming-weight matrix and invariant under left multiplication by every such UUU. Let zzz be any positive semidefinite trace-one matrix on the configurations of the coordinates in SSS, and let real ϵ,δ,δ′\epsilon,\delta,\delta'ϵ,δ,δ′ satisfy ϵ≥0,δ>0,δ′>0\epsilon\ge0,\delta>0,\delta'>0ϵ≥0,δ>0,δ′>0. Define EU(X)=U(X⊗∣ψ⟩⟨ψ∣)U†\mathcal E_U(X)=U(X\otimes|\psi\rangle\langle\psi|)U^\daggerEU​(X)=U(X⊗∣ψ⟩⟨ψ∣)U† and 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​, with the defined functional calculus. Assume, for every computational basis string xxx of length kkk,

p ⁣(∫Tr⁡ScEU(∣x⟩⟨x∣) dμ(U), z)≤ϵ.p\!\left(\int\operatorname{Tr}_{S^{c}}\mathcal E_U(|x\rangle\langle x|)\,d\mu(U),\,z\right)\le\epsilon .p(∫TrSc​EU​(∣x⟩⟨x∣)dμ(U),z)≤ϵ.

Let CU=Tr⁡S∘EU\mathcal C_U=\operatorname{Tr}_{S}\circ\mathcal E_UCU​=TrS​∘EU​, which retains the coordinates outside SSS, and define 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 and D(X)=∑aKaXKa†\mathcal D(X)=\sum_aK_aXK_a^\daggerD(X)=∑a​Ka​XKa†​ ranges over finite Kraus maps with ∑aKa†Ka=I\sum_aK_a^\dagger K_a=I∑a​Ka†​Ka​=I. Set h2(u)=(−uln⁡u−(1−u)ln⁡(1−u))/ln⁡2h_2(u)=(-u\ln u-(1-u)\ln(1-u))/\ln2h2​(u)=(−ulnu−(1−u)ln(1−u))/ln2, with endpoint values defined by the total logarithm, and

H=min⁡ ⁣{h2(α/n),h2((α+k)/n)},p1=Cnb 2 k−nH/4+t/2δ,p2=Cnb 2 2k−nH/2+tδ′.H=\min\!\left\{h_2(\alpha/n),h_2((\alpha+k)/n)\right\},\quad p_1=\frac{Cn^b\,2^{\,k-nH/4+t/2}}{\delta},\quad p_2=\frac{Cn^b\,2^{\,2k-nH/2+t}}{\delta'}.H=min{h2​(α/n),h2​((α+k)/n)},p1​=δCnb2k−nH/4+t/2​,p2​=δ′Cnb22k−nH/2+t​.

Then

μreal ⁣{U:ϵ+δ+2kδ′<ew(U)}≤p1+p2.\mu^{\mathrm{real}}\!\left\{U:\epsilon+\delta+2^k\sqrt{\delta'}<e_{\mathrm w}(U)\right\} \le p_1+p_2 .μreal{U:ϵ+δ+2kδ′​<ew​(U)}≤p1​+p2​.

Here k,α,tk,\alpha,tk,α,t may be zero, the entropy arguments may be endpoints, and neither the threshold nor the right-hand bound is required to be at most one.

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