Line Subset Topology Viewer
A subset of the real line (intervals, points, sequences, Q or the irrationals in an interval, Z, N). The learner drags a point and shrinks its epsilon window to test limit, isolated and interior points (with rows for A', closure, interior, boundary); drags candidate bounds whose ray of upper bounds starts at the supremum, with the epsilon test; or drags a cut point to separate a disconnected set (Q at sqrt 2) where an interval admits no cut.
Used in: Mathematical Analysis
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by mode: "Points near a set of reals", "Bounds of a set", "Cutting a set of reals" | Title bar text. |
| controls | string[] | all controls shown | Ids of the hideable controls and text blocks to show (see the controls registry, e.g. readout.limit-point, row.closure, readout.sup-inf, panel.epsilon-sup, panel.gap-test). Core controls always show. Page building fills this from the subject's topic scope. |
| mode | "topology" | "bounds" | "separation" | inferred: cut/points -> separation; bound/lowerBound/bounds/sup/inf/showRay -> bounds; else topology | topology: drag x, shrink the window (x - eps, x + eps), read limit / isolated / interior / boundary facts and whether A is open or closed. bounds: drag candidate upper and lower bounds u, l; rays of all upper / lower bounds; sup and inf; the epsilon test (u - eps, u]. separation: drag a cut c and test whether (-oo, c), (c, oo) separate A; the betweenness test between two points a, b. |
| set | string | "(0,1) union {2} union {3 + 1/n : n >= 1}" | The set A. Pieces joined by union (or ∪): intervals "[0, 1)", "(-inf, sqrt(2)]"; listed points "{0, 2}"; sequences "{1 - 1/n : n >= 1}" (also "n in N"); Q, R, Z, N, empty. Combine with intersect / ∩ and \ (minus), e.g. "Q intersect [0,2]", "R \ Q", "(R \ Q) intersect [0,1]". Numbers are expressions (sqrt(2), pi, 1/3). |
| choices | string[] | [] | Other sets the learner can switch to (a Set dropdown; set comes first). Use for contrasts such as (0,1) against [0,1). |
| show | ("limitPoints" | "closure" | "interior" | "boundary" | "isolated")[] | [] (rows off; the learner can switch them on) | Topology mode: rows switched on at start: A' (limit points), closure, interior, boundary; isolated rings the isolated points of A. "derivedSet" is accepted for limitPoints. |
| probe | number | string | a limit point of A outside A if there is one, else the middle of the set (bare render: 3) | Topology mode: starting position of the draggable point x (an expression such as "sqrt(2)" is allowed). |
| epsilon | number | about a twelfth of the visible span | Starting window half-width. In bounds mode it also switches on the epsilon test of the supremum (window (u - eps, u]) and starts u at sup A. |
| bound | number | string | sup A plus a margin (sup A itself when epsilon is given) | Bounds mode: starting position of the candidate upper bound u. |
| lowerBound | number | string | inf A minus a margin (inf A itself when epsilon is given) | Bounds mode: starting position of the candidate lower bound l. |
| bounds | "upper" | "lower" | "both" | "both" | Bounds mode: which candidate bounds (and rays, sup / inf lines) are shown. |
| sup | number | string | computed | Bounds mode: the exact supremum, used for labels when it agrees with the computed value (or when that value is only numerical). |
| inf | number | string | computed | Bounds mode: the exact infimum (as for sup). |
| showRay | boolean | false | Bounds mode: start with the rows of all upper bounds [sup A, oo) and all lower bounds (-oo, inf A] shown. |
| cut | number | string | a missing point of A if it has one, else the middle | Separation mode: starting cut point c (e.g. 1, "sqrt(2)"). |
| points | [number | string, number | string] | two points of A around a gap, else the ends | Separation mode: starting positions of the points a, b for the betweenness test (is every point between them in A?). |
| view | [number | string, number | string] | fitted to the set | Visible range of the line at start (the learner can zoom). |
| editable | boolean | true | Offer a box where the learner types a set of their own (control panel.custom-set); false hides it. |