mathlib3 documentation

data.nat.with_bot

with_bot ℕ #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

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

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