Natural literals step by one, which in characteristic two alternates.
Scalar multiplication by a natural is multiplication by its cast, since both depend only on parity.
The zeroth power is one, through the linear reference.
Negation is the identity in characteristic two.
Additive inverses cancel, which in characteristic two is add_self.
Subtraction is addition of the negation, which here is addition.
Additive and multiplicative structure for the packed quotient field.
Equations
- One or more equations did not get rendered due to their size.
Integer casts negate trivially, since negation is the identity.
Additive inverses for the packed quotient.
Equations
- One or more equations did not get rendered due to their size.
Multiplication is commutative, inherited from the packed polynomial ring.
Equations
- Hex.GF2nPoly.instCommRing = { toRing := Hex.GF2nPoly.instRing, mul_comm := ⋯ }
The zeroth integer power is one.
Zero and one are distinct when the modulus is nonconstant.
One is its own inverse.
A nonzero element has a nonzero inverse.
Inversion is an involution, by cancelling through the defining identity.
Field laws for the packed quotient, given a nonconstant irreducible modulus.
Not an instance: see the note above on why irreducibility alone is not enough.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Characteristic two, given a nonconstant irreducible modulus.