Statistical mechanics · PhysLib theorem

Nonnegativity of Finite Canonical Entropy

PhysLib's Shannon entropy is nonnegative for a finite, nonempty canonical ensemble with measurable singletons.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

PhysLib proves each probability is positive and at most one, hence its logarithm is nonpositive. Multiplication by the nonnegative probability preserves that sign, finite summation keeps it, and the leading minus sign together with positive Boltzmann constant converts the result into nonnegative entropy.

Context

Why it matters

Nonnegative discrete entropy is a basic consistency property of finite statistical mechanics, reflecting that every canonical probability lies between zero and one.

Inside the proof

Proof architecture

PhysLib proves each probability is positive and at most one, hence its logarithm is nonpositive. Multiplication by the nonnegative probability preserves that sign, finite summation keeps it, and the leading minus sign together with positive Boltzmann constant converts the result into nonnegative entropy.

Step 1

Bound each probability

The exponential numerator and positive finite partition function make p_i strictly positive, while the existing probability bound gives p_i at most one.

0<p_i≤1

Show the Lean ingredients
probability_le_oneReal.exp_pos

Step 2

Sign each p log p term

Monotonicity of logarithm makes log p_i nonpositive, so multiplying by positive p_i yields a nonpositive entropy summand.

p_i log p_i≤0

Show the Lean ingredients
log_le_logReal.log_one

Step 3

Negate and scale the sum

The finite sum remains nonpositive; negation and multiplication by positive kB produce the claimed nonnegative Shannon entropy.

S=-kBΣp_i log p_i≥0

Show the Lean ingredients
Fintype.sum_nonposkB_pos

Authoritative formal type

Exact PhysLib statement

CanonicalEnsemble.entropy_nonneg {ι : Type} [Fintype ι] [MeasurableSpace ι] (𝓒 : CanonicalEnsemble ι) [MeasurableSingletonClass ι] [𝓒.IsFinite] [Nonempty ι] (T : Temperature) : 0 ≤ 𝓒.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.

3 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 map3 direct connections

Provenance and verification

Sources and technical checks

Show declaration provenance and Lean checks
PhysLib declarationCanonicalEnsemble.entropy_nonneg
Source modulePhyslib.StatisticalMechanics.CanonicalEnsemble.Finite
Source footprint30 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