Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix D1: worst input and leading symmetry distance

Open
QAlgorithms.Papers.Independent.Extend50.P09.worstInput_symmetry_expansion

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

prove2quantum

Fix d≥2d\ge2d≥2 and Schmidt probabilities pi≥0p_i\ge0pi​≥0 with ∑i=1dpi=1\sum_{i=1}^d p_i=1∑i=1d​pi​=1. Let ∣ψp⟩=∑ipi∣i⟩R∣i⟩L|\psi_p\rangle=\sum_i\sqrt{p_i}|i\rangle_R|i\rangle_L∣ψp​⟩=∑i​pi​​∣i⟩R​∣i⟩L​, ψpR=Tr⁡L∣ψp⟩⟨ψp∣\psi_p^R=\operatorname{Tr}_L|\psi_p\rangle\langle\psi_p|ψpR​=TrL​∣ψp​⟩⟨ψp​∣, and Cn(X)=X/n+(n−1)Tr⁡(X)Id/(nd)\mathcal C_n(X)=X/n+(n-1)\operatorname{Tr}(X)I_d/(nd)Cn​(X)=X/n+(n−1)Tr(X)Id​/(nd). Define

A(p)=d2∑i,jpipjpi+pj−14,A(p)=\sqrt{\frac d2\sum_{i,j}\frac{p_ip_j}{p_i+p_j}-\frac14},A(p)=2d​i,j∑​pi​+pj​pi​pj​​−41​​,

with each 0/00/00/0 term equal to its continuous value zero. The purified-distance comparator error satisfies

P ⁣((id⊗Cn)(ψp),ψpR⊗Id/d)=A(p)n+O(n−2),A(p)≤d2−12.P\!\left((\mathrm{id}\otimes\mathcal C_n)(\psi_p),\psi_p^R\otimes I_d/d\right)=\frac{A(p)}n+O(n^{-2}),\qquad A(p)\le\frac{\sqrt{d^2-1}}2.P((id⊗Cn​)(ψp​),ψpR​⊗Id​/d)=nA(p)​+O(n−2),A(p)≤2d2−1​​.

Equality in the coefficient bound holds precisely when all pi=1/dp_i=1/dpi​=1/d.

The expansion is for each fixed input, with constants allowed to depend on it; no full-rank Schmidt assumption is imposed. This identifies the maximal leading symmetry term rather than an individual random-code recovery error.

The fixed-comparator maximizer claim on p.12 is retained as well: for every n≥2n\ge2n≥2, the distance for ψp\psi_pψp​ is at most that for the normalized maximally entangled input Φd\Phi_dΦd​, compared with Id/d⊗Id/dI_d/d\otimes I_d/dId​/d⊗Id​/d at that input. This concerns the averaged depolarizing channel and does not identify the worst input of each individual random encoder.

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 D1, PDF p.22, (D14)–(D23), and the worst-input assertion
on p.12: fixed normalized Schmidt input, including zeros. The maximally
entangled input maximizes the fixed-comparator distance; the leading
coefficient is maximal precisely at uniform p. -/
theorem worstInput_symmetry_expansion (d : ℕ) (hd : 2 ≤ d)
    (p : Fin d → ℝ) (hp : ∀ i, 0 ≤ p i) (hsum : ∑ i, p i = 1) :
    (∀ n : ℕ, 2 ≤ n →
      pdist (idTensorSuperop (R := Fin d) (oneErasureMeanChannel d n) (pureDensity (schmidtKet p)))
        (Matrix.kronecker (traceRight (pureDensity (schmidtKet p))) (mixed (Fin d))) ≤
      pdist (idTensorSuperop (R := Fin d) (oneErasureMeanChannel d n) (pureDensity (bell (Fin d))))
        (Matrix.kronecker (mixed (Fin d)) (mixed (Fin d)))) ∧
    schmidtLeading p ≤ Real.sqrt ((d : ℝ)^2-1)/2 ∧
    (schmidtLeading p = Real.sqrt ((d : ℝ)^2-1)/2 ↔ ∀ i, p i = 1/(d : ℝ)) ∧
    ∃ C : ℝ, 0 < C ∧ ∃ n0 : ℕ, ∀ n ≥ n0, 2 ≤ n →
      |pdist (idTensorSuperop (R := Fin d) (oneErasureMeanChannel d n) (pureDensity (schmidtKet p)))
        (Matrix.kronecker (traceRight (pureDensity (schmidtKet p))) (mixed (Fin d))) -
          schmidtLeading p/n| ≤ C/(n : ℝ)^2 := 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. 22, Appendix D1: worst input and leading symmetry distance
Read-back

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

