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
b99023e7
Commit
b99023e7
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Derive monoid_right_id.
parent
7fd895dd
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/monoid.v
+2
-1
2 additions, 1 deletion
theories/algebra/monoid.v
with
2 additions
and
1 deletion
theories/algebra/monoid.v
+
2
−
1
View file @
b99023e7
...
...
@@ -23,10 +23,11 @@ Class Monoid {M : ofeT} (o : M → M → M) := {
monoid_assoc
:
Assoc
(
≡
)
o
;
monoid_comm
:
Comm
(
≡
)
o
;
monoid_left_id
:
LeftId
(
≡
)
monoid_unit
o
;
monoid_right_id
:
RightId
(
≡
)
monoid_unit
o
;
}
.
Lemma
monoid_proper
`{
Monoid
M
o
}
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
o
.
Proof
.
apply
ne_proper_2
,
monoid_ne
.
Qed
.
Lemma
monoid_right_id
`{
Monoid
M
o
}
:
RightId
(
≡
)
monoid_unit
o
.
Proof
.
intros
x
.
etrans
;
[
apply
monoid_comm
|
apply
monoid_left_id
]
.
Qed
.
(** The [Homomorphism] classes give rise to generic lemmas about big operators
commuting with each other. *)
...
...
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