Properties of List.enum
#
Deprecation note #
Many lemmas in this file have been replaced by theorems in Lean4,
in terms of xs[i]?
and xs[i]
rather than get
and get?
.
The deprecated results here are unused in Mathlib. Any downstream users who can not easily adapt may remove the deprecations as needed.
@[deprecated List.getElem?_enumFrom]
theorem
List.get?_enumFrom
{α : Type u_1}
(n : ℕ)
(l : List α)
(m : ℕ)
:
(List.enumFrom n l).get? m = Option.map (fun (a : α) => (n + m, a)) (l.get? m)
@[deprecated List.get?_enumFrom]
theorem
List.enumFrom_get?
{α : Type u_1}
(n : ℕ)
(l : List α)
(m : ℕ)
:
(List.enumFrom n l).get? m = Option.map (fun (a : α) => (n + m, a)) (l.get? m)
Alias of List.get?_enumFrom
.
@[deprecated List.getElem?_enum]
theorem
List.get?_enum
{α : Type u_1}
(l : List α)
(n : ℕ)
:
l.enum.get? n = Option.map (fun (a : α) => (n, a)) (l.get? n)
@[deprecated List.get?_enum]
theorem
List.enum_get?
{α : Type u_1}
(l : List α)
(n : ℕ)
:
l.enum.get? n = Option.map (fun (a : α) => (n, a)) (l.get? n)
Alias of List.get?_enum
.
@[deprecated List.getElem_enumFrom]
theorem
List.get_enumFrom
{α : Type u_1}
(l : List α)
(n : ℕ)
(i : Fin (List.enumFrom n l).length)
:
(List.enumFrom n l).get i = (n + ↑i, l.get (Fin.cast ⋯ i))