Lemmas about List.range
and List.enum
#
Most of the results are deferred to Data.Init.List.Nat.Range
, where more results about
natural arithmetic are available.
Ranges and enumeration #
range' #
range #
enumFrom #
@[simp]
theorem
List.getElem?_enumFrom
{α : Type u_1}
(n : Nat)
(l : List α)
(m : Nat)
:
(enumFrom n l)[m]? = Option.map (fun (a : α) => (n + m, a)) l[m]?