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

Proven Amber-like rule

parent 336e0ea1
No related branches found
No related tags found
No related merge requests found
Pipeline #33567 passed
......@@ -899,6 +899,17 @@ Section proto.
iSplitL "H"; [iIntros "!>"; by iRewrite "Hp2d"|]. simpl; auto.
Qed.
Lemma iProto_le_amber (p1 p2 : iProto Σ V iProto Σ V)
`{Contractive p1, Contractive p2}:
( rec1 rec2, (rec1 rec2) p1 rec1 p2 rec2) -∗
fixpoint p1 fixpoint p2.
Proof.
iIntros "#H". iLöb as "IH".
iEval (rewrite (fixpoint_unfold p1)).
iEval (rewrite (fixpoint_unfold p2)).
iApply "H". iApply "IH".
Qed.
Lemma iProto_le_dual_l p1 p2 : iProto_dual p2 p1 -∗ iProto_dual p1 p2.
Proof.
iIntros "H". iEval (rewrite -(involutive iProto_dual p2)).
......
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