Information theory · PhysLib theorem
Shannon Entropy Bound in Finite Dimension
For every probability distribution on a finite type, PhysLib proves that Shannon entropy in natural units is at most the logarithm of the number of outcomes.
What it says
What the theorem says
No distribution over d finite outcomes carries more Shannon entropy than log d in PhysLib's natural-logarithm convention. The proof packages the normalization of probabilities with convexity of x log x and a Jensen-type comparison.
Context
Why it matters
The finite maximum-entropy bound is a foundational theorem shared by information theory and statistical mechanics, with a direct geometric explanation on the probability simplex.
Inside the proof
Proof architecture
The proof handles the empty finite type, establishes a convexity comparison for x log x under normalized weights, and rewrites that comparison into the Shannon-entropy ceiling.
Step 1
Separate the empty case
If the finite outcome type has cardinality zero, PhysLib discharges the statement directly before entering the positive-cardinality argument.
|α| = 0 ⟹ the bound is immediate
Show the Lean ingredients
by_cases h : Fintype.card α = 0Fintype.card_eq_zero_iffStep 2
Use probability normalization
The entries of a probability distribution are nonnegative, at most one, and sum to one, placing them in the interval where the convexity argument applies.
∑ᵢ pᵢ = 1, 0 ≤ pᵢ ≤ 1
Show the Lean ingredients
h_jensenhsumhpStep 3
Apply convexity of x log x
Convexity on the unit interval compares the average of p log p with the value associated to the uniform weight 1/d.
convexity of x log x ⟹ -∑ᵢ pᵢ log pᵢ ≤ log d
Show the Lean ingredients
Real.convexOn_mul_logh_convex.map_sum_leStep 4
Rewrite as Shannon entropy
Normalization, the logarithm of the reciprocal cardinality, and PhysLib's entropy definitions turn the convexity inequality into the final entropy bound.
Hₛ(p) ≤ log |α|
Show the Lean ingredients
Real.log_invReal.negMulLogsimpa [Hₛ, H₁, Real.negMulLog]Authoritative formal type
Exact PhysLib statement
Hₛ_le_log_d.{u_1} {α : Type u_1} [Fintype α] (d : ProbDistribution α) : Hₛ d ≤ Real.log ↑(Fintype.card α)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
- Related resultNonnegativity of Finite Canonical Entropyis related toShannon Entropy Bound in Finite Dimension
- Related resultShannon Entropy Bound in Finite Dimensionis related toThermodynamic Entropy Equals Shannon Entropy for Finite Ensembles
- Related resultShannon Entropy Bound in Finite Dimensionis related toVon Neumann Entropy Is at Most log d
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
Hₛ_le_log_dQuantumInfo.ClassicalInfo.Entropy6bd0b4b99d3dsorryAx 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.




