Skip to content
GitLab
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
8b6f2178
Commit
8b6f2178
authored
Jul 27, 2016
by
Robbert Krebbers
Browse files
More consistent names for gset updates.
parent
61af23a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
algebra/gset.v
View file @
8b6f2178
...
...
@@ -57,7 +57,7 @@ Section gset.
Context
`
{
Fresh
K
(
gset
K
),
!
FreshSpec
K
(
gset
K
)}.
Arguments
op
_
_
_
_
:
simpl
never
.
Lemma
updateP_
alloc_
strong
(
Q
:
gset_disj
K
→
Prop
)
(
I
:
gset
K
)
X
:
Lemma
gset_alloc_
updateP_strong
(
Q
:
gset_disj
K
→
Prop
)
(
I
:
gset
K
)
X
:
(
∀
i
,
i
∉
X
→
i
∉
I
→
Q
(
GSet
({[
i
]}
∪
X
)))
→
GSet
X
~~>
:
Q
.
Proof
.
intros
HQ
;
apply
cmra_discrete_updateP
=>
?
/
gset_disj_valid_inv_l
[
Y
[->?]].
...
...
@@ -66,16 +66,16 @@ Section gset.
-
apply
HQ
;
set_solver
by
eauto
.
-
apply
gset_disj_valid_op
.
set_solver
by
eauto
.
Qed
.
Lemma
updateP
_alloc
(
Q
:
gset_disj
K
→
Prop
)
X
:
Lemma
gset_alloc_
updateP
(
Q
:
gset_disj
K
→
Prop
)
X
:
(
∀
i
,
i
∉
X
→
Q
(
GSet
({[
i
]}
∪
X
)))
→
GSet
X
~~>
:
Q
.
Proof
.
move
=>??.
eapply
updateP_
alloc_
strong
with
(
I
:
=
∅
)
;
by
eauto
.
Qed
.
Lemma
updateP_
alloc_
strong'
(
I
:
gset
K
)
X
:
Proof
.
move
=>??.
eapply
gset_alloc_
updateP_strong
with
(
I
:
=
∅
)
;
by
eauto
.
Qed
.
Lemma
gset_alloc_
updateP_strong'
(
I
:
gset
K
)
X
:
GSet
X
~~>
:
λ
Y
,
∃
i
,
Y
=
GSet
({[
i
]}
∪
X
)
∧
i
∉
I
∧
i
∉
X
.
Proof
.
eauto
using
updateP_
alloc_
strong
.
Qed
.
Lemma
updateP
_alloc
'
X
:
GSet
X
~~>
:
λ
Y
,
∃
i
,
Y
=
GSet
({[
i
]}
∪
X
)
∧
i
∉
X
.
Proof
.
eauto
using
updateP
_alloc
.
Qed
.
Proof
.
eauto
using
gset_alloc_
updateP_strong
.
Qed
.
Lemma
gset_alloc_
updateP'
X
:
GSet
X
~~>
:
λ
Y
,
∃
i
,
Y
=
GSet
({[
i
]}
∪
X
)
∧
i
∉
X
.
Proof
.
eauto
using
gset_alloc_
updateP
.
Qed
.
Lemma
alloc
_singleton
_local_update
X
i
Xf
:
Lemma
gset_
alloc_local_update
X
i
Xf
:
i
∉
X
→
i
∉
Xf
→
GSet
X
~l
~>
GSet
({[
i
]}
∪
X
)
@
Some
(
GSet
Xf
).
Proof
.
intros
??
;
apply
local_update_total
;
split
;
simpl
.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment