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

PropTypeDefaultDescription
titlestringby mode, e.g. "Indexed family of intervals"Title bar text.
controlsstring[]all controls shownIds 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 familyfamily: 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.
familystringfamily: "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 offeredFamily 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.
nnumberfirst index + 4The 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.
limitstringcomputed for nested families of intervalsThe 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.
spacestring"(0, 1]" in cover modeCover mode: the set K to cover, e.g. "(0,1]", "[0,1]", "R", "[0,1] ∪ [2,3]".
coverstring | string[]noneCover 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 fourIntervals mode: the operation buttons offered (difference = A minus the others; complement = R minus A). With one button the toggle is hidden.
compareobjectnoneA 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.
pointnumbera point about 60% across the windowStarting position of the draggable probe point x, whose membership in every set is read out.
radiusnumbernoneFamily 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).
zoomnumber1Starting magnification around the probe point (the learner picks ×1, ×10, ×100).
xRange[number, number]fitted to the setsVisible window of the number line at zoom ×1.
showClosurebooleanfalseFamily mode: start with the closures of S_N and S_∞ drawn (dashed rows).
showLebesguebooleanfalseCover mode: show the largest Lebesgue number of the current cover of K.