Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Case 3 / Appendix B: random covariant code fidelity bound, Eq.(7)

Open
QAlgorithms.Papers.Independent.Extend50.P29.random_covariant_code_fidelity

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

prove2quantum

Let GGG be finite, d=∣G∣≥1d=|G|\ge1d=∣G∣≥1, and n≥3n\ge3n≥3. Use the left regular action on each ddd-dimensional register. Sample a Haar unit vector ϕ∈HG⊗n\phi\in\mathcal H_G^{\otimes n}ϕ∈HG⊗n​ and set Ψ=Mϕ\Psi=M\phiΨ=Mϕ, where MMM is the explicit invariant-orbit isometry. Reshape Ψ\PsiΨ as Ez,x=d Ψx,zE_{z,x}=\sqrt d\,\Psi_{x,z}Ez,x​=d​Ψx,z​, and on the full-rank locus set T=E(E†E)−1/2T=E(E^\dagger E)^{-1/2}T=E(E†E)−1/2 and encode by ρ↦TρT†\rho\mapsto T\rho T^\daggerρ↦TρT†. For fixed erased physical mode 111, use the Appendix B Schmidt decoder, including replacement of that mode by I/dI/dI/d. Let FworstF_{\rm worst}Fworst​ be its minimum root fidelity over all normalized logical input states. Then E†EE^\dagger EE†E is positive definite almost surely, and

Pr⁡ ⁣[Fworst<1−d(9−2n)/8]≤exp⁡ ⁣[−d2216(d(2n−8)/4−432log⁡(30d(7+2n)/8))].\Pr\!\left[F_{\rm worst}<1-d^{(9-2n)/8}\right]\le\exp\!\left[-\frac{d^2}{216}\left(d^{(2n-8)/4}-432\log\left(30d^{(7+2n)/8}\right)\right)\right].Pr[Fworst​<1−d(9−2n)/8]≤exp[−216d2​(d(2n−8)/4−432log(30d(7+2n)/8))].

The probability is evaluated on the full-rank locus with its original, unrenormalized Haar law. Real powers and the natural logarithm are used. This is a fixed-erasure estimate, with no simultaneous minimum over erased sites.

Formalization Note The code uses n=r+2n=r+2n=r+2, r≥1r\ge1r≥1, and the equivalent recovered-channel formula from Appendix B. The printed B8 proof's unresolved prefactor issue is recorded in the audit.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P29
Formal statement
noncomputable section

open MeasureTheory MeasureTheory.Measure

open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Extend50.P29

open QAlgorithms.Papers.Independent.Information100.P32 (evolution)

open QAlgorithms.Papers.Independent.Next46.P39 (inverseSqrt rectAct)

open QAlgorithms.Papers.Independent.Support21.P09 (groupLeftRegular)

/-- PDF p.5, Eq.(7), with Appendix B pp.8--13: the exact printed strict
failure event for the Haar-orbit/polar construction. Here n=r+2≥3, the domain
of the Schmidt decoder using physical modes 2 and 3. The n≥5 condition on p.5
concerns asymptotic usefulness, not the domain of Eq.(7). The law on
the full-rank locus is NOT renormalized; full rank almost surely is a conclusion.
This is a fixed erased output, not a simultaneous bound over n erasures.
The reversed event printed at the end of p.13 is corrected using p.5. -/
theorem random_covariant_code_fidelity
    (G : Type) [Group G] [Fintype G] (r : ℕ) (hr : 1 ≤ r) :
    let d : ℝ := Fintype.card G
    let n : ℝ := (r : ℝ) + 2
    ((invariantSampleLaw G (r + 2)) {φ |
      ((reshapedEncoder (randomInvariant (r + 2) φ))ᴴ *
        reshapedEncoder (randomInvariant (r + 2) φ)).PosDef}) = 1 ∧
    ((invariantSampleLaw G (r + 2)) {φ |
      ((reshapedEncoder (randomInvariant (r + 2) φ))ᴴ *
        reshapedEncoder (randomInvariant (r + 2) φ)).PosDef ∧
      worstRootFidelity (pairMarginal (randomInvariant (r + 2) φ)) <
        1 - Real.rpow d ((9 - 2 * n) / 8)}).toReal ≤
      Real.exp (-(d ^ 2 / 216) *
        (Real.rpow d ((2 * n - 8) / 4) -
          432 * Real.log (30 * Real.rpow d ((7 + 2 * n) / 8)))) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P29

end
Source
Error Correction of Quantum Reference Frame Information, arXiv:1709.04471v1, PDF p. 5, Case 3 / Appendix B: random covariant code fidelity bound, Eq.(7)
Read-back

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

