Skip to content

Commit b6f4559

Browse files
committed
docs(perturbation-sim): VISUALIZE.md fig 2 — Morton-tile pyramid + 4-theorem mapping
Adds the second figure spec: the stacked 2-bit×2-bit (4×4) Morton/z-order pyramid for spatial perturbation, with each theorem mapped to its pyramid structure — Weyl/Δλ₂ at the coarse top, Davis-Kahan/sinθ_DK at the reorienting partition, Cheeger/Δφ on the inter-tile seam (the exchange rate), infight at the fine bottom, Kron on the 4→1 coarsen arrow. Two algebras labelled (Walsh/XOR sign axis, EWA-splat magnitude axis); the bipolar-phase = Walsh-Hadamard identity; and the geography-trap + screen-not-exact + SIMD-WHT honesty strip.
1 parent 1102ad4 commit b6f4559

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

crates/perturbation-sim/VISUALIZE.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,69 @@ Cheeger duality — not for decoration.
5353
> red/orange cascade). Desaturate the glow ~20 %; keep all the same labels,
5454
> symbols, and the honesty disclaimer. Higher drama, identical rigor.
5555
56+
## Figure 2 — Morton-tile pyramid: spatial perturbation & where the 4 theorems map
57+
58+
Explains the stacked 2-bit×2-bit (4×4) Morton/z-order pyramid and maps each
59+
theorem to the pyramid structure it lives in. Faithful to the OGAR two-algebra
60+
rule (sign = Walsh/XOR, magnitude = EWA splat) and the geography/screen caveats.
61+
62+
### Theorem → pyramid-structure mapping (the honest one-liner each)
63+
| Theorem (factor) | Lives at | Meaning |
64+
|---|---|---|
65+
| **Weyl** (`Δλ₂`) | **top** (coarse/global) | whole-graph field eigenvalue λ₂ (Raumgewinn) |
66+
| **Davis–Kahan** (`sinθ_DK`) | **mid** — the partition reorienting between levels | Fiedler-vector rotation / subspace stability |
67+
| **Cheeger** (`Δφ`) | **the inter-tile seam** | conductance of the cut = the coarse↔fine exchange rate `μ₂/2 ≤ h ≤ √(2μ₂)` |
68+
| **infight** | **bottom** (fine tiles) | local collapse (cascade trips) |
69+
| *(Kron reduction)* | **the 4→1 coarsen arrow** | Schur complement: 4 fine tiles → 1 coarse super-node (basin tiering) |
70+
71+
Two algebras (axes of the pyramid): **sign = Walsh/XOR** (`vsa_bind`, the *scale*
72+
axis — coarse coeff = field, fine coeff = infight); **magnitude = EWA Gaussian
73+
splat** (`vsa_bundle`, the anisotropic footprint, anti-aliases the Z-seam).
74+
`perturbation = Σ_L sign(addr,L)·magnitude(addr,L)` (bipolar-phase pyramid =
75+
Walsh–Hadamard on the address tree).
76+
77+
### Honesty (must appear on the figure)
78+
Tiles ride the **electrical** embedding (effective-resistance / spectral coords),
79+
**NOT geography**. Walsh basis = graph eigenbasis **exactly only on hypercubes**
80+
→ a fast O(n log n) **screen**; the exact eigensolve certifies the flagged tiles.
81+
SIMD WHT via `ndarray::simd::wht_f32`.
82+
83+
### Prompt — Morton-pyramid figure
84+
> Clean light/white scientific figure, 16:9, titled "Stacked Morton-Tile Pyramid
85+
> — Spatial Perturbation & the Four Theorems" (thin teal/navy linework,
86+
> perceptually-uniform inferno accents, monospace numbers).
87+
>
88+
> **Center-left — the pyramid:** a vertical stack of 4 receding plates, bottom
89+
> (fine) → top (coarse), each a 2-bit×2-bit (4×4) Morton/z-order quadtree level.
90+
> L0 (bottom): 16×16 cells with a faint Z-order (Morton) curve threading them, a
91+
> bright red perturbation spike in one central cell. L1, L2: coarser 8×8 then 4×4
92+
> grids; the perturbation rises as a widening anisotropic glow cone. L3 (top): a
93+
> single tile (whole-network summary). Upward "coarsen 4→1" arrows between levels.
94+
>
95+
> **Map the four theorems (callout labels + leader lines):** L3 top →
96+
> `Weyl — Δλ₂` "algebraic connectivity λ₂ (global field / Raumgewinn)"; mid
97+
> partition boundary → `Davis–Kahan — sinθ_DK` "Fiedler-vector rotation / subspace
98+
> stability"; inter-tile seam → `Cheeger — Δφ` "conductance of the cut; exchange
99+
> rate μ₂/2 ≤ h ≤ √(2μ₂)"; L0 bottom → `infight` "local collapse (cascade trips)";
100+
> on the 4→1 arrow → `Kron reduction (Schur complement)` "4 fine tiles → 1 coarse
101+
> super-node".
102+
>
103+
> **Right column — two algebras:** Sign side: a small bipolar ±1 (black/white)
104+
> Walsh pattern, "Walsh / XOR (vsa_bind) — SCALE axis: coarse coeff = field/
105+
> Raumgewinn, fine coeff = infight". Magnitude side: an anisotropic Gaussian
106+
> ellipse over a 4×4 tile straddling a Z-seam, "EWA Gaussian splat (vsa_bundle) —
107+
> anti-aliases the Morton seam; Σ-anisotropy = spread direction ≈ cut normal". A
108+
> one-line equation between them: perturbation = Σ_L sign(addr,L)·magnitude(addr,L)
109+
> ("bipolar-phase pyramid = Walsh–Hadamard on the address tree").
110+
>
111+
> **Bottom honesty strip (visible):** "Tiles ride the electrical embedding
112+
> (effective-resistance / spectral coords) — NOT geography. Walsh basis = graph
113+
> eigenbasis exactly only on hypercubes → a fast O(n log n) screen; the exact
114+
> eigensolve certifies the flagged tiles. SIMD WHT via ndarray::simd::wht_f32."
115+
>
116+
> Legible labels, no photorealism; the rising red→orange perturbation cone and
117+
> the four theorem-callouts are the dominant motifs.
118+
56119
## Future iterations
57120
- Map the glow to the actual `node_field` values from a real `simulate_outage`
58121
run (export `(lon, lat, |Δθ|)` and render to scale), not an artistic gradient.

0 commit comments

Comments
 (0)