Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.18: Top-k spectrum learning sample complexity

Open
QAlgorithms.Papers.Independent.Extend50.P32.topSpectrumLearning

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

prove2quantum

Let d≥1d\ge1d≥1 and let ρ∈Cd×d\rho\in\mathbb C^{d\times d}ρ∈Cd×d be positive semidefinite of trace one, with nonincreasing spectrum α\alphaα. On n≥1n\ge1n≥1 copies the concrete Keyl experiment draws a weak-Schur shape λ\lambdaλ and then V∼Kλ(ρ)V\sim K_\lambda(\rho)V∼Kλ​(ρ). Its rank-kkk report is ρ^k=Vdiag⁡(λ1/n,…,λk/n,0,…,0)V†\widehat\rho_k=V\operatorname{diag}(\lambda_1/n,\ldots,\lambda_k/n,0,\ldots,0)V^\daggerρ​k​=Vdiag(λ1​/n,…,λk​/n,0,…,0)V†, with no renormalization, for 1≤k≤d1\le k\le d1≤k≤d. Write Rk=EDH2(ρ^k,ρ)R_k=\mathbb E D_{H^2}(\widehat\rho_k,\rho)Rk​=EDH2​(ρ​k​,ρ), where DH2(A,B)=Tr⁡((A−B)2)D_{H^2}(A,B)=\operatorname{Tr}((\sqrt A-\sqrt B)^2)DH2​(A,B)=Tr((A​−B​)2), and α>k=∑i=k+1dαi\alpha_{>k}=\sum_{i=k+1}^d\alpha_iα>k​=∑i=k+1d​αi​. The full report has k=dk=dk=d. For every 0<ϵ<10<\epsilon<10<ϵ<1, one absolute constant C>0C>0C>0 suffices. The positive integer sample count is chosen from d,k,ϵd,k,\epsilond,k,ϵ before the unknown state or spectrum. The guarantees are expected loss at most ϵ\epsilonϵ and success probability at least 2/32/32/3, separately for each indicated metric; integer budgets are rounded upward. No runtime or arbitrary-confidence claim is made. For these spectrum statements use EYD: weak Schur sampling followed by the report α^=λ/n\widehat\alpha=\lambda/nα=λ/n. 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.

nH2,χ2≤⌈Ckdϵ⌉,nℓ22≤⌈Ckϵ⌉,ED(k)(α^,α)≤ϵ,Pr⁡{D(k)(α^,α)≤ϵ}≥23.n_{H^2,\chi^2}\le\left\lceil C\frac{kd}{\epsilon}\right\rceil,\qquad n_{\ell_2^2}\le\left\lceil C\frac{k}{\epsilon}\right\rceil,\qquad\mathbb E D^{(k)}(\widehat\alpha,\alpha)\le\epsilon,\quad\Pr\{D^{(k)}(\widehat\alpha,\alpha)\le\epsilon\}\ge\frac23.nH2,χ2​≤⌈Cϵkd​⌉,nℓ22​​≤⌈Cϵk​⌉,ED(k)(α,α)≤ϵ,Pr{D(k)(α,α)≤ϵ}≥32​.

This is a sample-complexity or risk guarantee for the concrete collective measurement and public decoder; it asserts no gate bound.

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.18, PDF p.7: first-k unnormalized entries. The weighted and
Euclidean guarantees have different copy counts. No trace renormalization. -/
theorem topSpectrumLearning : ∃ C : ℝ, 0 < C ∧
    ∀ (d : ℕ) (hd : 0 < d) (k : ℕ), 1 ≤ k → k ≤ d →
      ∀ epsilon : ℝ, 0 < epsilon → epsilon < 1 →
      (∃ (n : ℕ) (hn : 0 < n), n ≤ copyBudget C ((k : ℝ) * d / epsilon) ∧
        ∀ (alpha : Fin d → ℝ) (hAlpha : Learning.IsDistribution alpha) (hSorted : Antitone alpha)
          (metric : WeightedMetric),
          eydRisk hd hn alpha hAlpha hSorted (weightedLoss metric k) ≤ ENNReal.ofReal epsilon ∧
          ENNReal.ofReal (2 / 3 : ℝ) ≤ eydSuccess hd hn alpha hAlpha hSorted (weightedLoss metric k) epsilon) ∧
      (∃ (n : ℕ) (hn : 0 < n), n ≤ copyBudget C ((k : ℝ) / epsilon) ∧
        ∀ (alpha : Fin d → ℝ) (hAlpha : Learning.IsDistribution alpha) (hSorted : Antitone alpha),
          eydRisk hd hn alpha hAlpha hSorted (fun a b => ENNReal.ofReal (l2 k a b)) ≤ ENNReal.ofReal epsilon ∧
          ENNReal.ofReal (2 / 3 : ℝ) ≤ eydSuccess hd hn alpha hAlpha hSorted
            (fun a b => ENNReal.ofReal (l2 k a b)) epsilon) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P32

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

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

