Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact Pauli/binomial information spectrum

Open
QAlgorithms.Papers.Independent.Advance50.P02.pauli_binomial_spectrum

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

prove2quantum

All Hilbert spaces are finite dimensional and complex; all logarithms are binary. Positive-operator inequalities use the identity when comparing with a scalar. For the Pauli example let 0≤p<1/20\le p<1/20≤p<1/2 and 0≤ε<10\le\varepsilon<10≤ε<1. The nontrivial NS arrays are P=(p/2,p/2,(1−p)/2,(1−p)/2)P=(p/2,p/2,(1-p)/2,(1-p)/2)P=(p/2,p/2,(1−p)/2,(1−p)/2) and Q=(p2,p2,(1−p)2,(1−p)2)Q=(p^2,p^2,(1-p)^2,(1-p)^2)Q=(p2,p2,(1−p)2,(1−p)2). Additional zero-PPP entries do not affect the spectrum; the reference is not normalized here. For p>0p>0p>0, define F(k−1;n,p)=Pr⁡[Bin⁡(n,p)<k]F(k-1;n,p)=\Pr[\operatorname{Bin}(n,p)<k]F(k−1;n,p)=Pr[Bin(n,p)<k] with F(−1)=0F(-1)=0F(−1)=0, and k∗=max⁡{0≤k≤n:F(k−1;n,p)≤ε}k_* =\max\{0\le k\le n:F(k-1;n,p)\le\varepsilon\}k∗​=max{0≤k≤n:F(k−1;n,p)≤ε}. Then

Dsε(P⊗n∥Q⊗n)=k∗log⁡1−pp+nlog⁡12(1−p).D_s^\varepsilon(P^{\otimes n}\Vert Q^{\otimes n})=k_*\log\frac{1-p}{p}+n\log\frac1{2(1-p)}.Dsε​(P⊗n∥Q⊗n)=k∗​logp1−p​+nlog2(1−p)1​.

At p=0p=0p=0 the spectrum is −n-n−n. For n=1n=1n=1, the cutoff changes from 000 to 111 at ε=1−p\varepsilon=1-pε=1−p. The formula permits exact finite-block evaluation.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P02
Formal statement
noncomputable section

open Filter

open scoped BigOperators Matrix ComplexOrder ComplexConjugate Matrix.Norms.L2Operator Topology

namespace QAlgorithms.Papers.Independent.Advance50.P02

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P63
  (Mat tensorPower logTwo normalQuantile testingBeta)

open QAlgorithms.Papers.Independent.Information100.P71 (SupportIncluded supportPower)

open QAlgorithms (effectProb)

open QAlgorithms.Papers.Independent.Information100.P06 (Below)

open QAlgorithms.Papers.Independent.Information100.P30 (tensorMap)

open QAlgorithms.Papers.Independent.Information100.P67 (purifiedDistance)

open QAlgorithms.Papers.Independent.Dependency50.P26 (TracePreserving)

open QAlgorithms.Papers.Independent.Dependency50.P28 (pinch)

variable {I J A B X Z : Type} [Fintype I] [DecidableEq I]
  [Fintype J] [DecidableEq J] [Fintype A] [DecidableEq A]
  [Fintype B] [DecidableEq B] [Fintype X] [DecidableEq X]
  [Fintype Z] [DecidableEq Z]

