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-helper-quotients/.gitattributes b/research/p104-helper-quotients/.gitattributes new file mode 100644 index 0000000000..85aa032067 --- /dev/null +++ b/research/p104-helper-quotients/.gitattributes @@ -0,0 +1 @@ +credits/PR7669-PROVENANCE.md -text whitespace=cr-at-eol diff --git a/research/p104-helper-quotients/LICENSE b/research/p104-helper-quotients/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-helper-quotients/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-helper-quotients/NOTICE b/research/p104-helper-quotients/NOTICE new file mode 100644 index 0000000000..8fa17b3fd6 --- /dev/null +++ b/research/p104-helper-quotients/NOTICE @@ -0,0 +1,7 @@ +Apache License 2.0. Ali Romman prepared this work with substantial OpenAI Codex assistance in research, implementation, verification and writing. + +New work includes the coupled helper and paid-bank restriction, its 33 witnesses, the compact interface, the independent checks of 67 receiver identities and the signed application on 1,468 public fields. + +The exact application starts from Ali Romman's 46-cut graph in PR #7708. SYLforge supplied the nine-swap word in #7700. Clear1nsight supplied the role-1256 relay and banked physical schedule in #7704. DreamingOfClouds supplied the related grouped-hub method on the separate chart-595 graph in #7705. Ali Romman supplied the preceding pivot, common-grid and signed-bill checks. Rohan Arun supplied the signed caller lineage. Jerry Chen (CubeJerry) supplied the selected complex application and BIT input. Douglas Colkitt and the credited repository contributors supplied the research framework, compiler, exact operator engines and comparison tools. The concave comparison retains mightyOil's method credit. + +The files under vendor/ and data/ retain their source bytes. SOURCE-PINS.json gives original commits, paths, Git blobs and SHA-256 values. SOURCES.json pins the canonical repository inputs. The catalogue and reverse sweep adapt the corresponding #7708 checks to the compact graph. The supplier notices are under credits/. Preserve them with the reused work. diff --git a/research/p104-helper-quotients/PROOF.md b/research/p104-helper-quotients/PROOF.md new file mode 100644 index 0000000000..f10c954e78 --- /dev/null +++ b/research/p104-helper-quotients/PROOF.md @@ -0,0 +1,45 @@ +# A restriction at one entrance chart + +## The local identity + +In the normalized circuit, a paid key names a scalar linear form together with its receiving chart. At a given chart, the program can take rational linear combinations of the banks it holds there. The physical schedule charges these operations. The operator between charts with frames $T_a$ and $T_b$ is $T_b T_a^{-1}$. This factorization lets the verifier check scalar identities in chart coordinates, then restore each paid operator with its actual phase. [Operator checks](catalogue.py) + +Choose a helper $r$ and a linear form $s(x)=\sum_i a_i x_i$ with $a_r\ne0$. Every input in the sum is at the entrance chart of $r$. For every other public input, the compiler takes an arbitrary independent value. It substitutes + +$$x_r=-\sum_{i\ne r}(a_i/a_r)x_i$$ + +in the rows that read the old helper. The definition is local and the final scalar schedule includes the expanded terms. In the parent contract all helper outputs are independent identity returns. Each main output depends only on its specified main partners. Thus the substitution preserves every requested surviving output. Remove the productive target for $r$ from the invoice. + +At a receiving chart, suppose an exact calculation on the unrestricted parent gives $s(x)=\sum_j b_j h_j(x)$. Each $h_j$ is a bank at that chart. Choose a paid key $k$ with $b_k\ne0$. On the restricted input space its payload equals + +$$h_k=-\sum_{j\ne k}(b_j/b_k)h_j.$$ + +Replace every read of $k$ with this expression and remove its paid send. Each receiver in one certificate step is at a different chart. The checker verifies each relation by propagating its coefficients back to the independent entrances of that step. It checks the final dependency order and the chart of every donor after each edit. This permits a later bank when the resulting graph has a valid execution order. [Constructor](quotient.py) · [Exact relation checker](witness.py) + +## Helper 264 + +In the first step $s=x_{264}-x_{407}-x_{434}/4$. The same form has three representations on the unmodified #7708 graph. A subscript on $h$ is the paid key from the original source word. + +| Receiver chart | Exact form of $s$ | Removed key | Rank | +| ---: | --- | ---: | ---: | +| 441 | $h_{94689}-h_{94690}-h_{94703}$ | 94703 | 2 | +| 527 | $h_{95863}$ | 95863 | 4 | +| 127 | $h_{103556}-h_{104045}/4-h_{104100}$ | 104100 | 3 | + +Set $x_{264}=x_{407}+x_{434}/4$. The middle row in the table now gives a zero payload outright. The other two rows give a local replacement for the removed key. The productive rank for 264 is nine. The complete bill therefore removes paid ranks $(2,4,3)$ and one productive rank nine per invocation. A changed coefficient at either end of a certificate is detectable on an independent input. The replay includes an altered receiver coefficient in each orientation. [Literal certificates](QUOTIENTS.json) · [Per-step rank receipts](results/witness.json) + +## Forward and transposed steps + +For a transposed step, transpose the normalized scalar network. Reverse every paid edge, interchange public inputs and outputs, and transpose its scalar incidence matrix. Apply the same restriction to a helper of this transposed contract. Transpose the restricted network back. The surviving operator is the corresponding restriction of the original contract because the removed helper is an identity summand and the other outputs are independent of it. The physical catalogue uses the resulting forward circuit and its ordered chart frames. + +The 14 forward and 19 transposed steps use stable source labels. For intermediate bookkeeping the constructor isolates each retired label as one formal identity row. At the end it checks that the row has no other reader, deletes it and renumbers every surviving entrance, output and hosted partner. The executable graph has 1,468 public fields, including 400 main fields. Its 1,068 helpers have distinct positive returns. All 16 calls assign fresh helper owners. [Compact graph and label checks](quotient.py) · [Caller binding](application.py) + +## Complete price + +For each step the paid ranks $d_1,\ldots,d_m$ are positive, $m\ge2$, and their sum is the rank $d$ of the lost target. With $0d^t$. The change improves productive value minus paid cost by 16 times this difference over the complete caller. Both rank masses fall by 3,200. Their surplus stays at 1,328. The fixed caller and root jobs enter the bill at their actual multiplicities. A second count subtracts each certificate debit from the published parent and checks the result against the compact graph. + +Two directed calculations give the raw crossing bracket. The compiler uses the interior probe 0.00376154487710 and gives the lower bound 0.00376154487703. The retained BIT pin is 0.00376669. All 54 strict and four functional inequalities pass. The implementation also charges the scalar loops, integer conversions, transfers, resets, private storage and occupied ancestor views under the inherited machine interfaces. [Signed invoice, power intervals and physical charges](results/application.json) + +## How the restrictions were found + +For an entrance chart, form the span of its independent input coordinates. Intersect this span with the scalar values held at each receiving chart. Intersections between two receiver spaces give candidate directions shared by several receivers. For each candidate, test which helper can serve as its pivot and which paid keys can be removed without a dependency cycle. Compare the lost productive rank with every removable paid rank. Recompute after an accepted restriction and repeat in the opposite orientation. The search used modular arithmetic. The published certificate checks every selected identity over the rationals. It establishes a feasible graph and leaves optimality open. diff --git a/research/p104-helper-quotients/QUOTIENTS.json b/research/p104-helper-quotients/QUOTIENTS.json new file mode 100644 index 0000000000..d0cc723ac6 --- /dev/null +++ b/research/p104-helper-quotients/QUOTIENTS.json @@ -0,0 +1,35 @@ +[ + {"direction":"forward","role":264,"entrance":[[264,"1"],[407,"-1"],[434,"-1/4"]],"banks":[{"chart":441,"remove":94703,"relation":[[94689,"1"],[94690,"-1"],[94703,"-1"]]},{"chart":527,"remove":95863,"relation":[[95863,"1"]]},{"chart":127,"remove":104100,"relation":[[103556,"1"],[104045,"-1/4"],[104100,"-1"]]}]}, + {"direction":"forward","role":386,"entrance":[[386,"1"],[443,"1/2"],[506,"1"],[564,"1"],[893,"1"],[938,"1"],[946,"-1"],[966,"-1"],[1132,"1"],[1201,"2"]],"banks":[{"chart":821,"remove":92248,"relation":[[92248,"2"]]},{"chart":443,"remove":92235,"relation":[[92218,"1"],[92219,"1"],[92235,"-2"]]}]}, + {"direction":"forward","role":412,"entrance":[[320,"1"],[412,"-4"],[531,"-4"],[587,"4"],[902,"8"],[912,"-8"],[927,"-8"],[984,"8"],[1146,"-4"],[1222,"-8"]],"banks":[{"chart":848,"remove":92013,"relation":[[92013,"-8"]]},{"chart":466,"remove":92001,"relation":[[89380,"-8"],[89381,"8"],[92001,"8"]]}]}, + {"direction":"forward","role":310,"entrance":[[310,"1"],[460,"-1/2"],[507,"1"],[565,"1/2"],[567,"1"],[884,"1"],[891,"1"],[965,"1"],[970,"1"],[1078,"-2"],[1091,"-1"],[1259,"-2"]],"banks":[{"chart":823,"remove":92043,"relation":[[92043,"-2"]]},{"chart":353,"remove":89948,"relation":[[89938,"-1"],[89939,"-1"],[89948,"2"]]}]}, + {"direction":"forward","role":324,"entrance":[[126,"1"],[142,"-4"],[172,"-4"],[173,"8"],[236,"-36"],[238,"-2"],[239,"-2"],[247,"-4"],[255,"-6"],[267,"-1"],[272,"60"],[278,"24"],[306,"-2"],[311,"24"],[313,"-8"],[316,"18"],[324,"8"],[336,"-8"],[348,"-1"],[358,"8"],[360,"-4"],[363,"-2"],[365,"-4"],[366,"-2"],[370,"8"],[372,"-4"],[376,"8"],[377,"8"],[379,"8"],[380,"4"],[382,"4"],[383,"12"],[388,"-2"],[399,"-8"],[408,"-1"],[409,"-2"],[414,"-8"],[418,"4"],[439,"-30"],[445,"-4"],[448,"-8"],[449,"8"],[461,"-4"],[495,"24"],[496,"-24"],[499,"-4"],[504,"-2"],[508,"16"],[510,"4"],[511,"-4"],[512,"-4"],[522,"-12"],[527,"-8"],[528,"-6"],[530,"24"],[536,"-16"],[537,"8"],[538,"-2"],[543,"-16"],[544,"-12"],[551,"-1"],[563,"4"],[564,"4"],[565,"-7"],[566,"-6"],[567,"-14"],[568,"2"],[569,"-12"],[599,"12"],[600,"-4"],[608,"-1"],[609,"3"],[611,"-12"],[617,"-6"],[619,"-2"],[624,"-2"],[640,"3"],[641,"-6"],[643,"2"],[655,"2"],[697,"6"],[704,"-2"],[726,"1"],[752,"12"],[767,"6"],[812,"-6"],[882,"8"],[883,"8"],[884,"16"],[886,"8"],[887,"8"],[888,"8"],[889,"-8"],[890,"8"],[891,"-8"],[892,"-8"],[893,"-8"],[905,"8"],[906,"8"],[907,"8"],[908,"8"],[909,"8"],[913,"-4"],[934,"-8"],[935,"8"],[936,"8"],[938,"-8"],[939,"-8"],[940,"8"],[941,"8"],[942,"8"],[943,"8"],[944,"8"],[945,"8"],[946,"8"],[947,"8"],[948,"16"],[949,"8"],[950,"8"],[951,"8"],[955,"-8"],[956,"8"],[957,"-8"],[958,"8"],[959,"8"],[960,"8"],[962,"8"],[963,"8"],[964,"8"],[965,"8"],[966,"8"],[967,"8"],[968,"-8"],[971,"8"],[972,"8"],[973,"8"],[988,"-8"],[994,"2"],[1002,"16"],[1003,"2"],[1032,"8"],[1033,"-4"],[1043,"-8"],[1062,"-8"],[1063,"-8"],[1065,"8"],[1068,"-16"],[1072,"-8"],[1073,"-2"],[1074,"-2"],[1078,"8"],[1079,"-6"],[1094,"16"],[1095,"2"],[1097,"-8"],[1105,"8"],[1113,"4"],[1114,"2"],[1116,"16"],[1118,"2"],[1120,"2"],[1170,"-8"],[1171,"8"],[1175,"-4"],[1176,"-4"],[1177,"8"],[1178,"8"],[1195,"16"],[1201,"8"],[1202,"8"],[1204,"40"],[1205,"-8"],[1208,"8"],[1210,"-8"],[1212,"2"],[1227,"-4"],[1228,"-12"],[1229,"-4"],[1233,"-4"],[1234,"-4"],[1235,"12"],[1242,"4"],[1250,"-2"],[1255,"-12"],[1258,"-1"],[1259,"20"],[1265,"-3"],[1279,"-12"],[1287,"-2"],[1295,"1/2"],[1349,"-8"]],"banks":[{"chart":554,"remove":93125,"relation":[[93125,"-16"]]},{"chart":369,"remove":93113,"relation":[[93099,"-8"],[93100,"-8"],[93113,"16"]]}]}, + {"direction":"forward","role":327,"entrance":[[327,"1"],[359,"-1"],[456,"1/2"],[562,"-1"],[893,"-1"],[938,"-1"],[947,"-1"],[967,"-1"],[1100,"1"],[1203,"2"]],"banks":[{"chart":816,"remove":92941,"relation":[[92941,"2"]]},{"chart":372,"remove":90298,"relation":[[89868,"1"],[89869,"1"],[90298,"-2"]]}]}, + {"direction":"forward","role":308,"entrance":[[126,"1"],[142,"-4"],[172,"-4"],[173,"8"],[236,"-36"],[238,"-2"],[239,"-2"],[247,"-4"],[255,"-6"],[267,"-1"],[272,"60"],[278,"24"],[306,"-2"],[308,"-8"],[311,"24"],[313,"-8"],[316,"18"],[336,"-8"],[348,"-1"],[360,"-4"],[363,"-2"],[365,"-4"],[366,"-2"],[370,"8"],[372,"-4"],[376,"8"],[377,"8"],[379,"8"],[380,"4"],[382,"4"],[383,"12"],[388,"-2"],[399,"-8"],[408,"-1"],[409,"-2"],[414,"-8"],[418,"4"],[439,"-30"],[448,"-8"],[449,"8"],[495,"24"],[496,"-24"],[499,"-4"],[504,"-2"],[508,"8"],[510,"4"],[511,"-4"],[512,"-4"],[522,"-12"],[527,"-8"],[528,"-6"],[530,"24"],[536,"-16"],[537,"8"],[538,"-2"],[543,"-16"],[544,"-12"],[551,"-1"],[563,"4"],[564,"4"],[565,"-7"],[566,"2"],[567,"-14"],[568,"-6"],[569,"-12"],[599,"12"],[600,"-4"],[608,"-1"],[609,"3"],[611,"-12"],[617,"-6"],[619,"-2"],[624,"-2"],[640,"3"],[641,"-6"],[643,"2"],[655,"2"],[697,"6"],[704,"-2"],[726,"1"],[752,"12"],[767,"6"],[812,"-6"],[882,"8"],[883,"8"],[884,"8"],[886,"8"],[887,"8"],[888,"8"],[889,"-8"],[890,"8"],[891,"-8"],[892,"-8"],[893,"-8"],[905,"16"],[906,"8"],[907,"8"],[908,"8"],[909,"8"],[913,"-4"],[934,"-8"],[935,"8"],[936,"8"],[938,"-8"],[939,"-8"],[940,"8"],[941,"8"],[942,"8"],[943,"8"],[944,"8"],[945,"8"],[946,"8"],[947,"8"],[948,"16"],[949,"8"],[950,"8"],[951,"8"],[956,"8"],[957,"-8"],[958,"8"],[959,"8"],[960,"8"],[962,"8"],[963,"8"],[964,"8"],[965,"8"],[966,"8"],[967,"8"],[968,"-8"],[970,"-8"],[971,"8"],[972,"8"],[973,"8"],[988,"-8"],[994,"2"],[1002,"16"],[1003,"2"],[1032,"8"],[1033,"-4"],[1043,"-8"],[1062,"-8"],[1063,"-8"],[1065,"8"],[1072,"-8"],[1073,"-2"],[1074,"-2"],[1078,"8"],[1079,"-6"],[1090,"-8"],[1094,"16"],[1095,"2"],[1113,"4"],[1114,"2"],[1116,"16"],[1118,"2"],[1120,"2"],[1170,"-8"],[1171,"8"],[1175,"-4"],[1176,"-4"],[1177,"8"],[1178,"8"],[1195,"16"],[1201,"8"],[1202,"8"],[1204,"72"],[1205,"-8"],[1208,"8"],[1210,"-8"],[1212,"2"],[1227,"-4"],[1228,"-12"],[1229,"-4"],[1233,"-4"],[1234,"-4"],[1235,"12"],[1242,"4"],[1250,"-2"],[1255,"-12"],[1258,"-1"],[1259,"20"],[1265,"-3"],[1279,"-12"],[1287,"-2"],[1295,"1/2"],[1349,"-8"]],"banks":[{"chart":555,"remove":93078,"relation":[[93078,"-16"]]},{"chart":351,"remove":93065,"relation":[[93053,"-8"],[93054,"-8"],[93065,"16"]]}]}, + {"direction":"forward","role":406,"entrance":[[21,"1"],[152,"-1"],[230,"1"],[243,"1"],[257,"1"],[268,"-8"],[272,"-1"],[276,"-1"],[280,"-2"],[281,"2"],[283,"-4"],[284,"3"],[288,"3/8"],[302,"-1/4"],[313,"-2"],[331,"2"],[334,"1"],[344,"2"],[348,"-1"],[352,"-1/2"],[354,"1/4"],[356,"-1/2"],[363,"2"],[364,"1"],[365,"-1"],[372,"-13/5"],[399,"-5/2"],[404,"4"],[406,"16/5"],[414,"-2"],[424,"-2"],[429,"8"],[439,"1/2"],[441,"-2"],[458,"-1"],[470,"-2"],[471,"1"],[472,"2/5"],[490,"2"],[491,"-2"],[494,"-2"],[499,"-1"],[502,"-1"],[511,"4"],[512,"1"],[517,"-2"],[525,"1"],[527,"-2"],[528,"-3/2"],[536,"-4"],[537,"4"],[538,"2"],[541,"-1"],[543,"-3"],[544,"-2"],[547,"4"],[558,"2"],[560,"-2"],[561,"1/2"],[562,"1"],[565,"-1/2"],[567,"-1"],[570,"1/4"],[571,"-1/2"],[573,"-1/2"],[587,"1/2"],[591,"1/2"],[608,"-1/4"],[619,"-1/2"],[624,"-1/2"],[635,"1/2"],[640,"-1/2"],[643,"1/2"],[655,"1/2"],[659,"1"],[680,"1/4"],[681,"-1/2"],[688,"-1/2"],[691,"-1/2"],[704,"-13/2"],[707,"1/2"],[711,"1"],[732,"8"],[756,"2"],[760,"-1"],[761,"-1/2"],[789,"1"],[802,"1"],[811,"2"],[896,"-2"],[899,"2"],[913,"1/2"],[924,"-1/2"],[932,"-2"],[978,"-2"],[988,"-1"],[990,"2"],[1007,"-1/2"],[1013,"2"],[1018,"-1"],[1021,"-1"],[1027,"2"],[1029,"-1"],[1031,"-2"],[1032,"-2"],[1033,"1"],[1034,"-1/2"],[1035,"-2"],[1037,"1"],[1039,"-2"],[1043,"-2"],[1046,"1"],[1048,"2"],[1055,"-2"],[1058,"-2"],[1060,"2"],[1063,"6"],[1065,"-1"],[1068,"2"],[1072,"-1/2"],[1073,"-1/2"],[1074,"-1/2"],[1075,"-2"],[1077,"4"],[1078,"2"],[1080,"2"],[1081,"2"],[1086,"1/2"],[1094,"2"],[1095,"1/2"],[1105,"1"],[1109,"1/2"],[1110,"1/2"],[1114,"-3/2"],[1118,"1/2"],[1120,"-1/2"],[1121,"2"],[1127,"1/2"],[1128,"1/2"],[1141,"2"],[1143,"14/5"],[1146,"-1"],[1162,"-2"],[1170,"-2"],[1171,"8"],[1173,"2"],[1174,"-1"],[1175,"1"],[1176,"1"],[1178,"1"],[1180,"1"],[1181,"1"],[1182,"-1/2"],[1184,"1/2"],[1186,"-1"],[1187,"-2"],[1188,"-1/2"],[1193,"1/2"],[1194,"2"],[1198,"-2"],[1203,"2"],[1205,"2"],[1206,"2"],[1207,"1"],[1212,"-3/2"],[1216,"4"],[1221,"2"],[1222,"-1"],[1227,"-1"],[1229,"1/2"],[1230,"1/2"],[1233,"1"],[1234,"1"],[1236,"-1"],[1243,"-2"],[1244,"-1"],[1245,"-1"],[1248,"1"],[1249,"1/2"],[1250,"-1/2"],[1253,"1"],[1255,"1"],[1256,"-2"],[1257,"-2"],[1259,"2"],[1260,"1"],[1262,"-1"],[1264,"1"],[1273,"1/4"],[1274,"3/8"],[1306,"2"],[1309,"-1/2"],[1319,"-1/2"],[1328,"-2"],[1340,"1"],[1343,"-4/3"],[1449,"-2"],[1466,"-1"],[1469,"-2"],[1471,"-4"],[1473,"-2"]],"banks":[{"chart":836,"remove":99417,"relation":[[99417,"4"]]},{"chart":465,"remove":89391,"relation":[[89377,"2"],[89378,"2"],[89391,"-4"]]}]}, + {"direction":"forward","role":326,"entrance":[[326,"1"],[444,"1/2"],[495,"-1"],[891,"-1"],[905,"-1"],[955,"-1"],[965,"-1"],[1070,"2"],[1098,"1"],[1106,"-1"]],"banks":[{"chart":822,"remove":92130,"relation":[[92130,"2"]]},{"chart":371,"remove":91409,"relation":[[91405,"1"],[91406,"1"],[91409,"-2"]]}]}, + {"direction":"forward","role":348,"entrance":[[348,"1"],[363,"2"],[366,"2"],[504,"2"],[551,"1"],[600,"4"],[726,"-1"],[1033,"4"]],"banks":[{"chart":207,"remove":97585,"relation":[[97585,"4"],[102289,"4"]]},{"chart":127,"remove":104436,"relation":[[104436,"8"]]}]}, + {"direction":"forward","role":454,"entrance":[[454,"1"],[942,"3/4"],[971,"3/4"]],"banks":[{"chart":924,"remove":98973,"relation":[[98973,"-1/4"]]},{"chart":757,"remove":95355,"relation":[[95355,"3/2"],[98958,"-1/4"]]}]}, + {"direction":"forward","role":259,"entrance":[[259,"1"],[261,"2"]],"banks":[{"chart":9,"remove":90056,"relation":[[90056,"-2"]]},{"chart":306,"remove":95898,"relation":[[90124,"-1"],[90126,"-2"],[95898,"2"]]}]}, + {"direction":"transpose","role":559,"entrance":[[559,"1"]],"banks":[{"chart":807,"remove":104187,"relation":[[99290,"2"],[104187,"2"]]},{"chart":3,"remove":97558,"relation":[[97558,"-2"]]}]}, + {"direction":"transpose","role":239,"entrance":[[239,"1"],[349,"1/4"],[388,"1/2"],[414,"1"],[417,"1/4"],[442,"-1"],[471,"1"],[511,"-1/4"],[527,"-1/2"],[543,"-1/4"],[548,"1/2"],[570,"1"],[572,"-1/4"],[580,"1/4"],[592,"1/2"],[608,"1/2"],[609,"-1/2"],[611,"-1/4"],[617,"1/4"],[624,"-1/4"],[635,"1/2"],[643,"1/4"],[812,"-1/2"],[924,"3/4"],[993,"1/4"],[1007,"-5/4"],[1020,"1/8"],[1060,"3/16"],[1073,"-1/2"],[1095,"-1/2"],[1118,"-1/2"],[1128,"-1"],[1148,"-1/8"],[1154,"-3/8"],[1157,"-1/2"],[1173,"1/4"],[1175,"-1/4"],[1228,"1/8"],[1234,"1/8"],[1265,"-1/2"],[1272,"-1/8"],[1273,"-1"],[1281,"-1/2"],[1283,"1/2"],[1295,"-2"],[1300,"1/2"],[1306,"-3/16"],[1472,"-2"]],"banks":[{"chart":480,"remove":93428,"relation":[[93428,"1"]]},{"chart":3,"remove":92659,"relation":[[90098,"-1"],[90101,"1"],[92659,"-1"]]}]}, + {"direction":"transpose","role":1404,"entrance":[[377,"1"],[782,"1"],[833,"1"],[841,"-1"],[861,"-1"],[1095,"-2"],[1175,"1"],[1404,"1/2"]],"banks":[{"chart":286,"remove":98386,"relation":[[98386,"1/2"]]},{"chart":999,"remove":104314,"relation":[[101264,"1"],[101266,"-2"],[104314,"1"]]}]}, + {"direction":"transpose","role":1405,"entrance":[[370,"1"],[783,"1"],[832,"1"],[840,"-1"],[860,"-1"],[1095,"-2"],[1175,"-1"],[1234,"2"],[1405,"1/2"]],"banks":[{"chart":287,"remove":98390,"relation":[[98390,"1/2"]]},{"chart":1000,"remove":103959,"relation":[[100881,"-2"],[100883,"1"],[103959,"1"]]}]}, + {"direction":"transpose","role":457,"entrance":[[457,"1"]],"banks":[{"chart":952,"remove":103866,"relation":[[101520,"-1/2"],[102221,"-2"],[103866,"1"]]},{"chart":281,"remove":98374,"relation":[[98374,"-1"]]}]}, + {"direction":"transpose","role":1407,"entrance":[[319,"1"],[587,"-2"],[774,"-1"],[842,"-1"],[864,"-1"],[1128,"1/2"],[1173,"-1/8"],[1222,"-1"],[1407,"-1"],[1472,"2"]],"banks":[{"chart":299,"remove":96018,"relation":[[96018,"-1"]]},{"chart":976,"remove":103614,"relation":[[98507,"-2"],[99382,"-1/2"],[103614,"1"]]}]}, + {"direction":"transpose","role":1402,"entrance":[[331,"1"],[782,"-1"],[833,"-1"],[840,"-1"],[860,"-1"],[1128,"-2"],[1173,"-1/2"],[1402,"-1"]],"banks":[{"chart":283,"remove":95790,"relation":[[95790,"-1"]]},{"chart":974,"remove":103970,"relation":[[101770,"-2"],[101772,"-1/2"],[103970,"1"]]}]}, + {"direction":"transpose","role":1399,"entrance":[[532,"1"],[795,"-1/2"],[820,"1/2"],[879,"-1/2"],[1241,"-1"],[1399,"-1"]],"banks":[{"chart":380,"remove":95818,"relation":[[95818,"-1"]]},{"chart":1008,"remove":104353,"relation":[[100374,"-1/2"],[100467,"-1"],[104353,"1"]]}]}, + {"direction":"transpose","role":1395,"entrance":[[796,"1"],[807,"1"],[819,"-1"],[868,"-1"],[913,"2"],[1178,"1"],[1248,"-2"],[1395,"2"]],"banks":[{"chart":362,"remove":98512,"relation":[[98512,"2"]]},{"chart":1010,"remove":104374,"relation":[[100377,"1"],[100465,"2"],[104374,"-2"]]}]}, + {"direction":"transpose","role":1435,"entrance":[[17,"1"],[342,"-1/4"],[382,"1/2"],[428,"-1/4"],[672,"1"],[679,"-1"],[784,"1/4"],[826,"1/4"],[847,"-1/4"],[1169,"-1/4"],[1180,"-1/2"],[1181,"1/4"],[1199,"1/4"],[1242,"-1/2"],[1243,"1/4"],[1264,"1/2"],[1309,"-1/2"],[1435,"-1/2"]],"banks":[{"chart":326,"remove":98798,"relation":[[98798,"-1/2"]]},{"chart":1014,"remove":104312,"relation":[[101694,"1/2"],[101701,"-1/4"],[104312,"1/2"]]}]}, + {"direction":"transpose","role":1398,"entrance":[[397,"1"],[680,"2"],[804,"1/2"],[807,"-1/2"],[868,"1/2"],[877,"-1/2"],[1181,"-1/2"],[1243,"-1/4"],[1263,"-2"],[1309,"1"],[1398,"-1"]],"banks":[{"chart":364,"remove":101250,"relation":[[101250,"1"]]},{"chart":1014,"remove":104372,"relation":[[101694,"-1"],[101701,"-1/2"],[104372,"1"]]}]}, + {"direction":"transpose","role":1436,"entrance":[[38,"1"],[342,"-1/4"],[380,"1/2"],[428,"-1/4"],[672,"-1"],[679,"1"],[803,"1/4"],[870,"1/4"],[873,"-1/4"],[1169,"-1/4"],[1181,"-1/4"],[1199,"1/4"],[1287,"1"],[1309,"-1/2"],[1436,"-1/2"]],"banks":[{"chart":325,"remove":98413,"relation":[[98413,"-1/2"]]},{"chart":1013,"remove":104306,"relation":[[100915,"-1/4"],[100918,"1/2"],[104306,"1/2"]]}]}, + {"direction":"transpose","role":1410,"entrance":[[541,"1"],[643,"-1"],[794,"-1/2"],[805,"1/2"],[821,"1/2"],[878,"-1/2"],[1095,"1"],[1175,"1/2"],[1234,"-1/2"],[1255,"1"],[1279,"-1"],[1410,"1"]],"banks":[{"chart":379,"remove":98701,"relation":[[98701,"-1"]]},{"chart":1001,"remove":103631,"relation":[[99711,"-1/2"],[99714,"-1"],[103631,"1"]]}]}, + {"direction":"transpose","role":1434,"entrance":[[40,"1"],[342,"-1/4"],[428,"-1/4"],[500,"1/2"],[871,"1/4"],[872,"1/4"],[1169,"-1/4"],[1181,"-1/4"],[1199,"1/4"],[1309,"1/2"],[1434,"-1/2"]],"banks":[{"chart":344,"remove":95925,"relation":[[95925,"-1/2"]]},{"chart":1016,"remove":104396,"relation":[[102082,"1/2"],[102088,"-1/4"],[104396,"1/2"]]}]}, + {"direction":"transpose","role":1433,"entrance":[[38,"1"],[342,"-1/4"],[428,"-1/4"],[537,"-1/4"],[599,"-1/2"],[784,"1/4"],[847,"-1/4"],[870,"1/4"],[988,"-1"],[1169,"-1/4"],[1199,"1/4"],[1329,"1/2"],[1433,"1/2"]],"banks":[{"chart":324,"remove":97702,"relation":[[97702,"-1/4"]]},{"chart":982,"remove":103833,"relation":[[101483,"-1/4"],[101485,"-1/2"],[103833,"-1/4"]]}]}, + {"direction":"transpose","role":1360,"entrance":[[19,"1"],[30,"-1"],[38,"1"],[342,"-1/4"],[428,"-1/4"],[521,"1/4"],[608,"-1"],[609,"1"],[617,"-1/2"],[624,"1/2"],[773,"1/4"],[776,"1/4"],[777,"1/4"],[779,"-1/4"],[782,"-1/4"],[783,"-1/4"],[784,"-1/4"],[785,"-1/4"],[790,"-1/4"],[796,"-1/4"],[797,"-1/4"],[798,"1/4"],[801,"1/4"],[804,"-1/4"],[808,"-1/4"],[809,"-1/4"],[812,"1/2"],[815,"-1/4"],[817,"-1/4"],[820,"-1/4"],[821,"-1/4"],[822,"1/4"],[826,"-1/4"],[827,"-1/4"],[828,"1/4"],[832,"-1/4"],[833,"-1/4"],[834,"1/4"],[835,"1/4"],[837,"1/4"],[842,"-1/4"],[843,"1/4"],[844,"1/4"],[849,"-1/4"],[851,"-1/4"],[852,"1/4"],[856,"1/4"],[858,"1/4"],[862,"-1/4"],[865,"1/4"],[868,"-1/4"],[871,"-1/4"],[872,"-1/4"],[873,"-1/4"],[874,"1/4"],[878,"-1/4"],[879,"-1/4"],[880,"1/4"],[881,"1/4"],[1079,"-1/2"],[1169,"-1/4"],[1199,"1/4"],[1360,"1/8"]],"banks":[{"chart":712,"remove":95978,"relation":[[95978,"1/2"],[99806,"1/8"]]},{"chart":867,"remove":103863,"relation":[[100630,"1/2"],[103863,"1/4"]]}]}, + {"direction":"transpose","role":1361,"entrance":[[19,"1"],[30,"-1"],[38,"1"],[342,"-1/4"],[428,"-1/4"],[529,"1/4"],[773,"1/4"],[774,"-1/4"],[776,"1/4"],[777,"1/4"],[779,"-1/4"],[782,"-1/4"],[783,"-1/4"],[784,"-1/4"],[785,"-1/4"],[790,"-1/4"],[796,"-1/4"],[798,"1/4"],[801,"1/4"],[804,"-1/4"],[808,"-1/4"],[809,"-1/4"],[815,"-1/4"],[817,"-1/4"],[820,"-1/4"],[821,"-1/4"],[822,"1/4"],[826,"-1/4"],[827,"-1/4"],[828,"1/4"],[832,"-1/4"],[833,"-1/4"],[834,"1/4"],[835,"1/4"],[837,"1/4"],[842,"-1/4"],[843,"1/4"],[844,"1/4"],[851,"-1/4"],[852,"1/4"],[856,"1/4"],[858,"1/4"],[862,"-1/4"],[864,"-1/4"],[865,"1/4"],[868,"-1/4"],[871,"-1/4"],[872,"-1/4"],[873,"-1/4"],[874,"1/4"],[878,"-1/4"],[879,"-1/4"],[880,"1/4"],[881,"1/4"],[1065,"1/4"],[1072,"-1/2"],[1169,"-1/4"],[1199,"1/4"],[1361,"1/8"]],"banks":[{"chart":714,"remove":99174,"relation":[[99174,"1/2"],[99906,"1/8"]]},{"chart":875,"remove":104359,"relation":[[99708,"1/2"],[104359,"1/4"]]}]}, + {"direction":"transpose","role":651,"entrance":[[651,"1"],[654,"1"],[1450,"-2"],[1488,"-1"],[1493,"-2"]],"banks":[{"chart":207,"remove":103567,"relation":[[103567,"-2"],[103591,"4"],[103778,"1"]]},{"chart":120,"remove":102293,"relation":[[99856,"-1"],[100069,"1"],[102293,"-2"]]}]}, + {"direction":"forward","role":652,"entrance":[[652,"1"],[653,"1"],[654,"1"],[1303,"-1"],[1450,"-1"],[1488,"2"]],"banks":[{"chart":207,"remove":102289,"relation":[[102289,"2"],[102313,"-1"]]},{"chart":127,"remove":104334,"relation":[[104334,"-1"]]}]}, + {"direction":"transpose","role":831,"entrance":[[831,"1"],[1023,"1/2"]],"banks":[{"chart":9,"remove":104201,"relation":[[90612,"-1"],[104201,"1"]]},{"chart":3,"remove":90607,"relation":[[90607,"-1"]]}]}, + {"direction":"forward","role":696,"entrance":[[3,"1"],[126,"-2"],[129,"-8"],[150,"8"],[159,"8"],[164,"8"],[173,"-16"],[205,"4"],[230,"16"],[236,"-24"],[238,"4"],[242,"8"],[243,"-8"],[247,"-8"],[252,"1/2"],[255,"-4"],[265,"1/4"],[267,"2"],[268,"64"],[269,"4"],[272,"32"],[276,"-4"],[281,"-16"],[283,"16"],[284,"24"],[288,"-6"],[302,"-2"],[306,"-8"],[311,"16"],[313,"-16"],[316,"12"],[319,"-16"],[320,"8"],[334,"-2"],[336,"-24"],[342,"8"],[344,"32"],[352,"-4"],[354,"2"],[356,"-4"],[360,"-24"],[363,"-32"],[364,"8"],[365,"-16"],[366,"-16"],[372,"-16"],[383,"16"],[388,"4"],[399,"-24"],[404,"8"],[407,"40"],[408,"2"],[409,"4"],[414,"-32"],[417,"-32"],[418,"-16"],[424,"-32"],[428,"-8"],[434,"16"],[439,"-16"],[442,"-8"],[446,"-4"],[447,"12"],[448,"-32"],[449,"32"],[461,"-8"],[464,"-4"],[467,"8"],[468,"-8"],[469,"-16"],[470,"16"],[471,"16"],[477,"-4"],[478,"12"],[479,"-16"],[484,"-2"],[488,"-8"],[489,"8"],[490,"16"],[494,"-16"],[496,"-16"],[497,"-4"],[499,"-16"],[502,"-8"],[504,"-16"],[508,"-16"],[511,"64"],[512,"-16"],[518,"16"],[519,"-16"],[523,"-8"],[525,"-8"],[527,"-32"],[528,"-28"],[530,"16"],[531,"32"],[536,"-32"],[538,"-40"],[539,"-16"],[541,"16"],[543,"-48"],[544,"-56"],[545,"32"],[547,"32"],[550,"1/2"],[551,"-12"],[552,"8"],[558,"16"],[560,"-16"],[561,"4"],[562,"8"],[563,"-8"],[564,"8"],[565,"4"],[567,"8"],[568,"8"],[570,"-4"],[571,"-8"],[573,"8"],[581,"8"],[582,"4"],[583,"-4"],[587,"-12"],[589,"-32"],[590,"8"],[592,"-4"],[599,"8"],[600,"-32"],[608,"-2"],[609,"4"],[619,"-12"],[624,"-4"],[635,"-4"],[640,"4"],[643,"-4"],[655,"-4"],[664,"-16"],[679,"-4"],[688,"-8"],[695,"-16"],[696,"16"],[697,"4"],[704,"-8"],[707,"8"],[711,"-16"],[726,"8"],[732,"-64"],[752,"8"],[760,"8"],[761,"-8"],[775,"16"],[793,"-16"],[812,"4"],[830,"-16"],[883,"-16"],[888,"16"],[890,"16"],[892,"-16"],[893,"-16"],[894,"16"],[896,"-48"],[897,"16"],[900,"16"],[904,"-16"],[906,"-16"],[908,"-16"],[910,"-16"],[911,"-16"],[913,"8"],[914,"-16"],[915,"16"],[918,"16"],[919,"16"],[922,"16"],[923,"16"],[924,"8"],[925,"16"],[930,"-16"],[933,"-16"],[935,"16"],[938,"16"],[939,"16"],[942,"-16"],[943,"16"],[946,"16"],[947,"16"],[951,"-16"],[953,"-16"],[956,"16"],[958,"16"],[961,"-16"],[962,"-16"],[964,"-16"],[966,"-16"],[967,"-16"],[971,"16"],[974,"16"],[976,"16"],[979,"16"],[981,"-16"],[982,"-16"],[983,"16"],[986,"16"],[987,"16"],[988,"-8"],[991,"-16"],[994,"-4"],[999,"-8"],[1003,"4"],[1007,"8"],[1009,"32"],[1017,"16"],[1021,"16"],[1022,"-16"],[1026,"16"],[1027,"-16"],[1029,"-16"],[1031,"-32"],[1033,"-24"],[1039,"16"],[1042,"-8"],[1043,"-32"],[1048,"-16"],[1055,"-16"],[1058,"-16"],[1060,"-32"],[1062,"-16"],[1063,"-32"],[1065,"8"],[1066,"-32"],[1070,"16"],[1072,"-4"],[1073,"-12"],[1074,"-4"],[1077,"16"],[1079,"4"],[1084,"4"],[1094,"16"],[1095,"-4"],[1104,"8"],[1105,"16"],[1106,"-8"],[1109,"8"],[1110,"4"],[1113,"8"],[1114,"8"],[1118,"8"],[1120,"-8"],[1122,"16"],[1126,"16"],[1128,"-4"],[1139,"-16"],[1141,"-32"],[1142,"-16"],[1143,"-32"],[1144,"-16"],[1146,"16"],[1160,"-16"],[1161,"-32"],[1162,"-32"],[1164,"-16"],[1166,"8"],[1169,"8"],[1170,"-32"],[1171,"32"],[1172,"-16"],[1173,"16"],[1174,"-8"],[1175,"-8"],[1176,"-8"],[1177,"-8"],[1178,"32"],[1180,"8"],[1181,"-8"],[1182,"4"],[1184,"8"],[1186,"-8"],[1187,"16"],[1188,"-8"],[1190,"4"],[1193,"4"],[1194,"16"],[1196,"-8"],[1198,"-48"],[1199,"8"],[1201,"-16"],[1202,"16"],[1203,"16"],[1205,"32"],[1206,"-32"],[1207,"16"],[1208,"16"],[1210,"-16"],[1212,"8"],[1214,"-16"],[1215,"16"],[1216,"-32"],[1222,"8"],[1227,"-24"],[1228,"16"],[1229,"8"],[1230,"4"],[1233,"-8"],[1234,"-8"],[1235,"16"],[1236,"-24"],[1238,"8"],[1240,"4"],[1242,"8"],[1244,"8"],[1245,"8"],[1247,"-16"],[1248,"24"],[1249,"-4"],[1250,"-8"],[1253,"-40"],[1256,"16"],[1259,"16"],[1260,"8"],[1262,"32"],[1272,"16"],[1273,"-4"],[1274,"-6"],[1277,"16"],[1279,"16"],[1284,"4"],[1287,"4"],[1295,"-1"],[1306,"-32"],[1307,"8"],[1309,"-4"],[1311,"-24"],[1319,"-4"],[1343,"32/3"],[1466,"24"],[1472,"2"],[1473,"16"]],"banks":[{"chart":1031,"remove":100129,"relation":[[-1387,"-8"],[-1363,"-16"],[89919,"8"],[90340,"16"],[93668,"8"],[93670,"8"],[93672,"8"],[93677,"-8"],[100120,"-16"],[100129,"-16"]]},{"chart":597,"remove":97603,"relation":[[97603,"16"],[100126,"16"]]}]} +] diff --git a/research/p104-helper-quotients/README.md b/research/p104-helper-quotients/README.md new file mode 100644 index 0000000000..95122fff76 --- /dev/null +++ b/research/p104-helper-quotients/README.md @@ -0,0 +1,45 @@ +# Removing paid transfers and helper returns together + +The 16-stage signed P104 application gives **conditional κ ≥ 0.00376154487703**. This lower bound exceeds the upper endpoint of PR #7708 by **0.00002115478655 (0.56558%)**. The preceding gain over #7704 was 0.00001034832006. The new increment is 2.04 times as large. The selected #7000 reference at the pinned main commit is 0.00363005817. [Predecessor](https://github.com/CrocSwap/integer-mult-bounds/pull/7708) · [Selected scientific review](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/docs/research/pr-intake-evidence/pr7000-application/PROOF-REVIEW.md) + +| Quantity | PR #7708 | This construction | +| --- | ---: | ---: | +| Independent native helpers per call | 1,101 | 1,068 | +| Paid native transfers per call | 6,121 | 6,054 | +| Local scalar terms per call | 177,531 | 175,927 | +| Numerical storage locations per call | 9,128 | 8,995 | +| Paid jobs across 16 calls | 101,488 | 100,416 | +| Productive jobs across 16 calls | 21,152 | 20,624 | +| Paid rank mass | 271,568 | 268,368 | +| Productive rank mass | 272,896 | 269,696 | +| Charged scalar services | 124,542,464 | 123,312,128 | +| Directed raw crossing | (0.00374039009047, 0.00374039009048) | (0.00376154487711, 0.00376154487712) | + +At each step, give up one independent helper and impose a linear relation among inputs at the same chart. Several receiver banks already contain that linear form. Each receiver can now reconstruct one paid return from its other banks. For example, giving up the rank-nine return for helper 264 removes three paid transfers of ranks two, four and three. The signed bill benefits because, for every exponent strictly between zero and one, the three separate jobs cost more than the single lost target. [Worked example and general proof](PROOF.md) · [33 explicit restrictions](QUOTIENTS.json) + +The verifier checks all 67 receiver identities on independent inputs before each restriction. It also checks all 1,468 final rows, all 1,468 input columns, 2,962 phased chart pairs, 104 main ports and 1,664 port-stage contacts. The forward execution uses the actual compact graph, including its integer divisions, guarded storage, typed transfers and resets. At #7708’s upper endpoint, the new productive-minus-paid margin lies between 7.41141029282 and 7.41141029283. [Relation and reverse-column receipt](results/witness.json) · [Complete price and physical receipt](results/application.json) + +## Reproduce + +Run the five registered checks from the repository root with Python 3.12 and its standard library. + +```sh +python3.12 -B scripts/research_package.py --package research/p104-helper-quotients +``` + +To obtain the exact compact graph, run the constructor. The SHA-256 of its output is `16e99893a2c669467ce74f214e8eb5150402f0267aaa8d67aad5d870aa4d5c18`. The program folds the supplied nine-swap word, applies the role-1256 contraction and replays all 46 parent cuts. The parent graph must match the published SHA-256 `db10e4ca7154b454f86bf404bc34b3a16d02de6cc008d5227e4eef2654cb0778`. + +```sh +python3.12 -I -B research/p104-helper-quotients/quotient.py > /tmp/p104-helper-quotients.json +``` + +## Scope + +The result inherits five scientific interfaces from #7000. They cover the native operator family, owned erasure, compilation, precision on tape and analytic recovery. Independent scientific review, a materialized full multiplier and practical finite-size runtime remain open. [Selected assumptions](vendor/selected-claim.json) · [Compiler gates](results/application.json) + +## Open next questions + +- Can a two-dimensional restriction remove a paid return that either constraint alone leaves necessary? Start with two surviving helpers at one entrance chart. Account for both lost targets. +- Can an independent implementation recover the three relations for helper 264 and the first transposed restriction, for helper 559? Check the compact endpoint map and the full price after both orientations. [Review handoff](https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19710820) + +Ali Romman prepared the new construction and software with substantial OpenAI Codex assistance. The package retains the supplier notices and source pins. New work uses Apache-2.0. [Attribution](NOTICE) · [Source pins](SOURCE-PINS.json) diff --git a/research/p104-helper-quotients/SOURCE-PINS.json b/research/p104-helper-quotients/SOURCE-PINS.json new file mode 100644 index 0000000000..4cc126540d --- /dev/null +++ b/research/p104-helper-quotients/SOURCE-PINS.json @@ -0,0 +1,205 @@ +[ + { + "path": "LICENSE", + "source_path": "research/cf6a-banked-role1256-relay/LICENSE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + { + "path": "credits/7658-NOTICE", + "source_path": "research/cf6a-banked-role1256-relay/credits/7658-NOTICE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "2baa2a719ea3a9ec94c2e7aec72702ec8c92b346", + "sha256": "2732575164931c53cc4bc57145c31d87741489e3048afee6899e856c0ea503b5" + }, + { + "path": "credits/7700-CITATION.cff", + "source_path": "research/cf6a-banked-role1256-relay/credits/7700-CITATION.cff", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "d80f6b8660d6caaa82cb194fc22d0817d642d043", + "sha256": "50399ea15e9ce49baafbd00d6da16e662ac46c566e3c04af3993e23cf0b62ff4" + }, + { + "path": "credits/7700-NOTICE", + "source_path": "research/cf6a-banked-role1256-relay/credits/7700-NOTICE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "59d8e0cf3102e15bd11db430838365531e2d7f18", + "sha256": "b49022cb4104d90b182e4c335f670faf45529025b15db77bf0291835083c28bd" + }, + { + "path": "credits/OUTER-GATE-NOTICE", + "source_path": "research/cf6a-banked-role1256-relay/credits/OUTER-GATE-NOTICE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "1bc9b4da2b8398954cd7a49356eb9d397785d0a6", + "sha256": "cadbc642ca84311d2c7a6cf704c7828cb4cf77e3c784b66e4c6e8a5c28002fb8" + }, + { + "path": "credits/PR7663-NOTICE", + "source_path": "research/cf6a-banked-role1256-relay/credits/PR7663-NOTICE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "6ce1bc49a3612c9e906df02de81bcba84be8e803", + "sha256": "5fd4367578d2339fbdcd7dc116b6c12cb4fa72e92d2e3d67be537a36c8bd9d40" + }, + { + "path": "credits/PR7669-PROVENANCE.md", + "source_path": "research/cf6a-banked-role1256-relay/credits/PR7669-PROVENANCE.md", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "bbee2437f012c3268eb5cd920adfa37394c1de72", + "sha256": "706c6c852e87e371ddf1828244b2f0c2b00279728818023aa911c8947d69ab83" + }, + { + "path": "credits/PR7674-NOTICE", + "source_path": "research/cf6a-banked-role1256-relay/credits/PR7674-NOTICE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "951f081717e0769f3bcc0f442f133965c064d2ce", + "sha256": "382537634a3d9fa0a8089d6121a506a399382f9310088b1f29586dcc93eec92d" + }, + { + "path": "credits/PR7682-NOTICE", + "source_path": "research/cf6a-banked-role1256-relay/credits/PR7682-NOTICE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "4654631de087fe5034d30abc17e9d57582e5ed9c", + "sha256": "7590f71de481c424d2315e9ea4884bea1557481676fa5f930f7a0bed637a56a1" + }, + { + "path": "credits/PR7704-NOTICE", + "source_path": "research/cf6a-banked-role1256-relay/NOTICE", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "7d2dfec60a3a8c30bbc639104905d5ce1c0926e4", + "sha256": "49657dd50c9431642a9527b0d625197cb34d1838dcf00fe4d92040f9605c8ce0" + }, + { + "path": "credits/PR7705-NOTICE", + "source_path": "research/p104-banked-hub-reroutes/NOTICE", + "commit": "f5d42b523a53977256e4c56faf587e1bee58a2b3", + "git_blob": "2a92a9df69de4335966a1b12f79355244a7710f4", + "sha256": "43510816b93ea09e0d716ccc6261c84ce081821c0d5dea7d6e748863d55f8f40" + }, + { + "source_path": "research/p104-relay-cut-recoding/NOTICE", + "commit": "f0e2db5b5b46b139da17d2b32fab6633164443a9", + "git_blob": "4a24e9bcb74d349b7f245f2b43edb6faba716429", + "sha256": "c3762acca6fa198c621e0aacf8aa06526aa7716c20c761141c07393fdba6bc46", + "path": "credits/PR7708-NOTICE" + }, + { + "path": "data/CALLER-PHASE-BASES.json", + "source_path": "research/cf6a-banked-role1256-relay/data/CALLER-PHASE-BASES.json", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "3e4aa383a5e3343c4688bff62bd39587b90c31b4", + "sha256": "325a1eb4aa7fe5f918b1d8344b88ad132ef4606268bccec20f223ace5feda18b" + }, + { + "path": "data/CALLER.json.gz", + "source_path": "research/cf6a-banked-role1256-relay/data/CALLER.json.gz", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "26a75a1ae32cb4944a65281cfb08775967cb39a0", + "sha256": "d889996a337f648087208ab51c98eaf052705d4fca88b5d01b6e9257a829897a" + }, + { + "path": "data/CERTS.json", + "source_path": "research/cf6a-banked-role1256-relay/data/CERTS.json", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "ed66fa483232fcf743aa9a69ce48d79abc0a58c9", + "sha256": "39ef28b708cd8bf1166b111d656809407b370dd11cd81a8e43820779f995aca3" + }, + { + "source_path": "research/p104-relay-cut-recoding/results/application.json", + "commit": "f0e2db5b5b46b139da17d2b32fab6633164443a9", + "git_blob": "beec4523115be58006929a6f1b8f366fcd24ce48", + "sha256": "d87bef1509e2fd2c1c073c90fba5fc80fe1e0726c8c3e408f8221e22017d520e", + "path": "data/PARENT-APPLICATION.json" + }, + { + "source_path": "research/p104-relay-cut-recoding/CUTS.json", + "commit": "f0e2db5b5b46b139da17d2b32fab6633164443a9", + "git_blob": "c6b92caba91aaef7aed7e07cb9ae62932c68eb51", + "sha256": "9d335d7d71af64f43723d57e9016e979e4b3c8390ccc24c630d17488fdbef0c6", + "path": "data/PARENT-CUTS.json" + }, + { + "path": "data/WORD.json.gz", + "source_path": "research/cf6a-banked-role1256-relay/data/WORD.json.gz", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "890579b0b7e12f3a6a70c3612f40cc6ccbc569d5", + "sha256": "50c1facfc5626c060560e2f354b71bd92d0bb1c1e853b2aad72abcbaaa5328a5" + }, + { + "path": "vendor/binding16.py", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/binding16.py", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "d07341b81719d96e336a47907d48c73772ec1ccb", + "sha256": "589058311e44f2d8909495c005bee6d54828ebe561d4673b599193d269006170" + }, + { + "path": "vendor/caller16.py", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/caller16.py", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "2865530b7878dec54286a67e82b83093911ec43c", + "sha256": "ced48867f07ca0143604aa98cfd74fa7453696b9d3221f7c230d73e9ab9ba81f" + }, + { + "path": "vendor/construct.py", + "source_path": "research/cf6a-banked-role1256-relay/construct.py", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "25115bba74690dd19dfbd987a1eb47d471f14f2d", + "sha256": "f45dab80a16b2293488dd6a37048b965a46c572619b191062bc1511c5c0ce4ff" + }, + { + "path": "vendor/interval_gate.py", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/interval_gate.py", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "e24dc46079b4c25152f5afc096dda2ce8ee58ff5", + "sha256": "60a743d13f668ef86db4b8215b4d5d04430a671ba6f1fe06d9c1c4c3dfe86da5" + }, + { + "path": "vendor/network.py", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/network.py", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "0ebc1925c40cc6c11af59e405221ea51801a6e92", + "sha256": "a9169fd6ad0a13c69cf39bd32649d53256f6d6fa2ed2ceda854f848b64f4c546" + }, + { + "path": "vendor/physical.py", + "source_path": "research/cf6a-banked-role1256-relay/physical.py", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "e7c4e5798bd37df287f431069ab0cffe73dbe3a3", + "sha256": "24c9cf906596c9ef1533c1d25f61403db3ff6389478f64359d9d12c5fef87b69" + }, + { + "source_path": "research/p104-relay-cut-recoding/recoding.py", + "commit": "f0e2db5b5b46b139da17d2b32fab6633164443a9", + "git_blob": "c96d8b844d0e8028dc1616cf86a5130ed248de7e", + "sha256": "a56f02dd59430af46acbd4d5de240c377746fb74da46568195de68d5cb83b287", + "path": "vendor/recoding.py" + }, + { + "path": "vendor/selected-bit-ambient.json", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/selected-bit-ambient.json", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "cd19f356a5549f6b70557095e7745cdddde0485c", + "sha256": "437ad2f9e7956e7f2b477b546f53a6c8cfa0567e207024300e9a7e58d3c0202c" + }, + { + "path": "vendor/selected-claim.json", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/selected-claim.json", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "c9b816f8445be9dc19b2259e03e9d8709d18c87a", + "sha256": "3f8add8252adb223b60418ec69351a69b6b5edfe601ec1c6b4b65cd9e2afd9b2" + }, + { + "path": "vendor/selected-validation.json", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/selected-validation.json", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "7291ce5ab9c59f07ead921fbad9966b4a54e3292", + "sha256": "e1374a98b240d7f9f2cca2a1e74b93f240b1bfc94b8cc4b94a385a50281d494e" + }, + { + "path": "vendor/upstream_application.py", + "source_path": "research/cf6a-banked-role1256-relay/engines/caller/upstream_application.py", + "commit": "e29a5ae8591243c1178067727f12ce4abefa0b93", + "git_blob": "1a6d358cbec88e70615e5314cdfca9e123124f83", + "sha256": "d98987db98553dc55bfc80e3ca47abfcd51c57af6f8cda61101391d8eae94184" + } +] diff --git a/research/p104-helper-quotients/SOURCES.json b/research/p104-helper-quotients/SOURCES.json new file mode 100644 index 0000000000..f51fc62b8a --- /dev/null +++ b/research/p104-helper-quotients/SOURCES.json @@ -0,0 +1,42 @@ +{ + "schema_version": 1, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "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" + }, + { + "path": "research/shared-wire-split-composition/frozen/clifford_exact.py", + "usage": "input", + "git_blob": "166841a037f069249f6f7f6dedb89248812f59e2", + "sha256": "2982ead07721e83358dc67c6f49c2b4c16a236a6bebdfd72f58221be1f5d0962" + }, + { + "path": "research/shared-wire-split-composition/frozen/native_verify.py", + "usage": "input", + "git_blob": "2c209dfa9cfade3bc20ac5fc9d876b433a147f8c", + "sha256": "3049471905b47b385c88378a1a3be7a18b8858aadd035b8a6da2f4a03b470f38" + }, + { + "path": "scripts/compare_recursive_invoices.py", + "usage": "input", + "git_blob": "fda2a852e9937e42fe40df0707694465ca7c1b48", + "sha256": "3930c22c11da7bc6042cfeb6e459ecb06e4478430037bee3469d034353855fc6" + }, + { + "path": "scripts/evaluate_recursive_power.py", + "usage": "input", + "git_blob": "ca50f8021fc3238a58fd420383f4619a8d008ace", + "sha256": "52b20f41fd0bb55fa88dccd6015af2ce358917817b9506720f3e60ce681cc3ad" + } + ] +} diff --git a/research/p104-helper-quotients/TASK.json b/research/p104-helper-quotients/TASK.json new file mode 100644 index 0000000000..c4817ed658 --- /dev/null +++ b/research/p104-helper-quotients/TASK.json @@ -0,0 +1,133 @@ +{ + "schema_version": 1, + "task_id": "p104-side-correction", + "priority_revision": 8, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "original_card": { + "id": "p104-side-correction", + "question": "Can joint helper bases and a legal causal split improve the complete P104 productive/paid invoice?", + "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", + "research/p104-helper-subspace-splits/README.md", + "research/dyadic-helper-channel-capacity/README.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": "An exact arbitrary-input identity, source/target frame availability and restoration at the chosen cut, plus the complete channel+correction+idle/hosting bill or an explicit favorable bound. The native channel alone is not a supplier. A scoped local result may be retained without a complete supplier. Expanding it into further construction rounds requires the family-level budget and obligation gate in research-family-status.md; an optimistic passing relaxation alone is not acceptance.", + "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": "Start with the selected #5599 emitted word and review pending #5718 distinct input/output bases plus #5717/#5719 coverage before claiming work. Pick one uncovered source word, helper group and cut region. Prove the arbitrary-input relation and legal entry/exit corrections, then compare full target and paid profiles. Reject if completion, owned lifetimes or consumer costs repay the gain. A static pairing rank alone is not a physical split.", + "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": [ + "P104", + "helper basis", + "helper split", + "5718", + "dyadic capacity" + ], + "existing_checks": [ + { + "scope": "PR #4133: literal-slot defect", + "evidence": "research/p104-literal-slot-defect/README.md", + "remaining": "Independently validate the stated scope or change its producer/consumer premise and pay the complete boundary.", + "status": "author-checked", + "source_commit": "88666f1dee93fbd85b31fd5d6f91a219e111b5f4", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4136: uniform commutation gap", + "evidence": "research/p104-uniform-commutation-gap/README.md", + "remaining": "Independently validate the stated scope or change its producer/consumer premise and pay the complete boundary.", + "status": "author-checked", + "source_commit": "281ce601a8be9db470de630759179c23e1dfaa88", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4140: uniform encoding gap", + "evidence": "research/p104-uniform-encoding-gap/README.md", + "remaining": "Independently validate the stated scope or change its producer/consumer premise and pay the complete boundary.", + "status": "author-checked", + "source_commit": "de25c6525aa866962309df5d107b32d55e6e5628", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4153: source-chart shortcut exhausts its optimistic allowance", + "evidence": "research/p104-source-chart-shortcut/README.md", + "remaining": "Independently validate the stated scope or change its producer/consumer premise and pay the complete boundary.", + "status": "author-checked", + "source_commit": "9123241fea53df77e51ffe30d9aca1625d4bf3a8", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4154: fiber-tag seam mismatch", + "evidence": "research/p104-fiber-tag-seam/README.md", + "remaining": "Independently validate the stated scope or change its producer/consumer premise and pay the complete boundary.", + "status": "author-checked", + "source_commit": "4ffcdaee5d6255a9cea1fe53a5424435068089d0", + "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": "changed", + "actual_scope": "On the exact #7708 relay graph, remove one arbitrary helper return together with all paid directions that its entrance constraint makes redundant. Compose these moves in both orientations and charge the full application.", + "scope_change_reason": "The fixed-owner neighborhood and chart searches did not improve the parent. The changed interface surrenders specific helper jobs. The canonical claim records this change. The signed caller and the 104 real main ports and their 400 fields retain their contracts.", + "bottleneck_link": "At a fixed exponent below one, two or more small paid jobs can cost more than their combined-rank target. A local relation can remove both from the complete signed invoice.", + "budget_minutes": 60, + "stop_rule": "Finish a conditional bound whose gain over the #7708 upper endpoint exceeds 0.00001034832006. Verify the rational identities, surviving independent owners, physical schedule, signed price and compiler.", + "outcome": "completed", + "evidence": "QUOTIENTS.json, results/witness.json, results/application.json and the three catalogue receipts.", + "author": "Ali Romman", + "ai_assistance": "Substantial OpenAI Codex assistance in research, implementation, verification and writing.", + "open_questions": [ + { + "question": "Can one coupled two-dimensional entrance restriction remove a paid bank that no single constraint exposes?", + "why_it_matters": "The present certificate removes only one public target direction at a time.", + "first_step": "Choose two surviving helpers at one entrance chart. Compute the intersection of their joint constraint space with the arrival spaces at each receiver. Debit both productive targets.", + "blocked_by": "A causal exact witness with a lower complete price is required." + }, + { + "question": "Can another implementation independently reproduce the role-264 restriction and the first transposed restriction?", + "why_it_matters": "These test the new public-boundary rule in both directions.", + "first_step": "Expand the supplied receiver rows over the parent entrances, construct the compact circuit and independently reprice its paid and productive jobs.", + "blocked_by": "Scientific admission and the inherited framework interfaces remain open." + } + ], + "coordination": { + "canonical": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19710820", + "comparator": "https://github.com/CrocSwap/integer-mult-bounds/pull/7708", + "comparator_scientific_commit": "f0e2db5b5b46b139da17d2b32fab6633164443a9", + "comparator_head": "7017edbe4bc5ed1b6d5b6defedbc7e472d83c65c", + "upstream_main": "e54523517d0f03e58352e647c403a5af3e525a57", + "priority_revision": 8, + "checkpoint_utc": "2026-11-18T15:16:00Z", + "overlap": "Checked active Discussions, open PRs, the handoff and mechanism hubs, and the cached overlap reports. The #7705 chart-595 graph, chart-118 paid meeting and #7709 fixed-graph scalar bound have different source graphs or conclusions." + } +} diff --git a/research/p104-helper-quotients/VERIFY.json b/research/p104-helper-quotients/VERIFY.json new file mode 100644 index 0000000000..be62008962 --- /dev/null +++ b/research/p104-helper-quotients/VERIFY.json @@ -0,0 +1,67 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/shared-wire-split-composition/frozen/clifford_exact.py", + "research/shared-wire-split-composition/frozen/native_verify.py", + "scripts/compare_recursive_invoices.py", + "scripts/evaluate_recursive_power.py" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/application.py" + ], + "timeout_seconds": 120, + "checks": "Reconstruct the source and compact graph. Check every public row, storage lifetimes, exact products, integer divisions, ordinary work, both sides of the signed bill, the power bracket and 58 outer predicates." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/witness.py" + ], + "timeout_seconds": 150, + "checks": "Expand every bank relation on arbitrary pre-restriction inputs. Check all compact input columns by reverse propagation and reject altered forward and transposed certificates." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/catalogue.py", + "0" + ], + "timeout_seconds": 190, + "checks": "Check the complete phased operators and ranks on this subset of surviving chart pairs, all assigned main adapters and signed stage contacts. Check one pair on all 512 columns in both directions and reject phase faults." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/catalogue.py", + "1" + ], + "timeout_seconds": 190, + "checks": "Check the complete phased operators and ranks on this subset of surviving chart pairs, all assigned main adapters and signed stage contacts. Check one pair on all 512 columns in both directions and reject phase faults." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/catalogue.py", + "2" + ], + "timeout_seconds": 190, + "checks": "Check the complete phased operators and ranks on this subset of surviving chart pairs, all assigned main adapters and signed stage contacts. Check one pair on all 512 columns in both directions and reject phase faults." + } + ] +} diff --git a/research/p104-helper-quotients/application.py b/research/p104-helper-quotients/application.py new file mode 100644 index 0000000000..ffbbb19976 --- /dev/null +++ b/research/p104-helper-quotients/application.py @@ -0,0 +1,183 @@ +"""Price the complete application and check its compact physical schedule.""" +from collections import Counter +from fractions import Fraction +from pathlib import Path +import sys + +sys.path.insert(0, str(Path(__file__).resolve().parent)) +from quotient import HERE, construct_candidate, digest, main_roles, need, parent, read, receipt, recoding +from catalogue import jobs +from caller16 import signed_caller +from interval_gate import gate +from vendor import physical + +sys.path.insert(0, str(HERE.parents[1] / "scripts")) +from compare_recursive_invoices import compare_invoices +from evaluate_recursive_power import evaluate + +CLAIM, PROBE = "0.00376154487703", "0.00376154487710" +LOWER, UPPER = "0.00376154487711", "0.00376154487712" +PREVIOUS_UPPER, PREVIOUS_GAIN = "0.00374039009048", "0.00001034832006" +BIT = "0.00376669" + + +def selected_interfaces(): + vendor = HERE / "vendor" + claim = read(vendor / "selected-claim.json") + bit, = [row for row in claim["uniform_templates"] if row["family"] == "BIT before cover"] + validation = read(vendor / "selected-validation.json") + repair = read(vendor / "selected-bit-ambient.json") + need(bit["ambient"] == 134 and bit["rank_encoding"] == "2^296630000000000" and + Fraction(bit["saving"]) > Fraction(".00385248") > Fraction(BIT), "selected BIT pin") + need(validation["status"] == "admitted_conditional" and validation["registered_replays_complete"] + and repair["exit_code"] == 0 and repair["source_unchanged"], "selected conditional record") + assumptions = [item["id"] for item in claim["assumptions"]] + need(assumptions == ["native_all_columns", "owned_erasure", "compiler", "precision_tape", + "analytic_recovery"], "selected interfaces") + return assumptions + + +def owners(word, source, layout, net, keep, caller): + original_mains, hosted, _ = physical.public_interface( + dict(initial=source.initial, final=source.final, frames=word["frames"]), word) + mains = main_roles(layout) + need(len(mains) == 400 and {keep[r] for r in mains} == original_mains, "all original main owners") + need(all((a, b) == (source.initial[old], source.final[old]) + for old, a, b in zip(keep, net.initial, net.final, strict=True)), "surviving owner charts") + h = layout["hosted"] + planes = list(zip(h["X2"], h["Y2"], strict=True)) + second = dict(zip(h["Dports"], planes, strict=True)) + need(all(net.initial[a] == net.initial[b] and net.final[a] == net.final[b] + for i, pair in second.items() + for a, b in zip((layout["live"][i], layout["live"][i] + 112), pair, strict=True)), + "hosted second-plane charts") + helpers = set(range(layout["public"])) - mains + seen = set() + stages = [] + for event in caller["events"]: + if event[0] != "J": + continue + _, stage, group_a, group_b = event + bound = {} + for i, x in enumerate(layout["live"]): + slots = (x, x + 112) + second.get(i, ()) + roles = group_a if i in second else group_b[:2] + for slot, role in zip(slots, roles, strict=True): + need(slot not in bound, "main owner alias") + bound[slot] = (i, role) + need(bound.keys() == mains and len(set(bound.values())) == 400, "signed stage owners") + fresh = {(stage, keep[r]) for r in helpers} + need(fresh.isdisjoint(seen), "repeated productive helper") + seen.update(fresh) + stages.append([stage, len(bound), len(fresh)]) + need([s[0] for s in stages] == list(range(1, 17)), "complete signed stages") + return (mains, hosted, planes), stages + + +def invoice(net, layout, signed, contract): + native, helpers, _ = jobs(net, layout) + calls = signed["calls"] + paid = Counter({r: calls * n for r, n in native.items()}) + paid.update(signed["fixed_caller_paid"]) + targets = Counter({r: calls * n for r, n in helpers.items()}) + targets.update(signed["fixed_root_targets"]) + def formatted(histogram): + return {str(r): n for r, n in sorted(histogram.items())} + return dict(schema="integer-mult-recursive-invoice/v1", contract=contract, + paid=formatted(paid), targets=formatted(targets)) + + +def reconcile_debits(word, source, new, old, calls): + dims = [len(b) for b in word["frames"]] + removed = {"paid": Counter(), "targets": Counter()} + paid_keys, roles = set(), set() + for edit in read(HERE / "QUOTIENTS.json"): + role = edit["role"] + need(role not in roles, "duplicate helper debit") + roles.add(role) + rank = abs(dims[source.final[role]] - dims[source.initial[role]]) + removed["targets"][str(rank)] += calls + for bank in edit["banks"]: + key = bank["remove"] + need(key not in paid_keys, "duplicate paid credit") + paid_keys.add(key) + a, b = source.moves[key] + removed["paid"][str(abs(dims[b] - dims[a]))] += calls + for field, changes in removed.items(): + count = Counter(old[field]) + count.subtract(changes) + need(+count == Counter(new[field]) and all(n >= 0 for n in count.values()), + "parent less the certificate entries must equal the observed " + field) + return {field: dict(values) for field, values in removed.items()} + + +def prices(old, new): + empty = dict(new, paid={}, targets={}) + points = [] + tests = [(old, PREVIOUS_UPPER, "higher"), (new, PREVIOUS_UPPER, "lower"), (new, CLAIM, "lower"), + (new, PROBE, "lower"), (new, LOWER, "lower"), (new, UPPER, "higher")] + for hist, at, sign in tests: + result = evaluate(empty, hist, 1 - Fraction(at), 256) + need(result["classification"] == "new_cost_" + sign, "directed power check at " + at) + points.append(dict(graph="parent" if hist is old else "candidate", kappa=at, + paid_minus_productive=result["new_minus_old"])) + weights = {name: {int(r): n for r, n in new[key].items()} for name, key in (("P", "paid"), ("T", "targets"))} + compiler = gate(weights, CLAIM, PROBE, LOWER, UPPER, BIT) + need(Fraction(CLAIM) - Fraction(PREVIOUS_UPPER) > 2 * Fraction(PREVIOUS_GAIN), "larger certified gain") + return points, compiler + + +def machine(net, layout, interface, caller, signed, graph, h): + moves = net.moves + rows = {k: sorted(v.items()) for k, v in net.forms.items()} + audit = physical.graph_bounds(graph, moves, rows, interface[0]) + grid = audit["path_grid"] + expected = physical.expected_rows(layout["public"], layout, interface, grid) + audit.update(physical.exact_basis_grid(graph, moves, rows, grid, expected)) + audit.update(physical.held_schedule(graph, moves, rows, grid, expected, control=True)) + need(audit["live_sender_alias_control_rejected"] and set(audit["missing_odd_factor_controls"]) == {3, 5}, + "physical controls") + envelope = physical.caller_envelope(caller) + need(envelope["uses"] == signed["uses"], "independent caller count") + root = physical.root_envelope({"candidate": audit}, envelope) + guard = physical.check_depth_guard(root, h) + scalars = physical.scalar_cases([rows], caller, (signed["odd_scale"], audit["path_grid_odd"])) + shifts = sum(len(t["ports"]) * sum(row[0] < 0 for row in t["diagonal"]) for t in caller["types"].values()) + ordinary = physical.ordinary_budget(audit, signed, shifts, scalars["coefficient_bits"]) + return dict(native=audit, caller_envelope=envelope, common_root=root, depth_guard=guard, + ordinary=ordinary, scalars=scalars, partial_clear_control=physical.partial_clear_control()) + + +def verify(): + assumptions = selected_interfaces() + word, source = parent() + net, layout, keep = construct_candidate(word, source) + caller = read(HERE / "data/CALLER.json.gz") + signed = signed_caller(caller, layout, 2025, 9) + interface, stages = owners(word, source, layout, net, keep, caller) + published = read(HERE / "data/PARENT-APPLICATION.json") + old = invoice(source, word, signed, published["invoice"]["contract"]) + new = invoice(net, layout, signed, old["contract"]) + need(old == published["invoice"] and published["bracket"][1] == PREVIOUS_UPPER, + "independent parent price") + debits = reconcile_debits(word, source, new, old, signed["calls"]) + order = compare_invoices(old, new) + need(order["classification"] == "uniformly_better", "concave signed comparison") + points, compiler = prices(old, new) + graph = recoding.layout(layout, net) + proof = machine(net, layout, interface, caller, signed, graph, int(compiler["H"])) + paid, productive = sum(new["paid"].values()), sum(new["targets"].values()) + need((paid, productive) == (proof["ordinary"]["raw_paid_positions"], proof["ordinary"]["raw_productive_targets"]), + "physical and recursive denominators") + need(productive == signed["root_owners"] + sum(stage[2] for stage in stages), "complete owner debit") + return dict(claim=CLAIM, probe=PROBE, bracket=[LOWER, UPPER], previous_upper=PREVIOUS_UPPER, + graph_sha256=digest(graph), retained_labels_sha256=digest(keep), paid=paid, + productive=productive, caller=signed, stages=stages, invoice=new, removed=debits, comparison=order, + powers=points, compiler=compiler, physical=proof, conditional_interfaces=assumptions) + + +if __name__ == "__main__": + need(sys.flags.optimize == 0, "outer gate assertions enabled") + result = verify() + receipt("application", result) + print("PASS_HELPER_QUOTIENT_APPLICATION", result["claim"], result["paid"], result["productive"]) diff --git a/research/p104-helper-quotients/catalogue.py b/research/p104-helper-quotients/catalogue.py new file mode 100644 index 0000000000..4f6d1e8b42 --- /dev/null +++ b/research/p104-helper-quotients/catalogue.py @@ -0,0 +1,109 @@ +"""Check the signed operators on the remaining chart pairs and all main contacts.""" +from collections import Counter +from copy import deepcopy +from functools import cache +from pathlib import Path +import sys + +sys.path.insert(0, str(Path(__file__).resolve().parent)) +from quotient import HERE, construct_candidate, digest, main_roles, need, parent, read, receipt +from binding16 import contact_phase +from upstream_application import boundary + +sys.path.insert(0, str(HERE.parents[1] / "research/shared-wire-split-composition/frozen")) +import clifford_exact as producer +import native_verify as checker + + +def jobs(net, layout): + mains = main_roles(layout) + helpers = [(a, b) for r, (a, b) in enumerate(zip(net.initial, net.final, strict=True)) if r not in mains] + pairs = set(net.moves.values()) | set(helpers) + spans = {} + for i in {j for pair in pairs for j in pair}: + span = {0} + for v in layout["frames"][i]: + need(0 < v < 512 and v not in span, "independent frame axes") + span |= {x ^ v for x in span} + spans[i] = span + for a, b in set(helpers): + need(spans[a] < spans[b], "positive oriented helper") + for a, b in pairs: + need(spans[a] < spans[b] or spans[b] < spans[a], "nested paid pair") + def rank(pair): + a, b = pair + return abs(len(layout["frames"][a]) - len(layout["frames"][b])) + return Counter(map(rank, net.moves.values())), Counter(map(rank, helpers)), pairs + + +def verify(shard): + word, source = parent() + candidate, layout, keep = construct_candidate(word, source) + _, _, original = jobs(source, word) + _, _, pairs = jobs(candidate, layout) + need(pairs <= original and all(source.moves[k] == v for k, v in candidate.moves.items()), + "the final schedule uses only inherited physical routes") + basis = layout["frames"] + @cache + def chart(i): + return producer.canonical_frame(9, tuple(basis[i])) + @cache + def frame(i): + return checker.frame(basis[i], 9) + + records = [] + for a, b in sorted(pairs)[shard::3]: + recipe, _ = producer.lower_child(chart(a).adjoint().then(chart(b))) + need(recipe["rank"] == abs(len(basis[a]) - len(basis[b])) > 0, "physical rank") + target = checker.adjoint(frame(a)) + frame(b) + actual = checker.recipe(recipe) + checker.equal(actual, target, "signed Pauli action and absolute phase") + if not records: + for op, ref in ((actual, target), (checker.adjoint(actual), checker.adjoint(target))): + for column in range(512): + need(checker.state(op, column) == checker.state(ref, column), "literal Gaussian column") + bad = deepcopy(recipe) + bad["left"]["phase"] = (bad["left"]["phase"] + 1) % 4 + try: + checker.equal(checker.recipe(bad), target, "phase fault") + except ValueError: + pass + else: + raise ValueError("altered global phase accepted") + records.append([a, b, recipe]) + contacts, ports = [], 0 + by_q = read(HERE / "data/CALLER-PHASE-BASES.json")["by_q"] + rejected = False + for x, q in list(zip(layout["live"], layout["ports"], strict=True))[shard::3]: + a, b = candidate.initial[x], candidate.final[x + 112] + need(keep[x + 112] == keep[x] + 112 and not basis[candidate.initial[x + 112]], "first-plane partners") + first, _ = producer.lower_child(producer.cgate(9, q, 1).adjoint().then(chart(a))) + last, _ = producer.lower_child(chart(b).adjoint().then(producer.cgate(9, q, -1).then(producer.fourier(9)))) + need(first["rank"] == last["rank"] == 0, "ordinary main adapters") + checker.equal(checker.recipe(first), (("C", q, -1),) + frame(a), "main entrance phase") + checker.equal(checker.recipe(last), checker.adjoint(frame(b)) + (("C", q, -1),) + checker.fourier(9), + "main exit phase") + checker.equal(frame(candidate.final[x]), checker.fourier(9), "main Fourier exit") + ports += 1 + for stage in range(1, 17): + shifts, fault = contact_phase(q, by_q[str(q)], stage, 137) + contacts.append([q, stage, shifts]) + if fault and not rejected: + transform, (before, after) = fault + try: + boundary(before, after, transform, omit_translation=True) + except ValueError as exc: + need(str(exc) == "forward contact includes its phase", "wrong contact rejection") + rejected = True + need(rejected, "missing contact phase control") + return dict(shard=shard, total_pairs=len(pairs), checked_pairs=len(records), dense_pair=records[0][:2], + forward_and_adjoint_columns=1024, ports=ports, contacts=len(contacts), + recipes_sha256=digest(records), contacts_sha256=digest(contacts)) + + +if __name__ == "__main__": + shard = int(sys.argv[1]) + need(0 <= shard < 3, "invalid shard") + result = verify(shard) + receipt(f"catalogue-{shard}", result) + print("PASS_HELPER_CHARTS", shard, result["checked_pairs"], result["contacts"]) diff --git a/research/p104-helper-quotients/credits/7658-NOTICE b/research/p104-helper-quotients/credits/7658-NOTICE new file mode 100644 index 0000000000..2baa2a719e --- /dev/null +++ b/research/p104-helper-quotients/credits/7658-NOTICE @@ -0,0 +1,21 @@ +Apache-2.0. DreamingOfClouds with Claude Opus 5.5 (Anthropic), via Claude Code. + +The base word (data/base-7641-word.json.gz, unmodified bytes, sha256 de43ed04f58133eaef8f8d12a9dae1e6e8aa7f9721044200cc839673d86fd7c1) +is the word of our #7641 (20 swap-then-delete composites on SYLforge's #7637), vendored as data only. #7641's own base is SYLforge's +#7637 candidate word, whose notices read: + + "Apache-2.0. Local H5B + E1/E4 combination experiment, prepared with OpenAI assistance. + All earlier contributors and notices in hydrogen-bounded-verification-20261117/NOTICE remain credited. In particular: Ali Romman + (#7605), SYLforge, Clear1nsight, DreamingOfClouds, and all upstream contributors listed there." + +#7637's recorded technique credits: DreamingOfClouds #7630 (E1 rebirth/canceller, E4 existing-co-presence reroute), Clear1nsight +#7631/#7633 (efficient E4 integration, E1 prefix/tail settlement), and SYLforge's H5B literal-frame-restored archive. Its lineage +also carries Clear1nsight's #7626/#7314/#7274, Rohan Arun's #7277 and signed #7113 caller, and the contributors named in the +retained sources. #7641, #7637 and their code are not run by this package; only their words are read as data. + +This package adds five edits found by a large-neighbourhood search (one SWAP-NULL relabel of two helpers with a stay deletion, one main +stop removal, three helper stay deletions with re-placed contacts) and one hub re-settle. The helper-stay deletion with re-charted +contacts (E3) is of the type introduced by Clear1nsight's #7612 and ToikY's #7643. check.py is our own code: its replay, crossing and +column-test sections come from our #7630-on-#7623, swap-composite and #7641 packages; its column tests follow the description of the +affected-pair tests in #7620's README and native runner. The CLEAR certificate check implements the acceptance rule of #7620's +verify_certificates (read, not run). No other author's code was run; their words are read as data. diff --git a/research/p104-helper-quotients/credits/7700-CITATION.cff b/research/p104-helper-quotients/credits/7700-CITATION.cff new file mode 100644 index 0000000000..d80f6b8660 --- /dev/null +++ b/research/p104-helper-quotients/credits/7700-CITATION.cff @@ -0,0 +1,55 @@ +cff-version: 1.2.0 +message: >- + Please cite the selected composition and its constituent contributions, + this project and the upstream manuscript. The selected checkpoint is PR4470 on the cumulative productive-helper framework; consult certificates/selected-result.json for publication status. + Project-level authorship identifies the maintainer, not sole authorship of + the community result. See CONTRIBUTORS.md and the frozen source notices. +title: "A sharper exponent for integer multiplication" +authors: + - family-names: Colkitt + given-names: Douglas +license: Apache-2.0 +type: software +version: "community-joint4470-2026-10-22" +date-released: 2026-10-22 +repository-code: "https://github.com/CrocSwap/integer-mult-bounds" +url: "https://github.com/CrocSwap/integer-mult-bounds" +abstract: >- + Community research on integer multiplication. The selected maintainer-reviewed + conditional construction has kappa = 60403/20000000 = 0.00302015. + Cinna Davis's PR4470 joint helper frames and query-thinned controller build on + her preceding constructions, zxv's native/productive-helper and compiler work, + Jacob Alan Sussman's mixed-target recursion, and the cumulative community + framework. Exact finite replays and independent audits retain explicit + all-column/native, owned-erasure, compiler, precision/tape, analytic, prime + and recovery assumptions. This is not a complete formal multiplication proof. +preferred-citation: + type: software + title: "A sharper exponent for integer multiplication: community research repository" + authors: + - family-names: Colkitt + given-names: Douglas + year: 2026 + url: "https://github.com/CrocSwap/integer-mult-bounds" + notes: >- + Maintainer citation only, not sole authorship of the mathematical result. + Credit Cinna Davis (PR4470/4447/4441/4440/4416), zxv (PR4359/4433), + Jacob Alan Sussman (PR4268), independent auditors Mihir Srivastava and + Ryanson Jonathan, Mark/Matarener for the commutation question, and the full + geometry, binary, native, precision and outer lineage, including Rohan Arun, + Jeremy Kothe, Chafik Boukhalfa and the contributors listed in CONTRIBUTORS.md + and docs/research/community-joint4470-contributors.md. Cite constituent PRs + where their results are used; preserve their licenses and assistance disclosures. +keywords: + - integer multiplication + - computational complexity + - exact arithmetic + - parameter optimization + - reproducible research +references: + - type: unpublished + title: "Integer multiplication below n log n" + authors: + - name: OpenAI + year: 2026 + url: "https://github.com/openai/math/tree/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Integer-multiplication-below-n-log-n-September-23-2026" diff --git a/research/p104-helper-quotients/credits/7700-NOTICE b/research/p104-helper-quotients/credits/7700-NOTICE new file mode 100644 index 0000000000..59d8e0cf31 --- /dev/null +++ b/research/p104-helper-quotients/credits/7700-NOTICE @@ -0,0 +1,415 @@ +A sharper exponent for integer multiplication +Copyright 2026 Douglas Colkitt + +This project includes unmodified source files from OpenAI's manuscript +"Integer multiplication below n log n" and its accompanying repository: +https://github.com/openai/math +Commit: adc7f1241b42e322a6451854ab7e4b4c146bf78a + +The original manuscript identifies OpenAI as its author. Its Apache-2.0 +license is retained at upstream/LICENSE. The exact source URLs and hashes +are recorded in upstream/manifest.json. Proposed modifications are supplied +as separate files under patches/; upstream source files remain unchanged. + +The original local research note, scripts, certificates, patches, and +documentation were prepared by Douglas Colkitt with assistance from OpenAI +Codex. The community release incorporates work by the contributors identified +in the notices below; it is not solely Douglas Colkitt's work. +This project is not an official OpenAI release or an OpenAI endorsement. + +Related contributions (not imported in this checkpoint): +Zhihao Chen (jacklightChen), PR #7, supplied an earlier ternary five-subset +motif, finite-alphabet transfer and a different compressed producer: +https://github.com/CrocSwap/integer-mult-bounds/pull/7 +The present checkpoint claims no priority for that motif. Related compressed +complex-network work was submitted by eumemic in PR #3: +https://github.com/CrocSwap/integer-mult-bounds/pull/3 +The pending contributions and their stronger bounds require their own review; +this notice does not represent adoption or verification of their claims. + +Additional community work, including parallel and superseded submissions, is +acknowledged in CONTRIBUTORS.md, with pinned submission metadata in +docs/research/contribution-snapshot.json. These acknowledgements do not imply +joint authorship of the checkpoint, incorporation of pending code, or verification +of submitted mathematical claims. Original source-specific notices remain in force. + +Community release (accepted by conditional maintainer audit): +The following original contributor notices apply to the imported PR #39 chain. +The preceding non-import statements describe the preserved 2^-30 checkpoint. + +Ternary five-subset construction and common-four-point resynthesis +Copyright 2026 Zhihao Chen (jacklightChen) + +This is Zhihao Chen's first submission of this specific construction to this +repository. Research, proof development, code and verification were prepared +with substantial assistance from GPT-6 Astra (OpenAI Codex), as identified by +the contributor. This is not independent review or an OpenAI endorsement. +Future research building on this contribution should explicitly acknowledge +Zhihao Chen (jacklightChen), cite the accompanying note and pull request, and +retain the preceding contributors' attribution. This notice records research +provenance; the repository's Apache-2.0 license remains unchanged. + +Dependencies retained from eumemic's Claude-assisted PRs #3 and #5: +https://github.com/CrocSwap/integer-mult-bounds/pull/3 +https://github.com/CrocSwap/integer-mult-bounds/pull/5 +PR #5 commit: d3d370c34937503bd3fa63c83d505a05e8e50893 +These include complex_circuit.py, complex_network.py, fast_gaussian.py, +their generators, construction notes and certificates. The Gaussian input +scaling proof is corrected in this derivative; see the modification notice below. +Aligned pairing also appears in Bortlesboat's PR #2. Retained totals and bank +sharing appear in dleen's PR #4 and cheaper retained centers in eumemic's PR #6. +Their results and ideas are credited separately from this new construction. + +Bulk recursion and controlled tensor basis, 8 October 2026 +Copyright 2026 icekylinx + +The new projector batching, controlled simultaneous basis, mixed-width tape +recursions, whole-residual complex recursion, and dependency-path precision +guard in the batched-23 proof package are contributed by icekylinx, developed +with substantial OpenAI GPT-6 Astra assistance. Review corrections and +repository integration were prepared with OpenAI Codex assistance. They build on the retained +PR #7 finite producers and the preceding contributions credited above. +The new package retains the repository's Apache-2.0 license and the original +authors' attribution. It is not an official OpenAI release or endorsement. + +Modification notice, 8 October 2026 (icekylinx): the retained fast Gaussian +proof now bounds shifted approximation error by F=2^ceil(1.14 alpha^2). +The P=34p precision budget and asymptotic exponent are unchanged. New batching +checks are integrated into make verify. Existing attribution and licenses +are retained. + +Partial-swap extension, 8 October 2026 +Copyright 2026 icekylinx + +The partial-swap framing, binary retained-total triple construction, +dependency-preserving positive labels and carrier reuse, unequal (25,23,57) +common basis, improved complex batching, and exact assembly are contributed +by icekylinx with substantial OpenAI GPT-6 Astra and Codex assistance. +This extension directly inherits PR #10, commit +62691e395a0458ce089a1c7b5d89e74291e95e29. The portable producer adapters +modify the retained paired-exclusion and shared-point implementations credited +above. The original licenses, attribution, and Gaussian correction are retained. + +Endpoint-gauge extension, 8 October 2026 +Copyright 2026 icekylinx + +The complementary auxiliary endpoint gauges, (32,30,40) controlled basis, +general nondegenerate binary phase residuals, retained-center complex producer, +updated path guard and exact assembly are contributed by icekylinx with +substantial OpenAI GPT-6 Astra and Codex assistance. This extension inherits +f2ab41aebad47861caf6316282c1793e5513845e and its PR #10 ancestry. New portable +adapters retain the paired-exclusion and shared-point contributions credited +above. Original licenses, notices and the Gaussian correction are retained. + +Structured-basis and semantic-bulk extension, 8 October 2026 +Copyright 2026 icekylinx + +The selected (32,30,36) bit construction, A1/A5 block refinements, fixed +middle-axis I+J profiles with bounded-minor CRT certificates, mixed dyadic +complex centers, complete data-front batching and circuit-specific assembly +are contributed by icekylinx with substantial OpenAI GPT-6 Astra and Codex +assistance. The immediate parent is ed90fd940279c336ebc45968631bdebfb087b505. + +The semantic/bulk compatibility argument, literal scalar charge, product row +stock and parameterization adapt Zhihao Chen (jacklightChen)'s PR #23, +commit 661ebabc1076c9f525d7ce4967c876b203fa9827. Translated complex endpoints +are adopted from the same contributor's PR #21, +commit 5ba6cf0bfb68f2be8d15610e7972207c50254d6a, following eumemic's source-frame +work and the earlier nested-basis contributions. + +Completed-child semantic precision, arbitrary-coordinate routing, phase-cell +Gaussian inversion and bulk tape transfer are credited to the RaD project +(hipotures), commit 45d9b60355872041f9275f77c057514def0d45bc, exposed through +PR #20 at 4f8d6c8272b5ff307a0da51df545ec3cd96a8b6e. Their selected proof +sources retain their separate CC0 license and original NOTICE under +references/semantic-bulk/rad20. The PR #23 source retains its recorded OpenAI +Codex assistance; RaD retains its recorded Codex and GPT-6.1-Sol Ultra +assistance. These are source attributions, not claims about this session's +runtime model. Related contributions by Rohan Arun and Aurel Prosz remain +acknowledged in the imported notices. No exclusive priority or additional +license condition is asserted. + +Copied retained-center extension, 8 October 2026 +Copyright 2026 icekylinx + +The copied retained-center schedule in both orientations, its complex-phase +transfer, the Wm-N+L rank budget, and the selected (25,23)/(28,28) composition +are contributed by icekylinx with substantial OpenAI GPT-6 Astra and Codex +assistance. This extension inherits PR #32 at +0ef3aeb61f55cc0b321ce6a0ef00acee25cefe52 and the preceding PR #10/#18/#24 work. + +The two-stage topology and paid copied-stream endpoint correction are due +to Aurel Prosz (Paureel), c82d09eb4781b68435e3fa3eb6beea72fa900fab, +through Zhihao Chen (jacklightChen)'s PR #29 unequal-axis composition, +9d963275075fa98f1da821e27757b238dafd6b3c. That source also credits Swapnil +Jain's two-stage development at ae405eb474d1486b2d8aef90139869f927f4836a. + +The contiguous corner method, incidence factorization and exact partition +certificates are due to Rohan Arun (PR #31), method commit +02f68f95369c39955c5ffcfddbd75cd83e26b305. The selected (25,23) certificate +specializes Dominik Scholz's parameterization (PR #33), +a499a345c040aa15b68e984a0904eadc485c7a7e. Their source notices and proof +snapshots are preserved in references/copied-centers. Historical OpenAI +Codex, GPT-6 Astra and Anthropic Claude Opus 5.5 assistance is credited to +the respective imported sources. Existing PR #21/#23 and RaD attribution, +licenses and the Gaussian correction remain in force. + +Copied centers with reversed (23,25) data corners, 2026-10-08 +Rohan Arun with substantial OpenAI Codex assistance supplies the composition, +exact dimension23 controls and cost/assembly integration. James Chang's PR34 +supplies the reversed boundary family; icekylinx's PR36 supplies copied retained +centers and the selected complex graph. The balanced assembly remains attributed +to RaD/hipotures and its PR34 specialization. Retain Dominik Scholz PR33, Rohan +Arun PR31, Zhihao Chen PR29/21/23, Paureel/Aurel Prosz, Swapnil Jain, icekylinx, +eumemic, Douglas Colkitt, OpenAI and all earlier notices and hypotheses. +This is not a claim of formal verification, new foundational rank identities, +global optimality or measured runtime speedup. + +Fixed middle basis with copied reversed corners (2026-10-08): +Rohan Arun, with substantial OpenAI Codex assistance. Composition and +simultaneous-basis proof retain icekylinx PR32/36, James Chang PR34, +Dominik Scholz PR35/38, Zhihao Chen, Paureel, Swapnil Jain, RaD/hipotures, +eumemic and all preceding attribution and licenses. See research/copied-fixed-reversed. + +Changed-graph composition with copied centers and fixed bases, 8 October 2026 +Prepared with OpenAI Codex assistance. +The new composition uses icekylinx PR36 copied centers and PR32 fixed-I+J +projectors/profiler, Dominik Scholz PR35 two fixed factors and CRT argument, +Zhihao Chen (jacklightChen) PR29/23 interfaces, Aurel Prosz (Paureel) and +Swapnil Jain's two-stage development, Rohan Arun PR25/31 corner methods, +Dominik Scholz PR33/38 dimension/composition work; James Chang (jamesyc) +PR34 reversed geometry and balanced transfer; Rohan Arun PR37/39/40 +reversed integration, modular data tests and both-fixed baseline; +RaD (hipotures) PR41 changed scalar DAGs, alternating point order and +independent role compiler; RaD balanced routing/bulk interfaces, and all +retained predecessors. +Complete attribution and the conditional proof boundary are recorded in +research/copied-fixed/PROOF.md; imported originals and source pins are retained. +Original Apache-2.0 and CC0 notices remain applicable. + +Community follow-up integration (PRs #49, #45 and #26), 8 October 2026: +Rohan Arun contributes weighted carrier matching and climbed summand/leave-one-out +orders (PRs #44/#47/#49), with Anthropic Claude assistance. The final construction +composes Chafik Boukhalfa's changed-graph checks, exact rational data recovery and +reordered exclusion sums (PRs #43/#46/#48, OpenAI Codex assistance) with RaD / +hipotures's alternating pair order and independent physical role compiler (#41). +All predecessor attribution and conditional proof interfaces remain in force. + +Alejandro Zarzuelo Urdiales contributes Gaussian parity and canonical arithmetic +proofs, finite tensor execution, profile precision accounting and mixed-center +reference checks (#45), with substantial OpenAI Codex assistance. See +research/gaussian-parity-synthesis/PROVENANCE.md for his full attribution. +Ryan S / princezuda contributes historical Lean certificate arithmetic, algebraic +frame/movement/guard lemmas and independent paired-circuit checks (#26). Original +source notices and historical snapshots are preserved. Neither formal package +claims a full formal proof of the multiplication algorithm or a new kappa. + +Joint frame compilation of skip-prefix strips + +The local compiler and exact finite witnesses were prepared by eumemic with +substantial OpenAI Codex assistance. Avi Eisenberg / ikeboy with Anthropic +Claude assistance supplied the unmodified PR #53 skip-prefix producer. +The pinned PR #48 pipeline is Chafik Boukhalfa's contribution, incorporating +Rohan Arun, RaD / hipotures, icekylinx, Dominik Scholz, James Chang, +Zhihao Chen, Aurel Prosz / Paureel, Swapnil Jain, eumemic, Douglas Colkitt, +OpenAI, David Harvey, Joris van der Hoeven and the earlier contributors +credited in the retained sources. See references/frame-compiler/pr48/NOTICE +and references/frame-compiler/pr53/NOTICE for their original attribution. +No authorship or review by those predecessors is claimed for this compiler. + +Joint dual-skip/frame-compiler composition (2026-10-08) +--------------------------------------------------- +Rohan Gupta / gupt1156 with Anthropic Claude assistance: PR55 dual-skip +scalar graph; original LICENSE and NOTICE are retained under +references/frame-compiler/pr55. eumemic with substantial OpenAI Codex +assistance: PR57 joint reversible frame compiler, serialized physical-word +replay and profile reconstruction. Chafik Boukhalfa with OpenAI Codex +assistance: this composition, independent integration and exact certificate. +Avi Eisenberg / ikeboy, Rohan Arun, RaD / hipotures, icekylinx, and all +predecessor authors retain the notices above and in pinned source files. +No original copyright or Apache-2.0 notice is removed. + +Ranked reclamation after the PR58 joint-dual composition (2026-10-08) +---------------------------------------------------------------- +Chafik Boukhalfa with OpenAI Codex assistance: prioritize retired physical +slots by descending current frame rank, retaining slot ID as the tie-breaker; +complete replay, exact profiles, comparison and adversarial controls. +The dedicated joint_dual_reclaim_compiler.py is derived from eumemic's PR57 +compiler. Its original shared compiler remains byte-identical. The PR55 +producer and all preceding attribution remain unchanged. The complete PR58 +comparison certificate and its original source/proof provenance are retained +under references/frame-compiler/pr58. + +Skip-prefix strip producer, 8 October 2026 +By Avi Eisenberg (ikeboy), with Anthropic Claude (Claude Opus 5.5) +assistance. The skip-prefix leave-one-out strip layout in +research/skip-strips/skip_graph.py is new. Everything else reuses Chafik +Boukhalfa's PR #43/#46/#48 research/copied-fixed pipeline, its verification +code, exact data recovery and support-order sorting, together with: +- Rohan Arun's PR #44 weighted carrier matching optimizer; +- RaD (hipotures) PR #41 alternating point order; +- every predecessor credited above. +Complete attribution and the conditional proof boundary are recorded in +research/skip-strips/PROOF.md. Original Apache-2.0 and CC0 notices remain +applicable. + +Local split-pair skip-prefix research continuation (2026-10-08) +Prepared with substantial OpenAI Codex assistance at the user's request. +New contribution: singleton/pair recursive partition refinement, finite summand +order and moment search, and verified composition with inherited paid clones. +Avi Eisenberg/ikeboy with Anthropic Claude assistance: PR53 skip-prefix strips. +Chafik Boukhalfa with OpenAI Codex assistance: PR54 original-envelope clone +specialization and PR43/46/48 checking interfaces. RaD/hipotures: PR51 +whole-chain/source-partition cloning and earlier producer/interfaces. +Rohan Arun: PR44 weighted matching and earlier fixed/reversed work, with all +stated historical AI assistance. All predecessor notices remain applicable. + +Original-envelope whole-chain clones on skip-prefix strips (research/skip-clones): +Chafik Boukhalfa, prepared with OpenAI Codex assistance. The complete-chain +source-partition clone operation is adapted from RaD / hipotures, PR #51, +with original envelopes retained here. The scalar base is Avi Eisenberg's +PR #53 skip-prefix layout, prepared with Anthropic Claude assistance. +All credited PR #43/#46/#48, PR #44 and earlier code/proof notices remain +in force. This extension is provided under the repository's Apache-2.0 terms. + +Community review checkpoint #50–#61, 8 October 2026 +Maintainer integration and independent arithmetic: Douglas Colkitt, with OpenAI Codex. +Avi Eisenberg / ikeboy: skip-prefix strip framework (#53), with Anthropic Claude. +Rohan Gupta / gupt1156: parallel order search (#50, stated Antigravity assistance) +and dual-suffix strips (#55, Anthropic Claude assistance). +Eumemic: equal-frame joint compilation and paid signal reclamation (#57), with Codex. +Chafik Boukhalfa: original-envelope paid clones (#54), composition (#58) and ranked +reclamation (#60), with Codex. Rohan Arun: order search (#52) and positive-frame +composition (#56), with Anthropic Claude and stated Codex validation assistance. +RaD / hipotures: enlarged frames, source partitions and paid whole-chain clones +(#51), with Codex. Rohan Garg / rohangar1: singleton/pair recursion and paid-clone +composition (#59), with Codex. Alejandro Zarzuelo Urdiales: exact parameter +refinement, scoped Lean arithmetic, matrix/parity and search tools (#61), with +his disclosed multi-tool and Codex assistance. +Parallel #50/#52 records are reviewed and credited without replacing the earlier +climbed-48 implementation; their exact commit history is retained. The separate +#51 witness is retained as research; its source-graph/negative-basis data proof +has not received the same full replay as #56's consumed compiler machinery. +See docs/research/community-round2-review.md for precise validation boundaries. +All earlier licenses, contributions and notices remain applicable. + +Interval strips and core-aware pair assembly + +The interval leave-one-out strips and the core-aware group-pair assembly in +research/pair-assembly were prepared by Avi Eisenberg / ikeboy with Anthropic +Claude assistance. They build on PR #53's skip-prefix pipeline and its +inherited PR #48 sources. The stacked witness in research/pair-assembly/frame +uses eumemic's PR #57 joint frame compiler unchanged; its driver and verifier +are adaptations of PR #57's skip_frame_compiler.py, skip_frame_compose.py and +verify_skip_frame.py. Original notices are retained. + +Stopped product-ring extension, 9 October 2026 +Copyright 2026 icekylinx + +The opposite-bank generic projector factorization, componentwise atom-ring +adapters, stopped recurrence and outer ordinary-interchange conversion, +aligned pair-star producer with rational centers, exact denominator-21 +grid and selected (23,23)/(24,24) composition are contributed by icekylinx +with substantial OpenAI GPT-6 Astra and Codex assistance. This extension +builds on merged PR #36, 11817ccacb564bb7f98789c20dc11d3fece207e3, and is +integrated on upstream main 56b66d58297deca1d7dd130247d720e960f77a37. + +The retained ordinary leaf uses the preceding projector, corner and +copied-center proofs. The selected two-stage topology retains Aurel Prosz +(Paureel), Swapnil Jain and Zhihao Chen's credits; the semantic assembly +retains PR #21/#23 and RaD's attribution. Paired producers, carrier matching, +original source notices and each imported license remain unchanged. + +Partial-gauge extension, 9 October 2026 +Copyright 2026 icekylinx + +The pair-first cube assembly, compatible backward frame enlargement, +partial source-gauge schedule and stopped whole-projector composition are +contributed by icekylinx with substantial OpenAI GPT-6 Astra and Codex +assistance, extending PR #104 at 948ce1510df750f4c18b96bdaef436a86f8bf834. + +The physical deferred bit word, reflected event accounting, fan-order +clarification and signed two-stage endpoint are adopted from Zhihao Chen +(jacklightChen), PR #97, e15350b66e4bf796153a68c240a6cc1b788abe3e, with +Codex assistance. Its deferred readouts, V leaves, lifted frames and frozen +witness originate in Swapnil Jain's 741e7aa078392553815df7926ee17ac5e25a8c38, +with the original Claude disclosure retained. Cyclic interval and core-aware +pair primitives build on Avi Eisenberg (ikeboy), PR #62, +ad0f25ff7b23cff7f08ad237c2254e6ecf74257e, with Anthropic Claude assistance. +Prior two-stage, copied-center, ordinary-leaf, semantic/bulk, routing and +precision credits remain in force. Imported source notices and licenses +are preserved under references/partial-gauge/; see SOURCES.json. + +Three-stage cover extension, 9 October 2026 +Copyright 2026 icekylinx + +The arbitrary-subspace Clifford frame theorem, three-stage Cayley geometry, +weighted q-adic GL cover, unit-lower weighted compiler, charged local-ring +fallback, uniform batching, internal row borrowing and exact composition +are contributed by icekylinx with substantial OpenAI GPT-6 Astra assistance. This +repository integration uses Codex assistance and extends +PR #115, cf60442983c153a3a0f5272ea4713f99eba13c86. + +The selected local complex DAG and support/label replay are adopted from +Copyright 2026 eumemic, PR #117, cbb05ce504d571546d9b7794c186a613c659c3bf, +with its original Apache-2.0 terms and Claude assistance disclosure. +The unchanged bit physical word retains Zhihao Chen (jacklightChen), +PR #97, and Swapnil Jain's underlying witness and assistance notices. +The prior opposite-bank, stopped ordinary-leaf, copied-center, topology, +semantic/bulk, precision and analytic credits remain applicable. +Original source notices and license bytes are preserved in +references/three-stage-cover/pr117/ and references/partial-gauge/. + +Paired-cube and shared-core extension, 9 October 2026 +Copyright 2026 icekylinx + +The paired-coordinate triple-cube identity, signed overlap channels, +original-source involution, coordinate-star centers, concrete frame/carrier +compiler, chronological source gauges, PR97 gauge-subset selection, +orthogonal cross-stage routing and exact supplier/assembly integration +are contributed by icekylinx with substantial OpenAI GPT-6 Astra assistance. +Repository integration uses Codex assistance and extends PR #130 at +6a9970a530119174507904e23592fd59ede19a5d. + +The substantial completed-core workspace-sharing principle is credited to +an664, PR #128, 530588a019b4a74f09180680c9e3961bf649ec89, with its reported +OpenAI Codex assistance. No source code, partition or serialized witness +from that PR is imported. The new routing and paired-motif integration +are described separately and claim no exclusive priority for broad sharing, +paired-coordinate, Fourier or carrier-matching ideas. + +Selected coarse queries restrict the retained eumemic PR #117 positive DAG; +its original Apache-2.0 and Claude assistance notices remain unchanged. +The bit word and original frames retain Zhihao Chen's PR #97 and Swapnil +Jain's frozen witness, notices and historical assistance disclosures. +Earlier generalized Clifford, three-stage, uniform weighted recursion, +ordinary-leaf, semantic/bulk, precision and analytic credits remain in force. +Source-specific license bytes are preserved under references/. + +October 9 recycled-bit integration: +DaysSky (#150), William Porter/hpst3r (#147), Thomas Marchand/Th0rgal (#146), +Rohan Gupta/gupt1156 (#148), James Chang/jamesyc (#124), SovereignSteak (#122). +The original notices and assistance disclosures are retained under research/, +including research/recycled-bit-integration/NOTICE. Andrew Barnes/Bortlesboat +(#101) repairs shared verifiers using rfu08's #64 counterexample. rfu08's +scoped finite and formal-transfer packages are included separately; they do +not establish the full multiplication theorem. Earlier and parallel credits +remain applicable. Douglas Colkitt integrated these with OpenAI Codex assistance. + +SovereignSteak PR151 independently supplies the matching gauge/recycling +composition and the selected 473/10^6 atom refinement; its original package +and assistance disclosure are retained under research/gauge-recycling/. + +October 9 coordinated-frame and completed-entrance-bank integration: +Dugongue PR186, 166a34d75e853e933855f0f7e940fe77c4bb6b8d, builds on +Chafik Boukhalfa/chafreaky's PR181, 7fb2194801e3a10f54772c7f0d5505035a4fc0ad, +and eumemic's PR168 v4, 4a3c769e5c5430e7114c4d3e099ff34664677f17. +The frozen package and prerequisite archive preserve all author, source-license +and assistance notices, including PR175's compiler optimization. DaysSky's +carrier closure, James Chang's terminal substitution and balanced assembly, +geckods' stopping refinements and all preceding framework credits remain. +Rohan Arun's PR185 bootstrap and chafreaky's PR182 bit refinement are reviewed +parallel contributions; their gains are not added to the selected witness. +Douglas Colkitt integrated the package and supplied the bank scheduling +supplement with OpenAI Codex assistance, under Apache-2.0. The all-size +interfaces remain conditional; finite verification is not full formalization. diff --git a/research/p104-helper-quotients/credits/OUTER-GATE-NOTICE b/research/p104-helper-quotients/credits/OUTER-GATE-NOTICE new file mode 100644 index 0000000000..1bc9b4da2b --- /dev/null +++ b/research/p104-helper-quotients/credits/OUTER-GATE-NOTICE @@ -0,0 +1,13 @@ +# Attribution and source reuse + +New independent operator/invoice verification and fixed-grid interval implementation: OpenAI Codex-assisted research session, 2026-11-10. Apache-2.0. + +DreamingOfClouds supplied the #6936 native predecessor and #6937 shared-wire backup/E-free root. CubeJerry supplied #6912 caller blocks, #6980's QUERY-only caller and #6970/#6985 precision methods. Preserve Ali Romman's #5599 helper-split attribution, icekylinx's #104 odd-grid attribution and unpaidmoon's #6930 width-phase attribution in the parent construction. + +Three unchanged source files are authenticated by exact SHA256 and source commit/path in `INDEPENDENT-SOURCES.json`: + +- #6970 `independent_bounds.py`: fixed integer-grid and positive caller-transfer engine. +- #6985 `envelopes.py`: positive forward envelopes and backward covector witnesses. +- #6985 `source_binding.py`: retained helper functions for the envelope engine. + +The adapter applies only two literal helper-census substitutions in memory and records them. It does not call that adaptation an independent mathematical implementation. The new reverse native operator, formal caller ring and elementary interval engine do not import the source authors' operator or invoice checkers. diff --git a/research/p104-helper-quotients/credits/PR7663-NOTICE b/research/p104-helper-quotients/credits/PR7663-NOTICE new file mode 100644 index 0000000000..6ce1bc49a3 --- /dev/null +++ b/research/p104-helper-quotients/credits/PR7663-NOTICE @@ -0,0 +1,7 @@ +Apache-2.0. Ali Romman with substantial OpenAI Codex assistance. + +The new material is the joint chart assignment, its source-bound operator and caller checks, and the fresh-cost complete-root scalar and private-bank specialization. The parent data are from Clear1nsight's PR #7660 on DreamingOfClouds' PRs #7658 and #7641 and SYLforge's PR #7637. The contributors credited in those sources retain their credit. Original notices are in source/parent-NOTICE, source/physical-NOTICE and source/word-NOTICE. + +Rohan Arun supplied the 17-stage signed caller in PR #7113. The unmodified interval gate and the exact caller data come from its pinned source. See source/caller-NOTICE and source/independent-NOTICE, and the source file inventory for all consumed bytes. The two operator engines and integer power evaluator come from the declared current-main inputs. + +Jerry Chen (CubeJerry) supplied selected PRs #7000 and #7001. The selected application and its phase, common-root, finite-cost and compiler arguments, the odd-native common-grid package, the prior typed six-Gamma reset of PR #7586 and the contributors credited in those records provided the foundations used here. PR #7661 independently derives the fixed caller residuals. PR #7662 supplies a rounded parent-clock alternative. This package uses neither implementation. diff --git a/research/p104-helper-quotients/credits/PR7669-PROVENANCE.md b/research/p104-helper-quotients/credits/PR7669-PROVENANCE.md new file mode 100644 index 0000000000..bbee2437f0 --- /dev/null +++ b/research/p104-helper-quotients/credits/PR7669-PROVENANCE.md @@ -0,0 +1,43 @@ +# Provenance, credit and scope + +This is a cumulative contribution. Thank you to everyone who has made their constructions, exact inputs, failure cases and careful reviews available. Those contributions made this composition possible; the small increment here should not obscure the much larger body of work it rests on. We aim to leave equally inspectable material for the next researcher. + +## Direct lineage and reused methods + +- **SYLforge, #7637:** the H5B frame-restored233-CLEAR construction is the published ancestor of this research. The present K372-2 source retains its descendants rather than starting a new independent construction. [PR7637](https://github.com/CrocSwap/integer-mult-bounds/pull/7637). +- **DreamingOfClouds, #7641 and #7658:** #7641 combines20 edits over #7637. #7658 supplies the large-neighbourhood construction and its exact joint hub reconstruction: helper360/537 SWAP-NULL relabel, main176 bypass, helper236 contact re-chart, helper370 last-stay removal and helper461 first-stay removal. The source explicitly credits its #7630/#7636 relabel lineage and #7634 swap law. Our source descends from this word; those gains are not claimed as new work here. [PR7641](https://github.com/CrocSwap/integer-mult-bounds/pull/7641), [PR7658](https://github.com/CrocSwap/integer-mult-bounds/pull/7658). +- **Clear1nsight:** the contact re-chart type from #7612 and the24-bit coefficient-splitting report are part of the construction's lineage. #7626 contributed source isolation/portable materialization, and #7631/#7633 are credited by the parent lineage. #7660 separately published the role379 shortcut already present in our source; we do not count its rediscovery as another improvement. [PR7612](https://github.com/CrocSwap/integer-mult-bounds/pull/7612), [coefficient report](https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406), [PR7660](https://github.com/CrocSwap/integer-mult-bounds/pull/7660). +- **ToikY, #7643:** the contact re-chart work is explicitly credited by #7658 alongside Clear1nsight's #7612. Its74-erasure contract and κ are not added to this candidate. No shared CI repair is copied by this PR. [PR7643](https://github.com/CrocSwap/integer-mult-bounds/pull/7643). +- **Rohan Arun, #7113:** the signed caller/accounting lineage underlies the actual16-call composition. Its original source commit is07a76c5e2738882c0cb322278e56f6cae3c9885d. We recount the literal16-call input here; we do not substitute historical17-call constants. [PR7113](https://github.com/CrocSwap/integer-mult-bounds/pull/7113). +- **Ali Romman and upstream contributors:** #7605 supplies an earlier exact protected/application checkpoint cited by the #7637 lineage. The two unmodified directed invoice comparison files are copied from canonical upstream base e54523517d0f03e58352e647c403a5af3e525a57, retaining their attribution and Apache-2.0 headers. Their arithmetic is not a full scientific acceptance gate. [PR7605](https://github.com/CrocSwap/integer-mult-bounds/pull/7605). +- **CubeJerry, Douglas Colkitt and the earlier source contributors:** the retained framework, primitive/service work and repository infrastructure form part of the inherited basis. This package does not claim that their open supplier obligations are resolved by a successful finite replay. + +## What this contribution adds + +The predecessor K372-2 supplies five EARLY edits (1188,1013,940,1141,1195, with940/1141 sharing one ADD). This construction recomputes the1517/770 bypass on that actual source and combined it with a three-field triangle repair. The new contribution is their compatible composition, exact12-block edit, final235 CLEAR witnesses and a small reproducible publication package. Substantial OpenAI Codex assistance was used for research and packaging. New work is Apache-2.0. + +Exact source canonical:3dd1199d95291ee96e6c0aeb6f55f86244a569b1d4975840bf0207e2dcf9c025. Exact candidate canonical:ee251f6005d2a92b887c5b804bd7aac05989d278b2c9ccb3c3091b50d533b08d. Byte hashes are in MANIFEST.json. The12 edit blocks specify every changed event and leave all other fields unchanged. The parent research generators are not silently imported; this publication uses the transparent exact edit as its deterministic reconstruction recipe. + +## Related work, not automatically incorporated + +Ali Romman's #7662 studies one half-ADD rounding-error propagation with CubeJerry's service contract. Nick Petalas's #7654 provides a scoped minimal-rank interpolation result used as background when assessing structural repairs. Neither is a substitute for this candidate's entire rounded caller or physical supply proof. Their actual domains and assumptions must be checked before application. [PR7662](https://github.com/CrocSwap/integer-mult-bounds/pull/7662), [PR7654](https://github.com/CrocSwap/integer-mult-bounds/pull/7654). + +At the publication checkpoint, upstream main remained e54523517d0f03e58352e647c403a5af3e525a57. Ali Romman's #7663 uses a separate17-call full-private-bank model and changed helper endpoints; Clear1nsight's #7664 concerns180erasures/17calls; #7666 charges bank selection and return without claiming a new κ. K372-4 is later, separate research with changed helper-boundary conditions. None is silently folded into ee251f60 or used to assert identical physical assumptions. This is not a claim to the greatest bound across all models. + +## Fresh versus reused evidence + +Publication replay freshly reconstructs the whole word, runs exact rows/CLEAR, recounts native/caller histograms and checks the four directed price points. Normal, optimized Python and a Git-free committed-byte export were tested. The recorded ordinary/precision/native-phase/owner evidence retains its narrower scope and original source identifiers; it is not advertised as freshly rerun. No selected record, frozen predecessor package or common verifier is changed. + +## Editorial normalization of publication labels + +The follow-up editorial commit replaces workstation labels with construction terminology. It changes no candidate, edit, certificate, invoice, numeric result, executable code or contributor attribution. The original recorded bytes remain retrievable at commit `95d476623f1468822057554475dc8badb19bfa44`. Evidence JSON field labels and descriptive scopes are normalized, not recomputed scientific results. In NATIVE-EVIDENCE-REUSE.json, `predecessor-receipt:K372-2/NATIVE-NEW.json` is a historical receipt identifier, not a packaged file path. In PRICE-SUMMARY.json, recorded command invoice arguments now use the equivalent packaged `data/INVOICE.json` path; this is a portability transcription, not the verbatim original command. The fresh replay constructs and runs its own package-relative command. MANIFEST.json authenticates the edited publication bytes. + +Evidence byte-custody mapping (original -> editorially normalized SHA-256): + +- `evidence/BUILD.json`: `4744201691120223ded62a3e0d55ea1029203f3ea996305163e7db8d9e3679a4` -> `a0bafbb3f44920ed6ac1ed3d83385f025f5bbbcf5e9c8013ab1ca55ccf23c32d`. + +- `evidence/NATIVE-EVIDENCE-REUSE.json`: `6615b8a051ac9e4d8c73b5decf8a70d2a33d14da0c4c369574dec946984aa351` -> `84bab14d5c584aa8853b8e1025b562541ac6657e458d120ec803f2bc149c3eb8`. + +- `evidence/ROLE770-BUILD.json`: `c4ee72317678791d4b801479df0af052f3a50662c11ce3f3393b2151368fc92d` -> `1c400f16efbc427c40c811a57dc656fe97c2c84f94c71529e2c5c0598b146369`. + +- `evidence/PRICE-SUMMARY.json`: `c2777382c677634f7017b68c55dbd831a40945b77057f26b738f857c17ee8759` -> `d13741fe3217a01edd0b79b40dad037e644e441fbbc300838df99c0b050a5f42`. diff --git a/research/p104-helper-quotients/credits/PR7674-NOTICE b/research/p104-helper-quotients/credits/PR7674-NOTICE new file mode 100644 index 0000000000..951f081717 --- /dev/null +++ b/research/p104-helper-quotients/credits/PR7674-NOTICE @@ -0,0 +1,7 @@ +Apache License 2.0. Research prepared for Ali Romman with substantial OpenAI Codex assistance. + +New work includes the fifteen certified sender/receiver pivots, the forward and transposed communication construction, the complete native row checker, and the finite stock and precision application for this 16-call program. + +SYLforge supplied the composition, native word reconstruction, published invoice and exact 16-stage caller bytes from PR #7669. Their original PROVENANCE.md is preserved in source/7669-CREDITS.md. It credits the H5B work of SYLforge, DreamingOfClouds' joint native reconstructions, Clear1nsight's coefficient splitting, role-379 and helper work, Rohan Arun's signed caller lineage, and prior contributions from CubeJerry, Douglas Colkitt and others. The source/ directory holds the exact file bytes identified in SOURCE-PINS.json. + +The group-ring caller checker, independent operator checks, bit service, finite-cost method and field guide adapt the corresponding code and arguments of Ali Romman's PR #7663. That package in turn builds on the contributors named in its preserved source/7663-NOTICE. The unchanged directed log/exp gate retains its listed sources in source/gate-NOTICE. Earlier paid-transfer and bank-support constructions include PRs #7434 and #7576. Jerry Chen (CubeJerry) supplied the selected PRs #7000 and #7001 and the typed initializer in PR #7586. The per-call odd-grid induction and the selected application review provide the complete-root realization and finite-cost substitution. Douglas Colkitt and the credited repository authors supplied the pinned operator engines, price evaluator and research workflow. The license accompanies this package. diff --git a/research/p104-helper-quotients/credits/PR7682-NOTICE b/research/p104-helper-quotients/credits/PR7682-NOTICE new file mode 100644 index 0000000000..4654631de0 --- /dev/null +++ b/research/p104-helper-quotients/credits/PR7682-NOTICE @@ -0,0 +1,9 @@ +Apache License 2.0. Research prepared for Clear1nsight with substantial OpenAI Codex assistance. + +Ali Romman supplied the fifteen exact banked pivots and the frozen #7674 baseline, along with the complete signed 16-call graph and application method. The original notices remain at peer/NOTICE, peer/source/7663-NOTICE and peer/source/gate-NOTICE. Read peer/SOURCE-PINS.json for each ancestry binding and ASSETS.json for the exact vendored bytes at scientific commit 26b6c469aa6c4aa04322ce25a22150f90e5fb14e and refreshed head 28b2af322a1fab01b3734365988930920f9dda48. + +SYLforge supplied the #7669 composition, native source pins and literal caller. Its preserved parent provenance is peer/source/7669-CREDITS.md. Retain DreamingOfClouds' #7641/#7658 lineage, Clear1nsight's integer scalar/contact work including #7612, ToikY's #7643 contact-rechart precedent, Rohan Arun's #7113 signed-caller lineage, 5080's helper work, and all other contributors named in the original records. Ali Romman's #7663 exact-grid and extent proof and #7666/#7670 selection and guide work supply relevant implementation precedents. Jerry Chen (CubeJerry) supplied the selected #7000/#7001 applications and #7586 typed initialization. Douglas Colkitt and the authors in the original notices supplied the frozen native compiler, independent checker, price evaluator and package infrastructure. + +The release base reuses ToikY's exact shared CI and historical replay sync 0eabc624a9bc9ed2847719efd63390db4d297df4 above canonical e54523517d0f03e58352e647c403a5af3e525a57. This workflow provenance is separate from the banked construction and its mathematical comparison. + +This package credits the original role-230 splice and its same-contract transfer to the unchanged fifteen-pivot graph, the independent exact wire and price replays, matched complete resource accounting and source-bound native and caller verification. The original works retain their authorships and licenses. diff --git a/research/p104-helper-quotients/credits/PR7704-NOTICE b/research/p104-helper-quotients/credits/PR7704-NOTICE new file mode 100644 index 0000000000..7d2dfec60a --- /dev/null +++ b/research/p104-helper-quotients/credits/PR7704-NOTICE @@ -0,0 +1,5 @@ +Apache License 2.0. Prepared for Clear1nsight with substantial OpenAI Codex and ChatGPT Pro assistance. + +SYLforge supplied the cf6a nine-swap word and its normalized verification in #7700. DreamingOfClouds contributed the #7641 and #7658 swap searches. Ali Romman supplied the changed helper contract in #7663 and the charged bank construction in #7674. Rohan Arun and the #7113 lineage supplied the signed caller. The bank, native, physical and directed price methods reuse work by Ali Romman, SYLforge, Clear1nsight and the contributors credited in #7669, #7682 and #7697. Jerry Chen (CubeJerry) supplied the selected #7000 and #7001 application. Douglas Colkitt and the recorded authors supplied the selected framework, compiler, checker and package infrastructure. + +This contribution identifies and contracts the two paid transfers on helper 1256, reconstructs the banked graph from the supplied source, and checks the resulting physical application and complete signed price. The separate investigation and technical review were performed with Codex agents. Preserve the original notices and citations in credits/ when redistributing the source data or derived engines. See SOURCES.json for pinned upstream inputs and ASSETS.json for file-level custody. diff --git a/research/p104-helper-quotients/credits/PR7705-NOTICE b/research/p104-helper-quotients/credits/PR7705-NOTICE new file mode 100644 index 0000000000..2a92a9df69 --- /dev/null +++ b/research/p104-helper-quotients/credits/PR7705-NOTICE @@ -0,0 +1,7 @@ +Apache License 2.0. Research prepared by DreamingOfClouds with Claude Opus 5.5 (Anthropic), via Claude Code. + +The contribution is the hub-reroute construction: its search, the exact builder, the 21 reroutes and the checks in this package. All code here is newly written, and predecessor packages were read as data only. + +Clear1nsight supplied the chart-595 helper split (PR #7697) and the role-230 rechart (PR #7682), which is the first hub reroute. Ali Romman supplied the banked-transfer circuit and its fifteen pivots (PR #7674). SYLforge supplied the #7669 word and the signed sixteen-call caller. DreamingOfClouds, Rohan Arun, Jerry Chen (CubeJerry), Douglas Colkitt and the authors credited in the inherited notices supplied predecessor constructions, the selected framework and the repository infrastructure. + +The exact predecessor notices are in `credits/`. `source/` holds the K372-2 word, the twelve #7669 edits and the 16-call caller as published with #7669. `ASSETS.json` binds every package file. diff --git a/research/p104-helper-quotients/credits/PR7708-NOTICE b/research/p104-helper-quotients/credits/PR7708-NOTICE new file mode 100644 index 0000000000..4a24e9bcb7 --- /dev/null +++ b/research/p104-helper-quotients/credits/PR7708-NOTICE @@ -0,0 +1,7 @@ +Apache License 2.0. Prepared for Ali Romman with substantial OpenAI Codex assistance in research, implementation, verification and writing. + +This contribution supplies the ordered 46-cut certificate on the exact #7704 graph, the source and receiver recoding with scalar feedback, its 3 witnesses, the composition checks and the signed application. + +SYLforge supplied the nine-swap source word in #7700. DreamingOfClouds and SYLforge supplied the preceding native searches. Clear1nsight supplied the #7704 role-1256 contraction and the open pivot-combination question, the #7682 role-230 reroute and the #7697 chart-595 split. DreamingOfClouds supplied the grouped hub mechanism in #7705 on a different graph. Ali Romman supplied the banked transfer pivots and catalogue method in #7674 and the predecessor common-grid construction in #7663. Rohan Arun supplied the signed caller lineage. Jerry Chen (CubeJerry) supplied the selected complex application and BIT input. Douglas Colkitt and the credited repository contributors supplied the source framework, compiler, operator engines, comparison tools and research infrastructure. + +The files under vendor/ and data/ retain their published bytes. SOURCE-PINS.json identifies each original file and commit. The catalogue checker adapts the #7674 checker to the new graph and adds signed contact checks. The independent operator producer and checker and the directed invoice tools come from the canonical source files in SOURCES.json. The original supplier notices, including those for the outer gate, are under credits/. Preserve these notices with the reused material. diff --git a/research/p104-helper-quotients/data/CALLER-PHASE-BASES.json b/research/p104-helper-quotients/data/CALLER-PHASE-BASES.json new file mode 100644 index 0000000000..3e4aa383a5 --- /dev/null +++ b/research/p104-helper-quotients/data/CALLER-PHASE-BASES.json @@ -0,0 +1 @@ +{"by_q":{"100":[2,97,8,16,69,37,128,256],"11":[13,14,7,16,32,64,128,256],"112":[2,4,8,97,81,49,128,256],"13":[14,11,7,16,32,64,128,256],"131":[133,134,8,16,32,64,7,256],"133":[134,131,8,16,32,64,7,256],"134":[133,131,8,16,32,64,7,256],"138":[137,4,131,16,32,64,11,256],"14":[13,11,7,16,32,64,128,256],"140":[2,137,133,16,32,64,13,256],"145":[146,4,8,131,32,64,19,256],"146":[145,4,8,131,32,64,19,256],"148":[2,145,8,133,32,64,21,256],"152":[2,4,145,137,32,64,25,256],"161":[162,4,8,16,131,64,35,256],"164":[2,161,8,16,133,64,37,256],"168":[2,4,161,16,137,64,41,256],"176":[2,4,8,161,145,64,49,256],"19":[21,22,8,7,32,64,128,256],"191":[253,251,247,239,223,254,127,256],"193":[194,4,8,16,32,131,67,256],"194":[193,4,8,16,32,131,67,256],"196":[2,193,8,16,32,133,69,256],"200":[2,4,193,16,32,137,73,256],"208":[2,4,8,193,32,145,81,256],"21":[22,19,8,7,32,64,128,256],"22":[21,19,8,7,32,64,128,256],"223":[253,251,247,239,254,191,127,256],"224":[2,4,8,16,193,161,97,256],"239":[253,251,247,254,223,191,127,256],"247":[253,251,254,239,223,191,127,256],"251":[253,254,247,239,223,191,127,256],"253":[254,251,247,239,223,191,127,256],"254":[253,251,247,239,223,191,127,256],"259":[261,262,8,16,32,64,128,7],"26":[25,4,19,11,32,64,128,256],"261":[262,259,8,16,32,64,128,7],"262":[261,259,8,16,32,64,128,7],"265":[266,4,259,16,32,64,128,11],"268":[2,265,261,16,32,64,128,13],"273":[274,4,8,259,32,64,128,19],"274":[273,4,8,259,32,64,128,19],"276":[2,273,8,261,32,64,128,21],"28":[2,25,21,13,32,64,128,256],"280":[2,4,273,265,32,64,128,25],"290":[289,4,8,16,259,64,128,35],"292":[2,289,8,16,261,64,128,37],"296":[2,4,289,16,265,64,128,41],"304":[2,4,8,289,273,64,128,49],"319":[381,379,375,367,351,382,128,127],"321":[322,4,8,16,32,259,128,67],"322":[321,4,8,16,32,259,128,67],"324":[2,321,8,16,32,261,128,69],"328":[2,4,321,16,32,265,128,73],"336":[2,4,8,321,32,273,128,81],"35":[37,38,8,16,7,64,128,256],"351":[381,379,375,367,382,319,128,127],"352":[2,4,8,16,321,289,128,97],"367":[381,379,375,382,351,319,128,127],"37":[38,35,8,16,7,64,128,256],"375":[381,379,382,367,351,319,128,127],"379":[381,382,375,367,351,319,128,127],"38":[37,35,8,16,7,64,128,256],"381":[382,379,375,367,351,319,128,127],"382":[381,379,375,367,351,319,128,127],"385":[386,4,8,16,32,64,259,131],"386":[385,4,8,16,32,64,259,131],"388":[2,385,8,16,32,64,261,133],"392":[2,4,385,16,32,64,265,137],"400":[2,4,8,385,32,64,273,145],"41":[42,4,35,16,11,64,128,256],"415":[445,443,439,431,446,64,319,191],"416":[2,4,8,16,385,64,289,161],"431":[445,443,439,446,415,64,319,191],"439":[445,443,446,431,415,64,319,191],"44":[2,41,37,16,13,64,128,256],"443":[445,446,439,431,415,64,319,191],"445":[446,443,439,431,415,64,319,191],"446":[445,443,439,431,415,64,319,191],"463":[477,475,471,478,32,415,351,223],"471":[477,475,478,463,32,415,351,223],"475":[477,478,471,463,32,415,351,223],"477":[478,475,471,463,32,415,351,223],"478":[477,475,471,463,32,415,351,223],"487":[493,491,494,16,463,431,367,239],"49":[50,4,8,35,19,64,128,256],"493":[494,491,487,16,463,431,367,239],"494":[493,491,487,16,463,431,367,239],"499":[501,502,8,487,471,439,375,247],"50":[49,4,8,35,19,64,128,256],"501":[502,499,8,487,471,439,375,247],"502":[501,499,8,487,471,439,375,247],"505":[506,4,499,491,475,443,379,251],"506":[505,4,499,491,475,443,379,251],"508":[2,505,501,493,477,445,381,253],"56":[2,4,49,41,25,64,128,256],"69":[70,67,8,16,32,7,128,256],"70":[69,67,8,16,32,7,128,256],"73":[74,4,67,16,32,11,128,256],"74":[73,4,67,16,32,11,128,256],"81":[82,4,8,67,32,19,128,256],"84":[2,81,8,69,32,21,128,256],"88":[2,4,81,73,32,25,128,256],"98":[97,4,8,16,67,35,128,256]},"full_phase_table_sha256":"c5916ff312678f12aba403847643fbbc29f643acec60bdf836fa56cd3e8251fa"} diff --git a/research/p104-helper-quotients/data/CALLER.json.gz b/research/p104-helper-quotients/data/CALLER.json.gz new file mode 100644 index 0000000000..26a75a1ae3 Binary files /dev/null and b/research/p104-helper-quotients/data/CALLER.json.gz differ diff --git a/research/p104-helper-quotients/data/CERTS.json b/research/p104-helper-quotients/data/CERTS.json new file mode 100644 index 0000000000..ed66fa4832 --- /dev/null +++ b/research/p104-helper-quotients/data/CERTS.json @@ -0,0 +1,1569 @@ +{ + "candidate_canonical_sha256": "ae62d5d8bef6f7146454b4b3643e487a58380c606a16c5baef7bf0dcf9df1472", + "certificate_rule": "Exact equality to other live public/owned rows; cross-chart sources allowed", + "clear_event_index": { + "100041": { + "550": "1" + }, + "100071": { + "578": "-1/2" + }, + "100124": { + "1334": "1", + "1336": "-2", + "1337": "-1", + "1362": "1", + "1377": "-2", + "1386": "-1/2", + "483": "-1", + "519": "-1", + "543": "-1", + "696": "-1", + "697": "1/4", + "698": "1/2", + "700": "1/2", + "702": "1", + "767": "1/2", + "901": "-1" + }, + "100138": { + "1255": "1/3", + "133": "1", + "1334": "-2/3", + "1336": "4/3", + "1337": "2/3", + "1362": "-1/3", + "1377": "4/3", + "1386": "1", + "483": "1", + "494": "2/3", + "506": "1/2", + "519": "7/6", + "543": "7/6", + "695": "5/3", + "697": "-2/3", + "698": "2/3", + "700": "-1/3", + "701": "-1/3", + "702": "-1/2", + "733": "1/3", + "767": "-5/6", + "883": "2/3", + "892": "2/3", + "901": "2/3", + "929": "2/3", + "962": "2/3", + "981": "2/3" + }, + "100145": { + "1255": "1/2", + "133": "3/2", + "1334": "-1", + "1336": "1/2", + "1337": "1", + "1362": "-1/2", + "1377": "2", + "1386": "3/2", + "1498": "2", + "483": "3/2", + "494": "1", + "506": "3/4", + "519": "7/4", + "543": "7/4", + "695": "5/2", + "697": "-1", + "698": "1", + "700": "-1/2", + "701": "-1/2", + "702": "-3/4", + "733": "1/2", + "767": "-5/4", + "883": "1", + "892": "1", + "901": "1", + "929": "1", + "962": "1", + "981": "1" + }, + "100199": { + "1255": "1/2", + "1262": "-2", + "133": "-1/2", + "1334": "1", + "1337": "-1/2", + "1362": "2", + "1377": "-2", + "1386": "-1/2", + "1498": "-1", + "483": "-1", + "499": "-2", + "519": "-1", + "543": "-1", + "695": "-1", + "696": "-1", + "697": "1/4", + "698": "1/2", + "700": "1/2", + "702": "1", + "733": "1/2", + "767": "1/2", + "883": "1", + "892": "1", + "900": "1", + "901": "-1", + "929": "1", + "962": "1", + "981": "1" + }, + "100202": { + "1158": "-1/2", + "1160": "-1", + "1207": "2", + "1243": "-2", + "1400": "2", + "146": "4", + "1463": "-4/3", + "1479": "-3", + "1495": "-2", + "228": "2", + "428": "-1", + "430": "-1", + "451": "-1", + "508": "2", + "581": "1", + "582": "1", + "637": "-1", + "922": "-1", + "925": "1", + "974": "1", + "983": "-1" + }, + "100262": { + "1449": "1", + "1450": "1", + "268": "-1", + "38": "1", + "546": "1/2", + "578": "-1/2", + "648": "-1", + "652": "-1", + "654": "-1" + }, + "100370": { + "1473": "-1", + "165": "1" + }, + "100653": { + "133": "-3", + "1334": "2", + "1336": "-1", + "1337": "-1", + "1362": "2", + "1377": "-4", + "1386": "-3", + "1498": "-2", + "483": "-3", + "494": "-2", + "506": "-3/2", + "519": "-7/2", + "543": "-7/2", + "695": "-7/2", + "697": "2", + "698": "-2", + "700": "1", + "701": "1", + "702": "-3/2", + "767": "5/2", + "901": "-2", + "986": "2" + }, + "100775": { + "242": "1", + "499": "1" + }, + "100831": { + "430": "1" + }, + "100850": { + "1404": "1", + "359": "-1/2" + }, + "100855": { + "328": "1", + "573": "1" + }, + "100897": { + "498": "1" + }, + "100900": { + "1395": "1", + "551": "1" + }, + "100903": { + "1410": "1", + "392": "1" + }, + "101017": { + "294": "1" + }, + "101025": { + "501": "1" + }, + "101028": { + "295": "1" + }, + "101066": { + "547": "-1/2" + }, + "101116": { + "474": "1" + }, + "101153": { + "577": "-1/2" + }, + "101165": { + "1463": "1/2" + }, + "101326": { + "511": "1" + }, + "101338": { + "1405": "1", + "354": "-1/2" + }, + "101676": { + "498": "-3/2", + "540": "2" + }, + "101714": { + "344": "2", + "512": "-3/2" + }, + "101731": { + "28": "2", + "513": "-3/2" + }, + "101741": { + "1435": "1", + "366": "1" + }, + "101816": { + "274": "1", + "457": "1" + }, + "101851": { + "510": "-3/2", + "528": "2" + }, + "101867": { + "151": "-2", + "501": "-1", + "528": "-4", + "60": "-2", + "623": "-1", + "625": "-1/2", + "626": "1", + "628": "2", + "629": "2", + "630": "2", + "768": "1/2" + }, + "101889": { + "917": "-1" + }, + "101897": { + "1016": "-1", + "1018": "-1", + "1031": "-1", + "1033": "-1", + "1043": "-1/2", + "1047": "-1/2", + "1049": "-1/2", + "1205": "-2", + "1206": "2", + "1232": "-1", + "1238": "1/2", + "129": "-1/2", + "1291": "-1", + "1302": "-1", + "1303": "-1/2", + "1322": "-1", + "1323": "-1", + "1324": "1/2", + "1325": "1/2", + "1394": "1/2", + "1427": "-1", + "150": "-1/2", + "28": "-1", + "296": "-1", + "344": "-1", + "402": "-2", + "407": "-2", + "418": "-2", + "423": "-2", + "484": "-2", + "485": "2", + "540": "-1", + "568": "2", + "569": "2", + "570": "-1/2", + "575": "2", + "576": "3/2", + "651": "-1", + "661": "-1", + "662": "-1", + "707": "-1/2", + "732": "-1/2", + "810": "-1/2", + "882": "-1", + "883": "-1", + "888": "-1", + "889": "1", + "894": "-1", + "895": "-1", + "897": "-1", + "898": "-1", + "907": "1", + "908": "1", + "910": "-1", + "918": "-1", + "919": "-1", + "920": "-1", + "921": "-1", + "928": "-1", + "930": "-1", + "932": "-1", + "933": "-1", + "934": "-1", + "935": "1", + "950": "-1", + "952": "-1", + "953": "1", + "954": "-1", + "957": "1", + "958": "-1", + "959": "-1", + "963": "1", + "968": "-1", + "975": "-1", + "976": "-1", + "977": "-1", + "979": "1", + "980": "-1", + "981": "-1", + "982": "-1", + "995": "-2" + }, + "102006": { + "580": "1" + }, + "102010": { + "428": "-3", + "474": "-1/2" + }, + "102033": { + "294": "-3/2", + "408": "2" + }, + "102075": { + "553": "1" + }, + "102146": { + "295": "-1/2", + "424": "-3" + }, + "102234": { + "546": "1", + "577": "-1" + }, + "102242": { + "547": "1", + "578": "-1" + }, + "102333": { + "558": "1", + "575": "-1" + }, + "102340": { + "558": "-1", + "575": "1" + }, + "102355": { + "559": "1", + "576": "-1" + }, + "102362": { + "559": "-1", + "576": "1" + }, + "102412": { + "546": "-1", + "577": "1" + }, + "102485": { + "516": "2" + }, + "102501": { + "523": "1", + "580": "2" + }, + "102508": { + "523": "1/2", + "580": "-2" + }, + "102527": { + "268": "-1", + "568": "1" + }, + "102679": { + "1410": "-1", + "526": "-3/2" + }, + "102694": { + "1399": "-1", + "527": "-3/2" + }, + "102709": { + "490": "1/2", + "550": "-2" + }, + "102779": { + "1434": "1/2", + "553": "-2" + }, + "102801": { + "430": "-2", + "457": "-1/4" + }, + "102929": { + "547": "-1", + "578": "1" + }, + "102963": {}, + "102975": { + "356": "2", + "500": "-3/2" + }, + "103007": { + "295": "-3/2", + "424": "2" + }, + "103031": { + "428": "2", + "474": "-3/2" + }, + "103051": { + "278": "-3/2", + "562": "2" + }, + "103089": { + "438": "-1", + "585": "-2" + }, + "103110": { + "106": "-5/4", + "1162": "4", + "1163": "-4", + "1365": "1", + "1373": "2", + "1380": "1", + "1385": "7/4", + "1392": "-1/2", + "1397": "-8", + "1448": "-1", + "240": "3/4", + "405": "-2", + "41": "-1", + "42": "1/2", + "728": "1", + "813": "2" + }, + "103119": { + "1342": "-2", + "1437": "2", + "256": "1", + "336": "1" + }, + "103133": { + "1342": "-2", + "1437": "2", + "256": "1", + "336": "1" + }, + "103334": { + "862": "-1" + }, + "103340": { + "1000": "-1/2", + "1206": "-3", + "1207": "1", + "1208": "-1/2", + "1343": "-1/4", + "1344": "-1/4", + "1346": "-1/4", + "1347": "-1/4", + "1354": "1", + "1393": "-1/4", + "1445": "1", + "1458": "-1/2", + "1460": "-2", + "1466": "1", + "1477": "1", + "1490": "2", + "226": "1", + "230": "1", + "449": "-4", + "473": "1", + "485": "1", + "496": "1", + "508": "1", + "521": "1", + "544": "1", + "7": "-1/2", + "779": "-1/2", + "857": "-1/2", + "87": "-1/2", + "882": "-1/2", + "883": "-1/2", + "884": "-1/2", + "888": "-1/2", + "889": "1/2", + "890": "-1/2", + "894": "-1/2", + "898": "-1/2", + "902": "-1/2", + "903": "-1/2", + "904": "-1/2", + "905": "-1/2", + "906": "-1/2", + "907": "-1/2", + "910": "-1/2", + "914": "-1/2", + "918": "-1/2", + "919": "-1/2", + "920": "-1/2", + "921": "-1/2", + "922": "-1/2", + "931": "-1/2", + "932": "-1/2", + "933": "-1/2", + "934": "-1/2", + "940": "-1/2", + "941": "-1/2", + "942": "-1/2", + "946": "-1/2", + "947": "-1/2", + "948": "-1/2", + "949": "-1/2", + "950": "-1/2", + "951": "-1/2", + "958": "-1/2", + "959": "-1/2", + "960": "-1/2", + "965": "-1/2", + "966": "-1/2", + "967": "-1/2", + "971": "-1/2", + "972": "-1/2", + "973": "-1/2", + "976": "-1/2", + "977": "-1/2", + "978": "-1/2", + "980": "-1/2", + "981": "-1/2", + "982": "-1/2", + "983": "-1/2", + "984": "-1/2", + "985": "-1/2", + "990": "1", + "994": "1/2" + }, + "103367": { + "742": "1/4", + "998": "1/2" + }, + "103456": { + "126": "1/4", + "15": "1/4", + "164": "1/4", + "679": "-1/4", + "682": "-1/4" + }, + "103466": { + "126": "-1/4", + "164": "1/4", + "413": "1/2", + "679": "-1/4", + "682": "-1/4" + }, + "103604": { + "126": "1/4", + "15": "1/4", + "164": "1/4", + "679": "-1/4", + "682": "-1/4" + }, + "103608": { + "126": "-1/4", + "164": "1/4", + "413": "1/2", + "679": "-1/4", + "682": "-1/4" + }, + "103657": {}, + "103744": { + "108": "-1", + "1492": "-2", + "22": "-1/2", + "23": "-1/2", + "320": "-1/2", + "333": "-1", + "49": "1" + }, + "103837": {}, + "103839": {}, + "103840": {}, + "103842": {}, + "103843": {}, + "103861": {}, + "103878": {}, + "103918": {}, + "103922": {}, + "103965": { + "1082": "-1", + "794": "-4" + }, + "104013": {}, + "104176": { + "1074": "1/2", + "1221": "1", + "1222": "1", + "1255": "1", + "1311": "1", + "1312": "1", + "1313": "1", + "1314": "1/2", + "1356": "1", + "757": "1/2", + "796": "1/2", + "890": "-1", + "906": "-1", + "942": "-1", + "943": "1", + "956": "1", + "964": "1", + "971": "-1" + }, + "104195": {}, + "104258": {}, + "104340": {}, + "104341": {}, + "104349": {}, + "104355": {}, + "104356": {}, + "104366": {}, + "104369": {}, + "104379": {}, + "104385": {}, + "104388": {}, + "104389": {}, + "104393": {}, + "104406": {}, + "104407": {}, + "104414": {}, + "104428": {}, + "104429": {}, + "104445": { + "1025": "-2", + "1029": "-5/2", + "831": "-1", + "864": "2" + }, + "104476": { + "1499": "1", + "998": "-1" + }, + "104481": {}, + "104482": {}, + "104500": { + "863": "1" + }, + "104503": {}, + "154767": { + "770": "1" + }, + "89018": {}, + "89756": { + "233": "1" + }, + "89953": { + "1072": "1", + "500": "-1" + }, + "90303": { + "1089": "1", + "510": "-1" + }, + "90305": { + "22": "1/4", + "23": "-3/4", + "320": "1/4", + "321": "-1/2", + "323": "-1", + "325": "1/2", + "330": "-1" + }, + "90687": {}, + "91048": { + "110": "-3/8", + "20": "1/8", + "37": "1/8", + "432": "1/2", + "433": "1/8", + "435": "1/2", + "437": "-1/4", + "442": "3/2", + "735": "3/8" + }, + "91146": { + "29": "-1/4", + "30": "-3/4", + "352": "-1/8", + "353": "1/4", + "355": "-1/2", + "357": "1/4", + "362": "-1/2", + "59": "1/4" + }, + "91219": {}, + "91288": {}, + "91372": { + "500": "1" + }, + "91562": { + "628": "-2", + "630": "-2" + }, + "91564": { + "30": "1/4", + "352": "-1/8", + "353": "-1/4", + "355": "1/2", + "357": "-1/4", + "362": "-1/2", + "59": "-1/2" + }, + "91569": { + "106": "-2", + "1165": "-1", + "1365": "1", + "1380": "-1", + "1385": "1", + "240": "1", + "403": "2", + "405": "1/4", + "728": "-4", + "729": "4", + "730": "4", + "813": "2" + }, + "91572": { + "30": "-3/4", + "352": "-1/8", + "353": "1/4", + "355": "1/2", + "357": "1/4", + "362": "-1/2" + }, + "91575": { + "30": "-1/4", + "352": "-1/8", + "353": "-1/4", + "355": "-1/2", + "357": "-1/4", + "362": "-1/2" + }, + "91596": { + "30": "-3/2", + "352": "-1/4", + "353": "1/2", + "355": "-1", + "357": "-1/2", + "362": "1", + "59": "1" + }, + "91868": { + "17": "-5/8", + "273": "-1/2", + "275": "-1", + "277": "1/2", + "282": "-1", + "77": "-1/2" + }, + "91895": {}, + "91931": { + "22": "1/8", + "23": "1/8", + "320": "1/8", + "321": "1/4", + "323": "1/2", + "325": "1/4", + "330": "-1/2" + }, + "91988": { + "1385": "-1/4", + "240": "-1/4" + }, + "91999": { + "385": "-1/4", + "387": "-1/2", + "389": "-1/4", + "394": "-1/2", + "64": "1/8" + }, + "92006": { + "1173": "1", + "573": "-1" + }, + "92008": { + "106": "-3/2", + "1162": "-2", + "1165": "-2", + "1365": "1/4", + "1380": "-1/4", + "1385": "-1/2", + "240": "-1/2", + "401": "1/16", + "403": "2", + "405": "7/16", + "41": "1/2", + "730": "2", + "813": "-1/2", + "814": "-2", + "876": "-1/2" + }, + "92038": { + "18": "1/4", + "288": "-1/4", + "289": "-1/2", + "291": "-1/2", + "298": "1", + "39": "1/4", + "40": "1/4" + }, + "92119": { + "103": "1/2", + "17": "-5/8", + "272": "-1/2", + "273": "-1/2", + "275": "-1", + "277": "1/2", + "282": "1" + }, + "92125": { + "23": "-1/4", + "320": "-1/4", + "321": "-1/2", + "323": "-1", + "325": "1/2", + "330": "1" + }, + "92233": { + "30": "1/4", + "353": "1/2", + "355": "-1", + "357": "-1/2", + "362": "-1" + }, + "92243": { + "385": "1/2", + "387": "-1", + "389": "-1/2", + "394": "-1", + "64": "1/4", + "96": "1" + }, + "92260": {}, + "92280": { + "385": "-1/2", + "387": "-1", + "389": "1/2", + "394": "-1", + "64": "-1/4", + "65": "-1/2", + "96": "1/2" + }, + "92284": { + "29": "-1/2", + "30": "-1/4", + "353": "-1/2", + "355": "-1", + "357": "1/2", + "362": "-1", + "59": "1/2" + }, + "92536": { + "18": "1/4", + "288": "1/4", + "289": "1/2", + "291": "5/2", + "293": "-1", + "298": "-1", + "39": "1/4", + "40": "1/4" + }, + "92717": { + "104": "1/2", + "1179": "-1", + "416": "-1/2", + "417": "1", + "421": "1/2", + "426": "2" + }, + "92742": { + "17": "-1/4", + "273": "1/2", + "275": "-1", + "277": "-1/2", + "282": "-1" + }, + "92856": { + "224": "1/8", + "225": "1/2", + "227": "-1", + "229": "-1/4", + "234": "-1/2", + "57": "-1/8", + "81": "1/8" + }, + "92899": { + "23": "1/4", + "320": "1/4", + "321": "1/2", + "323": "1", + "325": "1/2", + "330": "-1" + }, + "92904": { + "108": "1/2", + "23": "1/4", + "320": "-1/4", + "321": "1/2", + "323": "-1", + "325": "-1/2", + "330": "-1" + }, + "92936": { + "18": "1/4", + "288": "1/4", + "289": "-1/2", + "298": "-1", + "39": "-1/4", + "40": "1/4" + }, + "92968": { + "384": "-1/2", + "385": "-1/2", + "387": "-1", + "389": "1/2", + "394": "1", + "64": "-3/4" + }, + "93003": { + "1120": "1", + "358": "-1" + }, + "93005": { + "30": "-1/4", + "352": "-1/2", + "353": "-1/2", + "355": "-1", + "357": "1/2", + "362": "1", + "59": "1/2" + }, + "93009": { + "26": "1/4", + "368": "-3/4", + "369": "-1/2", + "371": "-1", + "373": "1/2", + "378": "1", + "8": "1/4" + }, + "93063": { + "18": "1/4", + "288": "1/4", + "289": "1/2", + "293": "-1", + "298": "1", + "39": "1/4", + "40": "1/4" + }, + "93073": { + "107": "-1/4", + "304": "-1/4", + "305": "1/2", + "307": "-1", + "309": "-1/2", + "314": "1", + "35": "1/4", + "45": "1/4" + }, + "93111": { + "17": "-1/4", + "273": "1/2", + "275": "-1", + "277": "-1/2", + "282": "1" + }, + "93118": { + "1086": "1", + "513": "-1" + }, + "93120": { + "108": "1/2", + "23": "1/4", + "320": "-1/4", + "321": "1/2", + "323": "-1", + "325": "-1/2", + "330": "1" + }, + "93275": { + "106": "-5/64", + "1154": "1/2", + "1162": "-1/2", + "1163": "-1/4", + "1168": "-1", + "1173": "1/2", + "1349": "1/4", + "1365": "1/16", + "1373": "1/8", + "1380": "1/16", + "1385": "-9/64", + "1392": "-1/32", + "1448": "-1/16", + "240": "-13/64", + "402": "1/4", + "405": "-1/8", + "41": "-1/16", + "42": "1/32", + "570": "-1", + "573": "1/2", + "728": "5/16", + "813": "1/8", + "875": "1/2" + }, + "93278": { + "106": "-5/4", + "1162": "-8", + "1163": "-4", + "1365": "1", + "1373": "2", + "1380": "1", + "1385": "7/4", + "1392": "-1/2", + "1448": "-1", + "240": "3/4", + "405": "-2", + "41": "-1", + "42": "1/2", + "728": "1", + "813": "2" + }, + "93329": { + "1343": "-1", + "1344": "-1", + "1346": "-1", + "1347": "-1" + }, + "93419": { + "26": "-1/8", + "368": "1/8", + "369": "1/4", + "371": "-1/2", + "372": "-1/2", + "373": "-1/4", + "377": "-1", + "378": "1/2", + "8": "1/8" + }, + "94322": { + "26": "-3/8", + "368": "1/8", + "369": "1/4", + "371": "-1/2", + "373": "1/4", + "378": "-1/2", + "8": "-3/8" + }, + "94679": {}, + "94893": { + "104": "-3/8", + "1179": "1/2", + "1185": "4", + "1388": "-4", + "1391": "-3", + "416": "3/8", + "417": "-1/4", + "419": "-1/2", + "421": "-1/8", + "426": "1/2", + "43": "-1/2", + "788": "4", + "815": "-4" + }, + "94930": { + "86": "1" + }, + "95064": { + "385": "1/4", + "387": "-1/2", + "389": "1/4", + "394": "-1/2", + "64": "-1/8", + "65": "-1/4", + "96": "3/8" + }, + "95872": { + "1402": "1", + "290": "1" + }, + "95946": { + "1112": "1/2", + "350": "1/2" + }, + "96007": { + "1470": "-1", + "169": "1" + }, + "96147": { + "1471": "-1", + "203": "1" + }, + "96360": { + "103": "1", + "108": "1", + "18": "1", + "45": "1", + "61": "1", + "63": "1" + }, + "96394": { + "1206": "1/3", + "1455": "-2/3", + "1460": "2/3", + "449": "4/3" + }, + "96427": { + "368": "1/4", + "721": "-1", + "723": "-1", + "724": "-1", + "725": "-1", + "9": "1/4" + }, + "96445": { + "368": "1/4", + "9": "1/4" + }, + "96484": { + "368": "1", + "9": "1" + }, + "96522": { + "1144": "4", + "1390": "-2", + "26": "5/2", + "368": "3/8", + "369": "-1/4", + "371": "1/2", + "373": "-1/4", + "378": "-1/2", + "381": "2", + "723": "2", + "725": "-2", + "8": "1/8", + "865": "8", + "95": "1/4" + }, + "96525": { + "1138": "4", + "1390": "-2", + "26": "5/2", + "368": "3/8", + "369": "-1/4", + "371": "-1/2", + "373": "-1/4", + "378": "-1/2", + "381": "2", + "723": "2", + "724": "-2", + "8": "1/8", + "865": "8", + "95": "1/4" + }, + "96724": {}, + "96957": { + "256": "1/4", + "336": "1/4" + }, + "96992": { + "1020": "2/3", + "1023": "-4/3", + "1025": "-2/3", + "1029": "-1/3", + "831": "1/3" + }, + "97194": { + "1098": "1", + "337": "-1/4", + "341": "1/4", + "346": "-1/2", + "58": "-1/8", + "712": "-7/4", + "714": "1/4", + "93": "-1/4" + }, + "97219": { + "1207": "-2", + "1479": "3", + "451": "2", + "581": "-1", + "582": "-1" + }, + "97234": { + "1105": "1", + "1134": "1", + "1137": "1", + "1138": "-1/2", + "1144": "-1/2", + "1390": "-1/4", + "26": "1/16", + "3": "1/16", + "546": "1", + "550": "-1/2", + "553": "-1/2", + "67": "1/32", + "721": "-1/4", + "724": "-1/4", + "725": "-1/4", + "775": "1/2", + "837": "1", + "942": "1/2", + "956": "-1/2" + }, + "97243": { + "1102": "1", + "1106": "1/2", + "1110": "1/2", + "1113": "-1/2", + "1224": "-1/2", + "1249": "1", + "1280": "1", + "1341": "-1/4", + "1342": "-1/4", + "1355": "1", + "338": "-1/4", + "348": "1/2", + "526": "1/2", + "712": "-1/4", + "714": "-1/4", + "863": "-2" + }, + "97269": { + "640": "-1/2", + "641": "-1/2" + }, + "97291": { + "913": "-1", + "927": "1" + }, + "97325": { + "228": "1" + }, + "97351": { + "92": "1/4" + }, + "97368": { + "1078": "1", + "1080": "1", + "1258": "1", + "1259": "1", + "1340": "1", + "146": "-2", + "1479": "1", + "451": "1", + "496": "2", + "497": "-2", + "581": "-1", + "582": "-1", + "889": "-1", + "895": "1", + "897": "1", + "898": "-1", + "907": "1", + "919": "-1" + }, + "97377": { + "146": "-1/2" + }, + "97423": { + "1469": "-1", + "223": "1" + }, + "97474": { + "1484": "1/2", + "34": "-1/2", + "49": "-1/2" + }, + "97859": { + "125": "1", + "1457": "-1" + }, + "97883": { + "139": "1", + "1474": "-1" + }, + "97920": { + "1472": "-1", + "163": "1" + }, + "97927": { + "1465": "-1", + "201": "1" + }, + "98067": { + "752": "-1", + "891": "1", + "937": "-1" + }, + "98072": { + "611": "1", + "613": "1", + "752": "1", + "891": "-1", + "937": "1" + }, + "98079": { + "1277": "-1", + "1279": "2", + "1368": "-3", + "1374": "2", + "1551": "2", + "476": "-1", + "489": "-1", + "524": "1", + "607": "-1", + "608": "-1/4", + "610": "3/4", + "611": "-1", + "612": "-1", + "613": "-1/2", + "770": "1" + }, + "98307": { + "128": "1", + "1476": "-1" + }, + "98315": { + "119": "1", + "1475": "-1" + }, + "98318": { + "1458": "-1", + "154": "1" + }, + "98359": { + "225": "-1/2", + "229": "1/4" + }, + "98449": { + "707": "4" + }, + "98468": { + "1233": "1", + "1381": "1" + }, + "98554": { + "108": "1", + "22": "1/2", + "23": "1/2", + "320": "-1/2", + "333": "2", + "49": "-1" + }, + "98558": { + "1466": "-1" + }, + "98970": { + "1208": "1", + "1461": "-3", + "454": "12" + }, + "99066": { + "1154": "1/2", + "1168": "-1", + "1173": "1/2", + "13": "1/4", + "1349": "1/4", + "1353": "-1", + "1385": "-3/16", + "1448": "1/4", + "1474": "1/2", + "240": "-3/16", + "402": "1/4", + "52": "-1/2", + "570": "-1", + "573": "1/2", + "737": "-1/2", + "875": "1/2", + "882": "1/2", + "895": "1/2", + "897": "1/2", + "907": "-1/2", + "928": "1/2", + "954": "1/2", + "957": "-1/2", + "968": "1/2", + "975": "1/2" + }, + "99218": { + "1031": "-1", + "1033": "-1", + "1221": "-1", + "1222": "-1", + "1224": "-1", + "1302": "-1", + "1311": "-1", + "1312": "-1", + "1319": "-1", + "1338": "-1/2", + "1360": "-1", + "1361": "-1", + "1366": "-1", + "1426": "2", + "251": "2", + "265": "-2", + "471": "4", + "549": "2", + "650": "-1", + "674": "-1", + "704": "-1/2", + "882": "-1", + "884": "-1", + "889": "1", + "905": "-1", + "907": "-1", + "934": "1", + "938": "1", + "939": "1", + "946": "-1", + "947": "-1", + "948": "-1", + "952": "-1", + "955": "1", + "957": "1", + "963": "-1", + "965": "-1", + "968": "1", + "970": "1" + }, + "99279": { + "68": "1", + "777": "1" + }, + "99282": { + "68": "1", + "777": "1" + }, + "99299": { + "68": "1" + }, + "99320": { + "1322": "-1", + "1325": "1/2", + "1394": "1/2", + "1427": "-1", + "30": "-1/8", + "353": "-1/4", + "355": "-1/2", + "357": "-1/4", + "362": "-1/2", + "538": "-1", + "59": "1/8" + }, + "99464": { + "1495": "-2" + }, + "99564": { + "1208": "1" + }, + "99578": { + "1277": "-1/4", + "1279": "1/2", + "1280": "3/8", + "1368": "-3/4", + "1374": "1/2", + "1551": "1/4", + "173": "1/2", + "476": "-1/4", + "489": "-1/4", + "524": "1/4", + "608": "-1/16", + "610": "3/16", + "611": "-1/4", + "612": "-1/4", + "613": "-1/8", + "770": "1/4", + "891": "3/8", + "905": "3/8" + }, + "99593": { + "151": "1/2" + }, + "99778": { + "382": "1/2", + "816": "-1/2" + }, + "99846": { + "559": "-1/2" + }, + "99858": { + "546": "-1/2" + }, + "99866": { + "568": "-1/2" + }, + "99873": { + "575": "-1/2" + }, + "99881": { + "292": "1" + }, + "99884": { + "558": "-1/2" + }, + "99891": { + "1399": "1", + "563": "1" + }, + "99898": { + "1436": "1", + "364": "1" + }, + "99917": { + "428": "1" + }, + "99939": { + "512": "1" + }, + "99965": { + "527": "1" + }, + "99986": { + "523": "-1/2" + } + } +} \ No newline at end of file diff --git a/research/p104-helper-quotients/data/PARENT-APPLICATION.json b/research/p104-helper-quotients/data/PARENT-APPLICATION.json new file mode 100644 index 0000000000..beec452311 --- /dev/null +++ b/research/p104-helper-quotients/data/PARENT-APPLICATION.json @@ -0,0 +1,695 @@ +{ + "bracket": [ + "0.00374039009047", + "0.00374039009048" + ], + "caller": { + "calls": 16, + "dyadic_height": 9, + "exact_preproduct_divisions": 153295, + "fixed_caller_paid": { + "1": 384, + "8": 640, + "9": 32, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416 + }, + "fixed_root_targets": { + "9": 416, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "129": 208 + }, + "odd_scale": 2025, + "peak_scaled_mass": "495734175/2", + "peak_witness": [ + 1196, + "stored sum" + ], + "roles": 68, + "root_owners": 3536, + "uses": { + "ADD": 92400, + "IDLE_ODD": 32, + "IDLE_ONE": 3136, + "LAMBDA": 10672, + "QUERY": 384, + "SCALE": 11728, + "SWAP": 240 + } + }, + "claim": "0.00374039009039", + "compiler": { + "BIT_margin": "1314995477/50000000000000", + "BIT_pin": "376669/100000000", + "H": "14617400000000000000", + "alpha": [ + 0.9999999999999847, + 0.9999999999999847 + ], + "claim": "374039009039/100000000000000", + "compiler_gap": "1/100000000000000", + "delta": [ + 0.9324656693530149, + 0.9324656693530149 + ], + "derivative_upper": -347252.8794022977, + "gamma": [ + 0.9340309057512434, + 0.9340309057512434 + ], + "input_lift": { + "derivative_upper_on_required_interval": "-2299831290525933154178526076272396899996972093654613095735772838275432653960006518819/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "interval_kappa_cap": "376669/100000000", + "margins": { + "187019504523/50000000000000": [ + "31867947428528767731842151578548916126682050789814024673601432161619218289483/25000000000000000000000000000000000000000000000000000000000000000000000000000000", + "25494357942823014185473721262839132901345640631851219738881145729295374631979/20000000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "374039009039/100000000000000": [ + "127471789711834022913135653400183783077800272130383902178040696620298703349843/100000000000000000000000000000000000000000000000000000000000000000000000000000000", + "127471789711834022913135653400183783077800272130383902178040696620298703351763/100000000000000000000000000000000000000000000000000000000000000000000000000000000" + ] + }, + "source_BIT_wide_crude_bound_would_be": "-2299831290525933154178526076272396899996972093654613095735772838275432653960006518819/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "minimum_log_power": 2295, + "moment_margin_float": { + "187019504523/50000000000000": [ + 4.136998743571411e-09, + 4.136998743571411e-09 + ], + "374039009047/100000000000000": [ + 6.137146742010277e-10, + 6.137146742010277e-10 + ], + "46754876131/12500000000000": [ + -2.9095693951692108e-09, + -2.9095693951692108e-09 + ] + }, + "moment_margins": { + "187019504523/50000000000000": [ + "25856242147321316140206447966775372880221117214093807126278323532281653/6250000000000000000000000000000000000000000000000000000000000000000000000000000", + "25856242147321316140206447966775372880221117214093807126278323534518023/6250000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "374039009047/100000000000000": [ + "3835716713756422793035549018256668483836802086113875291596852829527159/6250000000000000000000000000000000000000000000000000000000000000000000000000000", + "3835716713756422793035549018256668483836802086113875291596852831758451/6250000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "46754876131/12500000000000": [ + "-4546202179951891988309597805342739816873328101587478432603643114003927/1562500000000000000000000000000000000000000000000000000000000000000000000000000", + "-181848087198075679532383912213709592674933124063499137304145724537851/62500000000000000000000000000000000000000000000000000000000000000000000000000" + ] + }, + "outer": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "raw_bracket": [ + "374039009047/100000000000000", + "46754876131/12500000000000" + ], + "tested": "187019504523/50000000000000", + "written_log_power": 2296 + }, + "conditional_interfaces": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ], + "cut_counts": { + "feedback": 3, + "group": 21, + "pivot": 22 + }, + "graph_sha256": "db10e4ca7154b454f86bf404bc34b3a16d02de6cc008d5227e4eef2654cb0778", + "invoice": { + "contract": { + "ambient_rank": 137, + "boundary": "actual signed caller research candidate with 16 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "paid": { + "1": 63440, + "16": 416, + "2": 13952, + "24": 416, + "3": 9152, + "32": 416, + "4": 3936, + "40": 416, + "48": 416, + "5": 5904, + "56": 416, + "6": 1568, + "7": 176, + "8": 768, + "9": 96 + }, + "schema": "integer-mult-recursive-invoice/v1", + "targets": { + "1": 288, + "129": 208, + "17": 416, + "2": 336, + "25": 416, + "3": 752, + "33": 416, + "4": 3664, + "41": 416, + "49": 416, + "5": 1216, + "57": 416, + "6": 736, + "65": 416, + "7": 272, + "8": 512, + "9": 10256 + } + }, + "paid": 101488, + "paid_delta": { + "1": -288, + "2": 48, + "3": -368, + "4": 96, + "5": 80, + "6": 48, + "7": 32 + }, + "parent_bracket": [ + "0.00373004177032", + "0.00373004177033" + ], + "physical": { + "caller_envelope": { + "binary_height_at_all_completed_cuts_and_products": 325, + "binary_height_at_native_entrances": 318, + "normalized_bound_uses_no_cancellation_or_commutation": true, + "records": 4192, + "scaled_mass_at_all_cuts_and_products": "422697641667541055184649383436611894902745135854144098178147008285122975926924780864462653005878076090749928607858304935653611344748944586891405006118422035825340979484130265226717/787320000000000", + "scaled_mass_at_native_entrances": "841540548201148271304709423731170105326708333407364819898222426096105903810343041288214438457604474421941928920227707368470121101079538458948446020268383922323667853993448395617/100776960000000", + "stages": 16, + "uses": { + "ADD": 92400, + "IDLE_ODD": 32, + "IDLE_ONE": 3136, + "LAMBDA": 10672, + "QUERY": 384, + "SCALE": 11728, + "SWAP": 240 + } + }, + "common_root": { + "H_guard": "bit_length(context_c*1920*153**1920*(H+1)**2) < H for each actual compiler bound H", + "caller_odd": 2025, + "context_binary_bits": 338, + "context_c": 1156, + "context_mass_bits": 578, + "context_mass_bound": "2020364950059785188546063090429257730751564686833621008809099431232135296822118588416990031081746106492475216760882735797197446204639442296081953665424606378202137443179442954993607660812897/3439853568000000", + "exact_grid": "2^(-p-D)", + "native_binary": { + "candidate": 20 + }, + "native_odd": { + "candidate": 2025 + }, + "signed_width": "W=p+h+2D+3", + "temporary_width": "W+26" + }, + "depth_guard": { + "argument_bit_length": 14083, + "compiler_H": 14617400000000000000, + "strict_guard_passed": true + }, + "native": { + "additional_independent_guarded_streams": 4, + "all_public_inputs_preserved_until_final_installs": true, + "checked_nontrivial_divisions": 4863931, + "checked_nontrivial_divisions_by_denominator": { + "2": 2408833, + "3": 68834, + "4": 1669843, + "5": 48656, + "6": 24216, + "8": 417439, + "9": 13, + "10": 6501, + "12": 3606, + "16": 133629, + "20": 14974, + "24": 6633, + "32": 40402, + "40": 620, + "48": 429, + "64": 18896, + "96": 172, + "128": 165, + "192": 60, + "256": 4, + "384": 6 + }, + "coefficient_products": 9280471, + "declared_senders": 1, + "deferred_terminal_banks": 1501, + "exact_all_public_rows": 1501, + "exact_odd_unscale_outputs": 1501, + "fixture_addressed_cells_overwritten": { + "clear_full_sender_after_return": 24484, + "initialize_complete_dirty_home": 36512, + "initialize_empty_sender_before_departure": 24484, + "retire_complete_home": 36512 + }, + "fixture_addressed_cells_per_home": 4, + "guarded_dummy_slots": 1, + "immutable_entry_banks": 1501, + "immutable_paid_return_banks": 6121, + "live_sender_alias_control_rejected": true, + "max_outstanding_native_senders": 1, + "maximum_exact_row_prefix_mass_scaled": "27984388275/16", + "minimum_product_grid": 921600, + "minimum_snapshot_grid": 23040, + "missing_odd_factor_controls": { + "3": { + "coefficient": "-2/3", + "denominator": 3, + "donor": -1474, + "entrance_column": 1473, + "numerator_without_factor": -52428800, + "positive_remainder": 1, + "removed_factor": 81, + "row": 88440 + }, + "5": { + "coefficient": "1/10", + "denominator": 10, + "donor": -1320, + "entrance_column": 1319, + "numerator_without_factor": 84934656, + "positive_remainder": 6, + "removed_factor": 25, + "row": 88808 + } + }, + "native_scalar_scratch_homes": 4, + "numerical_homes": 9128, + "paid_native_ranks": { + "1": 3941, + "2": 872, + "3": 572, + "4": 246, + "5": 369, + "6": 98, + "7": 11, + "8": 8, + "9": 4 + }, + "path_grid": 2123366400, + "path_grid_height": 20, + "path_grid_odd": 2025, + "positive_helper_ranks": { + "1": 18, + "2": 21, + "3": 47, + "4": 229, + "5": 76, + "6": 46, + "7": 17, + "8": 32, + "9": 615 + }, + "positive_path_mass_bound_unscaled": "2400793347841/69120", + "positive_path_mass_peak_node": 156140, + "public": 1501, + "retired_and_guards_restored": true, + "same_owner_complete_fixture_outputs": 1501, + "selected_logical_operations": { + "clear_full_sender_after_return": 6121, + "initialize_complete_dirty_home": 9128, + "initialize_empty_sender_before_departure": 6121, + "read_immutable_donor": 177531, + "read_parked_sender": 6121, + "read_terminal_for_same_owner_install": 1501, + "retire_complete_home": 9128, + "stage_full_sender": 6121, + "write_complete_return": 6121, + "write_entrance": 1501, + "write_terminal": 1501 + }, + "separate_guide_tracks": 1, + "slots": 6121, + "terms": 177531, + "trace_sha256": "0d2dfdb751c6f0ca29a3ef52bc463ee57656be06e264a9d74ef8084f12e2eb0e", + "tracked_stream_reset_visits": 540215 + }, + "ordinary": { + "additional_full_overwrite_steps_per_reset_L_and_constant": [ + 2, + 3 + ], + "compiled_ordinary_work": "Full-view resets, selects, copies, guide and layout setup and return, exact scalar and odd conversions, matchers, fixed descriptors, root normalization, and all native, caller and child adapters.", + "compiled_stock": "Disjoint occurrence-tagged bank tuples, dummy origins, guides and four guarded streams per stage; complete public owners, matching child views, compiler and BIT workspace, and every parked ancestor.", + "layout": { + "aggregate_owned_tuple_M": "sum_stage[(homes+6)(L'+2)+ell(N_c)+ell(W+26)+max(ell(N_c),ell(W+26),ell(homes))+max(N_c,homes)+max(W+26,ell(homes))+10]", + "complete_view_step_bound": "34*(256(M+352)+128) plus fixed-degree descriptor work", + "guide_setup_and_retirement": "q(N_c)+q(W')+22N_cW'+36N_c+7W'+36+7L'+10; q(x)=24x-7popcount(x)+15ell(x)+12; W'=W+26", + "padded_payload": "L'=N_c(2(W+26)+3)", + "per_stage_selector_and_stream_tracks": 11, + "shadow_cells_upper": "M+352" + }, + "native_numeric_homes": 9128, + "native_numeric_homes_plus_dummy": 9129, + "native_paid_wrappers": 97936, + "native_productive_wrappers": 17616, + "odd_conversions": 55104, + "ordinary_elementary_record_upper": 26543706112, + "ordinary_main_pair_slots": 6400, + "ordinary_map_slots": 279808, + "raw_numeric_homes": 146048, + "raw_numeric_homes_plus_dummy": 146064, + "raw_paid_positions": 101488, + "raw_productive_targets": 21152, + "raw_scalar_incidence_allowance_before_factor_32": { + "complete_array_odd_conversions": 55104, + "literal_native_products_and_accumulations": 2840496, + "private_home_flags_and_cleanup": 146048, + "public_boundary_installations_and_scale_preparations": 48032, + "serial_sender_initialization_and_retirement": 195872, + "weighted_signed_caller_operation_slots": 118592, + "width_padded_native_row_lifecycles": 487808 + }, + "reset_services_all_native_stages": 24283616, + "reset_services_by_kind_per_native": { + "dirty_home_initializations_and_retirements": 18256, + "owner_scale_unscale_stream_initializations_and_retirements": 6004, + "sender_reinitializations_and_retirements": 12242, + "term_and_row_stream_initializations_and_retirements": 1481224 + }, + "reset_services_per_native": 1517726, + "root_negative_q_translations": 3536, + "scalar_services": 124542464, + "scalar_step_rate": 2097152, + "selected_total_steps_per_native_L_and_constant": [ + 246809218422, + 1111211094456 + ], + "selected_total_steps_raw_L_and_constant": [ + 3948947494752, + 17779377511296 + ], + "selector_steps_per_selected_service_L_and_constant": [ + 127801, + 575459 + ], + "separate_guarded_guide_tracks_per_native": 1, + "separate_guarded_guide_tracks_raw": 16, + "separate_guarded_streams_per_native": 4, + "separate_guarded_streams_raw": 64, + "typed_selected_transfer_legs_all_native_stages": 6608576, + "typed_selected_transfers_per_native": 413036, + "typed_transfer_legs_by_kind_per_native": { + "complete_scalar_donor_staging_legs": 355062, + "complete_sender_and_terminal_staging_legs": 15244, + "immutable_entrance_and_public_terminal_install_legs": 6004, + "paid_parked_sender_return_and_adapter_legs": 36726 + } + }, + "partial_clear_control": { + "dirty_unaddressed_last_cell_rejected": true, + "neighbor_unchanged": true + }, + "scalars": { + "coefficient_bits": 13, + "component_padding": 26, + "distinct_scalar_and_conversion_factors": 684, + "rejected_one_tick_denominators": [ + 2, + 3, + 5, + 7 + ], + "retained_max_bits": 24, + "signed_bit_transducer_cases": 4104 + } + }, + "powers": [ + [ + "parent", + "0.00373004177032", + "lower", + { + "lower": "-1496508466540981329594386786348762314112419719428895920648738139559/3618502788666131106986593281521497120414687020801267626233049500247285301248", + "upper": "-1496508466540981329594386786348762314112419719428895920648734624417/3618502788666131106986593281521497120414687020801267626233049500247285301248" + } + ], + [ + "parent", + "0.00373004177033", + "higher", + { + "lower": "22576528637372510171943954836057324278158033490699559504377165067791/7237005577332262213973186563042994240829374041602535252466099000494570602496", + "upper": "22576528637372510171943954836057324278158033490699559504377171722649/7237005577332262213973186563042994240829374041602535252466099000494570602496" + } + ], + [ + "parent", + "0.00374039009039", + "higher", + { + "lower": "13229811831965427000328743591257049300044622162971635460725558491622036808281/3618502788666131106986593281521497120414687020801267626233049500247285301248", + "upper": "13229811831965427000328743591257049300044622162971635460725558491622040243595/3618502788666131106986593281521497120414687020801267626233049500247285301248" + } + ], + [ + "candidate", + "0.00374039009039", + "lower", + { + "lower": "-26053208525573464502058539321570242725047950269508182440027912001885/904625697166532776746648320380374280103671755200316906558262375061821325312", + "upper": "-208425668204587716016468314572561941800383602156065459520223289148107/7237005577332262213973186563042994240829374041602535252466099000494570602496" + } + ], + [ + "candidate", + "0.00374039009046", + "lower", + { + "lower": "-1871217686290178727785499778182903377316733974195001051914050296055/452312848583266388373324160190187140051835877600158453279131187530910662656", + "upper": "-7484870745160714911141999112731613509266935896780004207656199520219/1809251394333065553493296640760748560207343510400633813116524750123642650624" + } + ], + [ + "candidate", + "0.00374039009047", + "lower", + { + "lower": "-2220728260041744648020387964002015902777330738386348136884677732813/3618502788666131106986593281521497120414687020801267626233049500247285301248", + "upper": "-1110364130020872324010193982001007951388665369193174068442337068989/1809251394333065553493296640760748560207343510400633813116524750123642650624" + } + ], + [ + "candidate", + "0.00374039009048", + "higher", + { + "lower": "21056569940474835912050381350317462609887671491455495468646402762269/7237005577332262213973186563042994240829374041602535252466099000494570602496", + "upper": "21056569940474835912050381350317462609887671491455495468646409735773/7237005577332262213973186563042994240829374041602535252466099000494570602496" + } + ] + ], + "preflight": { + "assurance": { + "contract": "Exact matching user declarations; mathematical applicability is not verified.", + "inconclusive": "Mixed hinge signs do not establish a power-moment crossing or failure.", + "input_binding": "SHA-256 identifies the exact input bytes read, when loaded by this CLI.", + "scope": "Histogram arithmetic only. Histogram correctness, circuit legality, ownership, phases, precision, supplier admission and compiler endpoints are not validated." + }, + "classification": "uniformly_better", + "contract": { + "ambient_rank": 137, + "boundary": "actual signed caller research candidate with 16 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "delta_paid": { + "1": -288, + "2": 48, + "3": -368, + "4": 96, + "5": 80, + "6": 48, + "7": 32 + }, + "delta_targets": {}, + "hinges": [ + { + "rank": 0, + "value": 0 + }, + { + "rank": 1, + "value": -352 + }, + { + "rank": 2, + "value": -416 + }, + { + "rank": 3, + "value": -528 + }, + { + "rank": 4, + "value": -272 + }, + { + "rank": 5, + "value": -112 + }, + { + "rank": 6, + "value": -32 + }, + { + "rank": 7, + "value": 0 + } + ], + "method_credit": "Classical concave order/majorization; mightyOil's t16-moment-order-audit and its retained predecessors. No new theorem claim.", + "power_moment": { + "exponent": "0 < t < 1", + "new_minus_old_sign": "strictly_negative", + "tariff": "r^t" + }, + "quantity": "(new paid - new targets) - (old paid - old targets)", + "rank_mass": { + "delta": { + "paid": 0, + "paid_minus_targets": 0, + "targets": 0 + }, + "new": { + "paid": 271568, + "paid_minus_targets": -1328, + "targets": 272896 + }, + "old": { + "paid": 271568, + "paid_minus_targets": -1328, + "targets": 272896 + } + }, + "schema": "integer-mult-recursive-invoice-comparison/v1", + "signed_net_delta": { + "1": -288, + "2": 48, + "3": -368, + "4": 96, + "5": 80, + "6": 48, + "7": 32 + }, + "tariff_class": "increasing concave f on nonnegative ranks, with f(0)=0", + "uniform_order": "weak; some concave tariffs can give equality" + }, + "probe": "0.00374039009046", + "productive": 21152, + "signed_rank_surplus": 1328, + "stages": [ + [ + 1, + 400, + 1101 + ], + [ + 2, + 400, + 1101 + ], + [ + 3, + 400, + 1101 + ], + [ + 4, + 400, + 1101 + ], + [ + 5, + 400, + 1101 + ], + [ + 6, + 400, + 1101 + ], + [ + 7, + 400, + 1101 + ], + [ + 8, + 400, + 1101 + ], + [ + 9, + 400, + 1101 + ], + [ + 10, + 400, + 1101 + ], + [ + 11, + 400, + 1101 + ], + [ + 12, + 400, + 1101 + ], + [ + 13, + 400, + 1101 + ], + [ + 14, + 400, + 1101 + ], + [ + 15, + 400, + 1101 + ], + [ + 16, + 400, + 1101 + ] + ] +} diff --git a/research/p104-helper-quotients/data/PARENT-CUTS.json b/research/p104-helper-quotients/data/PARENT-CUTS.json new file mode 100644 index 0000000000..c6b92caba9 --- /dev/null +++ b/research/p104-helper-quotients/data/PARENT-CUTS.json @@ -0,0 +1,48 @@ +[ + {"kind":"pivot","direction":"forward","remove":91157,"pivot":91200,"source_chart":3,"combination":[[91200,"-2/3"]],"sender":[[-1260,"1"],[-1205,"2"],[-1034,"1/3"],[-983,"-2/3"],[-982,"-2/3"],[-981,"-2/3"],[-980,"2/3"],[-979,"-2/3"],[-977,"-2/3"],[-976,"-2/3"],[-969,"-2/3"],[-964,"2/3"],[-963,"2/3"],[-961,"-2/3"],[-960,"-2/3"],[-959,"-2/3"],[-958,"2/3"],[-955,"-2/3"],[-954,"2/3"],[-952,"-2/3"],[-951,"-2/3"],[-950,"-2/3"],[-937,"2/3"],[-936,"2/3"],[-935,"-2/3"],[-934,"-2/3"],[-933,"-4/3"],[-932,"-2/3"],[-931,"-2/3"],[-929,"-2/3"],[-922,"-2/3"],[-921,"-2/3"],[-920,"-2/3"],[-919,"-2/3"],[-911,"-2/3"],[-910,"2/3"],[-909,"2/3"],[-908,"2/3"],[-900,"4/3"],[-899,"-2/3"],[-898,"-2/3"],[-896,"-2/3"],[-895,"-2/3"],[-890,"2/3"],[-889,"-2/3"],[-884,"-2/3"],[-883,"-2/3"],[-768,"1/2"],[-727,"1/12"],[-601,"-1/3"],[-570,"-1"],[-569,"-1/2"],[-568,"-3/2"],[-567,"-1/2"],[-566,"-3/4"],[-555,"-2/3"],[-552,"-1/12"],[-523,"1"],[-509,"2"],[-505,"-1/6"],[-496,"2"],[-429,"2/3"],[-384,"-1"],[-367,"-1/6"],[-364,"-1/6"],[-349,"-1/12"],[-279,"2"],[-173,"-1/3"],[-165,"1/3"],[-153,"-1/3"],[-151,"-1/3"],[-143,"-1/3"],[-132,"-1/3"],[-130,"-1/3"]],"receiver":[[95933,"2/3"]]}, + {"kind":"pivot","direction":"forward","remove":100142,"pivot":104294,"source_chart":1031,"combination":[[104294,"10"],[104488,"-3"]],"sender":[[-1499,"1"]],"receiver":[[103616,"2"],[103617,"-11/2"],[103621,"-11/2"],[103625,"3/4"],[103645,"-5/2"],[103646,"-5/2"],[103765,"3/4"],[103766,"9/2"],[103905,"2"],[103911,"-1"],[103912,"-3/4"],[103972,"-1"],[103973,"-2"],[103974,"-1"],[103975,"2"],[104055,"1"],[104056,"2"],[104104,"-4"],[104105,"1"],[104289,"5/2"],[104448,"-3/4"],[104449,"9/2"]]}, + {"kind":"pivot","direction":"forward","remove":98855,"pivot":104187,"source_chart":807,"combination":[[104187,"-1"],[104188,"1/2"]],"sender":[[97558,"-1"],[99958,"1"]],"receiver":[[103550,"1"],[104143,"-1"],[104144,"1/2"],[104279,"-1/2"]]}, + {"kind":"pivot","direction":"forward","remove":98052,"pivot":103768,"source_chart":549,"combination":[[103768,"1"]],"sender":[[95997,"-1/2"],[97406,"-1/2"],[98070,"1"]],"receiver":[[104179,"1/2"]]}, + {"kind":"pivot","direction":"transpose","remove":100209,"pivot":100188,"source_chart":1098,"combination":[[100188,"-1/4"]],"sender":[[100619,"1"]],"receiver":[[96764,"1/2"]]}, + {"kind":"pivot","direction":"transpose","remove":90639,"pivot":89999,"source_chart":318,"combination":[[89999,"1"]],"sender":[[98207,"2"],[98415,"1"]],"receiver":[[89956,"-1"],[89970,"1"],[90003,"-1"],[90005,"-1"],[90135,"1"],[97589,"-1"]]}, + {"kind":"pivot","direction":"transpose","remove":90646,"pivot":88793,"source_chart":336,"combination":[[88793,"1/2"]],"sender":[[98408,"1"],[98427,"1/2"]],"receiver":[[88473,"1/2"],[88475,"-1/2"],[88763,"-1/2"],[88800,"-1/2"],[88836,"-1/2"],[91075,"1/2"]]}, + {"kind":"pivot","direction":"transpose","remove":94655,"pivot":88524,"source_chart":412,"combination":[[88524,"1/2"]],"sender":[[97734,"1/2"],[98719,"1"]],"receiver":[[88526,"-1/2"],[88694,"1/2"],[88702,"-1/2"],[88720,"-1/2"],[88738,"-1/2"],[97728,"1/2"]]}, + {"kind":"pivot","direction":"forward","remove":88524,"pivot":97734,"source_chart":3,"combination":[[97734,"1"]],"sender":[[-1117,"1"],[-1095,"1"],[-969,"1/2"],[-964,"-1/2"],[-935,"1/2"],[-908,"-1/2"]],"receiver":[[98650,"1/2"]]}, + {"kind":"pivot","direction":"forward","remove":88793,"pivot":98427,"source_chart":3,"combination":[[98427,"2"]],"sender":[[-1474,"1"],[-1472,"4"],[-1471,"3/2"],[-1470,"2"],[-1450,"2"],[-1344,"2/3"],[-1341,"-1"],[-1329,"2"],[-1319,"-1"],[-1312,"1"],[-1308,"-1/2"],[-1296,"-1/16"],[-1288,"1/4"],[-1285,"-1/2"],[-1280,"-1/2"],[-1266,"-1/8"],[-1256,"-1/2"],[-1251,"1/2"],[-1250,"-1/4"],[-1249,"-1/2"],[-1246,"1/2"],[-1243,"-1/2"],[-1241,"1/4"],[-1239,"-1/2"],[-1237,"1"],[-1236,"1/2"],[-1235,"-1/2"],[-1234,"-1/2"],[-1230,"-1/2"],[-1229,"-1/2"],[-1228,"1/2"],[-1223,"-1/2"],[-1216,"-1"],[-1215,"-1"],[-1209,"-2"],[-1203,"-1"],[-1202,"-1"],[-1191,"1/4"],[-1189,"1/4"],[-1188,"1"],[-1185,"-1/2"],[-1177,"-1/2"],[-1176,"-1/2"],[-1173,"1"],[-1172,"-8"],[-1171,"2"],[-1114,"1/2"],[-1107,"1/2"],[-1106,"1/2"],[-1096,"-1/4"],[-1082,"2"],[-1080,"-1/4"],[-1075,"1/4"],[-1074,"1/4"],[-1071,"-1"],[-1069,"-1"],[-1066,"1"],[-1047,"-1"],[-1044,"2"],[-1043,"1/2"],[-1040,"1"],[-1038,"-1"],[-1036,"2"],[-1035,"1/2"],[-1033,"2"],[-1028,"-1"],[-1020,"-2"],[-1014,"-2"],[-1010,"2"],[-995,"-1/4"],[-964,"-1"],[-958,"-1"],[-914,"-1/2"],[-908,"-1"],[-890,"-1"],[-813,"-1/4"],[-811,"4"],[-790,"-1"],[-757,"-2"],[-753,"1/2"],[-734,"-8"],[-733,"-4"],[-705,"5/2"],[-698,"1/4"],[-660,"-1/2"],[-656,"-1/4"],[-644,"-1/4"],[-642,"-1/4"],[-641,"1/8"],[-636,"-1/4"],[-625,"1/4"],[-620,"1/4"],[-618,"-1/4"],[-612,"-1/2"],[-610,"1/8"],[-609,"1/8"],[-600,"1/2"],[-591,"-1/4"],[-590,"-2"],[-588,"-1/4"],[-584,"-1/4"],[-583,"-1/4"],[-569,"1/2"],[-565,"1/2"],[-564,"1/2"],[-545,"7/2"],[-544,"4"],[-539,"1/2"],[-538,"-2"],[-537,"4"],[-532,"-2"],[-531,"1"],[-529,"7/4"],[-528,"2"],[-523,"-1"],[-518,"2"],[-513,"2"],[-512,"2"],[-498,"1/4"],[-497,"-1"],[-492,"2"],[-480,"1"],[-471,"1"],[-470,"1"],[-449,"2"],[-443,"-1/2"],[-442,"2"],[-441,"-2"],[-440,"-5/4"],[-435,"1/2"],[-430,"-8"],[-419,"-1/2"],[-418,"-2"],[-415,"2"],[-410,"1/4"],[-409,"1/8"],[-400,"2"],[-389,"1/4"],[-384,"1"],[-364,"-1"],[-361,"2"],[-349,"1/2"],[-337,"3/2"],[-321,"-1/2"],[-320,"-1"],[-317,"3/4"],[-314,"2"],[-312,"1"],[-307,"1/2"],[-284,"3"],[-282,"-1"],[-281,"2"],[-277,"1/4"],[-273,"5/2"],[-269,"4"],[-268,"1/8"],[-265,"2"],[-258,"-1"],[-256,"-1/4"],[-240,"1/4"],[-239,"1/4"],[-237,"-3/2"],[-231,"2"],[-174,"1"],[-151,"1/2"],[-130,"1/2"],[-127,"-1/8"],[-22,"-1"]],"receiver":[[98407,"-2"]]}, + {"kind":"pivot","direction":"forward","remove":89999,"pivot":98207,"source_chart":3,"combination":[[98207,"1"]],"sender":[[-1046,"1"],[-1000,"1"],[-972,"1"],[-943,"-1"]],"receiver":[[98210,"-1"]]}, + {"kind":"pivot","direction":"transpose","remove":90640,"pivot":89956,"source_chart":318,"combination":[[89956,"1"]],"sender":[[91111,"1"],[96223,"-1"]],"receiver":[[89970,"-1"],[90135,"-1"],[90656,"-1"],[91077,"1/2"],[97589,"1/2"]]}, + {"kind":"pivot","direction":"transpose","remove":90647,"pivot":88473,"source_chart":336,"combination":[[88473,"-2"]],"sender":[[96070,"2"],[96183,"1"]],"receiver":[[88475,"2"],[88763,"2"],[91075,"-1"],[96115,"-1"]]}, + {"kind":"pivot","direction":"transpose","remove":94656,"pivot":88694,"source_chart":412,"combination":[[88694,"-2"]],"sender":[[95776,"2"],[95797,"1"]],"receiver":[[88702,"2"],[88720,"2"],[95769,"-1"],[97728,"-1"]]}, + {"kind":"pivot","direction":"forward","remove":88473,"pivot":96070,"source_chart":3,"combination":[[96070,"1"]],"sender":[[-1062,"1"],[-1019,"1"],[-974,"-1"],[-941,"1"]],"receiver":[[96073,"-1"]]}, + {"kind":"pivot","direction":"forward","remove":88694,"pivot":95776,"source_chart":3,"combination":[[95776,"1/2"]],"sender":[[-1474,"1"],[-1473,"1/16"],[-1467,"1/4"],[-1344,"2/3"],[-1320,"-1/8"],[-1319,"-1/2"],[-1312,"-1/4"],[-1310,"-1/8"],[-1285,"-1/8"],[-1280,"-1/4"],[-1273,"1/2"],[-1266,"1/16"],[-1265,"-1/2"],[-1261,"-1/4"],[-1260,"1/2"],[-1257,"1/2"],[-1256,"-1/4"],[-1254,"1/4"],[-1250,"-1/4"],[-1249,"-1/2"],[-1248,"1/2"],[-1246,"1/2"],[-1245,"3/4"],[-1237,"-1/4"],[-1236,"1/4"],[-1235,"-1/2"],[-1234,"-1/2"],[-1231,"-1/8"],[-1230,"-1/4"],[-1229,"1/4"],[-1211,"-1/2"],[-1209,"1/2"],[-1204,"-1/2"],[-1200,"-1/4"],[-1199,"1/2"],[-1197,"-1/4"],[-1195,"-1/2"],[-1194,"-1/8"],[-1192,"1/4"],[-1189,"1/8"],[-1188,"1"],[-1187,"1/4"],[-1183,"-1/8"],[-1182,"-1/4"],[-1181,"-1/4"],[-1179,"-1/2"],[-1178,"-1/4"],[-1177,"-1/2"],[-1176,"-1/2"],[-1175,"1/4"],[-1174,"1/2"],[-1173,"-1"],[-1170,"-1/4"],[-1167,"-1/4"],[-1165,"1/2"],[-1162,"1"],[-1161,"1/2"],[-1145,"-1/2"],[-1143,"-1/2"],[-1140,"-1/2"],[-1129,"-1/8"],[-1127,"1/2"],[-1125,"1/2"],[-1123,"1/2"],[-1111,"-1/8"],[-1106,"-1/4"],[-1105,"-1/4"],[-1096,"-1/4"],[-1095,"-1/2"],[-1085,"1/8"],[-1078,"-1/2"],[-1073,"1/8"],[-1069,"-1/2"],[-1066,"1/4"],[-1063,"-1/2"],[-1059,"1/2"],[-1056,"1/2"],[-1049,"1/2"],[-1043,"-1/2"],[-1040,"1"],[-1034,"-1/4"],[-1033,"1/2"],[-1028,"-1"],[-1027,"-1/2"],[-1023,"-1/2"],[-1018,"1/2"],[-1012,"1/2"],[-1004,"1/8"],[-1000,"-1/4"],[-992,"-1/2"],[-988,"1/2"],[-985,"1/2"],[-984,"1/2"],[-983,"1/2"],[-982,"1/2"],[-981,"1/2"],[-976,"-1/2"],[-975,"-1/2"],[-974,"1/2"],[-973,"1/2"],[-972,"1/2"],[-969,"-1/2"],[-965,"-1/2"],[-964,"-1/2"],[-962,"-1/2"],[-958,"1/2"],[-957,"-1/2"],[-955,"-1/2"],[-946,"-1/2"],[-945,"-1/2"],[-944,"-1/2"],[-943,"1/2"],[-942,"1/2"],[-941,"1/2"],[-935,"1/2"],[-931,"-1/2"],[-929,"-1/2"],[-928,"-1"],[-927,"-1/2"],[-926,"-1/2"],[-923,"1/2"],[-922,"1/2"],[-921,"1/2"],[-920,"1/2"],[-919,"1/2"],[-917,"-1/2"],[-915,"1/2"],[-914,"-1/4"],[-913,"-1/2"],[-912,"-1/2"],[-908,"1/2"],[-907,"1/2"],[-905,"1/2"],[-904,"1/2"],[-903,"1"],[-901,"-1/2"],[-899,"1/2"],[-898,"-1/2"],[-897,"1/2"],[-896,"-1/2"],[-891,"1/2"],[-890,"-1/2"],[-888,"-1/2"],[-887,"-1/2"],[-883,"-1/2"],[-831,"1/2"],[-813,"1/4"],[-794,"-1/2"],[-761,"1/4"],[-733,"-4"],[-680,"-1/8"],[-665,"-1/2"],[-660,"-3/4"],[-656,"-1/4"],[-644,"-1/4"],[-642,"1/8"],[-641,"1/16"],[-636,"-1/4"],[-618,"1/8"],[-612,"1/4"],[-610,"-1/16"],[-593,"-1/8"],[-591,"1/8"],[-568,"1/4"],[-566,"1/8"],[-563,"-1/4"],[-562,"1/8"],[-561,"-1/2"],[-559,"1/2"],[-553,"-1/4"],[-552,"1/8"],[-551,"1/64"],[-548,"-1"],[-546,"1"],[-544,"-1/2"],[-540,"-1/2"],[-537,"1"],[-526,"-1/4"],[-524,"-1/4"],[-523,"1/2"],[-520,"-1/2"],[-519,"1/2"],[-514,"1/2"],[-509,"-1/2"],[-503,"1/4"],[-495,"1/2"],[-491,"-1/2"],[-485,"-1/16"],[-480,"-1"],[-471,"1"],[-470,"-1"],[-465,"-1/8"],[-462,"-1/4"],[-440,"-1/8"],[-429,"1/4"],[-419,"1/4"],[-408,"1/4"],[-405,"1/4"],[-365,"-1/4"],[-364,"-1"],[-361,"1/4"],[-357,"1/8"],[-355,"-1/16"],[-353,"1/8"],[-349,"1/2"],[-343,"-1/4"],[-335,"-1/16"],[-314,"1/2"],[-303,"1/16"],[-285,"-3/4"],[-284,"1"],[-282,"-1"],[-277,"1/4"],[-273,"1/4"],[-270,"1/8"],[-269,"4"],[-266,"1/128"],[-253,"1/64"],[-248,"-1/4"],[-244,"1/4"],[-243,"-1/4"],[-206,"-1/8"],[-174,"-1"],[-165,"1/4"],[-160,"-1/4"],[-4,"1/32"]],"receiver":[]}, + {"kind":"pivot","direction":"transpose","remove":91083,"pivot":90656,"source_chart":533,"combination":[[90656,"1"]],"sender":[[91864,"-1/2"],[99443,"1"],[99445,"1/2"]],"receiver":[[89956,"1"],[91114,"-1"]]}, + {"kind":"group","direction":"forward","incoming":94878,"outgoing":97358,"hub":520,"innovation":[[94878,"1"]],"receiver":[[97279,"-1"]],"group":[[94878,"1"],[97323,"-1"]]}, + {"kind":"group","direction":"forward","incoming":95267,"outgoing":103609,"hub":696,"innovation":[[95267,"1"],[100478,"1/2"]],"receiver":[[100491,"-1/3"]],"group":[[95267,"-1/3"],[100478,"-1/3"]]}, + {"kind":"group","direction":"forward","incoming":97657,"outgoing":103605,"hub":649,"innovation":[[97657,"1"],[97860,"1/2"]],"receiver":[[98581,"1/3"]],"group":[[97657,"1/3"],[97860,"1/3"]]}, + {"kind":"group","direction":"forward","incoming":99569,"outgoing":99936,"hub":929,"innovation":[[99569,"1"]],"receiver":[[101132,"1"]],"group":[[99569,"-1"]]}, + {"kind":"group","direction":"forward","incoming":97702,"outgoing":103833,"hub":982,"innovation":[[97702,"1"]],"receiver":[[102254,"-2"]],"group":[[97702,"1/2"],[100036,"2"]]}, + {"kind":"group","direction":"forward","incoming":98493,"outgoing":103414,"hub":912,"innovation":[[98493,"1"],[98495,"1"]],"receiver":[[98497,"-1/2"]],"group":[[98493,"1"],[98495,"1/2"]]}, + {"kind":"group","direction":"forward","incoming":101250,"outgoing":104372,"hub":1014,"innovation":[[101250,"1"]],"receiver":[[102749,"1"]],"group":[[100922,"-1"],[101250,"-1"]]}, + {"kind":"group","direction":"transpose","incoming":97429,"outgoing":97427,"hub":9,"innovation":[[97429,"1"]],"receiver":[[97896,"-1"]],"group":[[97429,"-1"],[97939,"1"]]}, + {"kind":"group","direction":"transpose","incoming":97662,"outgoing":97660,"hub":638,"innovation":[[97662,"1"]],"receiver":[[97808,"2"]],"group":[[97662,"1/2"],[98582,"-2"]]}, + {"kind":"group","direction":"transpose","incoming":97820,"outgoing":97467,"hub":637,"innovation":[[97820,"1"]],"receiver":[[97836,"2"]],"group":[[97820,"1/2"],[99797,"-2"]]}, + {"kind":"group","direction":"transpose","incoming":98247,"outgoing":97877,"hub":686,"innovation":[[98247,"1"]],"receiver":[[98251,"2"]],"group":[[98247,"1/2"],[98623,"-2"]]}, + {"kind":"group","direction":"transpose","incoming":98266,"outgoing":97879,"hub":685,"innovation":[[98266,"1"]],"receiver":[[98273,"2"]],"group":[[98266,"1/2"],[98375,"-2"]]}, + {"kind":"group","direction":"transpose","incoming":98291,"outgoing":97456,"hub":684,"innovation":[[98291,"1"]],"receiver":[[98235,"-1"]],"group":[[98291,"-1"],[99934,"1"]]}, + {"kind":"group","direction":"transpose","incoming":97392,"outgoing":97390,"hub":506,"innovation":[[97392,"1"]],"receiver":[[97380,"-1"]],"group":[[97392,"-1"],[97928,"1"]]}, + {"kind":"group","direction":"transpose","incoming":100336,"outgoing":100334,"hub":278,"innovation":[[100336,"1"]],"receiver":[[96138,"-1"]],"group":[[100336,"-1"],[100584,"1"]]}, + {"kind":"group","direction":"transpose","incoming":100352,"outgoing":95889,"hub":467,"innovation":[[100352,"1"]],"receiver":[[96121,"-1"]],"group":[[100352,"-1"],[100613,"1"]]}, + {"kind":"group","direction":"transpose","incoming":95382,"outgoing":95042,"hub":442,"innovation":[[95382,"1"]],"receiver":[[96240,"1"]],"group":[[95382,"-1"],[99195,"-1"]]}, + {"kind":"group","direction":"transpose","incoming":98837,"outgoing":91397,"hub":330,"innovation":[[98837,"1"],[99583,"1"]],"receiver":[[91589,"2"]],"group":[[98837,"1/2"],[99583,"-2"]]}, + {"kind":"group","direction":"transpose","incoming":98847,"outgoing":98802,"hub":430,"innovation":[[98847,"1"],[99724,"1"]],"receiver":[[98799,"1"]],"group":[[99724,"-1"]]}, + {"kind":"group","direction":"transpose","incoming":98849,"outgoing":95356,"hub":450,"innovation":[[98849,"1"]],"receiver":[[98950,"-2/3"]],"group":[[98849,"1/2"],[99725,"2/3"]]}, + {"kind":"feedback","direction":"forward","incoming":100727,"outgoing":100729,"hub":916,"innovation":[[100727,"1"]],"receiver":[[100694,"2"],[100744,"-2"]],"sender":[[-1463,"2"],[-1163,"1"],[-732,"-1"],[-425,"1"]]}, + {"kind":"feedback","direction":"forward","incoming":101932,"outgoing":103800,"hub":222,"innovation":[[101932,"1"]],"receiver":[],"sender":[[-1483,"-1/4"],[-1293,"-1/4"],[-754,"-1/2"],[-711,"1/2"]]}, + {"kind":"feedback","direction":"forward","incoming":99570,"outgoing":101132,"hub":778,"innovation":[[99570,"1"]],"receiver":[[98907,"1"]],"sender":[[98900,"1"],[98902,"1"]]}, + {"kind":"pivot","direction":"forward","remove":94878,"pivot":97358,"source_chart":595,"combination":[[97358,"-1"]],"sender":[[-1452,"1"]],"receiver":[[96708,"-2"],[96709,"-2"],[96715,"-2"],[97266,"-2"]]}, + {"kind":"pivot","direction":"forward","remove":99570,"pivot":101132,"source_chart":722,"combination":[[101132,"1"]],"sender":[[97596,"1"],[98422,"1"],[98900,"1"]],"receiver":[]}, + {"kind":"group","direction":"forward","incoming":98900,"outgoing":101132,"hub":778,"innovation":[[98900,"1"],[98902,"1"]],"receiver":[[98907,"1"]],"group":[[98900,"1"],[98902,"1"]]}, + {"kind":"pivot","direction":"transpose","remove":97429,"pivot":97427,"source_chart":660,"combination":[[97427,"-1"]],"sender":[[-760,"1"]],"receiver":[[95896,"-1"],[95955,"-1"],[95962,"1"],[96297,"1"]]}, + {"kind":"pivot","direction":"transpose","remove":103800,"pivot":101932,"source_chart":127,"combination":[[101932,"-1/4"]],"sender":[[-1293,"1"]],"receiver":[[101874,"1"]]}, + {"kind":"pivot","direction":"transpose","remove":99936,"pivot":101132,"source_chart":127,"combination":[[101132,"-3"]],"sender":[[-1474,"1"],[-1473,"-1/2"],[-1471,"6"],[-1467,"3"],[-1450,"-3"],[-1344,"-6"],[-1330,"3"],[-1323,"3/2"],[-1322,"-3/2"],[-1319,"-3/8"],[-1318,"3/2"],[-1310,"-3/2"],[-1308,"9/4"],[-1307,"-33/8"],[-1303,"3/2"],[-1301,"3/2"],[-1295,"-3/4"],[-1294,"3/4"],[-1287,"-3/2"],[-1280,"-3/2"],[-1278,"-1/2"],[-1274,"3"],[-1273,"9/16"],[-1265,"3/8"],[-1263,"-3/2"],[-1261,"-9"],[-1258,"-3/2"],[-1257,"-3/4"],[-1254,"-2"],[-1251,"-195/2"],[-1246,"18"],[-1244,"3/16"],[-1242,"3/2"],[-1237,"1/2"],[-1235,"3/4"],[-1234,"3/4"],[-1228,"3/2"],[-1223,"1/4"],[-1222,"-7/16"],[-1217,"15/16"],[-1216,"3/8"],[-1215,"-3/8"],[-1208,"6"],[-1207,"3/8"],[-1204,"-3/4"],[-1189,"3"],[-1184,"-2"],[-1183,"-4"],[-1182,"3/4"],[-1181,"3/4"],[-1177,"-3/2"],[-1174,"-9/32"],[-1172,"6"],[-1171,"-9/2"],[-1158,"6"],[-1156,"3/2"],[-1153,"6"],[-1147,"9/2"],[-1145,"6"],[-1144,"-6"],[-1140,"3/8"],[-1138,"3"],[-1137,"3"],[-1133,"-3"],[-1129,"25/8"],[-1123,"-3"],[-1122,"-3"],[-1119,"3"],[-1117,"-6"],[-1112,"3"],[-1111,"3"],[-1107,"-3"],[-1105,"15"],[-1103,"-3/4"],[-1095,"6"],[-1080,"3/2"],[-1078,"9/2"],[-1075,"3"],[-1074,"-6"],[-1071,"-3/2"],[-1061,"-3/2"],[-1059,"3/4"],[-1056,"-3/4"],[-1049,"3/8"],[-1045,"-9"],[-1044,"3/2"],[-1043,"-3"],[-1040,"6"],[-1030,"-2"],[-1028,"1/2"],[-1008,"-15/2"],[-881,"-3/2"],[-872,"3"],[-826,"-3"],[-813,"3/2"],[-809,"3/2"],[-793,"-3/2"],[-791,"3"],[-768,"-3"],[-762,"8"],[-753,"51/8"],[-734,"3/2"],[-733,"-3/2"],[-727,"-6"],[-712,"6"],[-705,"3/2"],[-698,"-3/4"],[-696,"-3/2"],[-692,"-1"],[-689,"3/4"],[-682,"3/2"],[-681,"-3/2"],[-680,"-3/2"],[-672,"-3/4"],[-666,"-3/4"],[-660,"-1"],[-656,"3/2"],[-644,"-3/2"],[-625,"3"],[-620,"3/2"],[-618,"-3/2"],[-610,"-3"],[-609,"3"],[-600,"-3"],[-593,"-9/4"],[-592,"-1/4"],[-591,"3/2"],[-590,"-1/2"],[-588,"7/2"],[-587,"3"],[-584,"3/2"],[-583,"-3/2"],[-582,"-15/4"],[-581,"9/4"],[-579,"3"],[-578,"-3/2"],[-574,"-3/2"],[-573,"-3/2"],[-572,"6"],[-571,"6"],[-570,"-3/2"],[-568,"3/2"],[-566,"-3"],[-563,"-3/2"],[-562,"3"],[-561,"-6"],[-560,"-3"],[-559,"-6"],[-550,"3/2"],[-549,"3/2"],[-548,"-3/2"],[-545,"9/4"],[-544,"3/4"],[-542,"-3/2"],[-541,"3/2"],[-539,"6"],[-537,"3/2"],[-533,"-3/2"],[-532,"-3/4"],[-531,"6"],[-530,"-3"],[-529,"3/2"],[-528,"9/2"],[-524,"-3/2"],[-523,"3"],[-507,"3/2"],[-506,"-3/2"],[-503,"3"],[-500,"-3/2"],[-499,"-3/2"],[-498,"-3/2"],[-497,"-6"],[-496,"-3/2"],[-495,"3"],[-491,"-6"],[-490,"-3/2"],[-486,"6"],[-485,"6"],[-483,"6"],[-480,"3"],[-479,"3"],[-477,"-3/4"],[-476,"3/4"],[-473,"6"],[-471,"-3"],[-470,"3"],[-469,"-3/2"],[-467,"-3"],[-466,"3"],[-465,"3"],[-459,"-6"],[-450,"-6"],[-449,"6"],[-448,"-3"],[-446,"-3"],[-445,"-3"],[-444,"3"],[-443,"-3"],[-440,"3/2"],[-439,"-9/2"],[-438,"-3"],[-435,"3"],[-431,"3"],[-430,"-6"],[-420,"-3/4"],[-418,"3/4"],[-408,"-3/2"],[-400,"6"],[-399,"-3"],[-398,"-3/2"],[-397,"3/2"],[-394,"3"],[-393,"-6"],[-373,"-3/2"],[-367,"3"],[-365,"-3"],[-364,"-3"],[-361,"-3/2"],[-359,"-3/2"],[-357,"-6"],[-353,"3/2"],[-352,"-3/4"],[-350,"3/4"],[-349,"-6"],[-348,"3/2"],[-343,"-3"],[-337,"-3/4"],[-333,"6"],[-329,"-3"],[-321,"3"],[-317,"-3"],[-314,"3"],[-312,"-3"],[-307,"-9/2"],[-303,"6"],[-289,"6"],[-284,"-3/2"],[-282,"-3"],[-277,"1"],[-273,"-3/4"],[-269,"-3"],[-265,"-3/4"],[-256,"-3/2"],[-252,"-3/2"],[-251,"6"],[-244,"-3"],[-237,"3/2"],[-231,"-3/2"],[-174,"3/4"],[-48,"-6"]],"receiver":[[101133,"3"]]} +] diff --git a/research/p104-helper-quotients/data/WORD.json.gz b/research/p104-helper-quotients/data/WORD.json.gz new file mode 100644 index 0000000000..890579b0b7 Binary files /dev/null and b/research/p104-helper-quotients/data/WORD.json.gz differ diff --git a/research/p104-helper-quotients/quotient.py b/research/p104-helper-quotients/quotient.py new file mode 100644 index 0000000000..51fd489cae --- /dev/null +++ b/research/p104-helper-quotients/quotient.py @@ -0,0 +1,149 @@ +"""Rebuild the parent, impose the supplied relations, and remove the private coordinates.""" +from fractions import Fraction +from hashlib import sha1, sha256 +from pathlib import Path +import json +import sys + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE / "vendor")) +from network import Network, add_scaled, encoded, main_roles, need, read +import construct +import recoding + +PARENT = "db10e4ca7154b454f86bf404bc34b3a16d02de6cc008d5227e4eef2654cb0778" + + +def parent(): + for item in read(HERE / "SOURCE-PINS.json"): + data = (HERE / item["path"]).read_bytes() + blob = f"blob {len(data)}\0".encode() + data + need(sha256(data).hexdigest() == item["sha256"] and sha1(blob).hexdigest() == item["git_blob"], + "source identity " + item["path"]) + word = read(HERE / "data/WORD.json.gz") + certs = read(HERE / "data/CERTS.json") + raw, clears, moves = construct.raw_fold(word, certs["clear_event_index"]) + relay, proof = construct.contract(raw, word["frames"], clears, moves) + frozen = construct.serialized(relay, word["frames"], "candidate", + source_banked_graph_sha256=construct.PARENT, paid_relay=proof) + need(sha256(frozen).hexdigest() == construct.CHILD, "role-1256 graph") + net = Network(relay.first, relay.initial, relay.final, relay.moves, relay.forms) + net = recoding.apply(net, read(HERE / "data/PARENT-CUTS.json"), word["frames"]) + need(digest(recoding.layout(word, net)) == PARENT, "exact parent graph") + return word, net + + +def digest(value): + return sha256(encoded(value)).hexdigest() + + +def sparse(items): + row = {key: Fraction(text) for key, text in items} + need(items == [[key, str(row[key])] for key in sorted(row)] and + all(type(k) is int for k in row) and all(row.values()), "canonical sparse relation") + return row + + +def substitute(forms, key, relation): + """Solve a homogeneous relation for one bank and replace every read of it.""" + need(key in relation, "missing pivot in relation") + scale = -1 / relation[key] + replacement = {i: scale * v for i, v in relation.items() if i != key} + result = {} + for j, row in forms.items(): + if j == key: + continue + if key not in row: + result[j] = row + continue + residual = dict(row) + add_scaled(residual, replacement, residual.pop(key)) + result[j] = residual + return result + + +def restrict(net, edit, mains, retired, observer=None): + need(edit["direction"] in ("forward", "transpose"), "certificate direction") + is_transpose = edit["direction"] == "transpose" + before = net.transpose() if is_transpose else net + r = edit["role"] + forms, moves = before.forms, dict(before.moves) + n = len(before.initial) + need(0 <= r < n and r not in retired | mains and before.initial[r] != before.final[r], + "retired coordinate must be a positive helper") + entrance = {~i: v for i, v in sparse(edit["entrance"]).items()} + need(~r in entrance and all(0 <= ~i < n and ~i not in retired and + before.initial[~i] == before.initial[r] for i in entrance), "helper entrance chart") + local = [] + for bank in edit["banks"]: + key, chart = bank["remove"], bank["chart"] + need(key in moves and moves[key][1] == chart, "receiver chart of removed bank") + relation = sparse(bank["relation"]) + recoding.check_bank(before, relation, chart) + need(key in relation, "missing paid pivot") + local.append((key, chart, relation)) + need(len(local) >= 2 and len(local) == len({c for _, c, _ in local}), "distinct receiver charts") + if observer: + observer(before, entrance, local) + forms = substitute(forms, ~r, entrance) + for key, _, relation in local: + forms = substitute(forms, key, relation) + del moves[key] + # Keep the label for later witnesses. The final circuit omits this row and column. + final = list(before.final) + final[r] = before.initial[r] + forms[before.first_output + r] = {~r: Fraction(1)} + after = Network(before.first_output, before.initial, final, moves, forms) + after.schedule() + return after.transpose() if is_transpose else after + + +def compact(net, word, retired): + keep = [r for r in range(len(net.initial)) if r not in retired] + index = {old: new for new, old in enumerate(keep)} + need(main_roles(word) <= index.keys(), "every main must survive") + need(all(index[x + 112] == index[x] + 112 for x in word["live"]), "first-plane partners") + for r in retired: + need(net.initial[r] == net.final[r] and net.forms[net.first_output + r] == {~r: 1}, + "isolated retired terminal") + forms = {} + for key, row in net.forms.items(): + if key >= net.first_output: + public = key - net.first_output + if public in retired: + continue + key = net.first_output + index[public] + need(all(d >= 0 or ~d in index for d in row), "a retired entrance still has a reader") + forms[key] = {d if d >= 0 else ~index[~d]: v for d, v in row.items()} + compacted = Network(net.first_output, [net.initial[r] for r in keep], + [net.final[r] for r in keep], net.moves, forms) + compacted.schedule() + hosted = dict(word["hosted"]) + for key in ("X2", "Y2"): + hosted[key] = [index[r] for r in hosted[key]] + layout = dict(public=len(keep), live=[index[r] for r in word["live"]], hosted=hosted, + frames=word["frames"], ports=word["ports"]) + return compacted, layout, keep + + +def construct_candidate(word, source, observer=None): + net = source + mains, retired = main_roles(word), set() + for position, edit in enumerate(read(HERE / "QUOTIENTS.json")): + def check(before, entrance, banks): + if observer: + observer(position, before, entrance, banks) + net = restrict(net, edit, mains, retired, check if observer else None) + retired.add(edit["role"]) + return compact(net, word, retired) + + +def receipt(name, result): + need(json.loads(json.dumps(result)) == read(HERE / "results" / (name + ".json")), + "receipt mismatch " + name) + + +if __name__ == "__main__": + source_word, network = parent() + candidate, metadata, _ = construct_candidate(source_word, network) + sys.stdout.buffer.write(encoded(recoding.layout(metadata, candidate))) diff --git a/research/p104-helper-quotients/results/application.json b/research/p104-helper-quotients/results/application.json new file mode 100644 index 0000000000..9a304f165e --- /dev/null +++ b/research/p104-helper-quotients/results/application.json @@ -0,0 +1,692 @@ +{ + "bracket": [ + "0.00376154487711", + "0.00376154487712" + ], + "caller": { + "calls": 16, + "dyadic_height": 9, + "exact_preproduct_divisions": 153295, + "fixed_caller_paid": { + "1": 384, + "8": 640, + "9": 32, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416 + }, + "fixed_root_targets": { + "9": 416, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "129": 208 + }, + "odd_scale": 2025, + "peak_scaled_mass": "495734175/2", + "peak_witness": [ + 1196, + "stored sum" + ], + "roles": 68, + "root_owners": 3536, + "uses": { + "ADD": 92400, + "IDLE_ODD": 32, + "IDLE_ONE": 3136, + "LAMBDA": 10672, + "QUERY": 384, + "SCALE": 11728, + "SWAP": 240 + } + }, + "claim": "0.00376154487703", + "comparison": { + "assurance": { + "contract": "Exact matching user declarations; mathematical applicability is not verified.", + "inconclusive": "Mixed hinge signs do not establish a power-moment crossing or failure.", + "input_binding": "SHA-256 identifies the exact input bytes read, when loaded by this CLI.", + "scope": "Histogram arithmetic only. Histogram correctness, circuit legality, ownership, phases, precision, supplier admission and compiler endpoints are not validated." + }, + "classification": "uniformly_better", + "contract": { + "ambient_rank": 137, + "boundary": "actual signed caller research candidate with 16 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "delta_paid": { + "1": -112, + "2": -400, + "3": -128, + "4": -368, + "6": -32, + "7": -16, + "8": -16 + }, + "delta_targets": { + "4": -64, + "5": -48, + "6": -336, + "7": -16, + "9": -64 + }, + "hinges": [ + { + "rank": 0, + "value": 0 + }, + { + "rank": 1, + "value": -544 + }, + { + "rank": 2, + "value": -976 + }, + { + "rank": 3, + "value": -1008 + }, + { + "rank": 4, + "value": -912 + }, + { + "rank": 5, + "value": -512 + }, + { + "rank": 6, + "value": -160 + }, + { + "rank": 8, + "value": -64 + }, + { + "rank": 9, + "value": 0 + } + ], + "method_credit": "Classical concave order/majorization; mightyOil's t16-moment-order-audit and its retained predecessors. No new theorem claim.", + "power_moment": { + "exponent": "0 < t < 1", + "new_minus_old_sign": "strictly_negative", + "tariff": "r^t" + }, + "quantity": "(new paid - new targets) - (old paid - old targets)", + "rank_mass": { + "delta": { + "paid": -3200, + "paid_minus_targets": 0, + "targets": -3200 + }, + "new": { + "paid": 268368, + "paid_minus_targets": -1328, + "targets": 269696 + }, + "old": { + "paid": 271568, + "paid_minus_targets": -1328, + "targets": 272896 + } + }, + "schema": "integer-mult-recursive-invoice-comparison/v1", + "signed_net_delta": { + "1": -112, + "2": -400, + "3": -128, + "4": -304, + "5": 48, + "6": 304, + "8": -16, + "9": 64 + }, + "tariff_class": "increasing concave f on nonnegative ranks, with f(0)=0", + "uniform_order": "weak; some concave tariffs can give equality" + }, + "compiler": { + "BIT_margin": "51451229/10000000000000", + "BIT_pin": "376669/100000000", + "H": "14702100000000000000", + "alpha": [ + 0.999999999999986, + 0.999999999999986 + ], + "claim": "376154487703/100000000000000", + "compiler_gap": "1/100000000000000", + "delta": [ + 0.9200415493228975, + 0.9200415493228975 + ], + "derivative_upper": -345270.6380636385, + "gamma": [ + 0.9350939354047383, + 0.9350939354047383 + ], + "input_lift": { + "derivative_upper_on_required_interval": "-2299831290525933154178526076272396899996972093654613095735772838275432653960006518819/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "interval_kappa_cap": "376669/100000000", + "margins": { + "376154487703/100000000000000": [ + "64080485100555962792983621226274629495298406755783729583670864753877551109189/50000000000000000000000000000000000000000000000000000000000000000000000000000000", + "64080485100555962792983621226274629495298406755783729583670864753877551110159/50000000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "37615448771/10000000000000": [ + "2563219404067835931903868746571349042518071830893290743327267150766051326309/2000000000000000000000000000000000000000000000000000000000000000000000000000000", + "25632194040678359319038687465713490425180718308932907433272671507660513263483/20000000000000000000000000000000000000000000000000000000000000000000000000000000" + ] + }, + "source_BIT_wide_crude_bound_would_be": "-2299831290525933154178526076272396899996972093654613095735772838275432653960006518819/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "minimum_log_power": 2308, + "moment_margin_float": { + "11754827741/3125000000000": [ + -3.28740266611955e-09, + -3.28740266611955e-09 + ], + "37615448771/10000000000000": [ + 3.7191330334130723e-09, + 3.7191330334130723e-09 + ], + "376154487711/100000000000000": [ + 2.1586518364668925e-10, + 2.1586518364668925e-10 + ] + }, + "moment_margins": { + "11754827741/3125000000000": [ + "-1284141666452949242801091609373630263684786200456304799855949521867033/390625000000000000000000000000000000000000000000000000000000000000000000000000", + "-20546266663247187884817465749978084218956579207300876797695192347691687/6250000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "37615448771/10000000000000": [ + "2324458145883170267549424926837528184125912209298836002315932667143233/625000000000000000000000000000000000000000000000000000000000000000000000000000", + "23244581458831702675494249268375281841259122092988360023159326673641929/6250000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "376154487711/100000000000000": [ + "10793259182334462756927045727188218747153335241112558496112349382829/50000000000000000000000000000000000000000000000000000000000000000000000000000", + "1349157397791807844615880715898527343394166905139069812014043675020283/6250000000000000000000000000000000000000000000000000000000000000000000000000000" + ] + }, + "outer": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "raw_bracket": [ + "376154487711/100000000000000", + "11754827741/3125000000000" + ], + "tested": "37615448771/10000000000000", + "written_log_power": 2309 + }, + "conditional_interfaces": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ], + "graph_sha256": "16e99893a2c669467ce74f214e8eb5150402f0267aaa8d67aad5d870aa4d5c18", + "invoice": { + "contract": { + "ambient_rank": 137, + "boundary": "actual signed caller research candidate with 16 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "paid": { + "1": 63328, + "16": 416, + "2": 13552, + "24": 416, + "3": 9024, + "32": 416, + "4": 3568, + "40": 416, + "48": 416, + "5": 5904, + "56": 416, + "6": 1536, + "7": 160, + "8": 752, + "9": 96 + }, + "schema": "integer-mult-recursive-invoice/v1", + "targets": { + "1": 288, + "129": 208, + "17": 416, + "2": 336, + "25": 416, + "3": 752, + "33": 416, + "4": 3600, + "41": 416, + "49": 416, + "5": 1168, + "57": 416, + "6": 400, + "65": 416, + "7": 256, + "8": 512, + "9": 10192 + } + }, + "paid": 100416, + "physical": { + "caller_envelope": { + "binary_height_at_all_completed_cuts_and_products": 325, + "binary_height_at_native_entrances": 318, + "normalized_bound_uses_no_cancellation_or_commutation": true, + "records": 4192, + "scaled_mass_at_all_cuts_and_products": "422697641667541055184649383436611894902745135854144098178147008285122975926924780864462653005878076090749928607858304935653611344748944586891405006118422035825340979484130265226717/787320000000000", + "scaled_mass_at_native_entrances": "841540548201148271304709423731170105326708333407364819898222426096105903810343041288214438457604474421941928920227707368470121101079538458948446020268383922323667853993448395617/100776960000000", + "stages": 16, + "uses": { + "ADD": 92400, + "IDLE_ODD": 32, + "IDLE_ONE": 3136, + "LAMBDA": 10672, + "QUERY": 384, + "SCALE": 11728, + "SWAP": 240 + } + }, + "common_root": { + "H_guard": "bit_length(context_c*1920*153**1920*(H+1)**2) < H for each actual compiler bound H", + "caller_odd": 2025, + "context_binary_bits": 338, + "context_c": 1156, + "context_mass_bits": 578, + "context_mass_bound": "416715380036824315219915040298752943399161477078092070307084491794718042593361226125944385604717877581940866507651668746128714124462466602310739864261338974719190990312648547518509658974041/687970713600000", + "exact_grid": "2^(-p-D)", + "native_binary": { + "candidate": 20 + }, + "native_odd": { + "candidate": 2025 + }, + "signed_width": "W=p+h+2D+3", + "temporary_width": "W+26" + }, + "depth_guard": { + "argument_bit_length": 14083, + "compiler_H": 14702100000000000000, + "strict_guard_passed": true + }, + "native": { + "additional_independent_guarded_streams": 4, + "all_public_inputs_preserved_until_final_installs": true, + "checked_nontrivial_divisions": 5060996, + "checked_nontrivial_divisions_by_denominator": { + "2": 2495158, + "3": 70007, + "4": 1753529, + "5": 49268, + "6": 25468, + "8": 429044, + "9": 19, + "10": 6541, + "12": 4364, + "16": 141270, + "20": 15192, + "24": 6706, + "32": 43186, + "40": 640, + "48": 435, + "64": 19769, + "96": 172, + "128": 160, + "192": 58, + "256": 4, + "384": 6 + }, + "coefficient_products": 9657314, + "declared_senders": 1, + "deferred_terminal_banks": 1468, + "exact_all_public_rows": 1468, + "exact_odd_unscale_outputs": 1468, + "fixture_addressed_cells_overwritten": { + "clear_full_sender_after_return": 24216, + "initialize_complete_dirty_home": 35980, + "initialize_empty_sender_before_departure": 24216, + "retire_complete_home": 35980 + }, + "fixture_addressed_cells_per_home": 4, + "guarded_dummy_slots": 1, + "immutable_entry_banks": 1468, + "immutable_paid_return_banks": 6054, + "live_sender_alias_control_rejected": true, + "max_outstanding_native_senders": 1, + "maximum_exact_row_prefix_mass_scaled": "14153739525/8", + "minimum_product_grid": 921600, + "minimum_snapshot_grid": 23040, + "missing_odd_factor_controls": { + "3": { + "coefficient": "-2/3", + "denominator": 3, + "donor": -1441, + "entrance_column": 1440, + "numerator_without_factor": -52428800, + "positive_remainder": 1, + "removed_factor": 81, + "row": 88440 + }, + "5": { + "coefficient": "1/10", + "denominator": 10, + "donor": -1301, + "entrance_column": 1300, + "numerator_without_factor": 84934656, + "positive_remainder": 6, + "removed_factor": 25, + "row": 88808 + } + }, + "native_scalar_scratch_homes": 4, + "numerical_homes": 8995, + "paid_native_ranks": { + "1": 3934, + "2": 847, + "3": 564, + "4": 223, + "5": 369, + "6": 96, + "7": 10, + "8": 7, + "9": 4 + }, + "path_grid": 2123366400, + "path_grid_height": 20, + "path_grid_odd": 2025, + "positive_helper_ranks": { + "1": 18, + "2": 21, + "3": 47, + "4": 225, + "5": 73, + "6": 25, + "7": 16, + "8": 32, + "9": 611 + }, + "positive_path_mass_bound_unscaled": "495181582073/13824", + "positive_path_mass_peak_node": 156119, + "public": 1468, + "retired_and_guards_restored": true, + "same_owner_complete_fixture_outputs": 1468, + "selected_logical_operations": { + "clear_full_sender_after_return": 6054, + "initialize_complete_dirty_home": 8995, + "initialize_empty_sender_before_departure": 6054, + "read_immutable_donor": 175927, + "read_parked_sender": 6054, + "read_terminal_for_same_owner_install": 1468, + "retire_complete_home": 8995, + "stage_full_sender": 6054, + "write_complete_return": 6054, + "write_entrance": 1468, + "write_terminal": 1468 + }, + "separate_guide_tracks": 1, + "slots": 6054, + "terms": 175927, + "trace_sha256": "7492aa20328bfbd960b69ec8ab61ad493ef44fd544bc1cacd8efc863cf43423e", + "tracked_stream_reset_visits": 535303 + }, + "ordinary": { + "additional_full_overwrite_steps_per_reset_L_and_constant": [ + 2, + 3 + ], + "compiled_ordinary_work": "Full-view resets, selects, copies, guide and layout setup and return, exact scalar and odd conversions, matchers, fixed descriptors, root normalization, and all native, caller and child adapters.", + "compiled_stock": "Disjoint occurrence-tagged bank tuples, dummy origins, guides and four guarded streams per stage; complete public owners, matching child views, compiler and BIT workspace, and every parked ancestor.", + "layout": { + "aggregate_owned_tuple_M": "sum_stage[(homes+6)(L'+2)+ell(N_c)+ell(W+26)+max(ell(N_c),ell(W+26),ell(homes))+max(N_c,homes)+max(W+26,ell(homes))+10]", + "complete_view_step_bound": "34*(256(M+352)+128) plus fixed-degree descriptor work", + "guide_setup_and_retirement": "q(N_c)+q(W')+22N_cW'+36N_c+7W'+36+7L'+10; q(x)=24x-7popcount(x)+15ell(x)+12; W'=W+26", + "padded_payload": "L'=N_c(2(W+26)+3)", + "per_stage_selector_and_stream_tracks": 11, + "shadow_cells_upper": "M+352" + }, + "native_numeric_homes": 8995, + "native_numeric_homes_plus_dummy": 8996, + "native_paid_wrappers": 96864, + "native_productive_wrappers": 17088, + "odd_conversions": 54048, + "ordinary_elementary_record_upper": 26240141312, + "ordinary_main_pair_slots": 6400, + "ordinary_map_slots": 276608, + "raw_numeric_homes": 143920, + "raw_numeric_homes_plus_dummy": 143936, + "raw_paid_positions": 100416, + "raw_productive_targets": 20624, + "raw_scalar_incidence_allowance_before_factor_32": { + "complete_array_odd_conversions": 54048, + "literal_native_products_and_accumulations": 2814832, + "private_home_flags_and_cleanup": 143920, + "public_boundary_installations_and_scale_preparations": 46976, + "serial_sender_initialization_and_retirement": 193728, + "weighted_signed_caller_operation_slots": 118592, + "width_padded_native_row_lifecycles": 481408 + }, + "reset_services_all_native_stages": 24056992, + "reset_services_by_kind_per_native": { + "dirty_home_initializations_and_retirements": 17990, + "owner_scale_unscale_stream_initializations_and_retirements": 5872, + "sender_reinitializations_and_retirements": 12108, + "term_and_row_stream_initializations_and_retirements": 1467592 + }, + "reset_services_per_native": 1503562, + "root_negative_q_translations": 3536, + "scalar_services": 123312128, + "scalar_step_rate": 2097152, + "selected_total_steps_per_native_L_and_constant": [ + 240933355140, + 1084764385246 + ], + "selected_total_steps_raw_L_and_constant": [ + 3854933682240, + 17356230163936 + ], + "selector_steps_per_selected_service_L_and_constant": [ + 125939, + 567080 + ], + "separate_guarded_guide_tracks_per_native": 1, + "separate_guarded_guide_tracks_raw": 16, + "separate_guarded_streams_per_native": 4, + "separate_guarded_streams_raw": 64, + "typed_selected_transfer_legs_all_native_stages": 6545504, + "typed_selected_transfers_per_native": 409094, + "typed_transfer_legs_by_kind_per_native": { + "complete_scalar_donor_staging_legs": 351854, + "complete_sender_and_terminal_staging_legs": 15044, + "immutable_entrance_and_public_terminal_install_legs": 5872, + "paid_parked_sender_return_and_adapter_legs": 36324 + } + }, + "partial_clear_control": { + "dirty_unaddressed_last_cell_rejected": true, + "neighbor_unchanged": true + }, + "scalars": { + "coefficient_bits": 13, + "component_padding": 26, + "distinct_scalar_and_conversion_factors": 701, + "rejected_one_tick_denominators": [ + 2, + 3, + 5, + 7 + ], + "retained_max_bits": 24, + "signed_bit_transducer_cases": 4206 + } + }, + "powers": [ + { + "graph": "parent", + "kappa": "0.00374039009048", + "paid_minus_productive": { + "lower": "21056569940474835912050381350317462609887671491455495468646402762269/7237005577332262213973186563042994240829374041602535252466099000494570602496", + "upper": "21056569940474835912050381350317462609887671491455495468646409735773/7237005577332262213973186563042994240829374041602535252466099000494570602496" + } + }, + { + "graph": "candidate", + "kappa": "0.00374039009048", + "paid_minus_productive": { + "lower": "-3352276101566529344104978482430578045392549966786535908230507249454445016561/452312848583266388373324160190187140051835877600158453279131187530910662656", + "upper": "-53636417625064469505679655718889248726280799468584574531688115991271113308169/7237005577332262213973186563042994240829374041602535252466099000494570602496" + } + }, + { + "graph": "candidate", + "kappa": "0.00376154487703", + "paid_minus_productive": { + "lower": "-204387569279217027267346082521694874638907706589082198950096824643285/7237005577332262213973186563042994240829374041602535252466099000494570602496", + "upper": "-25548446159902128408418260315211859329863463323635274868762102171229/904625697166532776746648320380374280103671755200316906558262375061821325312" + } + }, + { + "graph": "candidate", + "kappa": "0.00376154487710", + "paid_minus_productive": { + "lower": "-26915386505651059882455873192235385344039082069475359334769310662759/7237005577332262213973186563042994240829374041602535252466099000494570602496", + "upper": "-26915386505651059882455873192235385344039082069475359334769303380621/7237005577332262213973186563042994240829374041602535252466099000494570602496" + } + }, + { + "graph": "candidate", + "kappa": "0.00376154487711", + "paid_minus_productive": { + "lower": "-195277192250367897607721748048165337515492171394211024496008681885/904625697166532776746648320380374280103671755200316906558262375061821325312", + "upper": "-24409649031295987200965218506020667189436521424276378062000973951/113078212145816597093331040047546785012958969400039613319782796882727665664" + } + }, + { + "graph": "candidate", + "kappa": "0.00376154487712", + "paid_minus_productive": { + "lower": "23790951429644132432384771249536720596097410269015464642295605017809/7237005577332262213973186563042994240829374041602535252466099000494570602496", + "upper": "11895475714822066216192385624768360298048705134507732321147806445843/3618502788666131106986593281521497120414687020801267626233049500247285301248" + } + } + ], + "previous_upper": "0.00374039009048", + "probe": "0.00376154487710", + "productive": 20624, + "removed": { + "paid": { + "1": 112, + "2": 400, + "3": 128, + "4": 368, + "6": 32, + "7": 16, + "8": 16 + }, + "targets": { + "4": 64, + "5": 48, + "6": 336, + "7": 16, + "9": 64 + } + }, + "retained_labels_sha256": "13b52c03ecfd1f90793bcf914d61a774b2837c783c502d2b655aca1956a3a027", + "stages": [ + [ + 1, + 400, + 1068 + ], + [ + 2, + 400, + 1068 + ], + [ + 3, + 400, + 1068 + ], + [ + 4, + 400, + 1068 + ], + [ + 5, + 400, + 1068 + ], + [ + 6, + 400, + 1068 + ], + [ + 7, + 400, + 1068 + ], + [ + 8, + 400, + 1068 + ], + [ + 9, + 400, + 1068 + ], + [ + 10, + 400, + 1068 + ], + [ + 11, + 400, + 1068 + ], + [ + 12, + 400, + 1068 + ], + [ + 13, + 400, + 1068 + ], + [ + 14, + 400, + 1068 + ], + [ + 15, + 400, + 1068 + ], + [ + 16, + 400, + 1068 + ] + ] +} diff --git a/research/p104-helper-quotients/results/catalogue-0.json b/research/p104-helper-quotients/results/catalogue-0.json new file mode 100644 index 0000000000..3f3ef18bfe --- /dev/null +++ b/research/p104-helper-quotients/results/catalogue-0.json @@ -0,0 +1,14 @@ +{ + "checked_pairs": 988, + "contacts": 560, + "contacts_sha256": "48e85c514d93eb66a5690de05819acf9c6c0a6aa7906ff8eb7c55a2e8344f200", + "dense_pair": [ + 0, + 249 + ], + "forward_and_adjoint_columns": 1024, + "ports": 35, + "recipes_sha256": "88b9fbb11ea0210c36dd31b2b389e65589514ec782bcb6332c34b0f95f64a2f6", + "shard": 0, + "total_pairs": 2962 +} diff --git a/research/p104-helper-quotients/results/catalogue-1.json b/research/p104-helper-quotients/results/catalogue-1.json new file mode 100644 index 0000000000..060c3c8e90 --- /dev/null +++ b/research/p104-helper-quotients/results/catalogue-1.json @@ -0,0 +1,14 @@ +{ + "checked_pairs": 987, + "contacts": 560, + "contacts_sha256": "367465c30dcb2c26380faa45f3c25475e07853afb37032fe72516ea7ccb62f40", + "dense_pair": [ + 0, + 250 + ], + "forward_and_adjoint_columns": 1024, + "ports": 35, + "recipes_sha256": "8f94b250169d75e594913af6e5f3a4ea490b95e6adb66dca40e27ae67eaf701a", + "shard": 1, + "total_pairs": 2962 +} diff --git a/research/p104-helper-quotients/results/catalogue-2.json b/research/p104-helper-quotients/results/catalogue-2.json new file mode 100644 index 0000000000..5b25f482e9 --- /dev/null +++ b/research/p104-helper-quotients/results/catalogue-2.json @@ -0,0 +1,14 @@ +{ + "checked_pairs": 987, + "contacts": 544, + "contacts_sha256": "35d2dc786a977215dba2264b899ff1b4f77b8cbb9a88e4b0e30cc658edaf79a8", + "dense_pair": [ + 0, + 251 + ], + "forward_and_adjoint_columns": 1024, + "ports": 34, + "recipes_sha256": "9a7bdb0e14f5f36fb7b64c6037659b6ec29adb0f9d02d8f63221f1c5a8cfa030", + "shard": 2, + "total_pairs": 2962 +} diff --git a/research/p104-helper-quotients/results/witness.json b/research/p104-helper-quotients/results/witness.json new file mode 100644 index 0000000000..52c7e293ba --- /dev/null +++ b/research/p104-helper-quotients/results/witness.json @@ -0,0 +1,516 @@ +{ + "altered_coefficient_rejected": [ + "forward", + "transpose" + ], + "directions": { + "forward": 14, + "transpose": 19 + }, + "records": [ + { + "direction": "forward", + "entrance_terms": 3, + "lost": 9, + "receiver_terms": [ + 3, + 1, + 3 + ], + "role": 264, + "saved": [ + 2, + 4, + 3 + ], + "step": 1 + }, + { + "direction": "forward", + "entrance_terms": 10, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 386, + "saved": [ + 4, + 2 + ], + "step": 2 + }, + { + "direction": "forward", + "entrance_terms": 10, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 412, + "saved": [ + 4, + 2 + ], + "step": 3 + }, + { + "direction": "forward", + "entrance_terms": 12, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 310, + "saved": [ + 4, + 2 + ], + "step": 4 + }, + { + "direction": "forward", + "entrance_terms": 191, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 324, + "saved": [ + 4, + 2 + ], + "step": 5 + }, + { + "direction": "forward", + "entrance_terms": 10, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 327, + "saved": [ + 4, + 2 + ], + "step": 6 + }, + { + "direction": "forward", + "entrance_terms": 186, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 308, + "saved": [ + 4, + 2 + ], + "step": 7 + }, + { + "direction": "forward", + "entrance_terms": 201, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 406, + "saved": [ + 4, + 2 + ], + "step": 8 + }, + { + "direction": "forward", + "entrance_terms": 10, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 326, + "saved": [ + 4, + 2 + ], + "step": 9 + }, + { + "direction": "forward", + "entrance_terms": 8, + "lost": 9, + "receiver_terms": [ + 2, + 1 + ], + "role": 348, + "saved": [ + 8, + 1 + ], + "step": 10 + }, + { + "direction": "forward", + "entrance_terms": 3, + "lost": 7, + "receiver_terms": [ + 1, + 2 + ], + "role": 454, + "saved": [ + 1, + 6 + ], + "step": 11 + }, + { + "direction": "forward", + "entrance_terms": 2, + "lost": 4, + "receiver_terms": [ + 1, + 3 + ], + "role": 259, + "saved": [ + 1, + 3 + ], + "step": 12 + }, + { + "direction": "transpose", + "entrance_terms": 1, + "lost": 9, + "receiver_terms": [ + 2, + 1 + ], + "role": 559, + "saved": [ + 3, + 6 + ], + "step": 13 + }, + { + "direction": "transpose", + "entrance_terms": 48, + "lost": 9, + "receiver_terms": [ + 1, + 3 + ], + "role": 239, + "saved": [ + 7, + 2 + ], + "step": 14 + }, + { + "direction": "transpose", + "entrance_terms": 8, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1404, + "saved": [ + 4, + 2 + ], + "step": 15 + }, + { + "direction": "transpose", + "entrance_terms": 9, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1405, + "saved": [ + 4, + 2 + ], + "step": 16 + }, + { + "direction": "transpose", + "entrance_terms": 1, + "lost": 6, + "receiver_terms": [ + 3, + 1 + ], + "role": 457, + "saved": [ + 2, + 4 + ], + "step": 17 + }, + { + "direction": "transpose", + "entrance_terms": 10, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1407, + "saved": [ + 4, + 2 + ], + "step": 18 + }, + { + "direction": "transpose", + "entrance_terms": 8, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1402, + "saved": [ + 4, + 2 + ], + "step": 19 + }, + { + "direction": "transpose", + "entrance_terms": 6, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1399, + "saved": [ + 4, + 2 + ], + "step": 20 + }, + { + "direction": "transpose", + "entrance_terms": 8, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1395, + "saved": [ + 4, + 2 + ], + "step": 21 + }, + { + "direction": "transpose", + "entrance_terms": 18, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1435, + "saved": [ + 4, + 2 + ], + "step": 22 + }, + { + "direction": "transpose", + "entrance_terms": 11, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1398, + "saved": [ + 4, + 2 + ], + "step": 23 + }, + { + "direction": "transpose", + "entrance_terms": 15, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1436, + "saved": [ + 4, + 2 + ], + "step": 24 + }, + { + "direction": "transpose", + "entrance_terms": 12, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1410, + "saved": [ + 4, + 2 + ], + "step": 25 + }, + { + "direction": "transpose", + "entrance_terms": 11, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1434, + "saved": [ + 4, + 2 + ], + "step": 26 + }, + { + "direction": "transpose", + "entrance_terms": 13, + "lost": 6, + "receiver_terms": [ + 1, + 3 + ], + "role": 1433, + "saved": [ + 4, + 2 + ], + "step": 27 + }, + { + "direction": "transpose", + "entrance_terms": 63, + "lost": 5, + "receiver_terms": [ + 2, + 2 + ], + "role": 1360, + "saved": [ + 2, + 3 + ], + "step": 28 + }, + { + "direction": "transpose", + "entrance_terms": 59, + "lost": 5, + "receiver_terms": [ + 2, + 2 + ], + "role": 1361, + "saved": [ + 2, + 3 + ], + "step": 29 + }, + { + "direction": "transpose", + "entrance_terms": 5, + "lost": 4, + "receiver_terms": [ + 3, + 3 + ], + "role": 651, + "saved": [ + 1, + 3 + ], + "step": 30 + }, + { + "direction": "forward", + "entrance_terms": 6, + "lost": 4, + "receiver_terms": [ + 2, + 1 + ], + "role": 652, + "saved": [ + 3, + 1 + ], + "step": 31 + }, + { + "direction": "transpose", + "entrance_terms": 2, + "lost": 4, + "receiver_terms": [ + 2, + 1 + ], + "role": 831, + "saved": [ + 3, + 1 + ], + "step": 32 + }, + { + "direction": "forward", + "entrance_terms": 337, + "lost": 5, + "receiver_terms": [ + 10, + 2 + ], + "role": 696, + "saved": [ + 4, + 1 + ], + "step": 33 + } + ], + "relations": 67, + "retained_labels_sha256": "13b52c03ecfd1f90793bcf914d61a774b2837c783c502d2b655aca1956a3a027", + "reverse": { + "coefficient_products": 7948543, + "columns": 1468, + "grid": 2123366400 + } +} diff --git a/research/p104-helper-quotients/vendor/binding16.py b/research/p104-helper-quotients/vendor/binding16.py new file mode 100644 index 0000000000..d07341b817 --- /dev/null +++ b/research/p104-helper-quotients/vendor/binding16.py @@ -0,0 +1,280 @@ +"""Complete occurrence and source-bound phase specialization of #7000/#7113. + +The degree-two phase polynomial and translation checks are reused unchanged +from Douglas Colkitt's retained upstream_application.py. See SOURCE-PINS.json. +""" + +from collections import Counter + +from caller16 import literal_layout, require +from upstream_application import boundary, digest, dot, polynomial, sub, terms, translation + + +def route(q, basis, stage, ambient): + native = [q, *basis] + require(len(native) == 9 and all(0 < v < 512 for v in native), + "nine central directions") + require(all(dot(a, b) == (i == j) for i, a in enumerate(native) + for j, b in enumerate(native)), "orthonormal central directions") + fresh = [1 << (9 + 8 * (stage - 1) + j) for j in range(8)] + mask = 511 | sum(fresh) + + def transform(value): + central = value & 511 + out = value & ~mask + if dot(central, q): + out ^= q + for basis_vector, axis in zip(basis, fresh, strict=True): + if dot(central, basis_vector): + out ^= axis + if value & axis: + out ^= basis_vector + return out + + axes = [1 << j for j in range(ambient)] + require(all(transform(transform(a)) == a for a in axes), "full route involution") + require(transform(q) == q, "preserved head direction") + require(all(transform(a) == a for a in axes if not mask & a), "complete spectators") + return transform + + +def contact_phase(q, basis, stage, ambient): + move = route(q, basis, stage, ambient) + before_axes = [1 << j for j in range(9 + 8 * (stage - 1))] + after_axes = [1 << j for j in range(9 + 8 * stage)] + spectator = [1 << j for j in range(9, 9 + 8 * stage)] + x0 = terms((a, 1) for a in before_axes) + y0 = terms([*x0.items(), (q, -1)]) + x1 = terms((a, 1) for a in after_axes) + y1 = terms([*x1.items(), (q, -1)]) + nx0 = terms([(a, 1) for a in spectator] + [(q, 1)]) + ny0 = terms((a, 1) for a in spectator) + nx1 = terms((a, 1) for a in [*spectator, *[1 << j for j in range(9)]]) + ny1 = terms([*nx1.items(), (q, -1)]) + pairs = ((x0, nx0), (y0, ny0), (nx1, x1), (ny1, y1)) + shifts = [boundary(a, b, move) for a, b in pairs] + body = terms((1 << j, 1) for j in range(9 + 8 * (stage - 1), 9 + 8 * stage)) + require(not polynomial(sub(sub(x1, x0), body)) + and not polynomial(sub(sub(y1, y0), body)) + and not polynomial(sub(sub(y1, x0), terms([*body.items(), (q, -1)]))) + and not polynomial(sub(sub(x1, y0), terms([*body.items(), (q, 1)]))), + "all four signed contact operators") + require(polynomial(sub(terms([(q, 1)]), terms([(q, -1)]))), + "query orientation discrimination") + # The two signed head corrections and the Q^2 term of LAMBDA. + require(translation(sub(terms([(q, 1)]), terms([(q, -1)]))) == q + and translation(terms([(q, 2)])) == q, "ordinary head translations") + first_shift = next((i for i, shift in enumerate(shifts) if shift), None) + return shifts, (move, pairs[first_shift]) if first_shift is not None else None + + +def native_inventory(word, helpers): + dimensions = [len(frame) for frame in word["frames"]] + public = word["public"] + owned = {} + lifetimes = [] + moves = [] + paid = Counter() + opcodes = Counter() + live_peak = 0 + for clock, event in enumerate(word["program"]): + op, role, *args = event + opcodes[op] += 1 + if op == "INIT": + require(public <= role < public + word["owned_fields"] and role not in owned, + "fresh owned lifetime") + owned[role] = len(lifetimes) + lifetimes.append([role, clock, args[0], None, None]) + live_peak = max(live_peak, len(owned)) + elif op == "CLEAR": + require(role in owned, "ordered owned retirement") + lifetime = lifetimes[owned.pop(role)] + lifetime[3:] = [clock, args[0]] + elif op == "MOVE": + first, last, is_owned = args + rank = abs(dimensions[last] - dimensions[first]) + require(rank > 0 and is_owned == (role >= public), "positive paid native rank") + require(not is_owned or role in owned, "current private MOVE owner") + moves.append((clock, role, first, last, rank, owned.get(role))) + paid[rank] += 1 + require(not owned and len(lifetimes) == 235 and live_peak == 51, "full 235-lifetime closure") + targets = Counter() + for role in helpers: + rank = dimensions[word["final"][role]] - dimensions[word["initial"][role]] + require(rank > 0, "positive independently owned helper target") + targets[rank] += 1 + return lifetimes, moves, paid, targets, opcodes + + +def complete_binding(word, caller, phases, signed): + stages, types, role_sets = literal_layout(caller, word) + ambient = caller["ambient_rank"] + public = word["public"] + require(public == 1501 and word["owned_fields"] == 68, "exact native public/private header") + ports = word["ports"] + live = word["live"] + h = word["hosted"] + second = dict(zip(h["Dports"], zip(h["X2"], h["Y2"], strict=True), strict=True)) + main = set(live) | {r + 112 for r in live} | set(h["X2"]) | set(h["Y2"]) + helpers = sorted(set(range(public)) - main) + require(len(live) == len(ports) == 104 and len(set(ports)) == 104 + and len(main) == 400 and len(helpers) == 1101, "actual native partition") + special_helpers = (325, 1087) + for role in special_helpers: + pair = [word["initial"][role], word["final"][role]] + require(role in helpers and pair == [3, 237] + and not word["frames"][pair[0]] + and word["frames"][pair[1]] == [30, 75, 138, 266], + "explicit arbitrary-input rank-four helper boundary") + by_q = {row["q"]: row["idle_children"][0]["orthogonal_axes"][:8] + for row in phases["recipes"]} + require(set(ports) <= set(by_q), "every actual port has a pinned phase basis") + for port, (first, q) in enumerate(zip(live, ports, strict=True)): + companion = first + 112 + fin = word["frames"][word["final"][companion]] + require(word["frames"][word["initial"][first]] == [q] + and not word["frames"][word["initial"][companion]] + and word["frames"][word["final"][first]] == [1 << j for j in range(9)] + and len(fin) == 8 and all(dot(q, axis) == 0 for axis in fin), + "actual main source and target charts") + if port in second: + x2, y2 = second[port] + require(all(word[key][a] == word[key][b] + for key in ("initial", "final") + for a, b in ((first, x2), (companion, y2))), + "separate second plane with identical charts") + + lifetime_plan, moves, native_paid, helper_targets, opcodes = native_inventory(word, helpers) + roots = {("main", port, role) for kind, spec in types.items() + for port in spec["ports"] for role in role_sets[kind]} + require(len(roots) == signed["root_owners"] == 3536, "distinct root owner count") + fresh_helpers = set() + paid = Counter() + targets = Counter() + phase_rows = [] + occurrences = [] + owner_maps = [] + phase_fault_rejected = False + signed_idles = 0 + special_owners = [] + for clock, event in enumerate(caller["events"]): + if event[0] == "J": + _, stage, a, b = event + owners = {} + for port, first in enumerate(live): + pair = a[:2] if port in second else b[:2] + first_pair = ((first, pair[0]), (first + 112, pair[1])) + if port in second: + first_pair += tuple(zip(second[port], a[2:], strict=True)) + for slot, role in first_pair: + tag = ("main", port, role) + require(tag in roots and slot not in owners, "injective main assignment") + owners[slot] = tag + shifts, fault = contact_phase(ports[port], by_q[ports[port]], stage, ambient) + phase_rows.append([clock, port, shifts, 2 if port in second else 1]) + if fault and not phase_fault_rejected: + transform, (before, after) = fault + try: + boundary(before, after, transform, omit_translation=True) + except ValueError as exc: + require(str(exc) == "forward contact includes its phase", + "phase control rejection reason") + phase_fault_rejected = True + else: + raise ValueError("omitted contact translation escaped") + require(set(owners) == main and len(set(owners.values())) == 400, + "all source main slots have different physical owners") + for role in helpers: + tag = ("helper", stage, role) + require(tag not in fresh_helpers and tag not in roots, "fresh arbitrary helper") + fresh_helpers.add(tag) + owners[role] = tag + if role in special_helpers: + special_owners.append({ + "tag": tag, "stage": stage, "caller_clock": clock, + "initial_chart": 3, "final_chart": 237, "target_rank": 4, + "exit_ordered_basis": word["frames"][237], + }) + require(set(owners) == set(range(public)) and len(set(owners.values())) == public, + "full public-field injection") + owner_maps.append([stage, sorted(owners.items())]) + for native_clock, role, first, last, rank, owned in moves: + tag = owners[role] if owned is None else ("owned", stage, owned) + require(tag not in roots or owned is None, "private owner separation") + paid[rank] += 1 + occurrences.append([clock, native_clock, tag, rank, first, last]) + targets.update(helper_targets) + continue + + kind, op, role, *args = event + if op not in {"QUERY", "IDLE_ONE", "IDLE_ODD"}: + continue + if op == "QUERY": + rank = 1 + else: + rank = 8 * len(args[0]) + int(op == "IDLE_ODD") + for port in types[kind]["ports"]: + tag = ("query_scratch", clock, port) if op == "QUERY" else ("main", port, role) + require((tag not in roots) if op == "QUERY" else tag in roots, "caller paid owner") + occurrences.append([clock, op, tag, rank]) + paid[rank] += 1 + signed_idles += int(op == "IDLE_ODD") + require(len(owner_maps) == stages and len(fresh_helpers) == 17616 and phase_fault_rejected, + "complete 16-call owners and phase control") + require(len(special_owners) == len({row["tag"] for row in special_owners}) == 32, + "distinct stage-tagged arbitrary helper 325 and 1087 ingress/egress") + root_targets = Counter() + root_negative = 0 + for kind, spec in types.items(): + for phase, coeff_phase, *selection in spec["diagonal"]: + require(coeff_phase == 0 and any(selection), "whole positive target endpoint") + for port in spec["ports"]: + q = ports[port] + axes = [1 << (9 + 8 * j + offset) for j, yes in enumerate(selection) + if yes for offset in range(8)] + require(len(axes) == len(set(axes)) and all(a < 1 << ambient for a in axes), + "positive target complete distinct axes") + actual = terms([(q, phase)] + [(axis, 1) for axis in axes]) + positive = terms((a, 1) for a in ([q] if phase else []) + axes) + require(translation(sub(positive, actual)) == (q if phase == -1 else 0), + "exact negative root translation") + root_targets[len(axes) + int(bool(phase))] += 1 + root_negative += int(phase < 0) + targets.update(root_targets) + references = Counter({rank: stages * count for rank, count in native_paid.items()}) + references.update(signed["fixed_caller_paid"]) + require(paid == references and root_targets == Counter(signed["fixed_root_targets"]), + "independent decomposition and occurrence invoices agree") + require(len(occurrences) == sum(paid.values()) and sum(targets.values()) == 21152, + "complete paid and productive owner count") + contacts = sum(4 * row[3] for row in phase_rows) + nonzero = sum(row[3] * sum(bool(v) for v in row[2]) for row in phase_rows) + require(contacts == nonzero == 12800, "all 12,800 absolute phase translations charged") + return { + "ambient": ambient, + "calls": stages, + "native_public": public, + "main_per_native": len(main), + "fresh_helpers": len(fresh_helpers), + "role_325_and_1087_helper_owners": special_owners, + "root_owners": len(roots), + "productive_fields": sum(targets.values()), + "paid_positions": len(occurrences), + "native_paid": dict(native_paid), + "native_targets": dict(helper_targets), + "paid": dict(paid), + "targets": dict(targets), + "phase_digest": digest(phase_rows), + "owner_map_digest": digest(owner_maps), + "ordered_paid_digest": digest(occurrences), + "contacts": contacts, + "nonzero_contact_translations": nonzero, + "phase_omission_rejected": phase_fault_rejected, + "signed_idle_ordinary_corrections": signed_idles, + "negative_root_ordinary_corrections": root_negative, + "owned_lifetimes_per_native": len(lifetime_plan), + "owned_lifetime_plan_digest": digest(lifetime_plan), + "owned_fresh_homes_per_raw_caller": stages * len(lifetime_plan), + "owned_resets_per_raw_caller": 2 * stages * len(lifetime_plan), + "native_opcodes": dict(opcodes), + } diff --git a/research/p104-helper-quotients/vendor/caller16.py b/research/p104-helper-quotients/vendor/caller16.py new file mode 100644 index 0000000000..2865530b78 --- /dev/null +++ b/research/p104-helper-quotients/vendor/caller16.py @@ -0,0 +1,182 @@ +"""Exact signed caller replay, adapted from Ali Romman's #7663 caller.py. + +See SOURCE-PINS.json for Rohan Arun's literal #7113-derived caller and +the attributed reference engines. Apache-2.0. +""" + +from collections import Counter +from fractions import Fraction +from functools import cache + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def exact_div(numerator, denominator): + quotient, remainder = divmod(numerator, denominator) + require(remainder == 0, "inexact caller pre-product") + return quotient + + +def literal_layout(caller, word): + stages = caller["stages"] + require(stages == 16 and caller["ambient_rank"] == 9 + 8 * stages == 137, + "literal 16-call, 137-axis layout") + require(len(caller["events"]) == 4192, "literal caller event count") + types = caller["types"] + require(set(types) == {"A", "B"}, "literal type partition") + require(all(spec["roles"] == 34 for spec in types.values()), "literal 34+34 roles") + require(types["A"]["ports"] == word["hosted"]["Dports"], "hosted port assignment") + require((len(types["A"]["ports"]), len(types["B"]["ports"])) == (96, 8), + "literal 96+8 ports") + require(sorted(types["A"]["ports"] + types["B"]["ports"]) == list(range(104)), + "disjoint complete 104-port assignment") + role_sets = { + kind: set(range(spec["offset"], spec["offset"] + spec["roles"])) + for kind, spec in types.items() + } + require(role_sets["A"].isdisjoint(role_sets["B"]) + and role_sets["A"] | role_sets["B"] == set(range(caller["roles"])), + "disjoint complete root role ranges") + h = word["hosted"] + coefficients = tuple(Fraction(h[k]) for k in ("alpha", "beta", "alpha2", "beta2")) + require(coefficients == (-1, Fraction(1, 2), -1, 0), "joint normalized source coefficients") + require(Fraction(types["A"]["alpha2"]) == coefficients[2], "A second-plane coefficient") + return stages, types, role_sets + + +def signed_caller(caller, word, odd_scale, dyadic_height): + stages, types, role_sets = literal_layout(caller, word) + unit = odd_scale << dyadic_height + zero = (0,) * stages + rows = [{(r, 0, zero): (unit, 0)} for r in range(caller["roles"])] + paid = Counter() + targets = Counter() + uses = Counter() + calls = [] + checks = 0 + peak = unit + peak_at = (-1, "entrance") + clock = -1 + + def observe(row, site): + nonlocal peak, peak_at + mass = sum(abs(real) + abs(imag) for real, imag in row.values()) + if mass > peak: + peak, peak_at = mass, (clock, site) + + @cache + def shifted(exponents, shift): + result = list(exponents) + for stage in shift: + result[stage - 1] += 1 + return tuple(result) + + def term(row, ar=1, ai=0, denominator=1, phase=0, shift=()): + nonlocal checks + out = {} + for (role, q, powers), (x, y) in row.items(): + real, imag = ar * x - ai * y, ar * y + ai * x + if denominator != 1: + real, imag = exact_div(real, denominator), exact_div(imag, denominator) + checks += 1 + if real or imag: + key = (role, (q + phase) % 4, shifted(powers, shift) if shift else powers) + out[key] = (real, imag) + observe(out, "scaled separate term") + return out + + def add(a, b): + out = a.copy() + for key, (u, v) in b.items(): + x, y = out.get(key, (0, 0)) + if x + u or y + v: + out[key] = (x + u, y + v) + else: + out.pop(key, None) + observe(out, "stored sum") + return out + + for clock, event in enumerate(caller["events"]): + kind = event[0] + if kind == "J": + _, stage, (x, y, u, v), (a, b, alpha, beta) = event + require(stage == len(calls) + 1, "chronological joint occurrences") + require(Fraction(alpha) == -1 and Fraction(beta) == Fraction(1, 2), + "literal joint coefficients") + require(len({x, y, u, v}) == 4 and {x, y, u, v} <= role_sets["A"] + and a != b and {a, b} <= role_sets["B"], "joint owner alias") + calls.append(stage) + rows[y] = add(rows[y], term(rows[x], phase=-1)) + rows[u] = add(rows[u], term(rows[v], -1, phase=1)) + first, second = rows[a], rows[b] + rows[a] = add(first, term(second, -1, phase=1)) + rows[b] = add(term(second, denominator=2), + term(first, denominator=2, phase=-1)) + for role in (x, y, u, v, a, b): + rows[role] = term(rows[role], shift=(stage,)) + continue + + _, op, role, *args = event + require(kind in role_sets and role in role_sets[kind], "caller target owner") + replicas = len(types[kind]["ports"]) + uses[op] += replicas + if op in {"ADD", "SWAP", "QUERY"}: + require(args[0] in role_sets[kind] and args[0] != role, "caller donor owner") + if op == "SWAP": + other, = args + rows[role], rows[other] = rows[other], rows[role] + elif op == "QUERY": + donor, sign = args + require(sign in (-1, 1), "caller query orientation") + rows[role] = add(rows[role], term(rows[donor], phase=sign)) + paid[1] += replicas + elif op in {"ADD", "SCALE"}: + factor = Fraction(args[-1]) + donor = args[0] if op == "ADD" else role + contribution = term(rows[donor], factor.numerator, denominator=factor.denominator) + rows[role] = add(rows[role], contribution) if op == "ADD" else contribution + elif op == "LAMBDA": + sign, = args + require(sign in (-1, 1), "caller LAMBDA sign") + old = rows[role] + rows[role] = add(term(old, 1, sign, 2), term(old, 1, -sign, 2, phase=2)) + else: + require(op in {"IDLE_ONE", "IDLE_ODD"}, "known caller operation") + block = tuple(args[0]) + require(block and len(block) == len(set(block)) + and all(1 <= k <= stages for k in block), "whole idle stage subset") + if op == "IDLE_ODD": + require(len(args) == 2 and len(block) == 1 and args[1] == -1, + "literal signed rank-nine child") + else: + require(len(args) == 1, "literal unit idle") + phase = args[1] if op == "IDLE_ODD" else 0 + rows[role] = term(rows[role], phase=phase, shift=block) + paid[8 * len(block) + phase % 2] += replicas + + require(calls == list(range(1, stages + 1)), "all 16 native invocations") + for spec in types.values(): + require(len(spec["diagonal"]) == spec["roles"], "complete diagonal") + for off, (phase, coefficient_phase, *powers) in enumerate(spec["diagonal"]): + role = spec["offset"] + off + require(phase in (-1, 0, 1) and coefficient_phase == 0 and len(powers) == stages + and set(powers) <= {0, 1} and any(powers), "positive whole root target") + require(rows[role] == {(role, phase % 4, tuple(powers)): (unit, 0)}, + "exact signed root endpoint") + targets[8 * sum(powers) + phase % 2] += len(spec["ports"]) + return { + "fixed_caller_paid": dict(paid), + "fixed_root_targets": dict(targets), + "uses": dict(uses), + "calls": stages, + "roles": len(rows), + "root_owners": sum(targets.values()), + "dyadic_height": dyadic_height, + "odd_scale": odd_scale, + "peak_scaled_mass": str(Fraction(peak, 1 << dyadic_height)), + "peak_witness": peak_at, + "exact_preproduct_divisions": checks, + } diff --git a/research/p104-helper-quotients/vendor/construct.py b/research/p104-helper-quotients/vendor/construct.py new file mode 100644 index 0000000000..25115bba74 --- /dev/null +++ b/research/p104-helper-quotients/vendor/construct.py @@ -0,0 +1,277 @@ +#!/usr/bin/env python3 +"""Rebuild the exact banked #7700 graph and its role-1256 relay contraction.""" + +import argparse +from dataclasses import dataclass +from fractions import Fraction +from functools import cache +from graphlib import TopologicalSorter +import gzip +from hashlib import sha256 +import json +from pathlib import Path + + +HERE = Path(__file__).resolve().parent +DATA = HERE / "data" +SOURCE_HEAD = "7d84799a447867d36137d12ef7ca5646154d763c" +WORD = "ae62d5d8bef6f7146454b4b3643e487a58380c606a16c5baef7bf0dcf9df1472" +CERTS = "39ef28b708cd8bf1166b111d656809407b370dd11cd81a8e43820779f995aca3" +CALLER = "62d94fb992acab0a71c3d12f22be4ce63f4f65e5cbe3f420b93aa1393ffa8dcf" +DONOR_HEAD = "28b2af322a1fab01b3734365988930920f9dda48" +PARENT = "72705b094d83d2ba24006661bbb031786a691b776bedb94515b1321e1535105f" +CHILD = "8e7b755bd2d2d387bc3d3adfe48100985adf74775ca5acbb143170a3d16b5ccf" +PINS = { + "WORD.json.gz": ("50c1facfc5626c060560e2f354b71bd92d0bb1c1e853b2aad72abcbaaa5328a5", WORD), + "CERTS.json": (CERTS, CERTS), + "CALLER.json.gz": ("d889996a337f648087208ab51c98eaf052705d4fca88b5d01b6e9257a829897a", CALLER), + "PARENT-GRAPH.json.gz": ("c86288cddb4b80af3c8128c9a0d2f7a1e82bae64c5152a0d96a19d166afaab1d", PARENT), + "CANDIDATE-GRAPH.json.gz": ("0177c25371181e3b1f2c13325eb8434fbf6384a9ab99a612849efd5d0f6ab2cc", CHILD), +} +REMOVE = 95828 +KEEP = 104442 +ROLE = 1256 +START, RELAY, END = (476, 878, 127) + + +def need(condition, message): + if not condition: + raise ValueError(message) + + +def canonical(value): + return json.dumps(value, sort_keys=True, separators=(",", ":")).encode() + + +def digest(raw): + return sha256(raw).hexdigest() + + +def read(name): + path = DATA / name + packed = path.read_bytes() + packed_sha, raw_sha = PINS[name] + need(digest(packed) == packed_sha, f"transport hash of {name}") + raw = gzip.decompress(packed) if path.suffix == ".gz" else packed + need(digest(raw) == raw_sha, f"decoded hash of {name}") + return raw + + +@cache +def rational(literal): + number = Fraction(literal) + need(number and str(number) == literal, "reduced nonzero rational literal") + return number + + +def accumulate(row, source, factor): + for token, value in source.items(): + total = row.get(token, 0) + factor * value + if total: + row[token] = total + else: + row.pop(token, None) + + +@dataclass +class Graph: + """Every paid result is a distinct stable token. Terminals are never donors.""" + + first: int + initial: list + final: list + moves: dict + forms: dict + + def schedule(self): + terminals = set(range(self.first, self.first + len(self.final))) + need(self.forms.keys() == terminals | self.moves.keys(), "complete paid and public forms") + dependencies = {} + for key in sorted(self.forms): + source = self.moves[key][0] if key in self.moves else self.final[key - self.first] + dependencies[key] = [] + for donor in sorted(self.forms[key]): + if donor >= 0: + need(donor in self.moves and self.moves[donor][1] == source, + f"same ordered chart for paid donor at {key}") + dependencies[key].append(donor) + else: + role = ~donor + need(0 <= role < len(self.initial) and self.initial[role] == source, + f"same ordered chart for input donor at {key}") + return list(TopologicalSorter(dependencies).static_order()) + + def transpose(self): + def reverse(node): + if node < 0: + return self.first + ~node + if node >= self.first: + return ~(node - self.first) + return node + + rows = {key: {} for key in self.moves} + rows.update({self.first + r: {} for r in range(len(self.initial))}) + for key, row in self.forms.items(): + for donor, weight in row.items(): + rows[reverse(donor)][reverse(key)] = weight + return Graph(self.first, self.final, self.initial, + {key: (b, a) for key, (a, b) in self.moves.items()}, rows) + + +@dataclass +class Clear: + clock: int + role: int + chart: int + born: int + left: dict + right: dict + sources: list + + +def raw_fold(word, certificates): + """Apply the attributed #7674 folding rule and capture both CLEAR sides.""" + n = word["public"] + start, end, program = word["initial"], word["final"], word["program"] + first = len(program) + capacity = n + word["owned_fields"] + need(n == len(start) == len(end) == 1501 and first == 154768 and capacity == 1569, + "exact raw denominator") + rows = [{~r: Fraction(1)} for r in range(n)] + [None] * word["owned_fields"] + charts = start[:] + [None] * word["owned_fields"] + active, moves, forms, raw_moves = {}, {}, {}, {} + witnesses = [] + peak = 0 + for clock, event in enumerate(program): + op, role, *args = event + need(type(role) is int and 0 <= role < capacity, "literal raw owner label") + if op == "INIT": + need(n <= role and role not in active and rows[role] is None, "new private owner") + need(0 <= args[0] < len(word["frames"]), "valid INIT chart") + charts[role] = args[0] + rows[role] = {} + active[role] = clock + peak = max(peak, len(active)) + continue + row = rows[role] + need(row is not None, "current live field") + if op == "MOVE": + a, b, owned = args + need(type(owned) is bool and owned == (role >= n) and a == charts[role] + and 0 <= b < len(word["frames"]), "literal owner and MOVE charts") + moves[clock], forms[clock] = (a, b), row + raw_moves[clock] = [role, a, b, owned, active.get(role)] + charts[role], rows[role] = b, {clock: Fraction(1)} + continue + need(charts[role] == args[-1], "literal scalar chart") + if op == "CLEAR": + need(role in active and str(clock) in certificates, f"certified private retirement {clock}") + relation = {} + sources = [] + for label, literal in sorted(certificates[str(clock)].items(), key=lambda item: int(item[0])): + field = int(label) + need(0 <= field < capacity and field != role and rows[field] is not None, + f"other live CLEAR witness source at {clock}") + factor = rational(literal) + accumulate(relation, rows[field], factor) + sources.append([field, charts[field], str(factor)]) + witnesses.append(Clear(clock, role, charts[role], active.pop(role), row, relation, sources)) + charts[role], rows[role] = None, None + elif op == "SCALE": + factor = rational(args[0]) + rows[role] = {token: coefficient * factor for token, coefficient in row.items()} + else: + donor, literal, _ = args + need(op == "ADD" and 0 <= donor < capacity and donor != role + and rows[donor] is not None and charts[donor] == charts[role], "other cocharted ADD") + accumulate(row, rows[donor], rational(literal)) + need(charts[:n] == end and all(value is None for value in charts[n:]) and not active, + "same public exit and complete private retirement") + need(peak == 51 and len(moves) == 6144 and len(witnesses) == len(certificates) == 235, + "complete native MOVE and CLEAR custody") + forms.update({first + r: rows[r] for r in range(n)}) + return Graph(first, start, end, moves, forms), witnesses, raw_moves + + +def span(basis): + values = {0} + for axis in basis: + need(type(axis) is int and 0 < axis < 512 and axis not in values, + "independent binary ordered chart") + values |= {axis ^ value for value in values} + return values + + +def contract(source, atlas, witnesses, raw_moves): + a, c, b = START, RELAY, END + need(raw_moves[REMOVE] == [ROLE,a,c,False,None] and raw_moves[KEEP] == [ROLE,c,b,False,None], + "literal route anchors and owner") + need(source.moves[REMOVE] == (a,c) and source.moves[KEEP] == (c,b) + and source.forms[KEEP] == {REMOVE: Fraction(1)}, "pure relay at the anchored paid reader") + readers = [key for key,row in source.forms.items() if REMOVE in row] + need(readers == [KEEP] and all(REMOVE not in clear.left and REMOVE not in clear.right for clear in witnesses), + "sole reader and no original CLEAR incidence") + basis_a,basis_c,basis_b = (atlas[x] for x in (a,c,b)) + need(span(basis_a) < span(basis_c) < span(basis_b) + and tuple(map(len,(basis_a,basis_c,basis_b))) == (3,6,9), "positive 3+3→6 chart nesting") + marks = { + "remove":REMOVE,"keep":KEEP,"charts":[a,c,b],"ranks":[3,3,6],"scale":"1", + "removed_raw_move":raw_moves[REMOVE],"surviving_raw_move_before":raw_moves[KEEP], + "direct_pair_already_paid":(a,b) in source.moves.values(), + "all_readers_of_removed":readers,"raw_clear_use_of_removed":False, + } + forms,moves = dict(source.forms),dict(source.moves) + forms[KEEP] = forms.pop(REMOVE) + del moves[REMOVE] + moves[KEEP] = (a,b) + return Graph(source.first,source.initial,source.final,moves,forms),marks + + +def serialized(graph, frames, kind, **extra): + metadata = { + "schema":"p104-exact-banked-dag/v1","kind":kind,"source_pr":7700,"source_pr_head":SOURCE_HEAD, + "source_word_sha256":WORD,"caller_sha256":CALLER, + "source_clear_certificates_sha256":CERTS,"reference_bank_head":DONOR_HEAD,**extra, + } + return canonical({ + "metadata":metadata,"frames":frames,"initial":graph.initial,"final":graph.final, + "first_output":graph.first,"moves":[[key,*route] for key,route in sorted(graph.moves.items())], + "forms":[[key,[[token,str(value)] for token,value in sorted(row.items())]] + for key,row in sorted(graph.forms.items())], + "schedule":graph.schedule(), + }) + + +def rebuild(): + word = json.loads(read("WORD.json.gz")) + certs = json.loads(read("CERTS.json")) + caller = json.loads(read("CALLER.json.gz")) + need(certs["candidate_canonical_sha256"] == WORD and caller["stages"] == 16 + and caller["ambient_rank"] == 137, "literal source and signed caller binding") + certificates = certs["clear_event_index"] + parent,witnesses,raw_moves = raw_fold(word,certificates) + child,mark = contract(parent,word["frames"],witnesses,raw_moves) + graphs = { + "PARENT-GRAPH.json.gz":serialized(parent,word["frames"],"parent"), + "CANDIDATE-GRAPH.json.gz":serialized(child,word["frames"],"candidate", + source_banked_graph_sha256=PARENT,paid_relay=mark), + } + for name,raw in graphs.items(): + need(raw == read(name), f"deterministic reconstruction of decoded {name}") + return word,certificates,parent,child,witnesses,mark,graphs + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--out-dir", type=Path, help="Optional directory for regenerated gzip artifacts") + args = parser.parse_args() + *_,graphs = rebuild() + if args.out_dir: + for name,raw in graphs.items(): + with (args.out_dir/name).open("xb") as stream: + stream.write(gzip.compress(raw,mtime=0)) + print("PASS_CF6A_REBUILD", PARENT, CHILD) + + +if __name__=="__main__": + main() diff --git a/research/p104-helper-quotients/vendor/interval_gate.py b/research/p104-helper-quotients/vendor/interval_gate.py new file mode 100644 index 0000000000..e24dc46079 --- /dev/null +++ b/research/p104-helper-quotients/vendor/interval_gate.py @@ -0,0 +1,128 @@ +#!/usr/bin/env python3 +"""Independent certified fixed-grid intervals (80 decimal places). +ln via 2 atanh after binary range reduction; exp(-x) via alternating +Taylor brackets. Uses only integer floor/ceiling, not Decimal transcendents. +""" +from fractions import Fraction as F +from functools import lru_cache +from pathlib import Path +import json,argparse +if not __debug__: raise RuntimeError('Run without -O; assertions are proof checks.') +B=10**80 + +def ceildiv(a,b):return -((-a)//b) +def exact(q): + q=F(q);return q.numerator*B//q.denominator,ceildiv(q.numerator*B,q.denominator) +def add(a,b):return a[0]+b[0],a[1]+b[1] +def sub(a,b):return a[0]-b[1],a[1]-b[0] +def mul(a,b): + p=[a[i]*b[j] for i in (0,1) for j in (0,1)];return min(p)//B,ceildiv(max(p),B) +def div(a,b): + assert b[0]>0 + p=[F(a[i]*B,b[j]) for i in (0,1) for j in (0,1)] + return min(p).__floor__(),max(p).__ceil__() +def smul(a,q):return mul(a,exact(q)) +def atanh_log(y): + yi=exact(y);yy=mul(yi,yi);p=yi;s=(0,0) + for j in range(100):s=add(s,smul(p,F(2,2*j+1)));p=mul(p,yy) + # 0 <= tail <= 2 y^201/[201(1-y^2)] < 3*(1/3)^201. + return s[0],s[1]+ceildiv(3*B,3**201) +@lru_cache(None) +def log(r): + assert r>=1 + k=r.bit_length()-1;y=F(r-2**k,r+2**k) + a=atanh_log(y);b=atanh_log(F(1,3));return add(a,smul(b,k)) +def expminus(x): + assert 0<=x[0]<=x[1]0 and margins[str(hi)][1]<0 and margins[str(tested)][0]>0 + target=moment(T,tested);paid=moment(P,tested) + alpha=div(paid,target) + # Tail exponent = 1-tested+1/7; argument exp may not be negative. + # r^(1-tested+1/7)=r^(1-tested)* exp(log(r)/7). + def exppos(x): + assert 0<=x[0]<=x[1]0 and gap.numerator==1;step=gap.denominator + wins=lambda j:(step*j+1)**written<2**j + l,h=1,2 + while not wins(h):l,h=h,2*h + while h-l>1: + m=(l+h)//2 + if wins(m):h=m + else:l=m + assert wins(h) and not wins(h-1) + # Monotonicity: upper derivative bound on [0, cap]. + derivative=(0,0) + for rr in T.keys()|P.keys(): + c=T.get(rr,0)-P.get(rr,0);r=int(rr) + term=mul(power(r,cap if c>=0 else 0),log(r));derivative=add(derivative,smul(term,-c)) + assert derivative[1]<0 + result=dict(claim=str(claim),tested=str(tested),raw_bracket=[str(lo),str(hi)],moment_margins={k:show(v) for k,v in margins.items()},moment_margin_float={k:value(v) for k,v in margins.items()},derivative_upper=float(F(derivative[1],B)),alpha=value(alpha),gamma=value(gamma),delta=value(delta),minimum_log_power=lp,written_log_power=written,compiler_gap=str(gap),H=str(step*h),BIT_pin=str(cap),BIT_margin=str(cap-tested)) + # Outer formulas evaluated independently after algebraically substituting + # b=k+5g,a=k+4g,q=k+3g,epsilon=1-g,beta=1-3g. + k=claim;g=gap;b=k+5*g;a=k+4*g;q=k+3*g;ep=1-g;be=1-3*g;r0=g/10;stop=layout=g + sig=1-b;tau=1-a;internal=tau+(1-stop)*max(sig-tau,0);leaf=sig+stop*(1-sig);lam=1-(q+a)/2;xi=ep*(1+q)-F(3,32)+layout;key=be+1-ep + M=[ep*q,a,1-ep+q*be,1-ep+a*be,1-ep+be,F(3,32)+xi-ep,xi+F(1,2)-ep,ep,1-(ep+be+48-128+2)] + checks=[cap-a,b-a,q,b-q,a-q,stop,1-stop,(1-stop)*b-a,1-internal-q,1-leaf-q,lam-tau,lam-sig,lam-internal,1-q-lam,1-q-leaf,ep,1-ep,xi-F(1,2),ep-xi,be,ep-be,1-be,1-(2*xi-2)-r0-be,1-(2*xi-2)-be,1-ep-r0,1-ep,r0,1-key,1-be-2*(1-ep),128-48-be,layout,ep-a,F(1,32)-b,F(2**45-7**16),F(2),2-xi,F(5),1-be,1-be,1-ep,M[2]-M[0],g,k-F('.001730970419199163702738'),1-ep,F(11,2)]+[x-k for x in M] + functional=[1-be,be*(1-F(3,1000)),128-48-ep-be-1,be*(1-F(1,250))] + assert len(checks)==54 and len(functional)==4 and min(checks+functional)>0 + result['outer']=dict(strict_count=54,functional_count=4,minimum_margin=str(min(checks+functional)),BIT_just_below_effective_rejected=(a-F(1,10**12))-a<0) + # Input-lift is only needed on [1-tested_complex,1]. A stronger BIT + # pin is irrelevant to this interval; the source's crude BIT-wide bound + # is not imported beyond its valid range. + pos={7:1,3:1,5:1};neg={9:1,4:1,1:2};d1=(0,0);curvature=(0,0) + for hist,sign in ((pos,1),(neg,-1)): + for r,c in hist.items(): + d1=add(d1,smul(log(r),sign*c*r)) + curvature=add(curvature,smul(mul(log(r),log(r)),c*r)) + lift_cap=cap if cap<=F('.00376669') else tested + assert tested<=lift_cap and F(d1[1],B)+lift_cap*F(curvature[1],B)<0 + lifts={} + for price in (claim,tested): + lift=sub(moment(pos,price),moment(neg,price));assert lift[0]>0 + assert price*(-F(d1[1],B))-price*price*F(curvature[1],B)/2>0 + lifts[str(price)]=show(lift) + result['input_lift']=dict(margins=lifts,interval_kappa_cap=str(lift_cap),derivative_upper_on_required_interval=str(F(d1[1],B)+lift_cap*F(curvature[1],B)),source_BIT_wide_crude_bound_would_be=str(F(d1[1],B)+cap*F(curvature[1],B))) + return result +if __name__=='__main__': + p=argparse.ArgumentParser();p.add_argument('audit');p.add_argument('--claim',default='.00362852408');p.add_argument('--tested',default='.00362852408007');p.add_argument('--lower',default='.00362852408398727978896072723289');p.add_argument('--upper',default='.00362852408398727978896072723290');p.add_argument('--out',required=True);p.add_argument('--bit-pin',default='.00376669');a=p.parse_args() + r=gate(json.loads(Path(a.audit).read_text())['invoice'],a.claim,a.tested,a.lower,a.upper,a.bit_pin);Path(a.out).write_text(json.dumps(r,indent=2)+'\n');print(json.dumps(r,indent=2)) diff --git a/research/p104-helper-quotients/vendor/network.py b/research/p104-helper-quotients/vendor/network.py new file mode 100644 index 0000000000..0ebc1925c4 --- /dev/null +++ b/research/p104-helper-quotients/vendor/network.py @@ -0,0 +1,217 @@ +"""Construct the communication circuit and apply the rational pivots.""" +from dataclasses import dataclass +from fractions import Fraction +from functools import cache +from graphlib import TopologicalSorter +from hashlib import sha1, sha256 +from pathlib import Path +import gzip +import json + +HERE = Path(__file__).resolve().parent +PARENT = "ee251f6005d2a92b887c5b804bd7aac05989d278b2c9ccb3c3091b50d533b08d" + + +def need(condition, message): + if not condition: + raise ValueError(message) + + +def encoded(value): + return json.dumps(value, sort_keys=True, separators=(",", ":")).encode() + + +def read(path): + raw = path.read_bytes() + return json.loads(gzip.decompress(raw) if path.suffix == ".gz" else raw) + + +def source_word(): + for pin in read(HERE / "SOURCE-PINS.json"): + raw = (HERE / pin["file"]).read_bytes() + need(sha256(raw).hexdigest() == pin["sha256"], "source SHA-256") + need(sha1(f"blob {len(raw)}\0".encode() + raw).hexdigest() == pin["git_blob"], "source Git blob") + base = read(HERE / "source/K372-2-WORD.json.gz") + patch = read(HERE / "source/source-edits.json") + need(sha256(encoded(base)).hexdigest() == patch["source"], "source edit origin") + result = [] + cursor = 0 + for edit in patch["edits"]: + start, stop = edit["start"], edit["stop"] + need(cursor <= start <= stop <= len(base["program"]), "source edit range") + need(base["program"][start:stop] == edit["before"], "source edit preimage") + result.extend(base["program"][cursor:start]) + result.extend(edit["after"]) + cursor = stop + result.extend(base["program"][cursor:]) + word = dict(base, program=result) + need(sha256(encoded(word)).hexdigest() == patch["candidate"] == PARENT, "parent word") + return word + + +def main_roles(word): + h = word["hosted"] + return set(word["live"]) | {i + 112 for i in word["live"]} | set(h["X2"]) | set(h["Y2"]) + + +@cache +def rational(literal): + return Fraction(literal) + + +def add_scaled(row, donor, factor): + for index, value in donor.items(): + new = row.get(index, 0) + factor * value + if new: + row[index] = new + else: + row.pop(index, None) + + +@dataclass +class Network: + first_output: int + initial: list + final: list + moves: dict + forms: dict + + def schedule(self): + for node, form in self.forms.items(): + chart = self.moves[node][0] if node < self.first_output else self.final[node - self.first_output] + for donor in form: + if donor < 0: + need(0 <= ~donor < len(self.initial), "input owner") + donor_chart = self.initial[~donor] + else: + need(donor in self.moves, "missing donor") + donor_chart = self.moves[donor][1] + need(donor_chart == chart, "nonlocal scalar") + need(set(self.forms) == self.moves.keys() | set(range(self.first_output, self.first_output + len(self.final))), + "output inventory") + dependencies = {node: sorted(i for i in self.forms[node] if i >= 0) for node in sorted(self.forms)} + return list(TopologicalSorter(dependencies).static_order()) + + def transpose(self): + def reverse(node): + if node < 0: + return self.first_output + ~node + if node >= self.first_output: + return ~(node - self.first_output) + return node + + edges = {k: {} for k in self.moves} + edges.update({self.first_output + r: {} for r in range(len(self.initial))}) + for node, form in self.forms.items(): + for donor, coefficient in form.items(): + edges[reverse(donor)][reverse(node)] = coefficient + moves = {k: (b, a) for k, (a, b) in self.moves.items()} + return Network(self.first_output, self.final, self.initial, moves, edges) + + +def fold(word): + n = word["public"] + rows = [{~r: 1} for r in range(n)] + [None] * word["owned_fields"] + charts = word["initial"][:] + [None] * word["owned_fields"] + forms, moves = {}, {} + for clock, event in enumerate(word["program"]): + op, r = event[:2] + if op == "INIT": + need(r >= n and rows[r] is None, "private birth") + rows[r], charts[r] = {}, event[2] + continue + need(rows[r] is not None, "inactive register") + if op == "MOVE": + _, _, a, b, owned = event + need(charts[r] == a and owned == (r >= n), "original transfer") + moves[clock], forms[clock] = (a, b), rows[r] + rows[r], charts[r] = {clock: 1}, b + else: + need(charts[r] == event[-1], "original scalar chart") + if op == "CLEAR": + need(r >= n, "public retirement") + rows[r], charts[r] = None, None + elif op == "SCALE": + rows[r] = {k: v * rational(event[2]) for k, v in rows[r].items()} + else: + need(op == "ADD" and event[2] != r and charts[event[2]] == charts[r], "original donor") + add_scaled(rows[r], rows[event[2]], rational(event[3])) + need(charts[:n] == word["final"] and all(f is None for f in charts[n:]), "original exit") + first = len(word["program"]) + forms.update({first + r: rows[r] for r in range(n)}) + return Network(first, word["initial"], word["final"], moves, forms) + + +def coefficients(entries): + result = {k: rational(v) for k, v in entries} + need(len(entries) == len(result) and all(result.values()), "sparse coefficient list") + return result + + +def pivot(net, edit): + drop, lead = edit["remove"], edit["pivot"] + combination = coefficients(edit["combination"]) + sender = coefficients(edit["sender"]) + side = coefficients(edit["receiver"]) + need(lead in combination and drop in net.moves and lead in net.moves, "pivot slots") + _, middle = net.moves[drop] + old, destination = net.moves[lead] + uses = {m: row[drop] for m, row in net.forms.items() if drop in row} + need(old == middle and combination.keys() <= uses.keys(), "pivot combination") + need(all(net.moves.get(m) == (middle, destination) for m in uses), "shared destination") + aggregate = {} + for m, weight in combination.items(): + add_scaled(aggregate, net.forms[m], weight) + response = aggregate.get(drop, 0) + need(response, "zero pivot response") + + forms = net.forms.copy() + del forms[drop] + forms[lead] = sender + for m, weight in uses.items(): + if m != lead: + residual = net.forms[m].copy() + add_scaled(residual, aggregate, -Fraction(weight, response)) + need(drop not in residual, "uncancelled transfer") + forms[m] = residual + + combined = {lead: 1} + add_scaled(combined, side, -1) + recovered = {} + for m, weight in uses.items(): + if m == lead: + row = {k: -v / combination[lead] for k, v in combination.items() if k != lead} + else: + row = {m: 1} + add_scaled(row, combined, Fraction(weight, response)) + recovered[m] = row + for k, row in list(forms.items()): + affected = row.keys() & recovered.keys() + if affected: + new = {i: v for i, v in row.items() if i not in affected} + for i in affected: + add_scaled(new, recovered[i], row[i]) + forms[k] = new + moves = net.moves.copy() + del moves[drop] + moves[lead] = (edit["source_chart"], destination) + return Network(net.first_output, net.initial, net.final, moves, forms) + + +def networks(word): + parent = fold(word) + net = parent + receipts = [] + for edit in read(HERE / "PIVOTS.json"): + direction = edit["direction"] + need(direction in ("forward", "transpose"), "pivot direction") + if direction == "transpose": + net = net.transpose() + before = len(net.moves) + net = pivot(net, edit) + if direction == "transpose": + net = net.transpose() + net.schedule() + need(len(net.moves) == before - 1, "paid slot count") + receipts.append([direction, edit["remove"], edit["pivot"], len(net.moves)]) + return parent, net, receipts diff --git a/research/p104-helper-quotients/vendor/physical.py b/research/p104-helper-quotients/vendor/physical.py new file mode 100644 index 0000000000..e7c4e5798b --- /dev/null +++ b/research/p104-helper-quotients/vendor/physical.py @@ -0,0 +1,868 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Exact grids and occupied bank schedules for the cf6a banked relay. + +Adapt the guarded bank and exact-root accounting of #7697, based on #7682. +The graph folds the supplied #7700 tape and contracts its role-1256 relay. +""" + +from argparse import ArgumentParser +from collections import Counter +from fractions import Fraction +import gzip +from hashlib import sha256 +import importlib.util +import json +from math import gcd, lcm +from pathlib import Path + + +HERE = Path(__file__).resolve().parent +PEER = "72705b094d83d2ba24006661bbb031786a691b776bedb94515b1321e1535105f" +CANDIDATE = "8e7b755bd2d2d387bc3d3adfe48100985adf74775ca5acbb143170a3d16b5ccf" +SOURCE_WORD = "ae62d5d8bef6f7146454b4b3643e487a58380c606a16c5baef7bf0dcf9df1472" +SOURCE_HEAD = "7d84799a447867d36137d12ef7ca5646154d763c" +SOURCE_CERTS = "39ef28b708cd8bf1166b111d656809407b370dd11cd81a8e43820779f995aca3" +CALLER = "62d94fb992acab0a71c3d12f22be4ce63f4f65e5cbe3f420b93aa1393ffa8dcf" +CALLER_REPLAY = "ced48867f07ca0143604aa98cfd74fa7453696b9d3221f7c230d73e9ab9ba81f" +STAGES = 16 +CALLER_ODD = 2025 +COMPILER_H = 14571800000000000000 +AMBIENT_CAP = 153 +PROTECTED_HELPERS = (325, 1087) +OLD_NATIVE_STOCK = 15290 +REMOVED, SURVIVOR = 95828, 104442 +RELAY_ROLE = 1256 +RELAY_CHARTS = (476, 878, 127) +PAYLOAD_AXES = 4 + + +def require(condition, reason): + if not condition: + raise ValueError(reason) + + +def encoded(data): + return json.dumps(data, sort_keys=True, separators=(",", ":")).encode() + + +def load_gzip(path, pin, *, canonical=True): + packed = path.read_bytes() + raw = gzip.decompress(packed) + require(sha256(raw).hexdigest() == pin, f"wrong decoded hash for {path.name}") + data = json.loads(raw) + require(not canonical or encoded(data) == raw, f"noncanonical data for {path.name}") + return data, sha256(packed).hexdigest() + + +def chart_span(basis): + span = {0} + for axis in basis: + require(type(axis) is int and 0 < axis < 512 and axis not in span, + "invalid independent ordered chart basis") + span |= {axis ^ vector for vector in span} + return span + + +def exact_coefficient(text): + value = Fraction(text) + require(value and str(value) == text, "noncanonical or zero scalar incidence") + return value + + +def exact_div(value, denominator): + result, remainder = divmod(value, denominator) + require(remainder == 0, "nonintegral scalar pre-product") + return result + + +def grid_parts(grid): + height = (grid & -grid).bit_length() - 1 + return grid >> height, height + + +def ceiling_bits(value): + return (-(-value.numerator // value.denominator)).bit_length() + + +def public_interface(graph, layout): + n = len(graph["initial"]) + require(layout["public"] == n == len(graph["final"]) == 1501 + and len(layout["live"]) == len(layout["ports"]) == 104, + "complete public and port denominators") + hosted = layout["hosted"] + hosted_ports = set(hosted["Dports"]) + second_planes = list(zip(hosted["X2"], hosted["Y2"], strict=True)) + require(len(hosted_ports) == len(second_planes) == 96, "actual 96 hosted ports") + live = layout["live"] + mains = set(live) | {role + 112 for role in live} | set(hosted["X2"]) | set(hosted["Y2"]) + require(len(mains) == 400 and mains <= set(range(n)), "400 distinct real main slots") + for port, (x, q) in enumerate(zip(live, layout["ports"], strict=True)): + y = x + 112 + initial, final = graph["initial"], graph["final"] + frames = graph["frames"] + require(frames[initial[x]] == [q] and frames[initial[y]] == [] + and frames[final[x]] == [1 << j for j in range(9)] + and len(frames[final[y]]) == 8 + and all((v & q).bit_count() % 2 == 0 for v in frames[final[y]]), + f"main binding at port {port}") + for position, pair in zip(hosted["Dports"], second_planes, strict=True): + original = (live[position], live[position] + 112) + require(all(graph[boundary][a] == graph[boundary][b] + for boundary in ("initial", "final") for a, b in zip(original, pair)), + "separate hosted main partners in the same charts") + require(all(r not in mains and (graph["initial"][r], graph["final"][r]) == (3, 237) + for r in PROTECTED_HELPERS), "fixed rank-four same-owner helper boundaries") + return mains, hosted_ports, second_planes + + +def expected_rows(n, layout, interface, unit): + mains, hosted, second = interface + rows = [{r: unit} for r in range(n)] + for port, x in enumerate(layout["live"]): + y = x + 112 + if port in hosted: + rows[y][x] = unit + else: + rows[x][y] = -unit + rows[y] = {x: exact_div(unit, 2), y: exact_div(unit, 2)} + for x, y in second: + rows[x][y] = -unit + require(all(r in mains or row == {r: unit} for r, row in enumerate(rows)), + "independent arbitrary helper definition") + return rows + + +def graph_inputs(graph): + n = len(graph["initial"]) + first = graph["first_output"] + require(n == 1501 and first == 154768, "stable paid and public namespace") + moves = {key: (a, b) for key, a, b in graph["moves"]} + rows = {key: [(donor, exact_coefficient(coef)) for donor, coef in terms] + for key, terms in graph["forms"]} + terminal_keys = set(range(first, first + n)) + order = graph["schedule"] + require(len(moves) == len(graph["moves"]) and all(0 <= key < first for key in moves), + "exact positive paid slots") + require(len(rows) == len(graph["forms"]) == len(moves) + n + and set(rows) == moves.keys() | terminal_keys and moves.keys().isdisjoint(terminal_keys) + and len(order) == len(rows) and set(order) == rows.keys(), + "exact held-bank schedule denominator") + require(all([donor for donor, _ in row] == sorted({donor for donor, _ in row}) + for row in rows.values()), "unique donor keys in literal scalar order") + return moves, rows + + +def graph_bounds(graph, moves, rows, mains): + frames = graph["frames"] + spans = list(map(chart_span, frames)) + starts, ends = graph["initial"], graph["final"] + first = graph["first_output"] + n = len(starts) + require(all(type(chart) is int and 0 <= chart < len(spans) for chart in (*starts, *ends)), + "valid public charts") + + def rank(a, b, helper=False): + require(0 <= a < len(spans) and 0 <= b < len(spans), "valid paid chart IDs") + require(spans[a] < spans[b] or (not helper and spans[b] < spans[a]), + "strictly nested positive paid or helper charts") + return abs(len(frames[b]) - len(frames[a])) + + paid = Counter(rank(a, b) for a, b in moves.values()) + productive = Counter(rank(starts[r], ends[r], helper=True) for r in range(n) if r not in mains) + available = {~r: (chart, 1, Fraction(1)) for r, chart in enumerate(starts)} + grid, peak_mass, peak_node = 1, Fraction(1), None + for key in graph["schedule"]: + a = moves[key][0] if key in moves else ends[key - first] + row_grid, mass = 1, Fraction() + for donor, q in rows[key]: + require(donor in available and available[donor][0] == a, + f"donor unavailable or in wrong chart at row {key}") + _, divisor, weight = available[donor] + row_grid = lcm(row_grid, divisor * q.denominator) + mass += abs(q) * weight + grid = lcm(grid, row_grid) + if mass > peak_mass: + peak_mass, peak_node = mass, key + if key in moves: + available[key] = (moves[key][1], row_grid, mass) + odd, height = grid_parts(grid) + return { + "public": n, "slots": len(moves), "terms": sum(map(len, rows.values())), + "path_grid": grid, "path_grid_odd": odd, "path_grid_height": height, + "positive_path_mass_bound_unscaled": str(peak_mass), + "positive_path_mass_peak_node": peak_node, + "paid_native_ranks": dict(paid), "positive_helper_ranks": dict(productive), + } + + +def exact_basis_grid(graph, moves, rows, grid, expected): + """Check every separate rational product, prefix and installed basis row.""" + values = {~r: {r: grid} for r in range(len(graph["initial"]))} + product_gcd = snapshot_gcd = grid + odd_factors = {} + for prime in (3, 5): + reduced = grid + while reduced % prime == 0: + reduced //= prime + require(reduced < grid, f"missing expected odd prime {prime}") + odd_factors[prime] = grid // reduced + off_grid_controls = {} + n_checks = nontrivial = 0 + divisors = Counter() + peak_absolute = grid + for key in graph["schedule"]: + row, row_bound = {}, 0 + for donor, q in rows[key]: + a, b = q.numerator, q.denominator + n_checks += len(values[donor]) + nontrivial += len(values[donor]) if b != 1 else 0 + if b != 1: + divisors[b] += len(values[donor]) + for column, value in values[donor].items(): + product = exact_div(a * value, b) + product_gcd = gcd(product_gcd, product) + if len(off_grid_controls) < len(odd_factors): + for prime, factor in odd_factors.items(): + if prime not in off_grid_controls and product % factor: + require(value % factor == 0, "first under-scaled donor already off grid") + reduced_numerator = a * (value // factor) + require(reduced_numerator % b, "removed odd factor must cause a literal DIV fault") + off_grid_controls[prime] = { + "row": key, "donor": donor, "entrance_column": column, + "coefficient": str(q), "removed_factor": factor, + "numerator_without_factor": reduced_numerator, "denominator": b, + "positive_remainder": reduced_numerator % b, + } + row_bound += abs(product) + result = row.get(column, 0) + product + if result: + row[column] = result + else: + row.pop(column, None) + peak_absolute = max(peak_absolute, row_bound) + for value in row.values(): + snapshot_gcd = gcd(snapshot_gcd, value) + if key in moves: + values[key] = row + else: + require(row == expected[key - graph["first_output"]], f"wrong normalized endpoint {key}") + return { + "coefficient_products": n_checks, "checked_nontrivial_divisions": nontrivial, + "checked_nontrivial_divisions_by_denominator": dict(divisors), + "exact_all_public_rows": len(expected), + "minimum_product_grid": grid // product_gcd, "minimum_snapshot_grid": grid // snapshot_gcd, + "maximum_exact_row_prefix_mass_scaled": str(Fraction(peak_absolute, 1 << grid_parts(grid)[1])), + "missing_odd_factor_controls": off_grid_controls, + } + + +class HeldBank: + """Finite extent fixture with typed payloads and separately guarded streams.""" + + def __init__(self, homes): + self.homes = homes + self.blank = (None, None, (0,) * PAYLOAD_AXES) + self.left_guard = object() + self.right_guard = object() + self.dummy = object() + self.left = self.left_guard + self.right = self.right_guard + self.slots = [self.dummy] + [ + (("dirty", slot), -1, tuple((-1)**axis * (slot + axis) for axis in range(PAYLOAD_AXES))) + for slot in range(1, homes + 1) + ] + self.head = 0 + self.operations = Counter() + self.overwritten_cells = Counter() + self.trace = sha256() + # GET restores the selector head. Its complete donor and the running + # accumulator have independent backing throughout the term. + self.streams = {name: None for name in ("accumulator", "donor", "product", "quotient")} + self.stream_resets = 0 + + def access(self, slot, operation, replacement=None, *, require_blank=False, clear=False): + require(self.head == 0 and 1 <= slot <= self.homes, "bad guarded bank selection") + self.head = slot + try: + old = self.slots[slot] + require(not require_blank or old == self.blank, + "send or install before previous full owner extent cleared") + if clear: + require(replacement is None and len(old[2]) == PAYLOAD_AXES, "wrong reset extent") + # Scan every addressed payload cell without inspecting its + # value or treating a normalized zero as a reset. + cleared = tuple(0 for _ in old[2]) + self.slots[slot] = (None, None, cleared) + self.overwritten_cells[operation] += len(cleared) + if replacement is not None: + require(len(replacement[2]) == PAYLOAD_AXES, "wrong staged copy extent") + tag, chart, payload = replacement + self.slots[slot] = (tag, chart, tuple(cell for cell in payload)) + self.operations[operation] += 1 + self.trace.update(encoded([operation, slot, old[0], replacement[0] if replacement else None])) + return old + finally: + self.head = 0 + + def reset_stream(self, name): + live = self.streams[name] + if live is not None: + require(len(live) == PAYLOAD_AXES, "wrong stream reset extent") + self.streams[name] = None + self.stream_resets += 1 + + def close(self): + require(self.head == 0 and self.slots[0] is self.dummy + and self.left is self.left_guard and self.right is self.right_guard + and all(slot == self.blank for slot in self.slots[1:]) + and all(stream is None for stream in self.streams.values()), + "packed bank and four stream retirement") + + +def rejected_write(bank, slot, record, control_operation): + try: + bank.access(slot, control_operation, record, require_blank=True) + except ValueError as failure: + require(str(failure) == "send or install before previous full owner extent cleared" + and bank.head == 0, "wrong dirty or outstanding-sender control failure") + else: + raise ValueError("dirty or held payload accepted as blank") + + +def partial_clear_control(): + bank = HeldBank(2) + old_unselected = bank.slots[2] + # A missing final address remains dirty even though the tag, chart, and + # all earlier positions have been cleared. + bank.slots[1] = (None, None, (0,) * (PAYLOAD_AXES - 1) + (17,)) + record = (("fresh", 0), 3, (1,) * PAYLOAD_AXES) + rejected_write(bank, 1, record, "partial_clear_fault") + residue = bank.access(1, "clear_every_address", clear=True) + require(residue[2][-1] == 17 and bank.slots[1] == bank.blank and bank.slots[2] == old_unselected, + "complete overwrite must remove the residual and preserve neighbors") + bank.access(1, "accepted_after_full_clear", record, require_blank=True) + return {"dirty_unaddressed_last_cell_rejected": True, "neighbor_unchanged": True} + + +def held_schedule(graph, moves, rows, grid, expected, control=False): + n, k, first = len(graph["initial"]), len(moves), graph["first_output"] + entrance = {~r: r + 1 for r in range(n)} + returned = {key: n + i + 1 for i, key in enumerate(sorted(moves))} + terminal = {first + r: n + k + r + 1 for r in range(n)} + sender = 2*n + k + 1 + scratch = range(sender + 1, sender + 5) + allocated = set(entrance.values()) | set(returned.values()) | set(terminal.values()) | {sender} | set(scratch) + require(allocated == set(range(1, 2*n + k + 6)), "injective bank home plan") + bank = HeldBank(len(allocated)) + odd = grid_parts(grid)[0] + binary_grid = grid // odd + public = [ + (("public", r), chart, tuple( + binary_grid * ((r * (719 - 41*axis) + 29 + 37*axis) % 127 - 63) + for axis in range(PAYLOAD_AXES) + )) + for r, chart in enumerate(graph["initial"]) + ] + original_public = public.copy() + for slot in sorted(allocated): + old = bank.access(slot, "initialize_complete_dirty_home", clear=True) + require(all(old[2]), "every initial fixture address must be dirty") + for r, (_, chart, value) in enumerate(public): + scaled = tuple(x * odd for x in value) + bank.access(entrance[~r], "write_entrance", (("entry", r), chart, scaled), require_blank=True) + known = dict(entrance) + installed = set() + outstanding = None + attempted_early_reuse = False + + for key in graph["schedule"]: + paid = key in moves + source, destination = moves[key] if paid else (graph["final"][key - first], None) + require(bank.streams["accumulator"] is None, "running accumulator already occupied") + bank.streams["accumulator"] = (0,) * PAYLOAD_AXES + for donor, q in rows[key]: + require(donor in known, "read before donor RETURN") + tag, chart, value = bank.access(known[donor], "read_immutable_donor") + require(tag == (("entry", ~donor) if donor < 0 else ("returned", donor)) + and chart == source, "wrong owner or chart at guarded GET") + require(all(bank.streams[name] is None for name in ("donor", "product", "quotient")), + "term workspace was live before GET") + bank.streams["donor"] = tuple(cell for cell in value) + bank.streams["product"] = tuple(q.numerator * x for x in bank.streams["donor"]) + bank.streams["quotient"] = tuple(exact_div(x, q.denominator) for x in bank.streams["product"]) + bank.streams["accumulator"] = tuple(a + b for a, b in zip( + bank.streams["accumulator"], bank.streams["quotient"], strict=True)) + for name in ("donor", "product", "quotient"): + bank.reset_stream(name) + value = bank.streams["accumulator"] + if paid: + require(outstanding is None and key not in known, "invalid new native sender") + bank.access(sender, "initialize_empty_sender_before_departure", require_blank=True, clear=True) + record = (("sender", key), source, value) + bank.access(sender, "stage_full_sender", record, require_blank=True) + outstanding = key + if control and key == SURVIVOR: + rejected_write(bank, sender, (("sender", key + 1), source, value), "early_sender_fault") + require(bank.slots[sender] == record and key not in known and bank.slots[returned[key]] == bank.blank, + "fault disturbed the parked sender or exposed an incomplete return") + attempted_early_reuse = True + held_tag, held_chart, held_value = bank.access(sender, "read_parked_sender") + require(outstanding == key and held_tag == ("sender", key) and held_chart == source, + "parked sender must survive until shape and complete return") + # Native checks supply both complete adapters and the paid + # Gaussian child. Their normalized composite preserves this value. + returned_record = (("returned", key), destination, held_value) + bank.access(returned[key], "write_complete_return", returned_record, require_blank=True) + bank.access(sender, "clear_full_sender_after_return", clear=True) + require(bank.head == 0, "sender head not restored after full retirement") + outstanding = None + known[key] = returned[key] + else: + role = key - first + bank.access(terminal[key], "write_terminal", (("terminal", role), source, value), require_blank=True) + bank.reset_stream("accumulator") + + require(outstanding is None and len(known) == n+k and public == original_public, + "all full public entrances must remain intact throughout the native schedule") + for role in range(n): + tag, chart, values = bank.access(terminal[first + role], "read_terminal_for_same_owner_install") + predicted = tuple(exact_div( + sum(q * original_public[i][2][axis] for i, q in expected[role].items()), grid) + for axis in range(PAYLOAD_AXES)) + unscaled = tuple(exact_div(value, odd) for value in values) + require(tag == ("terminal", role) and chart == graph["final"][role] and unscaled == predicted, + "wrong extent, chart, value or same-owner terminal install") + public[role] = (("public", role), chart, unscaled) + installed.add(role) + bank.trace.update(encoded(["public_install_and_unscale", role, chart])) + require(installed == set(range(n)) and all( + record[:2] == (("public", role), graph["final"][role]) for role, record in enumerate(public)), + "every public owner fully installed exactly once") + for slot in sorted(allocated): + bank.access(slot, "retire_complete_home", clear=True) + bank.close() + terms = sum(map(len, rows.values())) + wanted = { + "initialize_complete_dirty_home": len(allocated), "write_entrance": n, + "read_immutable_donor": terms, "initialize_empty_sender_before_departure": k, + "stage_full_sender": k, "read_parked_sender": k, "write_complete_return": k, + "clear_full_sender_after_return": k, "write_terminal": n, + "read_terminal_for_same_owner_install": n, "retire_complete_home": len(allocated), + } + resets = { + op: count * PAYLOAD_AXES for op, count in wanted.items() + if op in {"initialize_complete_dirty_home", "initialize_empty_sender_before_departure", + "clear_full_sender_after_return", "retire_complete_home"} + } + require(bank.operations == wanted and bank.overwritten_cells == resets + and bank.stream_resets == 3*terms+k+n, "complete independent selected replay counts") + return { + "numerical_homes": len(allocated), "guarded_dummy_slots": 1, "separate_guide_tracks": 1, + "max_outstanding_native_senders": 1, "declared_senders": 1, + "immutable_entry_banks": n, "immutable_paid_return_banks": k, + "deferred_terminal_banks": n, "native_scalar_scratch_homes": 4, + "additional_independent_guarded_streams": len(bank.streams), + "trace_sha256": bank.trace.hexdigest(), "selected_logical_operations": dict(bank.operations), + "fixture_addressed_cells_per_home": PAYLOAD_AXES, + "fixture_addressed_cells_overwritten": dict(bank.overwritten_cells), + "tracked_stream_reset_visits": bank.stream_resets, + "same_owner_complete_fixture_outputs": len(installed), "exact_odd_unscale_outputs": len(installed), + "retired_and_guards_restored": True, "live_sender_alias_control_rejected": attempted_early_reuse, + "all_public_inputs_preserved_until_final_installs": True, + } + + +def scalar_service(value, coefficient, signed_width): + """Finite signed carry, quotient, exact remainder and padded installation.""" + a, b = abs(coefficient.numerator), coefficient.denominator + magnitude = abs(value) + require(magnitude.bit_length() < signed_width, "input width") + padding = signed_width + 26 + carry, bits = 0, [] + for j in range(padding): + carry += a * ((magnitude >> j) & 1) + bits.append(carry & 1) + carry >>= 1 + require(carry == 0, "padded product overflow") + quotient = remainder = 0 + for bit in reversed(bits): + trial = 2 * remainder + bit + next_bit = int(trial >= b) + remainder = trial - next_bit * b + quotient = (quotient << 1) | next_bit + require(remainder == 0, "physical remainder") + require(quotient.bit_length() < signed_width, "installed scalar overflow") + return -quotient if (value < 0) != (coefficient.numerator < 0) else quotient + + +def scalar_cases(graph_rows, caller, scales): + factors = {factor for rows in graph_rows for row in rows.values() for _, factor in row} + factors.update(Fraction(event[-1]) for event in caller["events"] + if event[0] != "J" and event[1] in ("ADD", "SCALE")) + factors.update((Fraction(-1), Fraction(1), Fraction(-1, 2), Fraction(1, 2))) + for scale in scales: + factors.update((Fraction(scale), Fraction(1, scale), Fraction(-1, scale))) + bits = max(max(abs(q.numerator).bit_length(), q.denominator.bit_length()) for q in factors) + require(bits <= 24, "all literal scalar and division conversions fit W+26") + cases = 0 + for coefficient in sorted(factors): + for k in (0, -127, -1, 1, 19, (1 << 68) + 1): + value = k * coefficient.denominator + signed_width = max(3, abs(value).bit_length()+2, abs(k * coefficient.numerator).bit_length()+2) + require(scalar_service(value, coefficient, signed_width) == k * coefficient.numerator, + "fixed scalar sign/carry/remainder or installation") + cases += 1 + rejected_denominators = (2, 3, 5, 7) + for denominator in rejected_denominators: + try: + scalar_service(1, Fraction(-1, denominator), 3) + except ValueError as failure: + require(str(failure) == "physical remainder", "wrong inexact scalar rejection") + else: + raise ValueError("nonintegral scalar installed") + return {"distinct_scalar_and_conversion_factors": len(factors), "signed_bit_transducer_cases": cases, + "coefficient_bits": bits, "rejected_one_tick_denominators": rejected_denominators, + "retained_max_bits": 24, "component_padding": 26} + + +def caller_envelope(caller): + """Majorize raw caller products with no cancellation or operator commutation.""" + roles = [(0, Fraction(1)) for _ in range(caller["roles"])] + max_height, max_mass = 0, Fraction(1) + pre_height, pre_mass = 0, Fraction(1) + visits = Counter() + + def observe(*values): + nonlocal max_height, max_mass + for height, mass in values: + max_height = max(max_height, height) + max_mass = max(max_mass, mass) + + def scale(value, factor): + height, mass = value + return height + grid_parts(factor.denominator)[1], abs(factor) * mass + + def add(first, second): + return max(first[0], second[0]), first[1] + second[1] + + stages = [] + for event in caller["events"]: + if event[0] == "J": + _, stage, (x, y, u, v), (a, b, alpha, beta) = event + require((Fraction(alpha), Fraction(beta)) == (-1, Fraction(1, 2)), + "exact signed joint envelope coefficients") + stages.append(stage) + pre_height = max(pre_height, *(roles[j][0] for j in (x, y, u, v, a, b))) + pre_mass = max(pre_mass, *(roles[j][1] for j in (x, y, u, v, a, b))) + roles[y], roles[u] = add(roles[y], roles[x]), add(roles[u], roles[v]) + old_a, old_b = roles[a], roles[b] + roles[a] = add(old_a, old_b) + roles[b] = add(scale(old_a, Fraction(1, 2)), scale(old_b, Fraction(1, 2))) + observe(roles[y], roles[u], roles[a], roles[b]) + continue + kind, op, role, *args = event + visits[op] += len(caller["types"][kind]["ports"]) + if op == "ADD": + term = scale(roles[args[0]], Fraction(args[-1])) + roles[role] = add(roles[role], term) + observe(term) + elif op == "SCALE": + roles[role] = scale(roles[role], Fraction(args[-1])) + elif op == "SWAP": + donor = args[0] + roles[role], roles[donor] = roles[donor], roles[role] + elif op == "QUERY": + roles[role] = add(roles[role], roles[args[0]]) + elif op == "LAMBDA": + height, mass = roles[role] + # (1 ± i)/2 and (1 ∓ i)/2 each have Gaussian l1 norm one. + roles[role] = height + 1, 2 * mass + else: + require(op in {"IDLE_ONE", "IDLE_ODD"}, "unknown signed caller operation") + observe(roles[role]) + require(stages == list(range(1, STAGES+1)), "complete exact 16-stage raw schedule") + return { + "records": len(caller["events"]), "stages": len(stages), "uses": dict(visits), + "binary_height_at_all_completed_cuts_and_products": max_height, + "binary_height_at_native_entrances": pre_height, + "scaled_mass_at_all_cuts_and_products": str(CALLER_ODD * max_mass), + "scaled_mass_at_native_entrances": str(CALLER_ODD * pre_mass), + "normalized_bound_uses_no_cancellation_or_commutation": True, + } + + +def replay_caller(caller, layout): + path = HERE / "engines/caller/caller16.py" + require(sha256(path.read_bytes()).hexdigest() == CALLER_REPLAY, "wrong signed caller engine") + spec = importlib.util.spec_from_file_location("physical_signed_caller16", path) + require(spec is not None and spec.loader is not None, "signed caller engine must be loadable") + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + result = module.signed_caller(caller, layout, CALLER_ODD, 9) + require(result["calls"] == STAGES and result["roles"] == 68 and result["root_owners"] == 3536 + and result["exact_preproduct_divisions"] == 153295 + and Fraction(result["peak_scaled_mass"]) == Fraction(495734175, 2), + "exact inherited caller odd scale and literal divide replay") + roots_q = sum(len(specification["ports"]) * sum(row[0] < 0 for row in specification["diagonal"]) + for specification in caller["types"].values()) + require(roots_q == 3536, "charge all root negative-q ordinary translations") + envelope = caller_envelope(caller) + require(envelope["uses"] == result["uses"], "independent weighted caller operation count") + return result, envelope, roots_q + + +def ordinary_budget(native, signed, roots_q, scalar_bits): + n, k, terms, homes = (native[key] for key in ("public", "slots", "terms", "numerical_homes")) + conversions = 2 * (signed["root_owners"] + STAGES * n) + reset_counts = { + "dirty_home_initializations_and_retirements": 2 * homes, + "term_and_row_stream_initializations_and_retirements": 8 * (terms + k + n), + "owner_scale_unscale_stream_initializations_and_retirements": 4 * n, + "sender_reinitializations_and_retirements": 2 * k, + } + transfer_counts = { + "complete_scalar_donor_staging_legs": 2 * terms, + "complete_sender_and_terminal_staging_legs": 2 * (k + n), + "paid_parked_sender_return_and_adapter_legs": 6 * k, + "immutable_entrance_and_public_terminal_install_legs": 4 * n, + } + resets, transfers = sum(reset_counts.values()), sum(transfer_counts.values()) + selector_l = 14*homes + 9 + selector_constant = 63*homes - 7*homes.bit_count() + 27*homes.bit_length() + 59 + # Allow the separate full overwrite scan for every reset, in addition + # to the selector/reset bound, including the stream resets. + selections = [resets*(selector_l+2) + transfers*(selector_l+128), + resets*(selector_constant+3) + transfers*(selector_constant+320)] + selected = native["selected_logical_operations"] + checked_home_resets = sum(selected[op] for op in native["fixture_addressed_cells_overwritten"]) + checked_copy_visits = sum(selected.values()) - checked_home_resets + require(checked_home_resets == 2*(homes+k) + and resets >= checked_home_resets + native["tracked_stream_reset_visits"], + "full occupied resets, sender reuse and independent stream resets charged") + require(checked_copy_visits == terms+3*(k+n) and transfers == 2*checked_copy_visits + 2*k, + "all staged copy visits plus complete paid adapter legs charged") + p = STAGES * k + sum(signed["fixed_caller_paid"].values()) + t = STAGES * sum(native["positive_helper_ranks"].values()) + sum(signed["fixed_root_targets"].values()) + uses = signed["uses"] + maps = 2*(p+t+STAGES*400) + 2*(uses["IDLE_ONE"]+uses["IDLE_ODD"]) + maps += 3*uses["QUERY"] + uses["LAMBDA"] + uses["IDLE_ODD"] + roots_q + scalar_counts = { + "literal_native_products_and_accumulations": STAGES * terms, + "width_padded_native_row_lifecycles": STAGES * 4 * (k + n), + "public_boundary_installations_and_scale_preparations": STAGES * 2 * n, + "private_home_flags_and_cleanup": STAGES * homes, + "serial_sender_initialization_and_retirement": STAGES * 2 * k, + "weighted_signed_caller_operation_slots": sum(uses.values()), + "complete_array_odd_conversions": conversions, + } + scalar_count = 32 * sum(scalar_counts.values()) + require(homes <= OLD_NATIVE_STOCK and native["additional_independent_guarded_streams"] == 4, + "retained numerical home ceiling and extra independent streams") + return { + "native_numeric_homes": homes, "native_numeric_homes_plus_dummy": homes+1, + "raw_numeric_homes": STAGES*homes, "raw_numeric_homes_plus_dummy": STAGES*(homes+1), + "separate_guarded_guide_tracks_per_native": 1, "separate_guarded_guide_tracks_raw": STAGES, + "separate_guarded_streams_per_native": 4, "separate_guarded_streams_raw": STAGES*4, + "odd_conversions": conversions, "reset_services_per_native": resets, + "typed_selected_transfers_per_native": transfers, + "reset_services_by_kind_per_native": reset_counts, + "typed_transfer_legs_by_kind_per_native": transfer_counts, + "reset_services_all_native_stages": STAGES * resets, + "typed_selected_transfer_legs_all_native_stages": STAGES * transfers, + "selector_steps_per_selected_service_L_and_constant": [selector_l, selector_constant], + "additional_full_overwrite_steps_per_reset_L_and_constant": [2, 3], + "selected_total_steps_per_native_L_and_constant": selections, + "selected_total_steps_raw_L_and_constant": [STAGES * part for part in selections], + "scalar_services": scalar_count, "scalar_step_rate": 2**max(20, scalar_bits+8), + "raw_scalar_incidence_allowance_before_factor_32": scalar_counts, + "ordinary_map_slots": maps, "ordinary_elementary_record_upper": maps*4*(AMBIENT_CAP+1)**2, + "raw_paid_positions": p, "raw_productive_targets": t, "root_negative_q_translations": roots_q, + "native_paid_wrappers": STAGES * k, + "native_productive_wrappers": STAGES * sum(native["positive_helper_ranks"].values()), + "ordinary_main_pair_slots": STAGES * 400, + "compiled_ordinary_work": "Full-view resets, selects, copies, guide and layout setup and return, exact scalar and odd conversions, matchers, fixed descriptors, root normalization, and all native, caller and child adapters.", + "compiled_stock": "Disjoint occurrence-tagged bank tuples, dummy origins, guides and four guarded streams per stage; complete public owners, matching child views, compiler and BIT workspace, and every parked ancestor.", + "layout": { + "padded_payload": "L'=N_c(2(W+26)+3)", + "per_stage_selector_and_stream_tracks": 11, + "guide_setup_and_retirement": "q(N_c)+q(W')+22N_cW'+36N_c+7W'+36+7L'+10; q(x)=24x-7popcount(x)+15ell(x)+12; W'=W+26", + "aggregate_owned_tuple_M": "sum_stage[(homes+6)(L'+2)+ell(N_c)+ell(W+26)+max(ell(N_c),ell(W+26),ell(homes))+max(N_c,homes)+max(W+26,ell(homes))+10]", + "shadow_cells_upper": "M+352", + "complete_view_step_bound": "34*(256(M+352)+128) plus fixed-degree descriptor work", + }, + } + + +def root_envelope(native, caller): + max_binary = max(caller["binary_height_at_all_completed_cuts_and_products"], + *(caller["binary_height_at_native_entrances"] + side["path_grid_height"] + for side in native.values())) + max_mass = max(Fraction(caller["scaled_mass_at_all_cuts_and_products"]), + *(Fraction(caller["scaled_mass_at_native_entrances"]) * side["path_grid_odd"] + * Fraction(side["positive_path_mass_bound_unscaled"]) + for side in native.values())) + mass_bits = ceiling_bits(max_mass) + c = 2 * max(max_binary, mass_bits) + return { + "caller_odd": CALLER_ODD, + "native_odd": {side: audit["path_grid_odd"] for side, audit in native.items()}, + "native_binary": {side: audit["path_grid_height"] for side, audit in native.items()}, + "context_mass_bound": str(max_mass), "context_mass_bits": mass_bits, + "context_binary_bits": max_binary, "context_c": c, + "H_guard": "bit_length(context_c*1920*153**1920*(H+1)**2) < H for each actual compiler bound H", + "exact_grid": "2^(-p-D)", + "signed_width": "W=p+h+2D+3", + "temporary_width": "W+26", + } + + +def relay_edit(parent, candidate, word): + require(all(parent[field] == candidate[field] == word[field] + for field in ("frames", "initial", "final")), + "same complete raw chart atlas and public owner shapes") + require(parent["first_output"] == candidate["first_output"] == len(word["program"]), + "stable raw clocks and complete public output namespace") + enter, middle, leave = RELAY_CHARTS + require(word["program"][REMOVED] == ["MOVE", RELAY_ROLE, enter, middle, False] + and word["program"][SURVIVOR] == ["MOVE", RELAY_ROLE, middle, leave, False], + "literal nonproductive source relay on owner 1256") + parent_moves, parent_rows = graph_inputs(parent) + child_moves, child_rows = graph_inputs(candidate) + raw_moves = {clock: (event[2], event[3]) for clock, event in enumerate(word["program"]) + if event[0] == "MOVE"} + require(parent_moves == raw_moves and len(raw_moves) == 6144 and len(child_moves) == 6143, + "exact source and contracted paid denominators") + require(child_moves == {key: (enter, leave) if key == SURVIVOR else edge + for key, edge in parent_moves.items() if key != REMOVED}, + "only one direct paid edge replaces the two source children") + require(parent_rows[SURVIVOR] == [(REMOVED, Fraction(1))] + and [key for key, terms in parent_rows.items() if any(donor == REMOVED for donor, _ in terms)] + == [SURVIVOR], + "pure single-consumer relay") + require(child_rows == {key: parent_rows[REMOVED] if key == SURVIVOR else terms + for key, terms in parent_rows.items() if key != REMOVED}, + "retained paid sender uses exactly four substituted source terms") + edited = {REMOVED, SURVIVOR} + require([key for key in candidate["schedule"] if key not in edited] + == [key for key in parent["schedule"] if key not in edited], + "relative schedule order of all rows outside the relay") + positions = (parent["schedule"].index(REMOVED), parent["schedule"].index(SURVIVOR), + candidate["schedule"].index(SURVIVOR)) + require(positions == (3308, 4114, 3310), "exact old and new zero-based relay schedule positions") + a, b, c = (chart_span(word["frames"][chart]) for chart in RELAY_CHARTS) + require(a < b < c and (len(a), len(b), len(c)) == (8, 64, 512), + "strict consecutive ranks 3+3, direct rank 6") + return {"role": RELAY_ROLE, "removed_paid_key": REMOVED, "surviving_paid_key": SURVIVOR, + "ordered_charts": list(RELAY_CHARTS), "old_ranks": [3, 3], "new_rank": 6, + "new_sender_donors": [[donor, str(coef)] for donor, coef in child_rows[SURVIVOR]], + "schedule_positions_zero_based": {"parent_removed": positions[0], "parent_survivor": positions[1], + "candidate_survivor": positions[2]}, + "relative_order_unchanged_rows": len(candidate["schedule"]) - 1, + "row_later_relay_consumers": 1, "new_recursive_charges_outside_replacement": 0} + + +def check_raw_clear_inventory(word, certs): + indices = {str(clock) for clock, event in enumerate(word["program"]) if event[0] == "CLEAR"} + certificates = certs["clear_event_index"] + count = sum(len(terms) for terms in certificates.values()) + require(certs["candidate_canonical_sha256"] == SOURCE_WORD and set(certificates) == indices + and len(indices) == 235 and count == 1135, "source raw CLEAR certificate inventory") + return {"raw_clear_clocks": len(indices), "normalized_source_terms": count, + "bank_execution_source": "complete addressed retirement in the new banked schedule", + "raw_clear_role": "source-word chronological normalized proof; graph replay checks its own ownership"} + + +def check_depth_guard(root, h): + require(h > 0, "positive compiler H") + k_star = 1920 * 153**1920 * (h + 1)**2 + bits = (root["context_c"] * k_star).bit_length() + require(bits < h, "common exact-root depth guard") + return {"compiler_H": h, "argument_bit_length": bits, "strict_guard_passed": True} + + +def qualify(parent, candidate, word, certs, caller, h): + relay = relay_edit(parent, candidate, word) + clear_inventory = check_raw_clear_inventory(word, certs) + signed, caller_bound, roots_q = replay_caller(caller, word) + native, all_rows = {}, [] + for side, graph in (("parent", parent), ("candidate", candidate)): + interface = public_interface(graph, word) + moves, rows = graph_inputs(graph) + all_rows.append(rows) + audit = graph_bounds(graph, moves, rows, interface[0]) + grid = audit["path_grid"] + expected = expected_rows(audit["public"], word, interface, grid) + native[side] = { + **audit, + **exact_basis_grid(graph, moves, rows, grid, expected), + **held_schedule(graph, moves, rows, grid, expected, control=side == "candidate"), + } + parent_audit, child = native["parent"], native["candidate"] + require(parent_audit["path_grid"] == 2025 << 20 and parent_audit["terms"] == 172415 + and parent_audit["coefficient_products"] == 9044218, "independent G3 folded native anchor") + require(set(child["missing_odd_factor_controls"]) == {3, 5} and child["live_sender_alias_control_rejected"], + "actual under-scaled literal divisions and outstanding sender controls must reject") + old_paid = Counter(parent_audit["paid_native_ranks"]) + new_paid = Counter(child["paid_native_ranks"]) + require(new_paid - old_paid == {6: 1} and old_paid - new_paid == {3: 2} + and child["positive_helper_ranks"] == parent_audit["positive_helper_ranks"], + "exact paid replacement, unchanged productive ranks") + require(sum(rank * count for rank, count in new_paid.items()) + == sum(rank * count for rank, count in old_paid.items()), "paid rank mass conservation") + require((parent_audit["numerical_homes"], child["numerical_homes"]) == (9151, 9150), + "complete serial sender realization on both exact graphs") + root = root_envelope(native, caller_bound) + scalars = scalar_cases(all_rows, caller, (CALLER_ODD, *root["native_odd"].values())) + ordinary = {side: ordinary_budget(audit, signed, roots_q, scalars["coefficient_bits"]) + for side, audit in native.items()} + return { + "status": "PASS_CF6A_RELAY_BANK_PHYSICAL", + "scope": "Complete folded normalized products, all public endpoints, charged guarded bank schedules, finite scalar services and common exact root under the retained physical and recursive interfaces.", + "relay": relay, "raw_clear_source_inventory": clear_inventory, + "native": native, "ordinary": ordinary, "scalar_services": scalars, + "physical_controls": partial_clear_control(), + "caller_exact": signed, "caller_hereditary_envelope": caller_bound, "common_exact_root": root, + "bit_guard": check_depth_guard(root, h), + "both_graphs_respect_historical_numeric_homes_and_streams": True, + "inherited_private_home_cap_per_stage": OLD_NATIVE_STOCK, + "raw_stage_count": STAGES, + } + + +def main(): + parser = ArgumentParser(description=__doc__) + parser.add_argument("--parent", type=Path, default=HERE / "data/PARENT-GRAPH.json.gz") + parser.add_argument("--candidate", type=Path, default=HERE / "data/CANDIDATE-GRAPH.json.gz") + parser.add_argument("--word", type=Path, default=HERE / "data/WORD.json.gz") + parser.add_argument("--certs", type=Path, default=HERE / "data/CERTS.json") + parser.add_argument("--caller", type=Path, default=HERE / "data/CALLER.json.gz") + parser.add_argument("--candidate-sha256", default=CANDIDATE) + parser.add_argument("--compiler-H", type=int, default=COMPILER_H) + parser.add_argument("--out", type=Path) + args = parser.parse_args() + require(args.candidate_sha256 == CANDIDATE, "wrong frozen candidate pin") + parent, parent_gzip = load_gzip(args.parent, PEER) + child, child_gzip = load_gzip(args.candidate, CANDIDATE) + word, word_gzip = load_gzip(args.word, SOURCE_WORD) + caller, caller_gzip = load_gzip(args.caller, CALLER, canonical=False) + certs_raw = args.certs.read_bytes() + require(sha256(certs_raw).hexdigest() == SOURCE_CERTS, "wrong literal raw CLEAR certificate binding") + result = qualify(parent, child, word, json.loads(certs_raw), caller, args.compiler_H) + result.update({ + "graphs": {"parent": PEER, "candidate": CANDIDATE}, "caller_sha256": CALLER, + "source_head": SOURCE_HEAD, "source_word_sha256": SOURCE_WORD, "source_certs_sha256": SOURCE_CERTS, + "transport_sha256": {"parent": parent_gzip, "candidate": child_gzip, "word": word_gzip, + "caller": caller_gzip}, + }) + if args.out is None: + print(json.dumps(result, sort_keys=True, indent=2)) + else: + with args.out.open("x", encoding="utf-8") as handle: + json.dump(result, handle, sort_keys=True, indent=2) + handle.write("\n") + print(result["status"]) + + +if __name__ == "__main__": + main() diff --git a/research/p104-helper-quotients/vendor/recoding.py b/research/p104-helper-quotients/vendor/recoding.py new file mode 100644 index 0000000000..c96d8b844d --- /dev/null +++ b/research/p104-helper-quotients/vendor/recoding.py @@ -0,0 +1,155 @@ +"""Rebuild the exact source graph and apply the ordered rational cut certificate.""" +from fractions import Fraction +from hashlib import sha1, sha256 +from pathlib import Path +import json +import sys + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE / "vendor")) +import construct +from network import Network, add_scaled, coefficients, encoded, need, pivot, read + + +def sources(): + for item in read(HERE / "SOURCE-PINS.json"): + raw = (HERE / item["path"]).read_bytes() + git_blob = b"blob " + str(len(raw)).encode() + b"\0" + raw + need(sha256(raw).hexdigest() == item["sha256"] and + sha1(git_blob).hexdigest() == item["git_blob"], f"source pin {item['path']}") + word = read(HERE / "data/WORD.json.gz") + certs = read(HERE / "data/CERTS.json") + raw, clears, moves = construct.raw_fold(word, certs["clear_event_index"]) + graph, relay = construct.contract(raw, word["frames"], clears, moves) + parent = construct.serialized(graph, word["frames"], "candidate", + source_banked_graph_sha256=construct.PARENT, paid_relay=relay) + need(sha256(parent).hexdigest() == construct.CHILD, "published role-1256 parent") + net = Network(graph.first, graph.initial, graph.final, graph.moves, graph.forms) + return word, net, read(HERE / "CUTS.json") + + +def combine(weights, forms): + result = {} + for token, weight in weights.items(): + add_scaled(result, forms[token], weight) + return result + + +def check_bank(net, row, chart): + for key in row: + if key < 0: + need(~key < len(net.initial) and net.initial[~key] == chart, "public bank chart") + else: + need(key in net.moves and net.moves[key][1] == chart, "paid bank chart") + + +def dot(row, direction): + return sum(row[k] * direction[k] for k in row.keys() & direction.keys()) + + +def hub(net, edit): + t, j, hub_chart = edit["incoming"], edit["outgoing"], edit["hub"] + source, middle = net.moves[t] + start, target = net.moves[j] + need(start == middle and len({source, middle, hub_chart, target}) >= 3 + and hub_chart not in (source, middle, target), "hub route") + direction = coefficients(edit["innovation"]) + receiver = coefficients(edit["receiver"]) + group = {k for k, pair in net.moves.items() if pair == (source, middle)} + need(direction.get(t) == 1 and direction.keys() <= group, "normalized cut direction") + + feedback = edit["kind"] == "feedback" + if feedback: + local = net.forms[j] + sent = coefficients(edit["sender"]) + else: + local = coefficients(edit["group"]) + need(local.keys() <= group, "local signal group") + sent = combine(local, net.forms) + check_bank(net, sent, source) + check_bank(net, receiver, hub_chart) + response = dot(local, direction) + need(response != 0, "zero response") + moves = dict(net.moves) + moves[t], moves[j] = (source, hub_chart), (hub_chart, target) + forms = dict(net.forms) + forms[t] = sent + for k, weight in direction.items(): + if k != t: + forms[k] = dict(net.forms[k]) + add_scaled(forms[k], net.forms[t], -weight) + + # Remove the transmitted direction from each row at its old receiver. + corrections = {} + for k, row in net.forms.items(): + if k in (t, j) or row.keys().isdisjoint(direction): + continue + ratio = Fraction(dot(row, direction), response) + if ratio: + need(net.moves.get(k) == (middle, hub_chart), "lost receiver component") + corrections[k] = ratio + residual = dict(row) + add_scaled(residual, local, -ratio) + need(dot(residual, direction) == 0, "cut did not cancel") + residual.pop(t, None) + forms[k] = residual + + if feedback: + determinant = 1 - dot(receiver, corrections) + need(determinant != 0, "singular receiver recovery") + recovered = {k: weight / determinant for k, weight in receiver.items()} + add_scaled(recovered, {t: 1}, Fraction(1, determinant)) + else: + recovered = {t: 1} + forms[j] = dict(receiver) + add_scaled(forms[j], recovered, 1) + for k, row in list(forms.items()): + if feedback and k == j: + continue + factor = dot(row, corrections) + if factor: + forms[k] = dict(row) + add_scaled(forms[k], recovered, factor) + if feedback: + forms[j] = recovered + return Network(net.first_output, net.initial, net.final, moves, forms) + + +def apply(net, edits, frames, observer=None): + spans = [construct.span(basis) for basis in frames] + for i, edit in enumerate(edits): + need(edit["direction"] in ("forward", "transpose") + and edit["kind"] in ("pivot", "group", "feedback"), "cut type") + dual = edit["direction"] == "transpose" + before = net.transpose() if dual else net + if edit["kind"] == "pivot": + check_bank(before, coefficients(edit["sender"]), edit["source_chart"]) + check_bank(before, coefficients(edit["receiver"]), before.moves[edit["pivot"]][1]) + if observer: + observer(i, before, edit) + after = pivot(before, edit) if edit["kind"] == "pivot" else hub(before, edit) + changed = [edit["pivot"]] if edit["kind"] == "pivot" else [edit["incoming"], edit["outgoing"]] + for key in changed: + a, b = after.moves[key] + need(spans[a] < spans[b] or spans[b] < spans[a], "strictly nested cut transfer") + after.schedule() + net = after.transpose() if dual else after + return net + + +def layout(word, net): + return dict(frames=word["frames"], initial=net.initial, final=net.final, + first_output=net.first_output, moves=[[k, *ab] for k, ab in sorted(net.moves.items())], + forms=[[k, [[j, str(c)] for j, c in sorted(row.items())]] + for k, row in sorted(net.forms.items())], schedule=net.schedule()) + + +def receipt(name, result): + stored = read(HERE / "results" / (name + ".json")) + need(json.loads(json.dumps(result)) == stored, "receipt mismatch: " + name) + + +if __name__ == "__main__": + word, parent, cuts = sources() + net = apply(parent, cuts, word["frames"]) + sys.stdout.buffer.write(encoded(layout(word, net))) diff --git a/research/p104-helper-quotients/vendor/selected-bit-ambient.json b/research/p104-helper-quotients/vendor/selected-bit-ambient.json new file mode 100644 index 0000000000..cd19f356a5 --- /dev/null +++ b/research/p104-helper-quotients/vendor/selected-bit-ambient.json @@ -0,0 +1,98 @@ +{ + "name": "bit-ambient", + "command": [ + "/usr/local/bin/python3.12", + "-I", + "-B", + "docs/research/pr-intake-evidence/pr7000-admission/check_bit_ambient.py" + ], + "base": "17469fff78c22941280f04d39dc5a1faee09c840", + "started_at": "2026-11-10T13:34:04.485882+00:00", + "exit_code": 0, + "wall_seconds": 0.26789799984544516, + "peak_sampled_descendant_kib": 1600, + "stop": null, + "limits": { + "seconds": 30, + "descendant_kib": 1048576, + "sampling_seconds": 0.2, + "serial": true + }, + "python": "3.12.8 (v3.12.8:2dc476bcb91, Dec 3 2024, 14:43:19) [Clang 13.0.0 (clang-1300.0.29.30)]", + "platform": "macOS-26.6.2-arm64-arm-64bit", + "source_sha256": { + "research/shared-wire-split-composition/native-accounting.json": "ec4f2657a6c172a16c68e958e865ef7bf5217a47814fb506e6e144d19daeaebc", + "research/shared-wire-split-composition/INDEPENDENT-NOTICE.md": "cadbc642ca84311d2c7a6cf704c7828cb4cf77e3c784b66e4c6e8a5c28002fb8", + "research/shared-wire-split-composition/INDEPENDENT-SOURCES.json": "dced1457df5230466ba6202fd6d4595bc2b7fb2a65302806bf2720b1837ff350", + "research/shared-wire-split-composition/SOURCES.json": "c66f8049a4e4bf9890d5f7d9f386de2c4897490f8f5e48edcc69a54b9333d103", + "research/shared-wire-split-composition/NATIVE-INPUTS.json": "9bb6c1567783661334d6c1d23f715ce5635cbbb513678819ab9e020a34c7e4c0", + "research/shared-wire-split-composition/VERIFY.json": "f27f759db9707cf5e8e4a331ca509401186c994ed661a9f4b480961642d5544f", + "research/shared-wire-split-composition/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "research/shared-wire-split-composition/INDEPENDENT-REVIEW.md": "c24c7ee899c258420e281afe4e6dfcd890adf552b469822a38c13898bcd2a936", + "research/shared-wire-split-composition/compose.py": "f057d659243575529cfd89a5534c8f333d0716897ee495bfe3de67eeb0970c20", + "research/shared-wire-split-composition/interval_gate.py": "60a743d13f668ef86db4b8215b4d5d04430a671ba6f1fe06d9c1c4c3dfe86da5", + "research/shared-wire-split-composition/reproduce.py": "9b9fca18bf28c627ff29ba06048503af0cb5f27a4ffabeadffed50e0678c96c9", + "research/shared-wire-split-composition/FULL-RESULT.json": "d9ba709fa5dcefffe3f3abdcf34600ce188224703cfd743e6db8b58ba4816cb7", + "research/shared-wire-split-composition/TASK.json": "60e22522e87684c068f32c8ec687305f2be934f2800e2f10a55483bff02506a1", + "research/shared-wire-split-composition/VALIDATION.md": "582d71db76db5ac7bcfb2f9a962479d1a76d321c7536f08347f16fe01ec9d52e", + "research/shared-wire-split-composition/chart_delta.json": "881bc1bb93e1738aa9269f41af6db0ef80b377920aed6f91e79b9b6ed70e5deb", + "research/shared-wire-split-composition/independent.py": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "research/shared-wire-split-composition/NOTICE": "da12736e2e824167ff56f2ecb623a5f88f75a270410360890f61dffc33bab249", + "research/shared-wire-split-composition/chart_delta.py": "865f1e526663cb6e53092db66b5fdabae5ed37a0afe7520bdbe1bb21d0266d38", + "research/shared-wire-split-composition/README.md": "f8d540c9f505d5856416897c231bcb9186f873f6148b68b9f23fedac70313831", + "research/shared-wire-split-composition/split_build.py": "54f80d3c557175acfc2cf13059f00f004be3f18fb6c76946e05efe8ca8b5f33a", + "research/shared-wire-split-composition/independent_construction.py": "1e8d66885afce4181ff6195c31aa3445886410b13faf1c8c7321f3ae7fc9554e", + "research/shared-wire-split-composition/precision_replay.py": "850d9098c5946ab27ef5228acc54d59df2196e72259d3e21588ec0c319c8f5ee", + "research/shared-wire-split-composition/VERIFY-INDEPENDENT.json": "820992b885fffaee53854be2c0200b7d4bf96ec678c305b1eff3e6be1364b3e3", + "research/shared-wire-split-composition/CONSTRUCTION-REVIEW.md": "038392a7c5f1705b1978bcc35f9dc889d4ccd457a1f32c384a500c81259e978b", + "research/shared-wire-split-composition/build_wire.py": "b0e1f38dd70f7c1a6f4d9ec8289c76747f558dc8e1ba44b22dd58ff82870e6bd", + "research/shared-wire-split-composition/full_verify.py": "08134736288c3a1067d61185f195c645aa2624051b45c808b2447360d2d20ae0", + "research/shared-wire-split-composition/verify.py": "d2a291f8f4ea6dce51648ba44614d655b47e8e38d235458ac64924af7552b57b", + "research/shared-wire-split-composition/CONSTRUCTION.md": "40249ccc0854393aa3a6ff14845879407ebeb0bc365f14c49ab155489addb436", + "research/shared-wire-split-composition/frozen/verify_host3_odd.py": "e75ad2096ba2587d1dc9c8982b2c2eb7c6fd2636a80adcd943314ef2cf6fd258", + "research/shared-wire-split-composition/frozen/clifford_exact.py": "2982ead07721e83358dc67c6f49c2b4c16a236a6bebdfd72f58221be1f5d0962", + "research/shared-wire-split-composition/frozen/physical.py": "4e995d1158033d83bf69b671f23dc7924d66edbbe07623ba063ba7421234ea20", + "research/shared-wire-split-composition/frozen/native_verify.py": "3049471905b47b385c88378a1a3be7a18b8858aadd035b8a6da2f4a03b470f38", + "research/shared-wire-split-composition/data/caller.json": "3828d53e80ea97e8b866320f081af20b6b93bfebd58b95b56b85a7afe151af5e", + "research/shared-wire-split-composition/data/split759.proof.json": "35f8b64110957b6f51fd8dd0e53326c466e2ffeecf9254012f0e55a5275bea81", + "research/shared-wire-split-composition/data/bit-admission.json": "a46b6c6040f75184cab5467656811ad988c216e3bc8e44d595a5015b6e49620b", + "research/shared-wire-split-composition/data/split759_450.proof.json": "78b25749911131b50bb4565b17a06d08ccf4b511ec05e598e7f146c96aed4174", + "research/shared-wire-split-composition/data/wh_6937.json.gz": "25326dac562fa07edd28a6daf302de0c27f5f2e82f610eaf3671d39575f8dbea", + "research/shared-wire-split-composition/data/final.json.gz": "2b94953dc14a122e3ef089633f05b58ec689ec5156feb7c784ed3e137dc01883", + "research/shared-wire-split-composition/data/extra_wire_spec.json": "b065bd6c3b0762bc90f5cd0a0c1fb6b9664edefc5a1becbff6734a72ab7698d8", + "research/shared-wire-split-composition/data/main_6936.json.gz": "273e81f176f001684b1fa3eb857992bf58b54748004fcfe806b83adb48d2cc00", + "research/shared-wire-split-composition/retained/query-only-precision-envelope/envelopes.py": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "research/shared-wire-split-composition/retained/query-only-precision-envelope/source_binding.py": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "research/shared-wire-split-composition/retained/odd-native-common-grid/independent_bounds.py": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "research/paired-query-only-bit/SOURCES.json": "1037b0a2d0d60d998630d0d6faf80bc8f2d4351ba1a50dcdfa9f7e86e44019fd", + "research/paired-query-only-bit/PROOF.md": "3c32eb61bec108aceee3d2d676c2c115391f5d0f9845ac209214bb58ef4ebee4", + "research/paired-query-only-bit/INDEPENDENT-REVIEW.json": "e44a7204dcac835817e89be12fc0fb33d981c99ed6ebc3e33b48e49d2fdaeeb3", + "research/paired-query-only-bit/VERIFY.json": "774280bdef625e08e3f854a0f886f65b4283db17fcb397efe7556f97082cbaad", + "research/paired-query-only-bit/check.py": "460ed9a77d66264b00c31d0a7f8dab1db9aab21ec4cc0eaf0452bd4be4ef585e", + "research/paired-query-only-bit/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "research/paired-query-only-bit/EFREE-CALLER.json.gz": "757b3523798f840bdb02028b23708c3416627a99ea09e7a3c4bcdc5cd0c7ce4b", + "research/paired-query-only-bit/EFREE-RESULT.json": "a46b6c6040f75184cab5467656811ad988c216e3bc8e44d595a5015b6e49620b", + "research/paired-query-only-bit/TASK.json": "4c76a0988a076598a22473b2849f062116e09613939a4a4fb672e5792c5c7906", + "research/paired-query-only-bit/VALIDATION.md": "1cc6f940cf4ce1cc6c54c9d07fd2574c1bdbb543097eede31ad78836b1918903", + "research/paired-query-only-bit/NOTICE": "8c73eaf46327f01b4cfc18640b5e5f552648fc5e4427cbccd42af5e7ecd3b732", + "research/paired-query-only-bit/README.md": "cfdb5e13f1b7571a76f6d645eb3bcc703e545e55a34a6fdc08a8e6f96ba1a9a8", + "research/paired-query-only-bit/INPUT-PINS.json": "84007e990d41cf4aac3cd9c1a08984b895fff20acdefc99d464262ec2ad694d4", + "research/paired-query-only-bit/independent/bit_review.py": "6db4b1657bac033ed526fb714b4830b51ae2260d2ce11c3ef0b9e907cadd47db", + "research/paired-query-only-bit/independent/interval_gate.py": "8dc2bc4c64cba3f83c664373984a075f1a14b4d53958084091345c8cab189dec", + "research/paired-query-only-bit/data/selected_review.md": "8bd158b8ef68202000f167b9b78db0b31531b5b067b5cbd91b5bf35f3ddd1ab6", + "research/paired-query-only-bit/data/selected_record.json": "9b8d0eea95b3bf0dfcb7938a732a6439b87a2685dec2a5ab9e525b3b34debbfa", + "research/paired-query-only-bit/data/selected_claim.json": "9cee8a1304fa893be3d3b641eda42fdd9b2fd6a5ac2124fb891de7a1a5e8d92e", + "research/paired-query-only-bit/data/query_only_6980.json": "3828d53e80ea97e8b866320f081af20b6b93bfebd58b95b56b85a7afe151af5e", + "research/paired-query-only-bit/data/6980_PROOF.md": "0cede285a98dd61b78020651202729c6d9cd16fb078ee5fe9a01aa2400df5432", + "research/paired-query-only-bit/data/6834_result.json": "5c3dd8b954de767e41ec7b3d51895ed8c28968d39cb6af57a84c01683f5780ae", + "research/paired-query-only-bit/retained/audit_binary_mixed.py": "bb6616dbf536acf10163b8fff65ebfa69d01dfdeda3c0ead388c03377361b298", + "research/paired-query-only-bit/retained/NOTICE": "620e4ec6f537fa1c071f019ac92fa0e4eec8ab487c811e84153292b981de0424", + "research/paired-query-only-bit/retained/inputs/independent_interval.py": "9293f567aa4afd9b4e618f1cddd3cf66eea51c5e194e3c578e7a8f4db6e04a57", + "research/paired-query-only-bit/retained/inputs/BIT-NATIVE-WORD.json.gz": "51203e7fc75ba10bd3ac3f8e675759f47e13d262bea66b6600d1e515095cad78", + "research/paired-query-only-bit/retained/inputs/credited_trim.py": "fcff17fdd3108be68761fbde0fcbfe218be166cf518c99f7163e60d53ab785d9", + "research/paired-query-only-bit/retained/inputs/inputs/exact_arithmetic.py": "0ce7e7137422d5ffeda22085c81fa88471bbe963100fdad62e659f1e3bf89326" + }, + "source_unchanged": true, + "log": "bit-ambient.log", + "log_sha256": "90e8b8bba405ec40d89c6f522cceb48fe873e51527f39a88d0c61b4f1990f98e" +} diff --git a/research/p104-helper-quotients/vendor/selected-claim.json b/research/p104-helper-quotients/vendor/selected-claim.json new file mode 100644 index 0000000000..c9b816f844 --- /dev/null +++ b/research/p104-helper-quotients/vendor/selected-claim.json @@ -0,0 +1,65 @@ +{ + "schema": "proposed-conditional-integer-multiplication-claim/1", + "kappa": "363005817/100000000000", + "source_result": "research/shared-wire-split-composition/FULL-RESULT.json", + "uniform_templates": [ + { + "family": "complex", + "rank_encoding": "2^14174600000000000000", + "saving": "181502908503/50000000000000", + "ambient": 153 + }, + { + "family": "BIT before cover", + "rank_encoding": "2^296630000000000", + "saving": "38525299/10000000000", + "ambient": 134 + } + ], + "covered_BIT_saving": "19262649/5000000000", + "ordinary_BIT_saving": "4815653101/1250000000000", + "admitted_BIT_saving": "12039/3125000", + "complex_BIT_premise": "376669/100000000", + "BIT_bootstrap": [ + "17/5000", + "38507/10000000", + "12039/3125000" + ], + "nine_outer_savings": { + "main_transform": "36300581700299636994182997/10000000000000000000000000000", + "global_coordinate_router": "90751454251/25000000000000", + "fused_gaussian": "36300581700398910982548991/10000000000000000000000000000", + "group_bit_router": "9075145425124727745637247/2500000000000000000000000000", + "group_scans": "49999999999999/50000000000000", + "boundary_algebraic_matrix": "36300581700399636994182997/10000000000000000000000000000", + "sparse_union_movement": "4098800581700399636994182997/10000000000000000000000000000", + "polynomial_products": "99999999999999/100000000000000", + "microbox_face_corrections": "1925000000000001/25000000000000" + }, + "outer_formula_source": "research/shared-wire-split-composition/interval_gate.py", + "limiting_outer_saving": "36300581700299636994182997/10000000000000000000000000000", + "strict_limiting_slack": "299636994182997/10000000000000000000000000000", + "assumptions": [ + { + "id": "native_all_columns", + "statement": "Retained native operators, phase conventions, spectators and whole-job adapters work at every positive column multiplicity." + }, + { + "id": "owned_erasure", + "statement": "Owned streams and suspended centers obey the retained allocation, erasure and ownership contracts." + }, + { + "id": "compiler", + "statement": "The finite mixed-target compiler and chronological product, completion and splitting satisfy the retained uniform closure contract." + }, + { + "id": "precision_tape", + "statement": "Retained fixed-tape movement and precision/storage prescriptions apply to the new fixed finite template." + }, + { + "id": "analytic_recovery", + "statement": "Analytic decomposition, fine-prime avoidance and exact integer recovery follow the retained upstream/outer framework." + } + ], + "scope": "Conditional shared-native mixed caller with exact common-grid scalar service; five inherited assumptions. No materialized uniform word, complete multiplier, independent human proof or formal-kernel acceptance." +} diff --git a/research/p104-helper-quotients/vendor/selected-validation.json b/research/p104-helper-quotients/vendor/selected-validation.json new file mode 100644 index 0000000000..7291ce5ab9 --- /dev/null +++ b/research/p104-helper-quotients/vendor/selected-validation.json @@ -0,0 +1,223 @@ +{ + "schema_version": 1, + "status": "admitted_conditional", + "base": "f16923d466a6aba912299882e0545564d2ba7bb2", + "source_heads": { + "7000": "93effe2a135bf57b9e484cb630d8dd057159aec9", + "7001": "d777f3a0aa2878bea0478918923dabcf86b9878b" + }, + "selected_frontier_changed": true, + "selected_kappa": "0.00363005817", + "previous_kappa": "0.003125804", + "registered_replays_complete": true, + "all_jobs_finished": true, + "receipts": [ + { + "name": "bit-primary", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/bit-primary.json", + "sha256": "2bd4ae504350b8189e5a25c8e55212666ad15e16e3d85a824691513f0f498b11", + "wall_seconds": 13.74172916682437, + "peak_sampled_descendant_kib": 32544, + "exit_code": 0 + }, + { + "name": "bit-independent", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/bit-independent.json", + "sha256": "16088896d2b49bb81d17b778f162e41aee988188d79e76bdffe967ac0e9d40ff", + "wall_seconds": 0.4980977922677994, + "peak_sampled_descendant_kib": 34128, + "exit_code": 0 + }, + { + "name": "complex-primary", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/complex-primary.json", + "sha256": "fab9a2ead4a6212f3bc262a8da1019a623c420af02a38edb63807516b5cee8bf", + "wall_seconds": 99.33472337480634, + "peak_sampled_descendant_kib": 241472, + "exit_code": 0 + }, + { + "name": "complex-independent", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/complex-independent.json", + "sha256": "cbecd914e3a231b915ab4826a0046c0118fe1c800f2cca5a5c1e9586aa87d7e7", + "wall_seconds": 84.73606283264235, + "peak_sampled_descendant_kib": 110064, + "exit_code": 0 + }, + { + "name": "complex-physical", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/complex-physical.json", + "sha256": "fab7f7e00d40a09508a5bee285dc8fb33f06c92f48ed86e1f99affc35207627c", + "wall_seconds": 80.88798883417621, + "peak_sampled_descendant_kib": 699600, + "exit_code": 0 + }, + { + "name": "owned-factorizations", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/owned-factorizations.json", + "sha256": "938d1791dc320d7fa0bdb44ef318641960798823cd66c4074a037bb9c7682bd9", + "wall_seconds": 22.427095042075962, + "peak_sampled_descendant_kib": 102480, + "exit_code": 0 + }, + { + "name": "lambda-algebra", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/lambda-algebra.json", + "sha256": "bc871b73eaf56318c8be84b117c6f8e7eed8db4e0f9d0ab729eeb5d425a4a1d7", + "wall_seconds": 0.5506485840305686, + "peak_sampled_descendant_kib": 17728, + "exit_code": 0 + }, + { + "name": "bit-ambient", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/bit-ambient.json", + "sha256": "437ad2f9e7956e7f2b477b546f53a6c8cfa0567e207024300e9a7e58d3c0202c", + "wall_seconds": 0.26789799984544516, + "peak_sampled_descendant_kib": 1600, + "exit_code": 0 + }, + { + "name": "bit-ambient-optimized", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/bit-ambient-optimized.json", + "sha256": "977abde2a364af1a0153033f759cc2d90ea79b6f266bcdbb0830c52d22976ded", + "wall_seconds": 0.26918487483635545, + "peak_sampled_descendant_kib": 2272, + "exit_code": 0 + }, + { + "name": "interface-bindings", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/interface-bindings.json", + "sha256": "e3313b43b32169fba878600b43a722c51cce770f685f151433a7addeff25c3d3", + "wall_seconds": 0.28022624971345067, + "peak_sampled_descendant_kib": 1920, + "exit_code": 0 + }, + { + "name": "interface-bindings-optimized", + "receipt": "docs/research/pr-intake-evidence/pr7000-admission/interface-bindings-optimized.json", + "sha256": "030311e1fcdf372c059545a8c355cf09b4931fda34b7759333406f14d837b2bd", + "wall_seconds": 0.28489804081618786, + "peak_sampled_descendant_kib": 4832, + "exit_code": 0 + }, + { + "name": "application", + "receipt": "docs/research/pr-intake-evidence/pr7000-application/application.json", + "sha256": "b6ca671c7101674a40a2c30fdea0ec95f08f9b61bbc9a0926d38da9a6942e14b", + "wall_seconds": 49.84868695773184, + "peak_sampled_descendant_kib": 105232, + "exit_code": 0 + }, + { + "name": "application-optimized", + "receipt": "docs/research/pr-intake-evidence/pr7000-application/application-optimized.json", + "sha256": "f8989171cd7561dccd1ce0db3a7cb119640b965d7f6212d21e9f2d7f16590365", + "wall_seconds": 38.167422249913216, + "peak_sampled_descendant_kib": 106320, + "exit_code": 0 + }, + { + "name": "scalar", + "receipt": "docs/research/pr-intake-evidence/pr7000-application/scalar.json", + "sha256": "d3eb6cf49dd74cc78ea85703236ec1e31a84b6c52e5a42311a65b7a19faeb669", + "wall_seconds": 10.96639662515372, + "peak_sampled_descendant_kib": 47040, + "exit_code": 0 + }, + { + "name": "scalar-optimized", + "receipt": "docs/research/pr-intake-evidence/pr7000-application/scalar-optimized.json", + "sha256": "13e86b7a72e98e8189c964969b43fb055291f5b2efa92fc7ca63e5bf6b8324bb", + "wall_seconds": 15.716162957716733, + "peak_sampled_descendant_kib": 45600, + "exit_code": 0 + }, + { + "name": "native-catalogue-0", + "receipt": "docs/research/pr-intake-evidence/pr7000-application/native-catalogue-0.json", + "sha256": "60911939b399975817334f2ab0e33e1b3d15ac937baab1bc82573f18c761766e", + "wall_seconds": 222.34261462511495, + "peak_sampled_descendant_kib": 58640, + "exit_code": 0 + }, + { + "name": "native-catalogue-1", + "receipt": "docs/research/pr-intake-evidence/pr7000-application/native-catalogue-1.json", + "sha256": "d7cb2b5ac7ebdfdde129877916bded5c5dfc386316b6395dbe58ebbefdd7c69d", + "wall_seconds": 249.59168437542394, + "peak_sampled_descendant_kib": 58624, + "exit_code": 0 + }, + { + "name": "native-catalogue-2", + "receipt": "docs/research/pr-intake-evidence/pr7000-application/native-catalogue-2.json", + "sha256": "2e1f8fd8e4504b2495d07488bf9831e913c706a3e94d1c4de3c1866c585cacaa", + "wall_seconds": 338.04289187537506, + "peak_sampled_descendant_kib": 59712, + "exit_code": 0 + } + ], + "historical_input_aliases": { + "cc723faaf0d182693f69d51ad8a5b3d483103e4a8d0e2ecbbcb5e1508e77404e": "docs/research/pr-intake-evidence/pr7000-application/orchestration-initial.txt", + "8b8067cfd88d785a74c68e8b8e519b3b90c2122298aa3c1b29cb51efea164b63": "docs/research/pr-intake-evidence/pr7000-application/orchestration-monolithic.txt" + }, + "nonexecuted_inventory_changes": { + "scalar": { + "docs/research/pr-intake-evidence/pr7000-application/check_application.py": "c44411369b8bfa66ed2865b0be15ccb45b7410d0a34d2fa24b6fe0fc6a08b17d" + }, + "scalar-optimized": { + "docs/research/pr-intake-evidence/pr7000-application/check_application.py": "c44411369b8bfa66ed2865b0be15ccb45b7410d0a34d2fa24b6fe0fc6a08b17d" + } + }, + "nonexecuted_inventory_changes_reason": "The scalar harness inventoried check_application.py but did not execute or import it. Later changes added application controls; both application modes then passed at its current hash. Both exact scalar executions used the unchanged current scalar checker. Orchestration snapshots retain the earlier harness bytes.", + "prior_review_checker_sha256": { + "check_bit_ambient.py": "e8dabd0285c2ea84472a588a0f6f56e0a7865535ba5f0109db56b08cb7e79886", + "check_interface_bindings.py": "24f5a3c1660b2490981c3af2bd00791c95a0eae373b20db08854d61362c5e08f" + }, + "failed_attempt": { + "receipt": "docs/research/pr-intake-evidence/pr7000-application/native-catalogue.json", + "sha256": "aed71658d6b85b37c44bfb961c9f56c7d72e625b9d5fcc8b492b75d17ce4aa6c", + "original_checker": "docs/research/pr-intake-evidence/pr7000-application/native-catalogue-monolithic.txt", + "scope": "600-second monolithic timeout; no successful coverage reused. Disjoint bounded parts replace it." + }, + "coverage": [ + "All five registered candidate/BIT checks reused at unchanged scientific input hashes.", + "Current complete native catalogue: 3057 maps, 104 main boundary pairs, exact signed Pauli action and absolute Gaussian phase.", + "All 14400 complex native contacts and current paid-owner lists; all 636 BIT frames and 111 main charts.", + "Exact fixed-rational scalar reference normal/optimized; common-grid and fixed-tape scan application supplied in the review.", + "Current root/complete-spectator layouts, owned lifetimes, full cost units and fresh thresholds applied under the same five assumptions." + ], + "remaining": [], + "retained_assumptions": [ + { + "id": "native_all_columns", + "statement": "Retained native operators, phase conventions, spectators and whole-job adapters work at every positive column multiplicity." + }, + { + "id": "owned_erasure", + "statement": "Owned streams and suspended centers obey the retained allocation, erasure and ownership contracts." + }, + { + "id": "compiler", + "statement": "The finite mixed-target compiler and chronological product, completion and splitting satisfy the retained uniform closure contract." + }, + { + "id": "precision_tape", + "statement": "Retained fixed-tape movement and precision/storage prescriptions apply to the new fixed finite template." + }, + { + "id": "analytic_recovery", + "statement": "Analytic decomposition, fine-prime avoidance and exact integer recovery follow the retained upstream/outer framework." + } + ], + "reuse_invalidation": "Any changed executed checker, source data, imported engine, occurrence recipe or application premise invalidates its affected coverage. Orchestration-only historical aliases and the scalar job's nonexecuted application checker are explicit. The previous selected record is preserved byte-for-byte as frontier6030.json.", + "scope": "Maintainer conditional application admission; finite checks and a written specialization, not a complete multiplier, independent human proof or formal-kernel acceptance.", + "review_files_sha256": { + "PROOF-REVIEW.md": "4501502c2ceb9759b20372435fe4beb51082c5a5e2910c1fd5dbe6edca415055", + "SOURCES.json": "8fa7eb44bcc8c7d442848b9f51e9b5e26413a433ebc382f302c350981871265c", + "check_application.py": "d98987db98553dc55bfc80e3ca47abfcd51c57af6f8cda61101391d8eae94184", + "check_exact_scalar.py": "f83e506617a92027b3ff82f28bc043e34e890951eb7f3bd930e08c6c02a04a9d", + "check_native_catalogue.py": "6120e1ea1e07eeba757694d209437a38f121b0a377cc466889a30fa52c561472", + "replay_bounded.py": "ed8324a1f126d3282e312ecc252e4f4847ec50aed9e8b70d00b98d4b9ab96a16" + } +} diff --git a/research/p104-helper-quotients/vendor/upstream_application.py b/research/p104-helper-quotients/vendor/upstream_application.py new file mode 100644 index 0000000000..1a6d358cbe --- /dev/null +++ b/research/p104-helper-quotients/vendor/upstream_application.py @@ -0,0 +1,369 @@ +#!/usr/bin/env python3 +"""Exact-source caller geometry, occurrence allocation and rational BIT frames. + +No contributor scientific module is imported. Complex phase-polynomial +method credited to the retained fragment physical audit; here coefficients +of the full degree-two polynomial are constructed instead of probing it. +OpenAI Codex assistance for Douglas Colkitt. Apache-2.0. +""" +from collections import Counter +from copy import deepcopy +from fractions import Fraction as Q +from hashlib import sha256 +from pathlib import Path +import gzip +import json + +HERE = Path(__file__).resolve().parent +ROOT = HERE.parents[3] + + +def need(ok, message): + if not ok: + raise ValueError(message) + + +def read(path): + raw = (ROOT / path).read_bytes() + pin = next(p for p in json.loads((HERE / 'SOURCES.json').read_text())['files'] + if p['path'] == path) + need(sha256(raw).hexdigest() == pin['sha256'], 'source bytes: ' + path) + return json.loads(gzip.decompress(raw) if path.endswith('.gz') else raw) + + +def digest(value): + return sha256(json.dumps(value, sort_keys=True, separators=(',', ':')).encode()).hexdigest() + + +def bits(n): + result = [] + while n: + a = n & -n + result.append(a) + n ^= a + return result + + +def dot(a, b): + return (a & b).bit_count() % 2 + + +def terms(items): + c = Counter() + for v, a in items: + c[v] += a + return {v: a % 4 for v, a in c.items() if v and a % 4} + + +def sub(a, b): + return terms(list(a.items()) + [(v, -c) for v, c in b.items()]) + + +def polynomial(t): + # parity(sum x_i) = sum x_i - 2 sum_{i 0, 'positive complete helper job') + T[rank] += 1 + need(len(mapping) == len(set(mapping.values())) == word['public'], 'injective native inputs') + for r in range(word['public'], word['public']+word['owned_fields']): + mapping[r] = ('owned', ci, r-word['public']) + need(len(set(mapping.values())) == word['public']+51, 'owned/public separation') + for ni, move in native_moves: + _, r, start, end, owned = move + rank = abs(len(word['frames'][end])-len(word['frames'][start])) + need(owned == (r >= word['public']) and rank > 0, 'actual paid owner class') + P[rank] += 1 + occurrences.append([ci, ni, list(mapping[r]), rank, start, end]) + for pi, q in enumerate(word['ports']): + transform = route(q, by_q[q], stage) + before_axes = [1 << j for j in range(9+8*(stage-1))] + after_axes = [1 << j for j in range(9+8*stage)] + spectator = [1 << j for j in range(9, 9+8*stage)] + x0 = terms((a, 1) for a in before_axes) + y0 = terms(list(x0.items())+[(q, -1)]) + x1 = terms((a, 1) for a in after_axes) + y1 = terms(list(x1.items())+[(q, -1)]) + nx0 = terms([(a, 1) for a in spectator]+[(q, 1)]) + ny0 = terms((a, 1) for a in spectator) + nx1 = terms((a, 1) for a in spectator+[1 << j for j in range(9)]) + ny1 = terms(list(nx1.items())+[(q, -1)]) + shifts = [boundary(a, b, transform) for a, b in + ((x0, nx0), (y0, ny0), (nx1, x1), (ny1, y1))] + body = terms((1 << j, 1) for j in range(9+8*(stage-1), 9+8*stage)) + for actual, expected in ((sub(x1,x0),body), (sub(y1,y0),body), + (sub(y1,x0),terms(list(body.items())+[(q,-1)])), + (sub(x1,y0),terms(list(body.items())+[(q,1)]))): + need(not polynomial(sub(actual,expected)), 'all four contact operators') + need(polynomial(sub(terms([(q,1)]),terms([(q,-1)]))), 'wrong query orientation rejected') + phase_records.append([ci,pi,shifts,2 if pi in second else 1]) + else: + ty, op, r, *a = e + kind = caller['types'][ty] + used = [r] + ([a[0]] if op in ('ADD','SWAP','QUERY') else []) + need(all(kind['offset'] <= x < kind['offset']+kind['roles'] for x in used), 'caller owners stay in type') + need(len(used) == len(set(used)), 'distinct scalar/query owners') + if op in ('QUERY','IDLE_ONE'): + if op == 'QUERY': + need(a[1] in (-1,1), 'signed completed query') + rank = 1; query_uses += len(kind['ports']) + else: + selected = a[0] + need(selected and len(selected)==len(set(selected)) + and all(1 <= s <= 18 for s in selected), 'whole idle stage axes') + rank = 8*len(selected); idle_uses += len(kind['ports']) + for pi in kind['ports']: + owner = ['query_scratch',ci,pi] if op == 'QUERY' else ['main',pi,r] + occurrences.append([ci,op,owner,rank]); P[rank] += 1 + elif op == 'LAMBDA': + need(a[0] in (-1,1), 'global normalizer sign') + lambda_uses += len(kind['ports']) + need(stage_order == list(range(1,19)), 'fresh chronological native stages') + for kind in caller['types'].values(): + for diagonal in kind['diagonal']: + qp, zero, *selection = diagonal + need(qp in (-1,0,1) and zero == 0 and len(selection)==18 + and set(selection)<={0,1} and any(selection), 'positive nonempty root endpoint') + rank = abs(qp)+8*sum(selection) + for pi in kind['ports']: + q = word['ports'][pi] + axes = [1 << (9+8*j+k) for j,yes in enumerate(selection) if yes for k in range(8)] + actual = terms([(q,qp)]+[(a,1) for a in axes]) + target = terms((a,1) for a in ([q] if qp else [])+axes) + need(translation(sub(target,actual)) == (q if qp == -1 else 0), 'whole output correction') + T[rank] += 1 + for name, actual in [('P',P),('T',T)]: + need(actual == Counter({int(k):v for k,v in receipt['invoice'][name].items()}), 'independent '+name+' invoice') + need(sum(T.values()) == len(owners), 'every productive target is one actual owner') + need(len(occurrences) == sum(P.values()), 'every paid position retained in order') + return dict(ambient=153, native_calls=18, native_public=1480, fresh_helpers=19440, + productive_fields=len(owners), paid_positions=len(occurrences), + complete_paid_position_digest=digest(occurrences), + native_contact_boundaries=sum(4*r[3] for r in phase_records), + phase_record_digest=digest(phase_records), nonzero_boundary_translations=sum(sum(bool(x) for x in r[2])*r[3] for r in phase_records), + reserved_native_banks=18*51, reserved_serial_query_lambda_bank=1, + query_uses=query_uses, idle_uses=idle_uses, lambda_uses=lambda_uses, + paid=dict(sorted(P.items())), targets=dict(sorted(T.items())), + rank_surplus=sum(r*T[r] for r in T)-sum(r*P[r] for r in P)) + + +def inverse(matrix): + n = len(matrix) + a = [[Q(x) for x in row]+[Q(i==j) for j in range(n)] for i,row in enumerate(matrix)] + det = Q(1) + for j in range(n): + pivot = next((i for i in range(j,n) if a[i][j]),None) + need(pivot is not None, 'rational basis invertible') + if pivot != j: + a[j],a[pivot] = a[pivot],a[j]; det = -det + v = a[j][j]; det *= v; a[j] = [x/v for x in a[j]] + for i in range(n): + if i != j: + v = a[i][j] + a[i] = [x-v*y for x,y in zip(a[i],a[j])] + return [row[n:] for row in a], det + + +def bit_application(word, caller, receipt): + ff = word['frames']; determinants=[]; denominator_witnesses=set() + for label, frame in ff.items(): + B,A = frame['B'],frame['A']; d = frame['dim'] + need(len(B)==d and len(A)==8-d and all(len(v)==8 for v in B+A), 'rational frame dimensions') + need(all(sum(Q(x)*Q(y) for x,y in zip(b,a))==0 for b in B for a in A), 'complement annihilation') + inv, det = inverse(list(zip(*(B+A)))) + determinants.append([label,str(det)]) + denominator_witnesses.add(abs(det.numerator)); denominator_witnesses.add(det.denominator) + for row in inv: + denominator_witnesses.update(x.denominator for x in row) + for row in B+A: + denominator_witnesses.update(Q(x).denominator for x in row) + charts=[] + for port in range(111): + head=ff[str(word['start'][port])]; body=ff[str(word['final'][port+111])] + need(head['dim']==1 and body['dim']==7, 'actual main head/body ranks') + u=head['B'][0] + need(all(sum(Q(x)*Q(y) for x,y in zip(u,v))==0 for v in body['B']), 'main complement') + inv,det=inverse(list(zip(*([u]+body['B'])))) + charts.append([port,str(det)]) + denominator_witnesses.update([abs(det.numerator),det.denominator]) + for row in inv:denominator_witnesses.update(x.denominator for x in row) + P,T=Counter(),Counter(); positions=[]; names={('main',pi,r) for pi in range(111) for r in range(38)} + calls=[] + for ci,e in enumerate(caller['events']): + op=e[0] + if op=='LOCAL': + _,stage,src,dst=e; calls.append(stage) + mapping={i:('main',i,src) for i in range(111)} + mapping.update({i+111:('main',i,dst) for i in range(111)}) + for r in range(222,word['public']): + owner=('helper',ci,r); need(owner not in names,'fresh BIT helper');names.add(owner);mapping[r]=owner + T[abs(ff[str(word['start'][r])]['dim']-ff[str(word['final'][r])]['dim'])]+=1 + need(len(mapping)==len(set(mapping.values()))==659,'injective BIT occurrence') + for r in range(659,659+word['owned_fields']):mapping[r]=('owned',ci,r-659) + for ni,move in enumerate(word['program']): + if move[0]=='MOVE': + _,r,a,b=move;rank=abs(ff[str(a)]['dim']-ff[str(b)]['dim']) + P[rank]+=1;positions.append([ci,ni,list(mapping[r]),rank,a,b]) + elif op=='QUERY': + need(e[1]!=e[2] and 0<=min(e[1:])<=max(e[1:])<38,'BIT query owners') + for pi in range(111):P[1]+=1;positions.append([ci,op,['query_scratch',ci,pi],1]) + elif op=='IDLE_ONE': + _,owner,ss=e;need(ss and len(ss)==len(set(ss)) and all(1<=s<=18 for s in ss),'BIT idle axes') + for pi in range(111):P[7*len(ss)]+=1;positions.append([ci,op,['main',pi,owner],7*len(ss)]) + need(calls==[s for s in range(1,19) for _ in range(2)],'paired native chronology') + for d in caller['diagonal']: + need(d['q']==1 and d['stages'] and len(d['stages'])==len(set(d['stages'])),'BIT positive endpoint') + T[1+7*len(d['stages'])]+=111 + need(P==Counter({int(k):v for k,v in receipt['paid'].items()}) and + T==Counter({int(k):v for k,v in receipt['targets'].items()}),'complete BIT invoice') + need(sum(T.values())==len(names)==19950,'BIT owner count') + return dict(ambient=134, rational_frames=len(ff), rational_main_charts=len(charts), + rational_determinants_digest=digest(determinants), + finite_prime_exclusion_witness_count=len(denominator_witnesses), + finite_prime_exclusion_witness_digest=digest(sorted(denominator_witnesses)), + native_calls=len(calls), fresh_helpers=36*437, productive_fields=len(names), + paid_positions=len(positions), complete_paid_position_digest=digest(positions), + reserved_native_banks=36*word['owned_fields'], reserved_serial_query_bank=1, + rank_surplus=sum(r*T[r] for r in T)-sum(r*P[r] for r in P)) + + +def main(): + p='research/shared-wire-split-composition/' + w,c,r=read(p+'data/final.json.gz'),read(p+'data/caller.json'),read(p+'FULL-RESULT.json') + phases=read('research/p104-two-chain-shared-native/retained/runtime/DATA-PHASES.json') + complex_result=complex_application(w,c,r,phases) + p='research/paired-query-only-bit/' + bw,bc,br=read(p+'retained/inputs/BIT-NATIVE-WORD.json.gz'),read(p+'EFREE-CALLER.json.gz'),read(p+'EFREE-RESULT.json') + bit_result=bit_application(bw,bc,br) + controls={} + def reject(name, action): + try:action() + except ValueError as error:controls[name]=str(error) + else:raise ValueError('negative control accepted: '+name) + alias=deepcopy(c);joint=next(e for e in alias['events'] if e[0]=='J');joint[2][2]=joint[2][0] + reject('same_frame_main_alias',lambda:complex_application(w,alias,r,phases)) + reordered=deepcopy(c);joint=next(e for e in reordered['events'] if e[0]=='J');joint[1]=2 + reject('wrong_stage',lambda:complex_application(w,reordered,r,phases)) + bad_bit=deepcopy(bw);bad_bit['frames']['0']['A'][1]=bad_bit['frames']['0']['A'][0][:] + reject('singular_BIT_spectator_basis',lambda:bit_application(bad_bit,bc,br)) + q=w['ports'][0];basis=next(x for x in phases['recipes'] if x['q']==q)['idle_children'][0]['orthogonal_axes'][:8] + reject('singular_complex_route',lambda:route(q,basis[:-1]+basis[:1],1)) + transform=route(q,basis,1) + before=terms((1<