Basic Open Set Viewer

The learner drags a point p around a set U in the plane and watches the largest disk (or square, diamond) about p that fits inside U shrink to radius 0 at edge points U contains, tries a radius r of their own, and compares an open with a closed version of U. On the line, the learner fits a basic set of one topology (standard, lower-limit, upper-limit, K) inside a basic set of another and sees where the basis criterion fails.

Used in: Mathematical Analysis

Props

PropTypeDefaultDescription
titlestring"Open sets: room around every point" (line mode: "Fit one basic set inside another")Title bar text.
controlsstring[]all controls shownIds of the hideable controls and text blocks to show (see the controls registry: toggle.compare, inner.box, inner.diamond, readout.interior, button.swap, readout.finer). Core controls always show. Page building fills this from the subject's topic scope.
mode"plane" | "line"inferred: topologies -> line, else planeplane: a set U in the plane and basic sets (disk, square, diamond) about a draggable point. line: basic sets of two topologies on the real line about a draggable x.
outer"disk" | "box" | "diamond""disk"Plane mode: the shape of U when no set is given (a Euclidean disk, a square or rectangle, or a taxicab diamond).
center[number, number][0, 0]Plane mode: the centre c of the outer shape.
radiusnumber1Plane mode: the outer shape's radius (disk), half-side (square) or half-diagonal (diamond).
halfWidths[number, number]none (a square)Plane mode, outer box: half-width and half-height of a rectangle, e.g. [2, 1] for (-2, 2) x (-1, 1).
boundary"open" | "closed""open"Plane mode: whether the outer shape contains its edge (closed: drawn solid) or not (open: drawn dashed).
setstringnonePlane mode: U by inequalities in x and y instead of a shape: chains ("0 <= y <= 1"), and / or, parentheses, = for edge pieces, e.g. "x^2 + y^2 < 1 or (x^2 + y^2 = 1 and y > 0)". Edge points in U are drawn solid, the others dashed.
inner"disk" | "box" | "diamond""disk"Plane mode: the basic set fitted about p (Euclidean disk, square = max-metric ball, diamond = taxicab ball). The learner can switch shapes (registry inner.box, inner.diamond).
point[number, number] | numberplane: a point of U off its centre, e.g. [0.6, 0.3]; line: 0.5The draggable point p (plane) or x (line) at start.
points[number, number][] | number[]nonePlane mode: one to four draggable points, each with its largest fitting set (the readout follows the last one touched). Line mode: numbers; the first is the start x, all of them become 'x = ...' jump buttons.
rnumber60% of the largest fitting radius at the first pointPlane mode: the learner's trial radius at start (slider); its set is green when it fits and red when it pokes out.
compareWithobjectnonePlane mode: a second version of U offered by a toggle (registry toggle.compare). Fields as the main props (outer, center, radius, halfWidths, boundary, set; unspecified shape fields are inherited), plus point / points (where p starts in that version) and labels: [main, compare] for the toggle. Example: {"boundary": "closed", "point": [1, 0]}.
xRange[number, number]fitted to U and the points (line mode: about [-0.5, 1.5])Visible x range.
yRange[number, number]fitted to U and the pointsPlane mode: visible y range (the plot keeps an equal scale).
topologiesstring[]["standard", "lower-limit"]Line mode: [T, T'] = the topology whose basic set B is given, then the one whose basic sets about x are fitted inside B. Values: standard, lower-limit, upper-limit, K. With three or four, the learner picks both from dropdowns.
element[number, number]by kind: (x - 0.4, x + 0.4), [x, x + 0.5), (x - 0.5, x]Line mode: the endpoints [a, b] of the given basic set B at start (the learner drags them).
Kstring"1/n"Line mode: K = {f(n) : n = 1, 2, ...} for the K-topology, as a formula in n with a finite limit ("1/n", "1/n, n >= 1").
swapButtonbooleantrueLine mode: offer a 'Swap roles' button that exchanges T and T' (registry button.swap).