# How many mistakes does it take to learn an interval? Exact Littlestone dimensions of intervals and their unions

arXiv: https://arxiv.org/abs/2611.28727 · HTML: https://mlsanity.com/paper/2611.28727/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 11 of its 46 references that are in the map.
- Submitted 21 Nov 2026, announced 24 Nov 2026.

## Builds on (most cited first, 11 of 11)

- [The Lean mathematical library](https://mlsanity.com/paper/1910.09336/) (2019)
- [Optimal Prediction Using Expert Advice and Randomized Littlestone Dimension](https://mlsanity.com/paper/2302.13849/) (2023)
- [A Trichotomy for Transductive Online Learning](https://mlsanity.com/paper/2311.06428/) (2023)
- [A note on the price of bandit feedback for mistake-bounded online learning](https://mlsanity.com/paper/2101.06891/) (2021)
- [Simple online learning with consistent oracle](https://mlsanity.com/paper/2308.08055/) (2023)
- [Lean Formalization of Generalization Error Bound by Rademacher Complexity and Dudley's Entropy Integral](https://mlsanity.com/paper/2503.19605/) (2025)
- [The Dimension of Self-Directed Learning](https://mlsanity.com/paper/2402.13400/) (2024)
- [A Theory of Online Learning with Autoregressive Chain-of-Thought Reasoning](https://mlsanity.com/paper/2605.06819/) (2026)
- [Online Learning of Smooth Functions](https://mlsanity.com/paper/2301.01434/) (2023)
- [Tradeoffs between Mistakes and ERM Oracle Calls in Online and Transductive Online Learning](https://mlsanity.com/paper/2506.00135/) (2025)
- [Optimal Mistake Bounds for Transductive Online Learning](https://mlsanity.com/paper/2512.12567/) (2025)

## Abstract (arXiv)

The Littlestone dimension of a hypothesis class equals the smallest number of mistakes an online learner can guarantee against an adaptive adversary. For discrete intervals and unions of j intervals on m points, only its order of growth was known. We determine it exactly. For every switch budget k (with both end labels fixed when k is odd), the smallest size on which d mistakes can be forced follows a three-regime law: d+1 while d≤ k, then 2d-k+1, and beyond d=lceil 3k/2rceil+k-1 doubling the size adds exactly k mistakes. Unions of j intervals on m points correspond to k=2j and size m+1, and a single interval gives the thresholds 1,2,3,5,7,10,14,20,dots. The natural learner that waits for a positive example and binary-searches both endpoints is not optimal: it can be forced into one extra mistake for 50,847 of the domain sizes below 105. Upper bounds come from a gap potential and a block-pairing learner, and lower bounds from adversary strategies and a refinement step. These tools give an explicit optimal learner with O(log m) time per round, which on random streams makes more mistakes on average than the natural learner. For randomised learners, we compute the randomised Littlestone dimension of thresholds exactly and prove that a greedy adversary forces an explicit closed-form number of expected mistakes on intervals; this bound is within 0.64 of optimal and, we conjecture, exact (confirmed for m≤70). Exact computation tests every result, and the formulas for every switch budget are machine-checked in Lean 4.
