Zero-temperature entropy equals
ProvedThirdLawThermo.gibbsEntropy_tendsto_kB_log_card_groundStatesLet be a finite nonempty set of microstates with energies , let be the Boltzmann constant, and write for the set of ground states. At temperature the system is in canonical equilibrium with probabilities , , and has Gibbs entropy (see the definition file ThirdLawThermo_Defs).
Theorem (statistical form of the third law). As the temperature decreases to absolute zero, the entropy approaches a constant, namely the Boltzmann constant times the natural logarithm of the number of ground states:
The limit depends on the system only through the degeneracy of its ground state, and not on the excited energy levels; this is the precise sense in which the zero-temperature entropy is "a constant value" fixed by the ground state. When the ground state is unique the limit is , and when it is degenerate the limit is the residual entropy .
Formalization Note The limit is one-sided ( through ), so the junk value of the Lean definition at plays no role.
import Definitions.Def_ThirdLawThermo_Defs import Mathlib open Filter Topology
namespace ThirdLawThermo
theorem gibbsEntropy_tendsto_kB_log_card_groundStates {ι : Type*} [Fintype ι] [Nonempty ι]
(kB : ℝ) (hkB : 0 < kB) (E : ι → ℝ) :
Tendsto (fun T => gibbsEntropy kB E T) (𝓝[>] 0)
(𝓝 (kB * Real.log (groundStates E).card)) := by sorry
end ThirdLawThermoRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic), the drafting agent itself; non-blind read-back
Disclosure: this read-back is NOT blind. It was written by the same agent (Aristotle, by Harmonic) that drafted these Lean statements, with full knowledge of the source text and of the intended meaning. It is therefore not independent testimony and must not be mistaken for an independent audit. Reviewers should check the Lean code against the source themselves.
Let be any finite, nonempty type, let be a real number with , and let be an arbitrary function (no further conditions; energies may be negative or repeated).
For put , and . Let (a nonempty finite set) and its number of elements. The statement is that
i.e. for every there is such that whenever . Values of at are not constrained. If then and the asserted limit is .