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

14 lines
496 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

meta constant term : Type
meta constant smt2.builder.int_const : int -> term
meta constant smt2_state : Type
@[reducible] meta def smt2_m (α : Type) :=
state_t smt2_state tactic α
meta instance tactic_to_smt2_m (α : Type) : has_coe (tactic α) (smt2_m α) :=
⟨ fun tc, ⟨fun s, do res ← tc, return (res, s)⟩ ⟩
meta def reflect_arith_formula : expr → smt2_m term
| `(has_zero.zero) := smt2.builder.int_const <$> tactic.eval_expr int `(has_zero.zero int)
| a := tactic.fail "foo"