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-productive-mask-seams/LICENSE b/research/p104-productive-mask-seams/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-productive-mask-seams/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-productive-mask-seams/NOTICE.md b/research/p104-productive-mask-seams/NOTICE.md new file mode 100644 index 0000000000..77950fad5a --- /dev/null +++ b/research/p104-productive-mask-seams/NOTICE.md @@ -0,0 +1,5 @@ +# Source history and attribution + +The fixed Gaussian graph and signed caller come from the frequency-weighted and capped successor of Ali Romman's numerical supplier. The #8072 archive was installed at commit `75f7e1c44f48c43983016bcf8878c4d9e5e87c62`. Its checked predecessor includes the closed 48-call placement, the mixed signed template and the exact Gaussian Laurent-row checker. The two archival inputs under `source/` are unchanged byte-for-byte records of the native-stock predecessor. The five caller-file digests in SOURCE.json were captured directly from that installed runtime. [#8072 package](https://github.com/CrocSwap/integer-mult-bounds/tree/75f7e1c44f48c43983016bcf8878c4d9e5e87c62/research/p104-weighted-capped-allocation-490950) · [Authenticated native-stock source](https://github.com/CrocSwap/integer-mult-bounds/tree/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation) + +Ali Romman authored the mixed root and closed placement, Rohan Arun supplied the mirrored construction, DreamingOfClouds developed nested flags, and SYLforge supplied the homogeneous A word. Clear1nsight contributed physical stock, bounded verification and earlier incidence work. Douglas Colkitt supplied absolute phase and compiler infrastructure. The original archive, origin manifest, license and native-stock notice are retained under `source/`. OpenAI Codex assisted with the changed-mask proof and its derivative verification suite. [Original source identities](source/origins.json) · [Predecessor notice](source/NOTICE.md) · [License](source/LICENSE) diff --git a/research/p104-productive-mask-seams/PROOF.md b/research/p104-productive-mask-seams/PROOF.md new file mode 100644 index 0000000000..05dfb92f52 --- /dev/null +++ b/research/p104-productive-mask-seams/PROOF.md @@ -0,0 +1,48 @@ +# Positive factors at a cut of the P104 signed caller + +Let `h` be the head and let `D0,...,D15` be the sixteen body operators in a caller template. For a mask B write D(B) for their product. The terminal action on each independent owner is a signed head times D(B). The two owners with the same mask span a two-dimensional terminal eigenspace. The A and rotated templates have respectively 17 and 15 such spaces. Their 120 and 192 physical copies use all 4,992 physical port visits in the installed #8072 Gaussian word. The successive visits act on linear combinations of independent fields. Scalar ADD and SCALE instructions are ordinary operations. The numerical invoice charges the native transfers, QUERY and IDLE jobs. + +## Independent two-input factorization + +Cut a template before or after any instruction. Write U for the prefix and V for the suffix, so that VU equals the prescribed diagonal. The proposed operation returns an independent positive field at the cut and injects a fresh independent field to be transformed by the suffix. Allow arbitrary invertible ordinary linear changes of basis at the cut, and inside each equal-target input and output space. Allow coefficients in the algebra of the squares of the head and all sixteen body operators. Keep the native, query and idle factors in their existing words. + +For this operation, there must be an initial direction v and a dual terminal direction w in the same equal-target space, with wv=1. The wire vector Uv must be one head/body character times an ordinary vector. The wire row wV must be a second character times an ordinary covector. Multiplying them recovers the full character. Both factors must carry positive rank. Coordinates may be mixed across wires, and the two factors may share body colors. The test grants arbitrary such basis changes without charging for them. + +Specialize all body squares to +1 and the head square to s, first +1 and then −1. The ordinary coefficients become scalars. Characters can be represented by (p,B), one head parity and sixteen body bits. For support in a single prefix character, v must annihilate all rows of every other two-column coefficient matrix of U. For a suffix character, w must annihilate the corresponding rows obtained from the transposed reverse word. The two signatures must have head xor and body xor equal to the terminal signature. This argument uses only necessary conditions. Every putative universal signed factorization must pass each specialization. + +The verifier embeds Gaussian integers in the field of 65,537 elements using i=256. Each nonzero two-by-two determinant in the reduced field proves a nonzero determinant over the Gaussian rationals. If a signature vanishes on reduction, its unwanted complement contains the entire reduced stacked matrix, whose column rank is checked to equal two at every cut. Thus a new valid characteristic-zero support cannot escape inspection by specializing a coefficient to zero. The two head characters within each square sector remain separate coefficient keys for the head parity. + +| Template | Boundaries | Equal-target pairs | Tests per head-square sector | Compatible positive character pairs | +|---|---:|---:|---:|---:| +| A | 985 | 17 | 16,745 | 0 | +| Rotated | 3,791 | 15 | 56,865 | 0 | + +The count is zero before requiring a nonzero pairing between surviving directions. In a direct sum of copies, each prefix and suffix is block diagonal. Cross-copy mixing of equal target characters still requires at least one common block contributing to wv. Each contributing block must pass the same support test at its own cut. Consequently any number of copies, with independently chosen cuts and injective color relabellings, satisfies the same exclusion. This statement concerns direct sums preserving the old internal factors and both independent services. A new native operation mixing fields from different copies changes the premise. + +The original Laurent checker regenerates both entire signed diagonal maps on all body indeterminates and all four head characters. An independent interpreter propagates finite character coefficients forward and through the transposed reverse program. It checks both complete terminal matrices. As a positive control, a two-field butterfly hides the independent directions x+y and x−y behind ordinary basis changes. At cut 5 the detector finds both rank-9 then rank-8 decompositions. Repeating the wrong final body on one receiver fails the terminal check. + +## Permitting physical overlap among colors + +Now replace each color j by an eight-element set of physical axes, disjoint from the common head. They can overlap other colors. Normalize even powers of a physical axis at zero cost. A word on a color mask B has effective body grade d equal to the weight of the xor of its eight-axis incidence vectors. This permits even corrections optimistically and allows each root its own assignments. The same native and head tariffs are charged. + +Write H(x)=x^0.9961 and H(0)=0. The source has 28 matched paid/productive masks in A and 24 in rotated. Each matched pair has the same body, with one additional productive head. Each template also has two unmatched full-body targets and four unmatched eight-color wing targets. The four unmatched rotated paid masks each have one color and remain of grade eight. The A queries have fixed grade one. + +For each matched mask its net value H(d+1)−H(d) increases on shortening d, by at most 1−[H(57)−H(56)]. If any two colors overlap, each of the two full targets loses at least two body axes. Other unmatched productive ranks can only decrease. Hence the gain per modified root with the folded endpoint invoice is at most + + n [1 − H(57) + H(56)] − 2 [H(129) − H(127)], + +where n is 28 or 24. The respective directed upper bounds are −3.36512706090 and −3.44292498982. Pairing is by literal masks, so this bound applies simultaneously to every overlap pattern. + +When the sixteen incidence vectors are linearly independent over F₂, their character map is injective. On the body-square specialization their joint signs range independently, and the preceding cut test applies. When they are dependent, take a nonempty relation J. Every color has eight axes, so J has at least two members. The xor of all sixteen vectors equals the xor of its complement to J, whose weight is at most 8(16−|J|)≤112. Each full target consequently loses at least sixteen units of grade. + +In this dependent case grant an additional relaxation. Split any new productive grade into arbitrary positive integer parts with at most the same total grade, at zero additional cost. The sum of H over the parts is at most that grade. For each matched pair the relaxed price d+1−H(d) is nondecreasing at integral d≥0, since H(d+1)−H(d)≤1. The remaining wing targets can only shorten, the unmatched paid targets keep their old grade, and the two full targets lose at least 32 grade units together. The gain, relative to the literal unsplit word, is therefore at most + + sum over the original productive grades k of [k−H(k)] − 32. + +The source-directed upper bounds are −9.9904276403790895266506910 for A and −10.2975999844641854003368543 for rotated. Splits introducing new cancelling productive incidences on a dependent set would require another argument. Dilated ordinary copies multiply every raw tariff by the same positive power of their dilation. These signs therefore extend to direct sums at such scales. The independent-support result addresses the factors of the literal template, with the head corresponding to one shared formal character. + +## Consequence and boundary + +The native histogram, captured from the pinned word and layout, gives 5,674 paid transfers and 891 independently supplied helper targets per invocation. The 48 invocations and the two literal caller histograms give 52,608 productive and 281,568 paid positions. At κ=0.0039 the raw productive-minus-paid sum lies between −1.5393425476201861782147978 and −1.5393425476201861782147977. Directed powers use 176-bit dyadic exponent brackets and outward integer square roots at 160-bit precision. A changed finite booking or a different weight on old direct-sum copies cannot turn each negative term positive with nonnegative additional charges. + +The obstruction covers fresh independent factors from equal terminal-character spaces, the stated ordinary coefficient algebra, and the explicitly priced color folds. General changes of the paid word, basis maps that act outside this algebra, new coupled mid-word operations across blocks, and dependent folds with added productive incidences require separate proofs. This result establishes a local exclusion. Complete ordinary, stopping, transport, ownership and physical admission would be required for any improved supplier. diff --git a/research/p104-productive-mask-seams/README.md b/research/p104-productive-mask-seams/README.md new file mode 100644 index 0000000000..ca9e0ad428 --- /dev/null +++ b/research/p104-productive-mask-seams/README.md @@ -0,0 +1,24 @@ +# Independent positive factors in the 48-call P104 Gaussian word + +All 4,776 instruction boundaries of the two signed caller templates in [#8072](https://github.com/CrocSwap/integer-mult-bounds/commit/75f7e1c44f48c43983016bcf8878c4d9e5e87c62) fail a necessary condition for extracting a fresh independent positive field while retaining the internal operations. Each of the 147,220 cut, target-pair and head-square tests allows basis changes within duplicate target spaces. The zero count extends to direct sums of the two words. A second comparison prices arbitrary overlaps of the eight-axis body masks. Even crediting independent unit-rank outputs leaves the linearly dependent overlap case worse by more than 9.99 raw units per affected root under the stated grade-conserving assumption. [Proof and domain](PROOF.md) · [Exact scope receipts](RESULT.json) + +The unsplit raw deficit at κ=0.0039 is between 1.5393425476201861782147977 and 1.5393425476201861782147978 across the 48 invocations. This package certifies a negative result for a specified caller rewrite. The existing conditional complete candidate remains the source comparator. [Source-bound census](SOURCE.json) · [#8072 signed construction](https://github.com/CrocSwap/integer-mult-bounds/tree/75f7e1c44f48c43983016bcf8878c4d9e5e87c62/research/p104-weighted-capped-allocation-490950) + +## Replay + +From this directory, run with CPython 3.12 and assertions enabled. + +```sh +python3.12 -IB verify.py +python3.12 -IB verify.py --emit +``` + +The first command checks the stored receipt. The second emits the reproducible receipt. The checker extracts five immutable caller source files from the authenticated predecessor archive into a temporary directory and requires no network. Native transfer and helper counts are fixed inputs to the portable run. Rebuild those separately against the installed #8072 runtime with `python3.12 -IB capture_native.py PATH_TO_INSTALLED_8072_RUNTIME` and compare its output byte for byte with `SOURCE.json`. The capture authenticates the rebuilt graph and public-role layout and checks all five caller source digests. + +## Open next questions + +Can a changed, jointly acting paid factor connect two copies and give independently restored outputs whose additional productive grade exceeds its own charge? The cut theorem requires an individual block with compatible support and loses that conclusion for a new cross-block native operation. A candidate must specify the factor, its charged rank, input and output owners, and the exact global shortfall it closes. + +## Credit + +Ali Romman authored the mixed two-wing program and the closed 48-call placement, with substantial OpenAI Codex assistance. Rohan Arun supplied the mirrored flags, SYLforge supplied the homogeneous A word, and Clear1nsight contributed physical stock, compiler and receiver work. The archived runtime retains its source-origin records and original notices. OpenAI Codex assisted the exact support calculation, tariff proof, implementation and tests. [Caller origin](https://github.com/CrocSwap/integer-mult-bounds/commit/4f7c67ae387cc91580f469aeda4d508b372b9ec1) · [Mixed root](https://github.com/CrocSwap/integer-mult-bounds/commit/9e051455757d1cc86b822e52e42e1e1c98ead417) · [Source and notices](source/NOTICE.md) diff --git a/research/p104-productive-mask-seams/RESULT.json b/research/p104-productive-mask-seams/RESULT.json new file mode 100644 index 0000000000..78f216ebbb --- /dev/null +++ b/research/p104-productive-mask-seams/RESULT.json @@ -0,0 +1,158 @@ +{ + "character_field": { + "i": 256, + "prime": 65537 + }, + "control": { + "accepted_rank_pairs": [ + [ + 9, + 8 + ], + [ + 9, + 8 + ] + ], + "basis_hidden_positive_at_cut": 5, + "wrong_complement_rejected": true + }, + "source_head": "75f7e1c44f48c43983016bcf8878c4d9e5e87c62", + "templates": { + "A": { + "body_overlap": { + "complete_unit_split_headroom": [ + "22.0095723596209104733493089", + "22.0095723596209104733493090" + ], + "dependent_overlap_and_free_rank_conserving_splits_gain": [ + "-9.9904276403790895266506911", + "-9.9904276403790895266506910" + ], + "matched_paid_target_pairs": 28, + "overlap_with_original_endpoint_bill_gain_upper": "-3.3651270609062147205567260", + "unmatched_fixed_paid_singletons": 0, + "unmatched_productive_body_sizes": { + "8": 4, + "16": 2 + } + }, + "events": 984, + "full_laurent_positive_control": { + "exponent_bits": 4, + "maximum_stage_occurrences": 15, + "minimum_grid": 4, + "peak_mass": "256", + "peak_native_entrance_mass": "26", + "preproduct_divisions": 2686, + "separate_component_divisions": 9904 + }, + "head_square_sectors": { + "-1": { + "compatible_before_pairing": 0, + "cut_pair_tests": 16745, + "cuts": 985, + "duplicate_target_pairs": 17, + "eligible": [] + }, + "1": { + "compatible_before_pairing": 0, + "cut_pair_tests": 16745, + "cuts": 985, + "duplicate_target_pairs": 17, + "eligible": [] + } + }, + "physical_roots": 120 + }, + "rotated": { + "body_overlap": { + "complete_unit_split_headroom": [ + "21.7024000155358145996631456", + "21.7024000155358145996631457" + ], + "dependent_overlap_and_free_rank_conserving_splits_gain": [ + "-10.2975999844641854003368544", + "-10.2975999844641854003368543" + ], + "matched_paid_target_pairs": 24, + "overlap_with_original_endpoint_bill_gain_upper": "-3.4429249898281888317407179", + "unmatched_fixed_paid_singletons": 4, + "unmatched_productive_body_sizes": { + "8": 4, + "16": 2 + } + }, + "events": 3790, + "full_laurent_positive_control": { + "exponent_bits": 4, + "maximum_stage_occurrences": 15, + "minimum_grid": 8, + "peak_mass": "212", + "peak_native_entrance_mass": "91/2", + "preproduct_divisions": 8308, + "separate_component_divisions": 17868 + }, + "head_square_sectors": { + "-1": { + "compatible_before_pairing": 0, + "cut_pair_tests": 56865, + "cuts": 3791, + "duplicate_target_pairs": 15, + "eligible": [] + }, + "1": { + "compatible_before_pairing": 0, + "cut_pair_tests": 56865, + "cuts": 3791, + "duplicate_target_pairs": 15, + "eligible": [] + } + }, + "physical_roots": 192 + } + }, + "unchanged_native_word": { + "paid": 281568, + "paid_histogram": { + "1": 183312, + "2": 38016, + "3": 23040, + "4": 10848, + "5": 15072, + "6": 1968, + "7": 480, + "8": 1344, + "16": 1248, + "24": 1248, + "32": 1248, + "40": 1248, + "48": 1248, + "56": 1248 + }, + "productive": 52608, + "productive_histogram": { + "1": 1008, + "2": 432, + "3": 480, + "4": 11568, + "5": 1584, + "6": 48, + "7": 672, + "8": 1584, + "9": 25872, + "17": 1248, + "25": 1248, + "33": 1248, + "41": 1248, + "49": 1248, + "57": 1248, + "65": 1248, + "129": 624 + }, + "raw_productive_minus_paid_at_0.0039": [ + "-1.5393425476201861782147978", + "-1.5393425476201861782147977" + ] + } +} diff --git a/research/p104-productive-mask-seams/SOURCE.json b/research/p104-productive-mask-seams/SOURCE.json new file mode 100644 index 0000000000..2b5f88ae31 --- /dev/null +++ b/research/p104-productive-mask-seams/SOURCE.json @@ -0,0 +1,34 @@ +{ + "head": "75f7e1c44f48c43983016bcf8878c4d9e5e87c62", + "word_sha256": "38d2b3a2311a9ba5fee091cc7aa204c7ed95651aec95d75184b2391df090cbfb", + "layout_sha256": "0ce3f9e383fc4bfdd22612b9e34fc9759d97204215937b82d23aec2cedd9b8ee", + "public_slots": 400, + "native_paid_per_invocation": { + "1": 3809, + "2": 792, + "3": 480, + "4": 226, + "5": 314, + "6": 41, + "7": 10, + "8": 2 + }, + "native_productive_per_invocation": { + "1": 21, + "2": 9, + "3": 10, + "4": 241, + "5": 33, + "6": 1, + "7": 14, + "8": 33, + "9": 529 + }, + "caller_source_sha256": { + "mixed_caller.py": "4824b2aaadb592550d3a25c16ff0a453705e10b8868f5c22fe10c2874bcb9bae", + "closed_caller.py": "b82b9710d85d62e0f98aa1a1d7c70f97bdbdd64a6e4c92406019ca580a8c52ce", + "mixed_grid.py": "95b0526530467e84e1dd295e98fb1442d68e97a724b1b8724d04fcd2284d646b", + "data/CALLER.json.gz": "d889996a337f648087208ab51c98eaf052705d4fca88b5d01b6e9257a829897a", + "data/CONJUGATE-CALLER.json.gz": "80009663da460229a57f09bde90e35294329a210ae7fc7ef6d1f05b61ffccbf4" + } +} diff --git a/research/p104-productive-mask-seams/SOURCES.json b/research/p104-productive-mask-seams/SOURCES.json new file mode 100644 index 0000000000..e7eefb9540 --- /dev/null +++ b/research/p104-productive-mask-seams/SOURCES.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + } + ] +} diff --git a/research/p104-productive-mask-seams/TASK.json b/research/p104-productive-mask-seams/TASK.json new file mode 100644 index 0000000000..620c5b9d8e --- /dev/null +++ b/research/p104-productive-mask-seams/TASK.json @@ -0,0 +1,107 @@ +{ + "schema_version": 1, + "task_id": "scalar-to-moment", + "priority_revision": 8, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "original_card": { + "id": "scalar-to-moment", + "question": "Can a scalar/frame rewrite improve the complete signed moment through paid jobs, productive targets, or both?", + "starting_points": [ + "docs/research/current-priorities.md", + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "docs/research/recursive-invoice-preflight.md" + ], + "methods": [ + "Construct and independently check one source-bound instance of the stated first experiment.", + "Seek an exact counterexample or target-specific complete-budget obstruction to that same proposed change." + ], + "acceptance_gate": "Require a legal chronological rewrite and favorable complete signed target-minus-paid moment with all extra charges. Unchanged ADD counts or unchanged paid-call counts alone decide neither success nor failure. Compiler, native and outer admission remain separate obligations.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read revision 8, the selected review and live exact-source handoffs. Then follow this card's bounded first_experiment.", + "scope": "Source-bound orientation only, not a supplier replay or theorem proof." + }, + "first_experiment": "Construct one legal source-bound rewrite and compare complete before/after P and T. Charge restoration, source windows and owned helpers. A paid call need not disappear: a legal target split or rank redistribution may win. Stop if the signed moment is unchanged or the consumer repays the gain. Do not extend a scalar-only census on ADD counts.", + "bottleneck_link": "Judge the actual current supplier contract and complete signed target/paid bill; frozen-profile ceilings require an applicability proof.", + "allowed_variations": [ + "One exact source head, helper/cut region or quantified proposition and changed hypothesis; check live handoffs first. Different seeds are not different scopes." + ], + "scope_change_triggers": [ + "Changing source head, helper/cut domain, operation alphabet or caller boundary without recording the new scope.", + "Treating an archived proposal or local numerical pass as complete supplier admission." + ], + "overlap_terms": [ + "signed moment", + "target split", + "rank exchange", + "scalar rewrite" + ], + "existing_checks": [ + { + "scope": "PR #3998: consecutive A2 scalar contraction", + "evidence": "research/staged544-a2-graph-rewrite/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "389268a6b5e0373a3125d5c6fcd6995f4ea324f5", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4019: separated A2 sites with unchanged recursive histogram", + "evidence": "research/staged544-separated-a2/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "f408e09df300b575235f7f77f81948071397e16d", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4112: composition audit", + "evidence": "research/staged544-a2-composition-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "205b7380656ba4b6316a8a493b1a3c679b8f7a0e", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4152: A1858 contraction audit", + "evidence": "research/staged544-a1858-contraction-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "caaa14cde5962adc372fdca71f63d0f29e73c8b2", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "scope_change_reason": "The assignment fixes the #8072 signed Gaussian word and asks for an independent productive factor or a bounded exclusion before physical construction.", + "actual_scope": "Test all chronological boundaries for independent productive factors after changes of basis within duplicate target characters, with a direct-sum extension. Bound every globally reassigned eight-axis body incidence vector in the stated raw tariff and record the dependent-fold rank-conserving split bound.", + "bottleneck_link": "The #8072 Gaussian raw word has negative signed margin at 0.0039. Saved native and caller debits give the cost a rewrite must fund before stage admission.", + "budget_minutes": null, + "stop_rule": "Stop on an exact factor with a positive complete raw price, or an exhaustive necessary obstruction for the retained internal words. A new coupled paid operation is a separate experiment.", + "outcome": "completed", + "evidence": "PROOF.md and RESULT.json record 147220 specialization tests, complete raw histograms, directed overlap bounds and a known positive basis-hidden decomposition. capture_native.py regenerates SOURCE.json from the installed PR.", + "author": "Clear1nsight", + "ai_assistance": "OpenAI Codex assisted source tracing, theorem development, implementation, replay and documentation.", + "open_questions": [ + { + "question": "Can an explicit paid operation jointly acting on fields from two words supply a fresh independent output at positive net raw price?", + "why_it_matters": "Coupling the blocks changes the direct-sum premise.", + "first_step": "Fix a chronological host, both independent input and output owners and the actual rank. Compare the complete signed productive and paid differences before physical replay.", + "blocked_by": "No positively priced coupled factor with exact owner restoration has been exhibited in this package." + } + ] +} diff --git a/research/p104-productive-mask-seams/VERIFY.json b/research/p104-productive-mask-seams/VERIFY.json new file mode 100644 index 0000000000..a71d0e5f7e --- /dev/null +++ b/research/p104-productive-mask-seams/VERIFY.json @@ -0,0 +1,26 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/p104-productive-mask-seams/verify.py", + "research/p104-productive-mask-seams/seam.py", + "research/p104-productive-mask-seams/SOURCE.json", + "research/p104-productive-mask-seams/RESULT.json", + "research/p104-productive-mask-seams/source/runtime.tar.gz", + "research/p104-productive-mask-seams/source/origins.json" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 120, + "checks": "Replay both complete signed programs, finite prefix and transposed suffix support at every cut, a productive hidden-basis control and a rejected mutation, all fixed histograms and directed overlap costs." + } + ] +} diff --git a/research/p104-productive-mask-seams/capture_native.py b/research/p104-productive-mask-seams/capture_native.py new file mode 100644 index 0000000000..869bc41005 --- /dev/null +++ b/research/p104-productive-mask-seams/capture_native.py @@ -0,0 +1,49 @@ +"""Reconstruct the unchanged native tariff from the installed #8072 runtime.""" +from collections import Counter +from hashlib import sha256 +import json +from pathlib import Path +import sys + +WORD = "38d2b3a2311a9ba5fee091cc7aa204c7ed95651aec95d75184b2391df090cbfb" +LAYOUT = "0ce3f9e383fc4bfdd22612b9e34fc9759d97204215937b82d23aec2cedd9b8ee" +HEAD = "75f7e1c44f48c43983016bcf8878c4d9e5e87c62" + + +def capture(runtime): + pins = { + "strong_complex.py": "b0f18924be837173ccbbd1b7814a7a9a27228d68ff0dcbaf44a90a2065d0574c", + "inputs/triangular/inputs/retained.json": "4d0dd81eb156c97403d752a3dc654d85a93b0284aed8cfa5eed840259f6abd88", + "inputs/triangular/inputs/retained.tar.gz": "77742c09b088f27e8742c3fad7b7148d3397e4d51b95312106f39a8970165903", + } + for path, expected in pins.items(): + assert sha256((runtime / path).read_bytes()).hexdigest() == expected, path + sys.path.insert(0, str(runtime)) + from strong_complex import digest, load_changed + from upstream import install + src = install()[-1] / "research/grade14-native-realization/retained" + graph, layout = load_changed(runtime / "inputs") + assert (digest(graph), digest(layout)) == (WORD, LAYOUT) + public = set(layout["live"]) | {x + 112 for x in layout["live"]} + public.update(layout["hosted"]["X2"]) + public.update(layout["hosted"]["Y2"]) + assert len(public) == 400 + dimensions = list(map(len, graph["frames"])) + paid = Counter(abs(dimensions[a] - dimensions[b]) for _, a, b in graph["moves"]) + productive = Counter(dimensions[b] - dimensions[a] for i, (a, b) in + enumerate(zip(graph["initial"], graph["final"], strict=True)) if i not in public) + assert min(paid) >= 1 and min(productive) >= 1 + paths = ("mixed_caller.py", "closed_caller.py", "mixed_grid.py", + "data/CALLER.json.gz", "data/CONJUGATE-CALLER.json.gz") + return { + "head": HEAD, "word_sha256": WORD, "layout_sha256": LAYOUT, + "public_slots": len(public), "native_paid_per_invocation": dict(sorted(paid.items())), + "native_productive_per_invocation": dict(sorted(productive.items())), + "caller_source_sha256": {n: sha256((src / n).read_bytes()).hexdigest() for n in paths}, + } + + +if __name__ == "__main__": + if len(sys.argv) != 2: + raise SystemExit("Usage: capture_native.py PATH_TO_INSTALLED_8072_RUNTIME") + print(json.dumps(capture(Path(sys.argv[1]).resolve()), indent=2)) diff --git a/research/p104-productive-mask-seams/seam.py b/research/p104-productive-mask-seams/seam.py new file mode 100644 index 0000000000..5f8277362b --- /dev/null +++ b/research/p104-productive-mask-seams/seam.py @@ -0,0 +1,189 @@ +"""Exact finite-field witness for a fresh independent positive field at a fixed word cut.""" +from collections import Counter, defaultdict +from fractions import Fraction +from functools import cache + +P = 65537 +I = 256 +assert I * I % P == P - 1 + + +@cache +def gaussian(real, imag): + def residue(q): + f = Fraction(q) + return f.numerator * pow(f.denominator, -1, P) % P + return (residue(real) + I * residue(imag)) % P + + +def combine(terms, square): + """Sum (row, coefficient, head shift, body XOR) terms in the character algebra.""" + result = {} + for row, scale, head, body in terms: + for (owner, phase, mask), coeff in row.items(): + total_phase = phase + head + factor = square if (total_phase // 2) % 2 else 1 + key = (owner, total_phase % 2, mask ^ body) + value = (result.get(key, 0) + coeff * scale * factor) % P + if value: + result[key] = value + else: + result.pop(key, None) + return result + + +def apply(rows, event, square, transpose): + op, *args = event + if op.startswith("HOST_"): + stage, *wires = args + body = 1 << stage + if op == "HOST_A": + x, y, u, v = wires + if transpose: + y, x, v, u = wires + rows[y] = combine([(rows[y], 1, 0, 0), (rows[x], 1, -1, 0)], square) + rows[u] = combine([(rows[u], 1, 0, 0), (rows[v], -1, 1, 0)], square) + elif op == "HOST_B": + x, y = wires + a, b = rows[x], rows[y] + half = (P + 1) // 2 + if transpose: + rows[x] = combine([(a, 1, 0, 0), (b, half, -1, 0)], square) + rows[y] = combine([(b, half, 0, 0), (a, -1, 1, 0)], square) + else: + rows[x] = combine([(a, 1, 0, 0), (b, -1, 1, 0)], square) + rows[y] = combine([(b, half, 0, 0), (a, half, -1, 0)], square) + else: + raise ValueError(op) + for reg in wires: + rows[reg] = combine([(rows[reg], 1, 0, body)], square) + return + reg, *data = args + if op == "SWAP": + other, = data + rows[reg], rows[other] = rows[other], rows[reg] + elif op in {"ADD", "QUERY"}: + other, coefficient = data + if transpose: + reg, other = other, reg + scale, head = (gaussian(*coefficient), 0) if op == "ADD" else (1, coefficient) + rows[reg] = combine([(rows[reg], 1, 0, 0), (rows[other], scale, head, 0)], square) + elif op == "SCALE": + rows[reg] = combine([(rows[reg], gaussian(*data[0]), 0, 0)], square) + elif op == "LAMBDA": + # ((1+i*s)+(1-i*s)h^2)/2 at the chosen value of h^2. + rows[reg] = combine([(rows[reg], 1 if square == 1 else I * data[0], 0, 0)], square) + elif op in {"IDLE_ONE", "IDLE_ODD"}: + mask = sum(1 << i for i in data[0]) + rows[reg] = combine([(rows[reg], 1, data[1] if op == "IDLE_ODD" else 0, mask)], square) + else: + raise ValueError(op) + + +def character_spaces(rows, group_by_owner, group_count): + """For each duplicate pair and character, span the corresponding two-column row vectors.""" + spaces = [{} for _ in range(group_count)] + for row in rows: + entries = {} + for (owner, phase, mask), value in row.items(): + group, idx = group_by_owner[owner] + entries.setdefault((group, phase, mask), [0, 0])[idx] = value + for (group, phase, mask), vec in entries.items(): + signature = (phase, mask) + space = spaces[group] + if signature not in space: + space[signature] = tuple(vec) + elif space[signature] is not None and determinant(space[signature], vec): + space[signature] = None # full two-dimensional row span + return spaces + + +def determinant(a, b): + return (a[0] * b[1] - a[1] * b[0]) % P + + +def support_directions(spaces): + """A surviving input direction must kill coefficients of every unwanted character.""" + result = [] + for space in spaces: + # Full stacked rank covers signatures that do not occur in this reduction. + directions = list(space.values()) + assert None in directions or any(determinant(directions[0], v) for v in directions) + eligible = {} + for signature in space: + first = None + for other, vec in space.items(): + if other == signature: + continue + if vec is None or (first is not None and determinant(first, vec)): + break + first = vec + else: + eligible[signature] = None if first is None else (first[1], -first[0]) + result.append(eligible) + return result + + +def trace(events, targets, group_by_owner, group_count, square, transpose): + rows = [{(i, 0, 0): 1} for i in range(len(targets))] + events = reversed(events) if transpose else events + cuts = [] + for event in events: + cuts.append(support_directions(character_spaces(rows, group_by_owner, group_count))) + apply(rows, event, square, transpose) + cuts.append(support_directions(character_spaces(rows, group_by_owner, group_count))) + for owner, (phase, stages) in enumerate(targets): + mask = sum(1 << j for j in stages) + coeff = square if (phase // 2) % 2 else 1 + assert rows[owner] == {(owner, phase % 2, mask): coeff % P}, (owner, transpose, square) + return cuts[::-1] if transpose else cuts + + +def paired_scan(events, targets, square): + bags = defaultdict(list) + for owner, (head, stages) in enumerate(targets): + bags[head % 2, sum(1 << j for j in stages)].append(owner) + groups = list(bags) + assert all(len(pair) == 2 for pair in bags.values()) + index = {o: (g, i) for g, signature in enumerate(groups) for i, o in enumerate(bags[signature])} + pre = trace(events, targets, index, len(groups), square, False) + post = trace(events, targets, index, len(groups), square, True) + eligible = [] + joint = 0 + for cut, (before, after) in enumerate(zip(pre, post, strict=True)): + for group, (parity, full) in enumerate(groups): + for (head, body), v in before[group].items(): + other = (parity ^ head, full ^ body) + if other not in after[group]: + continue + left = head + 8 * body.bit_count() + right = other[0] + 8 * other[1].bit_count() + if min(left, right) == 0: + continue + joint += 1 + w = after[group][other] + if v is None or w is None or sum(x*y for x, y in zip(v, w)) % P: + eligible.append([cut, group, left, right]) + return {"cuts": len(pre), "duplicate_target_pairs": len(groups), "cut_pair_tests": len(pre)*len(groups), + "compatible_before_pairing": joint, "eligible": eligible} + + +def control(): + basis = [["ADD", 0, 1, ["1", "0"]], ["SCALE", 1, ["-2", "0"]], ["ADD", 1, 0, ["1", "0"]]] + events = basis + [["IDLE_ODD", 0, [0], -1], ["IDLE_ODD", 1, [1], -1], + ["IDLE_ONE", 0, [1]], ["IDLE_ONE", 1, [0]]] + basis + [ + ["SCALE", 0, ["1/2", "0"]], ["SCALE", 1, ["1/2", "0"]]] + targets = [[-1, [0, 1]], [-1, [0, 1]]] + at = len(basis) + 2 + run = paired_scan(events, targets, 1) + assert run["eligible"].count([at, 0, 9, 8]) == 2 + faulty = events.copy() + faulty[at] = ["IDLE_ONE", 0, [0]] + try: + paired_scan(faulty, targets, 1) + except AssertionError: + pass + else: + raise AssertionError("wrong complement passed") + return {"basis_hidden_positive_at_cut": at, "accepted_rank_pairs": [[9, 8], [9, 8]], + "wrong_complement_rejected": True} diff --git a/research/p104-productive-mask-seams/source/LICENSE b/research/p104-productive-mask-seams/source/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-productive-mask-seams/source/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-productive-mask-seams/source/NOTICE.md b/research/p104-productive-mask-seams/source/NOTICE.md new file mode 100644 index 0000000000..c7691ccfa2 --- /dev/null +++ b/research/p104-productive-mask-seams/source/NOTICE.md @@ -0,0 +1,8 @@ +# Authors and retained work + +Ali Romman prepared this construction with substantial OpenAI Codex assistance in mathematical design, implementation, proof, adversarial checking and writing. The new contributions are the common lifted matrix for product address atoms, balanced stage floors, physical receiver bindings, thin square geometry, compact live schedule and the connected complete input threshold. The measurements and new Lean statements are part of this work. The software and original prose are licensed under Apache 2.0. [License](LICENSE) · [Working claim](https://github.com/CrocSwap/integer-mult-bounds/discussions/7880) · [Original contribution index](https://github.com/CrocSwap/integer-mult-bounds/discussions/7794) + +- Ali Romman's earlier construction supplies the 480/264 prices, finite ternary and periodic compiler, fixed heads, coefficient generation and the distinction between a stored directory and true data. The separate self-hosted ordinary interchange supplies the precedent for borrowing from the current public field. Its priced single-template application has its own hypotheses. We retain the six funded stages here. [Previous complete multiplier](https://github.com/CrocSwap/integer-mult-bounds/pull/7868) · [Original notice and credits](https://github.com/CrocSwap/integer-mult-bounds/blob/3f7c3c1f2a9a0963736562037e01fe41aec46b8c/research/bounded-general-multiplier/NOTICE.md) · [Self-hosted interchange](https://github.com/CrocSwap/integer-mult-bounds/pull/7826) · [Self-hosted source notice](https://github.com/CrocSwap/integer-mult-bounds/blob/f927ed7ffbb2b8870f109d59ddd94e1f87becb13/research/self-hosted-ordinary-interchange/NOTICE.md) +- Clear1nsight supplied the literal mixed binary cut. Its source credits Dugongue and Rohan Arun for predecessor pricing, Ali Romman for the 48-call complex schedule, and the credited compiler and routing authors. The grade-14 proof supplies the rational binary projectors, coupled source roles, common-grid coefficients and the Clifford charts. Nick Petalas supplied the general pivoted fallback. The factored series also uses the finite-forest and chronological substitution work credited in the complete source. [Mixed word](https://github.com/CrocSwap/integer-mult-bounds/pull/7830) · [Price and author notice](https://github.com/CrocSwap/integer-mult-bounds/blob/87fbf4f7b35b0f18ab12b5767775a9a424cf0b15/research/p104-mixed-rank-supplier/NOTICE) · [Actual all-column source](https://github.com/CrocSwap/integer-mult-bounds/pull/7837) · [Uniform composition and attribution](https://github.com/CrocSwap/integer-mult-bounds/blob/343f7b1817e26ad3f89d2ddad313b12741d53602/research/mixed-rank-uniform-composition/NOTICE.md) · [Grade-14 notice](https://github.com/CrocSwap/integer-mult-bounds/blob/a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e/research/grade14-native-realization/NOTICE.md) +- Ali Romman's direct-circulant multiplier supplies the certified normalized Fourier transforms and product recovery. It uses the rational Fourier compiler credited to Jose Manuel, its Chafik and Vlado predecessors, Bluestein's transform identity and the Karatsuba–Ofman short products. The balanced CRT, compact controlled movement, tagged owners and stable tape layouts retain the credit in their original sources. [Complete Fourier caller](https://github.com/CrocSwap/integer-mult-bounds/pull/7849) · [Fourier notice](https://github.com/CrocSwap/integer-mult-bounds/blob/3615fd982f2f4dc7172bef6f0dc9a4f77d5ab6dd/research/direct-circulant-fourier/NOTICE.md) · [Balanced CRT proof](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/research/unconditional-batched-crt/CRT.md) · [Compact control construction](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/notes/compact-control-movement.tex) · [Physical splitter credit](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/research/delayed-cover-physical-batch-routing/PROOF.md) +- The Lean and mathlib authors supply the proof kernel, libraries and arithmetic. The packaged runtime inputs preserve the original files, notices, code-level credits and licenses. Their full paths, exact commits and SHA-256 hashes are recorded in the manifest. [Retained byte manifest](inputs/origins.json) · [Historical credit index](https://github.com/CrocSwap/integer-mult-bounds/blob/3f7c3c1f2a9a0963736562037e01fe41aec46b8c/research/bounded-general-multiplier/FLOW-NOTICE.md) · [Pinned mathlib](https://github.com/leanprover-community/mathlib4/tree/d13f23b723b8a846827a245b89c10fc7d3f11612) diff --git a/research/p104-productive-mask-seams/source/origins.json b/research/p104-productive-mask-seams/source/origins.json new file mode 100644 index 0000000000..2819bed067 --- /dev/null +++ b/research/p104-productive-mask-seams/source/origins.json @@ -0,0 +1,393 @@ +{ + "archive_sha256": "305d410c1868be970d30cf0700e5e036001bf60fa8ba59510ef763ff957dd983", + "members": { + "LICENSE": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + "research/bounded-general-multiplier/FLOW-NOTICE.md": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "a79dea61c57044222709db812e762b869c92d17078800f00df58b047638b6af8" + }, + "research/bounded-general-multiplier/LICENSE": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + "research/bounded-general-multiplier/NOTICE.md": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "d430964a6aa2d1894079e240bd8ca7351b6aec73dfc501d1745d18b609f7a6fb" + }, + "research/bounded-general-multiplier/factored_frames.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "5c43c3f3fb6369cbd5a9010fb5d1729fd01df9f9f7a61702245eebbf5bbec6a8" + }, + "research/bounded-general-multiplier/multiply.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "87ccc6df6c160b3fb14f2005cd1c3f13db03c4e8045905e15c434cc60adadcec" + }, + "research/bounded-general-multiplier/periodic.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "6233e1806d29bd386ce39fab398fee4f6b73b11d4bdc1e3608bcccde15d71b19" + }, + "research/bounded-general-multiplier/powered.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "2cd55d3cd17e5f4ad10fcc1d534393d0ca9c709dd1b08f9e43d223ea15ba19f7" + }, + "research/bounded-general-multiplier/retained/fourier/LICENSE": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + "research/bounded-general-multiplier/retained/fourier/NOTICE.md": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "84cabd25cef9113748103bba369cb9f069043431664b25432885bf16797d891e" + }, + "research/bounded-general-multiplier/retained/fourier/PINS.json": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "efade237c8f4a39ecb47490d0b3428b6d15c8b8566044bde29ae2421c478b5c4" + }, + "research/bounded-general-multiplier/retained/fourier/heterogeneous_crt.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "04e059752de6b9f306dc555ef6f740627679c4e076ab2122242cc0534d7730dd" + }, + "research/bounded-general-multiplier/retained/fourier/product.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "b7d71f23e711b02a8f7183a500ca0875de991b41520097240a590f0274e9a33b" + }, + "research/bounded-general-multiplier/retained/fourier/root_gate_plan.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "16b667d152b3a7a5c4f42c283f12b9ba4ac500a76ae73fa854faa3599c26dcab" + }, + "research/bounded-general-multiplier/retained/fourier/spectral.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "ede9c48d34280c9c1c5c332b9434ff666fd321f4a18ffbf1f61b3339339e8ab6" + }, + "research/bounded-general-multiplier/retained/fourier/square_geometry.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "25d978e88f02d27d48fd724acb1009b769ab2c4787875a6c3df98ec91962e525" + }, + "research/bounded-general-multiplier/retained/fourier/tensor_word.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "08c2234957ebfc272b1a887b703ed7d691f1101e569a08be3e67aa7cea6f452b" + }, + "research/bounded-general-multiplier/retained/fourier/unitary/engine.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "df9b39563b8f3beaf6b1fa31b4a23b54eb81a16551b860898755bd290bc5489b" + }, + "research/bounded-general-multiplier/retained/fourier/word_product.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "3f36c96c573d7a16c0c53f755ac45f5ba01438acc56015bf690de699a4dfcbb8" + }, + "research/bounded-general-multiplier/short_product.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "47a173c65539b7c6d44a2437b009b921e46f72011fcf12865fa45e98e2b41719" + }, + "research/bounded-general-multiplier/streaming_routes.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "83a36843a7cfe9a62517cf0d50b074002b180848093a5dbe5834571e65ea9b59" + }, + "research/bounded-general-multiplier/tagged_sources.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "6c42f7115c2ea44507e1d959c3886a46c6b4abc22a8bbe49a4f9c5003d5e4a6b" + }, + "research/bounded-general-multiplier/ternary_frames.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "ffe3dfc1098fadba9f17ecb4d8338d07d78a73e1bf202def81312780345f3976" + }, + "research/bounded-general-multiplier/ternary_leaf.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "9c1a6f841d29c32fb75bc243b4e2091a24f55e2fdc3f74ee0caa7a346d72e44b" + }, + "research/bounded-general-multiplier/vendor/CALLER.json.gz": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "d889996a337f648087208ab51c98eaf052705d4fca88b5d01b6e9257a829897a" + }, + "research/bounded-general-multiplier/vendor/CONJUGATE-CALLER.json.gz": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "80009663da460229a57f09bde90e35294329a210ae7fc7ef6d1f05b61ffccbf4" + }, + "research/bounded-general-multiplier/vendor/EFREE-CALLER.json.gz": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "757b3523798f840bdb02028b23708c3416627a99ea09e7a3c4bcdc5cd0c7ce4b" + }, + "research/bounded-general-multiplier/vendor/LICENSE": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + "research/bounded-general-multiplier/vendor/binary.json.gz": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9" + }, + "research/bounded-general-multiplier/vendor/closed_caller.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "b82b9710d85d62e0f98aa1a1d7c70f97bdbdd64a6e4c92406019ca580a8c52ce" + }, + "research/bounded-general-multiplier/vendor/complex.json.gz": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "1b1b3294e86979f1f41076fb056f3c0a08ace6df7bf80f2886bc579a22962f4b" + }, + "research/bounded-general-multiplier/vendor/cover.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "52cfdb73f0289b1d2fd015865104dc66ecb7478eef2dbe3d48325791cea7b786" + }, + "research/bounded-general-multiplier/vendor/grade14-NOTICE.md": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "8f42538d8ac31c6e42cbd3b52298b6a74b0dbf6ad78828f7aaf1b3dce3b47621" + }, + "research/bounded-general-multiplier/vendor/iterated-returns-NOTICE": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "4f7d16a4dcaae02de7e7583f7fbb14d5edd19dc4c10b4f47571c145204505844" + }, + "research/bounded-general-multiplier/vendor/layout.json.gz": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "b0f3ebc5710e469f3e8fc5ce159cbba048b563944182b50993431ef94f4fedbf" + }, + "research/bounded-general-multiplier/vendor/leaf.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "a91655fd1f1429961ee1db4698b7f3f2ce091e2d94e775dc63f02c9eb8db6c64" + }, + "research/bounded-general-multiplier/vendor/mixed-NOTICE": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "b213998c8dae6d88e4a1f0fd17c81dd78c31ef35bc9460fa16ca692326f1a02b" + }, + "research/bounded-general-multiplier/vendor/mixed-audit.json": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "a4f318b83a810758bc9dc80eec15326e2794441f36d872aa24811b61c5d9f376" + }, + "research/bounded-general-multiplier/vendor/mixed-bit.json": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "8744587b49787bd9bfaed28a2595069d91afa45274284049bbba9764bc704a7d" + }, + "research/bounded-general-multiplier/vendor/mixed_caller.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "4824b2aaadb592550d3a25c16ff0a453705e10b8868f5c22fe10c2874bcb9bae" + }, + "research/bounded-general-multiplier/vendor/paired-NOTICE": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "8c73eaf46327f01b4cfc18640b5e5f552648fc5e4427cbccd42af5e7ecd3b732" + }, + "research/bounded-general-multiplier/vendor/retained-CREDITS.md": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "298a542162010686d1306aa9ba46f2b93f2229e383c9e57d5b9a9e816db7fc3e" + }, + "research/bounded-general-multiplier/vendor/retained-NOTICE": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "4e79158050dcf11ae2aa3867f15d66f4e5586e774a7167c61c2cb24bda9879b9" + }, + "research/bounded-general-multiplier/vendor/retained/fallback.py": { + "commit": "3f7c3c1f2a9a0963736562037e01fe41aec46b8c", + "sha256": "c3c516a9b1541608b271acb9a782573d57f3e9a87ae97ca0c224e79b27d0a003" + }, + "research/capped-phase-fusion/evidence/inplace_algebra_ultra/check_circuits.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "06d1861bfe8af543908e26557ffda7e451ff176bceb9bacfaf0f04f234b336d5" + }, + "research/cubic-cyclic-inverse/vendor/interval_kernel.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "9b7bb24640a9a7d3f83c7951dfef483ec933db4c50de6c0130b85f450eeddfbe" + }, + "research/grade14-native-realization/LICENSE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + "research/grade14-native-realization/NOTICE.md": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "8f42538d8ac31c6e42cbd3b52298b6a74b0dbf6ad78828f7aaf1b3dce3b47621" + }, + "research/grade14-native-realization/RESULT.json": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "5fefe7a3b916827d40d53a7b5e091da88f2a4c91ce9c106a95a3ea64bdb8705d" + }, + "research/grade14-native-realization/charts.py": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "5d2e535963d72f2566ea77ec20891291de3610e6e0d476bc2120324ac0dcf196" + }, + "research/grade14-native-realization/complex-atlas.json.gz": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "7e855caa7f805dc97c4188c682be4fb2d087e7a67114ffed4607146e7783d99d" + }, + "research/grade14-native-realization/contacts.py": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "16483d2952e9c19d0f9a6d2b87582a7b65076898237281cd183b8356439a2473" + }, + "research/grade14-native-realization/projectors.py": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "87de483b3d830ad7d8a54284dddc5e26076eaa8d1cdf267a7f206e174f468580" + }, + "research/grade14-native-realization/retained/CREDITS.md": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "298a542162010686d1306aa9ba46f2b93f2229e383c9e57d5b9a9e816db7fc3e" + }, + "research/grade14-native-realization/retained/GRADE14-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "4f7d16a4dcaae02de7e7583f7fbb14d5edd19dc4c10b4f47571c145204505844" + }, + "research/grade14-native-realization/retained/LICENSE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + "research/grade14-native-realization/retained/MIXED-PROOF.md": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "e44cd12b58b1c35959117e0bf65782116028fcfadaafae0bde984c2e3a4f9dd8" + }, + "research/grade14-native-realization/retained/NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "4e79158050dcf11ae2aa3867f15d66f4e5586e774a7167c61c2cb24bda9879b9" + }, + "research/grade14-native-realization/retained/SOURCE-PINS.json": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "78c1dc981a4ab6878422230a017297cd6f84540c58316854a3a13abd0bb02e7f" + }, + "research/grade14-native-realization/retained/SOURCES.json": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "76818b74ee05a1a562813b1385b3609dea2bb548c260ebda1b3f8a7aeab236c9" + }, + "research/grade14-native-realization/retained/closed_caller.py": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "b82b9710d85d62e0f98aa1a1d7c70f97bdbdd64a6e4c92406019ca580a8c52ce" + }, + "research/grade14-native-realization/retained/credits/7658-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "2732575164931c53cc4bc57145c31d87741489e3048afee6899e856c0ea503b5" + }, + "research/grade14-native-realization/retained/credits/7700-CITATION.cff": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "50399ea15e9ce49baafbd00d6da16e662ac46c566e3c04af3993e23cf0b62ff4" + }, + "research/grade14-native-realization/retained/credits/7700-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "b49022cb4104d90b182e4c335f670faf45529025b15db77bf0291835083c28bd" + }, + "research/grade14-native-realization/retained/credits/7726-CREDITS.md": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "4f58fb0bc8d4e66868ceeac55328ef55d85a26085e2109e1123026fcc40bc9e1" + }, + "research/grade14-native-realization/retained/credits/7726-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "4e79158050dcf11ae2aa3867f15d66f4e5586e774a7167c61c2cb24bda9879b9" + }, + "research/grade14-native-realization/retained/credits/OUTER-GATE-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "cadbc642ca84311d2c7a6cf704c7828cb4cf77e3c784b66e4c6e8a5c28002fb8" + }, + "research/grade14-native-realization/retained/credits/PR7663-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "5fd4367578d2339fbdcd7dc116b6c12cb4fa72e92d2e3d67be537a36c8bd9d40" + }, + "research/grade14-native-realization/retained/credits/PR7669-PROVENANCE.md": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "706c6c852e87e371ddf1828244b2f0c2b00279728818023aa911c8947d69ab83" + }, + "research/grade14-native-realization/retained/credits/PR7674-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "382537634a3d9fa0a8089d6121a506a399382f9310088b1f29586dcc93eec92d" + }, + "research/grade14-native-realization/retained/credits/PR7682-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "7590f71de481c424d2315e9ea4884bea1557481676fa5f930f7a0bed637a56a1" + }, + "research/grade14-native-realization/retained/credits/PR7704-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "49657dd50c9431642a9527b0d625197cb34d1838dcf00fe4d92040f9605c8ce0" + }, + "research/grade14-native-realization/retained/credits/PR7705-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "43510816b93ea09e0d716ccc6261c84ce081821c0d5dea7d6e748863d55f8f40" + }, + "research/grade14-native-realization/retained/credits/PR7708-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "c3762acca6fa198c621e0aacf8aa06526aa7716c20c761141c07393fdba6bc46" + }, + "research/grade14-native-realization/retained/credits/PR7713-NOTICE": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "8852b94801cd022eb5d42dc57b7592ab22f87b441566a1ce62c8697733c82da6" + }, + "research/grade14-native-realization/retained/credits/PR7716-CREDITS.md": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "dad56f9bca6dd9b902cf77dfbae0da49bbc091e63857313f5e6add52021085b2" + }, + "research/grade14-native-realization/retained/credits/PR7717-CREDITS.md": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "515a2d475a2580bbe1c213d10526ce5eef7eaa9a11924e5d72e30221676f7aa4" + }, + "research/grade14-native-realization/retained/data/CALLER-PHASE-BASES.json": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "325a1eb4aa7fe5f918b1d8344b88ad132ef4606268bccec20f223ace5feda18b" + }, + "research/grade14-native-realization/retained/data/CALLER.json.gz": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "d889996a337f648087208ab51c98eaf052705d4fca88b5d01b6e9257a829897a" + }, + "research/grade14-native-realization/retained/data/CONJUGATE-CALLER.json.gz": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "80009663da460229a57f09bde90e35294329a210ae7fc7ef6d1f05b61ffccbf4" + }, + "research/grade14-native-realization/retained/data/binary.json.gz": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9" + }, + "research/grade14-native-realization/retained/data/complex.json.gz": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "1b1b3294e86979f1f41076fb056f3c0a08ace6df7bf80f2886bc579a22962f4b" + }, + "research/grade14-native-realization/retained/data/layout.json.gz": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "b0f3ebc5710e469f3e8fc5ce159cbba048b563944182b50993431ef94f4fedbf" + }, + "research/grade14-native-realization/retained/fallback.py": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "c3c516a9b1541608b271acb9a782573d57f3e9a87ae97ca0c224e79b27d0a003" + }, + "research/grade14-native-realization/retained/grade14-audit.json": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "839b70265b584c1b92072d76f697b71d85a99578b8143f99d210c92ba663a1a9" + }, + "research/grade14-native-realization/retained/grade14-bit.json": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "f680bdf61719d9688242c572f11e496f13eabcc2630083ebffc34788bc31470b" + }, + "research/grade14-native-realization/retained/grade14-result.json": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "4a8c077cd22904502df91ab1236aa626dea948d57de8a248960029f27d0787dc" + }, + "research/grade14-native-realization/retained/mixed_caller.py": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "4824b2aaadb592550d3a25c16ff0a453705e10b8868f5c22fe10c2874bcb9bae" + }, + "research/grade14-native-realization/retained/mixed_grid.py": { + "commit": "a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e", + "sha256": "95b0526530467e84e1dd295e98fb1442d68e97a724b1b8724d04fcd2284d646b" + }, + "research/rational-unitary-fft/engine.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "9e36aee0835e6b1b62997433581f88b5a434ccab8ae43e5c25d1deaaf1ebf653" + }, + "research/rational-unitary-fft/exact.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "c9b89d7357210af69865690ba12e695366961f8b501a8fab9d0fefe3fb30c479" + }, + "research/rational-unitary-fft/full.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "1f42d5f2858564ffb320e54ba6aa29651025491569823e25006bf5862457b803" + }, + "research/rational-unitary-fft/generator.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "827ef9fe1bd664859995892b59843c390f7969c938fb7e1e6dc585c31a54b555" + }, + "research/rational-unitary-fft/triangular.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "46780d95ddebfed22e8f0c18565fe2e768250afa5beeb31f450292cc06f7ec11" + }, + "research/rational-unitary-fft/vendor/STEIN-PROVENANCE.json": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "e7f0e8dc517387e302b1e8bf5dff7e12b29da8aa91abc6ea597f33c1ac08ba62" + }, + "research/rational-unitary-fft/vendor/stein_rational.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "3065fc5d6d22ec44de533b08fb0c639603449456383668e561dc46629e641502" + }, + "research/unconditional-batched-crt/check_batched_crt.py": { + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "sha256": "681e2e3d71fa74c8b9b326f3860104fd9d89590a222e26ae6ee718d1fd40ff2e" + } + } +} diff --git a/research/p104-productive-mask-seams/source/runtime.tar.gz b/research/p104-productive-mask-seams/source/runtime.tar.gz new file mode 100644 index 0000000000..3c8efaac2e Binary files /dev/null and b/research/p104-productive-mask-seams/source/runtime.tar.gz differ diff --git a/research/p104-productive-mask-seams/verify.py b/research/p104-productive-mask-seams/verify.py new file mode 100644 index 0000000000..c2ba8824df --- /dev/null +++ b/research/p104-productive-mask-seams/verify.py @@ -0,0 +1,162 @@ +"""Replay the pinned caller, all changed-mask cuts, overlap tariffs and controls.""" +from collections import Counter +from fractions import Fraction +from functools import cache +from hashlib import sha256 +from math import isqrt +from pathlib import Path +from tempfile import TemporaryDirectory +from io import BytesIO +import gzip, json, sys, tarfile + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE)) +from seam import P, I, paired_scan, control + +UNIT = 1 << 160 +T = Fraction(9961, 10000) +PIN = "305d410c1868be970d30cf0700e5e036001bf60fa8ba59510ef763ff957dd983" +MANIFEST = "cc1ebbe8a95c24886017a5b1d36a8f3b39f771a66c556c8ae6a2ef3757c7c593" + + +def authenticated_caller(dest, receipt): + raw = (HERE / "source/runtime.tar.gz").read_bytes() + meta = (HERE / "source/origins.json").read_bytes() + assert sha256(raw).hexdigest() == PIN and sha256(meta).hexdigest() == MANIFEST + recorded = json.loads(meta) + assert recorded["archive_sha256"] == PIN + src = recorded["members"] + with tarfile.open(fileobj=BytesIO(raw), mode="r:gz") as tar: + for name, digest in receipt["caller_source_sha256"].items(): + assert src["research/grade14-native-realization/retained/" + name]["sha256"] == digest + data = tar.extractfile(digest).read() + assert sha256(data).hexdigest() == digest + path = dest / name + path.parent.mkdir(parents=True, exist_ok=True) + path.write_bytes(data) + + +@cache +def power(rank): + """Enclose the rational power using dyadic exponent brackets and integer square roots.""" + if rank in (0, 1): + return rank*UNIT, rank*UNIT + bits = 176 + low_exponent = (T.numerator << bits) // T.denominator + def dyadic(k, upper): + a = b = rank*UNIT + y = UNIT + for pos in reversed(range(bits)): + a = isqrt(a*UNIT) + b = 1+isqrt(b*UNIT-1) + if k >> pos & 1: + y = -(-y*b//UNIT) if upper else y*a//UNIT + return y + lower = dyadic(low_exponent, False) + upper = dyadic(low_exponent+1, True) + assert lower <= upper + return lower, upper + + +def bounds(hist): + lower = upper = 0 + for rank, n in hist.items(): + a,b = power(rank) + lower += n*(a if n>=0 else b) + upper += n*(b if n>=0 else a) + return lower,upper + + +def decimals(lo,hi,precision=25): + scale=10**precision + def fmt(n): + sign = "-" if n<0 else "" + u,v=divmod(abs(n),scale) + return f"{sign}{u}.{v:0{precision}d}" + return [fmt(lo*scale//UNIT), fmt(-(-hi*scale//UNIT))] + + +def mask_proof(events, targets): + target = Counter(frozenset(stages) for _, stages in targets) + paid = Counter(frozenset(data[1]) for op,*data in events if op=="IDLE_ONE") + common = target & paid + rem_t,rem_p=target-common,paid-common + assert Counter({n:sum(v for k,v in rem_t.items() if len(k)==n) for n in (8,16)})=={8:4,16:2} + assert all(len(k) in (8,16) for k in rem_t) + assert all(len(k)==1 for k in rem_p) + rank_hist=Counter(8*len(stages)+h%2 for h,stages in targets) + total_rank=sum(r*n for r,n in rank_hist.items()) + target_lo,target_hi=bounds(rank_hist) + headroom=(total_rank*UNIT-target_hi,total_rank*UNIT-target_lo) + # Every old matched idle has mask of at most seven colors, or 56 body axes. + # Max increase of H(d+1)-H(d) is the difference between its values at 0 and 56. + n_matched=sum(common.values()) + upper_gain=n_matched*(UNIT+power(56)[1]-power(57)[0]) + # An overlap decreases the full-body grade by at least 2 on each of 2 centers. + center_loss_lower=2*(power(129)[0]-power(127)[1]) + assert upper_gain