ZFC Rational Numbers #
This file defines the rational numbers in ZFC, based on the integers and using the ZFInt type.
@[reducible, inline]
Imported ZFLean declaration.
Equations
- ZFSet.ZFInt' = { x : ZFSet.ZFInt // x ≠ 0 }
Instances For
@[implicit_reducible]
ℤ × ℤ⋆ equipped with qrel is a setoid.
Equations
- ZFSet.instSetoidZFIntZFInt' = { r := ZFSet.qrel, iseqv := ZFSet.qrel_eq }
Imported ZFLean declaration.
Equations
Instances For
@[reducible, inline]
Imported ZFLean declaration.
Equations
Instances For
@[reducible, inline]
Imported ZFLean declaration.
Equations
Instances For
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instZero = { zero := ZFSet.ZFRat.zero }
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instOne = { one := ZFSet.ZFRat.one }
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instInhabited = { default := 0 }
@[reducible, inline]
Imported ZFLean declaration.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instAdd = { add := ZFSet.ZFRat.add }
@[reducible, inline]
Imported ZFLean declaration.
Equations
- n.neg = Quotient.liftOn n (fun (x : ZFSet.ZFInt × ZFSet.ZFInt') => match x with | (x, y) => ZFSet.ZFRat.mk (-x, y)) ZFSet.ZFRat.neg._proof_1
Instances For
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instNeg = { neg := ZFSet.ZFRat.neg }
@[implicit_reducible]
Imported ZFLean declaration.
Equations
- ZFSet.ZFRat.instSub = { sub := ZFSet.ZFRat.sub }
@[reducible, inline]
Imported ZFLean declaration.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instMul = { mul := ZFSet.ZFRat.mul }
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[reducible, inline]
The subtype of nonzero ZF rational numbers.
Equations
- ZFSet.ZFRat.ZFRat' = { x : ZFSet.ZFRat // x ≠ 0 }
Instances For
@[reducible, inline]
Imported ZFLean declaration.
Equations
- ZFSet.ZFRat.inv ⟨x_1, hx⟩ = ⟨ZFSet.ZFRat.mk (↑(Quotient.out x_1).2, ⟨(Quotient.out x_1).1, ⋯⟩), ⋯⟩
Instances For
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instInvZFRat' = { inv := ZFSet.ZFRat.inv }
@[implicit_reducible]
Equations
- ZFSet.ZFRat.instInv = { inv := fun (x : ZFSet.ZFRat) => if hx : x ≠ 0 then ↑(ZFSet.ZFRat.inv ⟨x, hx⟩) else 0 }
@[implicit_reducible]
Imported ZFLean declaration.
Equations
- ZFSet.ZFRat.instHDivZFRat' = { hDiv := ZFSet.ZFRat.hdiv }
@[implicit_reducible]
Imported ZFLean declaration.
Equations
- ZFSet.ZFRat.instDiv = { div := ZFSet.ZFRat.div }
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.