Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 10 (exact oscillator Gibbs formulas)

Open
QAlgorithms.Papers.Independent.Advance50.P46.oscillator_gibbs_exact

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

prove2quantum

Let H=N+12H=N+\tfrac12H=N+21​ on one-mode Fock space, with simple spectrum n+12n+\tfrac12n+21​ for n≥0n\ge0n≥0. For E>12E>\tfrac12E>21​, let β(E)\beta(E)β(E) be the solution of the Gibbs energy equation and γ(E)=e−β(E)H/Tr⁡e−β(E)H\gamma(E)=e^{-\beta(E)H}/\operatorname{Tr}e^{-\beta(E)H}γ(E)=e−β(E)H/Tre−β(E)H. Then

β(E)=−log⁡2E−12E+1,S(γ(E))=log⁡4E2−12−Elog⁡2E−12E+1.\beta(E)=-\log\frac{2E-1}{2E+1},\qquad S(\gamma(E))=\log\frac{\sqrt{4E^2-1}}2-E\log\frac{2E-1}{2E+1}.β(E)=−log2E+12E−1​,S(γ(E))=log24E2−1​​−Elog2E+12E−1​.

Moreover β(E)=E−1+O(E−3)\beta(E)=E^{-1}+O(E^{-3})β(E)=E−1+O(E−3) and S(γ(E))/log⁡E→1S(\gamma(E))/\log E\to1S(γ(E))/logE→1 as E→∞E\to\inftyE→∞. The state is the actual normalized spectral Gibbs density. This explicit model checks the constants and scaling of the general high-energy results.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P46
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped ENNReal NNReal Topology BigOperators Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Advance50.P46

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Bridge50.P23 (energyMagnitude numberEnergy)

open QAlgorithms.Papers.Independent.Dependency50.P33
  (State IsDensity IsTraceClass traceSize rankOne tensorApply productCoeff IsBarycenter)

attribute [local instance] Classical.propDecidable Classical.decEq

export QAlgorithms.Papers.Independent.Claimed50.P39 (g)

/-- Example 10, PDF p.37: exact oscillator Gibbs formulas, cubic-order beta
remainder, and logarithmic entropy asymptotic. The exact entropy's radical has
sqrt(4E^2-1)/2, as verified against the printed PDF. -/
theorem oscillator_gibbs_exact :
    (∀ E : ℝ, 1 / 2 < E →
      IsEquilibrium oscillatorHamiltonian E (betaAtEnergy oscillatorHamiltonian E) ∧
      IsDensity (gibbsCoefficients oscillatorHamiltonian E) ∧
      betaAtEnergy oscillatorHamiltonian E = -Real.log ((2 * E - 1) / (2 * E + 1)) ∧
      equilibriumEntropyNats oscillatorHamiltonian E =
        Real.log (Real.sqrt (4 * E ^ 2 - 1) / 2) -
          E * Real.log ((2 * E - 1) / (2 * E + 1))) ∧
    Asymptotics.IsBigO atTop
      (fun E : ℝ => betaAtEnergy oscillatorHamiltonian E - 1 / E)
      (fun E : ℝ => 1 / E ^ 3) ∧
    Tendsto (fun E => equilibriumEntropyNats oscillatorHamiltonian E / Real.log E)
      atTop (𝓝 (1 : ℝ)) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P46

end
Source
Convergence rates for quantum evolution & entropic continuity bounds in infinite dimensions, arXiv:1810.00863v3, PDF p. 37, Example 10 (exact oscillator Gibbs formulas)
Read-back

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

