lean2/tests/lean/run/505.lean
2015-03-25 15:53:50 -07:00

20 lines
480 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
open set
section
variable {A : Type}
definition set_of (P : A → Prop) : set A := P
notation `{` binders `|` r:(scoped:1 P, set_of P) `}` := r
definition insert (a : A) (s : set A) : set A := {x : A | x = a x ∈ s}
notation `⦃` s:(foldr `,` (a t, insert a t) ∅) `⦄` := s
notation `{` `{` s:(foldr `,` (a t, insert a t) ∅) `}` `}` := s
check ⦃1, 2, 3⦄
check {{1, 2, 3}}
definition foo {X : Type} {{ x : X }} : X := x
end