Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fact 1: concentration of every intermediate spectral estimate

Open
QAlgorithms.Papers.Independent.Advance50.P30.intermediate_frequency_concentrates

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

prove2quantum

Let H\mathcal HH be a finite-dimensional complex Hilbert space of dimension d≥1d\ge1d≥1, with a fixed orthonormal basis. All states below are positive operators of trace one; pure states are unit vectors. Write ∥⋅∥1\|\cdot\|_1∥⋅∥1​ for the full trace norm (the full ℓ1\ell_1ℓ1​ norm for classical distributions), H2H_2H2​ for binary entropy in bits, and define

e(δ,N,r,w)=2−N[δ2/4−H2(r/N)]+wlog⁡2(N/2+1).e(\delta,N,r,w)=2^{-N[\delta^2/4-H_2(r/N)]+w\log_2(N/2+1)}.e(δ,N,r,w)=2−N[δ2/4−H2​(r/N)]+wlog2​(N/2+1).

Use t≥1t\ge1t≥1 Hermitian, Hilbert–Schmidt orthonormal observables LiL_iLi​ and arbitrary real coefficients sis_isi​, and set Σ=∑i=1tsiLi\Sigma=\sum_{i=1}^t s_iL_iΣ=∑i=1t​si​Li​. For m′≥1m'\ge1m′≥1 let m=tm′m=tm'm=tm′. Measure each LiL_iLi​ spectrally on its own block of m′m'm′ sites, and measure Σ\SigmaΣ spectrally on a separate direct block. The indirect estimate is Im=∑isi1m′∑j=1m′λi,jI_m=\sum_i s_i\frac1{m'}\sum_{j=1}^{m'}\lambda_{i,j}Im​=∑i​si​m′1​∑j=1m′​λi,j​; the direct estimate Dq=1q∑j=1qγjD_q=\frac1q\sum_{j=1}^q\gamma_jDq​=q1​∑j=1q​γj​ uses all qqq sites in its block. All probabilities are the joint Born law of this tensor measurement, including its stated marginals.

Let σ\sigmaσ be a single-site state, and suppose the joint 2m2m2m-site state is mixed almost-power along σ\sigmaσ, meaning a reference reduction of a convex mixture of pure almost-power states along a purification of σ\sigmaσ. Assume 2r≤m′2r\le m'2r≤m′ and δ>0\delta>0δ>0. For each intermediate observable, let PiP_iPi​ be its spectral outcome distribution on σ\sigmaσ and let QiQ_iQi​ be its empirical spectral distribution on its assigned block. Then, under the same joint experiment with q=mq=mq=m,

Pr⁡{∥Pi−Qi∥1≥δ}≤e(δ,m′,r,d)(1≤i≤t).\Pr\{\|P_i-Q_i\|_1\ge\delta\}\le e(\delta,m',r,d)\qquad(1\le i\le t).Pr{∥Pi​−Qi​∥1​≥δ}≤e(δ,m′,r,d)(1≤i≤t).

The spectral alphabet has at most ddd outcomes. This estimate provides the marginal concentration needed for the indirect estimator and keeps the printed non-strict threshold.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P30
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P30

open QAlgorithms MeasureTheory

open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)

open QAlgorithms.Papers.Independent.Information100.P21 (Op Vec)

open QAlgorithms.Papers.Independent.Information100.P69 (permute)

open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.Elementwise

attribute [local instance] Classical.decEq Classical.propDecidable

attribute [local instance] QAlgorithms.Papers.Independent.Advance50.P30.matrixContinuousENorm

attribute [local instance] QAlgorithms.Papers.Independent.Advance50.P30.matrixMeasurable

attribute [local instance] QAlgorithms.Papers.Independent.Advance50.P30.matrixBorel

attribute [local instance] QAlgorithms.Papers.Independent.Advance50.P30.vectorMeasurable

attribute [local instance] QAlgorithms.Papers.Independent.Advance50.P30.vectorBorel

/-- PDF p.19, Fact 1, Eqs.(21)--(22): each marginal of the specified joint
experiment. The ≥ version follows from the > Chernoff estimate by taking
thresholds up to delta; no estimate is assumed as a hypothesis.
Printed setup only requires r ≤ m; changed to 2*r ≤ mp because the
invoked Theorem 1(3) requires r ≤ half the measured block length. -/
theorem intermediate_frequency_concentrates {I : Type} [Fintype I] [DecidableEq I]
    [Nonempty I] (t mp r : ℕ) (ht : 0 < t) (hmp : 0 < mp) (hr : 2 * r ≤ mp)
    (D : HSDecomposition I t) (S : Spectral I) (hS : S.operator = D.operator)
    (sigma : DensityState I) (rho : Op (Copies I (t * mp + t * mp)))
    (halong : AlmostAlong sigma (t * mp + t * mp) r rho)
    (delta : ℝ) (hdelta : 0 < delta) (i : Fin t) :
    estimationEvent D S mp (t * mp) rho (fun out =>
      l1 (fun a => effectProb ((D.intermediate i).effect a) sigma.val)
        (empiricalFrequency (out.1 i)) ≥ delta) ≤
      chernoffError delta mp r (Fintype.card I) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P30

end
Source
Unconditional privacy over channels which cannot convey quantum information, arXiv:quant-ph/0702077v1, PDF p. 19, Fact 1
Read-back

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

Let III be a finite, nonempty type with decidable equality, put d=∣I∣d=|I|d=∣I∣, and take natural numbers t,mp,rt,m_p,rt,mp​,r with t>0t>0t>0, mp>0m_p>0mp​>0, and 2r≤mp2r\le m_p2r≤mp​. For every i<ti<ti<t, let Ei,aE_{i,a}Ei,a​ be a family of nonzero positive semidefinite, pairwise orthogonal projections summing to the identity, with a positive number of outcomes at most ddd, and distinct real values vi,av_{i,a}vi,a​. Define Ai=∑avi,aEi,aA_i=\sum_a v_{i,a}E_{i,a}Ai​=∑a​vi,a​Ei,a​, assume tr⁡(AiAj†)\operatorname{tr}(A_iA_j^\dagger)tr(Ai​Aj†​) equals 111 when i=ji=ji=j and 000 otherwise, take real coefficients cic_ici​, and put A=∑iciAiA=\sum_i c_iA_iA=∑i​ci​Ai​. Also let FbF_bFb​ be another such projection family, with a positive number of outcomes at most ddd and distinct real values sbs_bsb​, satisfying ∑bsbFb=A\sum_b s_bF_b=A∑b​sb​Fb​=A. Let σ\sigmaσ be positive semidefinite with trace one on III, and let ρ\rhoρ be a matrix on I2tmpI^{2tm_p}I2tmp​ with the following property: ρ\rhoρ is positive semidefinite with trace one, and there exist a unit vector θ\thetaθ on I×II\times II×I and a positive semidefinite, trace-one matrix Ω\OmegaΩ on (I×I)2tmp(I\times I)^{2tm_p}(I×I)2tmp​ such that

σ(a,a′)=∑bθ(a,b)θ(a′,b)‾,ρ(x,y)=∑zΩ((xj,zj)j,(yj,zj)j).\sigma(a,a')=\sum_b\theta(a,b)\overline{\theta(a',b)}, \qquad \rho(x,y)=\sum_z\Omega((x_j,z_j)_j,(y_j,z_j)_j).σ(a,a′)=b∑​θ(a,b)θ(a′,b)​,ρ(x,y)=z∑​Ω((xj​,zj​)j​,(yj​,zj​)j​).

