lean4-htt/old_tests/tests/lean/qexpr2.lean
2018-04-10 12:56:55 -07:00

13 lines
280 B
Text

open tactic
set_option pp.all true
example (a b c : nat) : true :=
by do
x ← to_expr ```(_ + b) tt,
trace x, infer_type x >>= trace,
constructor,
-- fill hole with 'c'
get_local `c >>= exact,
trace "------ after instantiate_mvars",
instantiate_mvars x >>= trace