Shannon.Entropy.Rational #
Phase 2 of the characterization: rational probabilities.
This module derives the entropy formula for distributions of the form
p_i = n_i / N via grouped equiprobable refinement and the grouping condition.
It also includes a worked decomposition corresponding to Shannon's
(1/2, 1/3, 1/6) narrative.
Phase 2: Rational Probabilities via Grouping #
First-stage split used in the (1/2, 1/3, 1/6) worked decomposition.
Equations
Instances For
Second-stage alphabets for the worked decomposition:
true has one outcome; false has two outcomes.
Equations
Instances For
Second-stage conditional probabilities for the worked decomposition.
Equations
- LeanPool.Shannon1948Formalization.workedQ true = id (LeanPool.Shannon1948Formalization.uniformPNat ⟨1, LeanPool.Shannon1948Formalization.workedQ._proof_1⟩)
- LeanPool.Shannon1948Formalization.workedQ false = id ⟨fun (i : Fin 2) => if i = 0 then 2 / 3 else 1 / 3, LeanPool.Shannon1948Formalization.workedQ._proof_4⟩
Instances For
The composed distribution in the worked (1/2, 1/3, 1/6) example.
Equations
Instances For
Masses in the worked decomposition:
(true, 0) has mass 1/2, (false, 0) has mass 1/3,
and (false, 1) has mass 1/6.
Worked grouping identity corresponding to Shannon's (1/2, 1/3, 1/6) narrative:
first choose true/false with probabilities (1/2, 1/2), then if false
choose between two outcomes with probabilities (2/3, 1/3).