Skip to content

Commit 24bf43f

Browse files
committed
chore: fix grammar in abel,field_simp error message (leanprover-community#37898)
Extracted from leanprover-community#31597.
1 parent 52cc3b4 commit 24bf43f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Mathlib/Util/AtLocation.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def transformAtTarget (m : Expr → ReaderT Simp.Context MetaM Simp.Result) (pro
5656
-- we use expression equality here (rather than defeq) to be consistent with, e.g.,
5757
-- `applySimpResultToTarget`
5858
let unchanged := tgt.cleanupAnnotations == r.expr.cleanupAnnotations
59-
if failIfUnchanged && unchanged then throwError "{proc} made no progress on goal"
59+
if failIfUnchanged && unchanged then throwError "{proc} made no progress on the goal"
6060
if r.expr.isTrue then
6161
goal.assign (← mkOfEqTrue (← r.getProof))
6262
pure none

MathlibTest/FieldSimp.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ section
2929

3030
variable {P : ℚ → Prop} {x y z : ℚ}
3131

32-
/-- error: `field_simp` made no progress on goal -/
32+
/-- error: `field_simp` made no progress on the goal -/
3333
#guard_msgs in
3434
example : P (1 : ℚ) := by test_field_simp
3535

@@ -43,7 +43,7 @@ example : P (x ^ 0) := by test_field_simp
4343
#guard_msgs in
4444
example : P (x ^ 1) := by test_field_simp
4545

46-
/-- error: `field_simp` made no progress on goal -/
46+
/-- error: `field_simp` made no progress on the goal -/
4747
#guard_msgs in
4848
example : P x := by test_field_simp
4949

@@ -181,7 +181,7 @@ example {a : Nat} : P (a* x - a * x) := by test_field_simp
181181

182182
/-! ### Two atoms -/
183183

184-
/-- error: `field_simp` made no progress on goal -/
184+
/-- error: `field_simp` made no progress on the goal -/
185185
#guard_msgs in
186186
example : P (x + y) := by test_field_simp
187187

@@ -959,7 +959,7 @@ example {K : Type} [Semifield K] {x y : K} (h : x + y ≠ 0) : x / (x + y) + y /
959959
-- Extracted from `Mathlib/Analysis/SpecificLimits/Basic.lean`
960960

961961
-- `field_simp` assumes commutativity: in its absence, it does nothing.
962-
/-- error: `field_simp` made no progress on goal -/
962+
/-- error: `field_simp` made no progress on the goal -/
963963
#guard_msgs in
964964
example {K : Type*} [DivisionRing K] {n' x : K} (h : n' ≠ 0) (h' : n' + x ≠ 0) :
965965
1 / (1 + x / n') = n' / (n' + x) := by

MathlibTest/abel.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ example [AddCommGroup α] (a b c : α) :
5858
def MyTrue := True
5959

6060
/--
61-
error: `abel_nf` made no progress on goal
61+
error: `abel_nf` made no progress on the goal
6262
-/
6363
#guard_msgs in
6464
example : MyTrue := by
@@ -87,14 +87,14 @@ example [AddCommGroup α] (x y z : α) : y = x + z - (x - y + z) := by
8787
example [AddCommGroup α] (a b s : α) : -b + (s - a) = s - b - a := by abel_nf
8888

8989
-- inspired by automated testing
90-
/-- error: `abel_nf` made no progress on goal -/
90+
/-- error: `abel_nf` made no progress on the goal -/
9191
#guard_msgs in
9292
example : True := by
9393
have := 0
9494
abel_nf
9595

9696
/--
97-
error: `abel_nf` made no progress on goal
97+
error: `abel_nf` made no progress on the goal
9898
-/
9999
#guard_msgs in
100100
example : False := by abel_nf
@@ -149,7 +149,7 @@ example [AddCommGroup α] (x y z : α) (w : x = y + z) : x - x = 0 := by
149149
abel_nf at w ⊢
150150

151151
/--
152-
error: `abel_nf` made no progress on goal
152+
error: `abel_nf` made no progress on the goal
153153
-/
154154
#guard_msgs in
155155
example [AddCommGroup α] (x y z : α) (w : x - x = y + z) : x = 0 := by

0 commit comments

Comments
 (0)