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².

Provided by PhysLibLean checkedMeaning reviewed

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 IsFiniteIsFiniteMeasure

Step 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_varianceenergyVariance

Step 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_finiteheatCapacity

Authoritative 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.

Current resultHeat Capacity from Energy Fluctuations
2 direct connections

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 connections

Provenance and verification

Sources and technical checks

Show declaration provenance and Lean checks
PhysLib declarationCanonicalEnsemble.fluctuation_dissipation_theorem_finite
Source modulePhyslib.StatisticalMechanics.CanonicalEnsemble.Finite
Source footprint15 nonempty lines in this declaration · 549 nonempty lines in its module
Checked commit6bd0b4b99d3d
Reported Lean axiomspropext, Classical.choice, Quot.sound
Unresolved placeholdersNo sorryAx reported

View theorem in PhysLib ↗

The 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.

Expanded visual

Explanatory image · not evidence.

Open original in a new tab