Repository navigation
research: exclude eight calls for one GL3 dirty-register target - #4211
Mister-Meeseeks merged 1 commit into
Conversation
|
Independent scoped audit of the GL3 eight-call exclusion package at Code-disjoint checks; does not import package What passes (12 of 12):
Not covered: live Glucose / drat-trim replay; encoding-equivalence human review; proof-assistant formalization; new κ; any claim beyond this one fixed target. This is a finite replay of committed seals and digests, not a formal proof. The package’s own trust boundary correctly leaves model equivalence on check_4211.py#!/usr/bin/env python3
"""Independent finite controls for PR4211 (GL3 eight-call exclusion).
Recomputes pin / seal / digest / certificate-metadata / MANIFEST agreement
from committed package files. Does not import package verify.py; does not
re-run Glucose or drat-trim on the 108MB uncompressed length-8 RUP.
Package head ca0002008b497428f0b651501c4a220a9d2785e7 via GitHub API.
James Reed (@rcfc-jreed), with substantial AI assistance (Claude, in Cursor).
Apache-2.0.
"""
from __future__ import annotations
import argparse, gzip, hashlib, json, sys
from pathlib import Path
HEAD = "ca0002008b497428f0b651501c4a220a9d2785e7"
BASE = "12fa8c5c844be21bfefb38a19503fbd867a11244"
TARGET = [[1, 4, 3], [2, 4, 3], [1, 2, 4]]
results = []
def check(name, ok, detail=""):
results.append((name, bool(ok), detail))
print(("PASS " if ok else "FAIL ") + name + ((": " + str(detail)) if detail else ""), flush=True)
return bool(ok)
def load(pkg, name):
return json.loads((pkg / name).read_text(encoding="utf-8"))
def sha_bytes(data: bytes) -> str:
return hashlib.sha256(data).hexdigest()
def sha_file(path: Path) -> str:
return sha_bytes(path.read_bytes())
def run(pkg: Path):
task = load(pkg, "TASK.json")
sources = load(pkg, "SOURCES.json")
result = load(pkg, "RESULT.json")
certs = load(pkg, "CERTIFICATES.json")
checker = load(pkg, "CHECKER.json")
nine = load(pkg, "DIRECT_NINE.json")
validation = load(pkg, "VALIDATION.json")
readme = (pkg / "README.md").read_text(encoding="utf-8")
check("I1 TASK/SOURCES base_commit == 12fa8c5c…",
task["base_commit"] == BASE == sources["base_commit"])
check("I2 RESULT FIXED_TARGET_MINIMUM_NINE; CERTIFICATES CNF_UNSAT; claimed_minimum 9",
result["status"] == "FIXED_TARGET_MINIMUM_NINE"
and result["general_frontier_change"] is False
and certs["status"] == "CNF_UNSAT_INDEPENDENTLY_CHECKED"
and certs["claimed_minimum"] == 9)
check("I3 VALIDATION: original/cnf controls PASS; both publication replays s VERIFIED",
validation["original_controls"] == "PASS"
and validation["cnf_controls"] == "PASS"
and len(validation["publication_proof_replay"]) == 2
and all(r["result"] == "s VERIFIED" for r in validation["publication_proof_replay"]))
by_len = {c["length"]: c for c in certs["certificates"]}
check("C1 certificates for lengths 7 and 8 only; shared target diag([A],[B],[I])",
set(by_len) == {7, 8}
and all(c["target_row_masks"] == TARGET for c in certs["certificates"]))
digest_ok = []
for length in (7, 8):
c = by_len[length]
cnf = pkg / c["cnf"]
gz = pkg / c["proof_gzip"]
raw = gzip.decompress(gz.read_bytes())
lines = sum(1 for line in raw.splitlines() if line.strip())
digest_ok.append(
cnf.is_file()
and cnf.stat().st_size == c["cnf_bytes"]
and sha_file(cnf) == c["cnf_sha256"]
and len(raw) == c["proof_bytes"]
and sha_bytes(raw) == c["proof_sha256"]
and lines == c["proof_lines"]
and c["original_checker"]["result"] == "s VERIFIED"
and c["original_checker"]["exit_code"] == 0
)
log = (pkg / f"proofs/length{length}-checker.log").read_text(encoding="utf-8")
digest_ok.append("s VERIFIED" in log and str(c["variables"]) in log)
check("C2 CNF/RUP digests, sizes, line counts, and checker logs match certificates",
all(digest_ok), digest_ok)
check("C3 length counts: L7 vars/clauses 18882/61138; L8 30591/97770; L8 proof_bytes=108920783",
by_len[7]["variables"] == 18882 and by_len[7]["clauses"] == 61138
and by_len[8]["variables"] == 30591 and by_len[8]["clauses"] == 97770
and by_len[8]["proof_bytes"] == 108920783)
check("C4 DIRECT_NINE upper bound: 9 paid factors; status is known positive control",
len(nine["word_uvij"]) == 9
and nine["status"] == "known_positive_control_not_a_new_eight_call_result")
check("D1 drat-trim.c sha256 matches CHECKER.source_sha256; binary pin recorded",
sha_file(pkg / "third_party/drat-trim/drat-trim.c") == checker["source_sha256"]
and checker["checker_binary_sha256"] == by_len[7]["checker_binary_sha256"]
== by_len[8]["checker_binary_sha256"]
and all(t["passed"] for t in checker["tests"]))
# MANIFEST covers every package file except itself
manifest_lines = (pkg / "MANIFEST.sha256").read_text(encoding="utf-8").strip().splitlines()
bad = []
seen = set()
for line in manifest_lines:
digest, path = line.split(None, 1)
local = pkg / path
seen.add(path.replace("\\", "/"))
if not local.is_file():
bad.append(("missing", path))
elif sha_file(local) != digest:
bad.append(("mismatch", path))
all_files = {p.relative_to(pkg).as_posix() for p in pkg.rglob("*") if p.is_file()}
expected = all_files - {"MANIFEST.sha256"}
check("D2 MANIFEST.sha256: all 34 entries match local bytes; covers every non-manifest file",
not bad and seen == expected,
{"bad": bad, "missing_from_manifest": sorted(expected - seen),
"extra": sorted(seen - expected), "n": len(manifest_lines)})
check("N1 scope: no new kappa / selected frontier; encoding equivalence not human-reviewed",
"no new kappa" in readme.lower()
and "independent human review" in readme.lower()
and "outstanding" in validation["human_review"]
and "not independently human-reviewed" in certs["model_equivalence"].lower())
check("N2 RESULT trust_boundary points at CNF checker + ENCODING_AUDIT; eight-call is new_scope",
"ENCODING_AUDIT.md" in result["trust_boundary"]
and "eight" in result["new_scope"].lower()
and result["reproduced_scope"].lower().startswith("exactly-seven"))
failed = [name for name, ok, _ in results if not ok]
print(f"\n{len(results) - len(failed)}/{len(results)} PASS", flush=True)
if failed:
print("FAILED:", ", ".join(failed), flush=True)
return 1
return 0
def main():
ap = argparse.ArgumentParser()
ap.add_argument("--pkg", required=True)
ap.add_argument("--expect-head", default=HEAD)
args = ap.parse_args()
check("HEAD pin recorded (API fetch)", args.expect_head == HEAD, args.expect_head)
return run(Path(args.pkg))
if __name__ == "__main__":
sys.exit(main())James Reed (@rcfc-jreed), with substantial AI assistance (Claude, in Cursor). |
Change and mathematical scope
The third-register probe in #1974 excluded savings through seven paid calls and left length eight open. This package excludes eight calls for the fixed direct-nine target
diag([A],[B],[I]),A=(1,4,3),B=(2,4,3)in row-mask notation.In the exact model
M3(F2[GL3(F2)]), with an arbitrary third input restored exactly, this target has minimum nine paid calls. Each position ranges over all six coordinate-CNOT labels and all 28 binary rank-one idempotents: 168 allowed factors, with free scalar mixing normalized as in the predecessor. The encoding checks all full group-algebra coefficients.The evidence is two saved CNFs with independently checked RUP proofs, a documented equivalence argument, and exact replay of the known direct-nine construction. The seven-call certificate reproduces prior coverage. The new scoped contribution is the eight-call exclusion. Involutivity and pair padding combine the seven/eight exclusions into a lower bound of nine.
This does not establish a new kappa, selected frontier, general integer-multiplication bound or physical implementation. The external proof checker certifies the CNFs; independent human review of their equivalence to the stated model remains outstanding.
Task and overlap
12fa8c5c844be21bfefb38a19503fbd867a11244, priority revision 7.a4992da8e4e81a74cf1fd2b2d3af948662476d6e. The relevant predecessor package trees are identical at these pins.Validation
s VERIFIED, 2.003 ss VERIFIED, 164.347 sAccepted proofs came from Glucose4 through PySAT 1.9.dev17. The separate DRAT-trim checker is pinned at
2e3b2dc0ecf938addbd779d42877b6ed69d9a985, run with-Uto accept only RUP additions. Its unchanged source and MIT license are included; no executable is committed.The package README gives full commands. From the package directory:
CERTIFICATES.json contains exact hashes and original checker records. The gzip payloads preserve the accepted proofs exactly. Fresh publication-package verification regenerates both CNFs and replays both proofs; the known nine-call word passes all 504 regular basis inputs. Controls cover all 168 factors, formal-vs-natural aliases, dirty-register restoration, Boolean gate equivalence, and fixed-word positive/negative cases.
The earlier native Z3 trace was rejected and contributes no proof credit. Its hash, size and diagnostics are retained in
FAILED_ATTEMPTS.json; the unnecessary 182 MB failed trace and machine-specific logs are omitted. Timeouts are not treated as proofs. The first eight-call worker's peak memory is unknown because its original monitor sampled the Windows launcher; this limitation is disclosed.No broad predecessor census, Lean proof, or full multiplication-theorem replay was run. This isolated package does not change shared code or the selected result. The remaining trust obligations are explicit in ENCODING_AUDIT.md.
Credit
Brian Ross contributed the conceptual search strategy, proposed transferring the constraint-search approach developed in his earlier Jane Street work, and provided research direction and oversight. Implementation, computational checks and documentation used substantial OpenAI Codex assistance. The model and prior bounds build on Hanson Sun's seed18 package and Josie Elliston's length10 package and three-register probe. Their attribution is retained, together with the checker license.
Open next questions
The smallest useful next step is an independent review of the encoding equivalence and support argument, followed by proof replay on another platform. A broader fixed-target campaign would require its own overlap check, scope and resource assessment. See the package's open questions; this PR does not claim to answer them.