This PR updates various error messages produced by or associated with built-in tactics and adapts their formatting to current conventions.
28 lines
653 B
Text
28 lines
653 B
Text
/-!
|
|
The (attribute-extensible) `rfl` tactic only unfolds the goal with reducible transparency to look
|
|
for a relation which may have a `refl` lemma associated with it. But historically, `rfl` also
|
|
invoked `eq_refl`, which more aggressively unfolds. This checks that this still works.
|
|
-/
|
|
|
|
def Foo (a b : Nat) : Prop := a = b
|
|
|
|
/--
|
|
error: Tactic `rfl` failed: No `[refl]` lemma registered for relation
|
|
Foo
|
|
|
|
Hint: Add the `[refl]` attribute to reflexivity lemmas for `Foo` to use this tactic
|
|
|
|
⊢ Foo 1 1
|
|
-/
|
|
#guard_msgs in
|
|
example : Foo 1 1 := by
|
|
apply_rfl
|
|
|
|
|
|
#guard_msgs in
|
|
example : Foo 1 1 := by
|
|
eq_refl
|
|
|
|
#guard_msgs in
|
|
example : Foo 1 1 := by
|
|
rfl
|