Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 5.2: Keyl prefix alignment deficit

Open
QAlgorithms.Papers.Independent.Extend50.P32.keylPrefixAlignment

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. Work in the Section 5.1 eigenbasis ρ=diag⁡(α)\rho=\operatorname{diag}(\alpha)ρ=diag(α) and put R=V†ρVR=V^\dagger\rho VR=V†ρV. Conditional on VVV, choose any measurable permutation mixture satisfying Pr⁡{π(i)=a∣V}=∣Vai∣2\Pr\{\pi(i)=a\mid V\}=|V_{a i}|^2Pr{π(i)=a∣V}=∣Vai​∣2. The prefix parameter is 1≤j≤d1\le j\le d1≤j≤d.

E∑i=1j(αi−Rii)=E∑i=1j(αi−απ(i))≤E[λˉ≤j−α≤j]+jdn.\mathbb E\sum_{i=1}^j(\alpha_i-R_{ii})=\mathbb E\sum_{i=1}^j(\alpha_i-\alpha_{\pi(i)})\le\mathbb E[\bar\lambda_{\le j}-\alpha_{\le j}]+\frac{jd}{n}.Ei=1∑j​(αi​−Rii​)=Ei=1∑j​(αi​−απ(i)​)≤E[λˉ≤j​−α≤j​]+njd​.

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)

/-- Corollary 5.2, PDF p.23: equality with the induced-permutation deficit
AND the upper bound. rho is diagonal in the Section 5.1 basis; the kernel
has actual |V_(a,i)|^2 marginals, not an assumed alignment bound. -/
theorem keylPrefixAlignment {d n : ℕ} (hd : 0 < d) (hn : 0 < n)
    (alpha : Fin d → ℝ) (hAlpha : Learning.IsDistribution alpha) (hSorted : Antitone alpha)
    (rho : Matrix (Fin d) (Fin d) ℂ) (hRho : IsDensityMatrix rho)
    (hDiagonal : rho = Matrix.diagonal (fun i => (alpha i : ℂ))) (P : InducedPermutation d)
    (j : ℕ) (hj : 1 ≤ j) (hjd : j ≤ d) :
    keylMean hd hn rho hRho (fun V => ∑ i : Fin d, if i.val < j then
      alpha i - ((star (V : Matrix (Fin d) (Fin d) ℂ) * rho *
        (V : Matrix (Fin d) (Fin d) ℂ) : Matrix (Fin d) (Fin d) ℂ) i i).re else 0) =
      permutationMean hd hn rho hRho 1 P (fun pi => prefixMass alpha j - prefixMass (fun i => alpha (pi i)) j) ∧
    permutationMean hd hn rho hRho 1 P (fun pi => prefixMass alpha j - prefixMass (fun i => alpha (pi i)) j) ≤
      normalizedExcess alpha j n + (j : ℝ) * d / n := by sorry

end QAlgorithms.Papers.Independent.Extend50.P32

end
Source
Efficient quantum tomography II, arXiv:1612.00034v1, PDF p. 23, Corollary 5.2
Read-back

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

For positive integers d,nd,nd,n, let α∈Rd\alpha\in\mathbb R^dα∈Rd be a nonincreasing probability vector, and let ρ\rhoρ be a positive semidefinite complex d×dd\times dd×d matrix of trace 111 satisfying ρ=diag⁡(α)\rho=\operatorname{diag}(\alpha)ρ=diag(α). Suppose PPP assigns to every unitary VVV nonnegative weights pV(π)p_V(\pi)pV​(π) on permutations of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, measurable in VVV for each π\piπ, with ∑πpV(π)=1\sum_\pi p_V(\pi)=1∑π​pV​(π)=1 and ∑π:π(i)=apV(π)=∣Va,i∣2\sum_{\pi:\pi(i)=a}p_V(\pi)=|V_{a,i}|^2∑π:π(i)=a​pV​(π)=∣Va,i​∣2. Let 1≤j≤d1\le j\le d1≤j≤d. Define a measure μρ\mu_\rhoμρ​ on pairs (λ,V)(\lambda,V)(λ,V), with λ\lambdaλ a Young diagram of nnn cells and at most ddd rows, by counting measure times normalized Haar measure and density

max⁡ ⁣{0, fλsλRe⁡∏r=0d−1det⁡ ⁣((V∗ρV){0,…,r},{0,…,r})λr−λr+1}.\max\!\left\{0,\, f_\lambda s_\lambda\operatorname{Re} \prod_{r=0}^{d-1} \det\!\big((V^*\rho V)_{\{0,\ldots,r\},\{0,\ldots,r\}}\big)^{ \lambda_r-\lambda_{r+1}}\right\}.max{0,fλ​sλ​Rer=0∏d−1​det((V∗ρV){0,…,r},{0,…,r}​)λr​−λr+1​}.

Here fλf_\lambdafλ​ is the rank of the matrix (Yλ)g,h=∑a,b1{g=hab}sgn⁡(b)(Y_\lambda)_{g,h}=\sum_{a,b}\mathbf1_{\{g=hab\}}\operatorname{sgn}(b)(Yλ​)g,h​=∑a,b​1{g=hab}​sgn(b) on permutations of the numbered cells, with aaa preserving rows and bbb preserving columns; sλs_\lambdasλ​ counts fillings by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} weakly increasing along rows and strictly increasing down columns, and missing row lengths are zero. Then

∫∑i=0j−1(αi−Re⁡(V∗ρV)ii) dμρ=∫∑πpV(π)(∑i=0j−1αi−∑i=0j−1απ(i))dμρ,∫∑πpV(π)(∑i=0j−1αi−∑i=0j−1απ(i))dμρ≤E[λ0ins+⋯+λj−1ins]−n∑i=0j−1αin+jdn.\begin{aligned} \int\sum_{i=0}^{j-1}\bigl(\alpha_i-\operatorname{Re}(V^*\rho V)_{ii}\bigr)\,d\mu_\rho &=\int\sum_\pi p_V(\pi) \left(\sum_{i=0}^{j-1}\alpha_i-\sum_{i=0}^{j-1}\alpha_{\pi(i)}\right)d\mu_\rho,\\ \int\sum_\pi p_V(\pi) \left(\sum_{i=0}^{j-1}\alpha_i-\sum_{i=0}^{j-1}\alpha_{\pi(i)}\right)d\mu_\rho &\le \frac{\mathbb E[\lambda^{\rm ins}_0+\cdots+\lambda^{\rm ins}_{j-1}] -n\sum_{i=0}^{j-1}\alpha_i}{n} +\frac{jd}{n}. \end{aligned}∫i=0∑j−1​(αi​−Re(V∗ρV)ii​)dμρ​∫π∑​pV​(π)(i=0∑j−1​αi​−i=0∑j−1​απ(i)​)dμρ​​=∫π∑​pV​(π)(i=0∑j−1​αi​−i=0∑j−1​απ(i)​)dμρ​,≤nE[λ0ins​+⋯+λj−1ins​]−n∑i=0j−1​αi​​+njd​.​

The expectation on the right is separately defined by drawing an independent length-nnn word with letter probabilities α\alphaα and inserting letters into rows, replacing the first strictly larger letter and passing it to the next row, or appending when none exists; λins\lambda^{\rm ins}λins denotes those row lengths, with absent rows zero. Both integrals use the displayed joint measure, and the permutation weights are evaluated at VVV itself, corresponding to the identity reference unitary. Zero entries of α\alphaα, j=dj=dj=d, and d=1d=1d=1 are permitted.

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