constructive-algebra-0.1.4: A library of constructive algebra.

Algebra.Z

Synopsis

Documentation

type Z = IntegerSource

Type synonym for integers.

class Ring a whereSource

Definition of rings.

Methods

(<+>) :: a -> a -> aSource

Addition

(<*>) :: a -> a -> aSource

Multiplication

neg :: a -> aSource

Compute additive inverse

zero :: aSource

The additive identity

one :: aSource

The multiplicative identity

Instances

Ring Z 
(GCDDomain a, Eq a) => Ring (FieldOfFractions a) 
Nat n => Ring (Zn n) 
(CommutativeRing r, Eq r) => Ring (UPoly r x)