Documentation

Mathlib.Data.Nat.WithBot

WithBot #

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

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