Skip to content
Snippets Groups Projects
Commit c8bcb18d authored by Jacques-Henri Jourdan's avatar Jacques-Henri Jourdan
Browse files

These are spurious laters.

parent 31a68951
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -73,7 +73,7 @@ Section proof. ...@@ -73,7 +73,7 @@ Section proof.
Lemma try_acquire_spec E l R P : Lemma try_acquire_spec E l R P :
(P ={E,}=∗ lock_proto l R ( lock_proto l R ={,E}=∗ P)) -∗ (P ={E,}=∗ lock_proto l R ( lock_proto l R ={,E}=∗ P)) -∗
{{{ P }}} try_acquire [ #l ] @ E {{{ P }}} try_acquire [ #l ] @ E
{{{ b, RET #b; (if b is true then R else True) P }}}. {{{ b, RET #b; (if b is true then R else True) P }}}.
Proof. Proof.
iIntros "#Hproto !# * HP HΦ". iIntros "#Hproto !# * HP HΦ".
wp_rec. iMod ("Hproto" with "HP") as "(Hinv & Hclose)". wp_rec. iMod ("Hproto" with "HP") as "(Hinv & Hclose)".
...@@ -88,7 +88,7 @@ Section proof. ...@@ -88,7 +88,7 @@ Section proof.
Lemma acquire_spec E l R P : Lemma acquire_spec E l R P :
(P ={E,}=∗ lock_proto l R ( lock_proto l R ={,E}=∗ P)) -∗ (P ={E,}=∗ lock_proto l R ( lock_proto l R ={,E}=∗ P)) -∗
{{{ P }}} acquire [ #l ] @ E {{{ RET #(); R P }}}. {{{ P }}} acquire [ #l ] @ E {{{ RET #(); R P }}}.
Proof. Proof.
iIntros "#Hproto !# * HP HΦ". iLöb as "IH". wp_rec. iIntros "#Hproto !# * HP HΦ". iLöb as "IH". wp_rec.
wp_apply (try_acquire_spec with "Hproto HP"). iIntros ([]). wp_apply (try_acquire_spec with "Hproto HP"). iIntros ([]).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment