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
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by mode, e.g. "Ideals of Z[√−5] as lattices" | Title bar text. |
| controls | string[] | all controls shown | Ids 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 element | element: 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. |
| ring | string | "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. |
| d | number | none | Squarefree 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 -3 | A 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)). |
| compare | number | none | Element 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). |
| compareRing | string | none | A 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]). |
| selected | string | [a, b] | element mode: 2 + ω; integrality mode: (1+√d)/2 | Element 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. |
| grid | number | string | "1/2" | Integrality mode: grid step 1, "1/2", "1/3" or "1/4" (or the denominator 1 to 4). |
| dividend | string | [a, b] | 5 + 2ω | Division mode: a (an element of the ring). The learner drags it or types a new one. |
| divisor | string | [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. |
| quotient | string | [a, b] | the corner with the smallest remainder | Division 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). |
| showAllCandidates | boolean | false | Division mode: show every corner's remainder arrow and a table of q, r, N(r) against N(b) (non-uniqueness). |
| compareDividend | string | [a, b] | as dividend | Division mode: the dividend in the second panel (compareRing, or the same ring). |
| compareDivisor | string | [a, b] | as divisor | Division mode: the divisor in the second panel (e.g. 2 in Z[√−5], where no corner works for 1+√−5). |
| showAssociates | boolean | false | Element mode: mark the unit multiples (associates) of the selected element. |
| showUnits | boolean | false | Element mode: mark the units on the curve N = ±1 (circle for d < 0, hyperbolas for d > 0, with the fundamental unit). |
| showMultiples | boolean | false | Element 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])[] | none | Ideal 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])[] | none | Ideal 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 given | Ideal mode with multiplyBy: which of I, J, IJ is shown first. |
| showResidues | boolean | false | Ideal mode: colour every ring point by its residue class modulo the ideal (N(I) colours; norm at most 30). |
| showGeneratorIdeals | boolean | false | Ideal mode: mark the principal ideals of the first two generators, so I = (a) + (b) is visible (and, when principal, the gcd). |
| extent | number | fitted to the elements given | Half-width of the view in units of the real axis. |
PreviousNext