Drawing 6,684 ideas in one dependency graph
Ideas, visualized started as an interactive companion to Walter Rudin’s three analysis textbooks: one live figure for each of their 1,062 numbered theorems, lemmas, and definitions. It grew into an atlas of 6,684 ideas across 13 fields, from real analysis and quantum mechanics to map projections and sociology. Each idea lists the ideas it depends on, and nearly every one has its own interactive simulation.
A collection that size raises two questions. What does the graph of all those dependencies look like? And how do you keep 6,621 simulations working when nobody can click through them all? This post covers both. Every figure runs the atlas’s own canvas runtime on its compiled graph.
One build step, no bundler
content/<col>/. scripts/build.mjs resolves the global dependency DAG and writes static JSON shards; the browser imports chapter modules directly with no bundler.Adding a collection takes a folder with a collection.js descriptor and one module per chapter. Each item in a chapter exports four things: a statement, the idea behind it, its deps (the items it builds on), and viz(v), the function that draws its simulation. The browser imports those modules directly, with no bundler in between.
One build script does the rest on disk. It checks that all 11,541 dependency edges form a graph with no cycles (no idea can depend, however indirectly, on itself), works out every item’s complete set of ancestors and descendants, lays the chapters out on 88 shelf rows so that edges cross as little as possible, and picks a light and dark color for each collection. Each collection also keeps a syllabus of planned items, 6,890 so far, that the build tracks separately from the ones already written.
6,684 ideas in one graph
Because dependencies cross chapters, books, and fields, one click shows how far an idea travels. An order on a set, Rudin’s Definition 1.5, has no prerequisites of its own and 3,286 descendants: nearly half the atlas rests on it. The real spectral theorem feeds 664 results across mechanics, quantum theory, and statistics.
Step back to whole fields and 1,989 links cross from one field to another, most of them carrying mathematics into physics (446), engineering, statistics, computer science, and economics. The longest chain runs 77 steps without a break, from that order on a set, through complex and functional analysis, wave mechanics, and quantum gates, to Grover’s search algorithm.
Thirteen fields, one canvas runtime
assets/js/viz/core.js. Switch fields, drag handles and sliders on the canvas, flip hypotheses, or open the viz(v) source drawer to see the declarative stage calls behind each picture.Every simulation is written against the same 3,531-line runtime and 17 kits for particular domains. Instead of a static diagram, each one exposes the quantity that the theorem or mechanism controls, so you can break an assumption and watch the conclusion fail.
Break compactness in Rudin 4.19 by opening the interval to (0, 1], and the largest \(\delta(p)\) that works collapses to zero near the missing endpoint: uniform continuity needed that endpoint. Drag Greenland to the equator and it sheds the area inflation Mercator gives it, \(\sec^2\varphi\), about 14×. Snap one tooth off the Antikythera mechanism’s b1 gear and its Metonic pointer starts to drift.
The same runtime draws the rest of the atlas, from Kepler orbits, whose velocities trace an exact circle, to a CT scan rebuilt from its projections and a city tipping into segregation.
One mathematical spine, many disguises
The same mathematics keeps turning up under other names, so the atlas has eight bridges: guided walks that follow one idea across fields.
The spectral bridge starts with self-adjoint matrices and ends with standing waves on a string. The entropy bridge goes from Boltzmann’s counting of microstates to Landauer’s bound: erasing one bit of information costs at least \(k_{\mathrm B}T\ln 2\) of heat. The fixed-point bridge connects Banach’s contraction theorem to PageRank.
Switch to the 450 landmark papers to see each primary source on a timeline from 350 BCE to 2020, beside the ideas it introduced.
Checking 6,621 canvases without looking
scripts/check.mjs and the 161 tests/verification-*.test.mjs suites (1,058 tests, 6,906 assertions).No one can click through 6,621 simulations after every change, so the checks run at two levels.
The first is mechanical. In headless Chromium, scripts/check.mjs mounts every item in a test page, clicks through every segmented control and toggle, and confirms each visible canvas actually paints something. It also catches broken TeX escapes and missing live readouts. The coverage view shows that sweep across all 85 collections.
The second is numerical, and it catches bugs a screenshot never would. In Node, 161 verification suites test the simulations’ solvers against independent calculations and published data. In the Fourier CT simulation (imaging-3.4), they caught a reconstruction discarding the imaginary parts at negative kₓ, and a detector sampled too coarsely, below the Nyquist rate. In population genetics (popgen-4.2), a suite separates the exact selection model, ln(1 + s) per generation, from the weak-selection shortcut s, which is only right when s is small.
At this size, the atlas can’t be proofread by eye. The build keeps its structure honest, and the verification suites keep its numbers honest. What neither can check is whether a simulation actually helps someone understand the idea. That still takes a reader.