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

12 lines
404 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.

constant union_is_assoc {α} : is_associative (set α) ()
attribute [instance] union_is_assoc
#check ({} : set nat)
open tactic expr
meta def is_assoc_bin_app : expr → tactic (expr × expr)
| (app (app op a1) a2) := do h ← to_expr ``(is_associative.assoc %%op), return (op, h)
| _ := failed
run_cmd to_expr ``(({} : set nat) {}) >>= is_assoc_bin_app >>= λ p, trace p.2