for equiprobable microstates
ProvedBoltzmannConstant.gibbs_entropy_uniform_eq_boltzmann_entropyIn statistical mechanics the entropy of a system with distribution over its microstates is . If each of the accessible microstates is equally likely, , this collapses to Boltzmann's entropy formula
the equation inscribed on Boltzmann's tombstone. The constant is exactly what makes the statistical-mechanical entropy agree with the classical thermodynamic entropy of Clausius.
import Mathlib import Definitions.Def_boltzmann_si_basics
namespace BoltzmannConstant
theorem gibbs_entropy_uniform_eq_boltzmann_entropy {ι : Type*} (s : Finset ι) (W : ℕ)
(hW : s.card = W) (hW0 : 0 < W) :
gibbsEntropy s (fun _ => 1 / (W : ℝ)) = boltzmannEntropy W := by sorry
end BoltzmannConstantRead-back
What the Lean code literally says, in plain math · non-independent self-read-back by the drafting agent (no independent auditor)
Disclosure — this read-back is NOT blind and NOT independent. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner. It is therefore self-testimony, not independent auditor testimony: the author knew what the statement was intended to say, so it cannot detect the class of error a blind read-back exists to catch. No reviewer should count it as independent verification; it should be replaced by, or checked against, a genuinely blind read-back before this proposal is submitted.
For an arbitrary type ι, a Finset ι called s, and a natural number W with s.card = W and 0 < W, the claim is that gibbsEntropy s (fun _ => 1 / (W : ℝ)) equals boltzmannEntropy W. Unfolding the definitions, the left side is -kB * ∑ i ∈ s, (1/W) * Real.log (1/W) and the right side is kB * Real.log W, with W cast to ℝ. The hypothesis 0 < W excludes the degenerate empty case where both sides would be 0 anyway; s.card = W is what ties the number of summands to the weight 1/W. The constant function fun _ => 1 / (W : ℝ) is the uniform distribution.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.