Let d∈Nd\in\mathbb Nd∈N satisfy d≥2d\ge2d≥2, and let p0,…,pd−1p_0,\ldots,p_{d-1}p0​,…,pd−1​ be nonnegative real numbers with ∑ipi=1\sum_i p_i=1∑i​pi​=1. Define

∣ψp⟩=∑i=0d−1pi ∣i,i⟩,∣Φd⟩=d−1/2∑i=0d−1∣i,i⟩,πd=Id/d,Tn(X)=Xn+n−1nTr⁡(X)πd.|\psi_p\rangle=\sum_{i=0}^{d-1}\sqrt{p_i}\,|i,i\rangle, \qquad |\Phi_d\rangle=d^{-1/2}\sum_{i=0}^{d-1}|i,i\rangle, \qquad \pi_d=I_d/d, \qquad \mathcal T_n(X)=\frac{X}{n}+\frac{n-1}{n}\operatorname{Tr}(X)\pi_d.∣ψp​⟩=i=0∑d−1​pi​​∣i,i⟩,∣Φd​⟩=d−1/2i=0∑d−1​∣i,i⟩,πd​=Id​/d,Tn​(X)=nX​+nn−1​Tr(X)πd​.

Here ∣v⟩⟨v∣|v\rangle\langle v|∣v⟩⟨v∣ has entries vivj‾v_i\overline{v_j}vi​vj​​; Tr⁡2\operatorname{Tr}_2Tr2​ traces out the second subsystem; and id⊗Tn\mathrm{id}\otimes\mathcal T_nid⊗Tn​ applies Tn\mathcal T_nTn​ to each matrix block indexed by the first subsystem. For positive semidefinite matrices define

F(R,S)=Re⁡Tr⁡R SR,P(R,S)=1−F(R,S)2,L(p)=d2∑i,j=0d−1pipjpi+pj−14,F(R,S)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt R\,S\sqrt R}, \qquad P(R,S)=\sqrt{1-F(R,S)^2}, \qquad L(p)=\sqrt{\frac d2\sum_{i,j=0}^{d-1}\frac{p_ip_j}{p_i+p_j}-\frac14},F(R,S)=ReTrR​SR​​,P(R,S)=1−F(R,S)2​,L(p)=2d​i,j=0∑d−1​pi​+pj​pi​pj​​−41​​,

with matrix square roots defined by continuous functional calculus and 0/0=00/0=00/0=0 in the sum. Then, for every natural n≥2n\ge2n≥2,

P ⁣((id⊗Tn)(∣ψp⟩⟨ψp∣),Tr⁡2(∣ψp⟩⟨ψp∣)⊗πd)≤P ⁣((id⊗Tn)(∣Φd⟩⟨Φd∣),πd⊗πd).P\!\left((\mathrm{id}\otimes\mathcal T_n)(|\psi_p\rangle\langle\psi_p|), \operatorname{Tr}_2(|\psi_p\rangle\langle\psi_p|)\otimes\pi_d\right) \le P\!\left((\mathrm{id}\otimes\mathcal T_n)(|\Phi_d\rangle\langle\Phi_d|), \pi_d\otimes\pi_d\right).P((id⊗Tn​)(∣ψp​⟩⟨ψp​∣),Tr2​(∣ψp​⟩⟨ψp​∣)⊗πd​)≤P((id⊗Tn​)(∣Φd​⟩⟨Φd​∣),πd​⊗πd​).

Moreover,

L(p)≤d2−12,L(p)=d2−12 ⟺ pi=1d for every i,L(p)\le\frac{\sqrt{d^2-1}}2, \qquad L(p)=\frac{\sqrt{d^2-1}}2 \ \Longleftrightarrow\ p_i=\frac1d\ \text{for every }i,L(p)≤2d2−1​​,L(p)=2d2−1​​ ⟺ pi​=d1​ for every i,

and there exist a real C>0C>0C>0 and n0∈Nn_0\in\mathbb Nn0​∈N such that, for every n≥n0n\ge n_0n≥n0​ satisfying n≥2n\ge2n≥2,

∣P ⁣((id⊗Tn)(∣ψp⟩⟨ψp∣),Tr⁡2(∣ψp⟩⟨ψp∣)⊗πd)−L(p)n∣≤Cn2.\left| P\!\left((\mathrm{id}\otimes\mathcal T_n)(|\psi_p\rangle\langle\psi_p|), \operatorname{Tr}_2(|\psi_p\rangle\langle\psi_p|)\otimes\pi_d\right) -\frac{L(p)}n \right| \le\frac C{n^2}.​P((id⊗Tn​)(∣ψp​⟩⟨ψp​∣),Tr2​(∣ψp​⟩⟨ψp​∣)⊗πd​)−nL(p)​​≤n2C​.

Zero entries of ppp are allowed, including distributions supported on a single index; no strict positivity of the probabilities is assumed.

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