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
c7f474c5
Commit
c7f474c5
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add _singletons lemmas for big_opMS and big_opS
parent
b5e1f0c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/algebra/gmultiset.v
+10
-1
10 additions, 1 deletion
theories/algebra/gmultiset.v
theories/algebra/gset.v
+10
-1
10 additions, 1 deletion
theories/algebra/gset.v
with
20 additions
and
2 deletions
theories/algebra/gmultiset.v
+
10
−
1
View file @
c7f474c5
From
stdpp
Require
Export
sets
gmultiset
countable
.
From
iris
.
algebra
Require
Export
cmra
.
From
iris
.
algebra
Require
Import
updates
local_updates
.
From
iris
.
algebra
Require
Import
updates
local_updates
big_op
.
From
iris
Require
Import
options
.
(* The multiset union CMRA *)
...
...
@@ -81,6 +81,15 @@ Section gmultiset.
repeat
(
rewrite
multiplicity_difference
||
rewrite
multiplicity_disj_union
)
.
lia
.
Qed
.
Lemma
big_opMS_singletons
X
:
([
^
op
mset
]
x
∈
X
,
{[
x
]})
=
X
.
Proof
.
induction
X
as
[|
x
X
IH
]
using
gmultiset_ind
.
-
rewrite
big_opMS_empty
.
done
.
-
unfold_leibniz
.
rewrite
big_opMS_disj_union
//
big_opMS_singleton
IH
//.
Qed
.
End
gmultiset
.
Arguments
gmultisetO
_
{_
_}
.
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/gset.v
+
10
−
1
View file @
c7f474c5
From
stdpp
Require
Export
sets
gmap
mapset
.
From
iris
.
algebra
Require
Export
cmra
.
From
iris
.
algebra
Require
Import
updates
local_updates
.
From
iris
.
algebra
Require
Import
updates
local_updates
big_op
.
From
iris
Require
Import
options
.
(* The union CMRA *)
...
...
@@ -55,6 +55,15 @@ Section gset.
Global
Instance
gset_core_id
X
:
CoreId
X
.
Proof
.
by
apply
core_id_total
;
rewrite
gset_core_self
.
Qed
.
Lemma
big_opS_singletons
X
:
([
^
op
set
]
x
∈
X
,
{[
x
]})
=
X
.
Proof
.
induction
X
as
[|
x
X
Hx
IH
]
using
set_ind_L
.
-
rewrite
big_opS_empty
.
done
.
-
unfold_leibniz
.
rewrite
big_opS_insert
//
IH
//.
Qed
.
End
gset
.
Arguments
gsetO
_
{_
_}
.
...
...
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