Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§VI: simultaneous locations and flagged random erasures

Open
QAlgorithms.Papers.Independent.Extend50.P09.random_erasure_locations

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

prove2quantum

Let n,k,t,αn,k,t,\alphan,k,t,α be integers with 0≤k,t≤n0\le k,t\le n0≤k,t≤n and 0≤α≤n−k0\le\alpha\le n-k0≤α≤n−k. Append a fixed unit vector of charge α\alphaα to kkk logical qubits and conjugate by a Haar-random unitary in the full commutant of the nnn-qubit Hamming-weight operator. Erase a fixed known set of ttt sites. Let ϵChoi\epsilon_{\rm Choi}ϵChoi​ and ϵworst\epsilon_{\rm worst}ϵworst​ denote the optimal CPTP recovery errors, using root fidelity FFF and purified distance P=1−F2P=\sqrt{1-F^2}P=1−F2​, respectively on the normalized maximally entangled input and on all reference-entangled inputs with one common decoder.

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.

All logarithms are base two. Asymptotic inequalities are eventual bounds with positive constants chosen before the sizes, ancillary vectors, and erased sets over which they are uniform. For fixed 0<a<10<a<10<a<1, α=an\alpha=anα=an is imposed only along an admissible unbounded integer-size subsequence, with positive k,tk,tk,t; the threshold may depend on its little-o convergence rate.

In each U(1) main-theorem regime, and for SU(d) only at t=1t=1t=1, the corresponding bounds hold for arbitrary input-independent distributions pS≥0p_S\ge0pS​≥0, ∑∣S∣=tpS=1\sum_{|S|=t}p_S=1∑∣S∣=t​pS​=1, over erased sets whose location is flagged to the receiver. The same eventual numerical bound BnB_nBn​ can be chosen so that

Eϵ(p)≤Bn,Pr⁡[∃S:ϵ(S)>Bn or ∃p:ϵ(p)>Bn]≤e−cn.\mathbb E\epsilon(p)\le B_n,\qquad \Pr[\exists S:\epsilon(S)>B_n\ \text{or}\ \exists p:\epsilon(p)>B_n]\le e^{-cn}.Eϵ(p)≤Bn​,Pr[∃S:ϵ(S)>Bn​ or ∃p:ϵ(p)>Bn​]≤e−cn.

Here either error criterion may be used with its own main-theorem bound. A good sampled encoder works for all locations simultaneously.

Permutation invariance is distributional and is not pointwise equality of fixed-encoder errors. No fixed independent-per-site erasure-rate theorem or multiple-erasure SU(d) performance is asserted.

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

/-- §VI, PDF p.14: simultaneous locations and flagged mixtures. It is
the LAW that is permutation invariant, not each fixed appendUnitaryEncoder's error.
U(1)'s little-o regimes absorb the binomial union factor; SU(d) uses t=1. -/
theorem random_erasure_locations
    (u1 : PhysicalUnitaryLaws 2) (hU : ∀ n, IsCommutantHaarLaw (U1Group n) (u1 n))
    (d : ℕ) (hd : 2 ≤ d) (su : PhysicalUnitaryLaws d)
    (hS : ∀ n, IsCommutantHaarLaw (SUGroup d n) (su n)) :
    U1LocationPerformance false u1 ∧ U1LocationPerformance true u1 ∧
    SULocationPerformance false d su ∧ SULocationPerformance true d su := 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. 14, §VI: simultaneous locations and flagged random erasures
Read-back

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

Let (μn)(\mu_n)(μn​) be a family of measures on matrices on binary words of length nnn, and suppose that for every natural nnn, μn\mu_nμn​ is a probability measure, assigns measure zero to the complement of

Gn(1)={U:U†U=I, UQn=QnU},(Qn)x,y=1x=y∑j=0n−1xj,G_n^{(1)}=\{U:U^\dagger U=I,\ UQ_n=Q_nU\}, \qquad (Q_n)_{x,y}=\mathbf1_{x=y}\sum_{j=0}^{n-1}x_j,Gn(1)​={U:U†U=I, UQn​=Qn​U},(Qn​)x,y​=1x=y​j=0∑n−1​xj​,

