Type class for the canonical homomorphism Rat → K.
- ratCast : Rat → K
The canonical homomorphism
Rat → K.
Instances
@[implicit_reducible]
Equations
- instRatCastRat = { ratCast := fun (n : Rat) => n }
@[reducible, match_pattern]
Canonical homomorphism from Rat to a division ring K.
This is just the bare function in order to aid in creating instances of DivisionRing.
Equations
Instances For
@[implicit_reducible]
Equations
- instCoeTailRatOfRatCast = { coe := Rat.cast }
@[implicit_reducible]
Equations
- instCoeHTCTRatOfRatCast = { coe := Rat.cast }