Casts for Rational Numbers

Summary

We define the canonical injection from ℚ into an arbitrary division ring and prove various casting lemmas showing the well-behavedness of this injection.

Notations

Tags

rat, rationals, field, ℚ, numerator, denominator, num, denom, cast, coercion, casting


rat.cast

Construct the canonical injection from into an arbitrary division ring. If the field has positive characteristic p, we define 1 / p = 1 / 0 = 0 for consistency with our division by zero convention.