A student-first route
How to read the formalization
You do not need to read thousands of declarations in source order. Begin with the deterministic language, learn the probability interfaces, then follow one algorithm route from assumptions to a compiled endpoint.
Recommended path
flowchart LR Start["New to Lean or bandit/RL proofs"] --> F["1. Foundations"] F --> P["2. Probability layer"] F --> ETC["3. ETC"] ETC --> UCB["4. UCB"] P --> UCB UCB --> OFUL["5. OFUL + stopping times"] P --> TS["6. Thompson sampling"] F --> E["7. EXP3"] P --> E E --> T["8. Tsallis-FTRL"] P --> T P --> RL["9. Finite-horizon RL"] OFUL --> RL UCB --> RL RL --> Frontier["10. Frontier + contribution workflow"] T --> Frontier TS --> Frontier IDE["Research IDE: LaTeX ↔ Lean ↔ tree"] -. "use beside every chapter" .-> F IDE -.-> RL
Four Lean ideas to recognize
Structures
Bundle mathematical data with invariant proofs, such as a finite model and its best-arm certificate.
Typeclasses
Supply ambient facts such as measurable spaces, finite types, probability measures, and nonempty action sets.
Almost everywhere
Conditional distributions and kernel identities are usually equal almost everywhere, not pointwise.
Thin wrappers
Algorithm-specific theorems should reuse general finite-sum, measure, concentration, and optimization leaves.
Formalized textbook map
Book map
The main spine is Lattimore and Szepesvári's Bandit Algorithms. OFUL, Tsallis-INF, and UCBVI add their original papers. Online-edition pages are shown on every chapter card; the source pages themselves explain the exact algorithms and full assumptions.
Reader. Start here if you know basic probability or machine learning but are new to this Lean library.
Reader. Read after Foundations; familiarity with conditional expectation helps but is not required.
Reader. The shortest end-to-end stochastic-bandit route in the repository.
Reader. Read ETC first if confidence-event arguments are new to you.
Reader. Read the Probability layer and UCB chapter before this linear-bandit route.
Reader. Best read after the Probability layer.
Reader. Read Foundations first; later sections use the Probability layer heavily.
Reader. This is one of the longest routes; read EXP3 and the Probability layer first.
Reader. Read Foundations, Probability, UCB, and the OFUL stopping-time material first.
Reader. Read this chapter to contribute a new route or understand what is deliberately not claimed.
Canonical source sequence
Part IV: Lower Bounds
Use this separate spine when you want the exact textbook order and page mapping for Chapters 13–17. Status is per chapter and per Lean declaration.
The Chapter 13 semantic and deterministic slice and Chapter 15 same-policy history KL bridge are compiled. Theorem 13.1 remains blocked on the Gaussian regret/event and caller-free minimax terminal.
Chapter 14 Partial Foundations of Information Theory 160–169 print · 195–206 PDFThe source-faithful §14.2 relative-entropy and Bretagnolle–Huber spine is compiled. Entropy/source coding in §14.1 and full sub-sigma-algebra data processing remain outside this scoped gate.
Chapter 15 Partial Minimax Lower Bounds 170–176 print · 207–214 PDFLemma 15.1 now compiles for finite arms, a countably generated reward space, arbitrary Markov arm laws, and one common randomized history policy. The unit-Gaussian dependency slice also compiles; Theorem 15.2 and the 1/27 minimax terminal remain blocked.
Chapter 16 Partial Instance-Dependent Lower Bounds 177–184 print · 215–223 PDFDefinition 16.1, Theorem 16.2, Lemma 16.3, and Theorem 16.4 are source-frozen. Generic consistency, d_inf, Gaussian-candidate, eventual power, and eventual log-growth leaves compile; the bandit information, liminf, and finite-time terminals remain blocked.
Chapter 17 Partial High-Probability Lower Bounds 185–190 print · 224–230 PDFClaim 17.5's first-moment witness and reusable threshold, event-subtraction, and deterministic Eq. (17.8) algebra compile. The stochastic tail terminals and clipped-normal adversarial construction remain blocked.