Better structure of Rationals (#15)

This commit is contained in:
Patrick Stevens
2019-01-06 21:33:08 +00:00
committed by GitHub
parent 7f8fc1b271
commit 02434c01f9

View File

@@ -13,5 +13,17 @@ open import FieldOfFractions
module Rationals where
: Field'
= encapsulateField (fieldOfFractions IntDom)
: Set
= fieldOfFractionsSet IntDom
_+Q_ :
a +Q b = fieldOfFractionsPlus IntDom a b
_*Q_ :
a *Q b = fieldOfFractionsTimes IntDom a b
Ring : Ring (fieldOfFractionsSetoid IntDom) _+Q_ _*Q_
Ring = fieldOfFractionsRing IntDom
Field : Field Ring
Field = fieldOfFractions IntDom