Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.7: Full spectrum loss bounds

Open
QAlgorithms.Papers.Independent.Extend50.P32.fullSpectrumLoss

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

prove2quantum

Let d≥1d\ge1d≥1 and let α=(α1,…,αd)\alpha=(\alpha_1,\ldots,\alpha_d)α=(α1​,…,αd​) be a nonincreasing probability vector with nonnegative entries. Draw an iid word of length nnn with letter law α\alphaα and let λ\lambdaλ be its weak-insertion RSK shape, padded to ddd rows. For 1≤k≤d1\le k\le d1≤k≤d, write λ≤k=∑i=1kλi\lambda_{\le k}=\sum_{i=1}^k\lambda_iλ≤k​=∑i=1k​λi​, α≤k=∑i=1kαi\alpha_{\le k}=\sum_{i=1}^k\alpha_iα≤k​=∑i=1k​αi​, α≥k=∑i=kdαi\alpha_{\ge k}=\sum_{i=k}^d\alpha_iα≥k​=∑i=kd​αi​, and α>k=∑i=k+1dαi\alpha_{>k}=\sum_{i=k+1}^d\alpha_iα>k​=∑i=k+1d​αi​. For n≥1n\ge1n≥1, put λˉ=λ/n\bar\lambda=\lambda/nλˉ=λ/n. Hellinger squared is ∑i(ai−bi)2\sum_i(\sqrt{a_i}-\sqrt{b_i})^2∑i​(ai​​−bi​​)2, chi-squared is ∑i(ai−bi)2/bi\sum_i(a_i-b_i)^2/b_i∑i​(ai​−bi​)2/bi​, and KL is ∑iailn⁡(ai/bi)\sum_i a_i\ln(a_i/b_i)∑i​ai​ln(ai​/bi​). The estimate is the first argument, zero-over-zero terms contribute zero, and positive estimated mass at zero true mass gives infinite divergence. A superscript (k)(k)(k) retains only the first kkk terms, without renormalization.

E D(λˉ,α)≤d2n,D∈{dH2,dKL,dχ2}.\mathbb E\,D(\bar\lambda,\alpha)\le \frac{d^2}{n},\qquad D\in\{d_{H^2},d_{\mathrm{KL}},d_{\chi^2}\}.ED(λˉ,α)≤nd2​,D∈{dH2​,dKL​,dχ2​}.

This controls the empirical Young diagram without an asymptotic spectrum-gap assumption.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P32
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal Matrix ComplexOrder Topology

namespace QAlgorithms.Papers.Independent.Extend50.P32

open QAlgorithms.Papers.Independent.Support50.P38 (wordMass tv)

-- For the density matrices below, the characteristic-polynomial identity
-- preserves all eigenvalues with multiplicity and is equivalent to unitary
-- diagonalization with these real eigenvalues. No accuracy is assumed.

open QAlgorithms.Papers.Independent.Gap20.P17 (HasSpectrum)

/-- Theorem 1.7, PDF p.4: all three full losses in the printed argument order. -/
theorem fullSpectrumLoss {d n : ℕ} (hd : 0 < d) (hn : 0 < n) (alpha : Fin d → ℝ)
    (hAlpha : Learning.IsDistribution alpha) (hSorted : Antitone alpha) (metric : FullMetric) :
    swMeanExt alpha n (fun s => fullLoss metric (normalizedShapeRows n s) alpha) ≤
      ENNReal.ofReal ((d : ℝ) ^ 2 / n) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P32

end
Source
Efficient quantum tomography II, arXiv:1612.00034v1, PDF p. 4, Theorem 1.7
Read-back

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

For all positive natural numbers d,nd,nd,n, every nonincreasing vector α∈Rd\alpha\in\mathbb R^dα∈Rd with nonnegative entries summing to one, and each of the three choices of loss below, the following bound holds:

∑w∈{0,…,d−1}nofReal⁡ ⁣(∏t<nαwt)L((Ri(w)/n)i<d,α)≤ofReal⁡(d2/n).\sum_{w\in\{0,\ldots,d-1\}^n} \operatorname{ofReal}\!\left(\prod_{t<n}\alpha_{w_t}\right) L\bigl((R_i(w)/n)_{i<d},\alpha\bigr) \le \operatorname{ofReal}(d^2/n).w∈{0,…,d−1}n∑​ofReal(t<n∏​αwt​​)L((Ri​(w)/n)i<d​,α)≤ofReal(d2/n).

Here ofReal⁡(x)=max⁡(x,0)\operatorname{ofReal}(x)=\max(x,0)ofReal(x)=max(x,0) in [0,∞][0,\infty][0,∞], and Ri(w)R_i(w)Ri​(w) is row iii’s length, or zero for an absent row, obtained by inserting letters in order into initially empty rows, replacing the first strictly greater letter and passing it to the next row, or appending and stopping if no such letter exists. For real vectors a,b∈Rda,b\in\mathbb R^da,b∈Rd, the three losses are ofReal⁡(∑i(ai−bi)2)\operatorname{ofReal}(\sum_i(\sqrt{a_i}-\sqrt{b_i})^2)ofReal(∑i​(ai​​−bi​​)2); the value +∞+\infty+∞ if some ai≠0=bia_i\ne0=b_iai​=0=bi​, and otherwise ofReal⁡(∑i:ai≠0ailog⁡(ai/bi))\operatorname{ofReal}(\sum_{i:a_i\ne0}a_i\log(a_i/b_i))ofReal(∑i:ai​=0​ai​log(ai​/bi​)), using the natural logarithm; and ∑iχ(ai,bi)\sum_i\chi(a_i,b_i)∑i​χ(ai​,bi​), where χ(a,b)=0\chi(a,b)=0χ(a,b)=0 if a=b=0a=b=0a=b=0, +∞+\infty+∞ if b=0≠ab=0\ne ab=0=a, and ofReal⁡((a−b)2/b)\operatorname{ofReal}((a-b)^2/b)ofReal((a−b)2/b) otherwise. Zero entries of α\alphaα are permitted, and the sum uses extended nonnegative arithmetic, including 0⋅(+∞)=00\cdot(+\infty)=00⋅(+∞)=0.

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