Part IV — Lower Bounds for Bandits with Finitely Many Arms
Chapter 14: Foundations of Information Theory
The frozen required body is compiled: Huffman optimality, exact-real arithmetic block coding and converse, finite/partition/common-density KL, the source affinity/overlap route, and Gaussian testing. Independent review, PR #106, main run 33959196451, Pages and live desktop/mobile acceptance passed. The singleton and uniform-code qualifications below are part of the accepted boundary; optional Notes/Exercises are not claimed complete.
Source map
Bandit Algorithms, Tor Lattimore and Csaba Szepesvári, Cambridge University Press (2020), DOI 10.1017/9781108571401.
- §14.1 Entropy and Optimal Coding (CUP starts p. 160 / author-online pp. 186–188 / PDF pp. 195–197; Huffman and arithmetic source-coding terminals compiled with the model qualifications below)
- §14.2 Relative Entropy (CUP starts p. 162 / author-online pp. 188–191 / PDF pp. 197–200; finite, partition and common-density formulas, source testing route and Gaussian example compiled)
- §14.3 Notes (CUP p. 165 / author-online pp. 191–194 / PDF pp. 200–203)
- §14.4 Bibliographic Remarks (CUP p. 167 / author-online p. 194 / PDF p. 203)
- §14.5 Exercises (CUP pp. 167–169 / author-online pp. 194–197 / PDF pp. 203–206)
Learning goals
- Follow Kraft and the entropy lower bound into recursive Huffman optimality and the one-bit entropy sandwich, then read the exact-real arithmetic block-code construction and rate converse.
- Read relative entropy as an extended-real, direction-sensitive comparison of probability measures.
- Distinguish the absolutely-continuous log-likelihood branch from singular support mismatch.
- Use conditional Jensen to see why restriction to any sub-sigma-algebra cannot increase KL, then specialize to an event.
- Derive the unconditional Bretagnolle–Huber testing bound, including the exp(-infinity)=0 branch.
- Distinguish compiled mathematical coding constructions from executable finite-precision encoders; keep adaptive bandit-history decomposition in Chapter 15.
Necessary definitions and statements
Entropy and optimal coding
CompiledExtended-real relative entropy
CompiledBernoulli relative entropy
CompiledBretagnolle–Huber testing scale
CompiledEvent-testing proof flow
- Split the KL branches
Use Mathlib's exact absolute-continuity and log-likelihood integrability characterization; retain infinity on support mismatch.
- Coarsen observations
Apply conditional Jensen to the Radon–Nikodym density after restriction to any sub-sigma-algebra; separately specialize to A and its complement.
- Prove the binary bound
Lower-bound binary likelihood affinity by exp(-d/2), then compare squared affinity with the two testing errors.
- Restore all endpoints
Handle Bernoulli zero/one support cases through the extended-real endpoint convention.
- Lift to measures
Use antitonicity of the testing scale and Q(A complement)=1-Q(A) to obtain the source theorem in the P-to-Q KL direction.
Key source theorem and boundary
Theorem 14.2 / Eq. (14.7) (Bretagnolle–Huber)
Observing an event cannot make two laws easier to distinguish than their full relative entropy permits.
Lean correspondence
Only declarations that exist in the current index and pass the verified build may render as compiled.
| Lean declaration | Status | Role and exact type |
|---|---|---|
BanditRLProof.LowerBounds.BinaryPrefixCode | Compiled | Finite binary prefix-code model with injectivity, nonempty codewords, and prefix freedom.Exact compact Lean statement |
BanditRLProof.LowerBounds.BinaryPrefixCode.kraft_inequality | Compiled | Prefix-code range is uniquely decodable and satisfies the binary Kraft inequality.Exact compact Lean statement |
BanditRLProof.LowerBounds.discreteEntropyBaseTwo_eq_div_log_two | Compiled | Exact conversion between finite base-two and natural entropy.Exact compact Lean statement |
BanditRLProof.LowerBounds.expectedCodeLength | Compiled | Finite expected codeword-length objective from Eq. (14.1).Exact compact Lean statement |
BanditRLProof.LowerBounds.huffmanCode_optimal | Compiled | Recursive Huffman construction minimizes expected length over all local binary prefix codes.Exact compact Lean statement |
BanditRLProof.LowerBounds.exists_prefixCode_of_uniquelyDecodable | Compiled | Every finite injective uniquely decodable encoder has a prefix code preserving each symbol length, including Kraft equality; full aggregate verification passed.Exact compact Lean statement |
BanditRLProof.LowerBounds.IsOptimalPrefixCode.length_antitone | Compiled | An optimal code assigns no longer words to strictly more probable symbols.Exact compact Lean statement |
BanditRLProof.LowerBounds.huffmanCode_entropy_sandwich | Compiled | Eq. (14.2): H ≤ expected Huffman length ≤ H+1.Exact compact Lean statement |
BanditRLProof.LowerBounds.arithmeticBlockCode_rate_tendsto_entropy | Compiled | Named exact-real arithmetic interval/address code has expected IID block rate tending to entropy, including zero masses and constant support-tag overhead.Exact compact Lean statement |
BanditRLProof.LowerBounds.arithmeticBlockCode_payload_interval | Compiled | The actual named code's positive-mass payload lies inside its message arithmetic interval after removing the support tag; the strengthened interface passed the full b5e21b8 gate.Exact compact Lean statement |
BanditRLProof.LowerBounds.sourceBlock_code_family_limit_ge_entropy | Compiled | Universal converse for a convergent expected block-code rate.Exact compact Lean statement |
BanditRLProof.LowerBounds.exists_ceilingLogPrefixCode | Compiled | Fixed-length ceiling-log construction for alphabet cardinality greater than one.Exact compact Lean statement |
BanditRLProof.LowerBounds.fixedLength_uniformPowerTwo_optimal | Compiled | Uniform fixed-length optimality at power-of-two cardinalities; full aggregate verified.Exact compact Lean statement |
BanditRLProof.LowerBounds.uniform_three_fixedLength_not_optimal | Compiled | Ternary mean length 5/3 refutes the broad arbitrary-cardinality uniform fixed-length claim; full aggregate verified.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_finite_crossEntropy | Compiled | Unrounded cross-entropy minus entropy equals finite-alphabet KL under absolute continuity.Exact compact Lean statement |
BanditRLProof.LowerBounds.entropyTerm_tendsto_zero_right | Compiled | The zero-mass entropy convention agrees with its right-hand limit.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy | Compiled | Extended-real alias of Mathlib measure KL in the source direction P to Q.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_of_absolutelyContinuous_of_integrable | Compiled | Theorem 14.1 regular branch with Mathlib's finite-measure mass correction visible.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_of_probability_absolutelyContinuous_of_integrable | Compiled | Probability-measure log-likelihood integral specialization.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_eq_top_of_not_absolutelyContinuous | Compiled | Theorem 14.1 singular branch: support mismatch gives infinity.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_ne_top_iff | Compiled | Exact absolute-continuity and log-likelihood-integrability finiteness contract.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_eq_zero_iff | Compiled | KL separation for finite measures.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_trim_le | Compiled | Full finite-measure arbitrary-sub-sigma-algebra data processing from Exercise 14.10.Exact compact Lean statement |
BanditRLProof.LowerBounds.bernoulliRelativeEntropy | Compiled | Equation (14.4) two-point KL with exact support endpoints.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_finite_sum_log | Compiled | Equation (14.4) on any finite alphabet under support inclusion, including zero source masses.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_finite_eq_if | Compiled | Exhaustive finite-sum or infinity formula from atomwise support inclusion.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_finite_eq_top_iff | Compiled | Infinite finite-alphabet KL exactly when a positive source atom has zero reference mass.Exact compact Lean statement |
BanditRLProof.LowerBounds.finitePartitionRelativeEntropy | Compiled | Eq. (14.5): supremum over all finite measurable observations.Exact compact Lean statement |
BanditRLProof.LowerBounds.finitePartitionRelativeEntropy_eq_relativeEntropy | Compiled | Full finite-discretisation/RN equality for finite measures on arbitrary measurable spaces, including infinite KL.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_commonDensity_eq_if | Compiled | Eq. (14.6) with explicit common-density finite and infinite branches.Exact compact Lean statement |
BanditRLProof.LowerBounds.exists_commonSigmaFiniteDominatingMeasure | Compiled | P+Q supplies common domination; full aggregate verified.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_finite_lt_top_iff_ac | Compiled | Finite-alphabet-only equivalence of finite KL and absolute continuity; full aggregate verified.Exact compact Lean statement |
BanditRLProof.LowerBounds.bernoulliRelativeEntropy_asymmetry | Compiled | Explicit directional counterexample to symmetry.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_triangle_counterexample | Compiled | Finite Gaussian KL counterexample to the triangle inequality.Exact compact Lean statement |
BanditRLProof.LowerBounds.bretagnolleHuberScale_le_half_commonDensityAffinity_sq | Compiled | Source Eq. (14.8) common-density Jensen/affinity step.Exact compact Lean statement |
BanditRLProof.LowerBounds.half_commonDensityAffinity_sq_le_overlap | Compiled | Source Eq. (14.9) affinity-to-overlap step.Exact compact Lean statement |
BanditRLProof.LowerBounds.commonDensityOverlap_le_testingError | Compiled | Source p.191 overlap bound for every measurable testing event; closes the Jensen/affinity/overlap proof chain.Exact compact Lean statement |
BanditRLProof.LowerBounds.klDiv_gaussianReal_same_variance | Compiled | Exact Gaussian KL for a common positive variance.Exact compact Lean statement |
BanditRLProof.LowerBounds.gaussian_testing_max_error_three_twentieths | Compiled | Gaussian testing application with the source 3/20 maximum-error constant.Exact compact Lean statement |
BanditRLProof.LowerBounds.rnDeriv_restrict_restrict | Compiled | Radon–Nikodym derivative identity after restricting both laws to a measurable cell.Exact compact Lean statement |
BanditRLProof.LowerBounds.relativeEntropy_restrict_add_compl | Compiled | Exact KL decomposition across an event and its complement.Exact compact Lean statement |
BanditRLProof.LowerBounds.bernoulliRelativeEntropy_event_le | Compiled | Event-level binary data processing with P(A), Q(A) and D(P,Q).Exact compact Lean statement |
BanditRLProof.LowerBounds.binaryBretagnolleHuber | Compiled | Two-atom Bretagnolle–Huber theorem including singular Bernoulli endpoints.Exact compact Lean statement |
BanditRLProof.LowerBounds.bretagnolleHuberScale | Compiled | Explicit real encoding of one-half exp(-D), with zero at D=infinity.Exact compact Lean statement |
BanditRLProof.LowerBounds.bretagnolleHuberScale_antitone | Compiled | The testing scale reverses the event data-processing inequality.Exact compact Lean statement |
BanditRLProof.LowerBounds.bretagnolleHuber | Compiled | Exact unconditional Theorem 14.2 measure/event terminal.Exact compact Lean statement |
Dependency graph
coding-defsprefix-code and entropy definitionsCompiledkraftprefix-to-unique-decoding Kraft adapterCompiledklmeasure KL and RN branchesCompiledfinite-klfinite-alphabet KL with complete support endpointsCompiledpartition-klfinite-discretisation supremum equals RN KLCompiledfull-dpiarbitrary sub-sigma-algebra data processingCompiledeventevent-level binary data processingCompiledbinarybinary testing and endpoint analysisCompiledbhmeasure Bretagnolle–Huber terminalCompiledcodingHuffman and exact-real arithmetic source-coding terminalsCompiledhistorysame-policy adaptive history KL (compiled in Chapter 15)CompiledReading path
- Start with BinaryPrefixCode and entropy; follow Kraft into huffmanCode_optimal and the named arithmeticBlockCode rate theorem, preserving the nonempty-word and exact-real model boundaries.
- Read Eq. (14.4), Eq. (14.5), Theorem 14.1, and Eq. (14.6) before the testing theorem.
- Inspect relativeEntropy_trim_le for the full Exercise 14.10 conditional-expectation/Jensen proof.
- Inspect relativeEntropy_ne_top_iff to see exactly where absolute continuity and integrability enter.
- Follow the event restriction identity into bernoulliRelativeEntropy_event_le and verify the P-to-Q direction.
- Read the binary endpoint theorem before the measure-level bretagnolleHuber terminal.
- Continue to Chapter 15 for adaptive same-policy history divergence and finite-arm minimax construction.
Strict status and remaining gaps
- The frozen required-body contract passed independent review, main compilation and live publication acceptance; optional Notes/Bibliographic Remarks/Exercises are outside that contract. Full Exercise 14.10 is an additional compiled result.
- Model qualification: singleton codewords are nonempty. Uniform fixed-length optimality is proved for power-of-two cardinalities, not arbitrary cardinalities: the ternary prefix code 0, 10, 11 has mean length 5/3 rather than 2.
- Arithmetic coding is a classical exact-real construction with constant support/escape overhead, not an executable finite-precision encoder. Cross-entropy differences are unrounded; finite KL iff absolute continuity is finite-alphabet-only.
- Adaptive-bandit history likelihood ratios and KL decomposition belong to Chapter 15; the scoped finite-arm same-policy identity now compiles there.