Commit 2021-01-08 05:13 efdcab1a
View on Github →refactor(algebra/module/basic): Clean up all the nat/int semimodule definitions (#5654)
These were named inconsistently, and lots of proof was duplicated.
The name changes are largely making the API for nsmul
consistent with the one for gsmul
:
- For
ℕ
:- Replaces
nat.smul_def : n • x = n •ℕ x
withnsmul_def : n •ℕ x = n • x
- Renames
semimodule.nsmul_eq_smul : n •ℕ b = (n : R) • b
tonsmul_eq_smul_cast
- Removes
semimodule.smul_eq_smul : n • b = (n : R) • b
- Adds
nsmul_eq_smul : n •ℕ b = n • b
(this is different fromnsmul_def
as described in the docstring) - Renames the instances to be named more consistently and all live under
add_comm_monoid.nat_*
- Replaces
- For
ℤ
:- Renames
gsmul_eq_smul : n •ℤ x = n • x
togsmul_def
- Renames
module.gsmul_eq_smul : n •ℤ x = n • x
togsmul_eq_smul
- Renames
module.gsmul_eq_smul_cast
togsmul_eq_smul_cast
- Renames the instances to be named more consistently and all live under
add_comm_group.int_*
- Renames