Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Thermal spectral entropy variance, including vacuum

Open
QAlgorithms.Papers.Independent.Intakenext100.P76.thermalVarianceFormula

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

prove2quantum

For x≥0x\ge0x≥0, let θ(x)\theta(x)θ(x) be the full number-diagonal thermal state with eigenvalues px(k)=xk/(x+1)k+1p_x(k)=x^k/(x+1)^{k+1}px​(k)=xk/(x+1)k+1 for k=0,1,…k=0,1,\ldotsk=0,1,…. Compute H(θ(x))=∑kpx(k)[−log⁡2px(k)]H(\theta(x))=\sum_kp_x(k)[-\log_2p_x(k)]H(θ(x))=∑k​px​(k)[−log2​px​(k)] and its variance independently as the second central moment of this spectral self-information, with zero-weight terms contributing zero. Both moment series converge, and

V(θ(x))=v(x),v(x)=x(x+1)[log⁡2(x+1)−log⁡2x]2(x>0),v(0)=0.V(\theta(x))=v(x),\qquad v(x)=x(x+1)[\log_2(x+1)-\log_2x]^2\quad(x>0),\qquad v(0)=0.V(θ(x))=v(x),v(x)=x(x+1)[log2​(x+1)−log2​x]2(x>0),v(0)=0.

At x=0x=0x=0, both entropy and variance are zero. This identifies the bosonic dispersion with the actual spectral variance rather than defining the variance by the claimed answer.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P76
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakenext100.P76

open MeasureTheory Filter

open QAlgorithms.Papers.Independent.Information100.P63 (logTwo normalCDF normalQuantile)

open QAlgorithms.Papers.Independent.Information100.P54 (thermalEntropy)

open QAlgorithms.Papers.Independent.Dependency50.P39 (coherentCoefficient)

open QAlgorithms.Papers.Independent.Next46.P32 (PositiveKernel)

open scoped BigOperators ENNReal Topology

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

/-- PDF p.10, (6.7), Appendix A, PDF p.15, (A.1)–(A.7): the independently
computed thermal spectral variance equals the stated dispersion. Vacuum has
zero entropy and variance. Summability prevents total-tsum default values. -/
theorem thermalVarianceFormula (x : ℝ) (hx : 0 ≤ x) :
    Summable (fun k => thermalPhotonProbability x k * (-logTwo (thermalPhotonProbability x k))) ∧
    Summable (fun k => thermalPhotonProbability x k *
      (-logTwo (thermalPhotonProbability x k) - selfInformationMean (thermalPhotonProbability x)) ^ 2) ∧
    selfInformationVariance (thermalPhotonProbability x) = thermalDispersion x ∧
    (x = 0 → selfInformationMean (thermalPhotonProbability x) = 0 ∧
      selfInformationVariance (thermalPhotonProbability x) = 0) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P76

end
Source
Second-order coding rates for pure-loss bosonic channels, arXiv:1408.5328v3, PDF p. 10, (6.7), Appendix A (A.1)–(A.7), PDF p.15
Read-back

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

For every real x≥0x\ge0x≥0, define

pk=xk(x+1)k+1(k∈N),H=∑k′pk(−log⁡2pk),V=∑k′pk(−log⁡2pk−H)2,p_k=\frac{x^k}{(x+1)^{k+1}}\quad(k\in\mathbb N),\qquad H=\sum'_kp_k(-\log_2p_k),\qquad V=\sum'_kp_k(-\log_2p_k-H)^2,pk​=(x+1)k+1xk​(k∈N),H=k∑′​pk​(−log2​pk​),V=k∑′​pk​(−log2​pk​−H)2,

where log⁡2t=ln⁡t/ln⁡2\log_2t=\ln t/\ln2log2​t=lnt/ln2 and ln⁡0=0\ln0=0ln0=0. Both families defining HHH and VVV are summable, and

V={0,x=0,x(x+1)(log⁡2(x+1)−log⁡2x)2,x≠0.V= \begin{cases} 0,&x=0,\\ x(x+1)\bigl(\log_2(x+1)-\log_2x\bigr)^2,&x\ne0. \end{cases}V={0,x(x+1)(log2​(x+1)−log2​x)2,​x=0,x=0.​

In addition, if x=0x=0x=0, then H=0H=0H=0 and V=0V=0V=0. This includes the distribution p0=1p_0=1p0​=1, pk=0p_k=0pk​=0 for k>0k>0k>0, using 00=10^0=100=1 and the total logarithm convention.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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