Documentation

Init.Data.List.Nat.Find

theorem List.find?_eq_some_iff_getElem {α : Type u_1} {xs : List α} {p : αBool} {b : α} :
List.find? p xs = some b p b = true ∃ (i : Nat), ∃ (h : i < xs.length), xs[i] = b ∀ (j : Nat) (hj : j < i), (!p xs[j]) = true
theorem List.findIdx?_eq_some_le_of_findIdx?_eq_some {α : Type u_1} {xs : List α} {p q : αBool} (w : ∀ (x : α), x xsp x = trueq x = true) {i : Nat} (h : List.findIdx? p xs = some i) :
∃ (j : Nat), j i List.findIdx? q xs = some j