Write and . The field embeddings of into send to , so the field trace is
For the trace pairing , the basis therefore has dual basis
Every element of is an algebraic integer. If and , then is an algebraic integer and its trace is an integer. Thus belongs to the trace-dual lattice of , which is generated over by the displayed dual basis. Since , every such linear combination lies in . Hence
Write . The field trace gives a nondegenerate -bilinear trace pairing
The inverse different, or codifferent, is the trace-dual lattice
It contains , because the trace of an element integral over belongs to the integrally closed ring . It is stable under multiplication by : if and , then . Nondegeneracy of the trace pairing and finite generation of show that this trace dual is a finitely generated -module spanning . Therefore it is a fractional ideal of .
Its inverse
is the different ideal. Since , every such lies in ; hence is an integral ideal of .
The discriminant ideal is locally generated by
where is a local -basis of . Equivalently, it is the image of the determinant of the trace pairing
This formulation makes the definition independent of a basis, since changing a basis multiplies its discriminant by the square of the determinant of the change-of-basis matrix.
The asserted identity of ideals can be checked after localization at every nonzero prime ideal of . We may therefore assume that is a discrete valuation ring and choose a basis of . Let be its trace-dual basis, so ; this is a basis of . If , then
Thus the determinant measuring the inclusion is . The determinant description of the norm of a fractional ideal consequently gives
Localization then proves the equality over the original Dedekind domain.
Finally, the determinant-of-pairing map identifies the invertible -module with the discriminant ideal. Hence in the ideal class group
up to the harmless inverse caused by the convention used to identify invertible modules with fractional ideals. In either convention the class is a square.
For a nonzero fractional ideal of a number field, its trace-dual lattice is the fractional ideal
The equality follows from the definition of the inverse different and invertibility of fractional ideals. Under the positive metric on the Minkowski embedding of a number field, the Euclidean dual lattice of is : coordinatewise complex conjugation converts the positive inner product into the trace pairing. This assertion does not require that conjugation preserve the number field itself.
For distinct primes , put and . The algebraic integers and generate an order whose basis has discriminant of elements of a number field : the trace pairing matrix is, up to basis order, the tensor product of the quadratic trace matrices of determinants and . If its index in is , the discriminant-index formula for an integral lattice and the relative discriminant tower formula give
Both and this ideal norm are positive integers, forcing and . Thus is unramified at all finite primes. It is also totally real, so no real place ramifies. This quadratic abelian extension is contained in the ordinary Hilbert class field of , and Artin reciprocity gives a quotient of its ideal class group of order two. The extensions and are equal to , not two different extensions of .