Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3: direct versus indirect estimation on invariant states

Open
QAlgorithms.Papers.Independent.Advance50.P30.invariant_direct_indirect_estimation

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 n≥1n\ge1n≥1, 2r≤m′2r\le m'2r≤m′, δ>0\delta>0δ>0, and let ρ2m+n\rho_{2m+n}ρ2m+n​ be a normalized density operator invariant under every copy permutation. Use the direct block of size q=m+nq=m+nq=m+n, in the same tensor experiment as the indirect block. For h=∥Σ∥HS>0h=\|\Sigma\|_{\mathrm{HS}}>0h=∥Σ∥HS​>0,

Pr⁡ρ2m+n{∣Im−Dm+n∣>3δ}≤e1+e2+e3,\Pr_{\rho_{2m+n}}\{|I_m-D_{m+n}|>3\delta\}\le e_1+e_2+e_3,ρ2m+n​Pr​{∣Im​−Dm+n​∣>3δ}≤e1​+e2​+e3​,

where

e1=2exp⁡ ⁣[−n(r+1)2(2m+n)+d22ln⁡n],e2=(t+1)e ⁣(δht,m′,r,d),e3=dexp⁡ ⁣[−mδ28dh2].e_1=2\exp\!\left[-\frac{n(r+1)}{2(2m+n)}+\frac{d^2}{2}\ln n\right],\qquad e_2=(t+1)e\!\left(\frac{\delta}{h\sqrt t},m',r,d\right),\qquad e_3=d\exp\!\left[-\frac{m\delta^2}{8dh^2}\right].e1​=2exp[−2(2m+n)n(r+1)​+2d2​lnn],e2​=(t+1)e(ht​δ​,m′,r,d),e3​=dexp[−8dh2mδ2​].

When h=0h=0h=0, the deviation probability is zero. Neither an IID hypothesis nor pure symmetric support is required. This is the general comparison theorem underpinning indirect observable estimation on coherent, permutation-invariant inputs.

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 pp.22--23, Theorem 3, Eqs.(33)--(36): general invariant mixed input.
The exponent in e1 includes +(d^2/2)*ln n. In proof Eq.(38), delta replaces
the printed 3*delta so the triangle step gives Eq.(33)'s 3*delta; the theorem
statement itself is unchanged. The zero observable is handled deterministically.
The printed setup r ≤ m is restricted to 2*r ≤ mp, as required by the
cited reduced-block Chernoff estimate. No other error constant changes. -/
theorem invariant_direct_indirect_estimation {I : Type} [Fintype I] [DecidableEq I]
    [Nonempty I] (t mp n r : ℕ) (ht : 0 < t) (hmp : 0 < mp) (hn : 0 < n)
    (hr : 2 * r ≤ mp) (D : HSDecomposition I t) (S : Spectral I)
    (hS : S.operator = D.operator)
    (rho : Op (Copies I (t * mp + (t * mp + n))))
    (hrho : IsDensityMatrix rho) (hinv : InvariantCopyState rho)
    (delta : ℝ) (hdelta : 0 < delta) :
    (frobNorm D.operator = 0 →
      estimationEvent D S mp (t * mp + n) rho
        (fun out => |indirectMean D out - directMean S out| > 3 * delta) = 0) ∧
    (0 < frobNorm D.operator →
      estimationEvent D S mp (t * mp + n) rho
        (fun out => |indirectMean D out - directMean S out| > 3 * delta) ≤
        deFinettiError (t * mp + t * mp) n r (Fintype.card I) +
        ((t : ℝ) + 1) * chernoffError
          (delta / (frobNorm D.operator * Real.sqrt t)) mp r (Fintype.card I) +
        samplingError delta (t * mp) (Fintype.card I) (frobNorm D.operator)) := 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. 22, Theorem 3
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 let t,mp,n,r∈Nt,m_p,n,r\in\mathbb Nt,mp​,n,r∈N satisfy t>0t>0t>0, mp>0m_p>0mp​>0, n>0n>0n>0, and 2r≤mp2r\le m_p2r≤mp​. For each i<ti<ti<t, take nonzero positive semidefinite, pairwise orthogonal projections Ei,aE_{i,a}Ei,a​ 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†)=1\operatorname{tr}(A_iA_j^\dagger)=1tr(Ai​Aj†​)=1 when i=ji=ji=j and 000 otherwise, take real coefficients cic_ici​, and set A=∑iciAiA=\sum_i c_iA_iA=∑i​ci​Ai​. Take another family FbF_bFb​ of nonzero positive semidefinite, pairwise orthogonal projections summing to the identity, with a positive number of outcomes at most ddd and distinct real values sbs_bsb​, such that ∑bsbFb=A\sum_b s_bF_b=A∑b​sb​Fb​=A. Let ρ\rhoρ be positive semidefinite with trace one on I2tmp+nI^{2tm_p+n}I2tmp​+n, and assume ρ(x∘π,y∘π)=ρ(x,y)\rho(x\circ\pi,y\circ\pi)=\rho(x,y)ρ(x∘π,y∘π)=ρ(x,y) for every permutation π\piπ of all 2tmp+n2tm_p+n2tmp​+n positions. For a real δ>0\delta>0δ>0, consider the joint product measurement that applies the iii-th intermediate family to its mpm_pmp​ designated sites among the first tmptm_ptmp​ sites and applies FFF to all remaining tmp+ntm_p+ntmp​+n sites. For joint outcomes o=(oi,j,bj)o=(o_{i,j},b_j)o=(oi,j​,bj​), let BoB_oBo​ be the tensor product of the selected projections and define

