Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tej Chajed
iris
Commits
dcfb5aee
Commit
dcfb5aee
authored
Dec 06, 2016
by
Robbert Krebbers
Browse files
Curry tl_own_disjoint.
parent
5ee92991
Changes
1
Hide whitespace changes
Inline
Side-by-side
base_logic/lib/thread_local.v
View file @
dcfb5aee
...
@@ -39,8 +39,9 @@ Section proofs.
...
@@ -39,8 +39,9 @@ Section proofs.
Lemma
tl_alloc
:
(|==>
∃
tid
,
tl_own
tid
⊤
)%
I
.
Lemma
tl_alloc
:
(|==>
∃
tid
,
tl_own
tid
⊤
)%
I
.
Proof
.
by
apply
own_alloc
.
Qed
.
Proof
.
by
apply
own_alloc
.
Qed
.
Lemma
tl_own_disjoint
tid
E1
E2
:
tl_own
tid
E1
∗
tl_own
tid
E2
⊢
⌜
E1
⊥
E2
⌝
.
Lemma
tl_own_disjoint
tid
E1
E2
:
tl_own
tid
E1
-
∗
tl_own
tid
E2
-
∗
⌜
E1
⊥
E2
⌝
.
Proof
.
Proof
.
apply
wand_intro_r
.
rewrite
/
tl_own
-
own_op
own_valid
-
coPset_disj_valid_op
.
by
iIntros
([?
_
]).
rewrite
/
tl_own
-
own_op
own_valid
-
coPset_disj_valid_op
.
by
iIntros
([?
_
]).
Qed
.
Qed
.
...
@@ -85,7 +86,6 @@ Section proofs.
...
@@ -85,7 +86,6 @@ Section proofs.
+
iDestruct
(
own_valid_2
with
"Hdis Hdis2"
)
as
%[
_
Hval
%
gset_disj_valid_op
].
+
iDestruct
(
own_valid_2
with
"Hdis Hdis2"
)
as
%[
_
Hval
%
gset_disj_valid_op
].
set_solver
.
set_solver
.
+
iFrame
.
iApply
"Hclose"
.
iNext
.
iLeft
.
by
iFrame
.
+
iFrame
.
iApply
"Hclose"
.
iNext
.
iLeft
.
by
iFrame
.
-
iDestruct
(
tl_own_disjoint
tid
{[
i
]}
{[
i
]}
with
"[-]"
)
as
%?
;
first
by
iFrame
.
-
iDestruct
(
tl_own_disjoint
with
"Htoki Htoki2"
)
as
%?.
set_solver
.
set_solver
.
Qed
.
Qed
.
End
proofs
.
End
proofs
.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment