Mathlib.Data.Nat.WithBot
10 declarations. Mathlib docs · Source
instance Nat.WithBot.instWellFoundedRelationWithBot E0 #
WellFoundedRelation (WithBot ℕ)
theorem Nat.WithBot.add_eq_zero_iff E0 #
∀ {n m : WithBot ℕ}, n + m = 0 ↔ n = 0 ∧ m = 0
theorem Nat.WithBot.add_eq_one_iff E0 #
∀ {n m : WithBot ℕ}, n + m = 1 ↔ n = 0 ∧ m = 1 ∨ n = 1 ∧ m = 0
theorem Nat.WithBot.add_eq_two_iff E0 #
∀ {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 E0 #
∀ {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 E0 #
∀ {n : ℕ}, 0 ≤ ↑n
theorem Nat.WithBot.lt_zero_iff E0 #
∀ {n : WithBot ℕ}, n < 0 ↔ n = ⊥
theorem Nat.WithBot.one_le_iff_zero_lt E1 #
∀ {x : WithBot ℕ}, 1 ≤ x ↔ 0 < x
theorem Nat.WithBot.lt_one_iff_le_zero E1 #
∀ {x : WithBot ℕ}, x < 1 ↔ x ≤ 0
theorem Nat.WithBot.add_one_le_of_lt E1 #
∀ {n m : WithBot ℕ}, n < m → n + 1 ≤ m