Commit 2021-10-08 14:22 5fd36643
View on Github →feat(algebra/graded_monoid): Split out graded monoids from graded rings (#9586)
This cleans up the direct_sum.gmonoid typeclass to not contain a bundled morphism, which allows it to be used to describe graded monoids too, via the alias for sigma graded_monoid. Essentially, this:
- Renames:
direct_sum.ghas_onetograded_monoid.has_onedirect_sum.ghas_multodirect_sum.gnon_unital_non_assoc_semiringdirect_sum.gmonoidtodirect_sum.gsemiringdirect_sum.gcomm_monoidtodirect_sum.gcomm_semiring
- Introduces new typeclasses which represent what the previous names should have been:
graded_monoid.ghas_mulgraded_monoid.gmonoidgraded_monoid.gcomm_monoidThis doesn't do as much deduplication as I'd like, but it at least manages some. There's not much in the way of new definitions here either, and most of the names are just copied from the graded ring case.