lean4-htt/tests/lean/run/empty_set_inside_quotations.lean
2017-03-09 18:41:19 -08:00

11 lines
321 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.

import data.set
#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