"""THE CLOCK'S SHADOW ON THE DESCRIPTOR (2026-07-23). Found while running THE COLLISION LADDER's own named stretch test (collision_ladder_birthday_test.py): (L=6, M=72) collided at n=382, orders of magnitude before its ~3.17M birthday-scale prediction. Hand verification showed the colliding windows were NOT the "generic hash collision" the birthday model assumes, and NOT a fully-constant plateau either -- they straddle a plateau's leading edge: window(n=94) = Q[89..94] = (46, 48,48,48,48,48) window(n=382) = Q[377..382] = (190, 192,192,192,192,192) 48 = C_5 and 192 = C_7 in THE UNLIT MATCH's own notation (C_k = 3*2^(k-1)) -- two clock generations apart, exactly the doubling the clock already proves (C_7 = 4*C_5). And the PRECEDING values shift by the identical additive amount: 190-46 = 192-48 = 144 = 3*C_5. So the whole local window, not just the plateau's core value, is shifted by a constant 3*C_k between generation k and k+2 -- which makes any descriptor modulus M dividing 3*C_k collide on contact, independent of state-space size or any "birthday" statistic. This instrument checks the claim generally rather than on one instance: for several k, it locates the C_k plateau and its immediate predecessor, checks whether the SAME shift (additive, by 3*C_k) holds two generations later, and separately verifies the divisibility prediction (M | 3*C_k <=> instant collision) across a spread of M. """ def build_q(n_max: int): Q = [0] * (n_max + 1) Q[1] = 1 if n_max >= 2: Q[2] = 1 for n in range(3, n_max + 1): a = n - Q[n - 1] b = n - Q[n - 2] assert 1 <= a < n and 1 <= b < n, "Q UNDEFINED at n=%d" % n Q[n] = Q[a] + Q[b] return Q def find_run(Q, value, lo, hi, min_len=1): """First run of >=min_len consecutive Q==value within [lo,hi].""" i = lo while i <= hi: if Q[i] == value: j = i while j + 1 <= hi and Q[j + 1] == value: j += 1 if j - i + 1 >= min_len: return (i, j) i = j + 1 else: i += 1 return None def probe(Q, n_max, L, M): seen = {} for n in range(L, n_max): state = n % M for i in range(n - L + 1, n + 1): state = state * M + (Q[i] % M) nxt = Q[n + 1] prior = seen.get(state) if prior is not None: pn, pnxt = prior if pnxt != nxt: return ("COLLISION", n, pn, pnxt, nxt) else: seen[state] = (n, nxt) return ("SURVIVED", n_max, None, None, None) def main(): N = 20000 Q = build_q(N) print("PART 1 -- does the additive-shift pattern generalize across k?\n") print(" k | C_k | run(k) | pre(k) | k+2 | C_(k+2) | run(k+2)" " | pre(k+2) | plateau shift | pre shift | shift==3*C_k?") for k in range(3, 8): Ck = 3 * 2 ** (k - 1) Ck2 = 3 * 2 ** (k + 1) run_k = find_run(Q, Ck, 1, N - 1, min_len=2) run_k2 = find_run(Q, Ck2, 1, N - 1, min_len=2) if run_k is None or run_k2 is None: print(" %d | %d | (not found in range; skip)" % (k, Ck)) continue pre_k = Q[run_k[0] - 1] pre_k2 = Q[run_k2[0] - 1] plateau_shift = Ck2 - Ck pre_shift = pre_k2 - pre_k match = (plateau_shift == 3 * Ck) and (pre_shift == 3 * Ck) print(" %d | %3d | n=%-9s | %4d | %d | %5d | n=%-10s | %6d |" " %11d | %9d | %s" % (k, Ck, run_k, pre_k, k + 2, Ck2, run_k2, pre_k2, plateau_shift, pre_shift, match)) print("\nPART 2 -- does M | 3*C_k predict an instant collision at (L=6)?\n") L = 6 n_max = 2000 Q2 = build_q(n_max) unlucky = [9, 18, 36, 72, 144] # all divide 3*C_5=144 control = [54, 85, 91, 100] # none divide 3*C_5=144 for M in unlucky + control: v, n, pn, pnxt, nxt = probe(Q2, n_max - 1, L, M) tag = "UNLUCKY (divides 144)" if M in unlucky else "control" print(" M=%-4d [%s] verdict=%-10s n=%s" % (M, tag, v, n)) print("\nVerdict: every 'unlucky' M collides at the identical witness") print("(n=382 vs the k=5/k=7 clock pair); every control M in this range") print("does not. The mechanism is the already-PROVED quoting-clock") print("doubling law reaching sideways into an unrelated descriptor family") print("-- not chance, not a birthday-scale event, and not evidence about") print("Q's predictive index either way. AUDIT TRAP for the whole") print("descriptor-collision methodology: choose M coprime to 6 (avoiding") print("factors the clock's own 3*2^(k-1) constants supply) before citing") print("a small-M collision as evidence of anything about predictive index.") if __name__ == "__main__": main()