Universal-prior sub-normalization #
The setting is the prequential-MDL Bayesian mixture
P̄(o_t | o_{<t}) = Σ_{R' ∈ M} w(R' | o_{<t}) P_{R'}(o_t | o_{<t}) over a countable hypothesis
class M, with prior w(R') ∝ 2^{−K(R')}. For the proportionality ∝ to define a
(sub-)probability — and hence the mixture to be well-defined — the unnormalized weights must have
finite total mass ≤ 1. That is the Kraft–McMillan inequality.
Status: PROVED as pure code-length statements, on top of Mathlib's
IsUniquelyDecodable.finsetSum_one_div_card_pow_length_le_one.
This is the arithmetic core of the mixture's well-definedness only.
What this DOES establish #
prior_tsum_le_one: for a hypothesis class enumerated without repeats by a uniquely-decodable binary code, the unnormalized weights2^{−ℓ(R)}sum to≤ 1, so the priorw(R') ∝ 2^{−K(R')}normalizes and the Bayesian mixture is well-defined.
The Kraft arithmetic itself — unique decodability passing to subsets, the binary specialization of
Kraft–McMillan, and its reindexing along an injective code — is generic, and lives in
BinaryKraft; this module is its reading for a universal prior.
What this does NOT establish (stays in prose; no overclaiming) #
- No Kolmogorov complexity
K:ℓ(R) = (code R).lengthis an abstract codeword length; we do not formalizeK(R), the universal reference machineU_ref, orK(R) = r. - Not the Kraft–Chaitin bridge that shortest programs / minimal descriptions form a
uniquely-decodable (prefix-free) set — i.e. that one may take code-lengths
= K(R). That bridge stays prose; we ASSUME the class is presented by a uniquely-decodable code (hUD). - Sub-normalization only (
≤ 1, not= 1): the prior is written∝, so≤ 1is exactly what well-definedness needs. We do not claim equality (it generally fails — the prior is normalized by dividing by the total mass).
Hypotheses: standard vs added/strengthened #
- Standard: countable class
M; binary weights2^{−ℓ}; the implicit≤ 1behind∝. - Added/strengthened (scope choices, flagged): (a) binary alphabet
Bool(faithful to base 2); (b)hUD— the unique-decodability left implicit in "2^{−K}", made an explicit named hypothesis (this is what makes Kraft apply); (c)hinj— distinct hypotheses map to distinct codewords (an injective enumeration ofM); (d)≤ 1, not= 1.
The Kolmogorov-weighted prior is a sub-probability. For a countable hypothesis
class enumerated without repeats by a uniquely-decodable binary code, the unnormalized weights
2^{−ℓ(R)} sum to ≤ 1, so the prior w(R') ∝ 2^{−K(R')} normalizes and the Bayesian
mixture is well-defined.
This is BinaryKraft.indexed_tsum_le_one read at the hypothesis class: the enumeration code is
the injective code, its codeword lengths are the ℓ(R), and Kraft–McMillan prices them.