Casts for Rational Numbers #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
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 #
/.is infix notation forrat.mk.
Tags #
rat, rationals, field, ℚ, numerator, denominator, num, denom, cast, coercion, casting
Coercion from ℚ as an order embedding.
If f and g agree on the integers then they are equal φ.
If f and g agree on the integers then they are equal φ.
See note [partially-applied ext lemmas] for why comp is used here.
Positive integer values of a morphism φ and its value on -1 completely determine φ.
Any two ring homomorphisms from ℚ to a semiring are equal. If the codomain is a division ring,
then this lemma follows from eq_rat_cast.
Equations
- rat.distrib_smul = {to_smul_zero_class := {to_has_smul := {smul := has_smul.smul rat.smul_division_ring}, smul_zero := _}, smul_add := _}