Mathlib v3 is deprecated. Go to Mathlib v4

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 with nsmul_def : n •ℕ x = n • x
    • Renames semimodule.nsmul_eq_smul : n •ℕ b = (n : R) • b to nsmul_eq_smul_cast
    • Removes semimodule.smul_eq_smul : n • b = (n : R) • b
    • Adds nsmul_eq_smul : n •ℕ b = n • b (this is different from nsmul_def as described in the docstring)
    • Renames the instances to be named more consistently and all live under add_comm_monoid.nat_*
  • For :
    • Renames gsmul_eq_smul : n •ℤ x = n • x to gsmul_def
    • Renames module.gsmul_eq_smul : n •ℤ x = n • x to gsmul_eq_smul
    • Renames module.gsmul_eq_smul_cast to gsmul_eq_smul_cast
    • Renames the instances to be named more consistently and all live under add_comm_group.int_*

Estimated changes

modified theorem eq_zero_of_smul_two_eq_zero
added theorem gsmul_def
modified theorem gsmul_eq_smul
added theorem gsmul_eq_smul_cast
deleted theorem module.gsmul_eq_smul
deleted theorem module.gsmul_eq_smul_cast
deleted theorem nat.smul_def
added theorem nsmul_def
added theorem nsmul_eq_smul
added theorem nsmul_eq_smul_cast
deleted theorem semimodule.nsmul_eq_smul
deleted theorem semimodule.smul_eq_smul
modified theorem smul_nat_eq_zero