Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
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
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
Paolo G. Giarrusso
iris
Commits
85697195
Commit
85697195
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
More big_opMS lemmas.
parent
cbf274c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
algebra/cmra_big_op.v
+10
-0
10 additions, 0 deletions
algebra/cmra_big_op.v
prelude/gmultiset.v
+8
-0
8 additions, 0 deletions
prelude/gmultiset.v
with
18 additions
and
0 deletions
algebra/cmra_big_op.v
+
10
−
0
View file @
85697195
...
...
@@ -452,6 +452,16 @@ Section gmultiset.
intros
.
by
rewrite
/
big_opMS
gmultiset_elements_singleton
/=
right_id
.
Qed
.
Lemma
big_opMS_delete
f
X
x
:
x
∈
X
→
([
⋅
mset
]
y
∈
X
,
f
y
)
≡
f
x
⋅
[
⋅
mset
]
y
∈
X
∖
{[
x
]},
f
y
.
Proof
.
intros
?
%
gmultiset_elem_of_subseteq
.
rewrite
-
big_opMS_singleton
.
by
rewrite
-
big_opMS_union
-
gmultiset_union_difference
.
Qed
.
Lemma
big_opMS_elem_of
f
X
x
:
x
∈
X
→
f
x
≼
[
⋅
mset
]
y
∈
X
,
f
y
.
Proof
.
intros
.
rewrite
big_opMS_delete
//.
apply
cmra_included_l
.
Qed
.
Lemma
big_opMS_opS
f
g
X
:
([
⋅
mset
]
y
∈
X
,
f
y
⋅
g
y
)
≡
([
⋅
mset
]
y
∈
X
,
f
y
)
⋅
([
⋅
mset
]
y
∈
X
,
g
y
)
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
prelude/gmultiset.v
+
8
−
0
View file @
85697195
...
...
@@ -157,6 +157,14 @@ Proof.
rewrite
multiplicity_difference
,
multiplicity_empty
;
omega
.
Qed
.
(* Order stuff *)
Lemma
gmultiset_elem_of_subseteq
x
X
:
x
∈
X
→
{[
x
]}
⊆
X
.
Proof
.
rewrite
elem_of_multiplicity
.
intros
Hx
y
;
destruct
(
decide
(
x
=
y
))
as
[
->
|]
.
-
rewrite
multiplicity_singleton
;
omega
.
-
rewrite
multiplicity_singleton_ne
by
done
;
omega
.
Qed
.
(* Properties of the elements operation *)
Lemma
gmultiset_elements_empty
:
elements
(
∅
:
gmultiset
A
)
=
[]
.
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