Commit 2021-06-10 16:03 49f5a159
View on Github →feat(algebra/ordered_ring): more granular typeclasses for with_top α and with_bot α (#7845)
with_top α and with_bot α now inherit the following typeclasses from α with suitable assumptions:
mul_zero_one_classsemigroup_with_zeromonoid_with_zerocomm_monoid_with_zeroThese were all split out of the existingcanonically_ordered_comm_semiring, with their proofs unchanged. The same instances are added forwith_bot. It is not possible to split further, asdistrib'requiresadd_eq_zero_iff, andcanonically_ordered_comm_semiringis the smallest typeclass that provides both this lemma andmul_zero_class. With these instances in place, we can now showcomm_monoid_with_zero ereal.