Commit 2024-08-05 10:13 4d93d88d
View on Github →refactor: use consistent names for forgetful smul structures (#15500) Moves:
AddCommMonoid.natModule->AddCommMonoid.toNatModuleAddCommGroup.intModule->AddCommGroup.toIntModulealgebraNat->Semiring.toNatAlgebraalgebraInt->Ring.toIntAlgebraalgebraRat->DivisionRing.toRatAlgebraAddCommGroup.natModule.unique->AddCommMonoid.uniqueNatModuleAddCommGroup.intModule.unique->AddCommGroup.uniqueIntModuleThe premise here is that the conversion fromAddCommGrouptoAddCommMonoidis not really any different from converting fromAddCommGrouptoModule ℤ; and so both should be named with theto*naming convention. Tihs also brings the naming of theModuleandAlgebrainstances into alignment. I chosetoNatModuleinstead oftoModuleNatto match the prose, ℕ-module. This fits a common naming convention if you viewModuleas infix, as we do with various other lean functions without actual infix notation.