/-- Appendix A, PDF pp.24--25: exact spectrum with strict positive-p branch and
p=0 treated separately. For n=1 the atom boundary is epsilon=1-p, as follows
from the displayed Bernoulli rescaling (the plan's epsilon=p check was incorrect). -/
theorem pauli_binomial_spectrum (p e : ℝ) (hp : 0 ≤ p ∧ p < 1/2)
    (he : 0 ≤ e ∧ e < 1) (n : ℕ) :
    (p = 0 → classicalSpectrumDivergence e (weightPower n (pauliP p)) (weightPower n (pauliQ p)) =
      ((-(n : ℝ) : ℝ) : EReal)) ∧
    (0 < p → classicalSpectrumDivergence e (weightPower n (pauliP p)) (weightPower n (pauliQ p)) =
      (((binomialCutoff n p e : ℝ)*logTwo ((1-p)/p) +
        n*logTwo (1/(2*(1-p))) : ℝ) : EReal)) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P02

end
Source
A Hierarchy of Information Quantities for Finite Block Length Analysis of Quantum Tasks, arXiv:1208.1478v3, PDF p. 25, Appendix A: exact Pauli/binomial spectrum
Read-back

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

For all real numbers p,ep,ep,e satisfying 0≤p<120\le p<\tfrac120≤p<21​ and 0≤e<10\le e<10≤e<1, and every natural number nnn, including zero, define functions on {0,1,2,3}\{0,1,2,3\}{0,1,2,3} by Pp=(p/2,p/2,(1−p)/2,(1−p)/2)P_p=(p/2,p/2,(1-p)/2,(1-p)/2)Pp​=(p/2,p/2,(1−p)/2,(1−p)/2) and Qp=(p2,p2,(1−p)2,(1−p)2)Q_p=(p^2,p^2,(1-p)^2,(1-p)^2)Qp​=(p2,p2,(1−p)2,(1−p)2), and define their product weights on words z∈{0,1,2,3}nz\in\{0,1,2,3\}^nz∈{0,1,2,3}n by Pp[n](z)=∏i=0n−1Pp(zi)P_p^{[n]}(z)=\prod_{i=0}^{n-1}P_p(z_i)Pp[n]​(z)=∏i=0n−1​Pp​(zi​) and Qp[n](z)=∏i=0n−1Qp(zi)Q_p^{[n]}(z)=\prod_{i=0}^{n-1}Q_p(z_i)Qp[n]​(z)=∏i=0n−1​Qp​(zi​). Write log⁡2x=ln⁡x/ln⁡2\log_2 x=\ln x/\ln2log2​x=lnx/ln2, using the total real logarithm, for which ln⁡0=0\ln0=0ln0=0, and define the extended-real quantity

Dspe(P,Q)=sup⁡{R∈R:∑{z: P(z)≤2RQ(z)}P(z)≤e}.D_{\mathrm{sp}}^e(P,Q)= \sup\left\{R\in\mathbb R: \sum_{\{z:\,P(z)\le2^R Q(z)\}}P(z)\le e\right\}.Dspe​(P,Q)=sup⎩⎨⎧​R∈R:{z:P(z)≤2RQ(z)}∑​P(z)≤e⎭⎬⎫​.

Then both implications hold:

p=0 ⟹ Dspe(Pp[n],Qp[n])=−n,p=0\ \Longrightarrow\ D_{\mathrm{sp}}^e(P_p^{[n]},Q_p^{[n]})=-n,p=0 ⟹ Dspe​(Pp[n]​,Qp[n]​)=−n, 0<p ⟹ Dspe(Pp[n],Qp[n])=Klog⁡21−pp+nlog⁡212(1−p),0<p\ \Longrightarrow\ D_{\mathrm{sp}}^e(P_p^{[n]},Q_p^{[n]}) =K\log_2\frac{1-p}{p} +n\log_2\frac1{2(1-p)},0<p ⟹ Dspe​(Pp[n]​,Qp[n]​)=Klog2​p1−p​+nlog2​2(1−p)1​,

where KKK is the largest k∈{0,…,n}k\in\{0,\ldots,n\}k∈{0,…,n} with ∑j=0k−1(nj)pj(1−p)n−j≤e\sum_{j=0}^{k-1}\binom njp^j(1-p)^{n-j}\le e∑j=0k−1​(jn​)pj(1−p)n−j≤e, defaulting to 000 if that set is empty. All displayed finite values are regarded as extended real numbers. Empty products equal 111; in particular, when n=0n=0n=0, the asserted value is 000.

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