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 / V01. The language of Mathlib

Mathlib.Data.Bool.AllAny

3 declarations. Mathlib docs · Source

theorem List.all_iff_forall_prop E1 #

∀ {α : Type u_1} {p : α → Prop} [inst : DecidablePred p] {l : List α},
  (l.all fun a ↦ decide (p a)) = true ↔ ∀ a ∈ l, p a

theorem List.any_iff_exists_prop E1 #

∀ {α : Type u_1} {p : α → Prop} [inst : DecidablePred p] {l : List α},
  (l.any fun a ↦ decide (p a)) = true ↔ ∃ a ∈ l, p a

theorem List.any_of_mem E1 #

∀ {α : Type u_1} {l : List α} {a : α} {p : α → Bool}, a ∈ l → p a = true → l.any p = true