Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Rice Wine
Iris
Commits
700a60a0
Commit
700a60a0
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Show that ⊆ on multisets is decidable.
parent
4e0e29eb
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
prelude/gmultiset.v
+14
-0
14 additions, 0 deletions
prelude/gmultiset.v
with
14 additions
and
0 deletions
prelude/gmultiset.v
+
14
−
0
View file @
700a60a0
...
@@ -239,6 +239,20 @@ Proof.
...
@@ -239,6 +239,20 @@ Proof.
-
intros
X
Y
HXY
HYX
;
apply
gmultiset_eq
;
intros
x
.
by
apply
(
anti_symm
(
≤
))
.
-
intros
X
Y
HXY
HYX
;
apply
gmultiset_eq
;
intros
x
.
by
apply
(
anti_symm
(
≤
))
.
Qed
.
Qed
.
Lemma
gmultiset_subseteq_alt
X
Y
:
X
⊆
Y
↔
map_relation
(
≤
)
(
λ
_,
False
)
(
λ
_,
True
)
(
gmultiset_car
X
)
(
gmultiset_car
Y
)
.
Proof
.
apply
forall_proper
;
intros
x
.
unfold
multiplicity
.
destruct
(
gmultiset_car
X
!!
x
),
(
gmultiset_car
Y
!!
x
);
naive_solver
omega
.
Qed
.
Global
Instance
gmultiset_subseteq_dec
X
Y
:
Decision
(
X
⊆
Y
)
.
Proof
.
refine
(
cast_if
(
decide
(
map_relation
(
≤
)
(
λ
_,
False
)
(
λ
_,
True
)
(
gmultiset_car
X
)
(
gmultiset_car
Y
))));
by
rewrite
gmultiset_subseteq_alt
.
Defined
.
Lemma
gmultiset_subset_subseteq
X
Y
:
X
⊂
Y
→
X
⊆
Y
.
Lemma
gmultiset_subset_subseteq
X
Y
:
X
⊂
Y
→
X
⊆
Y
.
Proof
.
apply
strict_include
.
Qed
.
Proof
.
apply
strict_include
.
Qed
.
Hint
Resolve
gmultiset_subset_subseteq
.
Hint
Resolve
gmultiset_subset_subseteq
.
...
...
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