Skip to content
Snippets Groups Projects

Allow pattern and type annotations in propset notation

Merged Thibaut Pérami requested to merge tperami/stdpp:propsetbinder into master
All threads resolved!
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -9,6 +9,13 @@ Global Arguments propset_car {_} _ _ : assert.
Notation "{[ x | P ]}" := (PropSet (λ x, P))
(at level 1, format "{[ x | P ]}") : stdpp_scope.
Notation "{[ x |@{ A } P ]}" := (PropSet (λ x : A, P))
(at level 1, only parsing) : stdpp_scope.
Notation "{[' x | P ]}" := (PropSet (λ x, P))
(at level 1, x pattern, format "{[' x | P ]}") : stdpp_scope.
Global Instance propset_elem_of {A} : ElemOf A (propset A) := λ x X, propset_car X x.
Global Instance propset_top {A} : Top (propset A) := {[ _ | True ]}.
Loading