The minimum description length bound #
A prefix-free description of a class C assigns each hypothesis h ∈ C a binary word d h so
that no description of a hypothesis of C is a prefix of the description of a different one
[ShalevShwartzBenDavid2014, Section 7.3]. By Kraft's inequality [Kra49]
[ShalevShwartzBenDavid2014, Lemma 7.6] the weights
2^-|d h| sum to at most 1, so they form a weighting of C, and the SRM bound for the
singletons {h} with Hoeffding rates gives the minimum description length (MDL) bound
[ShalevShwartzBenDavid2014, Theorem 7.7]: with probability at least 1 - δ, every h ∈ C has
L_D(h) ≤ L_S(h) + √((|d h| log 2 + log (2 / δ)) / (2 m)).
The source states the numerator as |h| + ln (2 / δ); the form here is sharper because
log 2 < 1. Kraft's inequality for an arbitrary prefix-free set of words is Mathlib's
InformationTheory.IsPrefixFree.tsum_one_div_card_pow_length_le_one; this library's Huffman
development (CslibFrontier.Algorithms.Lean.Huffman.Kraft) adds the finite converse, which is not
needed here. A class with a prefix-free description is countable, and the hypotheses need
measurable misclassification sets; domain and labels are arbitrary measurable spaces.
Main definitions #
IsPrefixFreeDescription C d:dis a prefix-free description ofC.IsPrefixFreeDescription.weighting: the Kraft weightingh ↦ 2^-|d h|ofC.
Main results #
IsPrefixFreeDescription.injOn,.isPrefixFree_image,.countable: a prefix-free description is injective onC, its image is a prefix-free code, andCis countable.IsPrefixFreeDescription.measure_pi_exists_le_abs_sub_le: the two-sided MDL bound.IsPrefixFreeDescription.mdl_bound: the MDL bound (Theorem 7.7).
References #
d is a prefix-free description of the class C [ShalevShwartzBenDavid2014,
Section 7.3]: whenever the description of h ∈ C is a prefix of the description of h' ∈ C,
the two hypotheses are equal.
A prefix-free description is injective on the class.
The descriptions of a class form a prefix-free code.
A class with a prefix-free description is countable.
The Kraft weighting h ↦ 2^-|d h| of a class with a prefix-free description: by Kraft's
inequality [Kra49] the weights sum to at most 1.
The MDL bound, two-sided form: for a class with a prefix-free description d whose
hypotheses have measurable misclassification sets, with probability at least 1 - δ every
h ∈ C has |L_S(h) - L_D(h)| ≤ √((|d h| log 2 + log (2 / δ)) / (2 m)).
The MDL bound [ShalevShwartzBenDavid2014, Theorem 7.7]: for a class with a prefix-free
description d whose hypotheses have measurable misclassification sets, with probability at least
1 - δ every h ∈ C has L_D(h) ≤ L_S(h) + √((|d h| log 2 + log (2 / δ)) / (2 m)).