Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Mathlib/Algebra/Order/Group/Unbundled/Abs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ section Group
variable [Group α] {a b : α}

/-- `mabs a`, denoted `|a|ₘ`, is the absolute value of `a`. -/
@[to_additive /-- `abs a`, denoted `|a|`, is the absolute value of `a` -/]
@[to_additive (attr := grind) /-- `abs a`, denoted `|a|`, is the absolute value of `a` -/]
def mabs (a : α) : α := a ⊔ a⁻¹

@[inherit_doc mabs]
Expand Down
8 changes: 8 additions & 0 deletions MathlibTest/grind/linarith.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Mathlib

example {α : Type*} [LinearOrder α] [CommRing α] [IsStrictOrderedRing α]
(a b c d : α) : |a - b| ≤ |a - c| + |c - d| + |b - d| := by
grind

example (L : ℝ) : 0 < 1 + |L| := by
grind