Commit 2025-12-05 12:39 ce740694
View on Github →chore(Algebra/MonoidAlgebra): use to_additive more (#32398)
Using Jovan's new dont_translate syntax, we can tag much more of the MonoidAlgebra API with to_additive.
A few points:
to_additivecurrently doesn't support the destructinghavesyntax, because it generates an auxiliarymatchstatement. The correspondingobtainsyntax is fine though.AddMonoidAlgebra.opRingEquivandMonoidAlgebra.opRingEquivwere not the same statement (up to additivisation): The first assumed commutativity of the base monoid to get rid of anAddOppositein the RHS. Usingto_additivemakes the type signatures align, at the cost of some shuffling around in later files. This shuffling around will become trivial after #32254.