Field concept

Description

A field is a CommutativeRing where 0 is different from 1 and each element a≠0 has the inverse 1/a. Hence, a field is a AdditiveAbelianGroup and a MultiplicativePartiallyInvertibleCommutativeMonoid where only 0 has no multiplicative inverse. This implies that if the set S is a field then S\{0} is an MultiplicativeAbelianGroup.

Refinement of

CommutativeRing, AdditiveAbelianGroup and MultiplicativePartiallyInvertibleCommutativeMonoid.

Notation

S Type of set
a,b Object of type S

Definitions

Valid expressions

The expressions from CommutativeRing and:
Name Expression Return type
Division a / b S
Division assignment a /= b S

Expression semantics

Name Expression Precondition Semantics Postcondition
Division a / b b≠0 equivalent to a = a * (1/b)  
Division assignment a /= b b≠0 equivalent to a = a / b  

Complexity guarantees

Invariants

The invariants of CommutativeRing and:
Inversion for a≠0 we have a / a = 1

Models

Notes