Intervals in ℕ #
This file defines intervals of naturals. List.Ico m n is the list of integers greater than m
and strictly less than n.
TODO #
- Define
IooandIcc, state basic lemmas about them. - Also do the versions for integers?
- One could generalise even further, defining 'locally finite partial orders', for which
Set.Ico a bis[Finite], and 'locally finite total orders', for which there is a list model. - Once the above is done, get rid of
Int.range(and maybeList.range'?).
Ico n m is the list of natural numbers n ≤ x < m.
(Ico stands for "interval, closed-open".)
See also Mathlib/Order/Interval/Basic.lean for modelling intervals in general preorders, as well
as sibling definitions alongside it such as Set.Ico, Multiset.Ico and Finset.Ico
for sets, multisets and finite sets respectively.
Equations
- List.Ico n m = List.range' n (m - n)
Instances For
@[deprecated List.Ico.notMem_top (since := "2025-05-23")]
Alias of List.Ico.notMem_top.