Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit f74213b

Browse files
committed
feat(algebra/ordered_group): proof of le without density (#7191)
1 parent 60060c3 commit f74213b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/algebra/ordered_group.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,9 @@ le_of_forall_le_of_dense $ λ c hc,
700700
calc a ≤ b + (c - b) : h _ (sub_pos_of_lt hc)
701701
... = c : add_sub_cancel'_right _ _
702702

703+
lemma le_of_forall_pos_lt_add (h : ∀ ε : α, 0 < ε → a < b + ε) : a ≤ b :=
704+
le_of_not_lt $ λ h₁, by simpa using h _ (sub_pos_of_lt h₁)
705+
703706
/-- `abs a` is the absolute value of `a`. -/
704707
def abs (a : α) : α := max a (-a)
705708

0 commit comments

Comments
 (0)