-
Notifications
You must be signed in to change notification settings - Fork 298
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
[Merged by Bors] - refactor: use consistent names for forgetful smul structures #15500
Conversation
@@ -241,10 +241,10 @@ section Int | |||
variable (R : Type*) [Ring R] | |||
|
|||
-- Lower the priority so that `Algebra.id` is picked most of the time when working with | |||
-- `ℤ`-algebras. This is only an issue since `Algebra.id ℤ` and `algebraInt ℤ` are not yet defeq. | |||
-- TODO: fix this by adding an `ofInt` field to rings. |
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.
This was fixed long ago :)
PR summary 778dc7c525Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
Should |
I'd argue no, because (And this fits the Lean naming convention if you view |
(edited the description with that justification) |
maintainer merge |
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
Thanks! bors merge |
Moves: - `AddCommMonoid.natModule` -> `AddCommMonoid.toNatModule` - `AddCommGroup.intModule` -> `AddCommGroup.toIntModule` - `algebraNat` -> `Semiring.toNatAlgebra` - `algebraInt` -> `Ring.toIntAlgebra` - `algebraRat` -> `DivisionRing.toRatAlgebra` - `AddCommGroup.natModule.unique` -> `AddCommMonoid.uniqueNatModule` - `AddCommGroup.intModule.unique` -> `AddCommGroup.uniqueIntModule` The premise here is that the conversion from `AddCommGroup` to `AddCommMonoid` is not really any different from converting from `AddCommGroup` to `Module ℤ`; and so both should be named with the `to*` naming convention. Tihs also brings the naming of the `Module` and `Algebra` instances into alignment. I chose `toNatModule` instead of `toModuleNat` to match the prose, ℕ-module. This fits a common naming convention if you view `Module` as infix, as we do with various other lean functions without actual infix notation.
Pull request successfully merged into master. Build succeeded: |
Moves: - `AddCommMonoid.natModule` -> `AddCommMonoid.toNatModule` - `AddCommGroup.intModule` -> `AddCommGroup.toIntModule` - `algebraNat` -> `Semiring.toNatAlgebra` - `algebraInt` -> `Ring.toIntAlgebra` - `algebraRat` -> `DivisionRing.toRatAlgebra` - `AddCommGroup.natModule.unique` -> `AddCommMonoid.uniqueNatModule` - `AddCommGroup.intModule.unique` -> `AddCommGroup.uniqueIntModule` The premise here is that the conversion from `AddCommGroup` to `AddCommMonoid` is not really any different from converting from `AddCommGroup` to `Module ℤ`; and so both should be named with the `to*` naming convention. Tihs also brings the naming of the `Module` and `Algebra` instances into alignment. I chose `toNatModule` instead of `toModuleNat` to match the prose, ℕ-module. This fits a common naming convention if you view `Module` as infix, as we do with various other lean functions without actual infix notation.
Moves:
AddCommMonoid.natModule
->AddCommMonoid.toNatModule
AddCommGroup.intModule
->AddCommGroup.toIntModule
algebraNat
->Semiring.toNatAlgebra
algebraInt
->Ring.toIntAlgebra
algebraRat
->DivisionRing.toRatAlgebra
AddCommGroup.natModule.unique
->AddCommMonoid.uniqueNatModule
AddCommGroup.intModule.unique
->AddCommGroup.uniqueIntModule
The premise here is that the conversion from
AddCommGroup
toAddCommMonoid
is not really any different from converting fromAddCommGroup
toModule ℤ
; and so both should be named with theto*
naming convention.Tihs also brings the naming of the
Module
andAlgebra
instances into alignment.I chose
toNatModule
instead oftoModuleNat
to match the prose, ℕ-module.This fits a common naming convention if you view
Module
as infix, as we do with various other lean functions without actual infix notation.