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
Pierre Roux
Iris
Commits
3b184486
Commit
3b184486
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add basic support for `gset_disj` to `set_solver`.
parent
51278834
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/algebra/gset.v
+14
-0
14 additions, 0 deletions
iris/algebra/gset.v
with
14 additions
and
0 deletions
iris/algebra/gset.v
+
14
−
0
View file @
3b184486
...
@@ -237,6 +237,20 @@ Section gset_disj.
...
@@ -237,6 +237,20 @@ Section gset_disj.
intros
.
rewrite
-
{
2
}(
right_id_L
_
union
Z
)
.
intros
.
rewrite
-
{
2
}(
right_id_L
_
union
Z
)
.
apply
gset_disj_alloc_local_update
;
set_solver
.
apply
gset_disj_alloc_local_update
;
set_solver
.
Qed
.
Qed
.
(** Add some basic support for [GSet X = GSet Y], [GSet X ≼ GSet Y], and
[✓ (GSet X ⋅ GSet Y)] to [set_solver]. There are probably more cases we could
cover (e.g., involving [GSetBot], or nesting of [⋅]), but it is not clear
these are useful in practice, nor how to handle them effectively. *)
Global
Instance
set_unfold_gset_eq
(
X
Y
:
gset
K
)
Q
:
SetUnfold
(
X
=
Y
)
Q
→
SetUnfold
(
GSet
X
=
GSet
Y
)
Q
.
Proof
.
intros
[?];
constructor
.
by
rewrite
(
inj_iff
_)
.
Qed
.
Global
Instance
set_unfold_gset_disj_included
(
X
Y
:
gset
K
)
Q
:
SetUnfold
(
X
⊆
Y
)
Q
→
SetUnfold
(
GSet
X
≼
GSet
Y
)
Q
.
Proof
.
intros
[?];
constructor
.
by
rewrite
gset_disj_included
.
Qed
.
Global
Instance
set_unfold_gset_disj_valid_op
(
X
Y
:
gset
K
)
Q
:
SetUnfold
(
X
##
Y
)
Q
→
SetUnfold
(
✓
(
GSet
X
⋅
GSet
Y
))
Q
.
Proof
.
intros
[?];
constructor
.
by
rewrite
gset_disj_valid_op
.
Qed
.
End
gset_disj
.
End
gset_disj
.
Global
Arguments
gset_disjO
_
{_
_}
.
Global
Arguments
gset_disjO
_
{_
_}
.
...
...
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