Commit 2026-11-25 16:59 e4122f9a

View on Github →

chore(DomAct): clean up DomMulAct/DomAddAct instances (#41299) This PR cleans up the DomMulAct/DomAddAct instances using inferInstanceAs. Instead having the MyClass Mᵐᵒᵖ instance imply the MyClass Mᵈᵐᵃ instance, we use MyClass M as the hypothesis. For this to work, some instances need to be moved from the group file to the ring file, so that the required instances are available. Additionally, some instances need to be removed, as it turns out that they don't have a corresponding Mᵐᵒᵖ instance, so we cannot then inherit that for Mᵈᵐᵃ. These are: LeftCancelSemigroup, RightCancelSemigroup, LeftCancelMonoid, RightCancelMonoid, InvOneClass, DivInvOneMonoid Additionally, @[to_additive] is now only used in the group instances and not the ring instances.

Estimated changes