Hausdorff Distance Explorer

Cover a set with open ε-balls, by clicking or by greedy steps, and watch the uncovered part shrink; a table shows finitely many balls at every radius (totally bounded), a compare panel shows a space where no finite net exists, and a Cauchy sequence runs into a missing limit. Other modes thicken two plane sets until each swallows the other (Hausdorff distance) or collapse a thin torus / rescale a lattice (Gromov–Hausdorff).

Used in: Mathematical Analysis

Props

PropTypeDefaultDescription
titlestringby mode, e.g. "Covering with ε-balls"Title bar text.
controlsstring[]all controls shownIds of the hideable controls and text blocks to show (see the controls registry: readout.greedy-order, readout.separation, readout.net-size, panel.compare, panel.cauchy, readout.compactness, toggle.metric, readout.gh-bound). Core controls always show. Page building fills this from the subject's topic scope.
mode"epsilon-net" | "hausdorff" | "gromov-hausdorff"inferred: sets -> hausdorff, family (or a Z^2 space) -> gromov-hausdorff, else epsilon-netepsilon-net: cover a space with open balls (greedy or by hand), scales table, compare panel, Cauchy panel. hausdorff: two plane sets, ε-thickenings, one-sided distances. gromov-hausdorff: a collapsing or rescaled family.
spacestring"unit-square"epsilon-net mode: the set E. Intervals "[0,1]", "(0, 1]", "(0,1)"; plane sets "unit-square", "(0,1) x (0,1)", "[0,2] x [0,1]", "unit-disk", "open-unit-disk"; spaces with no finite net "Z with min(1, |x - y|)" and "N with the discrete metric". A string naming Z^2 switches to the rescaled-lattice family.
metric"euclidean" | "max" | "taxicab""euclidean"epsilon-net mode, plane sets: the metric (round, square or diamond balls). The learner can switch it (toggle.metric).
epsilonnumber | [min, max, initial]a quarter of the diameter (discrete spaces: 0.5)epsilon-net / hausdorff mode: starting radius, or the slider range with the start.
greedyStartnumber | [x, y]left end (right end of (a, b]); lower-left corner; leftmost point of a diskepsilon-net mode: where the greedy net starts. The scan greedy then takes the uncovered point nearest the start (on a line) or the next uncovered point row by row (in the plane).
greedyOrder"scan" | "farthest""scan"epsilon-net mode: scan (next uncovered point in scan order from the start) or farthest (the uncovered point farthest from the current centres).
greedyStepsnumber | "all"0epsilon-net mode: greedy steps already taken at start ("all" = a finished net).
netSizenumbernoneepsilon-net mode: the greedy net size the node states at the starting ε; the readout recomputes it and says whether it matches.
showGreedyOrderbooleanfalseepsilon-net mode: number the greedy centres in the order chosen (and list them on a line).
compareWith{space, epsilon?, metric?, greedyStart?}noneepsilon-net mode: a second space in its own panel with its own slider and greedy buttons, e.g. {"space": "Z with min(1, |x - y|)", "epsilon": 0.5}. Without epsilon it starts at the main ε.
cauchyWithoutLimitstringnoneepsilon-net mode (intervals and plane sets): a sequence in n, e.g. "1/n" or "(1/n, 1/2)"; the panel plots its terms, shows the tail shrinking (Cauchy) and whether its limit lies in E.
sets{A, B}{A: [[0,0],[1,0]], B: [[0,0],[1,0],[0.5,0.5]]}hausdorff mode: each set a list of points [[x, y], ...] (draggable; click adds) or a name: "unit circle", "unit disk", "square" ([-1,1]^2), "square boundary" (of [-1,1]^2), "unit square", "segment", "unit segment" ([0,1] x {0}), "polygon-6", "grid-5" ({k/5} x {0}). With only A, B starts empty for the learner to click.
family"thin-torus" | "rescaled-z2""thin-torus"gromov-hausdorff mode: the flat torus S^1(2π) x S^1(2πδ) collapsing to a circle, or sZ^2 with s times the graph metric converging to the l1 plane. Strings containing "torus" or "Z^2" are accepted.
parameters[{name, min, max, initial}]torus δ: [0.02, 0.6, 0.3]; lattice s: [0.1, 1, 0.5]; hausdorff ε: [0.01, 1, 0.3]gromov-hausdorff mode: range of δ (torus) or s (lattice); hausdorff mode: the ε slider. Only the first entry is used.