Skip to content
Snippets Groups Projects
Commit 223250f1 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Fix for contractive tweaks.

parent 1d9c6035
No related branches found
No related tags found
No related merge requests found
Pipeline #78753 passed
...@@ -114,9 +114,8 @@ Section session_types. ...@@ -114,9 +114,8 @@ Section session_types.
intros Ss Ts Heq. rewrite /lty_choice. intros Ss Ts Heq. rewrite /lty_choice.
do 2 f_equiv. f_equiv => i. do 2 f_equiv. f_equiv => i.
rewrite !lookup_total_alt. rewrite !lookup_total_alt.
specialize (Heq i). specialize (Heq i). destruct (Ss !! i), (Ts !! i); simplify_eq/=; try done.
destruct (Ss !! i), (Ts !! i); f_contractive.
[ f_contractive | contradiction | contradiction | done ].
- f_equiv. split; intros H; eauto. - f_equiv. split; intros H; eauto.
- by rewrite Heq. - by rewrite Heq.
Qed. Qed.
......
...@@ -115,7 +115,7 @@ Section term_types. ...@@ -115,7 +115,7 @@ Section term_types.
Proof. Proof.
intros A A' ? B B' ?. apply Ltty_ne=> v. f_equiv=> w. intros A A' ? B B' ?. apply Ltty_ne=> v. f_equiv=> w.
f_equiv; [by f_contractive|]. f_equiv; [by f_contractive|].
apply (wp_contractive _ _ _ _ _)=> v'. destruct n=> //=; by f_equiv. apply (wp_contractive _ _ _ _ _)=> v'. f_contractive_core n' Hn'. by f_equiv.
Qed. Qed.
Global Instance lty_arr_ne `{heapGS Σ} : NonExpansive2 lty_arr. Global Instance lty_arr_ne `{heapGS Σ} : NonExpansive2 lty_arr.
Proof. solve_proper. Qed. Proof. solve_proper. Qed.
...@@ -135,7 +135,7 @@ Section term_types. ...@@ -135,7 +135,7 @@ Section term_types.
Proof. Proof.
intros F F' A. apply Ltty_ne=> w. f_equiv=> B. intros F F' A. apply Ltty_ne=> w. f_equiv=> B.
apply (wp_contractive _ _ _ _ _)=> u. specialize (A B). apply (wp_contractive _ _ _ _ _)=> u. specialize (A B).
by destruct n as [|n]; simpl. f_contractive_core n' Hn'. by f_equiv.
Qed. Qed.
Global Instance lty_forall_ne `{heapGS Σ} k n : Global Instance lty_forall_ne `{heapGS Σ} k n :
Proper (pointwise_relation _ (dist n) ==> dist n) (@lty_forall Σ _ k). Proper (pointwise_relation _ (dist n) ==> dist n) (@lty_forall Σ _ k).
......
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