Statistical mechanics · PhysLib theorem
Nonnegativity of Finite Canonical Entropy
PhysLib's Shannon entropy is nonnegative for a finite, nonempty canonical ensemble with measurable singletons.
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_posStep 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_oneStep 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_posAuthoritative formal type
Exact PhysLib statement
CanonicalEnsemble.entropy_nonneg {ι : Type} [Fintype ι] [MeasurableSpace ι] (𝓒 : CanonicalEnsemble ι) [MeasurableSingletonClass ι] [𝓒.IsFinite] [Nonempty ι] (T : Temperature) : 0 ≤ 𝓒.shannonEntropy TThis 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
- Related resultFinite Boltzmann Probabilities Sum to Oneis related toNonnegativity of Finite Canonical Entropy
- Related resultNonnegativity of Finite Canonical Entropyis related toShannon Entropy Bound in Finite Dimension
- Related resultNonnegativity of Finite Canonical Entropyis related toThermodynamic Entropy Equals Shannon Entropy for Finite Ensembles
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 connectionsProvenance and verification
Sources and technical checks
Show declaration provenance and Lean checks
CanonicalEnsemble.entropy_nonnegPhyslib.StatisticalMechanics.CanonicalEnsemble.Finite6bd0b4b99d3dsorryAx reportedThe 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.



