CRT Grid
The grid of residue pairs Z_m × Z_n (or triples). In the product view the learner clicks cells to add, multiply or invert pairs coordinatewise and highlights units, zero divisors and idempotents (a selected idempotent e splits the ring as eR × (1−e)R); in the walk view they play k ↦ (k mod m, k mod n) and watch it fill every cell exactly when the moduli are coprime, landing on target cells (solving congruences); in the tensor view the cells a ⊗ b collapse to gcd(m, n) colours.
Used in: Ring Theory
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by view, e.g. "Product ring ℤ₃ × ℤ₄" | Title bar text. |
| controls | string[] | all controls shown | Ids of the hideable controls and text blocks to show (see the controls registry, e.g. highlight.units, operation.invert, readout.idempotent-split, panel.ring-structure, edit-moduli, mode.walk). Core controls always show. Page building fills this from the subject's topic scope. |
| mode | "ring" | "walk" | "tensor" | inferred: target/compareWith/compareTarget/step/showRingStructure -> walk, else ring | ring: the product ring; click cells to add / multiply two pairs or invert one, highlight a class. walk: send k = 0, 1, 2, … to (k mod m_1, k mod m_2, …) with Play / Step / a slider; every cell is reached exactly once iff the moduli are pairwise coprime; click cells to set targets. tensor: cell (a, b) is a ⊗ b in Z_m ⊗ Z_n, labelled and coloured by c with a ⊗ b = c(1 ⊗ 1), c mod gcd(m, n) (two moduli only). |
| moduli | (number | string)[] | [3, 4] | The factors: 2 or 3 moduli, each 2–36, at most 400 cells, as numbers or names ("Z_4", "Z/4"). Rows are the first coordinate, columns the second; a third modulus draws one panel per third coordinate. The learner can change them with steppers (edit-moduli). |
| notation | "Z_n" | "Z/nZ" | "Z_n" | How rings are written in titles and readouts: ℤ_4 or ℤ/4ℤ (follow the course's notation). |
| operation | "add" | "multiply" | "invert" | "multiply" | Ring view: what clicking cells does at start (the learner can switch). add / multiply: click two cells and read the coordinatewise sum / product (result outlined); invert: click one cell and read its inverse, or which coordinate has none. |
| highlight | "none" | "units" | "zero-divisors" | "idempotents" | "none" | Class highlighted at start, with its count (units 2·6 = 12 of 36, …). The clicked cell gets a verdict (inverse, a killing partner, e² = e). Also works in the walk view. |
| selected | string[] | [] | Ring view: cells selected at start, as "(a,b)" or "(a,b,c)" (or [a, b]); at most two (one for invert). With highlight idempotents, a selected nontrivial idempotent e shows eR, (1−e)R and R ≅ eR × (1−e)R. |
| step | number | 0 | Walk view: how many integers k = 0, …, step − 1 have already been walked at start (use it to show a finished or half-finished walk; nothing autoplays). |
| target | number[] | number[][] | none | Walk view: one target cell [a, b] (or [a, b, c]) or several; each is a congruence system x ≡ a (mod m), x ≡ b (mod n). Once the walk reaches it the readout names x; a system with a ≢ b (mod gcd) is reported unsolvable once the walk starts repeating. The learner can click cells to add or remove targets. |
| compareWith | (number | string)[] | none | Walk view: second moduli walked in step beside the first (e.g. [4, 6] next to [3, 4]) to contrast coprime and non-coprime moduli. |
| compareTarget | number[] | number[][] | none | Walk view, with compareWith: target cell(s) in the second grid. |
| showRingStructure | boolean | true when the panel.ring-structure control is shown | Walk view: the panel saying k ↦ (k mod m, k mod n) is a ring isomorphism (or why not: kernel lcm), with the idempotent lifts e_i ↦ (0,…,1,…,0), x = Σ a_i e_i, and φ(mn) = φ(m)φ(n). false hides it. |
PreviousNext