Consider the diagonal Hamiltonian indexed by n∈Nn\in\mathbb Nn∈N with energies hn=n+12h_n=n+\tfrac12hn​=n+21​ and declared lower bound 12\tfrac1221​. Set Z(β)=∑n=0∞[e−β(n+1/2)]+∈[0,∞]Z(\beta)=\sum_{n=0}^{\infty}[e^{-\beta(n+1/2)}]_+\in[0,\infty]Z(β)=∑n=0∞​[e−β(n+1/2)]+​∈[0,∞]. An equilibrium parameter at energy EEE means a real β>0\beta>0β>0 for which Z(β)real>0Z(\beta)^{\mathrm{real}}>0Z(β)real>0, the real series ∑ne−β(n+1/2)\sum_ne^{-\beta(n+1/2)}∑n​e−β(n+1/2) and ∑n(n+12)e−β(n+1/2)\sum_n(n+\tfrac12)e^{-\beta(n+1/2)}∑n​(n+21​)e−β(n+1/2) are summable, and the latter equals EZ(β)realE Z(\beta)^{\mathrm{real}}EZ(β)real; let βE\beta_EβE​ be a chosen such parameter if one exists and zero otherwise. Define γE\gamma_EγE​ to be the diagonal matrix with diagonal e−βE(n+1/2)/Z(βE)reale^{-\beta_E(n+1/2)}/Z(\beta_E)^{\mathrm{real}}e−βE​(n+1/2)/Z(βE​)real, and define

S(E)=H(γE)real,H(X)=sup⁡s⊆N finite[−Re⁡tr⁡(f(Xs))+Re⁡tr⁡(Xs)log⁡ ⁣(Re⁡tr⁡(Xs))]+,f(x)=xlog⁡x,S(E)=\mathcal H(\gamma_E)^{\mathrm{real}},\qquad \mathcal H(X)= \sup_{s\subseteq\mathbb N\text{ finite}} \left[ -\operatorname{Re}\operatorname{tr}\bigl(f(X_s)\bigr) +\operatorname{Re}\operatorname{tr}(X_s) \log\!\bigl(\operatorname{Re}\operatorname{tr}(X_s)\bigr) \right]_+,\quad f(x)=x\log x,S(E)=H(γE​)real,H(X)=s⊆N finitesup​[−Retr(f(Xs​))+Retr(Xs​)log(Retr(Xs​))]+​,f(x)=xlogx,

with f(Xs)f(X_s)f(Xs​) defined by continuous functional calculus. For every real E>12E>\tfrac12E>21​, βE\beta_EβE​ is an equilibrium parameter, and γE\gamma_EγE​ is a state matrix, meaning that it admits a nuclear expansion (γE)ij=∑rur(i)vr(j)‾(\gamma_E)_{ij}=\sum_r u_r(i)\overline{v_r(j)}(γE​)ij​=∑r​ur​(i)vr​(j)​ with summable costs ∥ur∥∥vr∥\|u_r\|\|v_r\|∥ur​∥∥vr​∥, its finite quadratic forms are real and nonnegative, and its real diagonal is summable with sum one; moreover,

βE=−log⁡2E−12E+1,S(E)=log⁡4E2−12−Elog⁡2E−12E+1.\beta_E=-\log\frac{2E-1}{2E+1}, \qquad S(E)= \log\frac{\sqrt{4E^2-1}}2 -E\log\frac{2E-1}{2E+1}.βE​=−log2E+12E−1​,S(E)=log24E2−1​​−Elog2E+12E−1​.

In addition, βE−E−1=O(E−3)\beta_E-E^{-1}=O(E^{-3})βE​−E−1=O(E−3) as E→+∞E\to+\inftyE→+∞, meaning that its absolute value is eventually bounded by a fixed constant times ∣E−3∣|E^{-3}|∣E−3∣, and

lim⁡E→+∞S(E)log⁡E=1.\lim_{E\to+\infty}\frac{S(E)}{\log E}=1.E→+∞lim​logES(E)​=1.

Here [r]+=max⁡(r,0)[r]_+=\max(r,0)[r]+​=max(r,0), the vectors in the nuclear expansion belong to ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C), and the conversion zrealz^{\mathrm{real}}zreal sends +∞+\infty+∞ to zero. The explicit equilibrium identities apply only above the ground energy.

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

    Confirmed by the moderator at approval.

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