diff --git a/docs/ci-verification.md b/docs/ci-verification.md index 63ba3e9aa8..52b62d0481 100644 --- a/docs/ci-verification.md +++ b/docs/ci-verification.md @@ -1,8 +1,25 @@ # CI verification -## Current selected-family replay: #6030 +## Current selected-family replay: #7000 with #7001 The [selected record](../certificates/selected-result.json) binds conditional +κ = 0.00363005817 to the [application review](research/pr-intake-evidence/pr7000-application/PROOF-REVIEW.md), +[validation receipts](research/pr-intake-evidence/pr7000-application/VALIDATION.json), +and [explicit source closure](../certificates/frontier7000-source.json). +`make frontier7000-verify` follows that exact-source selected replay. The review +reuses eleven authenticated preceding executions and records seven fresh serial +application, scalar and complete native-catalogue executions. The earlier +monolithic timeout is retained separately and is not completed coverage. +Consult the receipts for exact commands, source heads and limits. + +The five inherited framework assumptions remain. No complete uniform word, +literal multiplier execution, independent human proof or formal-kernel proof +is asserted. Routine research submissions do not need to rerun this +selected-family replay. The sections below preserve historical checkpoints. + +## Historical selected-family replay: #6030 + +The [historical checkpoint](../certificates/checkpoints/frontier6030.json) binds conditional κ = 0.003125804 to the [proof review](research/pr-intake-evidence/pr6030-audit/PROOF-REVIEW.md), [validation receipts](research/pr-intake-evidence/pr6030-audit/VALIDATION.json), and [explicit source closure](../certificates/frontier6030-source.json). diff --git a/research/historical-selected-replay-gap/README.md b/research/historical-selected-replay-gap/README.md index 55d8cc3b49..36d9a873ca 100644 --- a/research/historical-selected-replay-gap/README.md +++ b/research/historical-selected-replay-gap/README.md @@ -69,7 +69,11 @@ python3 -B scripts/research_package.py --package research/historical-selected-re The direct command prints `PASS_HISTORICAL_SELECTED_REPLAY_GAP`. A registered replay prints `PASS_REGISTERED_RESEARCH_PACKAGE`. Both require Git history -containing the two inspected commits. +containing the two inspected commits and the source and manifest objects at +`2485805a6d47f36ea83ddde6327d453ac82d44dc`. The verifier uses a temporary +sparse checkout of that commit, checks the declared source digests there, and +uses its planner and manifest inventory. The recorded rejections and selection +therefore remain reproducible after later changes to the live Makefile or CI guide. ## Open next questions diff --git a/research/historical-selected-replay-gap/SOURCES.json b/research/historical-selected-replay-gap/SOURCES.json index c1010eec95..62bb8b3950 100644 --- a/research/historical-selected-replay-gap/SOURCES.json +++ b/research/historical-selected-replay-gap/SOURCES.json @@ -4,13 +4,13 @@ "files": [ { "path": "Makefile", - "usage": "input", + "usage": "provenance", "git_blob": "0d683a06b9e7ee162496108ce9a7c5d2ee94fccf", "sha256": "4f2d4f2dcd15139ec82658a975f85ed300897385f85799218539f4c8d60567da" }, { "path": "certificates/partial-swap-network.json", - "usage": "input", + "usage": "provenance", "git_blob": "eccafa830c16170c36faf93045ddf1f638f7bcd4", "sha256": "4c0b9d37e1034b2076e30a70f8e514416298c462d9ee98bc87fe6556b14df786" }, @@ -22,7 +22,7 @@ }, { "path": "docs/ci-verification.md", - "usage": "input", + "usage": "provenance", "git_blob": "63ba3e9aa8bdc5e942b56e34244b92b16f854085", "sha256": "c7d3027e9ad8bcbff68f07aa9576b30fb2f3c76c44d876d40c7fdbf4a3e2228a" }, @@ -34,163 +34,163 @@ }, { "path": "research/clifford-state-performance/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "6f98a0061a5104dfab82c9e806f819b41811f684", "sha256": "396d0f08df24952248140d5c65c51b8c902ef1c580892ff7ea182890530f67ee" }, { "path": "research/community-batch1047-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "5e0f92af463ec12c5e1dcc3effd44081a88af647", "sha256": "07a9daeaf2bda308a92e9a4684f13d5fc766c7772d74801fceb7f4599fdab226" }, { "path": "research/community-batch1099-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "9e13266bf85e627f1b7dc225e9530ea69fd2c7f0", "sha256": "421e1211fb1897c45621dc6801c276e53f2e6f335583c9c9049e535f87c0a3b1" }, { "path": "research/community-batch932-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "cc4d03eb59b9ab3f952735f7e88ff18c2d15d7af", "sha256": "184629cac91a5cfaca50330a88596008b824221433867dcf8117539c913c284a" }, { "path": "research/community-batch970-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "8b9f4111badf7de5d97684799560b55110e9da79", "sha256": "23188ed920e38a54006cb883e181585620821c63bf7e8b5e05d32719417cc37e" }, { "path": "research/community-frontier741-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "a5300d4e7a5381a3f443fc54c768ca6f0f236d68", "sha256": "3c820fb30e1b4d9bcfc6a7ab524375e5b2abd66b940af2c509146104f0bcd79c" }, { "path": "research/community-frontier890-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "d7ff6d777b01d69b6ce84caf25d3b7e4a4d2f211", "sha256": "6b185a9902652f893f3ebd8ada92d2f11b6de6533a9a4d11718a8a4496101128" }, { "path": "research/community-hyperplane599-audit/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "546f37d326d10a99910ae8f908e71ef768524d98", "sha256": "65099d764bfcc39bda5e4d9966783611b094c3522dbdd1435cd498d657a8ef8e" }, { "path": "research/community-k492-audit/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "e538481e4cb16ed936d3195f2dfb5b5a9ca0a76b", "sha256": "2c0f4fa5bc150d05658af2e7c54c4d2c337dd52b7efd3d69530ae73bcbdf452a" }, { "path": "research/community-reconciliation92-audit/MANIFEST.json", - "usage": "input", + "usage": "provenance", "git_blob": "2a2e93685173d5f13cbb5abe740f5d90352e0228", "sha256": "5f501f3c118131e7d069f30ad77186eb2ad6961f9680a0ef105f4514ed41808a" }, { "path": "research/partial-swap-digest/baseline.py", - "usage": "input", + "usage": "provenance", "git_blob": "a2f0190704db83bd8ef48e46e723c49b925804fe", "sha256": "81e9af92cdf38243a540cdcff2062778e449467848d444da37a9553c12ca4c34" }, { "path": "research/r420-two-sided-basis/SOURCES.json", - "usage": "input", + "usage": "provenance", "git_blob": "5d718e11e62f4bcadecf1e02d6b61f87dbe190b0", "sha256": "d9810b0d139c5a1211fd2c1f0d142187cc1fca30026e1e7bc4f9ecfacf1596d1" }, { "path": "research/skip-clones/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "8d1bb3b9c8189e35e5d8bfdfa632d7473e8be0d5", "sha256": "0b68e63e35a97ce6b0cdb6e291b88ebaa8f2dd4afb70b2498f10ee89428258dc" }, { "path": "research/split-skip/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "2ab610b6ea2edd2865fda793ef2168b0c76afb4f", "sha256": "7c2b4646a3ecfef6f881da5c43e4bd0fa9a4d1b00548b8ab458d897e16735134" }, { "path": "scripts/historical-ci-inputs/Makefile", - "usage": "input", + "usage": "provenance", "git_blob": "aff68409021c9d401a6f8013b9dfd7dbcc30f2a8", "sha256": "ea8830dd79da493e2d75baf753d733ff7efbcf2b4794afe41fae0ac8f3055646" }, { "path": "scripts/historical-ci-inputs/ledger-batch932-run_isolated_tests.py", - "usage": "input", + "usage": "provenance", "git_blob": "65db599ab0b1dea0312c4ca048e0bd0f44c3736f", "sha256": "96ea543e6c707424afe247e77bd86c82152f90fc76a0773c4232145da5cdf8d1" }, { "path": "scripts/historical-ci-inputs/ledger-batch932-test_isolated_test_runner.py", - "usage": "input", + "usage": "provenance", "git_blob": "34820a8f24678f918f4d0e7a35380d8013fc3495", "sha256": "628391b6abfbc8674ceec1751867a4392f2cc0b5b66886243e139af86cf355ac" }, { "path": "scripts/historical-ci-inputs/ledger-batch970-verify_selected_result.py", - "usage": "input", + "usage": "provenance", "git_blob": "c755b76e0d44ba4917aa94440ebe54daefce5b2a", "sha256": "d7fd929726b326aeeaf0a3996475adec88eee9aac09ae0bebeeaa0bc1fc8f199" }, { "path": "scripts/historical-ci-inputs/ledger-frontier741-ci-verification.md", - "usage": "input", + "usage": "provenance", "git_blob": "7f3c012504187917a728b9fe87043f0fc8cd006a", "sha256": "a854022e0e1d5d4db4d60e586be3ea56005013ef14a1fc06d02bc06e8529c4b0" }, { "path": "scripts/historical-ci-inputs/partial-swap-context.json", - "usage": "input", + "usage": "provenance", "git_blob": "ad65114886bf34a4fd27e79f3be502389e689faa", "sha256": "833a9642f33aeab2ffea17ec9c6b82e0a953f90192b2c82e10bef21538dccba9" }, { "path": "scripts/historical-ci-inputs/partial-swap-network.json", - "usage": "input", + "usage": "provenance", "git_blob": "52075f2463f60af5e16571347f24274fce73a1ea", "sha256": "f3c4be597b2f2136da4ae2cc80c7454f63c90aa01f84e5b8131cee4dd55de815" }, { "path": "scripts/partial_swap/shared.py", - "usage": "input", + "usage": "provenance", "git_blob": "44a0e454c70f9c4b98e258b8443612e6a119904b", "sha256": "5a0646a50b9f3e8ea55168620a78e8853b0ab810517cefc8cfb8696aedee278a" }, { "path": "scripts/replay_historical_check.py", - "usage": "input", + "usage": "provenance", "git_blob": "1e92fff2782970ef71378f594f2350d245a4db26", "sha256": "5467619c78183d3adc82b0cb55af28e5c1a01fca2b0588677816244b53e2bafd" }, { "path": "scripts/research_package.py", - "usage": "input", + "usage": "provenance", "git_blob": "091b4c8f58bac9a9580d76025b887dc5c873d05f", "sha256": "e1256016e7f51827d04fa2179255989f639ae1d97afaa9c16265f85a0c6abd70" }, { "path": "scripts/run_isolated_tests.py", - "usage": "input", + "usage": "provenance", "git_blob": "a96ab35b315ce492e7fbbfd6c5ae211aa066b541", "sha256": "49eb56dd0fc0d8d8ffdb209970a7adf2176223580646f575d5c22e59543b381c" }, { "path": "scripts/verify_selected_result.py", - "usage": "input", + "usage": "provenance", "git_blob": "6882a4700e410dec569b51ae2eaf1a19cc019195", "sha256": "d6b305eac5b9bdb8172c469ad30a1655a60fa0aceac8b1bf610e1b73f51babd8" }, { "path": "tests/test_isolated_test_runner.py", - "usage": "input", + "usage": "provenance", "git_blob": "343b24abf6719b81805eba5a84c74e57634c8288", "sha256": "3a5470d0b139828b90e19bf9583ddeafcd69f8e34f2824664eb3a2958a52e34d" } diff --git a/research/historical-selected-replay-gap/VERIFY.json b/research/historical-selected-replay-gap/VERIFY.json index 98553e72ed..ab7efa3471 100644 --- a/research/historical-selected-replay-gap/VERIFY.json +++ b/research/historical-selected-replay-gap/VERIFY.json @@ -4,36 +4,7 @@ "python": "3.12", "requirements": [], "inputs": [ - "Makefile", - "certificates/partial-swap-network.json", - "docs/ci-verification.md", - "research/clifford-state-performance/SOURCE.json", - "research/community-batch1047-audit/CONTENT-COVERAGE.json", - "research/community-batch1099-audit/CONTENT-COVERAGE.json", - "research/community-batch932-audit/CONTENT-COVERAGE.json", - "research/community-batch970-audit/CONTENT-COVERAGE.json", - "research/community-frontier741-audit/CONTENT-COVERAGE.json", - "research/community-frontier890-audit/CONTENT-COVERAGE.json", - "research/community-hyperplane599-audit/SOURCE.json", - "research/community-k492-audit/SOURCE.json", - "research/community-reconciliation92-audit/MANIFEST.json", - "research/partial-swap-digest/baseline.py", - "research/r420-two-sided-basis/SOURCES.json", - "research/skip-clones/SOURCE.json", - "research/split-skip/SOURCE.json", - "scripts/historical-ci-inputs/Makefile", - "scripts/historical-ci-inputs/ledger-batch932-run_isolated_tests.py", - "scripts/historical-ci-inputs/ledger-batch932-test_isolated_test_runner.py", - "scripts/historical-ci-inputs/ledger-batch970-verify_selected_result.py", - "scripts/historical-ci-inputs/ledger-frontier741-ci-verification.md", - "scripts/historical-ci-inputs/partial-swap-context.json", - "scripts/historical-ci-inputs/partial-swap-network.json", - "scripts/partial_swap/shared.py", - "scripts/replay_historical_check.py", - "scripts/research_package.py", - "scripts/run_isolated_tests.py", - "scripts/verify_selected_result.py", - "tests/test_isolated_test_runner.py" + "scripts/research_package.py" ], "commands": [ { diff --git a/research/historical-selected-replay-gap/verify.py b/research/historical-selected-replay-gap/verify.py index 83b995941a..9d266c5a4e 100644 --- a/research/historical-selected-replay-gap/verify.py +++ b/research/historical-selected-replay-gap/verify.py @@ -6,8 +6,10 @@ """ import hashlib import importlib.util +import json import subprocess import sys +import tempfile from pathlib import Path ROOT = Path(__file__).resolve().parents[2] @@ -61,31 +63,47 @@ def require(ok, message): raise SystemExit(message) -def load_checker(): - path = ROOT / "scripts/replay_historical_check.py" - spec = importlib.util.spec_from_file_location("historical_selected_replay_gap_checker", path) +def load_module(path): + spec = importlib.util.spec_from_file_location(path.stem, path) module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module +def checkout_snapshot(snapshot, sources, runner, env): + paths = [runner.canonical_relative_path(row["path"]) for row in sources["files"]] + git = ["git", "-c", "maintenance.auto=false", "-c", "gc.auto=0", + "-c", "core.autocrlf=false"] + subprocess.run([*git, "clone", "--quiet", "--shared", "--no-tags", "--no-checkout", + "--", str(ROOT), str(snapshot)], cwd=ROOT, env=env, check=True) + subprocess.run([*git, "update-ref", "--no-deref", "HEAD", INSPECTED], + cwd=snapshot, env=env, check=True) + # The pinned planner reads omitted manifests from the sparse HEAD/index. + patterns = "".join(f"/{path.as_posix()}\n" for path in paths) + subprocess.run([*git, "sparse-checkout", "set", "--no-cone", "--stdin"], + cwd=snapshot, env=env, input=patterns.encode("utf-8"), check=True) + subprocess.run([*git, "read-tree", "-mu", "HEAD"], cwd=snapshot, env=env, check=True) + for path, row in zip(paths, sources["files"], strict=True): + require(hashlib.sha256((snapshot / path).read_bytes()).hexdigest() == row["sha256"], + "historical checkout source digest changed: " + path.as_posix()) + + def entries(checker): for name, config in checker.CONFIG.items(): for entry in [config, *config.get("additional_inputs", [])]: yield name, entry -def reject(checker, entry): +def reject(root, checker, entry): try: - checker.authenticated_input(ROOT, entry) + checker.authenticated_input(root, entry) except ValueError as exc: return str(exc) raise SystemExit("historical input was admitted: " + entry["path"]) -def main(): - require(not sys.flags.optimize, "assertions must stay enabled") - checker = load_checker() +def check_snapshot(root, env): + checker = load_module(root / "scripts/replay_historical_check.py") selected = [entry for name, entry in entries(checker) if name == "tooling-ledger" and entry["path"] == SELECTED_PATH] require(len(selected) == 1, "selected-result checker overlay is not unique") @@ -94,7 +112,7 @@ def main(): require(entry["accepted_live_sha256"] == [SELECTED_ACCEPTED], "accepted selected-checker successors changed") frozen = (checker.INPUTS / entry["input"]).read_bytes() - live = (ROOT / SELECTED_PATH).read_bytes() + live = (root / SELECTED_PATH).read_bytes() require(hashlib.sha256(frozen).hexdigest() == SELECTED_PIN, "frozen selected checker bytes changed") require(hashlib.sha256(live).hexdigest() == SELECTED_LIVE, "live selected checker digest changed") require(SELECTED_LIVE not in (SELECTED_PIN, SELECTED_ACCEPTED), "live checker was already admitted") @@ -102,7 +120,7 @@ def main(): # live successor, not a broken comparison. require(SELECTED_PIN in (SELECTED_PIN, *entry["accepted_live_sha256"]), "pin membership control failed") - require(reject(checker, entry) == REJECTIONS[SELECTED_PATH][1], + require(reject(root, checker, entry) == REJECTIONS[SELECTED_PATH][1], "selected checker rejection text changed") counts = {path: 0 for path in REJECTIONS} @@ -110,7 +128,7 @@ def main(): for _name, item in entries(checker): if item["path"] not in REJECTIONS: continue - message = reject(checker, item) + message = reject(root, checker, item) counts[item["path"]] += 1 messages.setdefault(item["path"], message) for path, (count, message) in REJECTIONS.items(): @@ -118,20 +136,31 @@ def main(): require(messages[path] == message, "rejection text changed for " + path) require(sum(counts.values()) == 19, "rejection total changed") ci = [item for _name, item in entries(checker) if item["path"] == CI_PATH] - require(len(ci) == 1 and hashlib.sha256((ROOT / CI_PATH).read_bytes()).hexdigest() == CI_LIVE, + require(len(ci) == 1 and hashlib.sha256((root / CI_PATH).read_bytes()).hexdigest() == CI_LIVE, "selected CI note digest changed") diff = subprocess.check_output( - ["git", "diff", "--name-only", PARENT, INSPECTED], cwd=ROOT, text=True) + ["git", "diff", "--name-only", PARENT, INSPECTED], cwd=root, env=env, text=True) changed = sorted(name for name in diff.splitlines() if name) require(changed == CHANGED, "inspected commit diff changed") - sys.path.insert(0, str(ROOT / "scripts")) - from research_package import plan_details - details = plan_details(ROOT, set(changed)) + planner = load_module(root / "scripts/research_package.py") + details = planner.plan_details(root, set(changed)) require([row["package"] for row in details] == PLAN_PACKAGES, "helper plan selection changed") matched = {name for row in details for names in row["causes"].values() for name in names} require(sorted(set(changed) - matched) == UNMATCHED, "unmatched plan paths changed") - require(plan_details(ROOT, set()) == [], "empty change set selected a package") + require(planner.plan_details(root, set()) == [], "empty change set selected a package") + + +def main(): + require(not sys.flags.optimize, "assertions must stay enabled") + sources = json.loads(Path(__file__).with_name("SOURCES.json").read_bytes()) + require(sources["base_commit"] == INSPECTED, "historical checkout base changed") + runner = load_module(ROOT / "scripts/research_package.py") + env = runner.git_source_env() + with tempfile.TemporaryDirectory(prefix="historical-selected-replay-") as temporary: + snapshot = Path(temporary) / "snapshot" + checkout_snapshot(snapshot, sources, runner, env) + check_snapshot(snapshot, env) print("PASS_HISTORICAL_SELECTED_REPLAY_GAP") print("selected_checker_live=" + SELECTED_LIVE) print("rejections=19 distinct_paths=7 plan_packages=9") diff --git a/research/p104-bit-helper-hyperplanes/BINDING-NOTICE.md b/research/p104-bit-helper-hyperplanes/BINDING-NOTICE.md new file mode 100644 index 0000000000..10167a0c8a --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/BINDING-NOTICE.md @@ -0,0 +1,9 @@ +# Attribution + +Ali Romman prepared the single-band compiler, its physical epoch and receivers, the three finite installations, the square sieve, the connected activation proof and the new verification with substantial OpenAI Codex assistance. Separate Codex research workers examined the binary word and prices, Gaussian word and phases, and outer geometry. These checks are part of the author submission. Independent scientific review remains open. The package uses Apache License 2.0. [License](LICENSE) · [Working Discussion](https://github.com/CrocSwap/integer-mult-bounds/discussions/8028) · [Earlier contribution index](https://github.com/CrocSwap/integer-mult-bounds/discussions/7794) + +- Ali Romman’s [PR #8027](https://github.com/CrocSwap/integer-mult-bounds/pull/8027) supplies the two literal circuits, the scalar journals and the 36-call and 48-call schedules. The finite source identifies Clear1nsight’s iterated-return programs and independent scalar audit, and preserves the earlier contributor notices. This work implements the changed graphs on the physical receivers and checks their actual port, phase, movement, grid and ownership obligations. [Literal source and history](https://github.com/CrocSwap/integer-mult-bounds/blob/fb9b6a7b0d27da1cf98430893a3016bf811e2aa4/research/p104-live-relative-gain/README.md) · [Retained source notice](inputs/complex-source/PARENT-NOTICE) +- [PR #8029](https://github.com/CrocSwap/integer-mult-bounds/pull/8029) supplies the comparison prices at a fixed 768-factor delayed cover. Its normalized moment and later fortieth moment use the same raw circuits. Its authors retain credit for those price calculations. This construction reprices its own 128- and 228-factor physical programs. [Normalized price](https://github.com/CrocSwap/integer-mult-bounds/blob/a9dbc75e68e8c645df425adc489234d22df67f8d/research/p104-paired-delayed-cover/normalized/PROOF.md) · [Later moment price](https://github.com/CrocSwap/integer-mult-bounds/blob/c3837013dd7e2c50f6c3065c8f99d52a33b617bb/research/p104-paired-delayed-cover/weighted/moment/PROOF.md) +- Ali Romman’s [PR #7981](https://github.com/CrocSwap/integer-mult-bounds/pull/7981) supplies the triangular row charts, two-bank receiver, complete numerical packs and storage proof. [PR #7914](https://github.com/CrocSwap/integer-mult-bounds/pull/7914) supplies the independent low and high data, stack backing and signed product path. [PR #7868](https://github.com/CrocSwap/integer-mult-bounds/pull/7868) supplies the periodic owner groups, stopped ordinary service and fixed-head program. The archive contains the original license and notices. [Physical baseline](inputs/triangular/NOTICE.md) · [Fixed-head and flow credit](https://github.com/CrocSwap/integer-mult-bounds/blob/3f7c3c1f2a9a0963736562037e01fe41aec46b8c/research/bounded-general-multiplier/FLOW-NOTICE.md) +- Clear1nsight supplied the mixed binary cut in [PR #7830](https://github.com/CrocSwap/integer-mult-bounds/pull/7830). [PR #7837](https://github.com/CrocSwap/integer-mult-bounds/pull/7837) supplies rational projectors and joint charts. [PR #7846](https://github.com/CrocSwap/integer-mult-bounds/pull/7846) supplies uniform composition and two-input recovery. [PR #7849](https://github.com/CrocSwap/integer-mult-bounds/pull/7849) supplies the rational Fourier construction, its scalar grid and its certified local bounds. Source notices identify Dugongue and Rohan Arun for earlier prices, Nick Petalas for pivoted fallback, and Jose Manuel, Chafik and Vlado for predecessor Fourier work. [Projector history](https://github.com/CrocSwap/integer-mult-bounds/blob/a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e/research/grade14-native-realization/NOTICE.md) · [Numerical history](https://github.com/CrocSwap/integer-mult-bounds/blob/3615fd982f2f4dc7172bef6f0dc9a4f77d5ab6dd/research/direct-circulant-fourier/NOTICE.md) +- The pinned repository supplies balanced CRT and compact sequential routing. Lean and mathlib supply the kernel and its libraries. The three modules in this package are new proofs. The immutable dependency manifests retain upstream file hashes and source commits. [Dependency pins](SOURCES.json) · [Mathlib revision](https://github.com/leanprover-community/mathlib4/tree/d13f23b723b8a846827a245b89c10fc7d3f11612) diff --git a/research/p104-bit-helper-hyperplanes/LICENSE b/research/p104-bit-helper-hyperplanes/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/research/p104-bit-helper-hyperplanes/PARENT-NOTICE b/research/p104-bit-helper-hyperplanes/PARENT-NOTICE new file mode 100644 index 0000000000..fe51894a1a --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/PARENT-NOTICE @@ -0,0 +1,31 @@ +Mixed paid cutoffs for the P104 ordinary BIT supplier + +Prepared for Clear1nsight with substantial OpenAI Codex assistance. The +new schedule, directed comparison, occurrence controls, and documentation +are offered under Apache-2.0. + +verify.py adapts the Apache-2.0 verifiers from Dugongue's PR #7831 +(2d1fb9c878ae1e292cb918de40fa8e4f7fa7f75e) and Rohan Arun's PR #7835 +(43007c979859fa84ccc3a3509ccacc9620d181fa). Rohan Arun submitted #7835 +through the original X request at +https://x.com/RohanArun/status/2123655584797143516. The source manifest +retains the published #7835 NOTICE. + +Retained predecessor NOTICE from the grade-14 package follows. + +Iterated returns on the P104 ordinary suppliers + +Clear1nsight prepared the successor construction, explicit witnesses and verification +with substantial OpenAI Codex assistance, including independent computational checks. +The new material is offered under Apache-2.0. + +The exact starting words and the rational and binary replay interfaces are from +Clear1nsight's PR #7781. The paid and productive scalar operations, the 48-call +complex schedule, the punctured binary supplier and the common outer application +come from Ali Romman's PR #7776. The two paid projections build on the local +quotient and terminal repair in #7774 and #7781. The binary paired caller and +finite compiler use work by DreamingOfClouds, Jerry Chen (CubeJerry), zxv and the +contributors cited in their retained sources. SYLforge, Rohan Arun, Cinna Davis, +Douglas Colkitt and other predecessors contributed the caller, physical and +analytic framework. The source-fetch helper is adapted from #7774. The immutable +source manifest identifies the public inputs and their notices. diff --git a/research/p104-bit-helper-hyperplanes/PROOF.md b/research/p104-bit-helper-hyperplanes/PROOF.md new file mode 100644 index 0000000000..489136364b --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/PROOF.md @@ -0,0 +1,44 @@ +# A one-helper-hyperplane recipient-stock screen + +## Model and physical specialization + +In the literal graph, ports 222 through 629 are 408 separate helper owners. Exactly 391 of them start in chart 0 and end in chart 1; both dimensions are respectively zero and eight. The other 17 have rank four. Each of the 391 fields is an independent public field, and each has the same endpoint operation. For any nonzero helper-only binary form `h`, an invertible XOR basis can make `h` one of these helper coordinates. Set that coordinate to zero and retain the other 390. The common endpoint action respects this basis change. At the raw rank-moment level this omits one rank-eight target, a debit of `8^t` in productive mass. Entry/exit recoding and owner setup would also need to be charged in a complete construction. + +Work with the frozen normalized circuit. At each original MOVE `j`, let `f_j` be its whole-field binary input form, let `c_j` be its receiving chart, and let `S_c(j)` be the span of **all** values that were present at chart `c` strictly before `j`. Initial public owners count at time −1. The screen generously retains every past snapshot regardless of owner retirement and grants unlimited same-chart copies and XORs. The recovered payload can then be inserted at the original arrival time precisely when + +`f_j ∈ S_{c_j}(j) + span(h)`. + +All later old MOVE inputs and clocks are fixed. All eligible deletions may be applied simultaneously: at each replaced occurrence, reproduce exactly the old normalized arrival, so induction preserves every subsequent original normalized field. A new cocharted receiving `ADD` is allowed. A retimed delivery or a surviving paid operation whose sender or payload changes is not covered. This formal upper bound does not need to prove that its historical snapshots, ownership, or erasures are physically free. + +The zero-based clock convention is the array index in `strong-bit.json.gz`; the screen checks all labels and the original 630 symbolic return forms. At each clock the implementation records full forms after the instruction, so the recipient stock for a MOVE does not include its own arrival. This enforces the original arrival time before any subsequent read. + +## Exact affine cosets + +Let `H` be the 391-dimensional helper-only space. At a recipient chart and clock write `K = S ∩ H`. The possible constraints for one MOVE are `H ∩ (f + S)`, either empty or an affine coset `h₀ + K`. The verifier maintains Gaussian bases over `F₂`, projecting every prior stock form to the coordinates outside `H`. A projected dependence yields a full form in `K`; retaining all such kernel rows computes the complete intersection. A projected reduction of `f` either fails or produces one exact representative `h₀`. The checker also confirms `h₀ ∉ K`: no original MOVE is already recoverable from recipient stock for unrestricted inputs. + +Among 2,803 MOVEs, exactly 768 have nonempty helper-only cosets. Of these, 391 end at chart 1. In time order their kernels have dimensions 0 through 390, are nested, and each successive kernel contains the previous `h₀`. The 391 representatives are independent. Consequently their affine cosets are disjoint and partition every nonzero vector of `H`: the last nonzero coefficient of `h` in that basis gives its unique chart-1 deletion. + +Each of the remaining 377 cosets has kernel dimension at most three. Fully expanding them gives 549 points, with no repeated point. Every one of those points has exactly one additional chart-1 deletion; every other nonzero `h` has no additional deletion. The checked rank multiset of the 549 two-deletion cases is: + +| Deleted ranks | Number of helper hyperplanes | +| --- | ---: | +| `{1,1}` | 394 | +| `{1,2}` | 152 | +| `{1,4}` | 2 | +| `{2,2}` | 1 | + +The best possible raw saving is therefore `1 + 4^t`: it also dominates `2·2^t`, since their difference is `(2^t − 1)^2`. The function `8^t − 4^t` increases for positive `t`. At `t = 2/3` it equals `4 − 4^(2/3) > 1`, since `16 < 27`. Hence `8^t > 1 + 4^t` for all `t > 2/3`. Further bank and replay costs cannot make the optimistic estimate more favorable. + +## The rank-four endpoint classes + +The remaining 17 helpers have rank four. They form ten classes with exactly equal start and end chart identifiers: three singleton classes and seven two-helper classes. Exhausting nonzero XORs inside each class therefore tests 17 singleton constraints and seven two-helper constraints. Under the same historical-recipient-stock model, every singleton can delete exactly two MOVEs of ranks `{1,2}`. Of the seven pair XORs, six can delete one rank-two MOVE and one can delete one rank-one MOVE. Simultaneous deletions use the same induction as above. None of these cases requires the rank-eight affine-flag argument; the verifier checks every one directly. + +Every such change loses one rank-four target and saves at most `1 + 2^t`. For `t ≥ 3/4`, put `z = 2^t`. Then `z > 5/3` because `(5/3)^4 < 8`, and `z² − z − 1 > 1/9`. Thus `4^t > 1 + 2^t`. Together with the rank-eight result, the screen covers every one-dimensional constraint contained within an exact equal-endpoint helper class for `3/4 ≤ t ≤ 1`. + +## A live-owner control at helper 625 + +Set helper 625 to zero, preserving all other arbitrary inputs. Replace instructions 6909–6911 by `INIT 2220` directly in chart 507. This removes the rank-four MOVE 6911; its payload was zero. Replace 10568–10570 by `INIT 3006` in chart 1 followed by cocharted ADDs from the live registers `2976, 2977, 2979, 2987, 2988, 2989, 3004`. This removes the rank-one MOVE 10570. At the end of each three-instruction window the new and old complete register maps, chart labels and whole-field forms agree. The first later uses of owners 2220 and 3006 are at clocks 6937 and 29573. The replay verifies that all seven donor owners are live in chart 1 at the replacement, that all 630 outputs agree, and that the original 3,433 private CLEAR instructions are retained without an extra owner. Seven new ADDs replace two old ADDs. The real `{1,4}` saving still does not pay for losing the rank-eight helper. + +## Scope + +This is a finite, exact whole-field screen for the pinned one-local-call normalized word and a single omitted dimension within one exact co-endpoint helper class. It is not a proof about XORs mixing endpoint classes or ranks, arbitrary helper constraints in tensor powers, changing paid source fields, inserting or retiming new paid contacts, different physical graphs, or an end-to-end κ gain. The verifier does not independently reconstruct the rational projectors or prove the complete physical supplier and outer application; those are inherited from the specifically pinned source. The source hash, normalized trace, coset computation, exhaustive flag argument, direct rank-four tests, named live-owner control and corruption rejection are independently replayable here. diff --git a/research/p104-bit-helper-hyperplanes/README.md b/research/p104-bit-helper-hyperplanes/README.md new file mode 100644 index 0000000000..f3cbd83766 --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/README.md @@ -0,0 +1,25 @@ +# Dropping one co-endpoint helper from the 111-port BIT word + +For the pinned 39,600-instruction word, set one nonzero XOR of helpers with identical start and end charts to zero. Keep every surviving native MOVE and its original normalized input field and clock. Even if every chart keeps all earlier full-field values forever, every receiving chart can XOR them for free, and all eligible MOVE deletions are made together, none of these changes has a positive raw moment gain for `3/4 ≤ t ≤ 1`. This covers every equal-endpoint helper class on this tape. It does not yield a new κ bound. + +The primary result exhausts all `2^391 − 1` XORs of the rank-eight helpers, whose saving is at most `1 + 4^t` against lost credit `8^t`; this stronger comparison holds for `2/3 < t ≤ 1`. Exactly 549 choices permit two saved MOVEs; every other choice permits one. The two-MOVE rank histograms are 394 of `{1,1}`, 152 of `{1,2}`, two of `{1,4}`, and one of `{2,2}`. The other 17 helpers have rank four and form ten exact endpoint classes. All 24 nonzero XORs within those classes save at most `1 + 2^t`, against lost credit `4^t`. These are upper bounds with historical stock granted. A separate positive control implements the best rank-eight `{1,4}` example on the actual live owners and replays every normalized output, but its saving is less than its lost helper credit. [Proof and limits](PROOF.md) + +## Replay + +The literal binary graph is from [PR #8027 at `fb9b6a7b0d27da1cf98430893a3016bf811e2aa4`](https://github.com/CrocSwap/integer-mult-bounds/pull/8027), retained by the [physical single-band supplier #8035 at `ea776471bf8ed143a0625cf2d7532f65d15eb5f9`](https://github.com/CrocSwap/integer-mult-bounds/pull/8035). The compressed SHA-256 is `74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326`; the expanded SHA-256 is `b096d6df2a0c4688296b13ab0cfd50fec1c7dec732819c624ddd7a745a144b69`. + +```sh +python3.12 -I -B verify.py +``` + +This standard-library replay authenticates both hashes, checks the complete 630-input normalized circuit, reconstructs the rank-eight recipient affine cosets, verifies their flag and disjointness, independently tests the 24 rank-four constraints, checks the live-owner example and its first reads, and rejects a one-byte source corruption. `VERIFY.json` registers the same replay. The chart/projector geometry and physical meaning of the literal MOVE remain those of the pinned supplier; this package independently checks the normalized combinatorics and algebra, not the supplier's full physical or numerical application. + +This result differs from [#8034](https://github.com/CrocSwap/integer-mult-bounds/pull/8034): it permits exact linear cancellations and recoded receiving ADDs with multiple original paid positions deleted. It does not cover new or recoded surviving paid transfers, retiming, two or more omitted helper dimensions, other input families, arbitrary tensor correlations, or a different compiler price rule. The sample live rewrite does not fund a changed complete caller. + +## Open next questions + +Can changed surviving paid payloads or two omitted helper dimensions fund a complete, profitable rewrite? Begin with an explicit source schedule and verify every live owner, first read, scrub and rank-moment charge. The present screen does not decide that question. + +## Attribution + +Ali Romman supplied the pinned word and its physical binding. The retained [source notice](PARENT-NOTICE) credits its predecessors, and the [binding notice](BINDING-NOTICE.md) documents the later supplier. Clear1nsight prepared this scoped analysis with substantial OpenAI Codex assistance. New material is Apache-2.0; see [LICENSE](LICENSE). diff --git a/research/p104-bit-helper-hyperplanes/SOURCES.json b/research/p104-bit-helper-hyperplanes/SOURCES.json new file mode 100644 index 0000000000..9989ea94c8 --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/SOURCES.json @@ -0,0 +1,90 @@ +{ + "schema_version": 1, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "files": [ + { + "path": "AGENTS.md", + "git_blob": "ff81117fca368042f6092964d1f54eb4e6e08fb9", + "sha256": "fece32cdec9c1572ddce354a0b623459cb2c4ca162125d36d36262a92e3caa83", + "usage": "provenance" + }, + { + "path": "autoresearch.md", + "git_blob": "2fe84a7b30b1e26e60ce0ec4775894eb1831c5d6", + "sha256": "d16f0d3bb4d4b213d06c128db6d6460b0fe9ec1ac5a6c1ea1febf1db40e7b60d", + "usage": "provenance" + }, + { + "path": "CONTRIBUTING.md", + "git_blob": "5185786f2ec00f215019fb5777d70979429690a9", + "sha256": "fcd1a8d0e52342a23b8ffa9e905e85ccc539fb084145ef016dfc93cedfb3d924", + "usage": "provenance" + }, + { + "path": "certificates/selected-result.json", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1", + "usage": "provenance" + }, + { + "path": "docs/research/agent-task-catalog.json", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81", + "usage": "provenance" + }, + { + "path": "research/unconditional-batched-crt/CRT.md", + "git_blob": "d98dd8e368431cac33d5fc1c8c336696663641d6", + "sha256": "02c3a1e38cbee25aefe2640cc72676da62ba10eb7519fbcb9adb9d48b74eff2b", + "usage": "provenance" + }, + { + "path": "research/delayed-cover-physical-batch-routing/PROOF.md", + "git_blob": "af919b5ba2257c07ea17180f9b8c9fd457556079", + "sha256": "1c3dcd294d327a16fa081b7ea27497941ac6480d352f53e55e8b9e87f45d1454", + "usage": "provenance" + }, + { + "path": "notes/compact-control-movement.tex", + "git_blob": "06b6a9ef24245ac7b724c53a204635415b402357", + "sha256": "b963c3d2f4e1b7059aa289bb4b4ac89b688920bcf42f5b20d7698cdef0132cc6", + "usage": "provenance" + } + ], + "paired_native_source": { + "pr": 8027, + "head": "fb9b6a7b0d27da1cf98430893a3016bf811e2aa4" + }, + "comparative_profile": { + "pr": 8032, + "head": "9c5881ab4015854c68d5f5a3fc7d97f68505cc4c", + "kappa": "0.00389011528633", + "largest_BIT_rank_exponent": 114688000000000, + "sufficient_public_exponent": 136798773006437 + }, + "certificate_sha256": "7b163b03d04c0529504156f160a4875e98512d6cccc9a0aab3ec96af3bdeab2a", + "literal_graph": { + "pr": 8027, + "head": "fb9b6a7b0d27da1cf98430893a3016bf811e2aa4", + "source_path": "research/p104-live-relative-gain/BINARY-CANDIDATE.json.gz", + "local_path": "strong-bit.json.gz", + "sha256": "74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326", + "expanded_sha256": "b096d6df2a0c4688296b13ab0cfd50fec1c7dec732819c624ddd7a745a144b69", + "binding_pr": 8035, + "binding_head": "ea776471bf8ed143a0625cf2d7532f65d15eb5f9" + }, + "retained_notices": [ + { + "path": "LICENSE", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + { + "path": "PARENT-NOTICE", + "sha256": "b213998c8dae6d88e4a1f0fd17c81dd78c31ef35bc9460fa16ca692326f1a02b" + }, + { + "path": "BINDING-NOTICE.md", + "sha256": "c00f5acddbb6516a69f1fd9a3ef01e737f4c10fabb36a19eef5623b1fbc1edbe" + } + ] +} diff --git a/research/p104-bit-helper-hyperplanes/TASK.json b/research/p104-bit-helper-hyperplanes/TASK.json new file mode 100644 index 0000000000..b15cdb9b7d --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/TASK.json @@ -0,0 +1,81 @@ +{ + "schema_version": 1, + "task_id": "selected-stock-envelope", + "priority_revision": 8, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "original_card": { + "id": "selected-stock-envelope", + "question": "What explicit uniform stock envelope does the actual selected stopped producer supply at one bootstrap stage?", + "starting_points": [ + "research/selected-bootstrap-stock-audit/README.md", + "research/bootstrap-cutoff-time-space-split/README.md", + "certificates/selected-result.json", + "docs/research/community-efficient1000-review.md", + "research/stock-margin-chain/README.md" + ], + "methods": [ + "Derive a source-bound reserve recurrence at the actual selected atom widths, separating parent stock from completed inner borrowing.", + "Find an exact missing implication or counterexample to a proposed selected-stage stock envelope." + ], + "acceptance_gate": "Bind every coefficient and depth factor to the selected producer and state the width domain. Compare a proved envelope with the sufficient cutoff guard; a large numerical headroom or a historical m=120 coefficient is not a selected m=73 proof.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Resolve the current selected review, separate complex/ordinary BIT/admitted BIT/outer budgets, and compare the card against live handoffs before starting. Historical ceilings require exact source/model equivalence.", + "scope": "Source-binding orientation only; not a scientific replay or all-size proof. Materialize selected inputs if this checkout is sparse." + }, + "first_experiment": "Choose one actual selected producer/stage and derive its parent reserve and depth coefficient from source. Check whether newer handoffs already cover that exact obligation. Stop with the missing implementation lemma if it cannot be bounded; do not rerun #2972 cutoff/headroom arithmetic as a new contribution.", + "bottleneck_link": "This reduces a concrete inherited implementation obligation without confusing unchanged kappa arithmetic with a completed theorem.", + "allowed_variations": [ + "One stage or one explicit reserve/depth implication.", + "An independently checked same-domain proof repair, retaining all remaining assumptions." + ], + "scope_change_triggers": [ + "Importing the historical 57604 or 252 allowance without a selected-producer binding.", + "Calling a conditional fit lemma a full outer-proof adoption.", + "Replacing an actual selected stock coefficient with cutoff comparisons or a conditional fit inequality." + ], + "overlap_terms": [ + "selected stock", + "stock envelope", + "bootstrap cutoff", + "1956", + "1965", + "1990", + "2972", + "stock-margin-chain", + "actual_stock_coefficient" + ], + "existing_checks": [ + { + "scope": "Retained stock audit identifies missing actual selected-stage coefficients; later cutoff-chain arithmetic does not supply them.", + "evidence": "docs/research/research-family-status.md#revision-6-handoffs-source-archives-awaiting-independent-validation", + "remaining": "Derive one actual reserve/depth coefficient from the selected producer.", + "status": "reviewed", + "source_commit": "836b19bfa309ceafbc8ee32a15e8c4b10dde7e11", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + } + ] + }, + "scope_status": "refined", + "scope_change_reason": "Test a frozen-word recipient-stock change for one omitted dimension inside an exact equal-endpoint helper class; it is a source-specific ordinary BIT subproblem, not an adopted selected-stock bound.", + "actual_scope": "Exhaustive finite whole-field recipient-stock screen for one arbitrary XOR constraint within an exact co-endpoint helper class, preserving the normalized input and clock of every surviving native MOVE.", + "bottleneck_link": "A scoped screen of whether one helper-rank loss can fund original paid MOVE deletion through receiving-chart linear recoding.", + "stop_rule": "Authenticate the literal graph; replay all normalized operations and outputs; exhaust the rank-eight chart-one coset partition and the 24 co-endpoint rank-four XORs; verify a live-owner positive control and a corruption rejection.", + "outcome": "negative-result", + "evidence": "README.md, PROOF.md, strong-bit.json.gz and the standard-library replay registered in VERIFY.json.", + "author": "Clear1nsight", + "ai_assistance": "OpenAI Codex materially assisted the parameter search, proof, implementation and verification.", + "open_questions": [ + { + "question": "Can changing surviving paid payloads or using multiple omitted helper dimensions produce a profitable physically owned rewrite?", + "why_it_matters": "These changes are outside the one-constraint fixed-payload upper bound.", + "first_step": "Exhibit an explicit rewritten source with valid live owners, first reads, erasures and a full signed rank-moment invoice.", + "blocked_by": "No profitable changed source has been constructed in this screen." + } + ] +} diff --git a/research/p104-bit-helper-hyperplanes/VERIFY.json b/research/p104-bit-helper-hyperplanes/VERIFY.json new file mode 100644 index 0000000000..06c256fbe2 --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/VERIFY.json @@ -0,0 +1,19 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 60, + "checks": "Authenticate the literal graph and corruption control; replay the complete normalized word; exhaust the rank-eight affine cosets and 24 co-endpoint rank-four XORs; replay the live-owner example." + } + ] +} diff --git a/research/p104-bit-helper-hyperplanes/strong-bit.json.gz b/research/p104-bit-helper-hyperplanes/strong-bit.json.gz new file mode 100644 index 0000000000..16f8cafb1c Binary files /dev/null and b/research/p104-bit-helper-hyperplanes/strong-bit.json.gz differ diff --git a/research/p104-bit-helper-hyperplanes/verify.py b/research/p104-bit-helper-hyperplanes/verify.py new file mode 100644 index 0000000000..f11883e02c --- /dev/null +++ b/research/p104-bit-helper-hyperplanes/verify.py @@ -0,0 +1,378 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Regenerate the complete one-rank-8-hyperplane recipient-stock screen.""" +from collections import Counter, defaultdict +from hashlib import sha256 +from pathlib import Path +import gzip +import json + +HERE = Path(__file__).resolve().parent +PIN = "74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326" +PLAIN_PIN = "b096d6df2a0c4688296b13ab0cfd50fec1c7dec732819c624ddd7a745a144b69" + + +def authenticate(data): + if sha256(data).hexdigest() != PIN: + raise ValueError("Literal compressed graph SHA-256 differs") + plain = gzip.decompress(data) + if sha256(plain).hexdigest() != PLAIN_PIN: + raise ValueError("Literal expanded graph SHA-256 differs") + return json.loads(plain) + + +def member(x, basis): + while x: + bit = 1 << (x.bit_length() - 1) + row = basis.get(bit) + if row is None: + return False + x ^= row + return True + + +def insert(basis, x): + while x: + bit = 1 << (x.bit_length() - 1) + if bit not in basis: + basis[bit] = x + return True + x ^= basis[bit] + return False + + +def screen(graph): + n = graph["public"] + assert n == 630 and len(graph["program"]) == 39600 + dims = {int(k): value["dim"] for k, value in graph["frames"].items()} + rank8 = [i for i in range(222, n) + if (graph["start"][i], graph["final"][i]) == (0, 1)] + assert len(rank8) == 391 and dims[0] == 0 and dims[1] == 8 + hmask = sum(1 << i for i in rank8) + outside = ((1 << n) - 1) ^ hmask + frames = dict(enumerate(graph["start"])) + values = {i: 1 << i for i in range(n)} + + # Each row (b, f) has b = f restricted outside the 391-dimensional + # helper family. Eliminated dependencies in the full forms are exactly + # the recipient's stock intersection with that helper family. + projected = defaultdict(dict) + kernels = defaultdict(dict) + cosets = [] + + def project(chart, bad, full): + while bad: + bit = 1 << (bad.bit_length() - 1) + row = projected[chart].get(bit) + if row is None: + break + bad ^= row[0] + full ^= row[1] + return bad, full + + def observe(register): + chart = frames[register] + bad, full = project(chart, values[register] & outside, values[register]) + if bad: + projected[chart][1 << (bad.bit_length() - 1)] = (bad, full) + elif full: + assert not full & outside + insert(kernels[chart], full) + + for register in range(n): + observe(register) + + ops = Counter() + for clock, (op, dest, *args) in enumerate(graph["program"]): + ops[op] += 1 + touched = [dest] + if op == "MOVE": + first, last = args + assert frames[dest] == first and dest >= n + bad, h = project(last, values[dest] & outside, values[dest]) + if not bad: + kernel = dict(kernels[last]) + assert h and not h & outside + # No move is already reconstructible with unrestricted inputs. + assert not member(h, kernel) + cosets.append({"clock": clock, "owner": dest, "first": first, + "last": last, "rank": abs(dims[first] - dims[last]), + "h": h, "kernel": kernel}) + frames[dest] = last + elif op == "INIT": + assert dest >= n and dest not in frames + frames[dest], values[dest] = args[0], 0 + elif op == "ADD": + source, chart = args + assert frames[dest] == frames[source] == chart + values[dest] ^= values[source] + elif op == "SWAP": + source, = args + frames[dest], frames[source] = frames[source], frames[dest] + values[dest], values[source] = values[source], values[dest] + touched.append(source) + elif op == "CLEAR": + assert dest >= n and frames.pop(dest) == args[0] + del values[dest] + touched = [] + else: + raise ValueError(op) + for register in touched: + observe(register) + + assert ops == {"ADD": 29301, "INIT": 3433, "CLEAR": 3433, + "MOVE": 2803, "SWAP": 630} + assert frames == dict(enumerate(graph["final"])) and set(values) == set(range(n)) + for i in range(n): + expected = (1 << i) ^ ((1 << (i - 111)) if 111 <= i < 222 else 0) + assert values[i] == expected + assert len(cosets) == 768 + return cosets, rank8 + + +def exhaust(cosets, rank8): + final = [e for e in cosets if e["last"] == 1] + others = [e for e in cosets if e["last"] != 1] + assert len(final) == 391 and len(others) == 377 + assert [len(e["kernel"]) for e in final] == list(range(391)) + + # Verify the successive chart-1 kernels are nested and acquire each + # previous coset representative. Thus their 391 disjoint affine cosets + # partition all nonzero vectors in the entire rank-8 helper space. + for a, b in zip(final, final[1:]): + assert set(a["kernel"].values()) <= set(b["kernel"].values()) + assert member(a["h"], b["kernel"]) + assert not member(final[-1]["h"], final[-1]["kernel"]) + + # Coordinate each helper-space vector by the preceding 391 independent + # representatives. The highest nonzero coefficient locates its sole + # chart-1 coset; this avoids enumerating the 2^391-1 vectors. + basis = {} + for i, e in enumerate(final): + x, expression = e["h"], 1 << i + while x: + bit = 1 << (x.bit_length() - 1) + if bit not in basis: + basis[bit] = (x, expression) + break + a, b = basis[bit] + x, expression = x ^ a, expression ^ b + else: + raise AssertionError("Chart-1 representatives are dependent") + assert len(basis) == len(rank8) + + def locate(h): + x, expression = h, 0 + while x: + bit = 1 << (x.bit_length() - 1) + a, b = basis[bit] + x, expression = x ^ a, expression ^ b + assert expression + item = final[expression.bit_length() - 1] + assert member(h ^ item["h"], item["kernel"]) + return item + + # Every other coset is small, so enumerate it fully. No point occurs in + # two of them. Distinct h not in this dictionary get one chart-1 move. + points = {} + assert max(len(e["kernel"]) for e in others) == 3 + for e in others: + values = [e["h"]] + for row in e["kernel"].values(): + values += [x ^ row for x in values] + assert len(values) == len(set(values)) and all(values) + for h in values: + assert h not in points + points[h] = (e, locate(h)) + assert len(points) == 549 + hist = Counter(tuple(sorted((a["rank"], b["rank"]))) for a, b in points.values()) + assert set(hist) <= {(1, 1), (1, 2), (1, 4), (2, 2)} + assert Counter(e["rank"] for e in final) == {1: 301, 2: 90} + assert (1, 4) in hist + control = points[1 << 625] + assert [(e["clock"], e["owner"], e["rank"]) for e in control] == [ + (6911, 2220, 4), (10570, 3006, 1)] + return hist + + +def rank_four_corollary(graph): + """Check every nonzero XOR within an exact co-endpoint rank-four class.""" + n = graph["public"] + dims = {int(k): value["dim"] for k, value in graph["frames"].items()} + groups = defaultdict(list) + for helper in range(222, n): + start, end = graph["start"][helper], graph["final"][helper] + if abs(dims[start] - dims[end]) == 4: + groups[start, end].append(helper) + assert sum(map(len, groups.values())) == 17 + assert Counter(map(len, groups.values())) == {1: 3, 2: 7} + candidates = [sum(1 << helper for index, helper in enumerate(group) if mask >> index & 1) + for group in groups.values() for mask in range(1, 1 << len(group))] + assert len(candidates) == len(set(candidates)) == 24 + + frames = dict(enumerate(graph["start"])) + values = {i: 1 << i for i in range(n)} + bases = defaultdict(dict) + images = {} + matches = {h: [] for h in candidates} + + def signatures(chart): + if chart not in images: + images[chart] = candidates.copy() + return images[chart] + + def reduce(chart, value): + remainder = 0 + while value: + bit = 1 << (value.bit_length() - 1) + if bit in bases[chart]: + value ^= bases[chart][bit] + else: + remainder |= bit + value ^= bit + return remainder + + def observe(register): + chart = frames[register] + row = reduce(chart, values[register]) + if not row: + return + bit = 1 << (row.bit_length() - 1) + bases[chart][bit] = row + projected = signatures(chart) + for j, h in enumerate(projected): + if h & bit: + projected[j] = h ^ row + + for register in range(n): + observe(register) + for clock, (op, dest, *args) in enumerate(graph["program"]): + touched = [dest] + if op == "MOVE": + first, last = args + assert frames[dest] == first + wanted = reduce(last, values[dest]) + assert wanted + for h, image in zip(candidates, signatures(last)): + if image == wanted: + matches[h].append((clock, abs(dims[first] - dims[last]))) + frames[dest] = last + elif op == "INIT": + assert dest not in frames + frames[dest], values[dest] = args[0], 0 + elif op == "ADD": + source, chart = args + assert frames[dest] == frames[source] == chart + values[dest] ^= values[source] + elif op == "SWAP": + source, = args + frames[dest], frames[source] = frames[source], frames[dest] + values[dest], values[source] = values[source], values[dest] + touched.append(source) + elif op == "CLEAR": + assert frames.pop(dest) == args[0] + del values[dest] + touched = [] + else: + raise ValueError(op) + for register in touched: + observe(register) + assert frames == dict(enumerate(graph["final"])) + for i in range(n): + expected = (1 << i) ^ ((1 << (i - 111)) if 111 <= i < 222 else 0) + assert values[i] == expected + histogram = Counter((h.bit_count(), tuple(sorted(rank for _, rank in rows))) + for h, rows in matches.items()) + assert histogram == {(1, (1, 2)): 17, (2, (2,)): 6, (2, (1,)): 1} + return histogram + + +def concrete_control(graph): + """Replace both named arrivals using only live original-chart owners.""" + original = graph["program"] + assert original[6909:6912] == [["INIT", 2220, 0], ["ADD", 2220, 625, 0], + ["MOVE", 2220, 0, 507]] + assert original[10568:10571] == [["INIT", 3006, 583], ["ADD", 3006, 2361, 583], + ["MOVE", 3006, 583, 1]] + donors = [2976, 2977, 2979, 2987, 2988, 2989, 3004] + replacements = {6909: [["INIT", 2220, 507]], + 10568: [["INIT", 3006, 1]] + [["ADD", 3006, d, 1] for d in donors]} + + def apply(frames, values, instruction): + op, dest, *args = instruction + if op == "INIT": + assert dest not in frames + frames[dest], values[dest] = args[0], 0 + elif op == "MOVE": + assert frames[dest] == args[0] + frames[dest] = args[1] + elif op == "ADD": + source, chart = args + assert frames[dest] == frames[source] == chart + values[dest] ^= values[source] + elif op == "SWAP": + source, = args + frames[dest], frames[source] = frames[source], frames[dest] + values[dest], values[source] = values[source], values[dest] + elif op == "CLEAR": + assert frames.pop(dest) == args[0] + del values[dest] + else: + raise ValueError(op) + + oldf = dict(enumerate(graph["start"])) + oldv = {i: (0 if i == 625 else 1 << i) for i in range(630)} + newf, newv = dict(oldf), dict(oldv) + clock = 0 + while clock < len(original): + if clock in replacements: + for row in original[clock:clock + 3]: + apply(oldf, oldv, row) + for row in replacements[clock]: + apply(newf, newv, row) + assert oldf == newf and oldv == newv + clock += 3 + else: + apply(oldf, oldv, original[clock]) + apply(newf, newv, original[clock]) + clock += 1 + assert oldf == newf == dict(enumerate(graph["final"])) and oldv == newv + for i in range(630): + want = (0 if i == 625 else 1 << i) ^ ((1 << (i - 111)) if 111 <= i < 222 else 0) + assert oldv[i] == want + # The same original private CLEARs run in the same order; no extra owner + # is introduced. Both replacement macro states agree before any later read. + def first_use(owner, after): + for time in range(after + 1, len(original)): + op, dest, *args = original[time] + if (op in ("ADD", "SWAP") and (dest == owner or args[0] == owner)) or ( + dest == owner and op in ("MOVE", "CLEAR")): + return time, original[time] + raise AssertionError("The owner is never read or retired") + + assert first_use(2220, 6911) == (6937, ["ADD", 2223, 2220, 507]) + assert first_use(3006, 10570) == (29573, ["ADD", 3495, 3006, 1]) + + +def main(): + data = (HERE / "strong-bit.json.gz").read_bytes() + graph = authenticate(data) + try: + authenticate(bytes([data[0] ^ 1]) + data[1:]) + except ValueError: + pass + else: + raise AssertionError("One-byte source corruption was accepted") + cosets, rank8 = screen(graph) + hist = exhaust(cosets, rank8) + rank4_hist = rank_four_corollary(graph) + concrete_control(graph) + print("PASS_LITERAL", len(graph["program"]), "instructions", 2803, "MOVEs") + print("PASS_HYPERPLANES", len(rank8), "rank-8 helpers", len(cosets), + "eligible MOVEs", 549, "two-MOVE hyperplanes", sorted(hist.items())) + print("PASS_RANK4_HYPERPLANES", 24, "co-endpoint constraints", sorted(rank4_hist.items())) + print("PASS_LIVE_CONTROL helper=625 removed-ranks=4,1 first-reads=6937,29573") + print("PASS_CORRUPTION_REJECTED") + + +if __name__ == "__main__": + main()