Richard Hoekstra

Manuscript reading edition

Wave–particle structure of byte-level de Bruijn graphs

Approximate square-zero transport, structural boundary particles, and the CSE doctrine
Richard Hoekstra · April 2026

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:

The Hodge decomposition of the edge-weight vector fD ∈ ℝ|ED|:

f = fexact + fharmonic

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

Definition (Depth transport) The operator ND : Harm(GD) → Harm(GD+1) is defined by: for h ∈ Harm(GD), lift h to an edge field on GD+1 via suffix projection (each (D+2)-gram inherits the harmonic weight of its (D+1)-gram suffix), then project onto Harm(GD+1).
Empirical law (Approximate square-zero) For byte corpora of 5–10 KB, the composition ND+1 ∘ ND satisfies:

‖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.
CorpusN² ratio (D=1→2)dim Harm(1)dim Harm(2)
English dictionary (8 KB)0.036395992
English dictionary (10 KB)0.0314241175
Lean source (8 KB)0.0285501092
Empirical law (Structural nilpotency) A linear transport map N̂ : Harm(G1) → Harm(G2) trained to minimize reconstruction loss with zero nilpotent regularization achieves N² ratio 0.085 — essentially matching the hand-built suffix projection (0.079). The data’s geometry alone forces approximate nilpotency.
MethodReconstruction lossN² ratioRank
Hand-built (suffix projection)11.430.079322
Learned (λ = 0, no regularizer)0.00050.085350
Learned (λ = 0.1, regularized)0.300.176350

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

Definition (Particle fiber) At each vertex v of GD, the particle fiber Qv is the vector of outgoing edge weight deviations from the vertex mean. The wave–particle coupling at v is ‖projHarm(Qv)‖² / ‖Qv‖²: the fraction of local defect energy that projects onto global harmonic modes.
Result (Strong coupling at low depth) At D = 1, the average wave–particle coupling is 0.95 across all corpora. At D = 3, it decays to 0.76–0.82. The system transitions from wave-dominated to particle-dominated with increasing depth.
CorpusD=1D=2D=3
English0.9530.8580.816
Python0.9730.877—
Lean0.9640.8680.757

4. The particle boundary principle

Particle Boundary Principle In wave–particle de Bruijn systems, particle-like local defects (coupling < 0.5) concentrate at low in-degree vertices. Entropy of the outgoing distribution does not distinguish particle-like from wave-like vertices. Particle character is structural (peripheral position, inability to participate in cycles), not probabilistic.

At D = 1, fewer than 5% of vertices have coupling below 0.5. These are:

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

Definition (Nerode quotient) The CSE-compressed de Bruijn graph G̃D identifies vertices (D-grams) with identical outgoing weight distributions. This is the Nerode equivalence: contexts with the same future are merged. The quotient is the maximally shared backbone.
Result (Source-type-dependent residual character) CSE compression reveals the ontology of the residual:
  • 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.
CorpusD=2 rawD=2 CSEChangeVerdict
Python0.7840.434−45%Particle isolation
Lean0.8680.798−8%Mild decoupling
English0.8580.911+6%Wave re-globalization
The refined doctrine: CSE extracts the globally reusable law. The wave/particle character of the residual depends on source type. In code, the residual localizes. In natural language, it re-globalizes.

6. Cycle interaction spectrum

Definition (Cycle interaction matrix) Given a harmonic basis {γi} and edge field ω, the cycle interaction matrix is Jij = ∑e ω(e) γi(e) γj(e). Its eigenvalues measure which cycle combinations are active (large) vs screened (near-zero).

Eight source types measured at D = 1, 3 KB each:

Source typeSpectral gapEff. dim / HarmDefect energyCluster
Ruby276 (high)0.3075%Dominant
Zig176 (high)0.3279%Dominant
English169 (high)0.3522%Dominant
Lean (2)67 (mid)0.4066%Structured
Lean (1)43 (mid)0.4961%Structured
Python15 (low)0.4477%Diffuse
CSS15 (low)0.4848%Diffuse
HTML11 (low)0.5357%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:

ArithmeticSymbolic
BackboneSemisimple Hecke quotientCSE-compressed de Bruijn graph
DefectQ = ker(T2²)Harmonic subspace Harm(GD)
TransportN = T2|Q, N² = 0 exactlyND (suffix lift), N² ≈ 0.03
Cohomologyh = dim(ker N / im N), small integerhD = dim(ker ND) − dim(im ND-1)
ObservableHamming code [(3h−1)/2, ..., 3]3Cycle 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:

Coarse layer The backbone indicator 1same-h(e) is itself 82.6% harmonic. Its harmonic projection has cosine 0.938 with the raw harmonic trace field. One mode captures 88% of the harmonic direction.
Fine layer After subtracting all (source_h, target_h) block means, the residual field is still 79% harmonic overall, with same-h edges at 98.5%. This residual is orthogonal to the coarse backbone mode (cosine 0.0017) — a genuinely independent second layer.

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:

N² ratio ≈ c · L−0.42
Corpus sizeMeasuredPower-law fit
1 KB0.0880.087
2 KB0.0650.065
4 KB0.0490.049
8 KB0.0370.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.

Bridge conjecture (refined). The symbolic side is an approximate variation of Hodge structure with N² → 0 at rate L−0.42. The arithmetic side is an exact one (N² = 0 identically). The 2–4% residual at typical corpus sizes is the statistical cost of operating on finite data rather than the full algebraic object.

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)

TestResult
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 eigenclassH(b) is NOT a Hecke eigenclass — spreads across 4–7 eigenspaces. Backbone is combinatorial, not arithmetic.
Spectral sequenceCorrected: 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 matrixDecisively rejected. Spectra are algebraic: 4 integer eigenvalues with high multiplicity. Not Marchenko-Pastur.
Nerode nilpotentRatios 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 stabilityHarmonic 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):

  1. Backbone: maximally shared exact structure
  2. Defect sheaf: local non-shareable structure over the backbone
  3. Square-zero thickening: first-order extension, D² = 0
  4. Transport cohomology: HN(D) = ker N / im N
  5. Projective observable: geometry of the survivor space P(HN(D))

The fundamental theorem (proved):

Theorem (Observable depends only on h) For any two five-object stacks S1, S2 with the same transport cohomology dimension h, the projective observable is identical: S1.observable = S2.observable. The backbone dimension, defect dimension q, and specific transport operator all wash out.

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.

The unregularized learned map gave a normalized composition ratio of 0.085. Interpreting that value requires comparison with dimension- and singular-value-matched controls, since normalized products can be small even for unrelated high-rank maps.
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