lean4-htt/tests/lean/run/run_cmd.lean
Leonardo de Moura 88a5d27d65
chore: upstream run_cmd and fixes bugs (#3324)
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
2024-02-14 04:15:28 +00:00

13 lines
255 B
Text

import Lean
open Lean Elab Tactic
run_cmd logInfo m!"hello world"
run_cmd unsafe do logInfo "!"
example : True := by
run_tac
evalApplyLikeTactic MVarId.apply (← `(True.intro))
example : True := by_elab
Term.elabTerm (← `(True.intro)) none