lean4-htt/tests/lean/run/sealCommand.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

36 lines
452 B
Text

set_option pp.mvars false
def f (x : Nat) := x + 1
example : f x = x + 1 := rfl
/--
error: Type mismatch
rfl
has type
?_ = ?_
but is expected to have type
f x = x + 1
-/
#guard_msgs in
seal f in
example : f x = x + 1 := rfl
example : f x = x + 1 := rfl
seal f
/--
error: Type mismatch
rfl
has type
?_ = ?_
but is expected to have type
f x = x + 1
-/
#guard_msgs in
example : f x = x + 1 := rfl
unseal f
example : f x = x + 1 := rfl