-
Notifications
You must be signed in to change notification settings - Fork 251
Ring reasoning #2765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Ring reasoning #2765
Conversation
Co-authored-by: jamesmckinna <[email protected]>
Co-authored-by: jamesmckinna <[email protected]>
Co-authored-by: jamesmckinna <[email protected]>
Co-authored-by: jamesmckinna <[email protected]>
Co-authored-by: jamesmckinna <[email protected]>
Co-authored-by: jamesmckinna <[email protected]>
Need to build on it.
…of a Ring, properly renamed.
|
open PM +-monoid using () renaming | ||
( ε-unique to 0#-unique; ε-comm to 0#-comm | ||
; elimʳ to +-elimʳ; introʳ to +-introʳ | ||
; elimˡ to +-elimˡ; introˡ to +-introˡ | ||
; introᶜ to +-introᶜ | ||
; cancelʳ to +-cancel-invʳ; insertʳ to +-insertʳ | ||
; cancelˡ to +-cancel-invˡ; insertˡ to +-insertˡ | ||
; cancelᶜ to +-cancel-invᶜ; insertᶜ to +-insertᶜ) public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only nitpick here, in terms of style-guide
agda-stdlib/doc/style-guide.md
Lines 189 to 196 in 5c64117
* If multiple import modifiers are used, then they should occur in the | |
following order: `public`, `using` `renaming`, and if `public` is used | |
then the `using` and `renaming` modifiers should occur on a separate line. | |
For example: | |
```agda | |
open Monoid monoid public | |
using (ε) renaming (_∙_ to _+_) | |
``` |
open PM +-monoid using () renaming | |
( ε-unique to 0#-unique; ε-comm to 0#-comm | |
; elimʳ to +-elimʳ; introʳ to +-introʳ | |
; elimˡ to +-elimˡ; introˡ to +-introˡ | |
; introᶜ to +-introᶜ | |
; cancelʳ to +-cancel-invʳ; insertʳ to +-insertʳ | |
; cancelˡ to +-cancel-invˡ; insertˡ to +-insertˡ | |
; cancelᶜ to +-cancel-invᶜ; insertᶜ to +-insertᶜ) public | |
open PM +-monoid public | |
using () | |
renaming ( ε-unique to 0#-unique; ε-comm to 0#-comm | |
; elimʳ to +-elimʳ; introʳ to +-introʳ | |
; elimˡ to +-elimˡ; introˡ to +-introˡ | |
; introᶜ to +-introᶜ | |
; cancelʳ to +-cancel-invʳ; insertʳ to +-insertʳ | |
; cancelˡ to +-cancel-invˡ; insertˡ to +-insertˡ | |
; cancelᶜ to +-cancel-invᶜ; insertᶜ to +-insertᶜ) |
plus or minus some additional offset whitespace.
open PM *-monoid using () renaming | ||
( ε-unique to 1#-unique; ε-comm to 1#-comm | ||
; elimʳ to *-elimʳ; introʳ to *-introʳ | ||
; elimˡ to *-elimˡ; introˡ to *-introˡ | ||
; introᶜ to *-introᶜ | ||
; cancelʳ to *-cancel-invʳ; insertʳ to *-insertʳ | ||
; cancelˡ to *-cancel-invˡ; insertˡ to *-insertˡ | ||
; cancelᶜ to *-cancel-invᶜ; insertᶜ to *-insertᶜ) public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
open PM *-monoid using () renaming | |
( ε-unique to 1#-unique; ε-comm to 1#-comm | |
; elimʳ to *-elimʳ; introʳ to *-introʳ | |
; elimˡ to *-elimˡ; introˡ to *-introˡ | |
; introᶜ to *-introᶜ | |
; cancelʳ to *-cancel-invʳ; insertʳ to *-insertʳ | |
; cancelˡ to *-cancel-invˡ; insertˡ to *-insertˡ | |
; cancelᶜ to *-cancel-invᶜ; insertᶜ to *-insertᶜ) public | |
open PM *-monoid public | |
using () | |
renaming ( ε-unique to 1#-unique; ε-comm to 1#-comm | |
; elimʳ to *-elimʳ; introʳ to *-introʳ | |
; elimˡ to *-elimˡ; introˡ to *-introˡ | |
; introᶜ to *-introᶜ | |
; cancelʳ to *-cancel-invʳ; insertʳ to *-insertʳ | |
; cancelˡ to *-cancel-invˡ; insertˡ to *-insertˡ | |
; cancelᶜ to *-cancel-invᶜ; insertᶜ to *-insertᶜ) |
Reasoning combinators for monoid, renamed and adapted for Ring. Builds on #2692 .