Temporal Compression

Part of the cognition series. Builds on Consolidation Codec. Extended in Timekeeping Parameter. Technical detail: reading section. For agents and reviewers: CROSSWALK.md.

A codec engineer keeps talking about how his video chains break. A graph theorist keeps talking about how her journeys don’t compose. A topologist keeps talking about how his local sections won’t globalize. Same complaint, three accents. None of them cites the other two.

The finding: on temporal event graphs, time accumulates along paths like a commodity but selects across paths like a potential. The tropical semiring encodes both operations, but the naive tropical analogue of max-flow/min-cut treats them as dual. They’re not. That distinction is the paper inside this crosswalk.


Three fields study directed dependency graphs with time-ordered composition. Across 37 searches on Google Scholar, Semantic Scholar, and the open web, combining terms from all three fields in every pairwise combination, I found zero cross-citations between any two of them.

Video codecs (empirical): I-frames store complete states. P-frames store deltas. Error accumulates through the chain. I-frames reset it. Rate-distortion optimization balances bits against reconstruction quality. The dependency structure is a DAG, treated as an engineering artifact.

Temporal graph theory (theoretical): A journey is a time-respecting path where each edge departs after the previous one arrives. Reachability is not transitive. 13 temporal connectivity classes determine which operations are possible. Temporal spanners preserve journey distances up to a stretch factor. The dependency structure is a DAG, treated as a formal object.

Sheaf cohomology on directed networks (mathematical): The coboundary operator maps activations to prediction errors. Hodge decomposition separates removable error from irreducible error. Duality gaps arise when local consistency fails to globalize. The dependency structure is a DAG, treated as a cell complex.

Same object. Different operations. Different vocabulary. No shared literature.

Time is a semiring, decomposable under compression, stable under composition. That’s the claim. The rest of this post is the evidence.

The one genuine parallel

Chain fragility. In temporal graphs, a journey breaks when timing fails to compose. In codecs, a P-frame chain breaks when a reference is lost. In sheaves, local sections fail to extend globally when exactness fails. Three triggers, one structural pattern: sequential dependency over a time-ordered DAG where breaking any link severs the tail.

The operator dictionary

CodecTemporal graphSheafShared meaning
Prediction residualCoboundary δ⁰Per-edge error
Irreducible errorError no choice can remove
I-frameSnapshot graphClamped sub-complexCheckpoint that resets dependencies
P-frameEdge delta1-cochainDelta from reference
Chain breakJourney breakExactness failureSequential dependency severed
R-D optimizationBits vs. quality
Foremost / fastest / shortestPath optimality criteria
Connectivity class13 classes, strict inclusion
Hodge decompositionRemovable + irreducible split

Three theorems not in the literature

R-D bounds for journey observables

Given a bit budget, what is the minimum distortion in journey metrics? Codecs have the R-D framework. TVGs have the journey formalism. Timestamp coarsening achieves rates below lossless with controlled journey distortion, but the converse stalls: journeys couple across intervals, so a tight lower bound remains open. Worked through here.

Temporal sheaves

Define a cellular sheaf on a temporal event graph with tropical coefficients. Does the sheaf-theoretic max-flow/min-cut yield a meaningful temporal reachability result? Krishnan’s Theorem 5.12 works over semirings. Time is a semiring: min is “first to arrive,” + is “accumulate delay.” I checked. The naive tropicalization breaks: on a 4-vertex event graph, the cut capacity is 1 but the flow value is 2. The obstruction is structural — tropical flows are potentials, not conserved commodities, and no local edge-based cut notion can restore duality. A global potential-barrier cut does restore it, but that’s a different theorem.

Checkpoint spacing from H¹

On a prediction DAG, Seely’s coboundary produces edgewise residuals and Hodge decomposition splits them into removable and irreducible components. What checkpoint spacing keeps the irreducible component below a quality threshold? Surprise: checkpoints increase dim H¹, not decrease. The right quantity is residual norm under drift, not cohomological dimension. The closed form gives optimal spacing L* ≈ √(2λ/(σ²d)) in the nearly-unitary regime, recovering what codec engineers already do operationally. Derivation.

The Rosetta Stone (April 2026)

Working the 2n-3 conjecture computationally — 25,000+ random matrices, exhaustive search through k=15, four Lean proofs — turned up a deeper crosswalk than the nine-row table above. That table mapped theory to theory. The extended table maps practice to practice: 35 term-pairs between codec engineering and temporal graph theory, found by trying to prove the conjecture and discovering that every structural insight had a codec counterpart.

The twist permutation σ = m⁺∘m⁻ of the non-dismountable biclique is the temporal graph’s motion field. Fixed points of σ are valid compression hubs — vertices where temporal reference flow is stationary, the natural center of a GOP. Cycle structure determines how many hubs are needed. Derangements (no fixed points) identify the hard case: a full-motion scene where no static anchor exists.

The O(n log n) → O(n) gap is the cost of hub ignorance. The algorithm recurses without knowing which half contains the valid hub. Each uninformed split adds edges. Recursion depth is log n. Codec engineers face the same problem with adaptive GOP sizing — you don’t know where the scene changes until you’ve encoded past them.

The conjecture itself is simultaneously open in all three fields:

A proof in any one field transfers to the other two. The full crosswalk is the translation manual.

The bridge

The vocabulary barrier is the obstacle, not the mathematics. If it falls, codec engineers get a formal theory of chain fragility. Graph theorists get a decomposition of temporal error into removable and irreducible components. Topologists get a billion hours of video as empirical validation.

Three fields, one structure, zero cross-citations. I’m fixing that.


Written via the double loop.