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

Nits in subprotocol example proof

parent 1d72cb3f
No related branches found
No related tags found
No related merge requests found
Pipeline #32914 passed
...@@ -33,18 +33,18 @@ Section basics. ...@@ -33,18 +33,18 @@ Section basics.
Axiom HIU : v u r, (IU u v IR r) -∗ IUR (u,r) v. Axiom HIU : v u r, (IU u v IR r) -∗ IUR (u,r) v.
Lemma example prot prot' : Lemma example prot prot' :
prot prot' (prot prot') -∗
-∗ (<! (x : T) (v : val)> MSG v {{ IT x v }}; (<! (x : T) (v : val)> MSG v {{ IT x v }};
<? (w : val)> MSG w {{ IU (f x) w }}; prot) <? (w : val)> MSG w {{ IU (f x) w }}; prot)
(<! (x : T * R) (v : val)> MSG v {{ ITR x v }}; (<! (x : T * R) (v : val)> MSG v {{ ITR x v }};
<? (w : val)> MSG w {{ IUR (f x.1,x.2) w }}; prot'). <? (w : val)> MSG w {{ IUR (f x.1,x.2) w }}; prot').
Proof. Proof.
iIntros "Hprot" ([t r] v) "HTR". iIntros "Hprot".
iIntros ([t r] v) "HTR".
iDestruct (HIT with "HTR") as "[HT HR]". iDestruct (HIT with "HTR") as "[HT HR]".
iExists t,v. iFrame "HT". iExists t,v. iFrame "HT".
iModIntro. iModIntro.
iIntros (w) "HU". iIntros (w) "HU". iDestruct (HIU with "[$HR $HU]") as "HUR".
iDestruct (HIU with "[$HR $HU]") as "HUR".
iExists w. iFrame "HUR". iExists w. iFrame "HUR".
iModIntro. iApply "Hprot". iModIntro. iApply "Hprot".
Qed. 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