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
Simcha van Collem
Iris
Commits
6d89cb87
Commit
6d89cb87
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Lemmas for big_ops and unit.
parent
5a291902
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
theories/algebra/big_op.v
+17
-0
17 additions, 0 deletions
theories/algebra/big_op.v
with
17 additions
and
0 deletions
theories/algebra/big_op.v
+
17
−
0
View file @
6d89cb87
...
...
@@ -90,6 +90,9 @@ Section list.
by
rewrite
IH
assoc
.
Qed
.
Lemma
big_opL_unit
l
:
([
^
o
list
]
k
↦
y
∈
l
,
monoid_unit
)
≡
(
monoid_unit
:
M
)
.
Proof
.
induction
l
;
rewrite
/=
?left_id
//.
Qed
.
Lemma
big_opL_forall
R
f
g
l
:
Reflexive
R
→
Proper
(
R
==>
R
==>
R
)
o
→
...
...
@@ -204,6 +207,9 @@ Section gmap.
by
rewrite
big_opM_empty
right_id
.
Qed
.
Lemma
big_opM_unit
m
:
([
^
o
map
]
k
↦
y
∈
m
,
monoid_unit
)
≡
(
monoid_unit
:
M
)
.
Proof
.
induction
m
using
map_ind
;
rewrite
/=
?big_opM_insert
?left_id
//.
Qed
.
Lemma
big_opM_fmap
{
B
}
(
h
:
A
→
B
)
(
f
:
K
→
B
→
M
)
m
:
([
^
o
map
]
k
↦
y
∈
h
<$>
m
,
f
k
y
)
≡
([
^
o
map
]
k
↦
y
∈
m
,
f
k
(
h
y
))
.
Proof
.
...
...
@@ -310,6 +316,11 @@ Section gset.
Lemma
big_opS_singleton
f
x
:
([
^
o
set
]
y
∈
{[
x
]},
f
y
)
≡
f
x
.
Proof
.
intros
.
by
rewrite
/
big_opS
elements_singleton
/=
right_id
.
Qed
.
Lemma
big_opS_unit
X
:
([
^
o
set
]
y
∈
X
,
monoid_unit
)
≡
(
monoid_unit
:
M
)
.
Proof
.
induction
X
using
collection_ind_L
;
rewrite
/=
?big_opS_insert
?left_id
//.
Qed
.
Lemma
big_opS_opS
f
g
X
:
([
^
o
set
]
y
∈
X
,
f
y
`
o
`
g
y
)
≡
([
^
o
set
]
y
∈
X
,
f
y
)
`
o
`
([
^
o
set
]
y
∈
X
,
g
y
)
.
Proof
.
by
rewrite
/
big_opS
-
big_opL_opL
.
Qed
.
...
...
@@ -372,6 +383,12 @@ Section gmultiset.
by
rewrite
-
gmultiset_union_difference'
.
Qed
.
Lemma
big_opMS_unit
X
:
([
^
o
mset
]
y
∈
X
,
monoid_unit
)
≡
(
monoid_unit
:
M
)
.
Proof
.
induction
X
using
gmultiset_ind
;
rewrite
/=
?big_opMS_union
?big_opMS_singleton
?left_id
//.
Qed
.
Lemma
big_opMS_opMS
f
g
X
:
([
^
o
mset
]
y
∈
X
,
f
y
`
o
`
g
y
)
≡
([
^
o
mset
]
y
∈
X
,
f
y
)
`
o
`
([
^
o
mset
]
y
∈
X
,
g
y
)
.
Proof
.
by
rewrite
/
big_opMS
-
big_opL_opL
.
Qed
.
...
...
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