ℤ[√d] #
The ring of integers adjoined with a square root of d : ℤ.
After defining the norm, we show that it is a linearly ordered commutative ring, as well as an integral domain.
We provide the universal property, that ring homomorphisms ℤ√d →+* R correspond
to choices of square roots of d in R.
Equations
Instances For
Convert an integer to a ℤ√d
Equations
Instances For
Alias of Zsqrtd.re_ofInt.
Alias of Zsqrtd.im_ofInt.
Alias of Zsqrtd.re_zero.
Alias of Zsqrtd.im_zero.
Alias of Zsqrtd.re_one.
Alias of Zsqrtd.im_one.
The representative of √d in the ring
Equations
Instances For
Alias of Zsqrtd.re_sqrtd.
Alias of Zsqrtd.im_sqrtd.
Alias of Zsqrtd.re_add.
Alias of Zsqrtd.im_add.
Alias of Zsqrtd.re_neg.
Alias of Zsqrtd.im_neg.
Alias of Zsqrtd.re_sub.
Alias of Zsqrtd.im_sub.
Conjugation in ℤ√d. The conjugate of a + b √d is a - b √d.
Equations
Alias of Zsqrtd.re_star.
Alias of Zsqrtd.im_star.
Alias of Zsqrtd.re_natCast.
Alias of Zsqrtd.re_ofNat.
Alias of Zsqrtd.im_natCast.
Alias of Zsqrtd.im_ofNat.
Alias of Zsqrtd.re_intCast.
Alias of Zsqrtd.im_intCast.
Alias of Zsqrtd.re_smul.
Alias of Zsqrtd.im_smul.
"Generalized" nonneg. nonnegg c d x y means a √c + b √d ≥ 0;
we are interested in the case c = 1 but this is more symmetric
Equations
Instances For
The norm of an element of ℤ[√d].
Equations
Instances For
Equations
Instances For
Nonnegativity of an element of ℤ√d.
Equations
Instances For
Equations
A nonsquare is a natural number that is not equal to the square of an integer. This is implemented as a typeclass because it's a necessary condition for much of the Pell equation theory.
Instances
Alias of Zsqrtd.Nonsquare.ns.
Equations
The kernel of the norm map on ℤ√d equals the submonoid of unitary elements.