Integer Sublattice Explorer

Submodules of Z^2 spanned by draggable integer vectors. The learner drags generators and sees which points their integer combinations reach, the determinant, relations and (later) bases; colours Z^2 by cosets and adds representatives; compares N + P with N ∩ P; reduces N mod p; or tests a subset against the submodule criterion.

Used in: Ring Theory

Props

PropTypeDefaultDescription
titlestringby mode, e.g. "Integer combinations in ℤ²"Title bar text.
controlsstring[]all controls shownIds of the hideable controls and text blocks to show (see the controls registry, e.g. readout.basis, toggle.reduced-basis, readout.annihilator, readout.second-iso). Core controls always show. Page building fills this from the subject's topic scope.
mode"span" | "cosets" | "sum-intersection" | "mod-p" | "subset"inferred: subset -> subset, second -> sum-intersection, p -> mod-p, representatives or map -> cosets, else spanspan: drag generators, see the lattice N they span, the determinant, relations, basis verdict and a reduced basis. cosets: colour Z^2 by the cosets of N (or of ker f with map) and add cosets through draggable representatives a, b and a scalar r. sum-intersection: two generator sets N and P with N + P and N ∩ P. mod-p: N reduced into F_p^2 with a prime slider. subset: test a subset of Z^2 against the submodule criterion.
generatorsnumber[][][[2, 1], [1, 3]] (sum-intersection: [[2, 0], [0, 2]]; with map: a basis of ker f)Integer generators g_i of the submodule N, as [x, y] pairs (1 to 6 of them, |entries| <= 12). The learner drags their tips and can add or remove generators.
comparenumber[][]noneA second generating set the learner can switch to (Set A / Set B), e.g. a non-basis next to a basis. In sum-intersection mode it is the alternative choice of P.
matrixnumber[][]noneA 2 x m integer matrix (2 rows) of a map Z^m -> Z^2. Its columns become the generators, so N = im A; the readouts add ker A (in Z^m) and coker A = Z^2/N. Replaces generators.
mapstringnoneCosets mode: a homomorphism Z^2 -> Z/n or Z, written "(x, y) -> x + 3y mod 5" (a x + b y with integer a, b, optional mod n <= 60). Points are coloured by their value f(v), i.e. by the cosets of ker f; the generators (default: a basis of ker f) are checked against ker f, and Z^2/ker f ≅ im f is read off.
secondnumber[][][[3, 0], [0, 3]]Sum-intersection mode: generators h_j of the second submodule P (draggable).
highlight"sum" | "intersection" | "both""both"Sum-intersection mode: which of N + P and N ∩ P is highlighted first; the learner can switch.
showReducedBasisbooleanfalseSpan mode: start with the reduced (short-vector) basis b_1, b_2 of N and its parallelogram drawn, plus the triangular basis; the learner can toggle it.
showQuotientbooleanfalseShow the quotient panel for Z^2/N: its decomposition Z/d_1 ⊕ Z/d_2 (⊕ Z), its annihilator d_2 Z, and whether it is cyclic (with a generator).
representativesnumber[][][[1, 0], [0, 1]]Cosets and subset modes: the starting points a and b (draggable) for coset arithmetic (a + N) + (b + N), r(a + N), or for testing a + b and r a against a subset.
scalarinteger2Cosets and subset modes: the starting integer r (-3 to 12 on the slider) in r(a + N) or r a.
pnumber2Mod-p mode: the starting prime (2, 3, 5, 7, 11 or 13); the learner moves a slider.
subsetstring"x*y = 0" in subset modeSubset mode: a subset S of Z^2 as a rule in x and y: an equation ("x*y = 0", "y = 2x"), a condition ("x >= 0", "(x >= 0)*(y >= 0)") or an expression meaning = 0 ("mod(x + y, 2)"). The learner tests a + b and r a, and can search the window for a counterexample.
rangeintegerauto: 5 to 10 from the vectorsHalf-width R of the visible window [-R, R]^2 (3 to 12).