Module 21 — Residue Codes, Vector Navigation, and Error Correction

guitar, acoustic blues · 4:03

Listen on 93

Lyrics

[Verse 1]
Picture three clocks tickin', different hands, different lengths,
None of 'em agree, that's exactly where the strength is
Six-inch stride, then a nine, then a longer twenty-three,
Each module's a ruler with its own periodicity
Your position ain't one number — it's a tuple of remainders,
A residue code stitched together by hexagonal invaders
Fiete, Burak, Brookings did the math and made it stick:
Incommensurate periods so the pattern don't repeat quick
Like a hash table spreadin' keys where collisions rarely land,
Coprime wavelengths turn a few cheap clocks to miles of sand
Stack the moduli together, watch the coverage detonate —
Millimeter-sharp resolution at a kilometer scale

[Chorus]
Mod by mod, we triangulate the truth
Three small clocks unlock a giant room, that's proof
Residue code, remainder stacked on remainder
Read the phase, decode the grid, become the cartographer

[Verse 2]
Bush and crew in twenty-fifteen flipped the frame,
Said forget the map, think displacement, that's the name
Goal position minus where your body's standing now
Equals a vector — pure subtraction telling you the how
Grid cells ain't just measuring the places you have been,
They're arithmetic in motion, running just beneath your skin
Linear coordinates, addition and negation,
Straight-line shot to the reward, skip the hesitation
No retracing every alley, every detour, every bend,
Just point that vector arrow, glide directly to the end

[Verse 3]
Twenty-eighteen, DeepMind trained a network blind,
Fed it paths and speed, watched a hexagon design
Grid-like units blooming in the hidden layer's core —
Nobody coded hexagons, the training found the floor
Banino's little agent learned to shortcut through the maze,
Proof the pattern's just efficient in a thousand different ways
Convergent evolution, silicon and neuron both agree:
Compress the space, protect the metric — that's the recipe

[Chorus]
Mod by mod, we triangulate the truth
Three small clocks unlock a giant room, that's proof
Residue code, remainder stacked on remainder
Read the phase, decode the grid, become the cartographer

[Verse 4]
But drift is real — the path integrator leaks,
Uncertainty compounds the longer that your travel speaks
Hardcastle showed the landmarks yank the estimate back true,
A Kalman-style correction, blending old odometry with new
Weight the prior by your confidence, the cue by how it's clear,
Fuse the inner-ear conviction with what your eyeball engineers
Reset the phase, collapse the drift, re-anchor to the wall —
That's how the palimpsest of pathways never fully falls
(A palimpsest — old writing scraped and written over, fresh and true,
Landmarks scrape the drifted code and paint position new)

[Bridge]
Three moduli, one true location hidden in the sum
Vector math for navigation, subtract to overcome
Landmarks whisper corrections when the inner compass bends
This the architecture of how a wandering mind comprehends

← Module 20 — Continuous Attractor Networks and Oscillatory Interference | Module 22 — Predictive Maps, Eigenvectors, and Graphs →