English
The range series in Nat is defined by length n, toFun i = i, and step i = Nat.lt_add_one i.
Русский
Диапазон в ℕ задаётся длиной n, отображением toFun i = i и шагом i = i+1.
LaTeX
$$$\text{def range }(n: \mathbb{N}) : LTSeries\mathbb{N}$ where\n \text{length} := n\n \text{toFun} := fun i \Rightarrow i\n \text{step} i := Nat.lt_add_one i$$$
Lean4
/-- The strict series `0 < … < n` in `ℕ`. -/
def range (n : ℕ) : LTSeries ℕ where
length := n
toFun := fun i => i
step i := Nat.lt_add_one i