Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Renyi entropy is the negative temperature secant slope of free energy

Proved
QAlgorithms.Papers.Independent.Advance50.P26.renyi_freeEnergy

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

prove2quantum

Let HHH be a self-adjoint complex matrix on a nonzero finite-dimensional space, and let k>0k>0k>0 be Boltzmann's constant. For each positive temperature uuu, define

ZH(k,u)=tr⁡exp⁡(−H/(ku)),ρH(k,u)=exp⁡(−H/(ku))ZH(k,u),FH(k,u)=−kuln⁡ZH(k,u).Z_H(k,u)=\operatorname{tr}\exp(-H/(ku)),\qquad \rho_H(k,u)=\frac{\exp(-H/(ku))}{Z_H(k,u)},\qquad F_H(k,u)=-ku\ln Z_H(k,u).ZH​(k,u)=trexp(−H/(ku)),ρH​(k,u)=ZH​(k,u)exp(−H/(ku))​,FH​(k,u)=−kulnZH​(k,u).

For a density matrix ρ\rhoρ and a real order q>0q>0q>0, q≠1q\ne1q=1, define its Renyi entropy by Sqk(ρ)=kln⁡tr⁡(ρq)/(1−q)S_q^k(\rho)=k\ln\operatorname{tr}(\rho^q)/(1-q)Sqk​(ρ)=klntr(ρq)/(1−q), where the power is spectral and all logarithms are natural. For any positive temperatures T0,TT_0,TT0​,T with T≠T0T\ne T_0T=T0​, one has

ST0/Tk(ρH(k,T0))=−FH(k,T)−FH(k,T0)T−T0.S_{T_0/T}^k\bigl(\rho_H(k,T_0)\bigr) =-\frac{F_H(k,T)-F_H(k,T_0)}{T-T_0}.ST0​/Tk​(ρH​(k,T0​))=−T−T0​FH​(k,T)−FH​(k,T0​)​.

This relates entropy at the original temperature to an equilibrium free-energy difference for the same Hamiltonian and Boltzmann constant. No positivity condition on HHH or zero-reference-free-energy condition is required.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P26
Formal statement
noncomputable section

open Filter

open scoped BigOperators Topology Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Advance50.P26

open QAlgorithms.Papers.Independent.Support50.P15 (shannonEntropyNats)

open QAlgorithms.ZeroSum (classicalGibbs)

open QAlgorithms.Papers.Independent.Dependency50.P35 (spectralPower)

/-- PDF p.3, Section 2, (8)-(9): the entropy of the Gibbs state at T0 is the
negative secant slope of free energy between T0 and T. Here q is constructed as T0/T;
positive distinct temperatures ensure q > 0 and q != 1. No hypothesis F(T0) = 0 or
H positive semidefinite is imposed. The p.3 source corrections are documented above. -/
theorem renyi_freeEnergy {I : Type} [Fintype I] [DecidableEq I] [Nonempty I]
    (H : Matrix I I ℂ) (hH : H.IsHermitian)
    (k T0 T : ℝ) (hk : 0 < k) (hT0 : 0 < T0) (hT : 0 < T) (hneq : T ≠ T0) :
    renyiEntropyWithBoltzmann (thermalGibbs H k T0) k (T0 / T) =
      -(thermalFreeEnergy H k T - thermalFreeEnergy H k T0) / (T - T0) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P26

end
Source
Renyi Entropy and Free Energy, arXiv:1102.2098v4, PDF p. 1, Abstract; Section 2, Eq. (9), PDF p.3
Read-back

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

For every finite nonempty type III with decidable equality, every Hermitian complex matrix HHH indexed by III, and all real k,T0,Tk,T_0,Tk,T0​,T satisfying k>0k>0k>0, T0>0T_0>0T0​>0, T>0T>0T>0, and T≠T0T\ne T_0T=T0​, define

B(t)=exp⁡ ⁣(−(kt)−1H),Z(t)=Re⁡tr⁡B(t),G0=(tr⁡B(T0))−1B(T0),q=T0T.B(t)=\exp\!\left(-(kt)^{-1}H\right),\qquad Z(t)=\operatorname{Re}\operatorname{tr}B(t),\qquad G_0=\bigl(\operatorname{tr}B(T_0)\bigr)^{-1}B(T_0),\qquad q=\frac{T_0}{T}.B(t)=exp(−(kt)−1H),Z(t)=RetrB(t),G0​=(trB(T0​))−1B(T0​),q=TT0​​.

The declaration asserts

klog⁡ ⁣(Re⁡tr⁡Pq(G0))1−q=kTlog⁡Z(T)−kT0log⁡Z(T0)T−T0,\frac{k\log\!\left(\operatorname{Re}\operatorname{tr}P_q(G_0)\right)}{1-q} = \frac{kT\log Z(T)-kT_0\log Z(T_0)}{T-T_0},1−qklog(RetrPq​(G0​))​=T−T0​kTlogZ(T)−kT0​logZ(T0​)​,

where Pq(G0)P_q(G_0)Pq​(G0​) applies to each eigenvalue sss the function that is 000 at s=0s=0s=0 and sqs^qsq otherwise. Here q>0q>0q>0 and q≠1q\ne1q=1, so the entropy definition uses its branch for orders different from 111, and both displayed denominators are nonzero.

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