discrete_intervals_p
The sequence discrete_intervals_p : ℕ → ℕ, defined by discrete_intervals_p 0 = 1, discrete_intervals_p 1 = 2, discrete_intervals_p 2 = 3, and for d ≥ 3, discrete_intervals_p d = if d % 2 = 1 then 5 * 2^((d - 1) / 2 - 1) else 7 * 2^(d / 2 - 2).
Statement
def discrete_intervals_p : ℕ → ℕ- Defined in
- arXiv:2611.28727, eq. (1)
- Verified
- 28 Nov 2026
- Axioms
- none listed
Read back from the Lean
The function discrete_intervals_p : ℕ → ℕ is defined by cases on its argument:
- discrete_intervals_p 0 = 1
- discrete_intervals_p 1 = 2
- discrete_intervals_p 2 = 3
- for any natural number $d \ge 3$:
- if $d \pmod 2 = 1$ (i.e., $d$ is odd), it evaluates to $5 \cdot 2^{(d - 1) / 2 - 1}$;
- otherwise (i.e., $d$ is even), it evaluates to $7 \cdot 2^{d / 2 - 2}$,
where / and - denote natural number division and truncated subtraction.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The threshold sequence P(d) governing the Littlestone dimension of discrete intervals. -/ def discrete_intervals_p : ℕ → ℕ | 0 => 1 | 1 => 2 | 2 => 3 | d => if d % 2 = 1 then 5 * 2 ^ ((d - 1) / 2 - 1) else 7 * 2 ^ (d / 2 - 2)