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.
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_mathZmeanEnergyStep 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_correctionthermodynamicEntropyStep 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_thermodynamicEntropyhelmholtzFreeEnergyAuthoritative 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 TThis 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 resultHelmholtz Free Energy of a Product Ensembleis related toCanonical Ensemble: F = U − TS
- Related resultCanonical Ensemble: F = U − TSis related toMean Energy as the Negative Beta Derivative of log Z
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.helmholtzFreeEnergy_eq_meanEnergy_sub_temp_mul_thermodynamicEntropyPhyslib.StatisticalMechanics.CanonicalEnsemble.Lemmas6bd0b4b99d3dsorryAx 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.



