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

Proved contractiveness of lty_msg_base.

parent fcae19a1
No related branches found
No related tags found
1 merge request!12Session Type-level Polymorphism
......@@ -69,10 +69,14 @@ Section session_types.
Global Instance lty_msg_base_proper a :
Proper (() ==> () ==> ()) (@lty_msg_base Σ a).
Proof. rewrite /lty_msg_base. apply ne_proper_2, _. Qed.
(* FIXME: Not contractive since lty_msg_exist is not contractive *)
(* Global Instance lty_msg_base_contractive n a : *)
(* Proper (dist n ==> dist_later n ==> dist n) (@lty_msg_base Σ a). *)
(* Proof. rewrite /lty_msg_base. solve_contractive. Qed. *)
Global Instance lty_msg_base_contractive n :
Proper (dist_later n ==> dist_later n ==> dist n) (@lty_msg_base Σ).
Proof.
intros A1 A2 HA S1 S2 HS.
rewrite /lty_msg_base.
f_equiv=> w.
by repeat f_contractive.
Qed.
Global Instance lty_message_ne a : NonExpansive (@lty_message Σ a).
Proof. solve_proper. Qed.
......
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