Richard Hoekstra

Computation data

A-Bruijn wave–particle comparison

Five equivalence relations on de Bruijn graphs, compared across English and DNA

The A-Bruijn framework

An A-Bruijn graph (Pevzner) generalizes the de Bruijn construction: build the standard path graph of k-mers, then glue vertices according to an arbitrary equivalence relation A. Different choices of A give different backbone/defect splits.

AEquivalenceNatural for
A1Identity (standard de Bruijn)Baseline
A2Nerode (same continuation distribution)Language, code
A3Reverse complement (ACGT ↔ TGCA)DNA
A4Frequency class (log₂ count bins)Any (coarse)
A5Modular hash (mod 7)Random baseline

English dictionary (5 KB, D = 2)

A|V||E|HarmCouplingGap %
A1: Identity39711127160.85820.3
A2: Nerode1979037070.91149.5
A3: Reverse complement32311127900.89318.4
A4: Frequency class859520.93416.5
A5: Modular hash749430.92935.0

Nerode compression (A2) halves the vertex count (397 → 197) and more than doubles the spectral gap (20% → 50%). After compressing shared continuations, the cycle interaction concentrates onto fewer, stronger modes.

Synthetic DNA (5 KB, D = 2)

A|V||E|HarmCouplingGap %
A1: Identity1664490.8650.5
A2: Nerode1664490.8650.5
A3: Reverse complement1058490.9264.2
A5: Modular hash523190.8994.7

Nerode does nothing on DNA (A2 = A1): every dinucleotide already has a unique continuation distribution in a 4-letter alphabet. Reverse complement (A3) is the natural compression for DNA, collapsing 16 dinucleotides to 10 and giving the highest coupling (0.926).

N² ratio comparison

DomainN² ratio (D=2→3)
English (A1: raw)0.039
DNA (A1: raw)0.082

DNA has higher N² (less nilpotent) because the 4-letter alphabet creates near-complete graphs at low depth. Both are well below 1 — approximate nilpotency holds across domains.

Key findings

1. Different domains have different natural equivalence relations. Nerode (CSE) is natural for language: it compresses 2× and doubles the spectral gap. Reverse complement is natural for DNA: it respects the Watson-Crick symmetry. The code functor (h-class) is natural for arithmetic: it determines the Hamming code.
2. N² ≈ 0 is robust across all reasonable A’s. The approximate nilpotency of depth-transport is not an artifact of the specific equivalence relation. It holds on raw de Bruijn, Nerode quotient, reverse complement, and frequency class graphs.
3. The spectral gap is A-dependent. The choice of A determines which cycles survive compression, hence which modes dominate the interaction. Nerode on English concentrates the gap from 20% to 50%. Reverse complement on DNA raises it from 0.5% to 4.2%. The gap is the fingerprint of the backbone/defect split.

The doctrine, restated

The five-object stack (backbone, defect sheaf, square-zero thickening, transport cohomology, projective observable) is a functor from equivalence relations to defect theories. Each A gives a different backbone, a different defect, a different harmonic fraction. The universal fact is N² ≈ 0 on the depth-transport. The A-dependent fact is the spectral fingerprint. The natural A for each domain (Nerode for language, reverse complement for DNA, code functor for arithmetic) is the one that maximally compresses the backbone and isolates the genuine defect structure.

Connection to genome assembly

Contracting maximal nonbranching paths changes the graph representation while retaining junctions. In the synthetic repeat experiment on this page the resulting graph can be compared by degree counts and energy fractions. Assigning a cycle to a specific repeat or variant in a real sample would require independent sequence evidence.

For a finite directed graph with edges, an Euler circuit exists when all non-isolated vertices are connected in the underlying undirected graph and each has equal in- and out-degree. An open Euler trail allows exactly one start and one end with opposite degree imbalances of one. A directed cycle is already an Euler circuit and supports a nonzero harmonic circulation. The harmonic fraction therefore measures the chosen edge field, rather than certifying assembly or uniqueness.

Reproducibility

Computed via research/tlc/abruijn_debruijn.py and research/tlc/genome_debruijn.py. Synthetic DNA generated with controlled repeat structure. English data from /usr/share/dict/words. All scripts accept corpus path and parameters as arguments.
Cite this page

Richard Hoekstra. A-Bruijn wave–particle comparison. https://richardhoekstra.nl/data/abruijn-comparison.html