lean4-htt/tests/lean/run/zetaDeltaTryThisIssue.lean
Alok Singh 949cf69246
chore: use backticks for sorry in diagnostic messages (#11608)
This PR changes the "declaration uses 'sorry'" warning to use backticks
instead of single quotes, consistent with Lean's conventions for
formatting code identifiers in diagnostic messages.
2025-12-15 14:30:21 +00:00

29 lines
503 B
Text

opaque f : Nat → Nat
/--
info: Try this:
[apply] simp only [h1, x]
---
warning: declaration uses `sorry`
-/
#guard_msgs in
example (a : Nat) : True := by
let x := a
have h1 : f x = 2 := sorry
suffices f a = 2 by sorry
let w := a + a
simp? only [h1, w, x]
/--
info: Try this:
[apply] simp only [this, x]
---
warning: declaration uses `sorry`
-/
#guard_msgs in
example : True := by
let x := 37
let y := 34
have : x = 2 := sorry
suffices 37 = 2 by sorry
simp? only [this, x, y]