There exists a real constant C>0C>0C>0 such that, for every integer d>0d>0d>0, every integer 1≤k≤d1\le k\le d1≤k≤d, and every 0<ϵ<10<\epsilon<10<ϵ<1, both following sample-size assertions hold. For clarity, the measure used in each assertion is defined as follows: for every Young diagram λ\lambdaλ with nnn cells and at most ddd rows, number its cells, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be its row-preserving and column-preserving permutations, form (Yλ)g,h=∑r∈Rλ,c∈Cλ1{g=hrc}sgn⁡(c)(Y_\lambda)_{g,h}=\sum_{r\in R_\lambda,c\in C_\lambda}\mathbf1_{\{g=hrc\}}\operatorname{sgn}(c)(Yλ​)g,h​=∑r∈Rλ​,c∈Cλ​​1{g=hrc}​sgn(c), and let PλP_\lambdaPλ​ project orthogonally onto its range. With (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​, χλ(π)=tr⁡(LπPλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi P_\lambda)χλ​(π)=tr(Lπ​Pλ​), fλ=rank⁡Yλf_\lambda=\operatorname{rank}Y_\lambdafλ​=rankYλ​, and (Tπ)y,x=1{y=x∘π−1}(T_\pi)_{y,x}=\mathbf1_{\{y=x\circ\pi^{-1}\}}(Tπ​)y,x​=1{y=x∘π−1}​, put Πλ=(fλ/n!)∑πχλ(π−1)Tπ\Pi_\lambda=(f_\lambda/n!)\sum_\pi\chi_\lambda(\pi^{-1})T_\piΠλ​=(fλ​/n!)∑π​χλ​(π−1)Tπ​. For a probability vector α\alphaα, give λ\lambdaλ mass max⁡{0,Re⁡tr⁡(ΠλDα)}\max\{0,\operatorname{Re}\operatorname{tr}(\Pi_\lambda D_\alpha)\}max{0,Retr(Πλ​Dα​)}, where DαD_\alphaDα​ is diagonal with word entry ∏iαxi\prod_i\alpha_{x_i}∏i​αxi​​, and report α^i=λi/n\widehat\alpha_i=\lambda_i/nαi​=λi​/n, assigning missing rows length zero. First, there exists n>0n>0n>0 with n≤⌈Ckd/ϵ⌉+n\le\lceil Ckd/\epsilon\rceil_+n≤⌈Ckd/ϵ⌉+​ such that, simultaneously for every nonincreasing probability vector α\alphaα and each of the two losses

∑i=0k−1(α^i−αi)2,∑i=0k−1(α^i−αi)2αi,\sum_{i=0}^{k-1}(\sqrt{\widehat\alpha_i}-\sqrt{\alpha_i})^2, \qquad \sum_{i=0}^{k-1}\frac{(\widehat\alpha_i-\alpha_i)^2}{\alpha_i},i=0∑k−1​(αi​​−αi​​)2,i=0∑k−1​αi​(αi​−αi​)2​,

the integral of the loss is at most ϵ\epsilonϵ and the measure of the event that it is at most ϵ\epsilonϵ is at least 2/32/32/3. A chi-squared summand at αi=0\alpha_i=0αi​=0 is 000 if α^i=0\widehat\alpha_i=0αi​=0 and +∞+\infty+∞ otherwise; real expressions are converted to nonnegative extended reals by truncating below at zero. Second, there exists a possibly different n>0n>0n>0 with n≤⌈Ck/ϵ⌉+n\le\lceil Ck/\epsilon\rceil_+n≤⌈Ck/ϵ⌉+​ such that these same risk and success bounds hold, for every nonincreasing probability vector α\alphaα, for the loss ∑i=0k−1(α^i−αi)2\sum_{i=0}^{k-1}(\widehat\alpha_i-\alpha_i)^2∑i=0k−1​(αi​−αi​)2. Each sample size is uniform over its subsequently quantified distributions and losses. Zero probabilities, k=dk=dk=d, and d=1d=1d=1 are included.

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