lean4-htt/library/smt/prove.lean
Daniel Selsam 4f8db64e23 refactor(simplifier): many fixes, extensions, and tests
fix(simplifier): missing simp rule in prop simplifier
fix(library/unfold_macros): do not look for untrusted macros when using sufficient trust level
2016-08-19 14:57:03 -07:00

15 lines
390 B
Text

namespace smt
open tactic
private meta_definition collect_props : list expr → tactic (list expr)
| [] := return []
| (H :: Hs) := do
Eqs ← collect_props Hs,
Htype ← infer_type H >>= whnf,
return $ if Htype = expr.prop then H :: Eqs else Eqs
meta_definition prove : tactic unit :=
do local_context >>= collect_props >>= revert_lst,
simplify_goal failed []
end smt