Skip to content

Commit e107beb

Browse files

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Mathlib/Algebra/Order/Group/Unbundled/Abs.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ section Group
3434
variable [Group α] {a b : α}
3535

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

4040
@[inherit_doc mabs]

MathlibTest/grind/linarith.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Mathlib
2+
3+
example {α : Type*} [LinearOrder α] [CommRing α] [IsStrictOrderedRing α]
4+
(a b c d : α) : |a - b| ≤ |a - c| + |c - d| + |b - d| := by
5+
grind
6+
7+
example (L : ℝ) : 0 < 1 + |L| := by
8+
grind

0 commit comments

Comments
 (0)