For every finite group GGG and every natural number r≥1r\ge 1r≥1, put q=r+2q=r+2q=r+2, d=∣G∣d=|G|d=∣G∣, and n=r+2n=r+2n=r+2, with d,nd,nd,n regarded as real numbers in the bound below. Let μ\muμ be the probability law on C∣G∣q\mathbb C^{|G|^q}C∣G∣q obtained by applying a Haar-distributed unitary matrix to the first standard basis vector. Fix the enumeration e:Gq→{0,…,∣G∣q−1}e:G^q\to\{0,\ldots,|G|^q-1\}e:Gq→{0,…,∣G∣q−1} used to identify these coordinates. For each sampled vector ϕ\phiϕ, define a vector on Gq+1G^{q+1}Gq+1 by

ψϕ(z0,…,zq)=1d ϕ ⁣(e(zq−1z0,…,zq−1zq−1)),\psi_\phi(z_0,\ldots,z_q) =\frac{1}{\sqrt d}\, \phi\!\left(e(z_q^{-1}z_0,\ldots,z_q^{-1}z_{q-1})\right),ψϕ​(z0​,…,zq​)=d​1​ϕ(e(zq−1​z0​,…,zq−1​zq−1​)),

define the rectangular matrix EϕE_\phiEϕ​, with rows indexed by z∈Gqz\in G^qz∈Gq and columns by x∈Gx\in Gx∈G, by Eϕ(z,x)=d ψϕ(x,z)E_\phi(z,x)=\sqrt d\,\psi_\phi(x,z)Eϕ​(z,x)=d​ψϕ​(x,z), and define the matrix AϕA_\phiAϕ​ on G×GG\times GG×G by

Aϕ((a,b),(a′,b′))=∑z∈Gr+1ψϕ(a,b,z) ψϕ(a′,b′,z)‾.A_\phi((a,b),(a',b')) =\sum_{z\in G^{r+1}} \psi_\phi(a,b,z)\,\overline{\psi_\phi(a',b',z)}.Aϕ​((a,b),(a′,b′))=z∈Gr+1∑​ψϕ​(a,b,z)ψϕ​(a′,b′,z)​.

For such a matrix AAA, write (Tr⁡2A)i,j=∑k∈GA((i,k),(j,k))(\operatorname{Tr}_2A)_{i,j}=\sum_{k\in G}A((i,k),(j,k))(Tr2​A)i,j​=∑k∈G​A((i,k),(j,k)), set BA=(Tr⁡2A)−1/2B_A=(\operatorname{Tr}_2A)^{-1/2}BA​=(Tr2​A)−1/2, where the inverse square root is defined by spectral functional calculus and takes value 000 at a zero eigenvalue, and define

RA(X)=[Tr⁡2 ⁣(A1/2(BAXTBA⊗IG)A1/2)]T,F(A)=inf⁡v∈CG∥v∥=1Re⁡tr⁡ ⁣(PvRA(Pv)),\mathcal R_A(X) =\left[ \operatorname{Tr}_2\!\left( A^{1/2}(B_AX^{\mathsf T}B_A\otimes I_G)A^{1/2} \right) \right]^{\mathsf T}, \qquad F(A)=\inf_{\substack{v\in\mathbb C^G\\ \|v\|=1}} \sqrt{\operatorname{Re}\operatorname{tr}\!\left(P_v\mathcal R_A(P_v)\right)},RA​(X)=[Tr2​(A1/2(BA​XTBA​⊗IG​)A1/2)]T,F(A)=v∈CG∥v∥=1​inf​Retr(Pv​RA​(Pv​))​,

where Pv(i,j)=vivj‾P_v(i,j)=v_i\overline{v_j}Pv​(i,j)=vi​vj​​, A1/2A^{1/2}A1/2 is the positive spectral square root, and T{}^{\mathsf T}T denotes ordinary transpose in the indicated coordinate bases. The declaration asserts both

μ{ϕ:Eϕ†Eϕ is positive definite}=1\mu\{\phi:E_\phi^\dagger E_\phi\text{ is positive definite}\}=1μ{ϕ:Eϕ†​Eϕ​ is positive definite}=1

and

μ ⁣{ϕ:Eϕ†Eϕ is positive definite ∧ F(Aϕ)<1−d(9−2n)/8}≤exp⁡ ⁣[−d2216(d(2n−8)/4−432log⁡ ⁣(30d(7+2n)/8))],\mu\!\left\{\phi: E_\phi^\dagger E_\phi\text{ is positive definite} \ \land\ F(A_\phi)<1-d^{(9-2n)/8} \right\} \le \exp\!\left[ -\frac{d^2}{216} \left( d^{(2n-8)/4} -432\log\!\left(30d^{(7+2n)/8}\right) \right) \right],μ{ϕ:Eϕ†​Eϕ​ is positive definite ∧ F(Aϕ​)<1−d(9−2n)/8}≤exp[−216d2​(d(2n−8)/4−432log(30d(7+2n)/8))],

where the probability in the second inequality is read as a real number and log⁡\loglog is the natural logarithm. The quantification includes r=1r=1r=1 and the trivial group d=1d=1d=1; for the latter, the strict threshold in the second event is 000.

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