lean4-htt/tests/lean/run/rflReducibility.lean
jrr6 62f14514da
refactor: update built-in tactic error messages (#9633)
This PR updates various error messages produced by or associated with
built-in tactics and adapts their formatting to current conventions.
2025-07-31 14:16:57 +00:00

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