{-# 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 module Rationals where data Sign : Set where Positive : Sign Negative : Sign record ℚ : Set where field consNum : ℤ consDenom : ℕ 0