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 / V04. Order and lattices

Mathlib.Order.Nat

5 declarations. Mathlib docs · Source

The natural numbers form a linear order

This file contains the linear order instance on the natural numbers.

See note [foundational algebra order theory].

TODO

Move the LinearOrder ℕ instance here (https://github.com/leanprover-community/mathlib4/pull/13092).

Miscellaneous lemmas

instance Nat.instOrderBot E0 #

OrderBot ℕ

instance Nat.instNoMaxOrder E0 #

NoMaxOrder ℕ

theorem Nat.bot_eq_zero E0 #

⊥ = 0

theorem Nat.isLeast_find E1 #

∀ {p : ℕ → Prop} [inst : DecidablePred p] (hp : ∃ n, p n), IsLeast {n | p n} (Nat.find hp)

Nat.find is the minimum natural number satisfying a predicate p.

theorem Set.Nonempty.isLeast_natFind E1 #

∀ {s : Set ℕ} [inst : DecidablePred fun x ↦ x ∈ s] (hs : s.Nonempty), IsLeast s (Nat.find hs)

Nat.find is the minimum element of a nonempty set of natural numbers.