A field is a commutative ring with inverses for all non-zero elements.
- add : α → α → α
- mul : α → α → α
- neg : α → α
- sub : α → α → α
- inv : α → α
- div : α → α → α
Division is multiplication by the inverse.
Zero is not equal to one: fields are non trivial.
The inverse of zero is zero. This is a "junk value" convention.
The inverse of a non-zero element is a right inverse.
Instances
instance
Lean.Grind.Field.instNoNatZeroDivisorsOfIsCharPOfNatNat
{α : Type u_1}
[Field α]
[IsCharP α 0]
: