Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix D: symmetric-code average and t-qudit marginal

Open
QAlgorithms.Papers.Independent.Extend50.P09.su_average_marginal

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

prove2quantum

Fix an integer d≥2d\ge2d≥2. For n≥2n\ge2n≥2 let λ\lambdaλ partition n−1n-1n−1 with at most ddd rows, and let lλ,rλl_\lambda,r_\lambdalλ​,rλ​ be the actual Schur and Specht module dimensions. Append the physical isotypic embedding of ILλ/lλ⊗∣ψλ⟩⟨ψλ∣I_{L_\lambda}/l_\lambda\otimes|\psi_\lambda\rangle\langle\psi_\lambda|ILλ​​/lλ​⊗∣ψλ​⟩⟨ψλ​∣, where ψλ\psi_\lambdaψλ​ is a fixed unit Specht vector, to one logical ddd-level system. Conjugate by Haar measure on the determinant-one commutant of the collective SU(d)SU(d)SU(d) action and erase one fixed known site. Errors mean optimal CPTP recovery measured in root-fidelity purified distance, with normalized Choi input and a decoder chosen before the worst reference-entangled input.

For this exact average identity let the normalized logical input be any pure ρ=∣v⟩⟨v∣\rho=|v\rangle\langle v|ρ=∣v⟩⟨v∣ and retain any first ttt sites, 1≤t≤n1\le t\le n1≤t≤n. Put ωλ=Πλ/(lλrλ)\omega_\lambda=\Pi_\lambda/(l_\lambda r_\lambda)ωλ​=Πλ​/(lλ​rλ​), the actual normalized isotypic projector. The full averaged encoded state equals the average obtained by replacing the ancillary state with ωλ\omega_\lambdaωλ​, and

