Skip to content
Snippets Groups Projects
Commit 38010bcf authored by jihgfee's avatar jihgfee
Browse files

Bumped model update

parent fa8a8a8b
No related branches found
No related tags found
No related merge requests found
......@@ -179,20 +179,20 @@ Section channel.
by apply iProto_message_proper=> /= -[].
Qed.
Lemma iProto_le_branch a P1 P2 p1 p2 p1' p2' :
(P1 -∗ P1 iProto_le p1 p1') (P2 -∗ P2 iProto_le p2 p2') -∗
iProto_le (iProto_branch a P1 P2 p1 p2) (iProto_branch a P1 P2 p1' p2').
Proof.
iIntros "H". rewrite /iProto_branch. destruct a.
- iApply iProto_le_send'; iIntros "!>" (b) "HP /=".
iExists b; iSplit; [done|]. destruct b.
+ iDestruct "H" as "[H _]". by iApply "H".
+ iDestruct "H" as "[_ H]". by iApply "H".
- iApply iProto_le_recv'; iIntros "!>" (b) "HP /=".
iExists b; iSplit; [done|]. destruct b.
+ iDestruct "H" as "[H _]". by iApply "H".
+ iDestruct "H" as "[_ H]". by iApply "H".
Qed.
(* Lemma iProto_le_branch a P1 P2 p1 p2 p1' p2' : *)
(* ▷ (P1 -∗ P1 ∗ iProto_le p1 p1') ∧ ▷ (P2 -∗ P2 ∗ iProto_le p2 p2') -∗ *)
(* iProto_le (iProto_branch a P1 P2 p1 p2) (iProto_branch a P1 P2 p1' p2'). *)
(* Proof. *)
(* iIntros "H". rewrite /iProto_branch. destruct a. *)
(* - iApply iProto_le_send'; iIntros "!>" (b) "HP /=". *)
(* iExists b; iSplit; [done|]. destruct b. *)
(* + iDestruct "H" as "[H _]". by iApply "H". *)
(* + iDestruct "H" as "[_ H]". by iApply "H". *)
(* - iApply iProto_le_recv'; iIntros "!>" (b) "HP /=". *)
(* iExists b; iSplit; [done|]. destruct b. *)
(* + iDestruct "H" as "[H _]". by iApply "H". *)
(* + iDestruct "H" as "[_ H]". by iApply "H". *)
(* Qed. *)
(** ** Specifications of [send] and [recv] *)
Lemma new_chan_spec p :
......
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