and is invariant under U↦VUU\mapsto VUU↦VU for every V∈Gn(1)V\in G_n^{(1)}V∈Gn(1)​. Let d≥2d\ge2d≥2 be a natural number, and let (νn)(\nu_n)(νn​) be a family of measures on matrices on ddd-ary words of length nnn. Suppose that, for every natural nnn, νn\nu_nνn​ is a probability measure, assigns measure zero outside the matrices VVV satisfying V†V=IV^\dagger V=IV†V=I, det⁡V=1\det V=1detV=1, and

VW⊗n=W⊗nVfor every d×d matrix W with W†W=I, det⁡W=1,VW^{\otimes n}=W^{\otimes n}V \quad\text{for every }d\times d\text{ matrix }W \text{ with }W^\dagger W=I,\ \det W=1,VW⊗n=W⊗nVfor every d×d matrix W with W†W=I, detW=1,

and is invariant under left multiplication by every such VVV; the tensor power has entries ∏jWxj,yj\prod_jW_{x_j,y_j}∏j​Wxj​,yj​​. Then the following assertions hold separately for each choice worst=false\mathrm{worst}=\mathrm{false}worst=false and worst=true\mathrm{worst}=\mathrm{true}worst=true. Define the recovery error Eworst(C:L→B)\mathcal E_{\mathrm{worst}}(\mathcal C:L\to B)Eworst​(C:L→B) by minimizing over finite Kraus channels D:B→L\mathcal D:B\to LD:B→L, meaning maps ∑jKj(⋅)Kj†\sum_jK_j(\cdot)K_j^\dagger∑j​Kj​(⋅)Kj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I: for false\mathrm{false}false, minimize the distance between the normalized vector ΦL(x,y)=∣L∣−1/21x=y\Phi_L(x,y)=|L|^{-1/2}\mathbf1_{x=y}ΦL​(x,y)=∣L∣−1/21x=y​ and its recovered density matrix; for true\mathrm{true}true, minimize the supremum of the corresponding distance over every unit vector on L×LL\times LL×L. The distance between matrices is

P(ρ,σ)=1−(Re⁡Tr⁡ρ σρ)2.P(\rho,\sigma)= \sqrt{1-\left(\operatorname{Re}\operatorname{Tr} \sqrt{\sqrt{\rho}\,\sigma\sqrt{\rho}}\right)^2}.P(ρ,σ)=1−(ReTrρ​σρ​​)2​.

Given an ancillary matrix AAA, put CS,U(X)=Tr⁡S[U(X⊗A)U†]\mathcal C_{S,U}(X)=\operatorname{Tr}_{S}[U(X\otimes A)U^\dagger]CS,U​(X)=TrS​[U(X⊗A)U†], with XXX on the first logical sites, and let Cp,U\mathcal C_{p,U}Cp,U​ have diagonal flag blocks pSCS,U(X)p_S\mathcal C_{S,U}(X)pS​CS,U​(X) and zero off-diagonal flag blocks. For the binary family, for each a∈(0,1)a\in(0,1)a∈(0,1) there are constants C,c>0C,c>0C,c>0 such that, for all natural-number sequences Ni,ki,ti,αiN_i,k_i,t_i,\alpha_iNi​,ki​,ti​,αi​ with Ni→∞N_i\to\inftyNi​→∞,

