Files
agdaproofs/Numbers/Modulo/Definition.agda
2020-01-01 10:14:55 +00:00

28 lines
860 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 --without-K #-}
open import LogicalFormulae
open import Groups.Definition
open import Groups.Groups
open import Groups.Abelian.Definition
open import Groups.FiniteGroups.Definition
open import Numbers.Naturals.Semiring
open import Numbers.Naturals.Naturals
open import Numbers.Naturals.Order
open import Setoids.Setoids
open import Sets.FinSet.Definition
open import Functions
open import Semirings.Definition
open import Numbers.Naturals.EuclideanAlgorithm
open import Orders.Total.Definition
module Numbers.Modulo.Definition where
record n (n : ) .(pr : 0 <N n) : Set where
field
x :
.xLess : x <N n
equalityZn : {n : } .{pr : 0 <N n} {a b : n n pr} (n.x a n.x b) a b
equalityZn {a = record { x = a ; xLess = aLess }} {record { x = .a ; xLess = bLess }} refl = refl