Skip to content

Commit

Permalink
feat(algebra/order_functions): max_lt_max and min_lt_min (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
minchaowu authored and ChrisHughes24 committed Feb 7, 2019
1 parent 51f80a3 commit 8911b8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/algebra/order_functions.lean
Expand Up @@ -58,6 +58,12 @@ by rw [lt_iff_not_ge]; simp [(≥), max_le_iff, not_and_distrib]
@[simp] lemma min_lt_iff : min a b < c ↔ a < c ∨ b < c :=
by rw [lt_iff_not_ge]; simp [(≥), le_min_iff, not_and_distrib]

lemma max_lt_max (h₁ : a < c) (h₂ : b < d) : max a b < max c d :=
by apply max_lt; simp [lt_max_iff, h₁, h₂]

lemma min_lt_min (h₁ : a < c) (h₂ : b < d) : min a b < min c d :=
by apply lt_min; simp [min_lt_iff, h₁, h₂]

theorem min_right_comm (a b c : α) : min (min a b) c = min (min a c) b :=
right_comm min min_comm min_assoc a b c

Expand Down

0 comments on commit 8911b8c

Please sign in to comment.