Skip to content

QuadraticOrder ​

The quadratic order of discriminant D=f2DKD = f^2 D_K: Z+f OK\mathbb{Z} + f\,\mathcal{O}_K, the subring of conductor ff in the ring of integers of Q(D)\mathbb{Q}(\sqrt D). Z[d]\mathbb{Z}[\sqrt{d}] is QuadraticOrder(4d)\mathrm{QuadraticOrder}(4d).

QuadraticOrder(D)the order of discriminant DD, for D≡0D \equiv 0 or 1(mod4)1 \pmod 4 not a square; the field's own discriminant gives its ring of integers
Typed signatures
TypePackageApplies
(integer) -> set<quadratic_integer>number-theoryalways

Domain: Number theory

Details
  • A value for the Over option, as QuadraticIntegers is: IsPrime(x, Over -> QuadraticOrder(-12)) asks whether xx is prime in Z[−3]\mathbb{Z}[\sqrt{-3}]. An element is written as any number of the field is, and belongs to the order when its coordinate on ωK\omega_K is a multiple of ff
  • Orders of conductor f>1f > 1 have fewer units (Z[−3]\mathbb{Z}[\sqrt{-3}] has only ±1\pm 1, against six in Z[ω]\mathbb{Z}[\omega]) and never factor uniquely, since they are not integrally closed: 4=2⋅2=−(1+−3)(−1+−3)4 = 2 \cdot 2 = -(1 + \sqrt{-3})(-1 + \sqrt{-3}) in Z[−3]\mathbb{Z}[\sqrt{-3}], so FactorInteger stays unevaluated
  • At a prime pp dividing ff the ideals are not all invertible, and an element is prime exactly when O/(x)\mathcal{O}/(x) is a field, irreducible when nothing of a smaller norm divides it
  • QuadraticOrder(D) for the field's discriminant (DK=dD_K = d or 4d4d) is QuadraticIntegers(d)

Examples

Basic #

2 is not prime in ℤ[√−3]: it divides (1 + √−3)(1 − √−3) = 4 without dividing either, though it is prime in ℤ[ω]

live ↗
InIsPrime(2,KeyValuePair⁡(Over,QuadraticOrder(−12)))\mathrm{IsPrime}(2, \operatorname{KeyValuePair}(\mathrm{Over}, \mathrm{QuadraticOrder}(-12)))OutFalse\mathrm{False}

in the maximal order ℤ[ω], 2 is inert and prime

live ↗
InIsPrime(2,KeyValuePair⁡(Over,QuadraticIntegers(−3)))\mathrm{IsPrime}(2, \operatorname{KeyValuePair}(\mathrm{Over}, \mathrm{QuadraticIntegers}(-3)))OutTrue\mathrm{True}

4 = 2 · 2 = −(1 + √−3)(−1 + √−3): an order of conductor 2 has no unique factorization

live ↗
InFactorInteger(4,KeyValuePair⁡(Over,QuadraticOrder(−12)))\mathrm{FactorInteger}(4, \operatorname{KeyValuePair}(\mathrm{Over}, \mathrm{QuadraticOrder}(-12)))OutFactorInteger(4,(Over,QuadraticOrder(−12)))\mathrm{FactorInteger}(4, (\mathrm{Over},\mathrm{QuadraticOrder}(-12)))

7 = (1 + 2√2)(−1 + 2√2) still splits in ℤ[√8]

live ↗
InIsPrime(7,KeyValuePair⁡(Over,QuadraticOrder(32)))\mathrm{IsPrime}(7, \operatorname{KeyValuePair}(\mathrm{Over}, \mathrm{QuadraticOrder}(32)))OutFalse\mathrm{False}
About
Examples4
CrosswalkSageMath

Implementation

mappedwolframpackages/oracle/src/mappings.ts

Wolfram has no quadratic orders: its number-field heads take an algebraic number, and work in the maximal order.

See also: QuadraticIntegers, QuadraticInteger, IsPrime