Enough describing. This time we actually run it and watch dimension "come out"
Episodes 1–3 were talk. This time we get hands-on. Pick a simple "connection rule," and the computer counts steps breadth-first from the center, and the dimension of space gets measured on the spot and comes out. Dimension isn't fixed in advance; it appears as a measured value from how things are connected — we watch, with a real object, the thing Episode 2 called "geometry is output."
The way to measure dimension is exactly Episode 1's formula. Let \(N(r)\) be the number of points reachable within \(r\) steps from the center point. For a \(d\)-dimensional connection, this grows like a volume, \(N(r)\sim r^{d}\). So:
Plot \(N(r)\) on log–log axes, and the slope of the straight line is the measured dimension \(D\). It's just Episode 1's \(F=1/(Cn)^D\) read from the "quantity-increasing" side. The figure below actually counts this \(N(r)\) with breadth-first search (BFS) — the numbers are real measurements, no cheating.
Switch the rule and the measured \(D\) changes: a chain gives \(\approx1\), lattice 2D gives \(\approx2\), 3D gives \(\approx3\), and 4D approaches \(4\) (because the lattice is finite, the measurement comes out a bit low, and it converges to \(4\) as the lattice grows larger — this itself is the discrete → continuous shrinkage). Nowhere is it written "the dimension is 4" — we gave only the connection rule, counted \(N(r)\), and dimension came out as a measured value.
Pick the tree and \(N(r)\) grows exponentially, and it does not lie on a power law \(r^D\) (on log–log it bends upward). = It has no finite dimension ("infinite-dimensional"). Not every rule yields a nice dimension — this too is an important measurement.
The 4 came out satisfyingly, but we put the connection rule (the lattice) in by hand. Lattice 4D embeds "dimension 4" in the wiring from the start, and we just measured it back. True emergence needs the wiring itself to be "grown" from local rewrite rules that carry no point information. This connects directly to Episode 2's layer 3 (the update rule = the gap).
What this toy can show: (1) dimension is a measured quantity of connectivity, an output rather than a declaration. (2) The emergence of geometry is possible in principle. (3) If things are connected 4-dimensionally, measuring gives 4. (4) There are perfectly ordinary rules, like the tree, where dimension is not defined.
What this toy cannot show: that the universe is 4-dimensional (because we put the connection in by hand). Deriving 4 dimensions + Lorentz invariance from local rewrite rules (= Episode 2's layer-3 gap, unfilled). The figure's \(N(r)\) is measured on a finite-size lattice, so at large \(r\) it plateaus at the boundary (that part is excluded from the fit). Nothing in this document is "solved."
We got hands-on. Picking a connection rule, counting \(N(r)\) by BFS from the center, and reading the log–log slope, we measured the dimension — chain 1, lattice 2D→2, 3D→3, 4D→4, and the tree diverges (no dimension). We confirmed with a real object that dimension is not a declaration but a measured quantity of connectivity = an output. Tangible evidence for Episode 2's "geometry emerges."
But the lattice is half a cheat that embeds dimension in the wiring. The real thing grows the wiring itself from local rewrite rules and checks \(D\to4\) (which the Wolfram model / causal sets / CDT actually do). Guessing that rule = Episode 2's layer-3 gap, and we don't fill it — per the code, we plant no flag.
Print / PDF: Ctrl+P (⌘+P on Mac). On screen, picking a rule with the slider recounts N(r) on the spot, and the log–log slope = the measured dimension comes out. "See the answer" opens each solution.