Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.3: fully Haar-random encoders without charge conservation

Open
QAlgorithms.Papers.Independent.Extend50.P03.unconstrained_choi_error

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

prove2quantum

Let k≤nk\le nk≤n and t≤nt\le nt≤n, and append any fixed normalized pure (n−k)(n-k)(n−k)-qubit ancilla independent of the encoder. Draw UUU from probability Haar on SU(2n)\mathrm{SU}(2^n)SU(2n), and erase any specified ttt physical wires. Let εChoi\varepsilon_{\rm Choi}εChoi​ be the optimized normalized-EPR error using root fidelity. Set Δ=n−k−4t≥0\Delta=n-k-4t\ge0Δ=n−k−4t≥0. There are absolute c>0c>0c>0 and an integer Δ0\Delta_0Δ0​ such that, uniformly over the sizes, ancilla and erased set, for Δ≥Δ0\Delta\ge\Delta_0Δ≥Δ0​,

EεChoi≤e−cΔ.\mathbb E\varepsilon_{\rm Choi}\le e^{-c\Delta}.EεChoi​≤e−cΔ.

The expectation is integrable. This asserts decay as Δ→∞\Delta\to\inftyΔ→∞, without asserting decay in nnn for bounded Δ\DeltaΔ.

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

/-- Section 4.3, PDF p.12: fully SU(2^n)-Haar encoders, fixed arbitrary pure
ancilla. Delta is n-k-4t, not n; exponential decay is asserted as Delta grows. -/
theorem unconstrained_choi_error :
    ∃ c : ℝ, 0 < c ∧ ∃ D : ℕ, ∀ n k t : ℕ, ∀ h : k ≤ n,
      t ≤ n → 4*t ≤ n-k → D ≤ n-k-4*t →
      ∀ psi : EuclideanSpace ℂ (Qubits (n-k)), IsState psi →
      ∀ mu : Measure ((Matrix.unitaryGroup (Qubits n) ℂ)), SpecialHaar n mu →
      ∀ S : Finset (Fin n), S.card = t →
      let error := fun U => optimizedCodeError false (retain Sᶜ ∘ pureEncoder h psi U)
      Integrable error mu ∧ (∫ U, error U ∂mu) ≤ Real.exp (-c * (n-k-4*t : ℕ)) := 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. 12, §4.3: fully Haar-random encoders without charge conservation
Read-back

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

There exist a real constant c>0c>0c>0 and a natural number DDD, with no positivity requirement on DDD, such that the following holds for every n,k,t≥0n,k,t\ge0n,k,t≥0, every specified inequality k≤nk\le nk≤n, and the additional inequalities t≤nt\le nt≤n, 4t≤n−k4t\le n-k4t≤n−k, and D≤n−k−4tD\le n-k-4tD≤n−k−4t: for every unit vector ψ∈CQn−k\psi\in\mathbb C^{Q_{n-k}}ψ∈CQn−k​, where Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j, every probability measure μ\muμ on the unitary matrices on QnQ_nQn​ that almost surely have determinant one and is invariant under left multiplication by every determinant-one unitary, and every set S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1} of cardinality ttt, define NU\mathcal N_UNU​ by appending the pure state ∣ψ⟩⟨ψ∣|\psi\rangle\langle\psi|∣ψ⟩⟨ψ∣ to the kkk-qubit input, conjugating by UUU, and tracing out the coordinates in SSS. Set

e(U)=1−(sup⁡DF ⁣(∣Ωk⟩⟨Ωk∣,(id⊗DNU)(∣Ωk⟩⟨Ωk∣)))2,∣Ωk⟩=2−k/2∑x∈Qk∣x,x⟩.e(U)=\sqrt{1-\left(\sup_{\mathcal D} F\!\left(|\Omega_k\rangle\langle\Omega_k|, (\mathrm{id}\otimes\mathcal D\mathcal N_U)(|\Omega_k\rangle\langle\Omega_k|)\right)\right)^2}, \qquad |\Omega_k\rangle=2^{-k/2}\sum_{x\in Q_k}|x,x\rangle .e(U)=1−(Dsup​F(∣Ωk​⟩⟨Ωk​∣,(id⊗DNU​)(∣Ωk​⟩⟨Ωk​∣)))2​,∣Ωk​⟩=2−k/2x∈Qk​∑​∣x,x⟩.

The supremum is over recovery channels from the retained register to QkQ_kQk​, meaning maps with finitely many Kraus matrices KjK_jKj​ satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I; F(X,Y)=Re⁡Tr⁡X YXF(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\sqrt X}F(X,Y)=ReTrX​YX​​. Then eee is integrable with respect to μ\muμ, and

∫e(U) dμ(U)≤exp⁡ ⁣(−c(n−k−4t)).\int e(U)\,d\mu(U)\le \exp\!\bigl(-c(n-k-4t)\bigr).∫e(U)dμ(U)≤exp(−c(n−k−4t)).

The dimensions kkk and ttt may be zero. All subtractions in the hypotheses and exponent are natural-number subtractions, truncated at zero; the stated inequalities ensure that the displayed n−k−4tn-k-4tn−k−4t also equals the ordinary nonnegative difference.

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