The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V33. Data structures and computation

Mathlib.Data.List.Enum

4 declarations. Mathlib docs · Source

theorem List.forall_mem_zipIdx E1 #

∀ {α : Type u_1} {l : List α} {n : ℕ} {p : α × ℕ → Prop},
  (∀ x ∈ l.zipIdx n, p x) ↔ ∀ (i : ℕ) (x : i < l.length), p (l[i], n + i)

theorem List.forall_mem_zipIdx' E1 #

∀ {α : Type u_1} {l : List α} {p : α × ℕ → Prop}, (∀ x ∈ l.zipIdx, p x) ↔ ∀ (i : ℕ) (x : i < l.length), p (l[i], i)

Variant of forall_mem_zipIdx with the zipIdx argument specialized to 0.

theorem List.exists_mem_zipIdx E1 #

∀ {α : Type u_1} {l : List α} {n : ℕ} {p : α × ℕ → Prop},
  (∃ x ∈ l.zipIdx n, p x) ↔ ∃ i, ∃ (x : i < l.length), p (l[i], n + i)

theorem List.exists_mem_zipIdx' E1 #

∀ {α : Type u_1} {l : List α} {p : α × ℕ → Prop}, (∃ x ∈ l.zipIdx, p x) ↔ ∃ i, ∃ (x : i < l.length), p (l[i], i)

Variant of exists_mem_zipIdx with the zipIdx argument specialized to 0.