Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
lambda-rust
Commits
ba990862
There was a problem fetching the pipeline summary.
Commit
ba990862
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
mask tweaking
parent
00209191
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/typing/lib/rc.v
+2
-4
2 additions, 4 deletions
theories/typing/lib/rc.v
theories/typing/own.v
+2
-2
2 additions, 2 deletions
theories/typing/own.v
theories/typing/util.v
+5
-5
5 additions, 5 deletions
theories/typing/util.v
with
9 additions
and
11 deletions
theories/typing/lib/rc.v
+
2
−
4
View file @
ba990862
...
@@ -45,7 +45,7 @@ Section rc.
...
@@ -45,7 +45,7 @@ Section rc.
ty_shr
κ
tid
l
:=
ty_shr
κ
tid
l
:=
∃
(
l'
:
loc
),
&
frac
{
κ
}
(
λ
q
,
l
↦∗
{
q
}
[
#
l'
])
∗
∃
(
l'
:
loc
),
&
frac
{
κ
}
(
λ
q
,
l
↦∗
{
q
}
[
#
l'
])
∗
□
∀
F
q
,
⌜↑
shrN
∪
lftE
⊆
F
⌝
-∗
q
.[
κ
]
□
∀
F
q
,
⌜↑
shrN
∪
lftE
⊆
F
⌝
-∗
q
.[
κ
]
=
{
F
,
F
∖↑
shrN
∖↑
lftN
}
▷=∗
q
.[
κ
]
∗
∃
γ
ν
q'
,
=
{
F
,
F
∖↑
shrN
}
▷=∗
q
.[
κ
]
∗
∃
γ
ν
q'
,
na_inv
tid
rc_invN
(
rc_inv
tid
ν
γ
l'
ty
)
∗
na_inv
tid
rc_invN
(
rc_inv
tid
ν
γ
l'
ty
)
∗
&
na
{
κ
,
tid
,
rc_invN
}(
own
γ
(
◯
Some
(
q'
,
1
%
positive
)))
∗
&
na
{
κ
,
tid
,
rc_invN
}(
own
γ
(
◯
Some
(
q'
,
1
%
positive
)))
∗
ty
.(
ty_shr
)
κ
tid
(
shift_loc
l'
1
)
ty
.(
ty_shr
)
κ
tid
(
shift_loc
l'
1
)
...
@@ -70,9 +70,7 @@ Section rc.
...
@@ -70,9 +70,7 @@ Section rc.
iClear
"H↦ Hinv Hpb"
.
iClear
"H↦ Hinv Hpb"
.
iMod
(
bor_acc_cons
with
"LFT Hb Htok"
)
as
"[HP Hclose2]"
;
first
solve_ndisj
.
iMod
(
bor_acc_cons
with
"LFT Hb Htok"
)
as
"[HP Hclose2]"
;
first
solve_ndisj
.
set
(
X
:=
(
∃
_
_
_,
_)
%
I
)
.
set
(
X
:=
(
∃
_
_
_,
_)
%
I
)
.
(* TODO: Would be nice to have a lemma for the next two lines. *)
iModIntro
.
iNext
.
iAssert
(|
=
{
F
∖
↑
shrN
}=>
X
)
%
I
with
"[HP]"
as
">HX"
.
iMod
fupd_intro_mask'
as
"Hclose3"
;
last
iModIntro
;
first
solve_ndisj
.
iNext
.
iMod
"Hclose3"
as
"_"
.
iAssert
(|
=
{
F
∖
↑
shrN
}=>
X
)
%
I
with
"[HP]"
as
">HX"
.
{
iDestruct
"HP"
as
"[[Hl' [H† Hown]]|$]"
;
last
done
.
{
iDestruct
"HP"
as
"[[Hl' [H† Hown]]|$]"
;
last
done
.
iMod
(
lft_create
with
"LFT"
)
as
(
ν
)
"[[Hν1 Hν2] #Hν†]"
;
first
solve_ndisj
.
iMod
(
lft_create
with
"LFT"
)
as
(
ν
)
"[[Hν1 Hν2] #Hν†]"
;
first
solve_ndisj
.
(* TODO: We should consider changing the statement of bor_create to dis-entangle the two masks such that this is no longer necessary. *)
(* TODO: We should consider changing the statement of bor_create to dis-entangle the two masks such that this is no longer necessary. *)
...
...
This diff is collapsed.
Click to expand it.
theories/typing/own.v
+
2
−
2
View file @
ba990862
...
@@ -63,7 +63,7 @@ Section own.
...
@@ -63,7 +63,7 @@ Section own.
end
%
I
;
end
%
I
;
ty_shr
κ
tid
l
:=
ty_shr
κ
tid
l
:=
(
∃
l'
:
loc
,
&
frac
{
κ
}(
λ
q'
,
l
↦
{
q'
}
#
l'
)
∗
(
∃
l'
:
loc
,
&
frac
{
κ
}(
λ
q'
,
l
↦
{
q'
}
#
l'
)
∗
□
(
∀
F
q
,
⌜↑
shrN
∪
lftE
⊆
F
⌝
-∗
q
.[
κ
]
=
{
F
,
F
∖↑
shrN
∖↑
lftN
}
▷=∗
ty
.(
ty_shr
)
κ
tid
l'
∗
q
.[
κ
]))
%
I
□
(
∀
F
q
,
⌜↑
shrN
∪
lftE
⊆
F
⌝
-∗
q
.[
κ
]
=
{
F
,
F
∖↑
shrN
}
▷=∗
ty
.(
ty_shr
)
κ
tid
l'
∗
q
.[
κ
]))
%
I
|}
.
|}
.
Next
Obligation
.
by
iIntros
(
q
ty
tid
[|[[]|][]])
"H"
.
Qed
.
Next
Obligation
.
by
iIntros
(
q
ty
tid
[|[[]|][]])
"H"
.
Qed
.
Next
Obligation
.
Next
Obligation
.
...
@@ -81,7 +81,7 @@ Section own.
...
@@ -81,7 +81,7 @@ Section own.
intros
_
ty
κ
κ'
tid
l
.
iIntros
"#Hκ #H"
.
intros
_
ty
κ
κ'
tid
l
.
iIntros
"#Hκ #H"
.
iDestruct
"H"
as
(
l'
)
"[Hfb #Hvs]"
.
iDestruct
"H"
as
(
l'
)
"[Hfb #Hvs]"
.
iExists
l'
.
iSplit
.
by
iApply
(
frac_bor_shorten
with
"[]"
)
.
iIntros
"!# *% Htok"
.
iExists
l'
.
iSplit
.
by
iApply
(
frac_bor_shorten
with
"[]"
)
.
iIntros
"!# *% Htok"
.
iApply
(
step_fupd_mask_mono
F
_
_
(
F
∖↑
shrN
∖↑
lftN
))
.
set_solver
.
set_solver
.
iApply
(
step_fupd_mask_mono
F
_
_
(
F
∖↑
shrN
))
.
set_solver
.
set_solver
.
iMod
(
lft_incl_acc
with
"Hκ Htok"
)
as
(
q'
)
"[Htok Hclose]"
;
first
set_solver
.
iMod
(
lft_incl_acc
with
"Hκ Htok"
)
as
(
q'
)
"[Htok Hclose]"
;
first
set_solver
.
iMod
(
"Hvs"
with
"[%] Htok"
)
as
"Hvs'"
.
set_solver
.
iModIntro
.
iNext
.
iMod
(
"Hvs"
with
"[%] Htok"
)
as
"Hvs'"
.
set_solver
.
iModIntro
.
iNext
.
iMod
"Hvs'"
as
"[Hshr Htok]"
.
iMod
(
"Hclose"
with
"Htok"
)
as
"$"
.
iMod
"Hvs'"
as
"[Hshr Htok]"
.
iMod
(
"Hclose"
with
"Htok"
)
as
"$"
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/util.v
+
5
−
5
View file @
ba990862
...
@@ -18,15 +18,15 @@ Section util.
...
@@ -18,15 +18,15 @@ Section util.
Lemma delay_borrow_step :
Lemma delay_borrow_step :
lfeE ⊆ N → (∀ x, PersistentP (Post x)) →
lfeE ⊆ N → (∀ x, PersistentP (Post x)) →
lft_ctx -∗ &{κ} P -∗
lft_ctx -∗ &{κ} P -∗
□ (∀ x, &{κ} P -∗ Pre x -∗ Frame x ={F1,F2}▷=∗ Post x ∗ Frame x) ={N}=∗
□ (∀ x, &{κ} P -∗ Pre x -∗ Frame x ={F1
x
,F2
x
}▷=∗ Post x ∗ Frame x) ={N}=∗
□ (∀ x, Pre x -∗ Frame x ={F1,F2}▷=∗ Post x ∗ Frame x).
□ (∀ x, Pre x -∗ Frame x ={F1
x
,F2
x
}▷=∗ Post x ∗ Frame x).
*)
*)
Lemma
delay_sharing_later
N
κ
l
ty
tid
:
Lemma
delay_sharing_later
N
κ
l
ty
tid
:
lftE
⊆
N
→
lftE
⊆
N
→
lft_ctx
-∗
&
{
κ
}
▷
l
↦∗:
ty_own
ty
tid
=
{
N
}
=∗
lft_ctx
-∗
&
{
κ
}
▷
l
↦∗:
ty_own
ty
tid
=
{
N
}
=∗
□
∀
(
F
:
coPset
)
(
q
:
Qp
),
□
∀
(
F
:
coPset
)
(
q
:
Qp
),
⌜↑
shrN
∪
lftE
⊆
F
⌝
-∗
(
q
).[
κ
]
=
{
F
,
F
∖
↑
shrN
∖
↑
lftN
}
▷=∗
ty
.(
ty_shr
)
κ
tid
l
∗
(
q
).[
κ
]
.
⌜↑
shrN
∪
lftE
⊆
F
⌝
-∗
(
q
).[
κ
]
=
{
F
,
F
∖
↑
shrN
}
▷=∗
ty
.(
ty_shr
)
κ
tid
l
∗
(
q
).[
κ
]
.
Proof
.
Proof
.
iIntros
(?)
"#LFT Hbor"
.
rewrite
bor_unfold_idx
.
iIntros
(?)
"#LFT Hbor"
.
rewrite
bor_unfold_idx
.
iDestruct
"Hbor"
as
(
i
)
"(#Hpb&Hpbown)"
.
iDestruct
"Hbor"
as
(
i
)
"(#Hpb&Hpbown)"
.
...
@@ -34,9 +34,9 @@ Section util.
...
@@ -34,9 +34,9 @@ Section util.
with
"[Hpbown]"
)
as
"#Hinv"
;
first
by
eauto
.
with
"[Hpbown]"
)
as
"#Hinv"
;
first
by
eauto
.
iIntros
"!> !# * % Htok"
.
iMod
(
inv_open
with
"Hinv"
)
as
"[INV Hclose]"
;
first
set_solver
.
iIntros
"!> !# * % Htok"
.
iMod
(
inv_open
with
"Hinv"
)
as
"[INV Hclose]"
;
first
set_solver
.
iDestruct
"INV"
as
"[>Hbtok|#Hshr]"
.
iDestruct
"INV"
as
"[>Hbtok|#Hshr]"
.
-
iMod
(
bor_later
with
"LFT [Hbtok]"
)
as
"H
b
"
;
first
solve_ndisj
.
-
iMod
(
bor_later
_tok
with
"LFT [Hbtok]
Htok
"
)
as
"H
delay
"
;
first
solve_ndisj
.
{
rewrite
bor_unfold_idx
.
eauto
.
}
{
rewrite
bor_unfold_idx
.
eauto
.
}
iModIntro
.
iNext
.
iMod
"H
b
"
.
iModIntro
.
iNext
.
iMod
"H
delay"
as
"[Hb Htok]
"
.
iMod
(
ty
.(
ty_share
)
with
"LFT Hb Htok"
)
as
"[#$ $]"
;
first
solve_ndisj
.
iMod
(
ty
.(
ty_share
)
with
"LFT Hb Htok"
)
as
"[#$ $]"
;
first
solve_ndisj
.
iApply
"Hclose"
.
auto
.
iApply
"Hclose"
.
auto
.
-
iMod
fupd_intro_mask'
as
"Hclose'"
;
last
iModIntro
.
set_solver
.
-
iMod
fupd_intro_mask'
as
"Hclose'"
;
last
iModIntro
.
set_solver
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment