Statistical mechanics · PhysLib theorem

Canonical Ensemble: F = U − TS

Under PhysLib's canonical-ensemble definitions and integrability conditions, Helmholtz free energy equals mean energy minus temperature times thermodynamic entropy.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

PhysLib proves the canonical identity under positive temperature, finite Boltzmann measure, nonzero base measure, and energy integrability. The entropy uses the library's phase-space correction; this is not a general assertion about every ensemble.

Context

Why it matters

The identity F = U − TS is a central thermodynamic relation, and this theorem exposes how PhysLib's probability normalization and phase-space entropy correction enter it.

Inside the proof

Proof architecture

The proof relates differential entropy to mean energy and the mathematical partition function, inserts the phase-space correction, and simplifies the canonical normalization at positive temperature.

Step 1

Expand canonical entropy

Differential entropy is rewritten as k_B β times mean energy plus k_B times the logarithm of the mathematical partition function.

S_diff = k_B β U + k_B log Z_math

Show the Lean ingredients
differentialEntropy_eq_kB_beta_meanEnergy_add_kB_log_mathZmeanEnergy

Step 2

Apply the phase-space correction

PhysLib's thermodynamic entropy subtracts the explicit correction that converts the mathematical normalization into the physical one.

S = S_diff − correction

Show the Lean ingredients
thermodynamicEntropy_eq_differentialEntropy_sub_correctionthermodynamicEntropy

Step 3

Rearrange the free energy

The positive-temperature identity k_B β = 1/T and the logarithmic definition of Helmholtz free energy give F = U − TS.

F = U − TS

Show the Lean ingredients
helmholtzFreeEnergy_eq_meanEnergy_sub_temp_mul_thermodynamicEntropyhelmholtzFreeEnergy

Authoritative formal type

Exact PhysLib statement

CanonicalEnsemble.helmholtzFreeEnergy_eq_meanEnergy_sub_temp_mul_thermodynamicEntropy (𝓒 : CanonicalEnsemble ι) (T : Temperature) (hT : 0 < T.val) [IsFiniteMeasure (𝓒.μBolt T)] [NeZero 𝓒.μ] (hE : Integrable 𝓒.energy (𝓒.μProd T)) : 𝓒.helmholtzFreeEnergy T = 𝓒.meanEnergy T - T.val * 𝓒.thermodynamicEntropy T

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 resultCanonical Ensemble: F = U − TS
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.helmholtzFreeEnergy_eq_meanEnergy_sub_temp_mul_thermodynamicEntropy
Source modulePhyslib.StatisticalMechanics.CanonicalEnsemble.Lemmas
Source footprint80 nonempty lines in this declaration · 755 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