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 / V02. Numbers

Mathlib.Data.Nat.Set

5 declarations. Mathlib docs · Source

theorem Nat.zero_union_range_succ E1 #

{0} ∪ Set.range Nat.succ = Set.univ

theorem Nat.range_succ E0 #

Set.range Nat.succ = {i | 0 < i}

theorem Nat.range_of_succ E1 #

∀ {α : Type u_1} (f : ℕ → α), {f 0} ∪ Set.range (f ∘ Nat.succ) = Set.range f

theorem Nat.range_rec E1 #

∀ {α : Type u_2} (x : α) (f : ℕ → α → α),
  (Set.range fun n ↦ Nat.rec x f n) = {x} ∪ Set.range fun n ↦ Nat.rec (f 0 x) (f ∘ Nat.succ) n

theorem Nat.range_casesOn E1 #

∀ {α : Type u_2} (x : α) (f : ℕ → α), (Set.range fun n ↦ Nat.casesOn n x f) = {x} ∪ Set.range f