Rational algebras from ring homomorphisms #
The image of a ring homomorphism ℚ →+* B is central, because every rational number is a
quotient of integers and integer casts commute with everything. Hence such a homomorphism
makes B a ℚ-algebra, even when B is not commutative. This is used, for instance, to view
the target of a ring homomorphism out of a ℚ-algebra as a ℚ-algebra.
Main declarations #
RingHom.commute_apply_rat: the image of a rational number commutes with every element.RingHom.toRatAlgebra: theℚ-algebra structure induced by a ring homomorphismℚ →+* B.RingHom.algebraMap_toRatAlgebra: its algebra map is the given homomorphism.
The algebra map of RingHom.toRatAlgebra g is g.