Open Seasawher opened 1 week ago
なんとコマンドを自分で定義すれば検証できることがわかった!
import Lean
open Lean
elab "#tactic_expand " t:tactic : command => do
let some t ← Elab.liftMacroM <| Lean.Macro.expandMacro? t | logInfo m!"Not a macro"
logInfo m!"{t}"
/-- info: (refine ⟨1, ?_⟩; try trivial) -/
#guard_msgs in #tactic_expand exists 1