qi=ki sti2Ni→0,s={1,worst=true,2,worst=false,q_i=\frac{k_i^{\,s}t_i^2}{N_i}\to0,\qquad s=\begin{cases}1,&\mathrm{worst}=\mathrm{true},\\2,&\mathrm{worst}=\mathrm{false},\end{cases}qi​=Ni​kis​ti2​​→0,s={1,2,​worst=true,worst=false,​

and 0<ki≤Ni0<k_i\le N_i0<ki​≤Ni​, 0<ti≤Ni0<t_i\le N_i0<ti​≤Ni​, 0<Ni0<N_i0<Ni​, αi≤Ni−ki\alpha_i\le N_i-k_iαi​≤Ni​−ki​, and αi=aNi\alpha_i=aN_iαi​=aNi​ at every index, there is i0i_0i0​ such that for every i≥i0i\ge i_0i≥i0​ and every unit ancillary vector supported on binary words of weight αi\alpha_iαi​, the following holds with its pure density matrix as AAA:

bi={kiti,worst=true,tiki,worst=false4Nia(1−a)(1+Cqi).b_i= \frac{\begin{cases}k_i\sqrt{t_i},&\mathrm{worst}=\mathrm{true},\\ \sqrt{t_i k_i},&\mathrm{worst}=\mathrm{false}\end{cases}} {4N_i\sqrt{a(1-a)}}(1+Cq_i).bi​=4Ni​a(1−a)​{ki​ti​​,ti​ki​​,​worst=true,worst=false​​(1+Cqi​).

The μNi\mu_{N_i}μNi​​-measure of the event that some set SSS of size tit_iti​, or some real probability law ppp supported on sets of size tit_iti​, has recovery error strictly greater than bib_ibi​, is at most e−cNie^{-cN_i}e−cNi​; also, for every fixed such ppp, ∫Eworst(Cp,U) dμNi(U)≤bi\int\mathcal E_{\mathrm{worst}}(\mathcal C_{p,U})\,d\mu_{N_i}(U)\le b_i∫Eworst​(Cp,U​)dμNi​​(U)≤bi​. For the ddd-ary family, for each η>0\eta>0η>0 there are constants C,c>0C,c>0C,c>0 and n0n_0n0​ such that for every n≥n0n\ge n_0n≥n0​ with n≥2n\ge2n≥2, every Young diagram λ\lambdaλ of n−1n-1n−1 cells with at most ddd rows and ηn≤n−λ0\eta n\le n-\lambda_0ηn≤n−λ0​, and every unit vector ψ∈Crλ\psi\in\mathbb C^{r_\lambda}ψ∈Crλ​, the analogous event for sets of size one has νn\nu_nνn​-measure at most e−cne^{-cn}e−cn, and every fixed probability law on singleton sets satisfies the analogous mean-error bound, with

bn=d2−12n+Cn2,A=1ℓλ∑l=0ℓλ−1∣vl⟩⟨vl∣.b_n=\frac{\sqrt{d^2-1}}{2n}+\frac{C}{n^2}, \qquad A=\frac1{\ell_\lambda}\sum_{l=0}^{\ell_\lambda-1}|v_l\rangle\langle v_l|.bn​=2nd2−1​​+n2C​,A=ℓλ​1​l=0∑ℓλ​−1​∣vl​⟩⟨vl​∣.

Here rλ,ℓλr_\lambda,\ell_\lambdarλ​,ℓλ​ are the dimensions of the following explicit ranges: after numbering diagram cells, with Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ the row-preserving and column-preserving permutations, the Specht range is that of the matrix ∑a∈Rλ,b∈Cλsgn⁡(b)1g=hab\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{g=hab}∑a∈Rλ​,b∈Cλ​​sgn(b)1g=hab​, and the Schur range is that of ∑a∈Rλ,b∈Cλsgn⁡(b)Tab\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)T_{ab}∑a∈Rλ​,b∈Cλ​​sgn(b)Tab​, where (Tgf)(x)=f(x∘g)(T_gf)(x)=f(x\circ g)(Tg​f)(x)=f(x∘g). Using the supplied orthonormal bases of these ranges, form Yx,(λ,r,l)=∑geλ,r(g)(Tgfλ,l)(x)Y_{x,(\lambda,r,l)}=\sum_g e_{\lambda,r}(g)(T_gf_{\lambda,l})(x)Yx,(λ,r,l)​=∑g​eλ,r​(g)(Tg​fλ,l​)(x), over all eligible diagrams, and D=(Y†Y)−1/2Y†D=(Y^\dagger Y)^{-1/2}Y^\daggerD=(Y†Y)−1/2Y†; then vl(x)=∑rD(λ,r,l),x‾ψrv_l(x)=\sum_r\overline{D_{(\lambda,r,l),x}}\psi_rvl​(x)=∑r​D(λ,r,l),x​​ψr​. The inverse square root uses functional calculus and is zero at zero. In both families the event quantifies simultaneously over all eligible sets and flagged location laws, whereas each integral uses a fixed location law. The constants may differ between the four asserted performance properties. All law hypotheses include n=0n=0n=0, although the conclusions concern eventual positive lengths; the exact binary equality αi=aNi\alpha_i=aN_iαi​=aNi​ admits no such sequences for irrational aaa.

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