Additional lemmas about homomorphisms of semirings and rings #
These lemmas have been banished here to avoid unnecessary imports in
Mathlib.Algebra.Hom.Ring.Defs
.
They could be moved to more natural homes.
theorem
RingHom.codomain_trivial_iff_range_eq_singleton_zero
{α : Type u_2}
{β : Type u_3}
:
∀ {x : NonAssocSemiring α} {x_1 : NonAssocSemiring β} (f : α →+* β), 0 = 1 ↔ Set.range ⇑f = {0}
f : α →+* β
has a trivial codomain iff its range is {0}
.