lean4-htt/tests/lean/run/declareConfigElabBug.lean
Joachim Breitner 0e49576fe4
feat: guard_msgs to treat trace messages separate (#8267)
This PR makes `#guard_msgs` to treat `trace` messages separate from
`info`, `warning` and `error`. It also introduce the ability to say
`#guard_msgs (pass info`, like `(drop info)` so far, and also adds
`(check info)` as the explicit form of `(info)`, for completeness.

Fixes #8266
2025-05-09 05:44:34 +00:00

12 lines
285 B
Text

set_option trace.Elab true
/--
trace: α✝ : Sort u_1
a b : α✝
h : a = b
⊢ (fun x => x) a = b
-/
#guard_msgs in
theorem ex (h : a = b) : (fun x => x) a = b := by
simp (config := { beta := false, failIfUnchanged := false })
trace_state
simp (config := { beta := true }) [h]