Zulip Chat Archive
Stream: general
Topic: is_ring_hom instead of cast_mul
Chris Hughes (Apr 23 2018 at 22:17):
What's the reason not to mark coe
as a ring_hom instead of using int.cast_mul
and stuff like that?
Mario Carneiro (Apr 23 2018 at 23:00):
Well, for one thing ring_hom
didn't exist when cast
was written
Mario Carneiro (Apr 23 2018 at 23:00):
but ring_hom.mul
is not applicable as a simp lemma for reasons that have been discussed before, so we would still want int.cast_mul
in any case
Mario Carneiro (Apr 23 2018 at 23:01):
But it's reasonable to prove that coe
is a ring_hom given the existing theorems
Last updated: Dec 20 2023 at 11:08 UTC