Rational numbers for implementing decision procedures. We should not confuse them with the Mathlib rational numbers.
Equations
- Std.Internal.instInhabitedRat = { default := { num := default, den := default } }
@[inline]
Instances For
Instances For
Equations
Instances For
Equations
- a.div b = a.mul b.inv
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- Std.Internal.Rat.instLE = { le := fun (a b : Std.Internal.Rat) => ¬b < a }
Equations
- a.instDecidableLe b = inferInstanceAs (Decidable ¬b < a)
Equations
- Std.Internal.Rat.instAdd = { add := Std.Internal.Rat.add }
Equations
- Std.Internal.Rat.instNeg = { neg := Std.Internal.Rat.neg }
Equations
- Std.Internal.Rat.instMul = { mul := Std.Internal.Rat.mul }
Equations
- Std.Internal.Rat.instDiv = { div := fun (a b : Std.Internal.Rat) => a * b.inv }
Equations
- Std.Internal.Rat.instOfNat = { ofNat := { num := ↑n, den := 1 } }