Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Reference frame error correction / Covariant error correction: equivalence via Haar twirling

Open
QAlgorithms.Papers.Independent.Extend50.P29.reference_frame_covariant_equivalence

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

prove2quantum

Let GGG be a compact Hausdorff topological group with normalized probability Haar measure, acting continuously and unitarily on a nonzero finite-dimensional input and n≥1n\ge1n≥1 nonzero finite-dimensional output registers. Fix CPTP decoders Dj\mathcal D_jDj​ for the known erased sites. Write

Eg(ρ)=Uout(g)E(Uin(g)†ρUin(g))Uout(g)†,\mathcal E_g(\rho)=U_{\rm out}(g)\mathcal E(U_{\rm in}(g)^\dagger\rho U_{\rm in}(g))U_{\rm out}(g)^\dagger,Eg​(ρ)=Uout​(g)E(Uin​(g)†ρUin​(g))Uout​(g)†,

where Uout=⨂iUiU_{\rm out}=\bigotimes_i U_iUout​=⨂i​Ui​. Then

∃EA ∀g,j,ρ: DjTr⁡jEA,g(ρ)=ρ⟺∃E covariant ∀j,ρ: DjTr⁡jE(ρ)=ρ.\exists\mathcal E_A\ \forall g,j,\rho:\ \mathcal D_j\operatorname{Tr}_j\mathcal E_{A,g}(\rho)=\rho \quad\Longleftrightarrow\quad \exists\mathcal E\text{ covariant}\ \forall j,\rho:\ \mathcal D_j\operatorname{Tr}_j\mathcal E(\rho)=\rho.∃EA​ ∀g,j,ρ: Dj​Trj​EA,g​(ρ)=ρ⟺∃E covariant ∀j,ρ: Dj​Trj​E(ρ)=ρ.

All encoders here are CPTP, and ρ\rhoρ ranges over every input density matrix. The forward construction is the integrable Haar average E=∫GEA,g dg\mathcal E=\int_G\mathcal E_{A,g}\,dgE=∫G​EA,g​dg, with the same decoders. The reverse construction uses EA=E\mathcal E_A=\mathcal EEA​=E. This includes the source's SO(3)SO(3)SO(3) reference-frame task.

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 pp.2--3: reference-frame and covariant correction are equivalent.
The constructive clauses retain the given decoder family and use the actual Haar
average in the forward direction. Compact Hausdorff G includes SO(3). -/
theorem reference_frame_covariant_equivalence
    {G : Type} [Group G] [TopologicalSpace G] [IsTopologicalGroup G]
    [CompactSpace G] [T2Space G] [MeasurableSpace G] [BorelSpace G]
    (μ : Measure G) [IsHaarMeasure μ] [IsProbabilityMeasure μ]
    {n : ℕ} (hn : 1 ≤ n) {I : Type} [Fintype I] [Nonempty I]
    {H : Fin n → Type} [∀ i, Fintype (H i)] [∀ i, Nonempty (H i)]
    (Ui : G →* Matrix.unitaryGroup I ℂ)
    (Uo : (i : Fin n) → G →* Matrix.unitaryGroup (H i) ℂ)
    (hcUi : Continuous Ui) (hcUo : ∀ i, Continuous (Uo i))
    (D : Decoders (I := I) H) (hD : ∀ j, IsChannel (D j)) :
    let ui := fun g => (Ui g : Matrix I I ℂ)
    let uo := fun g i => (Uo i g : Matrix (H i) (H i) ℂ)
    ((∃ E, IsChannel E ∧ ReferenceSuccess ui uo E D) ↔
      (∃ E, IsChannel E ∧ ErasureCovariant ui uo E ∧ SingleCorrects E D)) ∧
    (∀ E, IsChannel E → ReferenceSuccess ui uo E D →
      (∀ X, Integrable (fun g => rotatedEncoding ui uo E g X) μ) ∧
      IsChannel (twirledEncoding μ ui uo E) ∧
      ErasureCovariant ui uo (twirledEncoding μ ui uo E) ∧
      SingleCorrects (twirledEncoding μ ui uo E) D) ∧
    (∀ E, IsChannel E → ErasureCovariant ui uo E → SingleCorrects E D →
      ReferenceSuccess ui uo E D) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P29

end
Source
Error Correction of Quantum Reference Frame Information, arXiv:1709.04471v1, PDF p. 3, Reference frame error correction / Covariant error correction: equivalence via Haar twirling
Read-back

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

Let GGG be a compact Hausdorff topological group with its Borel measurable structure, and let μ\muμ be a Haar probability measure on GGG. Let n≥1n\ge1n≥1, let III be a finite nonempty set, and let each HiH_iHi​, for i∈{0,…,n−1}i\in\{0,\ldots,n-1\}i∈{0,…,n−1}, be finite and nonempty. Suppose UinU_{\mathrm{in}}Uin​ and UiU_iUi​ are continuous group homomorphisms into the unitary matrices on III and HiH_iHi​, respectively. Write H=∏iHi\mathcal H=\prod_i H_iH=∏i​Hi​ for the output configuration set and VgV_gVg​ for the matrix with entries (Vg)x,y=∏i(Ui(g))xi,yi(V_g)_{x,y}=\prod_i(U_i(g))_{x_i,y_i}(Vg​)x,y​=∏i​(Ui​(g))xi​,yi​​. For a matrix map EEE, define Eg(X)=VgE(Uin(g)†XUin(g))Vg†E_g(X)=V_gE(U_{\mathrm{in}}(g)^\dagger XU_{\mathrm{in}}(g))V_g^\daggerEg​(X)=Vg​E(Uin​(g)†XUin​(g))Vg†​ and E‾(X)=∫GEg(X) dμ(g)\overline E(X)=\int_G E_g(X)\,d\mu(g)E(X)=∫G​Eg​(X)dμ(g). Let DjD_jDj​ be a channel from the registers other than jjj to III, for every jjj. Here a channel means a map admitting a finite Kraus representation X↦∑aKaXKa†X\mapsto\sum_a K_aXK_a^\daggerX↦∑a​Ka​XKa†​ with ∑aKa†Ka=1\sum_aK_a^\dagger K_a=1∑a​Ka†​Ka​=1; a density matrix means a positive semidefinite matrix of trace one; and Tr⁡j\operatorname{Tr}_jTrj​ denotes the partial trace over register jjj, obtained by summing matrix entries over equal values of that register. Then the following conjunction holds: there exists a channel EEE such that Dj(Tr⁡jEg(ρ))=ρD_j(\operatorname{Tr}_jE_g(\rho))=\rhoDj​(Trj​Eg​(ρ))=ρ for every g,jg,jg,j and every density matrix ρ\rhoρ if and only if there exists a channel EEE satisfying both Eg(ρ)=E(ρ)E_g(\rho)=E(\rho)Eg​(ρ)=E(ρ) for every g,ρg,\rhog,ρ and Dj(Tr⁡jE(ρ))=ρD_j(\operatorname{Tr}_jE(\rho))=\rhoDj​(Trj​E(ρ))=ρ for every j,ρj,\rhoj,ρ; for every channel EEE satisfying the first recovery condition, g↦Eg(X)g\mapsto E_g(X)g↦Eg​(X) is integrable for every matrix XXX, and E‾\overline EE is a channel satisfying both covariance and recovery with the same DjD_jDj​; and every channel satisfying covariance and recovery also satisfies recovery for every rotated map EgE_gEg​. The covariance and recovery conditions quantify over density matrices, while the integrability conclusion quantifies over all matrices.

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