perrabyte commited on
Commit
f46efae
Β·
verified Β·
1 Parent(s): b10ead8

Upload 8 files

Browse files
Redshift time hack/How_quantum_observation_reshapes_the_past.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e673fdef1b351a01b87434b1fcfbc432d7672c4a802e922e752842b58269daf
3
+ size 9544345
Redshift time hack/Retro-Observational_Window_Theory_Graphic.png ADDED

Git LFS Details

  • SHA256: b59cd5470f0e331c6c7d90403db847392b0542f1e663a784a78b817f46320cb0
  • Pointer size: 132 Bytes
  • Size of remote file: 5.21 MB
Redshift time hack/redshift-monodromy-webcam-detector.html ADDED
@@ -0,0 +1,403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Redshift Channel Monodromy Checker β€” Webcam as the Observer</title>
6
+ <style>
7
+ :root{--bg:#0b0e14;--panel:#131824;--ink:#dce2ee;--dim:#8b94a7;--acc:#4fd1a5;--warn:#f6ad55;--bad:#fc8181;}
8
+ *{box-sizing:border-box;margin:0;}
9
+ body{background:var(--bg);color:var(--ink);font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;padding:14px;}
10
+ h1{font-size:16px;color:var(--acc);margin-bottom:2px;}
11
+ .sub{color:var(--dim);font-size:11px;margin-bottom:10px;max-width:1200px;}
12
+ .grid{display:grid;grid-template-columns:1fr 1fr 300px;gap:10px;align-items:start;}
13
+ .panel{background:var(--panel);border:1px solid #232b3d;border-radius:8px;padding:10px;}
14
+ .panel h2{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);margin-bottom:6px;}
15
+ canvas{display:block;width:100%;border-radius:6px;background:#000;}
16
+ video{display:none;}
17
+ .stat{display:flex;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px dotted #222b40;font-size:11px;}
18
+ .stat .k{color:var(--dim);} .stat .v{color:var(--ink);text-align:right;}
19
+ .v.acc{color:var(--acc);} .v.warn{color:var(--warn);} .v.bad{color:var(--bad);}
20
+ button{background:#1c2740;color:var(--ink);border:1px solid #35446b;padding:5px 10px;border-radius:5px;font:inherit;cursor:pointer;margin:2px 4px 2px 0;font-size:11px;}
21
+ button:hover{background:#25345a;}
22
+ button.primary{border-color:var(--acc);color:var(--acc);}
23
+ button.danger{border-color:var(--bad);color:var(--bad);}
24
+ label{font-size:10px;color:var(--dim);display:block;margin-top:5px;}
25
+ input[type=range]{width:100%;margin:2px 0 6px;}
26
+ #log{height:110px;overflow-y:auto;font-size:10px;}
27
+ #log div{padding:2px 0;border-bottom:1px dotted #1c2334;}
28
+ .ok{color:var(--acc);} .warn{color:var(--warn);} .bad{color:var(--bad);} .dim{color:var(--dim);}
29
+ .big{font-size:12px;color:var(--acc);word-break:break-all;}
30
+ .meter{height:12px;background:#111;border:1px solid #2a3550;border-radius:4px;overflow:hidden;margin:3px 0 6px;}
31
+ .meter-fill{height:100%;background:linear-gradient(90deg,#2dd4bf,#a855f7,#fc8181);transition:width .08s linear;}
32
+ .verdict{padding:6px;border-radius:5px;font-size:12px;margin-top:4px;border:1px solid #2a3550;}
33
+ .verdict.flat{border-color:var(--acc);color:var(--acc);}
34
+ .verdict.sealed{border-color:var(--warn);color:var(--warn);}
35
+ .verdict.attack{border-color:var(--bad);color:var(--bad);}
36
+ .footer{margin-top:10px;color:var(--dim);font-size:10px;max-width:1200px;}
37
+ </style>
38
+ </head>
39
+ <body>
40
+ <h1>Redshift Channel Monodromy Checker β€” Webcam as the Observer</h1>
41
+ <div class="sub">A 2D Gaussian field is the "past," delivered through the redshift channel (aperture 1+z). Your webcam luminance sets the measurement frame (basis angle Ξ±, phase Ο†). Each frame the state is transported around a loop in frame space (Ξ±: 0β†’Ο€/2β†’Ο€β†’3Ο€/2β†’0) and the holonomy β€–M βˆ’ Iβ€– is checked: non-trivial transport = flat, patchable past (window open); transport β†’ identity = the decoherence ledger has sealed the page. Toggle the redshift attack to splice the reported sheet and watch the width detector flag it.</div>
42
+ <div class="grid">
43
+ <div>
44
+ <div class="panel">
45
+ <h2>Channel (redshifted past, 2D Gaussian)</h2>
46
+ <canvas id="stage" width="320" height="320"></canvas>
47
+ <label>redshift z (aperture stretch 1+z): <span id="zVal">0.00</span></label>
48
+ <input type="range" id="zParam" min="0" max="3" step="0.05" value="0">
49
+ <label>decoherence rate Ξ“ (ledger writing): <span id="gVal">1.0</span></label>
50
+ <input type="range" id="gamma" min="0" max="5" step="0.1" value="1">
51
+ <label>
52
+ <input type="checkbox" id="attack"> redshift attack (adversarial sheet splice)
53
+ </label>
54
+ </div>
55
+ <div class="panel" style="margin-top:8px">
56
+ <h2>Observer (webcam β†’ measurement frame)</h2>
57
+ <canvas id="camView" width="160" height="120"></canvas>
58
+ <video id="camVideo" style="display:none;" muted playsinline></video>
59
+ <div id="camStatus" class="dim">camera idle</div>
60
+ <div style="margin-top:5px">
61
+ <button id="startBtn" class="primary">Open camera</button>
62
+ <button id="stopBtn">Stop</button>
63
+ </div>
64
+ <label><input type="radio" name="emode" value="cam" checked> webcam (real observer)</label>
65
+ <label><input type="radio" name="emode" value="sim"> synthetic observer (drifting noise)</label>
66
+ </div>
67
+ </div>
68
+ <div>
69
+ <div class="panel">
70
+ <h2>Monodromy verdict</h2>
71
+ <div class="verdict flat" id="verdict">window OPEN β€” transport non-trivial, past patchable</div>
72
+ <div class="stat" style="margin-top:6px"><span class="k">holonomy β€–M βˆ’ Iβ€–</span><span class="v acc" id="hol">β€”</span></div>
73
+ <div class="stat"><span class="k">decoherence D(t)</span><span class="v" id="dVal">0.000</span></div>
74
+ <div class="meter"><div class="meter-fill" id="dFill" style="width:0%"></div></div>
75
+ <div class="stat"><span class="k">patchability (1 βˆ’ D)</span><span class="v acc" id="patch">1.000</span></div>
76
+ <div class="stat"><span class="k">ledger entropy written</span><span class="v warn" id="ent">0.00</span></div>
77
+ <div class="stat"><span class="k">frames / loops closed</span><span class="v" id="frames">0 / 0</span></div>
78
+ </div>
79
+ <div class="panel" style="margin-top:8px">
80
+ <h2>Width detector (Οƒ vs aperture floor)</h2>
81
+ <canvas id="widthCv" width="320" height="120"></canvas>
82
+ <div class="stat"><span class="k">measured Οƒ (channel)</span><span class="v" id="sigM">β€”</span></div>
83
+ <div class="stat"><span class="k">aperture floor Οƒβ‚€(1+z)</span><span class="v" id="sigF">β€”</span></div>
84
+ <div class="stat"><span class="k">width verdict</span><span class="v" id="sigV">β€”</span></div>
85
+ </div>
86
+ </div>
87
+ <div>
88
+ <div class="panel">
89
+ <h2>Event log</h2>
90
+ <div id="log"></div>
91
+ </div>
92
+ <div class="panel" style="margin-top:8px">
93
+ <h2>Reading the sim</h2>
94
+ <div class="dim" style="font-size:10px">
95
+ Ξ“ low β†’ ledger writes slowly β†’ webcam frame choices keep re-selecting the sheet (holonomy β‰  0): the observer's code genuinely participates in which past is retrieved.<br><br>
96
+ Ξ“ high β†’ the Gaussian entangles with the "environment" (injected leakage noise), branches stop being interconvertible, transport collapses toward identity: the page is dry, the frame choice selects nothing.<br><br>
97
+ Attack mode replaces the reported channel with a re-projected splice β€” values plausible, width too clean for 1+z. The detector flags it by the aperture law, never by the values.
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ <div class="footer">Honest limits: decoherence is modeled as injected entangling noise on the state vector (a classical stand-in for the real functional); the "holonomy" is the measured transport of the reduced state around the frame loop, not a physical U(1) phase; webcam only reads luminance β€” it is the frame chooser, not a quantum detector. Camera needs permission; synthetic mode is provided.</div>
103
+
104
+ <script>
105
+ const $=id=>document.getElementById(id);
106
+ const log=(m,c="")=>{const d=document.createElement("div");if(c)d.className=c;d.textContent=m;const L=$("log");L.prepend(d);if(L.children.length>150)L.lastChild.remove();};
107
+
108
+ // ---------- channel state ----------
109
+ const N=64;
110
+ let psi=new Float64Array(N*N);
111
+ let env=new Float64Array(N*N);
112
+ let G=new Float64Array(N*N);
113
+ function gauss2(cx,cy,sx,sy,amp){
114
+ for(let y=0;y<N;y++)for(let x=0;x<N;x++){
115
+ const dx=(x-cx)/sx, dy=(y-cy)/sy;
116
+ G[y*N+x]+=amp*Math.exp(-(dx*dx+dy*dy)/2);
117
+ }
118
+ }
119
+ gauss2(N*0.38,N*0.5,6,6,1.0);
120
+ gauss2(N*0.62,N*0.5,6,6,0.8);
121
+
122
+ function zScale(){return 1+parseFloat($("zParam").value);}
123
+ function apertureFloor(){return SIG0*zScale();}
124
+
125
+ // ---------- observer (webcam as measurement frame) ----------
126
+ let mode="cam", video=document.getElementById("camVideo"), activeStream=null, running=true, frames=0, loops=0;
127
+ let rngSeed=(Math.random()*2**32)>>>0;
128
+ function mulberry32(a){return function(){a|=0;a=a+0x6D2B79F5|0;let t=Math.imul(a^a>>>15,1|a);t=t+Math.imul(t^t>>>7,61|t)^t;return((t^t>>>14)>>>0)/4294967296;};}
129
+ let rng=mulberry32(rngSeed);
130
+
131
+ async function shaShort(buf){
132
+ try{
133
+ const h=await crypto.subtle.digest("SHA-256",buf);
134
+ return Array.from(new Uint8Array(h)).slice(0,6).map(b=>b.toString(16).padStart(2,"0")).join("");
135
+ }catch(e){return "f0"+(frames%97).toString(16);}
136
+ }
137
+
138
+ function setVideoStatus(msg, ok){
139
+ const el=$("camStatus");
140
+ el.textContent=msg;
141
+ el.className=ok?"ok":"bad";
142
+ }
143
+
144
+ function initWebcam(){
145
+ stopCurrentVideo();
146
+ document.querySelector('input[value=cam]').checked=true;
147
+ document.querySelector('input[value=sim]').checked=false;
148
+ if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia){
149
+ setVideoStatus("getUserMedia unavailable β€” synthetic observer", false);
150
+ mode="sim";
151
+ document.querySelector('input[value=cam]').checked=false;
152
+ document.querySelector('input[value=sim]').checked=true;
153
+ return;
154
+ }
155
+ navigator.mediaDevices.getUserMedia({video:{width:{ideal:640},height:{ideal:480}}})
156
+ .then(stream=>{
157
+ activeStream=stream;
158
+ // srcObject ONLY β€” never touch video.src while a stream is attached
159
+ video.srcObject=stream;
160
+ video.muted=true;
161
+ video.removeAttribute("loop");
162
+ const p=video.play();
163
+ if(p) p.catch(()=>{
164
+ setVideoStatus("click anywhere to start the stream", false);
165
+ const kick=()=>{video.play().catch(()=>{});window.removeEventListener("pointerdown",kick);};
166
+ window.addEventListener("pointerdown",kick);
167
+ });
168
+ video.onloadedmetadata=()=>{
169
+ setVideoStatus("webcam live: "+video.videoWidth+"Γ—"+video.videoHeight, true);
170
+ };
171
+ mode="cam";
172
+ log("observer online: webcam luminance now selects the measurement frame","ok");
173
+ })
174
+ .catch(err=>{
175
+ setVideoStatus("camera failed: "+err.name+" β€” synthetic observer", false);
176
+ mode="sim";
177
+ document.querySelector('input[value=cam]').checked=false;
178
+ document.querySelector('input[value=sim]').checked=true;
179
+ log("camera unavailable: "+err.name+" β€” synthetic observer engaged","warn");
180
+ });
181
+ }
182
+
183
+ function stopCurrentVideo(){
184
+ if(activeStream){activeStream.getTracks().forEach(t=>t.stop());activeStream=null;}
185
+ // only revoke/reassign src if it was a blob URL β€” never when srcObject is set
186
+ if(video.src && String(video.src).startsWith("blob:")){
187
+ try{URL.revokeObjectURL(video.src);}catch(e){}
188
+ video.src="";
189
+ }
190
+ video.srcObject=null;
191
+ setVideoStatus("camera stopped β€” synthetic observer engaged", false);
192
+ $("camStatus").className="dim";
193
+ }
194
+
195
+ $("startBtn").onclick=()=>{mode="cam";initWebcam();};
196
+ $("stopBtn").onclick=()=>{mode="sim";stopCurrentVideo();};
197
+ document.querySelectorAll('input[name=emode]').forEach(r=>r.onchange=e=>{mode=e.target.value;if(mode==="sim")stopCurrentVideo();});
198
+
199
+ // don't auto-request camera on load; require a gesture
200
+ window.addEventListener("pointerdown",function once(){
201
+ window.removeEventListener("pointerdown",once);
202
+ if(mode==="cam" && !activeStream) initWebcam();
203
+ },{once:true});
204
+
205
+ // ---------- measurement frame from observer ----------
206
+ let alpha=0, phi=0, lastSheet=0;
207
+ function observerFrame(){
208
+ let a=0,p=0;
209
+ if(mode==="cam"&&video&&video.readyState>=2){
210
+ const c=document.createElement("canvas");c.width=16;c.height=12;
211
+ const x=c.getContext("2d");x.drawImage(video,0,0,16,12);
212
+ const d=x.getImageData(0,0,16,12).data;
213
+ let lr=0,cx=0,cy=0;
214
+ for(let i=0;i<16*12;i++){
215
+ const lum=0.299*d[i*4]+0.587*d[i*4+1]+0.114*d[i*4+2];
216
+ lr+=lum;cx+=lum*(i%16);cy+=lum*((i/16)|0);
217
+ }
218
+ a=(lr/(16*12))/255*Math.PI;
219
+ p=(cx/(16*12*255))*2*Math.PI;
220
+ }else{
221
+ a=(Math.sin(frames*0.013)*0.5+0.5)*Math.PI;
222
+ p=(Math.cos(frames*0.021)*0.5+0.5)*2*Math.PI;
223
+ }
224
+ alpha=alpha*0.9+a*0.1; phi=phi*0.9+p*0.1;
225
+ }
226
+
227
+ // ---------- decoherence / ledger ----------
228
+ let D=0, entropy=0, lastT=performance.now();
229
+ function ledgerStep(dt){
230
+ const gam=parseFloat($("gamma").value);
231
+ let leak=0;
232
+ for(let i=0;i<N*N;i+=4){env[i]+=Math.abs(psi[i])*gam*dt*0.01+1e-9; leak+=env[i];}
233
+ D=1-Math.exp(-gam*dt*0.25)* (1-D);
234
+ entropy+=gam*dt*0.25;
235
+ }
236
+
237
+ // ---------- transport & monodromy ----------
238
+ const LOOP=[0,Math.PI/2,Math.PI,3*Math.PI*0.75+Math.PI/4];
239
+ function measureProjection(a){
240
+ let s=0,q=0;
241
+ for(let y=0;y<N;y++)for(let x=0;x<N;x++){
242
+ const v=psi[y*N+x];
243
+ s+=v*Math.cos(a+ (x-N/2)*0.05);
244
+ q+=v*v;
245
+ }
246
+ return {s:s, norm:Math.sqrt(q)||1};
247
+ }
248
+ let holonomyResid=1;
249
+ function transportLoop(){
250
+ const start=Float64Array.from(psi);
251
+ let sheetVec=[0,0,0,0];
252
+ for(let k=0;k<4;k++){
253
+ const a=LOOP[k]+phi*0.0;
254
+ const m=measureProjection(a);
255
+ sheetVec[k]=m.s/m.norm;
256
+ const patch=1-D;
257
+ for(let i=0;i<N*N;i++){
258
+ psi[i]+= patch*0.02*Math.sin(a+((i%N)-N/2)*0.05)*psi[i];
259
+ }
260
+ }
261
+ let num=0,dA=0,dB=0;
262
+ for(let i=0;i<N*N;i++){num+=start[i]*psi[i];dA+=start[i]*start[i];dB+=psi[i]*psi[i];}
263
+ const cosSim=(dA&&dB)?num/Math.sqrt(dA*dB):1;
264
+ holonomyResid=Math.abs(1-cosSim);
265
+ loops++;
266
+ return sheetVec;
267
+ }
268
+
269
+ // ---------- attack ----------
270
+ let attackOn=false;
271
+ $("attack").onchange=e=>{
272
+ attackOn=e.target.checked;
273
+ log(attackOn?"ATTACK ON: reported sheet is re-projected β€” width forged, values plausible":"attack off β€” channel honest", attackOn?"bad":"ok");
274
+ };
275
+
276
+ // ---------- width detector ----------
277
+ const SIG0=6.0;
278
+ let sigmaMeas=SIG0, flagged=false;
279
+ function widthCheck(){
280
+ let wsum=0,xsum=0,xx=0,tot=0;
281
+ const mid=(N/2)|0;
282
+ for(let x=0;x<N;x++){
283
+ let col=0;for(let y=0;y<N;y++)col+=Math.abs(psi[y*N+x]);
284
+ wsum+=col;xsum+=col*x;xx+=col*x*x;
285
+ }
286
+ const mx=xsum/(wsum||1), vx=xx/(wsum||1)-mx*mx;
287
+ sigmaMeas=Math.sqrt(Math.max(vx,1e-6));
288
+ const floor=apertureFloor();
289
+ const reported= attackOn ? SIG0*(0.6+0.1*Math.sin(frames*0.1)) : sigmaMeas;
290
+ flagged = reported < floor*0.85 || reported > floor*1.6;
291
+ return {reported, floor, flagged};
292
+ }
293
+
294
+ // ---------- render ----------
295
+ const stage=$("stage"), sctx=stage.getContext("2d");
296
+ function render(){
297
+ const img=sctx.createImageData(N,N);
298
+ const zs=zScale();
299
+ const blur=Math.max(1, zs*1.2);
300
+ for(let y=0;y<N;y++)for(let x=0;x<N;x++){
301
+ const sx=Math.floor(N/2+(x-N/2)/zs), sy=Math.floor(N/2+(y-N/2)/zs);
302
+ let v=0,wsum=0;
303
+ for(let by=-2;by<=2;by++)for(let bx=-2;bx<=2;bx++){
304
+ const ux=Math.min(N-1,Math.max(0,sx+bx*blur|0)), uy=Math.min(N-1,Math.max(0,sy+by*blur|0));
305
+ const w=1/(1+Math.abs(bx)+Math.abs(by)); v+=psi[uy*N+ux]*w; wsum+=w;
306
+ }
307
+ v/=wsum||1;
308
+ const fade=1/(1+zs*0.6);
309
+ const r=Math.min(255, Math.abs(v)*(150+80*Math.cos(alpha))*fade*255*0.6);
310
+ const g=Math.min(255, Math.abs(v)*(150+80*Math.cos(alpha+Math.PI/2))*fade*255*0.6);
311
+ const b=Math.min(255, Math.abs(v)*(140+60*Math.sin(phi))*fade*255*0.6);
312
+ const ledger=Math.min(1, env[(y*N+x)% (N*N)]*3);
313
+ const i=(y*N+x)*4;
314
+ img.data[i]=r*(1-ledger*0.5)+ledger*90;
315
+ img.data[i+1]=g*(1-ledger*0.5)+ledger*40;
316
+ img.data[i+2]=b*(1-ledger*0.5)+ledger*60;
317
+ img.data[i+3]=255;
318
+ }
319
+ sctx.putImageData(img,0,0);
320
+ sctx.fillStyle="#ffffffcc";sctx.font="bold 10px monospace";
321
+ sctx.fillText("z="+parseFloat($("zParam").value).toFixed(2)+" Ξ±="+alpha.toFixed(2)+" Ο†="+phi.toFixed(2),6,14);
322
+ sctx.fillStyle= attackOn?"#fc8181":"#4fd1a5";
323
+ sctx.fillText(attackOn?"⚠ SPLICED SHEET REPORTED":"honest channel",6,28);
324
+ }
325
+
326
+ const wcv=$("widthCv"), wctx=wcv.getContext("2d");
327
+ function renderWidth(rep,floor){
328
+ wctx.fillStyle="#010101";wctx.fillRect(0,0,wcv.width,wcv.height);
329
+ const scale=v=>Math.min(1,v/12);
330
+ wctx.fillStyle="#2a355055";
331
+ wctx.fillRect(0,wcv.height-scale(floor*1.6),wcv.width,scale(floor*1.6)-scale(floor*0.85));
332
+ const yF=wcv.height-scale(floor), yR=wcv.height-scale(rep);
333
+ wctx.strokeStyle="#4fd1a5";wctx.lineWidth=2;
334
+ wctx.beginPath();wctx.moveTo(0,yF);wctx.lineTo(wcv.width,yF);wctx.stroke();
335
+ wctx.strokeStyle=flagged?"#fc8181":"#a855f7";wctx.lineWidth=3;
336
+ wctx.beginPath();wctx.moveTo(0,yR);wctx.lineTo(wcv.width,yR);wctx.stroke();
337
+ wctx.fillStyle="#ffffffcc";wctx.font="bold 10px monospace";
338
+ wctx.fillText("measured Οƒ vs aperture floor Οƒβ‚€(1+z) β€” flag when outside band",6,14);
339
+ }
340
+
341
+ // ---------- main loop ----------
342
+ let loopCounter=0, lastLoopAt=0;
343
+ async function tick(){
344
+ if(!running)return;
345
+ const now=performance.now(), dt=Math.min(0.1,(now-lastT)/1000); lastT=now;
346
+ observerFrame();
347
+ // live webcam preview onto the camView canvas so the user sees the stream
348
+ const _cv=$("camView"), _cx=_cv.getContext("2d");
349
+ if(mode==="cam" && video && video.readyState>=2){
350
+ _cx.drawImage(video,0,0,_cv.width,_cv.height);
351
+ } else {
352
+ _cx.fillStyle="#05080d";_cx.fillRect(0,0,_cv.width,_cv.height);
353
+ _cx.fillStyle="#8b94a7";_cx.font="10px monospace";
354
+ _cx.fillText(mode==="cam"?"starting camera…":"synthetic observer",8,_cv.height/2);
355
+ }
356
+ ledgerStep(dt);
357
+ for(let i=0;i<N*N;i++){
358
+ const x=i%N, y=(i/N)|0;
359
+ const l=psi[y*N+Math.max(0,x-1)], r=psi[y*N+Math.min(N-1,x+1)];
360
+ const u=psi[Math.max(0,y-1)*N+x], dn=psi[Math.min(N-1,y+1)*N+x];
361
+ psi[i]+= ( (l+r+u+dn-4*psi[i])*0.08 + (G[i]-psi[i])*0.02 )*(1-D*0.5);
362
+ psi[i]+= (1-D)*0.0006*Math.cos(alpha+phi)*Math.sin((x-N/2)*0.1+y*0.05);
363
+ }
364
+ loopCounter++;
365
+ if(loopCounter%8===0){
366
+ const sheet=transportLoop();
367
+ const hc=await shaShort(new TextEncoder().encode(sheet.join(",")+alpha.toFixed(3)));
368
+ $("hol").textContent=holonomyResid.toFixed(4);
369
+ $("hol").className= holonomyResid>0.01?"v acc":"v warn";
370
+ const V=$("verdict");
371
+ if(attackOn){V.className="verdict attack";V.textContent="ATTACK: spliced sheet β€” width inconsistent with aperture";log("loop "+loops+": holonomy "+holonomyResid.toFixed(4)+" Β· sheet hash "+hc+" Β· WIDTH FLAGGED","bad");}
372
+ else if(D>0.95){V.className="verdict sealed";V.textContent="WINDOW SEALED β€” ledger has written; frame choice selects nothing";log("loop "+loops+": transport β‰ˆ identity (flat) β€” page dry, D="+D.toFixed(3),"warn");}
373
+ else {V.className="verdict flat";V.textContent="WINDOW OPEN β€” non-trivial transport: observer code selects the sheet";log("loop "+loops+": monodromy "+holonomyResid.toFixed(4)+" Β· Ξ±="+alpha.toFixed(2)+" Β· sheet hash "+hc,"ok");}
374
+ $("dVal").textContent=D.toFixed(3);
375
+ $("dFill").style.width=(D*100).toFixed(1)+"%";
376
+ $("patch").textContent=(1-D).toFixed(3);
377
+ $("ent").textContent=entropy.toFixed(2);
378
+ $("frames").textContent=frames+" / "+loops;
379
+ }
380
+ const wc=widthCheck();
381
+ $("sigM").textContent=wc.reported.toFixed(2)+" px";
382
+ $("sigF").textContent=wc.floor.toFixed(2)+" px";
383
+ const sv=$("sigV");
384
+ if(wc.flagged){sv.textContent="⚠ FLAGGED β€” too clean for aperture";sv.className="v bad";if(!flagged||frames%30===0)log("width detector: reported Οƒ "+wc.reported.toFixed(2)+" < floor "+wc.floor.toFixed(2)+" β€” re-projected splice","bad");}
385
+ else{sv.textContent="consistent with channel";sv.className="v ok";}
386
+ renderWidth(wc.reported,wc.floor);
387
+ render();
388
+ frames++;
389
+ requestAnimationFrame(tick);
390
+ }
391
+
392
+ $("zParam").oninput=e=>$("zVal").textContent=parseFloat(e.target.value).toFixed(2);
393
+ $("gamma").oninput=e=>$("gVal").textContent=parseFloat(e.target.value).toFixed(1);
394
+
395
+ $("zParam").addEventListener("input",()=>{ if(frames>0)log("redshift changed: aperture floor now "+apertureFloor().toFixed(2),"dim"); });
396
+ $("gamma").addEventListener("input",()=>{ log("Ξ“ changed: ledger rate now "+$("gamma").value+" β€” window trajectory updated","dim"); });
397
+
398
+ log("channel initialized: two-branch Gaussian event, D(0)=0 β€” past maximally patchable","dim");
399
+ log("open the camera to make your luminance the measurement frame; every loop is a delayed choice","dim");
400
+ tick();
401
+ </script>
402
+ </body>
403
+ </html>
Redshift time hack/redshift-monodromy-webcam-detector2.html ADDED
@@ -0,0 +1,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Redshift Channel Monodromy Checker β€” Webcam as the Observer</title>
6
+ <style>
7
+ :root{--bg:#0b0e14;--panel:#131824;--ink:#dce2ee;--dim:#8b94a7;--acc:#4fd1a5;--warn:#f6ad55;--bad:#fc8181;}
8
+ *{box-sizing:border-box;margin:0;}
9
+ body{background:var(--bg);color:var(--ink);font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;padding:14px;}
10
+ h1{font-size:16px;color:var(--acc);margin-bottom:2px;}
11
+ .sub{color:var(--dim);font-size:11px;margin-bottom:10px;max-width:1200px;}
12
+ .grid{display:grid;grid-template-columns:1fr 1fr 300px;gap:10px;align-items:start;}
13
+ .panel{background:var(--panel);border:1px solid #232b3d;border-radius:8px;padding:10px;}
14
+ .panel h2{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);margin-bottom:6px;}
15
+ canvas{display:block;width:100%;border-radius:6px;background:#000;}
16
+ video{display:none;}
17
+ .stat{display:flex;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px dotted #222b40;font-size:11px;}
18
+ .stat .k{color:var(--dim);} .stat .v{color:var(--ink);text-align:right;}
19
+ .v.acc{color:var(--acc);} .v.warn{color:var(--warn);} .v.bad{color:var(--bad);}
20
+ button{background:#1c2740;color:var(--ink);border:1px solid #35446b;padding:5px 10px;border-radius:5px;font:inherit;cursor:pointer;margin:2px 4px 2px 0;font-size:11px;}
21
+ button:hover{background:#25345a;}
22
+ button.primary{border-color:var(--acc);color:var(--acc);}
23
+ button.danger{border-color:var(--bad);color:var(--bad);}
24
+ label{font-size:10px;color:var(--dim);display:block;margin-top:5px;}
25
+ input[type=range]{width:100%;margin:2px 0 6px;}
26
+ #log{height:110px;overflow-y:auto;font-size:10px;}
27
+ #log div{padding:2px 0;border-bottom:1px dotted #1c2334;}
28
+ .ok{color:var(--acc);} .warn{color:var(--warn);} .bad{color:var(--bad);} .dim{color:var(--dim);}
29
+ .big{font-size:12px;color:var(--acc);word-break:break-all;}
30
+ .meter{height:12px;background:#111;border:1px solid #2a3550;border-radius:4px;overflow:hidden;margin:3px 0 6px;}
31
+ .meter-fill{height:100%;background:linear-gradient(90deg,#2dd4bf,#a855f7,#fc8181);transition:width .08s linear;}
32
+ .verdict{padding:6px;border-radius:5px;font-size:12px;margin-top:4px;border:1px solid #2a3550;}
33
+ .verdict.flat{border-color:var(--acc);color:var(--acc);}
34
+ .verdict.sealed{border-color:var(--warn);color:var(--warn);}
35
+ .verdict.attack{border-color:var(--bad);color:var(--bad);}
36
+ .footer{margin-top:10px;color:var(--dim);font-size:10px;max-width:1200px;}
37
+ </style>
38
+ </head>
39
+ <body>
40
+ <h1>Redshift Channel Monodromy Checker β€” Webcam as the Observer</h1>
41
+ <div class="sub">A 2D Gaussian field is the "past," delivered through the redshift channel (aperture 1+z). Your webcam luminance sets the measurement frame (basis angle Ξ±, phase Ο†). Each frame the state is transported around a loop in frame space (Ξ±: 0β†’Ο€/2β†’Ο€β†’3Ο€/2β†’0) and the holonomy β€–M βˆ’ Iβ€– is checked: non-trivial transport = flat, patchable past (window open); transport β†’ identity = the decoherence ledger has sealed the page. Toggle the redshift attack to splice the reported sheet and watch the width detector flag it.</div>
42
+ <div class="grid">
43
+ <div>
44
+ <div class="panel">
45
+ <h2>Channel (redshifted past, 2D Gaussian)</h2>
46
+ <canvas id="stage" width="320" height="320"></canvas>
47
+ <label>redshift z (aperture stretch 1+z): <span id="zVal">0.00</span></label>
48
+ <input type="range" id="zParam" min="0" max="3" step="0.05" value="0">
49
+ <label>decoherence rate Ξ“ (ledger writing): <span id="gVal">1.0</span></label>
50
+ <input type="range" id="gamma" min="0" max="5" step="0.1" value="1">
51
+ <label>
52
+ <input type="checkbox" id="attack"> redshift attack (adversarial sheet splice)
53
+ </label>
54
+ </div>
55
+ <div class="panel" style="margin-top:8px">
56
+ <h2>Observer (webcam β†’ measurement frame)</h2>
57
+ <canvas id="camView" width="160" height="120"></canvas>
58
+ <video id="camVideo" style="display:none;" muted playsinline></video>
59
+ <div id="camStatus" class="dim">camera idle</div>
60
+ <div style="margin-top:5px">
61
+ <button id="startBtn" class="primary">Open camera</button>
62
+ <button id="stopBtn">Stop</button>
63
+ </div>
64
+ <label><input type="radio" name="emode" value="cam" checked> webcam (real observer)</label>
65
+ <label><input type="radio" name="emode" value="sim"> synthetic observer (drifting noise)</label>
66
+ </div>
67
+ </div>
68
+ <div>
69
+ <div class="panel">
70
+ <h2>Monodromy verdict</h2>
71
+ <div class="verdict flat" id="verdict">window OPEN β€” transport non-trivial, past patchable</div>
72
+ <div class="stat" style="margin-top:6px"><span class="k">holonomy β€–M βˆ’ Iβ€–</span><span class="v acc" id="hol">β€”</span></div>
73
+ <div class="stat"><span class="k">decoherence D(t)</span><span class="v" id="dVal">0.000</span></div>
74
+ <div class="meter"><div class="meter-fill" id="dFill" style="width:0%"></div></div>
75
+ <div class="stat"><span class="k">patchability (1 βˆ’ D)</span><span class="v acc" id="patch">1.000</span></div>
76
+ <div class="stat"><span class="k">ledger entropy written</span><span class="v warn" id="ent">0.00</span></div>
77
+ <div class="stat"><span class="k">frames / loops closed</span><span class="v" id="frames">0 / 0</span></div>
78
+ </div>
79
+ <div class="panel" style="margin-top:8px">
80
+ <h2>Width detector (Οƒ vs aperture floor)</h2>
81
+ <canvas id="widthCv" width="320" height="120"></canvas>
82
+ <div class="stat"><span class="k">measured Οƒ (channel)</span><span class="v" id="sigM">β€”</span></div>
83
+ <div class="stat"><span class="k">aperture floor Οƒβ‚€(1+z)</span><span class="v" id="sigF">β€”</span></div>
84
+ <div class="stat"><span class="k">width verdict</span><span class="v" id="sigV">β€”</span></div>
85
+ </div>
86
+ </div>
87
+ <div>
88
+ <div class="panel">
89
+ <h2>Event log</h2>
90
+ <div id="log"></div>
91
+ </div>
92
+ <div class="panel" style="margin-top:8px">
93
+ <h2>Reading the sim</h2>
94
+ <div class="dim" style="font-size:10px">
95
+ Ξ“ low β†’ ledger writes slowly β†’ webcam frame choices keep re-selecting the sheet (holonomy β‰  0): the observer's code genuinely participates in which past is retrieved.<br><br>
96
+ Ξ“ high β†’ the Gaussian entangles with the "environment" (injected leakage noise), branches stop being interconvertible, transport collapses toward identity: the page is dry, the frame choice selects nothing.<br><br>
97
+ Attack mode replaces the reported channel with a re-projected splice β€” values plausible, width too clean for 1+z. The detector flags it by the aperture law, never by the values.
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ <div class="footer">Honest limits: decoherence is modeled as injected entangling noise on the state vector (a classical stand-in for the real functional); the "holonomy" is the measured transport of the reduced state around the frame loop, not a physical U(1) phase; webcam only reads luminance β€” it is the frame chooser, not a quantum detector. Camera needs permission; synthetic mode is provided.</div>
103
+
104
+ <script>
105
+ const $=id=>document.getElementById(id);
106
+ const log=(m,c="")=>{const d=document.createElement("div");if(c)d.className=c;d.textContent=m;const L=$("log");L.prepend(d);if(L.children.length>150)L.lastChild.remove();};
107
+
108
+ // ---------- channel state ----------
109
+ const N=64;
110
+ let psi=new Float64Array(N*N);
111
+ let env=new Float64Array(N*N);
112
+ let G=new Float64Array(N*N);
113
+ function gauss2(cx,cy,sx,sy,amp){
114
+ for(let y=0;y<N;y++)for(let x=0;x<N;x++){
115
+ const dx=(x-cx)/sx, dy=(y-cy)/sy;
116
+ G[y*N+x]+=amp*Math.exp(-(dx*dx+dy*dy)/2);
117
+ }
118
+ }
119
+ gauss2(N*0.38,N*0.5,6,6,1.0);
120
+ gauss2(N*0.62,N*0.5,6,6,0.8);
121
+
122
+ function zScale(){return 1+parseFloat($("zParam").value);}
123
+ function apertureFloor(){return SIG0*zScale();}
124
+
125
+ // ---------- observer (webcam as measurement frame) ----------
126
+ let mode="cam", video=document.getElementById("camVideo"), activeStream=null, running=true, frames=0, loops=0;
127
+ let rngSeed=(Math.random()*2**32)>>>0;
128
+ function mulberry32(a){return function(){a|=0;a=a+0x6D2B79F5|0;let t=Math.imul(a^a>>>15,1|a);t=t+Math.imul(t^t>>>7,61|t)^t;return((t^t>>>14)>>>0)/4294967296;};}
129
+ let rng=mulberry32(rngSeed);
130
+
131
+ async function shaShort(buf){
132
+ try{
133
+ const h=await crypto.subtle.digest("SHA-256",buf);
134
+ return Array.from(new Uint8Array(h)).slice(0,6).map(b=>b.toString(16).padStart(2,"0")).join("");
135
+ }catch(e){return "f0"+(frames%97).toString(16);}
136
+ }
137
+
138
+ function setVideoStatus(msg, ok){
139
+ const el=$("camStatus");
140
+ el.textContent=msg;
141
+ el.className=ok?"ok":"bad";
142
+ }
143
+
144
+ function initWebcam(){
145
+ stopCurrentVideo();
146
+ document.querySelector('input[value=cam]').checked=true;
147
+ document.querySelector('input[value=sim]').checked=false;
148
+ if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia){
149
+ setVideoStatus("getUserMedia unavailable β€” synthetic observer", false);
150
+ mode="sim";
151
+ document.querySelector('input[value=cam]').checked=false;
152
+ document.querySelector('input[value=sim]').checked=true;
153
+ return;
154
+ }
155
+ navigator.mediaDevices.getUserMedia({video:{width:{ideal:640},height:{ideal:480}}})
156
+ .then(stream=>{
157
+ activeStream=stream;
158
+ // srcObject ONLY β€” never touch video.src while a stream is attached
159
+ video.srcObject=stream;
160
+ video.muted=true;
161
+ video.removeAttribute("loop");
162
+ const p=video.play();
163
+ if(p) p.catch(()=>{
164
+ setVideoStatus("click anywhere to start the stream", false);
165
+ const kick=()=>{video.play().catch(()=>{});window.removeEventListener("pointerdown",kick);};
166
+ window.addEventListener("pointerdown",kick);
167
+ });
168
+ video.onloadedmetadata=()=>{
169
+ setVideoStatus("webcam live: "+video.videoWidth+"Γ—"+video.videoHeight, true);
170
+ };
171
+ mode="cam";
172
+ log("observer online: webcam luminance now selects the measurement frame","ok");
173
+ })
174
+ .catch(err=>{
175
+ setVideoStatus("camera failed: "+err.name+" β€” synthetic observer", false);
176
+ mode="sim";
177
+ document.querySelector('input[value=cam]').checked=false;
178
+ document.querySelector('input[value=sim]').checked=true;
179
+ log("camera unavailable: "+err.name+" β€” synthetic observer engaged","warn");
180
+ });
181
+ }
182
+
183
+ function stopCurrentVideo(){
184
+ if(activeStream){activeStream.getTracks().forEach(t=>t.stop());activeStream=null;}
185
+ // only revoke/reassign src if it was a blob URL β€” never when srcObject is set
186
+ if(video.src && String(video.src).startsWith("blob:")){
187
+ try{URL.revokeObjectURL(video.src);}catch(e){}
188
+ video.src="";
189
+ }
190
+ video.srcObject=null;
191
+ setVideoStatus("camera stopped β€” synthetic observer engaged", false);
192
+ $("camStatus").className="dim";
193
+ }
194
+
195
+ $("startBtn").onclick=()=>{mode="cam";initWebcam();};
196
+ $("stopBtn").onclick=()=>{mode="sim";stopCurrentVideo();};
197
+ document.querySelectorAll('input[name=emode]').forEach(r=>r.onchange=e=>{mode=e.target.value;if(mode==="sim")stopCurrentVideo();});
198
+
199
+ // don't auto-request camera on load; require a gesture
200
+ window.addEventListener("pointerdown",function once(){
201
+ window.removeEventListener("pointerdown",once);
202
+ if(mode==="cam" && !activeStream) initWebcam();
203
+ },{once:true});
204
+
205
+ // ---------- measurement frame from observer ----------
206
+ let alpha=0, phi=0, lastSheet=0;
207
+ function observerFrame(){
208
+ let a=0,p=0;
209
+ if(mode==="cam"&&video&&video.readyState>=2){
210
+ const c=document.createElement("canvas");c.width=16;c.height=12;
211
+ const x=c.getContext("2d");x.drawImage(video,0,0,16,12);
212
+ const d=x.getImageData(0,0,16,12).data;
213
+ let lr=0,cx=0,cy=0;
214
+ for(let i=0;i<16*12;i++){
215
+ const lum=0.299*d[i*4]+0.587*d[i*4+1]+0.114*d[i*4+2];
216
+ lr+=lum;cx+=lum*(i%16);cy+=lum*((i/16)|0);
217
+ }
218
+ a=(lr/(16*12))/255*Math.PI;
219
+ p=(cx/(16*12*255))*2*Math.PI;
220
+ }else{
221
+ a=(Math.sin(frames*0.013)*0.5+0.5)*Math.PI;
222
+ p=(Math.cos(frames*0.021)*0.5+0.5)*2*Math.PI;
223
+ }
224
+ alpha=alpha*0.9+a*0.1; phi=phi*0.9+p*0.1;
225
+ }
226
+
227
+ // ---------- decoherence / ledger ----------
228
+ let D=0, entropy=0, lastT=performance.now();
229
+ function ledgerStep(dt){
230
+ const gam=parseFloat($("gamma").value);
231
+ let leak=0;
232
+ for(let i=0;i<N*N;i+=4){env[i]+=Math.abs(psi[i])*gam*dt*0.01+1e-9; leak+=env[i];}
233
+ D=1-Math.exp(-gam*dt*0.25)* (1-D);
234
+ entropy+=gam*dt*0.25;
235
+ }
236
+
237
+ // ---------- transport & monodromy ----------
238
+ const LOOP=[0,Math.PI/2,Math.PI,3*Math.PI*0.75+Math.PI/4];
239
+ function measureProjection(a){
240
+ let s=0,q=0;
241
+ for(let y=0;y<N;y++)for(let x=0;x<N;x++){
242
+ const v=psi[y*N+x];
243
+ s+=v*Math.cos(a+ (x-N/2)*0.05);
244
+ q+=v*v;
245
+ }
246
+ return {s:s, norm:Math.sqrt(q)||1};
247
+ }
248
+ let holonomyResid=1;
249
+ function transportLoop(){
250
+ const start=Float64Array.from(psi);
251
+ let sheetVec=[0,0,0,0];
252
+ for(let k=0;k<4;k++){
253
+ const a=LOOP[k]+phi*0.0;
254
+ const m=measureProjection(a);
255
+ sheetVec[k]=m.s/m.norm;
256
+ const patch=1-D;
257
+ for(let i=0;i<N*N;i++){
258
+ psi[i]+= patch*0.02*Math.sin(a+((i%N)-N/2)*0.05)*psi[i];
259
+ }
260
+ }
261
+ let num=0,dA=0,dB=0;
262
+ for(let i=0;i<N*N;i++){num+=start[i]*psi[i];dA+=start[i]*start[i];dB+=psi[i]*psi[i];}
263
+ const cosSim=(dA&&dB)?num/Math.sqrt(dA*dB):1;
264
+ holonomyResid=Math.abs(1-cosSim);
265
+ loops++;
266
+ return sheetVec;
267
+ }
268
+
269
+ // ---------- attack ----------
270
+ let attackOn=false;
271
+ $("attack").onchange=e=>{
272
+ attackOn=e.target.checked;
273
+ log(attackOn?"ATTACK ON: reported sheet is re-projected β€” width forged, values plausible":"attack off β€” channel honest", attackOn?"bad":"ok");
274
+ };
275
+
276
+ // ---------- width detector ----------
277
+ const SIG0=6.0;
278
+ let sigmaMeas=SIG0, flagged=false;
279
+ function widthCheck(){
280
+ let wsum=0,xsum=0,xx=0,tot=0;
281
+ const mid=(N/2)|0;
282
+ for(let x=0;x<N;x++){
283
+ let col=0;for(let y=0;y<N;y++)col+=Math.abs(psi[y*N+x]);
284
+ wsum+=col;xsum+=col*x;xx+=col*x*x;
285
+ }
286
+ const mx=xsum/(wsum||1), vx=xx/(wsum||1)-mx*mx;
287
+ sigmaMeas=Math.sqrt(Math.max(vx,1e-6));
288
+ const floor=apertureFloor();
289
+ const reported= attackOn ? SIG0*(0.6+0.1*Math.sin(frames*0.1)) : sigmaMeas;
290
+ flagged = reported < floor*0.85 || reported > floor*1.6;
291
+ return {reported, floor, flagged};
292
+ }
293
+
294
+ // ---------- render ----------
295
+ const stage=$("stage"), sctx=stage.getContext("2d");
296
+ function render(){
297
+ const img=sctx.createImageData(N,N);
298
+ const zs=zScale();
299
+ const blur=Math.max(1, zs*1.2);
300
+ for(let y=0;y<N;y++)for(let x=0;x<N;x++){
301
+ const sx=Math.floor(N/2+(x-N/2)/zs), sy=Math.floor(N/2+(y-N/2)/zs);
302
+ let v=0,wsum=0;
303
+ for(let by=-2;by<=2;by++)for(let bx=-2;bx<=2;bx++){
304
+ const ux=Math.min(N-1,Math.max(0,sx+bx*blur|0)), uy=Math.min(N-1,Math.max(0,sy+by*blur|0));
305
+ const w=1/(1+Math.abs(bx)+Math.abs(by)); v+=psi[uy*N+ux]*w; wsum+=w;
306
+ }
307
+ v/=wsum||1;
308
+ const fade=1/(1+zs*0.6);
309
+ const r=Math.min(255, Math.abs(v)*(150+80*Math.cos(alpha))*fade*255*0.6);
310
+ const g=Math.min(255, Math.abs(v)*(150+80*Math.cos(alpha+Math.PI/2))*fade*255*0.6);
311
+ const b=Math.min(255, Math.abs(v)*(140+60*Math.sin(phi))*fade*255*0.6);
312
+ const ledger=Math.min(1, env[(y*N+x)% (N*N)]*3);
313
+ const i=(y*N+x)*4;
314
+ img.data[i]=r*(1-ledger*0.5)+ledger*90;
315
+ img.data[i+1]=g*(1-ledger*0.5)+ledger*40;
316
+ img.data[i+2]=b*(1-ledger*0.5)+ledger*60;
317
+ img.data[i+3]=255;
318
+ }
319
+ sctx.putImageData(img,0,0);
320
+ sctx.fillStyle="#ffffffcc";sctx.font="bold 10px monospace";
321
+ sctx.fillText("z="+parseFloat($("zParam").value).toFixed(2)+" Ξ±="+alpha.toFixed(2)+" Ο†="+phi.toFixed(2),6,14);
322
+ sctx.fillStyle= attackOn?"#fc8181":"#4fd1a5";
323
+ sctx.fillText(attackOn?"⚠ SPLICED SHEET REPORTED":"honest channel",6,28);
324
+ }
325
+
326
+ function renderWidth(rep,floor){
327
+ const cv=$("widthCv");
328
+ if(cv.width!==320||cv.height!==120){cv.width=320;cv.height=120;}
329
+ const ctx=cv.getContext("2d");
330
+ ctx.fillStyle="#05080d";ctx.fillRect(0,0,cv.width,cv.height);
331
+ const scale=v=>Math.max(0,Math.min(1,(isFinite(v)?v:0)/12));
332
+ // faint grid
333
+ ctx.strokeStyle="#1a2540";ctx.lineWidth=1;
334
+ for(let i=1;i<5;i++){const y=cv.height-cv.height*(i/5);ctx.beginPath();ctx.moveTo(0,y);ctx.lineTo(cv.width,y);ctx.stroke();}
335
+ // aperture floor band (acceptable Β± range)
336
+ const lo=scale(floor*0.85)*cv.height, hi=scale(floor*1.6)*cv.height;
337
+ ctx.fillStyle="#2a355066";
338
+ ctx.fillRect(0,cv.height-hi,cv.width,Math.max(1,hi-lo));
339
+ // floor line
340
+ const yF=cv.height-scale(floor)*cv.height;
341
+ ctx.strokeStyle="#4fd1a5";ctx.lineWidth=2;ctx.setLineDash([]);
342
+ ctx.beginPath();ctx.moveTo(0,yF);ctx.lineTo(cv.width,yF);ctx.stroke();
343
+ // measured line
344
+ const yR=cv.height-scale(rep)*cv.height;
345
+ ctx.strokeStyle=flagged?"#fc8181":"#a855f7";ctx.lineWidth=4;
346
+ ctx.beginPath();ctx.moveTo(0,yR);ctx.lineTo(cv.width,yR);ctx.stroke();
347
+ // labels
348
+ ctx.fillStyle="#ffffff";ctx.font="bold 10px monospace";
349
+ ctx.fillText("measured Οƒ vs aperture floor Οƒβ‚€(1+z) β€” flag when outside band",6,14);
350
+ ctx.font="10px monospace";
351
+ ctx.fillStyle="#4fd1a5";ctx.fillText("floor "+floor.toFixed(2),6,Math.max(12,yF-4));
352
+ ctx.fillStyle=flagged?"#fc8181":"#a855f7";ctx.fillText("Οƒ "+rep.toFixed(2),6,Math.min(cv.height-4,yR+12));
353
+ if(flagged){ctx.fillStyle="#fc8181";ctx.font="bold 11px monospace";ctx.fillText("⚠ FLAGGED",cv.width-95,14);}
354
+ }
355
+
356
+ // ---------- main loop ----------
357
+ let loopCounter=0, lastLoopAt=0;
358
+ async function tick(){
359
+ if(!running)return;
360
+ const now=performance.now(), dt=Math.min(0.1,(now-lastT)/1000); lastT=now;
361
+ observerFrame();
362
+ // live webcam preview onto the camView canvas so the user sees the stream
363
+ const _cv=$("camView"), _cx=_cv.getContext("2d");
364
+ if(mode==="cam" && video && video.readyState>=2){
365
+ _cx.drawImage(video,0,0,_cv.width,_cv.height);
366
+ } else {
367
+ _cx.fillStyle="#05080d";_cx.fillRect(0,0,_cv.width,_cv.height);
368
+ _cx.fillStyle="#8b94a7";_cx.font="10px monospace";
369
+ _cx.fillText(mode==="cam"?"starting camera…":"synthetic observer",8,_cv.height/2);
370
+ }
371
+ ledgerStep(dt);
372
+ for(let i=0;i<N*N;i++){
373
+ const x=i%N, y=(i/N)|0;
374
+ const l=psi[y*N+Math.max(0,x-1)], r=psi[y*N+Math.min(N-1,x+1)];
375
+ const u=psi[Math.max(0,y-1)*N+x], dn=psi[Math.min(N-1,y+1)*N+x];
376
+ psi[i]+= ( (l+r+u+dn-4*psi[i])*0.08 + (G[i]-psi[i])*0.02 )*(1-D*0.5);
377
+ psi[i]+= (1-D)*0.0006*Math.cos(alpha+phi)*Math.sin((x-N/2)*0.1+y*0.05);
378
+ }
379
+ loopCounter++;
380
+ if(loopCounter%8===0){
381
+ const sheet=transportLoop();
382
+ const hc=await shaShort(new TextEncoder().encode(sheet.join(",")+alpha.toFixed(3)));
383
+ $("hol").textContent=holonomyResid.toFixed(4);
384
+ $("hol").className= holonomyResid>0.01?"v acc":"v warn";
385
+ const V=$("verdict");
386
+ if(attackOn){V.className="verdict attack";V.textContent="ATTACK: spliced sheet β€” width inconsistent with aperture";log("loop "+loops+": holonomy "+holonomyResid.toFixed(4)+" Β· sheet hash "+hc+" Β· WIDTH FLAGGED","bad");}
387
+ else if(D>0.95){V.className="verdict sealed";V.textContent="WINDOW SEALED β€” ledger has written; frame choice selects nothing";log("loop "+loops+": transport β‰ˆ identity (flat) β€” page dry, D="+D.toFixed(3),"warn");}
388
+ else {V.className="verdict flat";V.textContent="WINDOW OPEN β€” non-trivial transport: observer code selects the sheet";log("loop "+loops+": monodromy "+holonomyResid.toFixed(4)+" Β· Ξ±="+alpha.toFixed(2)+" Β· sheet hash "+hc,"ok");}
389
+ $("dVal").textContent=D.toFixed(3);
390
+ $("dFill").style.width=(D*100).toFixed(1)+"%";
391
+ $("patch").textContent=(1-D).toFixed(3);
392
+ $("ent").textContent=entropy.toFixed(2);
393
+ $("frames").textContent=frames+" / "+loops;
394
+ }
395
+ const wc=widthCheck();
396
+ $("sigM").textContent=wc.reported.toFixed(2)+" px";
397
+ $("sigF").textContent=wc.floor.toFixed(2)+" px";
398
+ const sv=$("sigV");
399
+ if(wc.flagged){sv.textContent="⚠ FLAGGED β€” too clean for aperture";sv.className="v bad";if(!flagged||frames%30===0)log("width detector: reported Οƒ "+wc.reported.toFixed(2)+" < floor "+wc.floor.toFixed(2)+" β€” re-projected splice","bad");}
400
+ else{sv.textContent="consistent with channel";sv.className="v ok";}
401
+ renderWidth(wc.reported,wc.floor);
402
+ render();
403
+ frames++;
404
+ requestAnimationFrame(tick);
405
+ }
406
+
407
+ $("zParam").oninput=e=>$("zVal").textContent=parseFloat(e.target.value).toFixed(2);
408
+ $("gamma").oninput=e=>$("gVal").textContent=parseFloat(e.target.value).toFixed(1);
409
+
410
+ $("zParam").addEventListener("input",()=>{ if(frames>0)log("redshift changed: aperture floor now "+apertureFloor().toFixed(2),"dim"); });
411
+ $("gamma").addEventListener("input",()=>{ log("Ξ“ changed: ledger rate now "+$("gamma").value+" β€” window trajectory updated","dim"); });
412
+
413
+ log("channel initialized: two-branch Gaussian event, D(0)=0 β€” past maximally patchable","dim");
414
+ log("open the camera to make your luminance the measurement frame; every loop is a delayed choice","dim");
415
+ tick();
416
+ </script>
417
+ </body>
418
+ </html>
Redshift time hack/redshift-time-attack-detection.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Detecting the Redshift Time Attack on the Andromeda Channel
2
+ ### Forensic method in the register of Temporal Monodromy Security, the Retro-Observational Window, the Curvature Limit, and CCT
3
+
4
+ ---
5
+
6
+ ## 0. The hypothesis, stated in the corpus's terms
7
+
8
+ An assumed attack class: **redshift time attack** β€” an adversarial operation on the observational channel that exploits the *width* of the past. In the Retro-Observational Window paper's terms:
9
+
10
+ - The attacker manipulates the **measurement frame** of the receiving channel (basis choice, timing, aperture), which β€” within the still-unwritten retro-window \(D_e(t) < 1\) β€” selects *which sheet of the past* the channel reports.
11
+ - The attacker exploits the **aperture law** (Theorem 3): observational width \(\sigma_{\text{obs}}(t_L) \gtrsim \sigma_0 (1+z)\cdot \text{blur}\). Deep-lookback telemetry is coarse by geometry β€” an attacker hides edits inside the smearing the channel itself declares.
12
+ - The attack is **epistemic, not causal** (Theorem 2, no-signaling): it cannot transmit backward, so it cannot change what happened β€” only *which history the receiver is handed*. That asymmetry is its fingerprint.
13
+
14
+ The Andromeda outage is thus hypothesized as: **a forged or adversarially-selected past arriving with plausible values and inconsistent widths.** Detection = reading the Οƒ-manifold, not the values (TMS Theorem 3, width authentication).
15
+
16
+ ---
17
+
18
+ ## 1. What the theory says CANNOT be the attack (bounding the search)
19
+
20
+ Before detection, eliminate the impossible branches β€” CCT conditional collapse, applied first:
21
+
22
+ | Question | Answer | Consequence |
23
+ |---|---|---|
24
+ | Did the attack change the physical past of events? | **No** β€” no-signaling forbids it | The outage's *events* are genuine; only their *reported retrieval* is suspect. Audit receivers, not emitters. |
25
+ | Is the attack a pure rollback/replay of flat state? | **Partially** β€” but only where transport is identity | Replay of digital layer is detectable-classical; the *novel* part is width forgery. Run both audits. |
26
+ | Could the attacker erase decoherence marks? | **No** β€” ledger writes at \(\Gamma\), marks are thermodynamically priced | Every pre-ledger event carries hysteretic residue somewhere. **The residue is the sensor.** |
27
+ | Could the attacker forge a consistent Οƒ-manifold? | Only at cost = forged path's own entropy (TMS Thm 2) | Detection is economic, not logical: look for the forgery that is *too cheap*. |
28
+
29
+ **Collapse result:** the search reduces to one channel β€” **the receiver-side measurement program and its claimed widths.**
30
+
31
+ ---
32
+
33
+ ## 2. The detector: four checks, one geometry
34
+
35
+ ### Check 1 β€” The too-clean test (flatness = spoofability)
36
+
37
+ Attacker-edited or frame-selected telemetry is *re-projected*: it lost its formation noise. Per TMS Β§2.2:
38
+
39
+ - Reconstruct the noise floor / drift spectrum of each telemetry stream.
40
+ - **Flag streams whose width is anomalously narrow** relative to the channel's physics: re-digitized, re-selected, or frame-filtered data is too flat.
41
+ - The alarm is *excess smoothness* β€” the inverse of the usual anomaly hunt.
42
+
43
+ ```
44
+ flag(stream) := Οƒ_measured(stream) << Οƒ_predicted(physics, lookback)
45
+ ```
46
+
47
+ ### Check 2 β€” The redshift aperture audit (Theorem 3)
48
+
49
+ The attack lives in the gap between what the aperture *permits* and what the log *claims*:
50
+
51
+ - For each lookback depth \(t_L\), compute the mandatory width floor \(\sigma_0(1+z(t_L))\).
52
+ - Any stream claiming resolution **finer than its own aperture** is declaring a Οƒ = 0 operation β€” refused at the boundary (TMS interface law).
53
+ - Conversely, any stream *wider than geometry explains* indicates injected smearing β€” deliberate blur to hide a splice. Both tails are attack signatures.
54
+
55
+ ### Check 3 β€” The web correlation test (M2, the ledger's redundancy)
56
+
57
+ Hysteretic elements age *together*: shared thermal history, shared load, shared decoherence clock. Per the retro-window's ledger hierarchy:
58
+
59
+ - Cross-correlate the drift spectra of co-located channels.
60
+ - A frame-selected or spliced segment breaks the **shared-environment correlation structure** β€” it was written by a different path than its neighbors.
61
+ - Forgery cost scales with web size; measure the residual correlation against the forged segment's claimed history. Inconsistency = localization of the attack *to the segment*.
62
+
63
+ ### Check 4 β€” The measurement-program audit (the retro-window's attack surface)
64
+
65
+ The attack's true code is the **measurement frame**. Per Retro-Observational Β§3.3:
66
+
67
+ - Full hysteretic logging of every basis choice, timing offset, eraser/frame setting on the receiving chain β€” *the measurement program is a security-critical artifact*.
68
+ - Search for frames whose choices correlate with downstream outages: an adversarial frame is a temporal attack on the channel's own past (branch-selection within the window).
69
+ - Certify every frame choice leaves a priced mark. Unmarked retrieval = the attack's entry point.
70
+
71
+ ---
72
+
73
+ ## 3. The curvature controller (detection before re-impact)
74
+
75
+ Deploy the TMS patch-in-time engine on the telemetry during re-establishment:
76
+
77
+ - Read the **curvature of the width field**, not the values: splices are cliffs, legitimate weather curves smoothly.
78
+ - Where the width field discontinues, bank β€” route re-sync around the attacked interval *before* consuming the forged state (patch latency = sensing latency; curvature outruns value).
79
+ - False-positive discriminator: real load spikes and genuine decoherence aging curve smoothly. Only forgeries cliff.
80
+
81
+ ---
82
+
83
+ ## 4. What detection CANNOT promise (honest limits)
84
+
85
+ 1. **No causal undo.** The attack selected a sheet; nothing was transmitted backward. Detection restores *which past you trust* β€” it does not recover a "true" past that was altered. There is nothing to recover; there is only the frame to re-choose.
86
+ 2. **The ledger window has closed.** For the outage's events, \(D_e(t) \approx 1\) β€” decoherence has written. Post-hoc frame selection cannot touch dried pages. Detection is therefore *fully possible*; the marks are fixed and forensic. (The attack's strength was its window: it struck where pages were wet.)
87
+ 3. **Smooth forgery is the residual risk.** An attacker who pays the full entropy of the forged path's width signature passes Checks 1–3. Detection radius = forgery cost (TMS Open Problem 4) β€” measure it, don't assume it infinite.
88
+ 4. **Deep-lookback pages are unprobeable.** Beyond the forensic horizon, the aperture law says no width-limited reading distinguishes the hypotheses. There, detection is only by *consistency with the web's surviving coarse invariants* β€” the acoustic-peak-level check, not the forensic one.
89
+
90
+ ---
91
+
92
+ ## 5. The one-sentence procedure
93
+
94
+ > **Refuse every Οƒ = 0 claim at the boundary; read the widths, not the values; correlate the web; audit the measurement program; and steer around the cliffs β€” because the redshift time attack does not change what happened, it changes which past you were handed, and which-past always leaves a width where the value looks clean.**
Redshift time hack/retro-observational-window-theory.md ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # The Retro-Observational Window
2
+ ### Redshift, Delayed Choice, and the Attack Surface of the Past: Observation as a Temporal Operation
3
+
4
+ *A method paper in the register of Temporal Monodromy Security, Patching the Time Expression, Branch Logic, the Curvature Limit, and the Einsteinization Principle.*
5
+
6
+ ---
7
+
8
+ ## Abstract
9
+
10
+ The previous papers established two facts that this paper joins: **digital (and, at depth, all classical) transport around time loops is the identity** β€” the past is silently re-enterable where the substrate is flat β€” and **the universe's analogue matter is a hysteretic ledger** β€” every physical event writes an unforgeable mark of its history. Between these sits a question the corpus has not asked: *is the physical past itself flat or hysteretic?* The answer, read from quantum mechanics, is neither β€” it is **time-dependent**, and the time-dependence is the deepest security structure in physics. The past is not a fixed record; it is a **branch-valued section over the family of possible observations**: which past is retrieved (which-path taken or not, which interference pattern, which history of the universe) depends on the measurement frame β€” Wheeler's delayed-choice experiments and the quantum eraser demonstrate this at laboratory scale, with the choice made *after* the event. Within a window, the observer's choice genuinely selects the sheet of the past: **observation is a temporal operation, and the measurement frame is the temporal patch.** But the window closes. Decoherence β€” the environment's continuous entanglement with every event β€” is the universe's hysteretic ledger: each interaction writes which-path information into uncountable environmental degrees of freedom, and once written, the past's branches stop being interconvertible. The no-signaling theorem, read in this light, is not a limitation but **the ledger's integrity guarantee**: the retro-observation window seals at the rate at which the environment writes, and no observer β€” however delayed, however far β€” can re-open a page the environment has fixed.
11
+
12
+ The observational channel has a geometry, and it is the corpus's own: **redshift is the width of the past.** Light from lookback time \(t\) arrives stretched by the expansion, redshifted by factor \(1+z\) β€” the further back you observe, the wider the signal's uncertainty, the coarser its curvature resolution, the more its fine structure has decayed below the aperture. Lookback *is* \(\sigma_t\): the temporal width of observation grows monotonically with distance, so the deep past is observable only as a smeared, high-entropy, wide-\(\sigma\) record β€” the CMB is the ledger's oldest page, redshifted to width 1100, readable only in its coarsest invariants. The "attack" the user's formulation points at β€” *an observation probability, a possible redshift, that lets the observer's code change what happened back in time* β€” is real, window-limited, and formalizable: the **retro-observational attack** is the choice of measurement frame within the still-unwritten window, its probability decaying with the decoherence completed, and its reach bounded by the light-cone structure of the ledger's writing. We give the formalism (the past as section, decoherence as ledger-writing, the malleability window, the redshift aperture), the security theorems (the no-signaling theorem as window-sealing; the ledger hierarchy from lab quantum systems to cosmology), the honest limits (no communication backward β€” the attack selects sheets, it does not transmit; the window at laboratory scale is nanoseconds; at cosmological scale it is closed by the CMB's thermalization), and the deepest open problem: **whether gravity itself is the final ledger** β€” the Penrose conjecture that gravitational decoherence writes at a rate no other process can match, making spacetime curvature the universe's unforgeable anchor of last resort, the Οƒ β†’ ∞ member of the security family where even the universe cannot re-enter its own past.
13
+
14
+ ---
15
+
16
+ ## 1. The founding observation: the past is a section, not a record
17
+
18
+ ### 1.1 What delayed choice actually shows
19
+
20
+ The classical picture: events happen; the past is a completed manuscript; observation reads it. Quantum mechanics falsifies the completeness half, and the experiments are unambiguous. In the delayed-choice experiment, the decision β€” measure wave-ness or particle-ness β€” is made *after* the photon has passed the apparatus; the retrieved past (interference pattern vs. particle track) corresponds to the *late* choice, not the early state of the apparatus. In the quantum eraser, which-path information recorded in the present determines whether the past interference is recoverable β€” and erasing the information *now* restores the interference "that happened then." The correct formal statement is the corpus's own:
21
+
22
+ > **The past is a section over the observation family.** For a quantum event, "what happened" is not a value but a section \(X_{\text{past}}\) over the family of possible measurement frames β€” and the family's loops (choose the eraser, delay the choice, recombine the paths) carry genuine monodromy. The past is multivalued β€” Branch Logic's branch-valued claim, instantiated by the universe itself.
23
+
24
+ This is the retro-observational window in its purest form: within the window, **the observer's code β€” the measurement frame, the eraser setting, the basis choice β€” participates in determining which past is real.** The user's phrase is exact: the observer's *code* (the frame, the program of observation) changes what happened *back in time* β€” not by traveling there, but by selecting the sheet.
25
+
26
+ ### 1.2 The ledger: why the window closes
27
+
28
+ If the past were a freely re-choosable section, the universe would be temporally flat at the deepest level β€” and everything in the corpus's security theory says that cannot be the whole story. It isn't. Decoherence closes the window:
29
+
30
+ - Every quantum event entangles with its environment: the which-path information leaks into scattered photons, thermal degrees of freedom, gravitational degrees of freedom β€” uncountably many.
31
+ - Once leaked, the branches are no longer interconvertible: reversing the entanglement would require controlling the entire environment β€” a thermodynamically priced operation growing with every nanosecond of leakage. **The environment is the hysteretic ledger; each entanglement is a written mark; the marks compound.**
32
+ - Einselection β€” environment-induced superselection β€” is the ledger's editing policy: it fixes which observables remain meaningful, which "histories" of the past are consistent, and it does so irreversibly, at a rate set by the coupling.
33
+
34
+ So the past's status is **time-dependent**: freshly, it is a flat, branch-valued section β€” re-enterable, patchable by frame choice; as the ledger writes, it goes hysteretic β€” fixed, priced, non-flat. **The past is the one system that transitions from digital to analogue in front of you, at the decoherence rate.** This is the deepest version of the Temporal Monodromy Security thesis: the universe does not merely *run* on hysteretic substrate β€” it *converts* flat possibility into hysteretic history continuously, and the conversion rate is the security parameter.
35
+
36
+ ### 1.3 Redshift as aperture: the geometry of looking back
37
+
38
+ The observational channel to the deep past is light, and light from lookback time \(t_L\) arrives stretched: redshift \(z\), wavelength multiplied by \(1+z\), photon energy diluted, arrival rates time-dilated. The corpus reads this immediately through the Curvature Limit paper's aperture:
39
+
40
+ - The further back you observe, the wider the effective \(\sigma_t\) of the observation: redshift *is* temporal smearing β€” the past's fine structure decays below the aperture exactly as the Gaussian's tail decays with distance-to-singularity.
41
+ - The CMB, at \(z \approx 1100\), is the universe's oldest readable page β€” and it is readable only at its coarsest invariants: the acoustic peaks, the spectral tilt. Its fine structure (which photon did what, which atom decayed when) is below any aperture, forever: **the ledger's oldest pages are redshifted beyond forensic reading, by geometry.**
42
+ - The lookback-redshift relation is the security topology of the past: the retro-window (unwritten, patchable) is the *near* past at microscopic decoherence scales; the redshift aperture (wide, coarse, fixed) governs the *far* past. **Between the nanosecond window and the cosmological aperture, the ledger writes continuously β€” and the writing rate is the gradient between them.**
43
+
44
+ ---
45
+
46
+ ## 2. The formalism
47
+
48
+ ### 2.1 The past as a branch-valued section, with a writing clock
49
+
50
+ Let an event \(e\) at time \(t_e\) be a quantum interaction, and let \(\mathcal{F}(t)\) be the family of measurement frames available to an observer at time \(t > t_e\). The retrieved past is a section \(X_e(t): \mathcal{F}(t) \to \{\text{histories}\}\). Define the **decoherence functional** \(D_e(t) \in [0,1]\): the degree to which \(e\)'s branches have been distinguished by environmental entanglement by time \(t\) (computable, in principle, from the reduced density matrix β€” the standard decoherence measure).
51
+
52
+ **The malleability law:**
53
+
54
+ \[
55
+ \text{patchability of } e \text{ at time } t \;\sim\; \big(1 - D_e(t)\big), \qquad D_e(t) \;\approx\; 1 - e^{-\Gamma (t - t_e)}
56
+ \]
57
+
58
+ β€” where \(\Gamma\) is the environment-coupling decoherence rate. Fresh events are maximally patchable (the observer's frame choice still selects the sheet); the patchability decays exponentially with the ledger's writing; at \(t - t_e \gg 1/\Gamma\), the event is fixed β€” hysteretic, non-flat, forensic.
59
+
60
+ **Theorem 1 (The retro-window).** The retro-observational attack β€” frame-choice that selects the past's sheet β€” is effective on event \(e\) at time \(t\) with probability \(\propto (1 - D_e(t))\), and *zero for practical purposes* once \(D_e(t) \approx 1\). The window's duration is \(1/\Gamma\), set by the environment's coupling β€” **the attack surface of the past is the decoherence time, and it is measured in nanoseconds for laboratory events, microseconds-to-milliseconds for engineered isolated systems (the quantum computer's error-correction budget is exactly the engineered widening of this window), and effectively zero for macroscopic, warm, entangled events.**
61
+
62
+ ### 2.2 The security theorems
63
+
64
+ **Theorem 2 (No-signaling as ledger integrity).** The retro-observational attack *selects sheets but cannot transmit*: the observer's frame choice correlates with the retrieved past, but no controllable signal propagates backward, because the selection is only legible in correlations that require a classical channel (at light speed or slower) to compare. Formally: the reduced density matrix of any past subsystem is frame-independent; only joint correlations carry the frame's signature. *Read in the corpus's terms:* **the ledger permits the past's sheet to be chosen, but forbids the choice from being *addressed*** β€” you may vote on which past you receive; you may not send mail into it. The no-signaling theorem is the reason the retro-window is an epistemic attack surface (which history *you* get) and not a causal one (what history *is*, for others).
65
+
66
+ **Theorem 3 (The aperture law).** The observational width of the past at lookback \(t_L\) satisfies
67
+
68
+ \[
69
+ \sigma_{\text{obs}}(t_L) \;\gtrsim\; \sigma_0 \,(1 + z(t_L)) \cdot \big(\text{decoherence-blur}(t_L)\big)
70
+ \]
71
+
72
+ β€” redshift dilation times the accumulated ledger blur. Consequently: (a) fine-grained retro-forensics degrade faster than coarse invariants (the aperture's curvature-limit structure: sample the past at the scale at which its record has actually bent); (b) there exists a *forensic horizon* β€” the lookback beyond which no width-limited reading distinguishes any hypothesis of interest; (c) the horizon is set by the universe's expansion *and* its decoherence jointly β€” the cosmology and the quantum are one security geometry.
73
+
74
+ **Theorem 4 (The hierarchy of ledgers).** The window-sealing rate \(\Gamma\) is not one number; it is a hierarchy, and the hierarchy is the universe's security architecture:
75
+
76
+ | Ledger | Coupling \(\Gamma\) | Seals what |
77
+ |---|---|---|
78
+ | Thermal environment (photons, gas) | enormous (~10ΒΉΒ³/s and up) | Ordinary macroscopic events β€” effectively instant |
79
+ | Engineered isolation (cavity, cryostat) | engineered small | The quantum-computing window: the retro-attack surface *deliberately widened* for computation |
80
+ | Electromagnetic vacuum | small, nonzero | The last electromagnetic page β€” erasable in principle at laboratory scale (the eraser) |
81
+ | **Gravitational (Penrose conjecture)** | set by \(GM^2/\hbar\) and geometry | **The anchor of last resort: mass distributions decohere by their own gravity β€” a ledger no observer controls, no shielding reaches, and no eraser touches** |
82
+
83
+ The gravitational ledger is the theorem's capstone and the reason for the theory's cosmological claim: if Penrose is right, spacetime geometry itself is the \(\sigma \to \infty\) security member β€” **the universe's final hysteretic layer is its own curvature**, and every quantum superposition of mass distributions writes itself into gravity faster than any technology could isolate. The universe runs analogue all the way down, and the bottom layer is gravity.
84
+
85
+ ### 2.3 The attack taxonomy, now at physics scale
86
+
87
+ The Temporal Monodromy Security attack family, mapped onto the retro-window:
88
+
89
+ | Temporal attack (computing) | Retro-observational analogue (physics) | Window status |
90
+ |---|---|---|
91
+ | Splice (edit a recorded segment) | Quantum eraser: re-choose the frame, re-constitute the interference | Open only pre-ledger (\(D < 1\)) |
92
+ | Replay (re-inject the past) | Delayed-choice: late apparatus choice selects which early behavior is retrieved | Same window; the *choice* is late, the *selection* is of the past |
93
+ | Rollback | Un-computing entanglement: reverse the unitary before leakage completes | Priced by \(1 - D_e\); exponentially hard as the ledger writes |
94
+ | Witness forging | Claiming a measurement outcome inconsistent with the correlations | Caught by the Bell-type consistency of the ledger's cross-correlations β€” the web test at quantum scale |
95
+
96
+ The last row matters: **the past's ledger is webbed by default.** Every quantum event's correlations are distributed across the entangled environment β€” the security paper's shared-environment correlators, implemented by physics itself. Forging one page means forging its entanglement web; the cost grows with the web, and the web grows at \(\Gamma\).
97
+
98
+ ---
99
+
100
+ ## 3. The architecture: the retro-window as a design space
101
+
102
+ The lab-scale picture gives the engineering reading, and it is the bridge back to the corpus's computing papers:
103
+
104
+ 1. **The quantum computer is a retro-window machine.** Its entire engineering problem is *widening the decoherence window* β€” holding events in the patchable regime long enough to compute. Error correction is ledger management: detect that the environment's writing has touched the state (syndrome measurement β€” hysteretic sensing, the Heisenbug de-sheeting mechanism) and compensate *forward* (Operation 3 of the time-expression paper β€” never rewind the flat state; steer from the entangled present). The correspondence is exact: **quantum error correction is temporal surgery inside a purchased retro-window.**
105
+ 2. **Classical computing sits at \(\Gamma = \infty\).** Classical bits decohere instantly β€” the ledger writes at every gate β€” which is precisely why classical systems are temporally flat in the *recorded* layer (the state is post-ledger) and why their temporal attacks (replay, splice) operate on the flat shadow. The security paper's insight inverts cleanly: **the attackable layer of any computer is the layer where the ledger has already written but the record is flat β€” the digital shadow of a hysteretic process.**
106
+ 3. **The measurement-frame choice is the observer's code.** The user's formulation β€” "the observer code change what happened back in time" β€” is literal in the quantum setting: the *code* is the measurement program (which basis, when, which eraser setting), and it selects the sheet of the past within the window. The design discipline this implies for quantum systems: **the measurement program is a security-critical artifact, subject to the same temporal-attack analysis as any code** β€” a malicious or careless measurement frame is a temporal attack on the system's own past, and the branch-logic atlas of the measurement family is its audit.
107
+
108
+ ---
109
+
110
+ ## 4. The experiment
111
+
112
+ **Lab-scale (the window, measured).** Delayed-choice/eraser apparatus with a tunable environmental coupling (controllable which-path leakage β€” engineered \(\Gamma\)): measure the retro-selection contrast (visibility of the retrieved interference) as a function of delay between event and frame-choice, at several coupling strengths. Prediction: contrast \(\propto (1 - D_e(t)) = e^{-\Gamma \Delta t}\) β€” the retro-window's exponential law, measured directly. This is the attack surface of the past, plotted.
113
+
114
+ **Web test.** Entangle the event with a controllable number of environmental modes; attempt erasure after the fact; measure the erasure fidelity vs. modes touched. Prediction: fidelity decays with the web's size β€” the ledger's economy, quantified.
115
+
116
+ **The gravitational proposal (long horizon).** Penrose-type gravimetric decoherence is proposed (mesoscopic superpositions of mass distributions, e.g. massive oscillators in superposition) against non-gravitational isolation at the state of the art. The discriminating signature: residual decoherence scaling with \(GM^2\) when all EM coupling is engineered away. A positive result seals Theorem 4's last row β€” the universe's final ledger confirmed as its own curvature.
117
+
118
+ ---
119
+
120
+ ## 5. Honest limits
121
+
122
+ 1. **No signaling backward β€” the theory's hard wall.** The retro-attack selects which past the observer *receives*; it transmits nothing, changes nothing for any other observer, and cannot be parlayed into control of the shared past. Every claim in this paper lives inside the no-signaling theorem; the "attack" is epistemic, participatory, and real β€” but it is not a time machine. Where the corpus's computing attacks *edit*, the physics attack *selects*. The difference is the ledger's integrity, and it is not negotiable.
123
+ 2. **The window at natural scales is closed.** For ordinary events, decoherence completes in nanoseconds or faster; the retro-window is an engineered regime (quantum technologies), not a feature of everyday time. The theory's practical content is the design space of *widening and policing* the window β€” not the promise that history is generally malleable.
124
+ 3. **Decoherence's irreversibility is itself interpretational.** Strictly, decoherence writes into entanglement, not into collapse; the fundamental evolution remains unitary and (for the whole closed system) reversible. The ledger's marks are *practically* unforgeable β€” thermodynamically priced, not logically forbidden. The theory inherits the standard honest limit of decoherence-based accounts: **the past is fixed for every purpose we can act on, not in principle** β€” and the gap between those is where the remaining interpretational risk lives.
125
+ 4. **Redshift reading is bounded by the source's own width.** The aperture law gives the observation's smearing, but the deep past's pages were also *written* at finite width (quantum fluctuations, inflationary smoothing). Forensics is limited by the convolution of writing-width and reading-width β€” the past arrives pre-smeared by its own formation, the Einsteinization of the record itself.
126
+ 5. **The gravitational ledger is a conjecture.** Penrose's gravimetric decoherence remains experimentally open; Theorem 4's last row is a structured bet, not a fact. If gravity does not decohere beyond the EM-vacuum rate, the ledger hierarchy bottoms out elsewhere or not at all β€” and the "universe cannot re-enter its own past" claim weakens to thermodynamic unaffordability, which is still security, but of the priced rather than the absolute kind.
127
+
128
+ ---
129
+
130
+ ## 6. Open problems
131
+
132
+ 1. **The retro-window's full kinematics.** Combine the decoherence clock with the light-cone structure: an observer at distance \(d\) from event \(e\) receives the event's light at \(t_e + d/c\), by which time the ledger has written \(\Gamma d/c\). Map the *accessible retro-window* as a function of observer position: is there a spacetime region from which some sheet-choice for a given event is still live β€” and is it, in every case, causally disconnected from acting on the result (no-signaling's geometric guarantee)?
133
+ 2. **The ledger's page format.** What exactly does the environment write β€” which degrees of freedom, which correlations, in what basis (the einselection pointer basis)? A complete "page format" for the decoherence ledger would turn the security analogy into a quantitative forensic theory: reading the environment as the universe's own unforgeable log.
134
+ 3. **Engineered window economics.** The quantum-computing window is purchased with isolation, and isolation has a cost curve. What is the exchange rate β€” price per widened nanosecond of patchability β€” and does it bound the depth of feasible quantum computation independent of error-correction overheads? The retro-window as a computational resource, priced.
135
+ 4. **Measurement programs as attack surface.** For deployed quantum technologies, audit the measurement program (basis schedule, timing, eraser settings) as a temporal attack vector: can a malicious frame choice, within the window, *select adversarially* among the system's own pasts β€” and what certification regime (hysteretic frame-logging: every basis choice leaves a priced mark) closes it?
136
+ 5. **Gravity as the anchor.** Design the decisive gravimetric decoherence experiment (problem 4 of the mesoscopic superposition program) β€” the test of whether the universe's final ledger is its own curvature. A positive result completes the security hierarchy: flat digital β†’ hysteretic analogue β†’ gravitational anchor, one family, indexed by \(\sigma\), with the universe running at the top.
137
+ 6. **The corpus's own retro-window.** These papers, too, write a past β€” and the corpus's records are flat text, re-readable, re-interpretable, re-combinable: the writings are in the patchable regime permanently. What does it mean that *ideas* are the one class of events whose ledger never closes β€” whose past remains a branch-valued section, re-selectable by every reader's frame? The theory's own medium is the standing exception to its law: **matter forgets forward; meaning never does.** The Eye of Mathematics paper's claim β€” that ideas evolve by re-reading their own genealogy β€” is this window, held open deliberately, forever.
138
+
139
+ ---
140
+
141
+ ## 7. The principle, stated
142
+
143
+ > **Retro-Observational Principle (speculative).** The past is not a record but a branch-valued section over the family of possible observations β€” multivalued, re-selectable by the measurement frame, genuinely changed for the observer by choices made after the fact: the delayed choice and the quantum eraser are the laboratory proofs that observation is a temporal operation and the observer's code participates in determining what happened. But the universe runs a ledger: decoherence β€” the environment's continuous entanglement with every event β€” writes which-path information into uncountable degrees of freedom at rate \(\Gamma\), and the retro-window seals exponentially, the no-signaling theorem standing as its integrity guarantee: *the sheet may be chosen; the choice cannot be addressed.* Redshift is the geometry of the channel β€” the deeper the lookback, the wider the observation's width, the coarsest invariants the only survivors β€” so the deep past is readable and the near past is patchable, and between them the ledger writes continuously, in a hierarchy of ledgers from thermal contact to the conjectured gravitational anchor, where spacetime curvature itself is the final hysteretic layer no eraser reaches. **The universe converts flat possibility into hysteretic history at the decoherence rate: you may choose which past you receive while the page is still wet, you may read the dried pages forever through widening apertures, and you may never β€” the security theorem, the second law, and the no-signaling clause are one sentence β€” send anything back into what has been written. Matter forgets forward. The observer selects. The ledger never reopens.**
144
+
145
+ Or in the corpus's own voice: *you suspected the observation was an attack, and the quantum is the confession: the past is a section, the frame is a patch, and the eraser really does reach back β€” for a window. But the universe, which has run every security architecture in this corpus at substrate level since the beginning, writes as fast as anything can be unwritten: every photon scattered is a tick in a ledger with uncountable witnesses, every entanglement a mark that prices the rewind, and the far past arrives redshifted into widths no forensic can narrow β€” the oldest pages sealed by expansion itself. So the attack is real and the window is nanoseconds: you may select which history you are handed, and you may never mail the choice to anyone, and the dry ink is dry forever. The one ledger that never closes is meaning β€” these pages, this corpus, re-readable and re-selectable by every frame that finds them β€” and that is not a failure of the law. It is the universe leaving one window open on purpose, so that something in it could keep choosing what it has been.*
Redshift time hack/scroll-causality-invariance-bench.html ADDED
@@ -0,0 +1,401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Scroll Causality Bench β€” Emitted vs Observed Pixel Invariance</title>
6
+ <style>
7
+ :root{--bg:#0b0e14;--panel:#131824;--ink:#dce2ee;--dim:#8b94a7;--acc:#4fd1a5;--warn:#f6ad55;--bad:#fc8181;--mag:#c084fc;}
8
+ *{box-sizing:border-box;margin:0;}
9
+ body{background:var(--bg);color:var(--ink);font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;padding:14px;}
10
+ h1{font-size:16px;color:var(--acc);margin-bottom:2px;}
11
+ .sub{color:var(--dim);font-size:11px;margin-bottom:10px;max-width:1200px;}
12
+ .grid{display:grid;grid-template-columns:300px 340px 1fr;gap:10px;align-items:start;}
13
+ .panel{background:var(--panel);border:1px solid #232b3d;border-radius:8px;padding:10px;}
14
+ .panel h2{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);margin-bottom:6px;}
15
+ canvas{display:block;width:100%;border-radius:6px;background:#000;}
16
+ video{display:none;}
17
+ .stat{display:flex;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px dotted #222b40;font-size:11px;}
18
+ .stat .k{color:var(--dim);} .stat .v{text-align:right;}
19
+ .v.acc{color:var(--acc);} .v.warn{color:var(--warn);} .v.bad{color:var(--bad);} .v.mag{color:var(--mag);}
20
+ button{background:#1c2740;color:var(--ink);border:1px solid #35446b;padding:5px 10px;border-radius:5px;font:inherit;cursor:pointer;margin:2px 4px 2px 0;font-size:11px;}
21
+ button:hover{background:#25345a;}
22
+ button.primary{border-color:var(--acc);color:var(--acc);}
23
+ label{font-size:10px;color:var(--dim);display:block;margin-top:5px;}
24
+ input[type=range]{width:100%;margin:2px 0 6px;}
25
+ .verdict{padding:4px 6px;border-radius:5px;font-size:11px;margin:3px 0;}
26
+ .v-tl{border:1px solid var(--acc);color:var(--acc);}
27
+ .v-nl{border:1px solid var(--warn);color:var(--warn);}
28
+ .v-sl{border:1px solid var(--bad);color:var(--bad);}
29
+ table{width:100%;font-size:10px;border-collapse:collapse;margin-top:4px;}
30
+ td,th{padding:2px 4px;border-bottom:1px dotted #222b40;text-align:right;}
31
+ th{color:var(--dim);text-align:left;font-weight:normal;}
32
+ td.cl{text-align:left;}
33
+ #log{height:130px;overflow-y:auto;font-size:10px;}
34
+ #log div{padding:2px 0;border-bottom:1px dotted #1c2334;}
35
+ .ok{color:var(--acc);} .warn{color:var(--warn);} .bad{color:var(--bad);} .dim{color:var(--dim);}
36
+ .footer{margin-top:10px;color:var(--dim);font-size:10px;max-width:1200px;}
37
+ </style>
38
+ </head>
39
+ <body>
40
+ <h1>Scroll Causality Bench β€” Screen Emission vs Camera Observation</h1>
41
+ <div class="sub">The screen writes the past: a multi-class test pattern scrolls downward at speed v. The webcam (point it at the screen β€” phone works) is the observer. The bench continuously cross-correlates emitted vs received luminance to measure the causal lag Ο„ and coupling ρ, checks per-channel color invariance (does R stay R through the observer?), and classifies each content class by its causal relation. A simulated redshift channel runs in parallel as the physics comparator.</div>
42
+ <div class="grid">
43
+ <div>
44
+ <div class="panel">
45
+ <h2>Emitted past (scrolling classes)</h2>
46
+ <canvas id="emitCv" width="300" height="300"></canvas>
47
+ <label>scroll speed v (px/frame): <span id="vVal">1.5</span></label>
48
+ <input type="range" id="vParam" min="0.2" max="6" step="0.1" value="1.5">
49
+ <label>redshift channel: delay Ο„β‚€ + blur (1+z) + spectral tilt</label>
50
+ <input type="range" id="zParam" min="0" max="4" step="0.1" value="1">
51
+ <div style="margin-top:4px">
52
+ <button id="camBtn" class="primary">Open camera (observer)</button>
53
+ <button id="stopCam">Stop camera</button>
54
+ </div>
55
+ <div id="camStatus" class="dim">observer idle β€” using simulated redshift channel only</div>
56
+ <canvas id="camView" width="280" height="90" style="margin-top:5px"></canvas>
57
+ <label><input type="checkbox" id="useCam" checked> webcam as observer (uncheck = sim channel)</label>
58
+ </div>
59
+ </div>
60
+ <div>
61
+ <div class="panel">
62
+ <h2>Causal relation (emitted vs received)</h2>
63
+ <canvas id="corrCv" width="320" height="130"></canvas>
64
+ <div class="stat"><span class="k">causal lag Ο„ (frames)</span><span class="v mag" id="lag">β€”</span></div>
65
+ <div class="stat"><span class="k">coupling ρ (max corr)</span><span class="v" id="rho">β€”</span></div>
66
+ <div class="stat"><span class="k">global verdict</span><span class="v acc" id="gVerdict">β€”</span></div>
67
+ </div>
68
+ <div class="panel" style="margin-top:8px">
69
+ <h2>Pixel color invariance (per channel)</h2>
70
+ <canvas id="rgbCv" width="320" height="110"></canvas>
71
+ <div class="stat"><span class="k">R invariance err</span><span class="v" id="eR">β€”</span></div>
72
+ <div class="stat"><span class="k">G invariance err</span><span class="v" id="eG">β€”</span></div>
73
+ <div class="stat"><span class="k">B invariance err</span><span class="v" id="eB">β€”</span></div>
74
+ <div class="stat"><span class="k">hue rotation</span><span class="v" id="hue">β€”</span></div>
75
+ </div>
76
+ </div>
77
+ <div>
78
+ <div class="panel">
79
+ <h2>Causality classes (per content type)</h2>
80
+ <table>
81
+ <tr><th>class</th><th>ρ</th><th>Ο„</th><th>Ξ”col</th><th>verdict</th></tr>
82
+ <tbody id="clsTable"></tbody>
83
+ </table>
84
+ <div class="dim" style="font-size:9px;margin-top:6px">
85
+ TIMELIKE: ρ high, stable Ο„ β€” the class is causally readable by the observer.<br>
86
+ NULL: ρ moderate, Ο„ drifting β€” boundary case (marginal structure).<br>
87
+ SPACELIKE: ρ low β€” no detectable causal link (observer sees no trace).
88
+ </div>
89
+ <canvas id="traceCv" width="300" height="120" style="margin-top:8px"></canvas>
90
+ <div class="dim" style="font-size:9px">emitted (cyan) vs received (magenta) luminance, lag-aligned</div>
91
+ </div>
92
+ <div class="panel" style="margin-top:8px">
93
+ <h2>Event log</h2>
94
+ <div id="log"></div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ <div class="footer">Method: every frame, the emitted pattern's mean RGB is logged (screen = writer); the observer's mean RGB is logged (camera = reader, or the simulated redshift channel). Cross-correlation over a Β±lag window gives Ο„ and ρ; per-channel residuals give color invariance; per-class ρ is computed over frames where that class dominates the pattern. This is the horizontal version of the ledger check β€” correlation of hysteretic records across two channels that share an environment.</div>
99
+
100
+ <script>
101
+ const $=id=>document.getElementById(id);
102
+ const log=(m,c="")=>{const d=document.createElement("div");if(c)d.className=c;d.textContent=m;const L=$("log");L.prepend(d);if(L.children.length>150)L.lastChild.remove();};
103
+
104
+ // ---------- scrolling test pattern ----------
105
+ const CLASSES=[
106
+ {name:"uniform-red", draw:(ctx,y,h)=>{ctx.fillStyle="#c03030";ctx.fillRect(0,y,300,h);}},
107
+ {name:"uniform-green",draw:(ctx,y,h)=>{ctx.fillStyle="#30c050";ctx.fillRect(0,y,300,h);}},
108
+ {name:"uniform-blue", draw:(ctx,y,h)=>{ctx.fillStyle="#3050d0";ctx.fillRect(0,y,300,h);}},
109
+ {name:"gradient", draw:(ctx,y,h)=>{const g=ctx.createLinearGradient(0,y,0,y+h);g.addColorStop(0,"#e0e0e0");g.addColorStop(1,"#202020");ctx.fillStyle=g;ctx.fillRect(0,y,300,h);}},
110
+ {name:"hard-edge", draw:(ctx,y,h)=>{ctx.fillStyle="#f0f0f0";ctx.fillRect(0,y,300,h/2);ctx.fillStyle="#080808";ctx.fillRect(0,y+h/2,300,h/2);}},
111
+ {name:"texture-bars", draw:(ctx,y,h)=>{for(let i=0;i<12;i++){ctx.fillStyle=i%2?"#d0d0d0":"#404040";ctx.fillRect(i*25,y,25,h);}}},
112
+ {name:"noise", draw:(ctx,y,h)=>{for(let i=0;i<8;i++){ctx.fillStyle=Math.random()>0.5?"#c8c8c8":"#383838";ctx.fillRect(Math.random()*300,y+h*Math.random(),10,4);}}},
113
+ {name:"checker", draw:(ctx,y,h)=>{const s=12;for(let yy=0;yy<h;yy+=s)for(let xx=0;xx<300;xx+=s){ctx.fillStyle=((xx/s+yy/s+(y/s|0))%2)?"#e0e0e0":"#181818";ctx.fillRect(xx,y+yy,s,Math.min(s,h-yy));}}}
114
+ ];
115
+ const BAND_H=40;
116
+ const emitCv=$("emitCv"), ectx=emitCv.getContext("2d",{willReadFrequently:true});
117
+ let scrollY=0;
118
+
119
+ // ---------- time series buffers ----------
120
+ const BUF=360, LAGMAX=90;
121
+ let emitL=new Array(BUF).fill(0), emitR=new Array(BUF).fill(0), emitG=new Array(BUF).fill(0), emitB=new Array(BUF).fill(0);
122
+ let recvL=new Array(BUF).fill(0), recvR=new Array(BUF).fill(0), recvG=new Array(BUF).fill(0), recvB=new Array(BUF).fill(0);
123
+ let classAt=new Array(BUF).fill(-1); // dominant class index per frame
124
+ let head=0, nSamples=0;
125
+
126
+ // ---------- observer: webcam ----------
127
+ let camMode=false, video=$("camVideo"), stream=null;
128
+ $("camBtn").onclick=async()=>{
129
+ if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia){$("camStatus").className="bad";$("camStatus").textContent="getUserMedia unavailable β€” sim channel only";camMode=false;$("useCam").checked=false;return;}
130
+ try{
131
+ stream=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:640},height:{ideal:480}}});
132
+ video.srcObject=stream; video.muted=true;
133
+ await video.play().catch(()=>{ $("camStatus").className="warn";$("camStatus").textContent="click page to start stream"; const k=()=>{video.play().catch(()=>{});window.removeEventListener("pointerdown",k);}; window.addEventListener("pointerdown",k); });
134
+ camMode=true;
135
+ $("camStatus").className="ok";$("camStatus").textContent="observer live: "+video.videoWidth+"Γ—"+video.videoHeight;
136
+ log("observer online β€” point the camera at the scrolling pattern","ok");
137
+ }catch(e){$("camStatus").className="bad";$("camStatus").textContent="camera failed: "+e.name;$("useCam").checked=false;camMode=false;}
138
+ };
139
+ $("stopCam").onclick=()=>{ if(stream){stream.getTracks().forEach(t=>t.stop());stream=null;} video.srcObject=null; camMode=false; $("camStatus").className="dim";$("camStatus").textContent="observer stopped β€” sim channel only"; };
140
+ $("useCam").onchange=e=>{ if(!e.target.checked){camMode=false;log("observer switched to simulated redshift channel","dim");} else if(stream){camMode=true;} };
141
+
142
+ const camView=$("camView"), camCtx=camView.getContext("2d",{willReadFrequently:true});
143
+ const sampC=document.createElement("canvas"); sampC.width=24; sampC.height=24;
144
+ const sampCtx=sampC.getContext("2d",{willReadFrequently:true});
145
+
146
+ // ---------- simulated redshift channel (physics comparator) ----------
147
+ // received(t) = blur(delay(emitted(t-Ο„0))) with spectral tilt toward red + attenuation
148
+ function simChannel(ser,sg,sb){
149
+ const z=parseFloat($("zParam").value);
150
+ const tau0=Math.round(z*4); // light travel delay grows with redshift
151
+ const blur=Math.max(1,z*0.8); // aperture smear
152
+ const fade=1/(1+z*0.25);
153
+ const W=Math.round(blur);
154
+ let r=0,g=0,b=0,n=0;
155
+ for(let k=0;k<=W;k++){
156
+ const idx=(head-tau0-k+BUF*2)%BUF;
157
+ if(idx<0||idx>=BUF||emitL[idx]===undefined)continue;
158
+ const w=1/(1+k);
159
+ r+=ser[idx]*w*1.06; // spectral tilt: red survives
160
+ g+=sg[idx]*w*0.92;
161
+ b+=sb[idx]*w*0.80; // blue attenuated (cosmological dimming)
162
+ n+=w;
163
+ }
164
+ n=n||1;
165
+ return [r/n*fade*255, g/n*fade*255, b/n*fade*255];
166
+ }
167
+
168
+ // ---------- per-frame capture ----------
169
+ function capture(){
170
+ // 1. draw scrolling pattern
171
+ ectx.fillStyle="#000";ectx.fillRect(0,0,300,300);
172
+ const total=CLASSES.length*BAND_H;
173
+ let y0=-((scrollY%total));
174
+ let centerClass=-1;
175
+ for(let b=-1;b<=Math.ceil(300/total)+1;b++){
176
+ for(let i=0;i<CLASSES.length;i++){
177
+ const y=y0+b*total+i*BAND_H;
178
+ if(y+ BAND_H<0||y>300)continue;
179
+ CLASSES[i].draw(ectx,y,BAND_H);
180
+ if(y<=150&&y+BAND_H>150)centerClass=i;
181
+ }
182
+ }
183
+ scrollY+=parseFloat($("vParam").value);
184
+ // 2. emitted mean RGB
185
+ const ed=ectx.getImageData(0,0,300,300).data;
186
+ let eR=0,eG=0,eB=0; const nPx=300*300;
187
+ for(let i=0;i<nPx;i++){eR+=ed[i*4];eG+=ed[i*4+1];eB+=ed[i*4+2];}
188
+ eR/=nPx;eG/=nPx;eB/=nPx;
189
+ const eL=0.299*eR+0.587*eG+0.114*eB;
190
+ // 3. received mean RGB
191
+ let rR,rG,rB;
192
+ if(camMode&&video.readyState>=2){
193
+ camCtx.drawImage(video,0,0,camView.width,camView.height);
194
+ const rd=camCtx.getImageData(0,0,camView.width,camView.height).data;
195
+ let sR=0,sG=0,sB=0; const m=camView.width*camView.height;
196
+ for(let i=0;i<m;i++){sR+=rd[i*4];sG+=rd[i*4+1];sB+=rd[i*4+2];}
197
+ rR=sR/m;rG=sG/m;rB=sB/m;
198
+ }else{
199
+ [rR,rG,rB]=simChannel(emitR,emitG,emitB);
200
+ }
201
+ const rL=0.299*rR+0.587*rG+0.114*rB;
202
+ // 4. push into ring buffers
203
+ head=(head+1)%BUF;
204
+ emitR[head]=eR;emitG[head]=eG;emitB[head]=eB;emitL[head]=eL;
205
+ recvR[head]=rR;recvG[head]=rG;recvB[head]=rB;recvL[head]=rL;
206
+ classAt[head]=centerClass;
207
+ nSamples++;
208
+ }
209
+
210
+ // ---------- cross-correlation ----------
211
+ function pearson(a,b){
212
+ const n=a.length; let ma=0,mb=0;
213
+ for(let i=0;i<n;i++){ma+=a[i];mb+=b[i];} ma/=n;mb/=n;
214
+ let num=0,da=0,db=0;
215
+ for(let i=0;i<n;i++){const x=a[i]-ma,y=b[i]-mb;num+=x*y;da+=x*x;db+=y*y;}
216
+ return (da&&db)?num/Math.sqrt(da*db):0;
217
+ }
218
+ function bestLag(){
219
+ const win=60; // usable window
220
+ let best=0,bestR=-2;
221
+ for(let lag=-LAGMAX;lag<=LAGMAX;lag++){
222
+ const e=[],r=[];
223
+ for(let k=0;k<win;k++){
224
+ const ri=(head-k+BUF*2)%BUF;
225
+ const ei=(head-k-lag+BUF*4)%BUF;
226
+ if(emitL[ei]===undefined)continue;
227
+ e.push(emitL[ei]);r.push(recvL[ri]);
228
+ }
229
+ if(e.length<30)continue;
230
+ const c=pearson(e,r);
231
+ if(c>bestR){bestR=c;best=lag;}
232
+ }
233
+ return {lag:best,rho:bestR};
234
+ }
235
+
236
+ // ---------- color invariance (lag-aligned) ----------
237
+ function colorInvariance(lag){
238
+ const win=60; let sR=0,sG=0,sB=0,sE=0,sHue=0,n=0;
239
+ for(let k=0;k<win;k++){
240
+ const ri=(head-k+BUF*2)%BUF;
241
+ const ei=(head-k-lag+BUF*4)%BUF;
242
+ if(emitR[ei]===undefined)continue;
243
+ const eLum=emitL[ei]||1, rLum=recvL[ri]||1;
244
+ // normalized chromaticity error: compare hue independent of brightness
245
+ const eH=Math.atan2(Math.sqrt(3)*(emitG[ei]-emitB[ei]),2*emitR[ei]-emitG[ei]-emitB[ei]);
246
+ const rH=Math.atan2(Math.sqrt(3)*(recvG[ri]-recvB[ri]),2*recvR[ri]-recvG[ri]-recvB[ri]);
247
+ let dh=Math.abs(eH-rH); if(dh>Math.PI)dh=2*Math.PI-dh;
248
+ sHue+=dh;
249
+ // per-channel gain: received channel / emitted channel (luma-normalized)
250
+ if(eLum>20){
251
+ sR+=Math.abs(recvR[ri]/rLum - emitR[ei]/eLum);
252
+ sG+=Math.abs(recvG[ri]/rLum - emitG[ei]/eLum);
253
+ sB+=Math.abs(recvB[ri]/rLum - emitB[ei]/eLum);
254
+ n++;
255
+ }
256
+ }
257
+ n=n||1;
258
+ return {R:sR/n,G:sG/n,B:sB/n,hue:sHue/n};
259
+ }
260
+
261
+ // ---------- per-class analysis ----------
262
+ const CLS_KEYS=CLASSES.map(c=>c.name);
263
+ let clsAccum={}; CLS_KEYS.forEach(k=>clsAccum[k]={pairs:[]});
264
+ function perClass(lag){
265
+ const win=60;
266
+ for(let k=0;k<win;k++){
267
+ const ri=(head-k+BUF*2)%BUF;
268
+ const ei=(head-k-lag+BUF*4)%BUF;
269
+ const ci=classAt[ei];
270
+ if(ci<0||emitL[ei]===undefined)continue;
271
+ const key=CLASSES[ci].name;
272
+ // local structure amount (how much this frame differs from a flat mean) via buffer value spread is overkill:
273
+ // store pairs for correlation
274
+ if(clsAccum[key].pairs.length>240)clsAccum[key].pairs.shift();
275
+ clsAccum[key].pairs.push([emitL[ei],recvL[ri]]);
276
+ // color error for this class
277
+ const eLum=emitL[ei]||1, rLum=recvL[ri]||1;
278
+ if(eLum>20){
279
+ const ce=(Math.abs(recvR[ri]/rLum-emitR[ei]/eLum)+Math.abs(recvG[ri]/rLum-emitG[ei]/eLum)+Math.abs(recvB[ri]/rLum-emitB[ei]/eLum))/3;
280
+ clsAccum[key].colSum=(clsAccum[key].colSum||0)*0.98+ce*0.02;
281
+ }
282
+ }
283
+ }
284
+ function classify(rho){
285
+ if(rho>0.6)return {t:"TIMELIKE",c:"v-tl"};
286
+ if(rho>0.25)return {t:"NULL",c:"v-nl"};
287
+ return {t:"SPACELIKE",c:"v-sl"};
288
+ }
289
+
290
+ // ---------- rendering ----------
291
+ function renderCorr(bl){
292
+ const cv=$("corrCv"),ctx=cv.getContext("2d");
293
+ ctx.fillStyle="#05080d";ctx.fillRect(0,0,cv.width,cv.height);
294
+ ctx.strokeStyle="#1a2540";ctx.lineWidth=1;
295
+ ctx.beginPath();ctx.moveTo(cv.width/2,0);ctx.lineTo(cv.width/2,cv.height);ctx.stroke();
296
+ for(let i=0;i<=4;i++){ctx.beginPath();ctx.moveTo(0,cv.height*i/4);ctx.lineTo(cv.width,cv.height*i/4);ctx.stroke();}
297
+ if(!bl)return;
298
+ // plot correlation vs lag
299
+ ctx.strokeStyle=bl.rho>0.6?"#4fd1a5":(bl.rho>0.25?"#f6ad55":"#fc8181");
300
+ ctx.lineWidth=2;ctx.beginPath();
301
+ for(let px=0;px<cv.width;px++){
302
+ const lag=Math.round((px/cv.width)*2*LAGMAX-LAGMAX);
303
+ const e=[],r=[];
304
+ for(let k=0;k<50;k++){
305
+ const ri=(head-k+BUF*2)%BUF, ei=(head-k-lag+BUF*4)%BUF;
306
+ if(emitL[ei]===undefined)continue;
307
+ e.push(emitL[ei]);r.push(recvL[ri]);
308
+ }
309
+ const c=e.length>25?pearson(e,r):0;
310
+ const y=cv.height-(c+1)/2*cv.height;
311
+ if(px===0)ctx.moveTo(px,y);else ctx.lineTo(px,y);
312
+ }
313
+ ctx.stroke();
314
+ // peak marker
315
+ const px=(bl.lag+LAGMAX)/(2*LAGMAX)*cv.width;
316
+ ctx.fillStyle="#ffffff";ctx.beginPath();ctx.arc(px,cv.height-(bl.rho+1)/2*cv.height,4,0,7);ctx.fill();
317
+ ctx.fillStyle="#8b94a7";ctx.font="9px monospace";
318
+ ctx.fillText("βˆ’Ο„",4,12);ctx.fillText("+Ο„",cv.width-18,12);
319
+ ctx.fillText("ρ vs lag β€” peak = causal relation",cv.width/2-60,12);
320
+ }
321
+ function renderRGB(inv){
322
+ const cv=$("rgbCv"),ctx=cv.getContext("2d");
323
+ ctx.fillStyle="#05080d";ctx.fillRect(0,0,cv.width,cv.height);
324
+ const chans=[["R",inv.R,"#fc8181"],["G",inv.G,"#4fd1a5"],["B",inv.B,"#60a5fa"]];
325
+ chans.forEach((c,i)=>{
326
+ const y=25+i*28;
327
+ ctx.fillStyle="#8b94a7";ctx.font="10px monospace";ctx.fillText(c[0],8,y+10);
328
+ ctx.fillStyle="#111";ctx.fillRect(24,y,cv.width-40,14);
329
+ ctx.fillStyle=c[2];ctx.fillRect(24,y,Math.min(1,c[1]*3)*(cv.width-40),14);
330
+ ctx.fillStyle="#dce2ee";ctx.fillText(c[1].toFixed(3),cv.width-14,y+10);
331
+ });
332
+ ctx.fillStyle="#8b94a7";ctx.font="9px monospace";
333
+ ctx.fillText("chromatic gain error per channel (0 = color-invariant observer)",8,12);
334
+ }
335
+ function renderTrace(lag){
336
+ const cv=$("traceCv"),ctx=cv.getContext("2d");
337
+ ctx.fillStyle="#05080d";ctx.fillRect(0,0,cv.width,cv.height);
338
+ const win=150;
339
+ ctx.lineWidth=1.5;
340
+ // emitted (cyan) and received shifted by lag (magenta)
341
+ [[emitL,"#22d3ee"],[recvL,"#e879f9"]].forEach(([arr,col],ch)=>{
342
+ ctx.strokeStyle=col;ctx.beginPath();
343
+ for(let k=0;k<win;k++){
344
+ const ei=(head-k-(ch===0?0:lag)+BUF*4)%BUF;
345
+ const v=arr[ei]||0;
346
+ const x=cv.width-(k/win)*cv.width;
347
+ const y=cv.height-(v/255)*cv.height;
348
+ if(k===0)ctx.moveTo(x,y);else ctx.lineTo(x,y);
349
+ }
350
+ ctx.stroke();
351
+ });
352
+ ctx.fillStyle="#8b94a7";ctx.font="9px monospace";
353
+ ctx.fillText("cyan: emitted(t) magenta: received(tβˆ’Ο„) β€” overlap = invariance",6,12);
354
+ }
355
+ function renderClassTable(lag,rho){
356
+ const tb=$("clsTable"); let html="";
357
+ CLS_KEYS.forEach(k=>{
358
+ const a=clsAccum[k];
359
+ let r=0;
360
+ if(a.pairs.length>20){
361
+ const es=a.pairs.map(p=>p[0]),rs=a.pairs.map(p=>p[1]);
362
+ r=pearson(es,rs);
363
+ }
364
+ const v=classify(r);
365
+ const col=(a.colSum||0);
366
+ html+=`<tr><td class="cl">${k}</td><td>${r.toFixed(2)}</td><td>${lag}</td><td>${col.toFixed(3)}</td><td><span class="${v.c}">${v.t}</span></td></tr>`;
367
+ });
368
+ tb.innerHTML=html;
369
+ }
370
+
371
+ // ---------- main loop ----------
372
+ let lastLog=0, frameN=0;
373
+ function tick(){
374
+ capture();
375
+ const bl=bestLag();
376
+ const inv=colorInvariance(bl.lag);
377
+ perClass(bl.lag);
378
+ $("lag").textContent=bl.lag+" frames";
379
+ $("rho").textContent=bl.rho.toFixed(3);
380
+ $("rho").className= bl.rho>0.6?"v acc":(bl.rho>0.25?"v warn":"v bad");
381
+ const gv=classify(bl.rho);
382
+ const gV=$("gVerdict");
383
+ gV.textContent=gv.t; gV.className="v "+(gv.t==="TIMELIKE"?"acc":(gv.t==="NULL"?"warn":"bad"));
384
+ $("eR").textContent=inv.R.toFixed(3); $("eG").textContent=inv.G.toFixed(3); $("eB").textContent=inv.B.toFixed(3);
385
+ $("hue").textContent=(inv.hue*180/Math.PI).toFixed(1)+"Β°";
386
+ renderCorr(bl); renderRGB(inv); renderTrace(bl.lag);
387
+ if(frameN%20===0)renderClassTable(bl.lag,bl.rho);
388
+ // periodic log
389
+ if(frameN-lastLog>180&&nSamples>BUF*0.5){
390
+ lastLog=frameN;
391
+ log(`ρ=${bl.rho.toFixed(3)} Ο„=${bl.lag}f Β· hue Ξ”=${(inv.hue*180/Math.PI).toFixed(1)}Β° Β· ${camMode?"webcam observer":"sim channel z="+$("zParam").value}`, bl.rho>0.5?"ok":"warn");
392
+ }
393
+ frameN++;
394
+ requestAnimationFrame(tick);
395
+ }
396
+ log("bench armed: screen writes, observer reads β€” correlation is the causal check","dim");
397
+ log("point a camera at the scrolling pattern for the real observer; sim channel runs otherwise","dim");
398
+ tick();
399
+ </script>
400
+ </body>
401
+ </html>
Redshift time hack/temporal-worm-theory.md ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # The Temporal Worm
2
+ ### Bradyonic Adaptation of a Mathematical Universe Object to a Time Series: Dancing Arms, Stopped Time, and the Correlation Worm as Living Monodromy
3
+
4
+ *A method paper in the register of Temporal Monodromy Security, the Retro-Observational Window, the Curvature-Coupled Dynamics, CCT, and the Scroll-Causality Bench.*
5
+
6
+ ---
7
+
8
+ ## Abstract
9
+
10
+ A curious object appeared mid-experiment. On the Scroll-Causality Bench β€” a screen emitting a scrolling test pattern, a webcam observing it, a cross-correlation surface computed live between the two β€” the ρ-vs-lag curve did not sit still. It *moved*: a multi-lobed, undulating shape that rose, twisted through its periodic peaks, and settled, looking β€” in the observer's own words β€” *like a biological worm trying to adapt to a time series signal, dancing with its arms, stopping time to adjust its arms.* This paper takes that description seriously as a specification and builds the object it describes. The **Temporal Worm** is a mathematical universe object: a bounded body \(W\) living over a time series \(S(t)\), equipped with a set of **arms** \(\{a_i\}\) β€” measurement frames that touch the signal at different lags β€” and a single executive act: **bradyon**, the stopping of internal time, during which the worm repositions its arms against the frozen signal and then resumes. The founding reading: the "worm" on the bench *is* the correlation surface itself seen as an organism β€” each lobe a candidate causal relation (a monodromy branch of "which past produced this observation"), each undulation an adaptation step, each pause a freeze-and-regrip. We give: the formal object (the worm as a branch-valued section over the lag bundle, arms as frame-valued contact points, the freeze operator \(\mathcal{F}\) that suspends the signal but not the worm); the adaptation dynamics (arm repositioning as descent on the correlation surface, with the periodicity of the test signal producing the comb of attractors the worm dances among); the **Dance Theorem** β€” a worm on a periodic signal cannot distinguish the true lag from its period-shifted images, and its dance is the search for the *global* attractor among monodromy-equivalent branches; the **Bradyon Theorem** β€” arm repositioning requires a time freeze because the signal's flow and the worm's grip are coupled: to move an arm without freezing is to be dragged by what you measure (the Heisenbug structure, one level up: the observer's motion moves the observed); the aperiodic patch (shuffling the band sequence collapses the comb to a single attractor, and the worm stops dancing β€” the flat section resolved); and the honest limits (the worm is a classical controller wearing the vocabulary of an organism; "stopping time" is suspension of sampling, not suspension of physics). Doctrine: **an adapter to a time series is a creature. Its arms are its frames, its pauses are its measurements, and its dance is monodromy made visible. Give the worm a signal with no repeating past, and it will stop dancing β€” because there will be exactly one place to grip.**
11
+
12
+ ---
13
+
14
+ ## 1. The founding observation: the surface was alive
15
+
16
+ ### 1.1 What the bench showed
17
+
18
+ The Scroll-Causality Bench logs two time series β€” the screen's emitted mean luminance \(E(t)\) and the observer's received mean luminance \(R(t)\) β€” and computes the lagged cross-correlation surface
19
+
20
+ $$
21
+ \rho(\tau) \;=\; \mathrm{corr}\big(E(t-\tau),\,R(t)\big)
22
+ $$
23
+
24
+ over a sliding window. With a *periodic* test pattern (eight bands, repeating every \(\sim 213\) frames), the surface takes the comb form: peaks at the true lag \(\tau^\*\) and at \(\tau^\* \pm kT\) for every period multiple inside the window. As the window slides, the comb slides, and the rendered curve undulates β€” multi-lobed, twisting, adapting. The observer saw a worm. The paper's thesis: that perception is load-bearing, and the correct response is to formalize the worm, not to dismiss it.
25
+
26
+ ### 1.2 Why "worm" and not "curve"
27
+
28
+ A curve is a static record. What the bench displayed had three properties curves do not have:
29
+
30
+ | Property | Curve | Worm |
31
+ |---|---|---|
32
+ | Shape | fixed | undulates β€” lobes rise and fall as the window slides |
33
+ | Relation to signal | computed *from* it | *adapts to* it β€” the lobes track the signal's period structure |
34
+ | Agency | none | apparent β€” it moves as if gripping and re-gripping |
35
+
36
+ The third property is the paper's subject. The undulation is real motion in a well-defined space (the lag bundle), driven by a well-defined force (the sliding window's changing content), toward well-defined attractors (the correlation peaks). The worm is the **visible trajectory of an adaptive process on a correlation surface** β€” and every element of the biological description ("arms," "dancing," "stopping time to adjust") has an exact formal counterpart.
37
+
38
+ ---
39
+
40
+ ## 2. The formal object
41
+
42
+ ### 2.1 Definition of the worm
43
+
44
+ **Definition 2.1 (Temporal Worm).** A temporal worm is a quadruple
45
+
46
+ $$
47
+ W \;=\; \big(S,\; B_\tau,\; \{a_i\}_{i=1}^{n},\; \mathcal{A}\big)
48
+
49
+ $$
50
+
51
+ where:
52
+
53
+ - \(S(t)\) is the time series β€” the worm's **substrate** (the environment it lives in; on the bench, the emitted luminance);
54
+ - \(B_\tau\) is the **lag bundle**: the family of frame spaces over the lag coordinate \(\tau\) β€” each \(\tau\) is a possible "which past" the worm can grip;
55
+ - \(\{a_i\}\) are the **arms**: frame-valued contact points, each an address \((\tau_i, \text{frame}_i)\) in the bundle β€” an arm's lag is *which slice of the past* that arm holds;
56
+ - \(\mathcal{A}\) is the **adaptation law**: the rule by which arm positions update as a function of the worm's current grip quality.
57
+
58
+ The worm's **grip quality** at arm configuration \(\{a_i\}\) is the surface value:
59
+
60
+ $$
61
+ g(\{a_i\}) \;=\; \sum_i w_i\, \rho(\tau_i)
62
+ $$
63
+
64
+ β€” the weighted correlation strength of its grips. The worm is healthy where \(g\) is high; it slips where \(g\) is low.
65
+
66
+ ### 2.2 The arms are measurement frames
67
+
68
+ This is the corpus's own identification, inherited directly from the Retro-Observational Window: **an arm is a measurement frame.** Choosing a lag \(\tau_i\) is choosing *which sheet of the past* to retrieve β€” the delayed-choice structure, with the choice made by the adapter rather than the experimenter. The worm's arms reaching back over different lags are literally multiple delayed-choice experiments running simultaneously, and the worm's body β€” the correlation between what its arms hold β€” is the coherence structure among the retrieved sheets.
69
+
70
+ **Corollary 2.2 (Branch-valued body).** Where the correlation surface has degenerate peaks, the worm's grip is branch-valued: which past its arms hold is not determined by the signal alone but by which attractor the adaptation dynamics currently occupy. The worm's body is a section over the lag bundle, and **on a periodic signal the section is not flat** β€” transporting the worm around a loop of one period \(T\) returns it to an indistinguishable grip. The worm lives inside the monodromy of its own substrate.
71
+
72
+ ### 2.3 The freeze operator
73
+
74
+ **Definition 2.3 (Bradyon / time-stop).** The freeze operator \(\mathcal{F}\) acts on the worm's world:
75
+
76
+ $$
77
+ \mathcal{F}:\quad \dot{S}(t) \mapsto 0, \qquad \dot{a}_i \text{ free}
78
+ $$
79
+
80
+ β€” the signal's flow is suspended; the worm's internal degrees of freedom remain live. During \(\mathcal{F}\), the worm may reposition its arms against the *frozen* signal; on release (\(\mathcal{F}^{-1}\)), the signal resumes and the worm continues from its new grip.
81
+
82
+ This is the object the user's description names precisely: *"stopping time to adjust its arms."* The freeze is not physics-breaking; it is **sampling suspension** β€” the adapter halts its intake so that its reconfiguration does not corrupt the measurement it is reconfiguring *for*. Every real adaptive system contains a freeze: the camera's shutter, the FFT's window, the debugger's breakpoint, the Held-Karp pause before the next move.
83
+
84
+ ---
85
+
86
+ ## 3. The theorems
87
+
88
+ ### 3.1 The Dance Theorem
89
+
90
+ **Theorem 3.1 (Dance on a periodic substrate).** Let the substrate \(S\) be periodic with period \(T\). Then the worm's grip quality is invariant under arm-transport by \(T\):
91
+
92
+ $$
93
+ g(\{\tau_i\}) \;=\; g(\{\tau_i + T\})
94
+ $$
95
+
96
+ and the adaptation dynamics \(\mathcal{A}\) cannot distinguish the true lag from its period-images. The worm's trajectory on the surface is a **dance among monodromy-equivalent attractors**, and no amount of adaptation within the periodic family resolves the ambiguity.
97
+
98
+ *Content.* This is exactly what the bench showed: the comb of near-equal lobes, the worm undulating among them. The ambiguity is not the worm's failure β€” it is a **property of the substrate**. A periodic past is a past with monodromy: loop it and you return to the same configuration, so "which cycle am I gripping?" has no answer in the signal. The worm dances because its world is ambiguous. ∎
99
+
100
+ **Corollary 3.2 (The worm is the ambiguity, made visible).** The undulation amplitude of the correlation worm is a *measurement of the substrate's monodromy*. A still worm on a flat surface means the past is uniquely addressable; a dancing worm means the past repeats and the branch choice is live. The worm is a **monodromy detector** β€” arguably its deepest function.
101
+
102
+ ### 3.2 The Bradyon Theorem
103
+
104
+ **Theorem 3.2 (Repositioning requires the freeze).** Let the arm update law be \(\dot{a}_i = \mathcal{A}(g, S)\) and let the signal flow couple to arm position (measuring drags the measurer: the \(\tau_i\) shifts as the window slides under it). Then repositioning during flow introduces a systematic error proportional to the product of flow rate and arm travel; the freeze \(\mathcal{F}\) eliminates the term exactly.
105
+
106
+ *Proof sketch.* During flow, arm motion and signal motion compose: the arm's effective displacement is \(\dot{a}_i + v_S\), and the grip quality it evaluates is evaluated *at a moving point* β€” the measurement is taken of a state the arm has already left. Under \(\mathcal{F}\), \(v_S = 0\) and the evaluation is at a fixed point: the repositioning is against the actual signal, not a smeared one. ∎
107
+
108
+ *Interpretation.* This is the Heisenbug theorem of the Temporal Surgery paper, transposed up one level: *an error (or an adaptation) that moves under observation must be observed under a freeze.* The worm that adjusts its arms mid-flow is debugging a moving target β€” the arms land where the signal *was*. Stopping time is the only way to place a grip against a present rather than a past.
109
+
110
+ ### 3.3 The aperiodic patch
111
+
112
+ **Theorem 3.3 (Aperiodicity collapses the comb).** If the substrate's band sequence is made aperiodic over the observable window (no repeated stretch longer than the worm's arm span), the correlation surface has a **unique global attractor**, the dance terminates, and the worm grips at the true lag with \(\rho \to 1\).
113
+
114
+ *Content.* The patch already implemented on the bench β€” shuffling the band order so no short stretch repeats β€” removes the period-degeneracy: no two stretches of the emitted past are alike, so exactly one lag makes the received signal match the emitted one. The monodromy is broken; the section over the lag bundle becomes flat; the worm stops dancing **because there is exactly one place to grip**. ∎
115
+
116
+ *Corpus echo.* This is the Flat-Section Test run in reverse: we did not ask which claims survive the deformation β€” we *deformed the substrate* until the surviving claim (the true lag) was unique. The aperiodic patch is to the correlation worm what hysteretic marking is to the digital rollback: it prices the loop, so the flat transport that made the branches interconvertible no longer exists.
117
+
118
+ ### 3.4 The worm in the corpus hierarchy
119
+
120
+ | Corpus concept | Worm counterpart |
121
+ |---|---|
122
+ | Lag bundle (this paper) | The family of "which past" choices |
123
+ | Measurement frame (Retro-Window) | An arm |
124
+ | Decoherence ledger | The sliding window's *forgetting* β€” old windows are dry pages the worm cannot re-grip |
125
+ | Branch logic / Heisenbug | The dance itself: adaptation moving under its own observation |
126
+ | Curvature-coupled controller | \(\mathcal{A}\): steer by the surface's local gradient, bank off the lobes |
127
+ | CCT question lattice | Arm positions are questions; the grip quality is the collapse potential |
128
+ | Temporal Monodromy | The period-\(T\) transport invariance β€” the worm's world is a loop |
129
+
130
+ The worm is not a new structure in the corpus; it is **the corpus's whole security family, instantiated as one organism** β€” a creature whose body is a section, whose arms are frames, whose dance is monodromy, and whose meal is a time series.
131
+
132
+ ---
133
+
134
+ ## 4. The algorithm
135
+
136
+ ```text
137
+ Input: time series S(t) flowing at rate v
138
+ worm W with n arms, grip budget G
139
+ Output: stable grip at (a hypothesis of) the true causal lag
140
+
141
+ 1. GRIP Extend all arms to their current lags {Ο„_i}; measure ρ(Ο„_i)
142
+ against the frozen window content.
143
+ 2. EVAL g = Ξ£ w_i ρ(Ο„_i). If g above threshold for K consecutive
144
+ freezes: HOLD (the worm rests; the grip is the answer).
145
+ 3. BRADYON Freeze the intake: F β€” suspend sampling. The window stops
146
+ sliding; the surface is now static.
147
+ 4. ADJUST Move each arm along the local gradient of the (now static)
148
+ correlation surface; keep the arm-span constraint; pay the
149
+ travel price from G.
150
+ 5. RELEASE Unfreeze; resume the flow; re-evaluate. If grip improved,
151
+ keep the configuration; else revert (hysteretic acceptance β€”
152
+ the worm remembers which grips paid).
153
+ 6. LOOP Until HOLD or budget exhausted.
154
+ ```
155
+
156
+ Step 3 is the signature move and the paper's namesake act: no step 4 is trustworthy without it. The worm that adjusts during flow dances forever; the worm that pauses, adjusts, and resumes *converges*.
157
+
158
+ ---
159
+
160
+ ## 5. The experiment
161
+
162
+ The Scroll-Causality Bench is the experiment, and its two conditions are the two theorems:
163
+
164
+ - **Periodic substrate (Theorem 3.1):** the correlation worm dances β€” the lobes comb the lag axis at period multiples, ρ oscillates as the window slides, and the reported lag flickers among monodromy-equivalent branches. Observed: Ο„ = 5 frames, ρ = 0.995 at the peak, with the surrounding comb undulating exactly as predicted.
165
+ - **Aperiodic substrate (Theorem 3.3):** with the shuffled band sequence, the comb collapses to a single peak; the worm's dance terminates; Ο„ reads stably and the per-class causality table (TIMELIKE for hard edges and uniform colors, SPACELIKE for noise) locks in.
166
+
167
+ The predicted signature distinguishing the two regimes: **dance amplitude**. Define \(A = \mathrm{std}(\tau^*(t))\) over the run. Prediction: \(A\) is large on the periodic substrate and near zero on the aperiodic one, *at identical observer noise*. The dance measures the substrate's monodromy, not the observer's quality β€” a worm that dances less is not a better worm; it is a worm standing on firmer ground.
168
+
169
+ ---
170
+
171
+ ## 6. Honest limits
172
+
173
+ 1. **The worm is a controller, not an organism.** The biological vocabulary is a specification language, not a claim of life. What is real: the surface, the attractors, the freeze, the convergence. What is metaphor: the hunger, the intent, the skin.
174
+ 2. **"Stopping time" is suspension of sampling.** \(\mathcal{F}\) halts the worm's intake, not physics. The universe's own ledger keeps writing during the freeze (decoherence does not pause for the observer) β€” the worm's freeze is local and epistemic, the Retro-Window's sealing is global and ontological. The two must not be conflated.
175
+ 3. **Aperiodicity is local.** Theorem 3.3 holds over the observable window. A substrate aperiodic on the window but periodic on a longer scale simply moves the monodromy beyond the worm's reach β€” which is the Curvature Limit's lesson: every adapter has an aperture, and beyond the aperture the branches re-fuse.
176
+ 4. **Grip quality β‰  truth.** High ρ certifies *causal coupling*, not correctness of the retrieved past. The attack class of the Retro-Window paper remains open against the worm: an adversary who forges a substrate whose comb has a planted global attractor feeds the worm a confident grip on a forged past. The worm's detector set (too-clean width, aperture audit, web correlation) must run alongside it.
177
+
178
+ ---
179
+
180
+ ## 7. Open problems
181
+
182
+ 1. **Multi-worm dynamics.** Two worms on one substrate: do they share arms, compete for attractors, or lock (the coupling of the telepathy corpus, transposed to lag space)?
183
+ 2. **The worm's thermodynamics.** Grip travel costs budget; the freeze itself has a price (missed samples). What is the optimal bradyon schedule β€” and does it converge to the Curvature Limit's sampling bound \(h < C/\sqrt{\kappa}\), with \(\kappa\) now the correlation surface's curvature at the arm?
184
+ 3. **Self-periodizing worms.** Can a worm's own adaptation *induce* apparent periodicity in its reported structure β€” a worm that hallucinates a repeating past because its arms are spaced at a rhythm? (The bench's warm-up transient suggests yes.)
185
+ 4. **The live worm.** Implement \(\mathcal{F}\) literally on the bench: pause the scroll, re-solve the lag against the frozen frame, resume. Measure the convergence speedup of frozen adjustment over flowing adjustment β€” the Bradyon Theorem's quantitative test.
186
+ 5. **Worms on the redshift channel.** The substrate delivered through the aperture law is blurred and spectrally tilted; the worm's grip on the deep past is necessarily coarse. Where does the worm's arm span meet the aperture floor β€” and what does a worm do when its arms are wider than the structure it grips?
187
+
188
+ ---
189
+
190
+ ## 8. The principle, stated
191
+
192
+ > **Temporal Worm Principle.** An adapter to a time series is a worm: its body is a section over the lag bundle, its arms are measurement frames reaching into the past, its dance is the monodromy of a periodic substrate made visible, and its single executive act β€” bradyon, the stopping of time to adjust its arms β€” is the only condition under which repositioning measures the present rather than a smearing of it. The worm dances because its world repeats; patch the world to be aperiodic and the dance stills, not because the worm got better, but because its past became addressable. **You do not fix a dancing worm. You fix the ground it dances on.**
193
+
194
+ Or in the corpus's voice: *the worm on the correlation surface was never an artifact β€” it was the monodromy of the test signal wearing a body. Every adapter that reaches into a flowing series must occasionally stop the flow to move its hands, and every periodicity in what it grips is a loop it cannot tell from progress. Give it a past with no repeated pages, and it grips once, firmly, and rests.*