Interval Set Operations
Indexed families of intervals on a number line. The learner slides N to watch running unions or intersections (and the infinite one), drags a probe point to see which sets contain it, checks whether a stage of a cover covers K (finite subcovers, compactness, Lebesgue number), or combines given intervals by union, intersection, difference and complement.
Used in: Mathematical Analysis
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by mode, e.g. "Indexed family of intervals" | Title bar text. |
| controls | string[] | all controls shown | Ids of the hideable controls and readouts to show (see the controls registry: compare, readout.open-closed, readout.neighbourhood, readout.local-count, layer.closure, readout.finite-subcover, readout.compact, readout.lebesgue, op.difference, op.complement). Core controls always show. Page building fills this from the subject's topic scope. |
| mode | "family" | "cover" | "intervals" | inferred: space or cover -> cover, intervals -> intervals, else family | family: the sets I_n for n up to N, their running union or intersection S_N and the infinite one S_∞. cover: does the stage C_N (fixed members plus U_1..U_N) cover the set K? intervals: union / intersection / difference / complement of given intervals. |
| family | string | family: "U_n = (-1/n, 1/n)"; cover: "U_n = (1/n, 2)" | The n-th set as an interval expression in n, optionally named: "U_n = (1/n, 2)", "[0, n]", "{1/n}" (a point), "[n, inf)", "(n, n+2), n in Z" (integer index), "{1/n}, n >= 1" (start index). Endpoints are arithmetic in n (sqrt, ^, pi, inf). |
| operation | "union" | "intersection" | "difference" | "complement" | family: "intersection"; intervals: the first offered | Family mode: union or intersection (the learner can switch). Intervals mode: the operation shown first. |
| nRange | [number, number] | [1, 20] (integer index: [0, 6]) | Range of the N slider; the first value is the first index n (natural index) or the smallest N (integer index, sets n = -N..N). At most 500 steps. |
| n | number | first index + 4 | The starting N. |
| index | "natural" | "integer" | "natural" ("integer" when the family says n in Z) | natural: sets I_first..I_N; integer: sets I_-N..I_N. |
| limit | string | computed for nested families of intervals | The infinite union / intersection S_∞ (family mode) or the union of the whole family (cover mode), as a set: "{0}", "(0, 1]", "[0, inf)", "empty". Applies to the page's operation; when the learner switches operation it is recomputed. |
| space | string | "(0, 1]" in cover mode | Cover mode: the set K to cover, e.g. "(0,1]", "[0,1]", "R", "[0,1] ∪ [2,3]". |
| cover | string | string[] | none | Cover mode: fixed members of the cover besides the family (labelled V_1, V_2, ...), e.g. "(-0.1, 0.1)". Without a family they are the whole (finite) cover, labelled U_1, U_2, ... |
| intervals | (string | [a, b, "closed" | "open", "closed" | "open"])[] | ["[-2, 3)", "(1, 5]"] | Intervals mode: the sets A, B, ... (up to 5), as strings or tuples. |
| operations | ("union" | "intersection" | "difference" | "complement")[] | all four | Intervals mode: the operation buttons offered (difference = A minus the others; complement = R minus A). With one button the toggle is hidden. |
| compare | object | none | A contrasting second example the learner switches to. Its fields replace the main ones: {family, operation, limit} (family mode), {space, cover, family} (cover mode), {intervals} (intervals mode); optional label for its toggle button. |
| initialView | "main" | "compare" | "main" | Which example is shown first when compare is given. |
| point | number | a point about 60% across the window | Starting position of the draggable probe point x, whose membership in every set is read out. |
| radius | number | none | Family mode: draw the neighbourhood (x - r, x + r) of the probe; says whether it fits inside S_N and how many sets it meets (local finiteness). |
| zoom | number | 1 | Starting magnification around the probe point (the learner picks ×1, ×10, ×100). |
| xRange | [number, number] | fitted to the sets | Visible window of the number line at zoom ×1. |
| showClosure | boolean | false | Family mode: start with the closures of S_N and S_∞ drawn (dashed rows). |
| showLebesgue | boolean | false | Cover mode: show the largest Lebesgue number of the current cover of K. |
PreviousNext