Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix C: basis-input min-entropy bounds

Open
QAlgorithms.Papers.Independent.Extend50.P03.worst_basis_min_entropy

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. For a computational basis input xxx, put q=∣x∣+αq=|x|+\alphaq=∣x∣+α and let Hmin⁡xH_{\min}^xHminx​ be the entropy of the actual Appendix C operator Λ\LambdaΛ constructed from xxx and the fixed ancilla, with trivial reference. Let B=∑i=0n−t(tq−i)2/(nq)B=\sum_{i=0}^{n-t}\binom{t}{q-i}^2/\binom nqB=∑i=0n−t​(q−it​)2/(qn​), with signed out-of-range binomials zero. Then

−log⁡2B≤Hmin⁡x≤−log⁡2Bt+1.-\log_2 B\le H_{\min}^x\le-\log_2\frac{B}{t+1}.−log2​B≤Hminx​≤−log2​t+1B​.

For the selected input, if t≤qt\le qt≤q and q≤n−tq\le n-tq≤n−t, then B=(2tt)/(nq)B=\binom{2t}{t}/\binom nqB=(t2t​)/(qn​). Uniformly over xxx and the ancilla, in a fixed compact interior charge interval and this small-erasure regime with k,t≥1k,t\ge1k,t≥1, Hmin⁡x=nH2(q/n)−2t+O(log⁡n)H_{\min}^x=nH_2(q/n)-2t+O(\log n)Hminx​=nH2​(q/n)−2t+O(logn), and hence Hmin⁡x≥nmin⁡{H2(α/n),H2((α+k)/n)}−2t−Clog⁡2(n+1)H_{\min}^x\ge n\min\{H_2(\alpha/n),H_2((\alpha+k)/n)\}-2t-C\log_2(n+1)Hminx​≥nmin{H2​(α/n),H2​((α+k)/n)}−2t−Clog2​(n+1). The finite formula also covers t=0t=0t=0.

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

/-- Appendix C, PDF pp.23–24: valid-sector finite sandwich, its interior
Vandermonde simplification guarded by t≤q≤n-t for the selected input,
and uniform two-sided basis entropy asymptotics. Printed: unguarded simplification.
Changed: require the full convolution range; at q=0 and t>0 it is truncated.
The numerator is sum_i binomial(t,q-i)^2, not a squared sum or 2^(2t). -/
theorem worst_basis_min_entropy :
    (∀ n k alpha t : ℕ, ∀ A : Ancilla n k alpha, t ≤ n → ∀ x : Qubits k,
      let q := hammingWeight x + alpha
      ((-Real.logb 2 (basisKappa n q t) : ℝ) : EReal) ≤ decouplingInputEntropy A t (ket x) ∧
      decouplingInputEntropy A t (ket x) ≤ ((-Real.logb 2 (basisKappa n q t/(t+1)) : ℝ) : EReal) ∧
      (t ≤ q → q ≤ n-t →
        basisKappa n q t = (Nat.choose (2*t) t : ℝ) / chooseZ n q)) ∧
    (∀ b : ℝ, 0 < b → b < 1/2 → ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ,
      ∀ d : ChargeCodeParameters, N ≤ d.n → Interior b d → ∀ A : Ancilla d.n d.k d.alpha,
      ∀ x : Qubits d.k,
      let h := (d.n : ℝ) * binEntropy2 (((hammingWeight x : ℝ)+d.alpha)/d.n) - 2*d.t
      ((h-C*Real.logb 2 (d.n+1) : ℝ) : EReal) ≤ decouplingInputEntropy A d.t (ket x) ∧
      decouplingInputEntropy A d.t (ket x) ≤ ((h+C*Real.logb 2 (d.n+1) : ℝ) : EReal) ∧
      ((d.n*endpointEntropy d-2*d.t-C*Real.logb 2 (d.n+1) : ℝ) : EReal) ≤
        decouplingInputEntropy A d.t (ket x)) := 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. 24, Appendix C: basis-input min-entropy bounds
Read-back

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

The theorem asserts the following conjunction. First, for all natural n,k,α,tn,k,\alpha,tn,k,α,t, every ancilla AAA consisting of k≤nk\le nk≤n, α≤n−k\alpha\le n-kα≤n−k, and a vector ψA\psi_AψA​ on {0,1}n−k\{0,1\}^{n-k}{0,1}n−k with ∥ψA∥=1\|\psi_A\|=1∥ψA​∥=1 and Qn−kψA=αψAQ_{n-k}\psi_A=\alpha\psi_AQn−k​ψA​=αψA​, where QjQ_jQj​ is diagonal with entry equal to the string’s number of ones, if t≤nt\le nt≤n, then every x∈{0,1}kx\in\{0,1\}^kx∈{0,1}k, with q=∣x∣+αq=|x|+\alphaq=∣x∣+α, satisfies

−log⁡2K(n,q,t) ≤HA(x,t) ≤−log⁡2 ⁣(K(n,q,t)t+1),(t≤q≤n−t) ⟹ K(n,q,t)=(2tt)c(n,q),-\log_2 K(n,q,t)\ \le H_A(x,t)\ \le-\log_2\!\left(\frac{K(n,q,t)}{t+1}\right), \qquad \bigl(t\le q\le n-t\bigr)\ \Longrightarrow\ K(n,q,t)=\frac{\binom{2t}{t}}{c(n,q)},−log2​K(n,q,t) ≤HA​(x,t) ≤−log2​(t+1K(n,q,t)​),(t≤q≤n−t) ⟹ K(n,q,t)=c(n,q)(t2t​)​,

