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

Prove [reborrow_shr_perm_incl].

parent 3f715e03
No related branches found
No related tags found
No related merge requests found
......@@ -261,6 +261,17 @@ Section props.
- iExists _. eauto.
Qed.
Lemma reborrow_shr_perm_incl κ κ' v ty :
κ κ' v &shr{κ'}ty v &shr{κ}ty.
Proof.
iIntros (tid) "[#Hord #Hκ']".
destruct v as [[[|l|]|]|];
try by (iDestruct "Hκ'" as "[]" || iDestruct "Hκ'" as (l) "[% _]").
iDestruct "Hκ'" as (l') "[EQ Hκ']". iDestruct "EQ" as %[=]. subst l'.
iVsIntro. iExists _. iSplit. done.
by iApply (ty_shr_mono with "Hord Hκ'").
Qed.
Lemma lftincl_borrowing κ κ' q : borrowing κ [κ']{q} (κ κ').
Proof.
iIntros (tid) "#Hκ #Hord [Htok #Hκ']".
......
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