Statistical mechanics · PhysLib theorem
Heat Capacity from Energy Fluctuations
For PhysLib's finite discrete canonical ensemble at positive temperature, heat capacity equals the energy variance divided by k_B T².
What it says
What the theorem says
PhysLib proves the equilibrium fluctuation formula for a finite discrete canonical ensemble with counting measure at strictly positive temperature. It is not a dynamical fluctuation–dissipation theorem or a thermodynamic-limit statement.
Context
Why it matters
The finite canonical fluctuation relation is a foundational bridge between microscopic energy variation and a macroscopic thermal response, and its finite-state hypotheses are unusually explicit.
Inside the proof
Proof architecture
The proof specializes the canonical ensemble to a finite discrete state space, differentiates mean energy with respect to inverse temperature, and then converts that derivative into the temperature response.
Step 1
Fix the finite ensemble
The IsFinite instance replaces the underlying measure by a finite counting-measure model and fixes the normalization used by the canonical probabilities.
finite state space + counting measure
Show the Lean ingredients
class IsFiniteIsFiniteMeasureStep 2
Differentiate mean energy
The inverse-temperature derivative of mean energy is identified with the negative energy variance, isolating the fluctuation term.
d⟨E⟩/dβ = −Var(E)
Show the Lean ingredients
derivWithin_meanEnergy_Beta_eq_neg_varianceenergyVarianceStep 3
Change variables to temperature
Using β = 1/(k_B T), the chain rule turns the inverse-temperature derivative into the stated heat-capacity formula.
C = Var(E)/(k_B T²)
Show the Lean ingredients
fluctuation_dissipation_theorem_finiteheatCapacityAuthoritative formal type
Exact PhysLib statement
CanonicalEnsemble.fluctuation_dissipation_theorem_finite (𝓒 : CanonicalEnsemble ι) [Nonempty ι] [MeasurableSingletonClass ι] [𝓒.IsFinite] (T : Temperature) (hT : 0 < T.val) : 𝓒.heatCapacity T = 𝓒.energyVariance T / (Constants.kB * T.val ^ 2)This is the theorem's exact Lean type. The diagrams and commentary are explanatory; the pinned statement and source are authoritative.
Recorded connections
How this result fits
A one-step view of the published results directly connected to this page.
2 direct connections
- Related resultHeat Capacity from Energy Fluctuationsis related toHelmholtz Free Energy of a Product Ensemble
- Related resultHeat Capacity from Energy Fluctuationsis related toEnergy Variance Identity
Only recorded public relationships are shown. A shared topic does not imply a dependency, and this is not a complete Lean proof-term dependency graph.
Open this result in the full theorem map2 direct connectionsProvenance and verification
Sources and technical checks
Show declaration provenance and Lean checks
CanonicalEnsemble.fluctuation_dissipation_theorem_finitePhyslib.StatisticalMechanics.CanonicalEnsemble.Finite6bd0b4b99d3dsorryAx reportedThe declaration footprint describes source layout, not proof difficulty or the size of its dependencies. The pinned checks verify the cited Lean theorem; semantic review remains a separate PhysAtlas judgment.



