diff --git a/theories/lang/lib/lock.v b/theories/lang/lib/lock.v index 446804dd553e52135cb910c9840394951e459da1..3832cceb397aec08844896d6e0ebc26d86ce272b 100644 --- a/theories/lang/lib/lock.v +++ b/theories/lang/lib/lock.v @@ -73,7 +73,7 @@ Section proof. Lemma try_acquire_spec E l R P : □ (P ={E,∅}=∗ ▷ lock_proto l R ∗ (▷ lock_proto l R ={∅,E}=∗ P)) -∗ {{{ 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. iIntros "#Hproto !# * HP HΦ". wp_rec. iMod ("Hproto" with "HP") as "(Hinv & Hclose)". @@ -88,7 +88,7 @@ Section proof. Lemma acquire_spec E l R 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. iIntros "#Hproto !# * HP HΦ". iLöb as "IH". wp_rec. wp_apply (try_acquire_spec with "Hproto HP"). iIntros ([]).