Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered: PCA within a multiplicative spectral-tail factor

Open
QAlgorithms.Papers.Independent.Extend50.P32.relativeTailPCA

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. Fix δ>0\delta>0δ>0 first. There are Cδ>0C_\delta>0Cδ​>0 and Nδ≥2N_\delta\ge2Nδ​≥2, independent of d,k,n,ρd,k,n,\rhod,k,n,ρ, such that the first two clauses hold for n≥Nδn\ge N_\deltan≥Nδ​ in the stated regime. The second is a sufficient-count statement for every such nnn, avoiding an existential choice that could evade the regime. The final clause is unrestricted. All sample-count clauses have 0<ϵ<10<\epsilon<10<ϵ<1, choose nnn before ρ\rhoρ, and bound expected error.

k≤d/ln⁡n ⟹ Rk≤(1+δ)α>k+Cδkdln⁡(n)/n,n≥⌈Cδ(kd/ϵ)ln⁡(d/ϵ)⌉,k≤d/ln⁡n ⟹ Rk≤(1+δ)α>k+ϵ,∃n≤⌈Cδ(kd/ϵ)ln⁡2(d/ϵ)⌉:Rk≤(1+δ)α>k+ϵ.\begin{gathered} k\le d/\ln n\ \Longrightarrow\ R_k\le(1+\delta)\alpha_{>k}+C_\delta kd\ln(n)/n,\\ n\ge\left\lceil C_\delta(kd/\epsilon)\ln(d/\epsilon)\right\rceil,\quad k\le d/\ln n\ \Longrightarrow\ R_k\le(1+\delta)\alpha_{>k}+\epsilon,\\ \exists n\le\left\lceil C_\delta(kd/\epsilon)\ln^2(d/\epsilon)\right\rceil:\quad R_k\le(1+\delta)\alpha_{>k}+\epsilon.\end{gathered}k≤d/lnn ⟹ Rk​≤(1+δ)α>k​+Cδ​kdln(n)/n,n≥⌈Cδ​(kd/ϵ)ln(d/ϵ)⌉,k≤d/lnn ⟹ Rk​≤(1+δ)α>k​+ϵ,∃n≤⌈Cδ​(kd/ϵ)ln2(d/ϵ)⌉:Rk​≤(1+δ)α>k​+ϵ.​

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)

/-- Unnumbered relative-tail PCA conclusion, PDF pp.7,27-28. For fixed
delta>0 retain the single-log regime risk and its copy bound, separately
from the unrestricted log-squared copy bound. The printed geometric-mean
sentence's second Z2 is read as Z1, as its displayed formulas require.
Copy-complexity clauses use expected error, as the source's discussion does. -/
theorem relativeTailPCA : ∀ delta : ℝ, 0 < delta →
    ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, 2 ≤ N ∧
    (∀ (d n : ℕ) (hd : 0 < d) (hn : 0 < n), N ≤ n →
      ∀ k : ℕ, 1 ≤ k → k ≤ d → (k : ℝ) ≤ d / Real.log n →
      ∀ (alpha : Fin d → ℝ), Learning.IsDistribution alpha → Antitone alpha →
      ∀ (rho : Matrix (Fin d) (Fin d) ℂ) (hRho : IsDensityMatrix rho), HasSpectrum rho alpha →
        keylRisk hd hn k rho hRho ≤ ENNReal.ofReal
          ((1 + delta) * tail alpha k + C * k * d * Real.log n / n)) ∧
    (∀ (d : ℕ) (hd : 0 < d) (k : ℕ), 1 ≤ k → k ≤ d →
      ∀ epsilon : ℝ, 0 < epsilon → epsilon < 1 →
      (∀ (n : ℕ) (hn : 0 < n), N ≤ n →
        copyBudget C (((k : ℝ) * d / epsilon) * Real.log (d / epsilon)) ≤ n →
        (k : ℝ) ≤ d / Real.log n →
          ∀ (alpha : Fin d → ℝ), Learning.IsDistribution alpha → Antitone alpha →
          ∀ (rho : Matrix (Fin d) (Fin d) ℂ) (hRho : IsDensityMatrix rho), HasSpectrum rho alpha →
            keylRisk hd hn k rho hRho ≤ ENNReal.ofReal ((1 + delta) * tail alpha k + epsilon)) ∧
      (∃ (n : ℕ) (hn : 0 < n), n ≤ copyBudget C (((k : ℝ) * d / epsilon) * Real.log (d / epsilon) ^ 2) ∧
        ∀ (alpha : Fin d → ℝ), Learning.IsDistribution alpha → Antitone alpha →
        ∀ (rho : Matrix (Fin d) (Fin d) ℂ) (hRho : IsDensityMatrix rho), HasSpectrum rho alpha →
          keylRisk hd hn k rho hRho ≤ ENNReal.ofReal ((1 + delta) * tail alpha k + epsilon))) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P32

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

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

For every real δ>0\delta>0δ>0, there exist a real constant C>0C>0C>0 and a natural number N≥2N\ge2N≥2 for which the following three assertions hold. First, for all positive natural numbers d,nd,nd,n with n≥Nn\ge Nn≥N, all natural numbers 1≤k≤d1\le k\le d1≤k≤d satisfying k≤d/log⁡nk\le d/\log nk≤d/logn, all nonincreasing α∈Rd\alpha\in\mathbb R^dα∈Rd with nonnegative entries summing to one, and all positive semidefinite complex d×dd\times dd×d matrices ρ\rhoρ with trace one and characteristic polynomial ∏i=0d−1(X−αi)\prod_{i=0}^{d-1}(X-\alpha_i)∏i=0d−1​(X−αi​),

Rk(ρ)≤[(1+δ)∑i=kd−1αi+Ckdlog⁡nn]+.\mathcal R_k(\rho)\le \left[(1+\delta)\sum_{i=k}^{d-1}\alpha_i +\frac{Ckd\log n}{n}\right]_+ .Rk​(ρ)≤[(1+δ)i=k∑d−1​αi​+nCkdlogn​]+​.

Second, for every positive ddd, every 1≤k≤d1\le k\le d1≤k≤d, and every 0<ϵ<10<\epsilon<10<ϵ<1, every positive n≥Nn\ge Nn≥N satisfying

⌈Ckdϵlog⁡dϵ⌉N≤n,k≤dlog⁡n,\left\lceil C\frac{kd}{\epsilon}\log\frac d\epsilon\right\rceil_{\mathbb N}\le n, \qquad k\le\frac d{\log n},⌈Cϵkd​logϵd​⌉N​≤n,k≤lognd​,

satisfies Rk(ρ)≤[(1+δ)∑i=kd−1αi+ϵ]+\mathcal R_k(\rho)\le[(1+\delta)\sum_{i=k}^{d-1}\alpha_i+\epsilon]_+Rk​(ρ)≤[(1+δ)∑i=kd−1​αi​+ϵ]+​ for every such α,ρ\alpha,\rhoα,ρ. Third, for each of these d,k,ϵd,k,\epsilond,k,ϵ, there exists a positive nnn satisfying

n≤⌈Ckdϵ(log⁡dϵ)2⌉Nn\le \left\lceil C\frac{kd}{\epsilon} \left(\log\frac d\epsilon\right)^2\right\rceil_{\mathbb N}n≤⌈Cϵkd​(logϵd​)2⌉N​

for which that same risk bound holds for every such α,ρ\alpha,\rhoα,ρ; this existential choice is not required by the statement to satisfy n≥Nn\ge Nn≥N or k≤d/log⁡nk\le d/\log nk≤d/logn. Here log⁡\loglog is natural, ⌈a⌉N\lceil a\rceil_{\mathbb N}⌈a⌉N​ is the least nonnegative integer at least aaa, and [a]+=max⁡{a,0}[a]_+=\max\{a,0\}[a]+​=max{a,0} is viewed as an extended nonnegative real number. The risk is

Rk(ρ)=∫[Re⁡Tr⁡( Udiag⁡(λ0/n,…,λk−1/n,0,…,0)U∗ −ρ)2]+ dμρ,n(λ,U),\mathcal R_k(\rho)= \int\left[ \operatorname{Re}\operatorname{Tr} \left(\sqrt{\,U\operatorname{diag} (\lambda_0/n,\ldots,\lambda_{k-1}/n,0,\ldots,0)U^*\,} -\sqrt{\rho}\right)^2 \right]_+\,d\mu_{\rho,n}(\lambda,U),Rk​(ρ)=∫[ReTr(Udiag(λ0​/n,…,λk−1​/n,0,…,0)U∗​−ρ​)2]+​dμρ,n​(λ,U),

with positive semidefinite matrix square roots. The measure is on Young diagrams λ\lambdaλ with nnn cells and at most ddd rows and unitaries UUU; its density relative to counting measure times normalized Haar measure is

[mλsλ Re⁡∏j=0d−1det⁡ ⁣((U∗ρU)0:j, 0:j)λj−λj+1]+,\left[ m_\lambda s_\lambda\, \operatorname{Re}\prod_{j=0}^{d-1} \det\!\bigl((U^*\rho U)_{0:j,\,0:j}\bigr)^{\lambda_j-\lambda_{j+1}} \right]_+ ,[mλ​sλ​Rej=0∏d−1​det((U∗ρU)0:j,0:j​)λj​−λj+1​]+​,

where λd=0\lambda_d=0λd​=0, sλs_\lambdasλ​ counts fillings by 0,…,d−10,\ldots,d-10,…,d−1 weakly increasing along rows and strictly increasing down columns, and mλm_\lambdamλ​ is the complex dimension of the image of the matrix indexed by g,h∈Sng,h\in S_ng,h∈Sn​ with entry ∑a∈Rλ∑b∈Cλ, g=habsgn⁡(b)\sum_{a\in R_\lambda}\sum_{b\in C_\lambda,\ g=hab}\operatorname{sgn}(b)∑a∈Rλ​​∑b∈Cλ​, g=hab​sgn(b); here Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve rows and columns of the fixed numbered cells. The constants C,NC,NC,N may depend on δ\deltaδ but are shared by all three assertions. The restrictions on kkk in the first two assertions can leave no admissible positive kkk, in which case those assertions impose no bound for that d,nd,nd,n.

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