Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Simcha van Collem
Iris
Commits
e35004b0
Commit
e35004b0
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Some thread_local tweaks.
parent
be24297e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program_logic/thread_local.v
+10
-13
10 additions, 13 deletions
program_logic/thread_local.v
with
10 additions
and
13 deletions
program_logic/thread_local.v
+
10
−
13
View file @
e35004b0
...
...
@@ -26,15 +26,14 @@ Instance: Params (@tl_inv) 4.
Section
proofs
.
Context
`{
irisG
Λ
Σ
,
thread_localG
Σ
}
.
Lemma
tid_alloc
:
True
=
r
=>
∃
tid
,
tl_tokens
tid
⊤
.
Lemma
tid_alloc
:
True
=
r
=>
∃
tid
,
tl_tokens
tid
⊤
.
Proof
.
by
apply
own_alloc
.
Qed
.
Lemma
tl_tokens_disj
tid
E1
E2
:
tl_tokens
tid
E1
★
tl_tokens
tid
E2
⊢
■
(
E1
⊥
E2
)
.
Proof
.
rewrite
/
tl_tokens
-
own_op
own_valid
-
coPset_disj_valid_op
discrete_valid
.
by
iIntros
([?
_])
"!%"
.
by
iIntros
([?
_])
.
Qed
.
Lemma
tl_tokens_union
tid
E1
E2
:
...
...
@@ -43,8 +42,7 @@ Section proofs.
intros
?
.
by
rewrite
/
tl_tokens
-
own_op
pair_op
left_id
coPset_disj_union
.
Qed
.
Lemma
tl_inv_alloc
tid
E
N
P
:
▷
P
=
{
E
}=>
tl_inv
tid
N
P
.
Lemma
tl_inv_alloc
tid
E
N
P
:
▷
P
=
{
E
}=>
tl_inv
tid
N
P
.
Proof
.
iIntros
"HP"
.
iVs
(
own_empty
(
A
:=
prodUR
coPset_disjUR
(
gset_disjUR
positive
))
tid
)
as
"Hempty"
.
...
...
@@ -70,17 +68,16 @@ Section proofs.
iDestruct
"Htlinv"
as
(
i
)
"[% #Hinv]"
.
rewrite
{
1
4
}(
union_difference_L
(
nclose
N
)
E
)
//.
rewrite
{
1
5
}(
union_difference_L
{[
i
]}
(
nclose
N
))
?tl_tokens_union
;
try
set_solver
.
iDestruct
"Htoks"
as
"[[Htoki
Htoks0] Htoks1]"
.
iFrame
"Htoks0 Htoks1
"
.
iInv
tlN
as
"[[
HP
>Hdis]|>Htoki2]"
"Hclose"
.
-
iVs
(
"Hclose"
with
"[Htoki]"
)
as
"_"
.
auto
.
iFrame
.
iIntros
"!==>[HP
?
]"
.
iFrame
.
iDestruct
"Htoks"
as
"[[Htoki
$] $]
"
.
iInv
tlN
as
"[[
$
>Hdis]|>Htoki2]"
"Hclose"
.
-
iVs
(
"Hclose"
with
"[Htoki]"
)
as
"_"
;
first
auto
.
iIntros
"!==>[HP
$
]"
.
iInv
tlN
as
"[[_ >Hdis2]|>Hitok]"
"Hclose"
.
+
iCombine
"Hdis"
"Hdis2"
as
"Hdis"
.
iDestruct
(
own_valid
with
"Hdis"
)
as
%
[_
Hval
]
.
revert
Hval
.
rewrite
gset_disj_valid_op
.
set_solver
.
iDestruct
(
own_valid
with
"Hdis"
)
as
%
[_
Hval
]
.
revert
Hval
.
rewrite
gset_disj_valid_op
.
set_solver
.
+
iFrame
.
iApply
"Hclose"
.
iNext
.
iLeft
.
by
iFrame
.
-
iDestruct
(
tl_tokens_disj
tid
{[
i
]}
{[
i
]}
with
"[-]"
)
as
%
?
.
by
iFrame
.
set_solver
.
Qed
.
End
proofs
.
\ No newline at end of file
End
proofs
.
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