Quadratic algebras over ℤ #
For a b : ℤ, QuadraticAlgebra ℤ a b is an order in QuadraticAlgebra ℚ a b.
Main results #
QuadraticAlgebra ℚ a bis the localization ofQuadraticAlgebra ℤ a bat the nonzero integers and its fraction ring.QuadraticAlgebra.Int.isDomain_iff:QuadraticAlgebra ℤ a bis an integral domain iffdiscr a bis not a square.QuadraticAlgebra.Int.exists_im_den_sq_mul: ifzis an integral element ofQuadraticAlgebra ℚ a b, thendiscr a bis the square of the denominator ofz.imtimes an integer congruent to0or1modulo4.QuadraticAlgebra.Int.exists_isIntegral_notMem_of_sq_mul: conversely, ifdiscr a b = d ^ 2 * ewith1 < |d|andecongruent to0or1modulo4, then there is an integral elementznot inQuadraticAlgebra ℤ a bsuch thatd • zlies in it.
QuadraticAlgebra ℚ a b is the localization of the order QuadraticAlgebra ℤ a b at the
nonzero integers.
Maximality of the order #
An integral element z of QuadraticAlgebra ℚ a b lies in QuadraticAlgebra ℤ a b iff its
imaginary part is an integer.
If z is an integral element of QuadraticAlgebra ℚ a b, then the denominator of z.im times
z lies in QuadraticAlgebra ℤ a b.
If discr a b = d ^ 2 * e with e congruent to 0 or 1 modulo 4 and 1 < |d|, then
there is an integral element z of QuadraticAlgebra ℚ a b such that d • z lies in
QuadraticAlgebra ℤ a b but z does not.
If z is integral and d • z is the image of an element x of QuadraticAlgebra ℤ a b, then
discr a b * x.im ^ 2 is d ^ 2 times t ^ 2 - 4 * n (here t and n are the trace and the
norm of z).
Let z be an integral element such that d • z is the image of an element x of
QuadraticAlgebra ℤ a b, with d coprime to x.im. Then discr a b is d ^ 2 times an
integer congruent to 0 or 1 modulo 4.
If z is an integral element of QuadraticAlgebra ℚ a b, then discr a b is the square of
the denominator of z.im times an integer congruent to 0 or 1 modulo 4.