Statistical mechanics · PhysLib theorem

Thermodynamic Entropy Equals Shannon Entropy for Finite Ensembles

Under PhysLib's finite-ensemble conventions, its thermodynamic entropy equals its Shannon entropy at the specified temperature.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

For a finite ensemble, PhysLib sets the continuous degrees-of-freedom correction to zero and the phase-space unit to one, making physical and canonical probabilities coincide. The thermodynamic definition then reduces to differential entropy, while a separate finite-sum lemma identifies differential entropy with Shannon entropy.

Context

Why it matters

The theorem pinpoints when thermodynamic entropy and the information-theoretic Shannon formula are literally the same quantity: PhysLib's discrete finite canonical convention.

Inside the proof

Proof architecture

For a finite ensemble, PhysLib sets the continuous degrees-of-freedom correction to zero and the phase-space unit to one, making physical and canonical probabilities coincide. The thermodynamic definition then reduces to differential entropy, while a separate finite-sum lemma identifies differential entropy with Shannon entropy.

Step 1

Remove finite correction factors

The IsFinite instance collapses the semiclassical correction data to zero degrees of freedom and a unit phase-space scale.

dof=0 and phaseSpaceUnit=1

Show the Lean ingredients
IsFinite.dof_eq_zeroIsFinite.phase_space_unit_eq_one

Step 2

Identify thermodynamic with differential entropy

After the probability logarithms agree, unfolding the definitions identifies thermodynamic entropy with PhysLib's differential entropy.

S_thermo=S_diff

Show the Lean ingredients
CanonicalEnsemble.thermodynamicEntropyh_log

Step 3

Use the finite Shannon bridge

The finite integral-to-sum theorem identifies that same differential entropy with the Shannon sum, completing the equality.

S_diff=S_Shannon

Show the Lean ingredients
shannonEntropy_eq_differentialEntropyh_shannon.symm

Authoritative formal type

Exact PhysLib statement

CanonicalEnsemble.thermodynamicEntropy_eq_shannonEntropy {ι : Type} [Fintype ι] [MeasurableSpace ι] (𝓒 : CanonicalEnsemble ι) [MeasurableSingletonClass ι] [𝓒.IsFinite] (T : Temperature) : 𝓒.thermodynamicEntropy T = 𝓒.shannonEntropy 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 resultThermodynamic Entropy Equals Shannon Entropy for Finite Ensembles
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.thermodynamicEntropy_eq_shannonEntropy
Source modulePhyslib.StatisticalMechanics.CanonicalEnsemble.Finite
Source footprint22 nonempty lines in this declaration · 549 nonempty lines in its module
Checked commit6bd0b4b99d3d
Reported Lean axiomsClassical.choice, Quot.sound, propext
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