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
Gaëtan Gilbert
Iris
Commits
c3c31e88
Commit
c3c31e88
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Deallocation local updates for gset.
parent
5631e485
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
algebra/gset.v
+17
-0
17 additions, 0 deletions
algebra/gset.v
with
17 additions
and
0 deletions
algebra/gset.v
+
17
−
0
View file @
c3c31e88
...
@@ -174,6 +174,23 @@ Section gset_disj.
...
@@ -174,6 +174,23 @@ Section gset_disj.
Proof
.
eauto
using
gset_disj_alloc_empty_updateP
.
Qed
.
Proof
.
eauto
using
gset_disj_alloc_empty_updateP
.
Qed
.
End
fresh_updates
.
End
fresh_updates
.
Lemma
gset_disj_dealloc_local_update
X
Y
Xf
:
GSet
X
~l
~>
GSet
(
X
∖
Y
)
@
Some
(
GSet
Xf
)
.
Proof
.
apply
local_update_total
;
split
;
simpl
.
{
rewrite
!
gset_disj_valid_op
;
set_solver
.
}
intros
mZ
?
%
gset_disj_valid_op
.
rewrite
gset_disj_union
//.
destruct
mZ
as
[[
Z
|]|];
simpl
;
try
done
.
-
rewrite
{
1
}
/
op
{
1
}
/
cmra_op
/=.
destruct
(
decide
_);
simpl
;
try
done
.
intros
[
=
]
.
do
2
f_equal
.
by
apply
union_cancel_l_L
with
X
.
-
intros
[
=
]
.
assert
(
Xf
=
∅
)
as
->
by
set_solver
.
by
rewrite
right_id
.
Qed
.
Lemma
gset_disj_dealloc_empty_local_update
X
Xf
:
GSet
X
~l
~>
GSet
∅
@
Some
(
GSet
Xf
)
.
Proof
.
rewrite
-
(
difference_diag_L
X
)
.
apply
gset_disj_dealloc_local_update
.
Qed
.
Lemma
gset_disj_alloc_local_update
X
i
Xf
:
Lemma
gset_disj_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
.
...
...
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