Skip to content
Snippets Groups Projects
Commit 6045937e authored by Jonas Kastberg's avatar Jonas Kastberg
Browse files

Added notation for telescope message types

parent e0300f5f
No related branches found
No related tags found
1 merge request!13Jonas/more polymorphism
...@@ -50,6 +50,9 @@ Notation "<!! X .. Y > M" := ...@@ -50,6 +50,9 @@ Notation "<!! X .. Y > M" :=
(<!!> X, .. (∃ Y, M) ..)%lty (<!!> X, .. (∃ Y, M) ..)%lty
(at level 200, X closed binder, Y closed binder, M at level 200, (at level 200, X closed binder, Y closed binder, M at level 200,
format "<!! X .. Y > M") : lty_scope. format "<!! X .. Y > M") : lty_scope.
Notation "<!!.. X .. Y > M" := (<!!> .. X, .. (∃.. Y, M) ..)%lty
(at level 200, X closed binder, Y closed binder, M at level 200,
format "<!!.. X .. Y > M") : lty_scope.
Notation "<??> M" := Notation "<??> M" :=
(lty_message Recv M) (at level 200, M at level 200) : lty_scope. (lty_message Recv M) (at level 200, M at level 200) : lty_scope.
...@@ -57,6 +60,9 @@ Notation "<?? X .. Y > M" := ...@@ -57,6 +60,9 @@ Notation "<?? X .. Y > M" :=
(<??> X, .. (∃ Y, M) ..)%lty (<??> X, .. (∃ Y, M) ..)%lty
(at level 200, X closed binder, Y closed binder, M at level 200, (at level 200, X closed binder, Y closed binder, M at level 200,
format "<?? X .. Y > M") : lty_scope. format "<?? X .. Y > M") : lty_scope.
Notation "<??.. X .. Y > M" := (<??> .. X, .. (∃.. Y, M) ..)%lty
(at level 200, X closed binder, Y closed binder, M at level 200,
format "<??.. X .. Y > M") : lty_scope.
Notation lty_select := (lty_choice Send). Notation lty_select := (lty_choice Send).
Notation lty_branch := (lty_choice Recv). Notation lty_branch := (lty_choice Recv).
Infix "<++>" := lty_app (at level 60) : lty_scope. Infix "<++>" := lty_app (at level 60) : lty_scope.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment