# Reuse Time And LRU: Exact Counterexample

These are constructed sequences, not measured workloads. Both use three equal-size
identities and six requests: AACBAB and ABAABC. Their per-identity counts are A=3,
B=2, C=1. Each finite reuse interval 1, 2 and 3 occurs once. Empty, fully associative,
immediate-admission LRU with two slots misses 4/6 and 3/6 respectively.

Every first appearance is cold. JSON preserves the ordered intervals and the
zero-based distinct reuse distances. The interval sequences differ even though
their histograms match. No inference is made about losing information when the
full ordered interval sequence is retained.

Yuan, Ding, Smith, Denning and Zhang, A Relational Theory of Locality, ACM TACO
16(3), article33, 2019, DOI10.1145/3341109, sections2.2-2.3.2 already establishes
histogram non-equivalence. Our smaller constructed witness illustrates that
established result, not a new theorem. Ding and Zhong, Reuse Distance Analysis,
UR-CS-TR-741, 2001, section2.1 supplies the zero-based LRU threshold.
Sources: https://denninginstitute.com/pjd/PUBS/TACO-2019.pdf
https://www.cs.rochester.edu/u/cding/Documents/Publications/TR741.pdf

Reproduce with standard Node.js, no external package:
node --input-type=module -e "import('./reuse-time.mjs').then(m=>console.log(JSON.stringify(m.evidence(),null,2)))"
node --test reuse-time.test.mjs

Keep reuse-time.mjs and reuse-time.test.mjs beside each other. The evaluator is
bounded to 128 requests and uses quadratic work; it is not a production profiler.
Tests compare every ternary trace of length0 through7 (3280 traces) at three
capacities against a separate LRU replay. No randomness or uncertainty estimate.
The public module and tests are CC0-1.0. No paper text or figures are redistributed.
