Boltzmann factors normalised by form a probability distribution
ProvedBoltzmannConstant.boltzmann_prob_sum_eq_oneA system in equilibrium at temperature occupies a state of energy with probability weighted by the Boltzmann factor, , where is the partition function. For a nonempty finite set of states at positive temperature, these weights are indeed a probability distribution:
This well-posedness statement is the precondition for every later use of Boltzmann factors.
import Mathlib import Definitions.Def_boltzmann_si_basics
namespace BoltzmannConstant
theorem boltzmann_prob_sum_eq_one {ι : Type*} (s : Finset ι) (hs : s.Nonempty)
(T : ℝ) (hT : 0 < T) (E : ι → ℝ) :
∑ i ∈ s, boltzmannProb s T E i = 1 := 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 assumed nonempty, a real T assumed strictly positive, and an energy function E : ι → ℝ, the claim is ∑ i ∈ s, boltzmannProb s T E i = 1, where boltzmannProb s T E i was defined as Real.exp (-(E i) / (kB * T)) divided by the sum of the same expression over s. Nonemptiness of s is what makes the denominator nonzero (a sum of exponentials, each strictly positive). The positivity of T is stated but the exponentials are positive regardless, so it is not needed for the conclusion. Energies are unrestricted reals, so no boundedness assumption is in force.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.