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

Algebra.Structures.Field

Description

Structure for fields.

Synopsis

Documentation

class IntegralDomain a => Field a whereSource

Definition of fields.

Methods

inv :: a -> aSource

Instances

(GCDDomain a, Eq a) => Field (FieldOfFractions a) 
(Prime n True, Nat n) => Field (Zn n) 

propMulInv :: (Field a, Eq a) => a -> BoolSource

propField :: (Field a, Eq a) => a -> a -> a -> PropertySource

Specification of fields. Test that the multiplicative inverses behave as expected and that it satisfies the axioms of integral domains.

(</>) :: Field a => a -> a -> aSource

Division