discrete_intervals
The concept class of discrete intervals on Fin m, formalized as a Finset of indicator functions Fin m → Bool, containing the constantly false function and the indicator function of {x : Fin m | a.val ≤ x.val ∧ x.val ≤ b.val} for every pair (a, b) : Fin m × Fin m with a ≤ b.
Statement
def discrete_intervals (m : ℕ) : Finset (Fin m → Bool)- Defined in
- arXiv:2611.28727 Section 1 and Figure 8
- Verified
- 24 Nov 2026
- Axioms
- none listed
Read back from the Lean
For a natural number m, discrete_intervals m is defined as the finite set (Finset) of functions from Fin m to Bool obtained by inserting the constantly false function (fun _ => false) into the image, under the function mapping a pair p to the indicator function fun x => decide (p.1.val ≤ x.val ∧ x.val ≤ p.2.val), of the set of all pairs p : Fin m × Fin m satisfying p.1 ≤ p.2. That is, it consists of the all-false function along with the indicator functions of all closed intervals [p.1, p.2] in Fin m with p.1 ≤ p.2.
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 concept class of discrete intervals on Fin m. -/ def discrete_intervals (m : ℕ) : Finset (Fin m → Bool) := insert (fun _ => false) (((Finset.univ : Finset (Fin m × Fin m)).filter (fun p => p.1 ≤ p.2)).image (fun p => fun x => decide (p.1.val ≤ x.val ∧ x.val ≤ p.2.val)))