Rational numbers for implementing decision procedures. We should not confuse them with the Mathlib rational numbers.
Equations
- Lean.instInhabitedRat = { default := { num := default, den := default } }
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.mkRat num den = if (den == 0) = true then { num := 0, den := 1 } else { num := num, den := den }.normalize
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Rat.instLT = { lt := fun (a b : Lean.Rat) => a.lt b = true }
Equations
- Lean.Rat.instLE = { le := fun (a b : Lean.Rat) => ¬b < a }
Equations
- Lean.Rat.instDiv = { div := fun (a b : Lean.Rat) => a * b.inv }
Equations
- Lean.Rat.instCoeInt = { coe := fun (num : Int) => { num := num, den := 1 } }