Commit 2022-02-17 00:34 834fd30b
View on Github →feat(topology/continuous_function/algebra): generalize algebra instances (#12055) This adds:
- some missing instances in the algebra hierarchy (
comm_semigroup
,mul_one_class
,mul_zero_class
,monoid_with_zero
,comm_monoid_with_zero
,comm_semiring
). - finer-grained scalar action instances, notably none of which require
topological_space R
any more, as they only needhas_continuous_const_smul R M
instead ofhas_continuous_smul R M
. - continuity lemmas about
zpow
on groups andzsmul
on additive groups (copied directly from the lemmas aboutpow
on monoids), which are used to avoid diamonds in the int-action. In order to make room for these, the lemmas aboutzpow
on groups with zero have been renamed tozpow₀
, which is consistent with how the similar clash withinv
is solved. - a few lemmas about
mk_of_compact
since an existing proof was broken byrefl
closing the goal earlier than before.