Statistical mechanics · PhysLib theorem

Finite Boltzmann Probabilities Sum to One

For a finite, nonempty canonical ensemble with measurable singletons, the sum of PhysLib's canonical probabilities over all microstates equals one.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

The proof unfolds each probability into an exponential weight over Z, combines the common denominator across the finite sum, and substitutes the finite-sum definition of the partition function. Positivity of Z supplies the nonzero denominator needed to reduce Z/Z to one.

Context

Why it matters

A finite canonical ensemble becomes a probability model only after its Boltzmann weights are proved to normalize, making this the entry point for every later expectation and entropy calculation.

Inside the proof

Proof architecture

The proof unfolds each probability into an exponential weight over Z, combines the common denominator across the finite sum, and substitutes the finite-sum definition of the partition function. Positivity of Z supplies the nonzero denominator needed to reduce Z/Z to one.

Step 1

Unfold the probabilities

Every state probability is replaced by its exponential Boltzmann weight divided by the same mathematical partition function.

p_i=e^-βE_i/Z

Show the Lean ingredients
simp_rw [probability]

Step 2

Combine the finite sum

Because the denominator is common, the finite sum becomes the sum of all weights divided by Z.

Σp_i=(Σe^-βE_i)/Z

Show the Lean ingredients
Finset.sum_div

Step 3

Identify and cancel the partition function

The numerator is precisely PhysLib's finite partition function, and positivity lets the quotient cancel to one.

Z/Z=1

Show the Lean ingredients
mathematicalPartitionFunction_of_fintypemathematicalPartitionFunction_pos_finite

Authoritative formal type

Exact PhysLib statement

CanonicalEnsemble.sum_probability_eq_one {ι : Type} [Fintype ι] [MeasurableSpace ι] (𝓒 : CanonicalEnsemble ι) [MeasurableSingletonClass ι] [𝓒.IsFinite] [Nonempty ι] (T : Temperature) : ∑ i, 𝓒.probability T i = 1

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 resultFinite Boltzmann Probabilities Sum to One
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.sum_probability_eq_one
Source modulePhyslib.StatisticalMechanics.CanonicalEnsemble.Finite
Source footprint10 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