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

Algebra.Structures.Ring

Description

The representation of the ring structure.

Synopsis

Documentation

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

propRing :: (Ring a, Eq a) => a -> a -> a -> PropertySource

Specification of rings. Test that the arguments satisfy the ring axioms.

(<->) :: Ring a => a -> a -> aSource

Subtraction

(<^>) :: Ring a => a -> Integer -> aSource

Exponentiation

(*>) :: Ring a => Integer -> a -> aSource

Multiply from left with an integer; n *> x means x + x + ... + x, n times.

(<*) :: Ring a => a -> Integer -> aSource

sumRing :: Ring a => [a] -> aSource

Summation

productRing :: Ring a => [a] -> aSource

Product