Files
agdaproofs/Rationals.agda
2019-01-06 21:33:08 +00:00

30 lines
664 B
Agda
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{-# OPTIONS --safe --warning=error #-}
open import LogicalFormulae
open import Naturals
open import Integers
open import Groups
open import Rings
open import Fields
open import PrimeNumbers
open import Setoids
open import Functions
open import FieldOfFractions
module Rationals where
: 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