Mind(o)=∑i<tci∑j<mpvi,oi,jmp,Mdir(o)=∑j<tmp+nsbjtmp+n,Pρ(E)=∑o:E(o)Re⁡tr⁡(Boρ).M_{\rm ind}(o)= \sum_{i<t}c_i\frac{\sum_{j<m_p}v_{i,o_{i,j}}}{m_p}, \qquad M_{\rm dir}(o)= \frac{\sum_{j<tm_p+n}s_{b_j}}{tm_p+n}, \qquad P_\rho(\mathcal E)= \sum_{o:\mathcal E(o)}\operatorname{Re}\operatorname{tr}(B_o\rho).Mind​(o)=i<t∑​ci​mp​∑j<mp​​vi,oi,j​​​,Mdir​(o)=tmp​+n∑j<tmp​+n​sbj​​​,Pρ​(E)=o:E(o)∑​Retr(Bo​ρ).

Put h=∥A∥F=(∑x,y∣Axy∣2)1/2h=\|A\|_{\mathrm F}=(\sum_{x,y}|A_{xy}|^2)^{1/2}h=∥A∥F​=(∑x,y​∣Axy​∣2)1/2, and define

D(N,k,r,d)=2exp⁡ ⁣(−k(r+1)2(N+k)+d22log⁡k),C(u,N,r,d)=2−N(u2/4−h2(r/N))+dlog⁡2(N/2+1),h2(v)=binEntropy⁡(v)log⁡2.D(N,k,r,d)= 2\exp\!\left(-\frac{k(r+1)}{2(N+k)} +\frac{d^2}{2}\log k\right), \qquad C(u,N,r,d)= 2^{-N\left(u^2/4-h_2(r/N)\right)+d\log_2(N/2+1)}, \qquad h_2(v)=\frac{\operatorname{binEntropy}(v)}{\log 2}.D(N,k,r,d)=2exp(−2(N+k)k(r+1)​+2d2​logk),C(u,N,r,d)=2−N(u2/4−h2​(r/N))+dlog2​(N/2+1),h2​(v)=log2binEntropy(v)​.

Then both of the following implications hold:

h=0 ⟹ Pρ(∣Mind−Mdir∣>3δ)=0,h=0\ \Longrightarrow\ P_\rho\bigl(|M_{\rm ind}-M_{\rm dir}|>3\delta\bigr)=0,h=0 ⟹ Pρ​(∣Mind​−Mdir​∣>3δ)=0, h>0 ⟹ Pρ(∣Mind−Mdir∣>3δ)≤D(2tmp,n,r,d)+(t+1)C ⁣(δht,mp,r,d)+dexp⁡ ⁣(−tmp δ28dh2).h>0\ \Longrightarrow\ P_\rho\bigl(|M_{\rm ind}-M_{\rm dir}|>3\delta\bigr) \le D(2tm_p,n,r,d) +(t+1)C\!\left(\frac{\delta}{h\sqrt t},m_p,r,d\right) +d\exp\!\left(-\frac{tm_p\,\delta^2}{8dh^2}\right).h>0 ⟹ Pρ​(∣Mind​−Mdir​∣>3δ)≤D(2tmp​,n,r,d)+(t+1)C(ht​δ​,mp​,r,d)+dexp(−8dh2tmp​δ2​).

The last term is the specified sampling-error expression with sample parameter tmptm_ptmp​. The assumptions allow r=0r=0r=0, and no upper bound on δ\deltaδ is imposed.

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