Tr⁡n−tΨavg=1n∑j=1tρ(j)⊗(Tr⁡n−tωλ)(jˉ)+{n−tnTr⁡n−t−1ωλ,t<n,0,t=n.\operatorname{Tr}_{n-t}\Psi_{\rm avg}=\frac1n\sum_{j=1}^t\rho^{(j)}\otimes\left(\operatorname{Tr}_{n-t}\omega_\lambda\right)^{(\bar j)} +\begin{cases}\dfrac{n-t}{n}\operatorname{Tr}_{n-t-1}\omega_\lambda,&t<n,\\0,&t=n.\end{cases}Trn−t​Ψavg​=n1​j=1∑t​ρ(j)⊗(Trn−t​ωλ​)(jˉ​)+⎩⎨⎧​nn−t​Trn−t−1​ωλ​,0,​t<n,t=n.​

Here jˉ\bar jjˉ​ denotes the other t−1t-1t−1 retained positions; the first marginal of ωλ\omega_\lambdaωλ​ retains t−1t-1t−1 ancilla sites, and the last retains ttt.

The last term is omitted at t=nt=nt=n. This formula makes no multiple-erasure error-performance claim.

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

/-- Appendix D, PDF pp.21–22, (D9)–(D10): exact average and
arbitrary t retained qudits; no assertion of t>1 recovery performance. -/
theorem su_average_marginal (d n t : ℕ) (hd : 2 ≤ d) (hn : 2 ≤ n)
    (ht0 : 1 ≤ t) (ht : t ≤ n) (lam : Schur.Partition d (n-1))
    (psi : EuclideanSpace ℂ (Fin (rdim lam))) (hpsi : IsState psi)
    (v : EuclideanSpace ℂ (Fin d)) (hv : IsState v)
    (mu : Measure (Op (CovariantWord d n))) (hmu : IsCommutantHaarLaw (SUGroup d n) mu) :
    (∫ V, appendUnitaryEncoder (show 1 ≤ n by omega) (suAncilla lam psi) V
      (logicalMatrix (pureDensity v)) ∂mu) =
    (∫ V, appendUnitaryEncoder (show 1 ≤ n by omega) (isotypicState lam) V
      (logicalMatrix (pureDensity v)) ∂mu) ∧
    firstTrace ht (∫ V, appendUnitaryEncoder (show 1 ≤ n by omega) (suAncilla lam psi) V
      (logicalMatrix (pureDensity v)) ∂mu) =
      suMarginalFormula hn ht0 ht lam (pureDensity v) := 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. 21, Appendix D: symmetric-code average and t-qudit marginal
Read-back

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

For every d,n,t∈Nd,n,t\in\mathbb Nd,n,t∈N with d,n≥2d,n\ge2d,n≥2 and 1≤t≤n1\le t\le n1≤t≤n, every Young diagram λ\lambdaλ with m=n−1m=n-1m=n−1 cells and at most ddd rows, every unit vector ψ∈Crλ\psi\in\mathbb C^{r_\lambda}ψ∈Crλ​, every unit vector v∈Cdv\in\mathbb C^dv∈Cd, and every probability measure μ\muμ on complex matrices indexed by length-nnn words that assigns measure zero to the complement of

G={V:V†V=I, det⁡V=1, VU⊗n=U⊗nV for every U†U=I, det⁡U=1}\mathcal G=\left\{V:V^\dagger V=I,\ \det V=1,\ V U^{\otimes n}=U^{\otimes n}V \text{ for every }U^\dagger U=I,\ \det U=1\right\}G={V:V†V=I, detV=1, VU⊗n=U⊗nV for every U†U=I, detU=1}

and satisfies (V↦WV)∗μ=μ(V\mapsto WV)_*\mu=\mu(V↦WV)∗​μ=μ for every W∈GW\in\mathcal GW∈G, the assertion is

∫V(∣v⟩⟨v∣⊗Aλ,ψ)V† dμ(V)=∫V(∣v⟩⟨v∣⊗Ωλ)V† dμ(V),\int V\bigl(|v\rangle\langle v|\otimes A_{\lambda,\psi}\bigr)V^\dagger\,d\mu(V) = \int V\bigl(|v\rangle\langle v|\otimes\Omega_\lambda\bigr)V^\dagger\,d\mu(V),∫V(∣v⟩⟨v∣⊗Aλ,ψ​)V†dμ(V)=∫V(∣v⟩⟨v∣⊗Ωλ​)V†dμ(V),

and the partial trace of the left-hand integral onto its first ttt sites equals

1n∑j=0t−1Ins⁡j ⁣(∣v⟩⟨v∣,Tr⁡last (m−t+1)Ωλ)+{n−tnTr⁡last (m−t)Ωλ,t<n,0,t=n.\frac1n\sum_{j=0}^{t-1} \operatorname{Ins}_j\!\left(|v\rangle\langle v|, \operatorname{Tr}_{\mathrm{last}\,(m-t+1)}\Omega_\lambda\right) + \begin{cases} \displaystyle\frac{n-t}{n}\operatorname{Tr}_{\mathrm{last}\,(m-t)}\Omega_\lambda,&t<n,\\ 0,&t=n. \end{cases}n1​j=0∑t−1​Insj​(∣v⟩⟨v∣,Trlast(m−t+1)​Ωλ​)+⎩⎨⎧​nn−t​Trlast(m−t)​Ωλ​,0,​t<n,t=n.​

The tensor products use the first site for vvv; Ins⁡j(ρ,τ)a,b=ρaj,bjτa∖j,b∖j\operatorname{Ins}_j(\rho,\tau)_{a,b}=\rho_{a_j,b_j}\tau_{a^{\setminus j},b^{\setminus j}}Insj​(ρ,τ)a,b​=ρaj​,bj​​τa∖j,b∖j​, and partial traces sum equal row and column values over the discarded sites. To specify both ancillas, fix the chosen numbering of each diagram’s cells, let Rλ,Cλ⊆SmR_\lambda,C_\lambda\subseteq S_mRλ​,Cλ​⊆Sm​ preserve rows and columns, define Yλ(g,h)=∑a∈Rλ,b∈Cλsgn⁡(b)1g=habY_\lambda(g,h)=\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{g=hab}Yλ​(g,h)=∑a∈Rλ​,b∈Cλ​​sgn(b)1g=hab​, and let Sλ=range⁡Yλ\mathcal S_\lambda=\operatorname{range}Y_\lambdaSλ​=rangeYλ​, with dimension rλr_\lambdarλ​ and orthogonal projector Πλ\Pi_\lambdaΠλ​. Let Lg(h′,h)=1h′=ghL_g(h',h)=\mathbf1_{h'=gh}Lg​(h′,h)=1h′=gh​, χλ(g)=tr⁡(LgΠλ)\chi_\lambda(g)=\operatorname{tr}(L_g\Pi_\lambda)χλ​(g)=tr(Lg​Πλ​), and Tg(y,x)=1y=x∘g−1T_g(y,x)=\mathbf1_{y=x\circ g^{-1}}Tg​(y,x)=1y=x∘g−1​. Set Hλ=range⁡(∑a∈Rλ,b∈Cλsgn⁡(b)Tab)\mathcal H_\lambda=\operatorname{range}\bigl(\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)T_{ab}\bigr)Hλ​=range(∑a∈Rλ​,b∈Cλ​​sgn(b)Tab​), of dimension ℓλ\ell_\lambdaℓλ​, and

Ωλ=1ℓλrλrλm!∑gχλ(g−1)Tg.\Omega_\lambda=\frac1{\ell_\lambda r_\lambda}\frac{r_\lambda}{m!} \sum_g\chi_\lambda(g^{-1})T_g.Ωλ​=ℓλ​rλ​1​m!rλ​​g∑​χλ​(g−1)Tg​.

For every diagram ν\nuν with mmm cells and at most ddd rows, take the prescribed orthonormal bases sν,rs_{\nu,r}sν,r​ of Sν\mathcal S_\nuSν​ and hν,lh_{\nu,l}hν,l​ of Hν\mathcal H_\nuHν​, form the matrix

Yx,(ν,r,l)=∑g∈Smsν,r(g)(Tghν,l)(x),D=f(Y†Y)Y†,f(u)=(u)−1,Y_{x,(\nu,r,l)} =\sum_{g\in S_m}s_{\nu,r}(g)(T_gh_{\nu,l})(x), \qquad D=f(Y^\dagger Y)Y^\dagger,\quad f(u)=(\sqrt u)^{-1},Yx,(ν,r,l)​=g∈Sm​∑​sν,r​(g)(Tg​hν,l​)(x),D=f(Y†Y)Y†,f(u)=(u​)−1,

using continuous functional calculus, and define wl(x)=∑rD(λ,r,l),x‾ψrw_l(x)=\sum_r\overline{D_{(\lambda,r,l),x}}\psi_rwl​(x)=∑r​D(λ,r,l),x​​ψr​. Then Aλ,ψ=ℓλ−1∑l∣wl⟩⟨wl∣A_{\lambda,\psi}=\ell_\lambda^{-1}\sum_l|w_l\rangle\langle w_l|Aλ,ψ​=ℓλ−1​∑l​∣wl​⟩⟨wl​∣. All reciprocals at zero are zero. In particular, the hypothesis requiring a unit ψ\psiψ cannot hold if rλ=0r_\lambda=0rλ​=0; neither t=0t=0t=0 nor n=0n=0n=0 is included.

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