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

Uncurried contractiveness of lty_msg_base, and added contractive of lty_chan

parent 64e94f3f
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,8 @@ Section session_types.
Global Instance lty_msg_base_proper :
Proper (() ==> () ==> ()) (@lty_msg_base Σ).
Proof. rewrite /lty_msg_base. apply ne_proper_2, _. Qed.
Global Instance lty_msg_base_contractive n A :
Proper (dist_later n ==> dist n) (@lty_msg_base Σ A).
Global Instance lty_msg_base_contractive n :
Proper (dist n ==> dist_later n ==> dist n) (@lty_msg_base Σ).
Proof. solve_contractive. Qed.
Global Instance lty_message_ne a : NonExpansive (@lty_message Σ a).
......
......@@ -157,6 +157,8 @@ Section term_types.
Global Instance lty_ref_shr_ne `{heapG Σ} : NonExpansive lty_ref_shr.
Proof. solve_proper. Qed.
Global Instance lty_chan_contractive `{heapG Σ, chanG Σ} : Contractive lty_chan.
Proof. solve_contractive. Qed.
Global Instance lty_chan_ne `{heapG Σ, chanG Σ} : NonExpansive lty_chan.
Proof. solve_proper. Qed.
End term_types.
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