Manuscript reading edition
Wave–particle structure of byte-level de Bruijn graphs
Abstract
We build de Bruijn graphs from finite byte corpora and measure harmonic projections at successive context depths. The reported normalized transport-product ratios were 0.03–0.08 on English, Python and Lean samples, with 0.085 for one learned transport without an explicit nilpotence penalty. These positive numbers describe attenuation. Their size alone does not establish an algebraic square-zero law.
1. The de Bruijn tower
Fix a byte corpus X of length L. At depth D, the de Bruijn graph GD has:
- Vertices VD = observed D-grams in X
- Edges ED = observed (D+1)-grams, with weight = occurrence count
- Edge (u, v) exists iff the (D+1)-gram concatenates u[0:D] with v = u[1:D+1]
The Hodge decomposition of the edge-weight vector fD ∈ ℝ|ED|:
where fexact ∈ im(BT) is the gradient of a vertex potential, and fharmonic ∈ ker(B) is the divergence-free cycle current. B is the oriented incidence matrix of GD.
2. Depth-transport and the N² ≈ 0 law
‖ND+1 ND‖F / (‖ND‖F · ‖ND+1‖F) ≈ 0.03–0.04
for D = 1 → 2, across English dictionary, Python source, and Lean source. Approximately 96% of the composition cancels.
| Corpus | N² ratio (D=1→2) | dim Harm(1) | dim Harm(2) |
|---|---|---|---|
| English dictionary (8 KB) | 0.036 | 395 | 992 |
| English dictionary (10 KB) | 0.031 | 424 | 1175 |
| Lean source (8 KB) | 0.028 | 550 | 1092 |
| Method | Reconstruction loss | N² ratio | Rank |
|---|---|---|---|
| Hand-built (suffix projection) | 11.43 | 0.079 | 322 |
| Learned (λ = 0, no regularizer) | 0.0005 | 0.085 | 350 |
| Learned (λ = 0.1, regularized) | 0.30 | 0.176 | 350 |
The regularizer is counterproductive: it increases both the N² ratio and the reconstruction loss. The square-zero property is not imposed; it is discovered.
3. Wave–particle coupling
| Corpus | D=1 | D=2 | D=3 |
|---|---|---|---|
| English | 0.953 | 0.858 | 0.816 |
| Python | 0.973 | 0.877 | — |
| Lean | 0.964 | 0.868 | 0.757 |
4. The particle boundary principle
At D = 1, fewer than 5% of vertices have coupling below 0.5. These are:
- UTF-8 lead bytes (‘\xe2’ at coupling 0.34): their continuations are deterministic (must be continuation bytes), isolating them from the cycle structure.
- Rare punctuation and structural markers: comment markers (‘/-’), word-initial bigrams (‘AS’, ‘AI’), keyword boundaries.
At D = 3, 60–80% of vertices become particle-like. The harmonic subspace collapses (often to dimension 1), and most local deviations can no longer project onto global cycle modes. This is asymptotic freedom in cycle space: at high depth, almost everything is exact (predictable from context).
5. The CSE doctrine
- Python source: coupling drops from 0.784 to 0.434 (−45%). The virtual sector becomes genuinely particle-like. Structured code has many contexts that predict identically; removing them isolates non-shareable branching.
- Lean source: coupling drops mildly from 0.868 to 0.798 (−8%).
- English dictionary: coupling increases from 0.858 to 0.911 (+6%). Natural language is homogeneous enough that CSE concentrates the graph, amplifying rather than suppressing wave–particle interaction.
| Corpus | D=2 raw | D=2 CSE | Change | Verdict |
|---|---|---|---|---|
| Python | 0.784 | 0.434 | −45% | Particle isolation |
| Lean | 0.868 | 0.798 | −8% | Mild decoupling |
| English | 0.858 | 0.911 | +6% | Wave re-globalization |
6. Cycle interaction spectrum
Eight source types measured at D = 1, 3 KB each:
| Source type | Spectral gap | Eff. dim / Harm | Defect energy | Cluster |
|---|---|---|---|---|
| Ruby | 276 (high) | 0.30 | 75% | Dominant |
| Zig | 176 (high) | 0.32 | 79% | Dominant |
| English | 169 (high) | 0.35 | 22% | Dominant |
| Lean (2) | 67 (mid) | 0.40 | 66% | Structured |
| Lean (1) | 43 (mid) | 0.49 | 61% | Structured |
| Python | 15 (low) | 0.44 | 77% | Diffuse |
| CSS | 15 (low) | 0.48 | 48% | Diffuse |
| HTML | 11 (low) | 0.53 | 57% | Diffuse |
Three clusters: dominant (one leading cycle, high gap), structured (moderate concentration), diffuse (many competing modes). The spectral gap is the symbolic analogue of the Hecke gate signature on the arithmetic side.
7. Connection to arithmetic defect theory
On the arithmetic side, the singular 3-adic Hecke algebra at a split level N has a defect module Q = ker(T2² mod 3) with an exact square-zero operator N = T2|Q, N² = 0. The cohomology HN(Q) = ker N / im N has dimension h, which determines the effective Hamming code. See cohomological classification and Hodge-RG data.
The parallel:
| Arithmetic | Symbolic | |
|---|---|---|
| Backbone | Semisimple Hecke quotient | CSE-compressed de Bruijn graph |
| Defect | Q = ker(T2²) | Harmonic subspace Harm(GD) |
| Transport | N = T2|Q, N² = 0 exactly | ND (suffix lift), N² ≈ 0.03 |
| Cohomology | h = dim(ker N / im N), small integer | hD = dim(ker ND) − dim(im ND-1) |
| Observable | Hamming code [(3h−1)/2, ..., 3]3 | Cycle interaction spectrum of J |
The two-layer bridge
On the full 75-node arithmetic RG graph (1259 edges, b1 = 1189), the Hodge decomposition of the Hecke trace-distance field has a clean two-layer structure:
This is the arithmetic realization of "shared exact first, virtual residue second." The backbone determines the leading harmonic mode; a finer residual survives after normalization.
The arithmetic side is exact and rigid. The symbolic side is approximate and source-sensitive. The bridge conjecture:
N² scaling law
The N² ratio decays as a power law in corpus size L:
| Corpus size | Measured | Power-law fit |
|---|---|---|
| 1 KB | 0.088 | 0.087 |
| 2 KB | 0.065 | 0.065 |
| 4 KB | 0.049 | 0.049 |
| 8 KB | 0.037 | 0.037 |
Extrapolations: N² ≈ 0.013 at 100 KB, ≈ 0.005 at 1 MB, ≈ 0.002 at 10 MB. The exponent −0.42 is close to the central limit theorem rate −0.5. The approximate nilpotency is a finite-sample effect that decays toward zero.
From graph measurements to prediction
The predictor experiment combined de Bruijn routing and learned wave mixing. Its original 2.08-bpb enwik8 comparison was withdrawn when the evaluation state was found to contain the target byte. The graph measurements above do not depend on that predictive score.
Five structural tests (completed)
| Test | Result |
|---|---|
| Fiber balance (Chebotarev) | q=2 near-balanced (~1:1), q≥3 frozen-dominated (2:1 at N≤3000). Perfect balance at N≤2000 was coincidence. |
| Hecke eigenclass | H(b) is NOT a Hecke eigenclass — spreads across 4–7 eigenspaces. Backbone is combinatorial, not arithmetic. |
| Spectral sequence | Corrected: d₁ = 0, E₂ = E₁ = 569. The spectral sequence degenerates at E₁. Backbone harmonics on each h-class are automatically divergence-free on the full graph. |
| Random matrix | Decisively rejected. Spectra are algebraic: 4 integer eigenvalues with high multiplicity. Not Marchenko-Pastur. |
| Nerode nilpotent | Ratios of 0.02–0.04 were reported on the compressed graphs, including 0.04 at 5 KB and 0.02 at 29 KB. These finite-size observations do not identify a topological obstruction. |
| Schur stability | Harmonic fraction stable at 83%/77% across censuses N≤2000–4000. Schur system stays 3–6 dimensional. |
8. Formalization
The five-object stack is formalized in Proof/Foundation.lean (Lean 4, zero sorry’s):
- Backbone: maximally shared exact structure
- Defect sheaf: local non-shareable structure over the backbone
- Square-zero thickening: first-order extension, D² = 0
- Transport cohomology: HN(D) = ker N / im N
- Projective observable: geometry of the survivor space P(HN(D))
The fundamental theorem (proved):
Supporting Lean files: SharedVirtualSplit.lean (254 lines), PostCodeClassifier.lean (321 lines), Degeneration.lean (degeneration of the code spectral sequence). Total: 253 Lean files, 0 True := trivial, 21 honest sorry’s (open conjectures in peripheral files).
9. Reproducibility
All computations use research/tlc/depth_transport_hodge.py (586 lines, Python 3 + NumPy + SciPy). CSE compression uses research/tlc/cse_wave_particle.py. Particle fiber analysis uses research/tlc/particle_fiber_analysis.py. Nilpotent layer experiment uses research/tlc/nilpotent_layer.py (PyTorch). Multi-source atlas uses research/tlc/wave_particle_atlas.py. All scripts accept a corpus path and byte limit as arguments.
Cite this page
Richard Hoekstra. Wave–particle structure of byte-level de Bruijn graphs (HTML manuscript edition). https://richardhoekstra.nl/papers/wave-particle-debruijn-paper.html