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.

Provided by PhysLibLean checkedMeaning reviewed

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_iff

Step 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_jensenhsumhp

Step 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_le

Step 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.

Current resultShannon Entropy Bound in Finite Dimension
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 declarationHₛ_le_log_d
Source moduleQuantumInfo.ClassicalInfo.Entropy
Source footprint18 nonempty lines in this declaration · 114 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