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
05290985
Commit
05290985
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Local and FP updates starting with empty gset.
parent
13e7b1b5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
algebra/gset.v
+21
-1
21 additions, 1 deletion
algebra/gset.v
with
21 additions
and
1 deletion
algebra/gset.v
+
21
−
1
View file @
05290985
...
@@ -68,13 +68,27 @@ Section gset.
...
@@ -68,13 +68,27 @@ Section gset.
Qed
.
Qed
.
Lemma
gset_alloc_updateP
(
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
.
(
∀
i
,
i
∉
X
→
Q
(
GSet
({[
i
]}
∪
X
)))
→
GSet
X
~~>:
Q
.
Proof
.
move
=>??
.
eapply
gset_alloc_updateP_strong
with
(
I
:=
∅
);
by
eauto
.
Qed
.
Proof
.
intro
.
eapply
gset_alloc_updateP_strong
with
(
I
:=
∅
);
eauto
.
Qed
.
Lemma
gset_alloc_updateP_strong'
(
I
:
gset
K
)
X
:
Lemma
gset_alloc_updateP_strong'
(
I
:
gset
K
)
X
:
GSet
X
~~>:
λ
Y
,
∃
i
,
Y
=
GSet
({[
i
]}
∪
X
)
∧
i
∉
I
∧
i
∉
X
.
GSet
X
~~>:
λ
Y
,
∃
i
,
Y
=
GSet
({[
i
]}
∪
X
)
∧
i
∉
I
∧
i
∉
X
.
Proof
.
eauto
using
gset_alloc_updateP_strong
.
Qed
.
Proof
.
eauto
using
gset_alloc_updateP_strong
.
Qed
.
Lemma
gset_alloc_updateP'
X
:
GSet
X
~~>:
λ
Y
,
∃
i
,
Y
=
GSet
({[
i
]}
∪
X
)
∧
i
∉
X
.
Lemma
gset_alloc_updateP'
X
:
GSet
X
~~>:
λ
Y
,
∃
i
,
Y
=
GSet
({[
i
]}
∪
X
)
∧
i
∉
X
.
Proof
.
eauto
using
gset_alloc_updateP
.
Qed
.
Proof
.
eauto
using
gset_alloc_updateP
.
Qed
.
Lemma
gset_alloc_empty_updateP_strong
(
Q
:
gset_disj
K
→
Prop
)
(
I
:
gset
K
)
:
(
∀
i
,
i
∉
I
→
Q
(
GSet
{[
i
]}))
→
GSet
∅
~~>:
Q
.
Proof
.
intros
.
apply
(
gset_alloc_updateP_strong
_
I
)=>
i
.
rewrite
right_id_L
.
auto
.
Qed
.
Lemma
gset_alloc_empty_updateP
(
Q
:
gset_disj
K
→
Prop
)
:
(
∀
i
,
Q
(
GSet
{[
i
]}))
→
GSet
∅
~~>:
Q
.
Proof
.
intro
.
eapply
gset_alloc_empty_updateP_strong
with
(
I
:=
∅
);
eauto
.
Qed
.
Lemma
gset_alloc_empty_updateP_strong'
(
I
:
gset
K
)
:
GSet
∅
~~>:
λ
Y
,
∃
i
,
Y
=
GSet
{[
i
]}
∧
i
∉
I
.
Proof
.
eauto
using
gset_alloc_empty_updateP_strong
.
Qed
.
Lemma
gset_alloc_empty_updateP'
:
GSet
∅
~~>:
λ
Y
,
∃
i
,
Y
=
GSet
{[
i
]}
.
Proof
.
eauto
using
gset_alloc_empty_updateP
.
Qed
.
Lemma
gset_alloc_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
)
.
i
∉
X
→
i
∉
Xf
→
GSet
X
~l
~>
GSet
({[
i
]}
∪
X
)
@
Some
(
GSet
Xf
)
.
Proof
.
Proof
.
...
@@ -83,6 +97,12 @@ Section gset.
...
@@ -83,6 +97,12 @@ Section gset.
-
intros
mZ
?
%
gset_disj_valid_op
HXf
.
-
intros
mZ
?
%
gset_disj_valid_op
HXf
.
rewrite
-
gset_disj_union
-
?assoc
?HXf
?cmra_opM_assoc
;
set_solver
.
rewrite
-
gset_disj_union
-
?assoc
?HXf
?cmra_opM_assoc
;
set_solver
.
Qed
.
Qed
.
Lemma
gset_alloc_empty_local_update
i
Xf
:
i
∉
Xf
→
GSet
∅
~l
~>
GSet
{[
i
]}
@
Some
(
GSet
Xf
)
.
Proof
.
intros
.
rewrite
-
(
right_id_L
_
_
{[
i
]})
.
apply
gset_alloc_local_update
;
set_solver
.
Qed
.
End
gset
.
End
gset
.
Arguments
gset_disjR
_
{_
_}
.
Arguments
gset_disjR
_
{_
_}
.
...
...
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