Orders and Algebraic Integers
Quadratic Integers works in one ring per field: , all of 's integers. A field has other rings with the same fraction field, its orders, and fields of higher degree have rings of integers that no single generator reaches. This page goes through both.
Orders
An order of a number field is a subring that is a lattice of full rank: finitely generated over , spanning over . Every order lies inside the ring of integers , the maximal order. In a quadratic field each order is for one conductor , and is named by its discriminant : QuadraticOrder(D). The ring is the order of conductor 2 in :
An order shares its field's arithmetic away from the conductor, and loses it at the conductor. In the prime 2 is inert, and so prime:
In it is not, though nothing smaller divides it: it divides without dividing either factor.
So 4 has two factorizations into irreducibles, and . An order of conductor is never integrally closed, and never factors uniquely. The units shrink too: has six, only .
Past degree two
A number field of degree is for a root of an irreducible polynomial of degree , the minimal polynomial. The number can be a radical, , the golden ratio, or a root named by its polynomial, PolynomialRoot(p, k) (Wolfram's Root):
The field's real and complex embeddings are its signature , with . has one real cube root of 2 and a complex pair:
By Dirichlet's unit theorem the units of have rank . That rank is 1 here, as in a real quadratic field.
When ℤ[θ] is not enough
is always an order, AlgebraicOrder(θ). It need not be the maximal one. In , the number
is an algebraic integer, though its coordinates aren't integers:
The ring of integers comes with a basis, written on 's powers as Wolfram writes it:
The index is 3 here. The discriminants differ by its square: , and the field's is a ninth of that:
How the ring of integers is found: an order fails to be maximal at a prime exactly when some element of outside is integral. Only primes with dividing the discriminant can fail. So is enlarged at each such , one integral element at a time, until none is left.
Dedekind's cubic
Some fields have no with at all. Dedekind's example is the field of a root of . Its ring of integers is :
The reason is the prime 2. It splits into three distinct primes, each of norm 2, so . In a ring that would need 's minimal polynomial to have three distinct roots mod 2, and has only two elements. So 2 is far from prime:
while 3, where stays irreducible, is inert:
Primality here is that of the ideal: is prime when is a field. With that comes down to linear algebra over . must lie in , and Frobenius must be injective on the quotient and fix only . The same test works in any order, at the conductor too.
What's not here yet
Class groups and units in degree 3 and up, and fields given by two generators (), stay unevaluated for now. So does any polynomial whose irreducibility no prime certifies: splits mod every prime, though not over .