where these inequalities are in the extended real numbers, c(j,h)=(jh)c(j,h)=\binom jhc(j,h)=(hj​) for integers 0≤h≤j0\le h\le j0≤h≤j and 000 otherwise, and

K(n,q,t)=∑i=0n−tc(t,q−i)2c(n,q).K(n,q,t)= \frac{\displaystyle\sum_{i=0}^{n-t}c(t,q-i)^2}{c(n,q)}.K(n,q,t)=c(n,q)i=0∑n−t​c(t,q−i)2​.

To define HA(x,t)H_A(x,t)HA​(x,t), set ηx(u)=1{uL=x}ψA(uA)\eta_x(u)=\mathbf1_{\{u_L=x\}}\psi_A(u_A)ηx​(u)=1{uL​=x}​ψA​(uA​), where uL,uAu_L,u_AuL​,uA​ are the first kkk and last n−kn-kn−k bits of uuu. Put fn(u,v)=2n/(n∣u∣)f_n(u,v)=\sqrt{2^n/\binom n{|u|}}fn​(u,v)=2n/(∣u∣n​)​ if ∣u∣=∣v∣|u|=|v|∣u∣=∣v∣, and 000 otherwise, and form the matrix

ΛA,x(((u,v),z),((u′,v′),z′))=fn(u,v)fn(u′,v′)ηx(u)ηx(u′)‾ 2−n1{v<t=z, v<t′=z′, v≥t=v≥t′},\Lambda_{A,x}\bigl(((u,v),z),((u',v'),z')\bigr) =f_n(u,v)f_n(u',v')\eta_x(u)\overline{\eta_x(u')} \,2^{-n} \mathbf1_{\{v_{<t}=z,\ v'_{<t}=z',\ v_{\ge t}=v'_{\ge t}\}},ΛA,x​(((u,v),z),((u′,v′),z′))=fn​(u,v)fn​(u′,v′)ηx​(u)ηx​(u′)​2−n1{v<t​=z, v<t′​=z′, v≥t​=v≥t′​}​,

for u,v,u′,v′∈{0,1}nu,v,u',v'\in\{0,1\}^nu,v,u′,v′∈{0,1}n and z,z′∈{0,1}tz,z'\in\{0,1\}^tz,z′∈{0,1}t. Then HA(x,t)H_A(x,t)HA​(x,t) is the extended-real supremum of real hhh such that some positive semidefinite trace-one matrix σ\sigmaσ on the zzz register makes 2−hI⊗σ−ΛA,x2^{-h}I\otimes\sigma-\Lambda_{A,x}2−hI⊗σ−ΛA,x​ positive semidefinite; this identifies the additional one-element reference register in the definition with a trivial factor. Second, for every real bbb with 0<b<1/20<b<1/20<b<1/2, there exist a real C>0C>0C>0 and a natural NNN such that, for all natural parameters d=(n,k,α,t)d=(n,k,\alpha,t)d=(n,k,α,t) with N≤nN\le nN≤n and

1≤n,1≤k≤n,α≤n−k,1≤t≤n,b≤αn,α+kn≤1−b,t≤α,α+k≤n−t,1\le n,\quad 1\le k\le n,\quad \alpha\le n-k,\quad 1\le t\le n,\quad b\le\frac{\alpha}{n},\quad \frac{\alpha+k}{n}\le1-b,\quad t\le\alpha,\quad \alpha+k\le n-t,1≤n,1≤k≤n,α≤n−k,1≤t≤n,b≤nα​,nα+k​≤1−b,t≤α,α+k≤n−t,

every such ancilla AAA and every x∈{0,1}kx\in\{0,1\}^kx∈{0,1}k satisfy, upon setting hx=nH2((∣x∣+α)/n)−2th_x=nH_2((|x|+\alpha)/n)-2thx​=nH2​((∣x∣+α)/n)−2t,

hx−Clog⁡2(n+1)≤HA(x,t)≤hx+Clog⁡2(n+1),h_x-C\log_2(n+1)\le H_A(x,t)\le h_x+C\log_2(n+1),hx​−Clog2​(n+1)≤HA​(x,t)≤hx​+Clog2​(n+1), nmin⁡ ⁣{H2(α/n),H2((α+k)/n)}−2t−Clog⁡2(n+1)≤HA(x,t),n\min\!\left\{H_2(\alpha/n),H_2((\alpha+k)/n)\right\} -2t-C\log_2(n+1)\le H_A(x,t),nmin{H2​(α/n),H2​((α+k)/n)}−2t−Clog2​(n+1)≤HA​(x,t),

where H2(u)=binEntropy⁡(u)/log⁡2H_2(u)=\operatorname{binEntropy}(u)/\log2H2​(u)=binEntropy(u)/log2. The first assertion includes zero values of the natural parameters whenever its ancilla and t≤nt\le nt≤n hypotheses hold; zero-length bit registers have one element. Its combinatorial identity requires the additional inequalities t≤q≤n−tt\le q\le n-tt≤q≤n−t, which have no solution when 2t>n2t>n2t>n.

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