Skip to content

Commit

Permalink
feat(algebra/ordered_group): proof of le without density (#7191)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-mehta committed Apr 14, 2021
1 parent 60060c3 commit f74213b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/algebra/ordered_group.lean
Expand Up @@ -700,6 +700,9 @@ le_of_forall_le_of_dense $ λ c hc,
calc a ≤ b + (c - b) : h _ (sub_pos_of_lt hc)
... = c : add_sub_cancel'_right _ _

lemma le_of_forall_pos_lt_add (h : ∀ ε : α, 0 < ε → a < b + ε) : a ≤ b :=
le_of_not_lt $ λ h₁, by simpa using h _ (sub_pos_of_lt h₁)

/-- `abs a` is the absolute value of `a`. -/
def abs (a : α) : α := max a (-a)

Expand Down

0 comments on commit f74213b

Please sign in to comment.