The matrix Ω\OmegaΩ must be a finite convex combination of ψψ†\psi\psi^\daggerψψ†, where ψ\psiψ is a permutation-invariant unit vector in the complex span of vectors (∏j∉Tθ(xj))χ(x∣T)\bigl(\prod_{j\notin T}\theta(x_j)\bigr)\chi(x|_T)(∏j∈/T​θ(xj​))χ(x∣T​), for arbitrary χ\chiχ and ∣T∣≤r|T|\le r∣T∣≤r. Consider the joint product measurement that uses the iii-th intermediate projection family on its mpm_pmp​ designated sites among the first tmptm_ptmp​ sites, for every i<ti<ti<t, and uses the family FFF on the remaining tmptm_ptmp​ sites. Its outcome weight is Re⁡tr⁡(Boρ)\operatorname{Re}\operatorname{tr}(B_o\rho)Retr(Bo​ρ), where BoB_oBo​ is the tensor product of all the selected projections in those positions. For every real δ>0\delta>0δ>0 and every i<ti<ti<t, write oi,jo_{i,j}oi,j​ for that intermediate block’s outcomes and set

pi(a)=Re⁡tr⁡(Ei,aσ),p^i(a)=∣{j<mp:oi,j=a}∣mp.p_i(a)=\operatorname{Re}\operatorname{tr}(E_{i,a}\sigma), \qquad \widehat p_i(a)=\frac{|\{j<m_p:o_{i,j}=a\}|}{m_p}.pi​(a)=Retr(Ei,a​σ),p​i​(a)=mp​∣{j<mp​:oi,j​=a}∣​.

Then

∑o∑a∣pi(a)−p^i(a)∣≥δRe⁡tr⁡(Boρ)≤2−mp(δ2/4−h2(r/mp))+dlog⁡2(mp/2+1),h2(u)=binEntropy⁡(u)log⁡2.\sum_{\substack{o\\\sum_a|p_i(a)-\widehat p_i(a)|\ge\delta}} \operatorname{Re}\operatorname{tr}(B_o\rho) \le 2^{-m_p\left(\delta^2/4-h_2(r/m_p)\right) +d\log_2(m_p/2+1)}, \qquad h_2(u)=\frac{\operatorname{binEntropy}(u)}{\log 2}.o∑a​∣pi​(a)−p​i​(a)∣≥δ​∑​Retr(Bo​ρ)≤2−mp​(δ2/4−h2​(r/mp​))+dlog2​(mp​/2+1),h2​(u)=log2binEntropy(u)​.

The event uses a non-strict inequality ≥δ\ge\delta≥δ, and the factor in the exponent is the full dimension ddd, regardless of the intermediate measurement’s number of outcomes. The case r=0r=0r=0 is 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