fix(library/data/nat/order): add missing theorems back
This commit is contained in:
parent
6936d71030
commit
c2fc612ec1
1 changed files with 7 additions and 0 deletions
|
@ -537,6 +537,13 @@ decidable.by_cases
|
|||
theorem max_add_add_right (a b c : ℕ) : max (a + c) (b + c) = max a b + c :=
|
||||
by rewrite [add.comm a c, add.comm b c, add.comm _ c]; apply max_add_add_left
|
||||
|
||||
theorem max_eq_right' {a b : ℕ} (H : a < b) : max a b = b :=
|
||||
if_pos H
|
||||
|
||||
-- different versions will be defined in algebra
|
||||
theorem max_eq_left' {a b : ℕ} (H : ¬ a < b) : max a b = a :=
|
||||
if_neg H
|
||||
|
||||
/- greatest -/
|
||||
|
||||
section greatest
|
||||
|
|
Loading…
Reference in a new issue