Quadratic Integer Lattice

A quadratic ring such as Z[i] or Z[√−5] drawn as a lattice in the plane. The learner picks elements (norm, associates, units, multiples), divides by rounding a/b to a corner of its cell and sees whether the remainder is smaller, builds an ideal as a sublattice and tests whether it is principal (residues, sums, products, containment, fractional ideals, class order), or slides d to see which points of Q(√d) are integral and whether Z[√d] is integrally closed.

Used in: Ring Theory

Props

PropTypeDefaultDescription
titlestringby mode, e.g. "Ideals of Z[√−5] as lattices"Title bar text.
controlsstring[]all controls shownIds of the hideable toggles and readouts to show (see the controls registry, e.g. readout.norm, highlight.associates, highlight.residues, readout.ideal-norm, panel.closure). Core controls always show. Page building fills this from the subject's topic scope.
mode"element" | "division" | "ideal" | "integrality"inferred: generators/multiplyBy/compareGenerators -> ideal; dividend/divisor/quotient/showAllCandidates -> division; parameters/grid -> integrality; else elementelement: click or drag to pick an element and read it off (norm, associates, units, multiples). division: divide a by b by rounding a/b to a corner of its cell; the remainder arrows and the disc N(r) < N(b) show whether the division works. ideal: an ideal as a sublattice; click points to test membership or add generators; the closest nonzero points decide whether it is principal. integrality: points of Q(√d) on a grid of step 1/g, integral ones filled; slide d.
ringstring"Z[i]" (or the ring of integers of d when only d is given)Quadratic ring: "Z[i]", "Z[sqrt(-5)]", "Z[sqrt(2)]", "Z[(1+sqrt(-3))/2]", "Z[omega]", "Q(sqrt(5))" (its ring of integers), "O_K" (with d). d must be squarefree, not 0 or 1.
dnumbernoneSquarefree d: the field Q(√d) in integrality mode; elsewhere, without ring, the ring of integers of Q(√d).
parameters{name: "d", min, max, initial}[]integrality mode: d from -15 to 15, initial -3A slider for d that steps through the squarefree values in [min, max] (0 and 1 skipped). Integrality mode always shows the slider; element mode shows it when parameters is given (the ring is then the ring of integers of Q(√d)).
comparenumbernoneElement and integrality modes: a second d drawn side by side (e.g. Z[i] next to Z[√2], or d = −3 next to d = −1).
compareRingstringnoneA second ring drawn side by side: element mode (instead of compare), division mode (with compareDividend / compareDivisor) and ideal mode (with compareGenerators, e.g. a non-principal ideal of Z[√−5] next to a principal one of Z[i]).
selectedstring | [a, b]element mode: 2 + ω; integrality mode: (1+√d)/2Element and integrality modes: the element selected at start, as text ("2 + i", "(1+sqrt(-3))/2") or a pair [a, b] meaning a + b√d (halves allowed). In integrality mode its coordinates (a, b) stay put while d slides.
gridnumber | string"1/2"Integrality mode: grid step 1, "1/2", "1/3" or "1/4" (or the denominator 1 to 4).
dividendstring | [a, b]5 + 2ωDivision mode: a (an element of the ring). The learner drags it or types a new one.
divisorstring | [a, b]Z[i]: 2 − i; otherwise 1 + ωDivision mode: the nonzero divisor b; its multiples are drawn as a lattice. The learner can type a new one.
quotientstring | [a, b]the corner with the smallest remainderDivision mode: the rounding candidate q chosen at start (must be a corner of a/b's cell, e.g. "2+2i" for 7+2i divided by 2−i).
showAllCandidatesbooleanfalseDivision mode: show every corner's remainder arrow and a table of q, r, N(r) against N(b) (non-uniqueness).
compareDividendstring | [a, b]as dividendDivision mode: the dividend in the second panel (compareRing, or the same ring).
compareDivisorstring | [a, b]as divisorDivision mode: the divisor in the second panel (e.g. 2 in Z[√−5], where no corner works for 1+√−5).
showAssociatesbooleanfalseElement mode: mark the unit multiples (associates) of the selected element.
showUnitsbooleanfalseElement mode: mark the units on the curve N = ±1 (circle for d < 0, hyperbolas for d > 0, with the fundamental unit).
showMultiplesbooleanfalseElement mode: ring every multiple of the selected element (the principal ideal (z)) and its cell.
generators(string | [a, b])[]Z[i]: ["5", "3+i"]; otherwise ["2", "1+ω"]Ideal mode: generators of the ideal I (fractions allowed for fractional ideals). The learner adds or removes generators by clicking.
multiplyBy(string | [a, b])[]noneIdeal mode: generators of a second ideal J; a toggle switches between I, J and the product IJ (with N(IJ) = N(I)N(J) and its principal test).
compareGenerators(string | [a, b])[]noneIdeal mode: a second ideal J. In the same ring it is drawn as rings over I to test I ⊆ J (divisibility for principal ideals); with compareRing it is an ideal of that ring, drawn side by side.
showIdeal"first" | "second" | "product""product" when multiplyBy is givenIdeal mode with multiplyBy: which of I, J, IJ is shown first.
showResiduesbooleanfalseIdeal mode: colour every ring point by its residue class modulo the ideal (N(I) colours; norm at most 30).
showGeneratorIdealsbooleanfalseIdeal mode: mark the principal ideals of the first two generators, so I = (a) + (b) is visible (and, when principal, the gcd).
extentnumberfitted to the elements givenHalf-width of the view in units of the real axis.