Documentation

Mathlib.Data.Nat.WithBot

WithBot ℕ #

Lemmas about the type of natural numbers with a bottom element adjoined.

theorem Nat.WithBot.add_eq_zero_iff {n m : WithBot ℕ} :
n + m = 0 ↔ n = 0 ∧ m = 0
theorem Nat.WithBot.add_eq_one_iff {n m : WithBot ℕ} :
n + m = 1 ↔ n = 0 ∧ m = 1 ∨ n = 1 ∧ m = 0
theorem Nat.WithBot.add_eq_two_iff {n m : WithBot ℕ} :
n + m = 2 ↔ n = 0 ∧ m = 2 ∨ n = 1 ∧ m = 1 ∨ n = 2 ∧ m = 0
theorem Nat.WithBot.add_eq_three_iff {n m : WithBot ℕ} :
n + m = 3 ↔ n = 0 ∧ m = 3 ∨ n = 1 ∧ m = 2 ∨ n = 2 ∧ m = 1 ∨ n = 3 ∧ m = 0
theorem Nat.WithBot.coe_nonneg {n : ℕ} :
0 ≤ ↑n
@[simp]
theorem Nat.WithBot.add_one_le_of_lt {n m : WithBot ℕ} (h : n < m) :
n + 1 ≤ m