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-role379-idle-stop/LICENSE b/research/p104-role379-idle-stop/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-role379-idle-stop/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-role379-idle-stop/NOTICE b/research/p104-role379-idle-stop/NOTICE new file mode 100644 index 0000000000..cd7d35e2cb --- /dev/null +++ b/research/p104-role379-idle-stop/NOTICE @@ -0,0 +1,15 @@ +Apache-2.0. Clear1nsight, with substantial OpenAI Codex assistance. + +The unchanged data and upstream phase-check implementation for each +published word are under retained/pr7636 and retained/pr7658. Their +original NOTICE files credit DreamingOfClouds, Claude Opus 5.5 and the +full predecessor lineage. #7630 E6 and #7658 E2 are the source of the +silent stop used here. See SOURCE-PINS.json for exact source identities. + +The unmodified compare_recursive_invoices.py and +evaluate_recursive_power.py are from CrocSwap/integer-mult-bounds at +e54523517d0f03e58352e647c403a5af3e525a57. They retain the concave order +and invoice schema credits in their headers. The directed power +evaluator was prepared for aliromman with OpenAI Codex assistance. +The application appendix records the reused native, signed +caller and resource components with their own exact source notices. diff --git a/research/p104-role379-idle-stop/PROOF.md b/research/p104-role379-idle-stop/PROOF.md new file mode 100644 index 0000000000..5f9d2ddc6a --- /dev/null +++ b/research/p104-role379-idle-stop/PROOF.md @@ -0,0 +1,112 @@ +# Contracting the silent role-379 stay + +Let A, B and D be the ordered frames of charts 748, 1065 and 1072. Their +binary spans are strictly nested and have dimensions 3, 5 and 6. In each +source word role 379 is a public nonmain role. It travels through A → B → D, +with no tape instruction mentioning it between the two MOVEs. The edit +holds role 379 in A until the second MOVE and then sends it directly to D. + +| Source | Old MOVE at first clock | Old MOVE at second clock | New MOVE | +| --- | --- | --- | --- | +| [#7636](https://github.com/CrocSwap/integer-mult-bounds/pull/7636) | 131142, MOVE 379 748 1065 false | 131294, MOVE 379 1065 1072 false | MOVE 379 748 1072 false | +| [#7658](https://github.com/CrocSwap/integer-mult-bounds/pull/7658) | 98054, MOVE 379 748 1065 false | 98204, MOVE 379 1065 1072 false | MOVE 379 748 1072 false | + +Clocks are zero-based on each original word. Delete the old MOVE at the +first clock, and replace the old MOVE at the second clock. Every retained +event keeps its order and operands. The new MOVE has index one less than +the second original clock. Input and endpoint frames are unchanged. + +## Scalar and owned boundary + +In normalized frame coordinates a MOVE changes only the active chart. +The tapes have identical ordered INIT, ADD, COPY, SCALE and CLEAR +operations with their full coefficients and chart annotations. Induction +on this sequence gives identical normalized rows after each operation for +arbitrary public input rows. The one chart discrepancy lies on role 379 +while no instruction touches that role. The entire chronology is checked +for nesting, ownership, operands and chart co-residency on both tapes, +including the first role-379 observation after the direct MOVE. + +The same induction gives equality at the ordered CLEAR observations. +The replay checks each original live-donor certificate against the +actual rational rows at both words' CLEARs. Retained CLEAR indices after +the first deletion shift by one, with identical certificate coefficients. +The independent replay also compares the incoming and outgoing values +of retained COPYs and operations with an owned operand. It checks the +whole public row map and the terminal state of every owned field. +The open interval contains two #7658 CLEARs at source clocks 98059 and +98073. Their certificates name other live providers, and the replay +checks that both omit role 379. The corresponding #7636 interval has +no CLEARs. A valid intervening scalar observation violates the silence +check. A sign +mutation with the same recursive histogram tests whether the replay +detects a change in the row map at equal invoice. + +## Physical transition + +Use the sources' ordered signed frame convention. If \(F_X\) is the +unitary frame of chart \(X\), the canonical operator from \(X\) to \(Y\) +is \(F_Y F_X^\dagger\). On the held field, + +\[ +(F_D F_B^\dagger)(F_B F_A^\dagger) = F_D F_A^\dagger. +\] + +Intervening operations act on other fields and commute with the removed +first transition in the fieldwise operator model. This permits the +composed action to occur at the original second clock. The finite +checks compare the lowerings for both old pairs and the direct pair +against their respective canonical operators. They compare the +composition of the two old lowerings against the direct lowering. +Each comparison checks signed Pauli action and 512 exact Gaussian +columns in each direction. Multiplying the direct lowering by a +quarter-turn global phase preserves its signed Pauli tableau and changes +the basis columns in both directions. The wrong-phase control rejects +via the actual column comparison. + +## Paid invoice + +Each native call replaces paid ranks \((2,1)\) with \((3)\). It retains +the total rank mass and every productive target. For \(p=1-C\) with +\(00\). +Applying the change at all 17 native invocations reduces the rank-1 and +rank-2 paid counts by 17 each and increases the rank-3 count by 17. The +replay derives the signed caller residual by subtracting the 17 native +invoices from the declared parent invoice and checks the same complete +new invoice with two directed pricing methods. + +The numerical brackets rely on the retained caller residual and on the +applicable native, erasure, compiler, precision/tape and analytic +recovery premises. The [#7658 application evidence](application-evidence/README.md) +instantiates the signed caller, outer gate and finite resource model +for the candidate under those premises. The registered signed replay +rebuilds that caller, checks the transposed native endpoint and +recomputes all signed catalogue, boundary and outer predicates. It +authenticates the underlying paired native, CLEAR and exact grid +receipts, which have separate reproduction commands. The #7636 fixed-tape literal +requires the separately checked two-ADD lowering. A full native +and signed application of that lowered pair remains open. + +## Rounded arithmetic at the inherited boundary + +At #7658 candidate clock 100503 role 457 moves from chart 966 to 218. +Clock 100504 applies `ADD 210,457,-1/2` in chart 218. The parent clocks +are 100504 and 100505. If a coordinate of role 457 is represented by +integer grid numerator (z), the exact same-grid addend requires even +(z). A one-tick perturbation (z+1) is odd and makes the operation +undefined for an exact-halving service. The all-width supplier must +prove the requisite componentwise congruence and range bounds for each +admitted state at that boundary, or implement and charge a total rounded +ADD on the admitted domain with the corresponding error bound. The +finite exact-grid and norm-envelope checks establish the instantiated +arithmetic and magnitude bounds. The componentwise congruence of all +rounded states is an additional supplier obligation. + +## Predecessor credit + +DreamingOfClouds' [#7630](https://github.com/CrocSwap/integer-mult-bounds/pull/7630) +E6 removed the scalar use of role 379 at 1065 on the path inherited by +#7636. DreamingOfClouds' #7658 E2 removed main 176's pickup from role 379 +on its #7641 lineage. The tested edit contracts the role-379 MOVEs after +those contact changes. The parent notices retain earlier construction, +caller and source attribution. diff --git a/research/p104-role379-idle-stop/README.md b/research/p104-role379-idle-stop/README.md new file mode 100644 index 0000000000..75e5095968 --- /dev/null +++ b/research/p104-role379-idle-stop/README.md @@ -0,0 +1,186 @@ +# Conditional κ ≥ 0.0037170835567 from the role-379 contraction + +Role 379 can go directly from chart 748 to chart 1072 on both pinned +words. The removed stop at chart 1065 has no use of role 379. The direct +rank-3 MOVE replaces ranks 2 and 1 with the same absolute operator, +public outputs, owned observations and productive targets. + +The full finite #7658 candidate application supports the conservative +conditional bound **κ ≥ 0.0037170835567**, with safety probe +**0.00371708355677**. Its directed invoice crossing lies in +**[0.0037170835568, 0.0037170835569]**. The bound is 0.00000031655885 +above #7658's published upper crossing. The #7636 edit has a directed +invoice crossing in **[0.0036810345257, 0.0036810345258]** under its +declared residual and 180-CLEAR contract. + +| Pinned parent | Source events → candidate | Ordered CLEARs | Paid positions → candidate | Productive targets | Directed parent bracket | Directed candidate bracket | +| --- | ---: | ---: | ---: | ---: | --- | --- | +| [#7636](https://github.com/CrocSwap/integer-mult-bounds/pull/7636) | 202,668 → 202,667 | 180 | 109,652 → 109,635 | 22,461 | [0.0036807241001, 0.0036807241002] | [0.0036810345257, 0.0036810345258] | +| [#7658](https://github.com/CrocSwap/integer-mult-bounds/pull/7658) | 150,010 → 150,009 | 234 | 108,598 → 108,581 | 22,461 | [0.00371676699784, 0.00371676699785] | [0.0037170835568, 0.0037170835569] | + +For each comparison the paid delta is `{1: -17, 2: -17, 3: +17}`, the +targets are unchanged, and rank surplus stays at 1,424. The declared +signed invoices are retained in [the source bundle](retained/). The +replays recount native ranks from the two literal words in each case. +[The proof](PROOF.md) gives the transition identity and source clocks. [The independent review](REVIEW.md) describes the source-specific hypotheses behind the signed application. +[The discussion](https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19695810) +records the original bounded investigation. + +## Registered replay + +Both exact replays compare all 1,501 arbitrary-input public rows and +their end charts. They verify each original live-donor certificate in +both tapes. #7636 retains 1,049 ordered owned or COPY observations and +#7658 retains 1,317. For both cases the exact Gaussian checker compares +the two old transitions and the direct transition against their +canonical operators, then compares the two-step composition against the +direct transition. Each comparison covers 512 forward and 512 adjoint +columns with absolute phase. The wrong-phase control preserves the +signed Pauli tableau and is rejected by the column test. + +The mutation checker also rejects a valid intervening SCALE, an +incorrect MOVE source, an omitted direct MOVE and a changed scalar. +The separate replay rejects an illegal chart, a legal sign change with +the same recursive invoice, and a self-referential CLEAR certificate. +It independently derives the full invoices using the declared caller +residuals and encloses their price crossings with rational logarithm and +exponential bounds. The construction uses the pinned 256-bit directed +invoice evaluator. On #7658 the published exact upper at 14 decimal +places is checked by the independent replay. The construction first +refused that upper at its 13-decimal grid guard and then used the +conservative upward tick 0.0037167669979. + +| Case | Mutation and phase in original run | Separate exact replay in original run | +| --- | ---: | ---: | +| #7636 | 9.11 s / 103,088 KiB RSS | 104.30 s / 261,188 KiB RSS | +| #7658 | 14.44 s / 85,128 KiB RSS | 56.45 s / 244,204 KiB RSS | + +The separate replay applies one CPU, 2 GiB address space and 240-second +CPU and wall limits per case. Each combined command is capped at +300 seconds. The third command reruns the #7658 signed application +under a 560-second caller deadline and a 600-second registered cap. + +From the repository root on Linux with Python 3.12: + +```sh +python3.12 -B scripts/research_package.py --package research/p104-role379-idle-stop +``` + +To replay an offline copy directly, run from this package's directory: + +```sh +python3.12 -I -B verify.py 7636 +python3.12 -I -B verify.py 7658 +python3.12 -I -B application-evidence/signed-replay/replay.py --core . run --wall 560 +``` + +The first two commands check the source bytes, reconstruct the mutated +words in private temporary directories, and compare both fresh checks +against the [retained receipts](evidence/). Generated gzip encoding +may vary across Python and zlib builds. Candidate comparisons authenticate +the exact decompressed bytes, while the independent replay binds the +actual gzip bytes it read on that run. The signed replay rebuilds the +#7658 candidate in a fresh temporary directory and compares its +deterministic application results with the retained signed receipt. + +## #7658 finite application + +The [application evidence](application-evidence/README.md) records the +separate, candidate-bound native, resource and signed caller runs. The +paired native audit checked both actual words with primes 998244353 and +1000000009, exact phase at the edited transitions, all 234 ordered +CLEARs and the retained native route inventory. It bound 2,952 exact +ascent groups to predecessor phase evidence and checked the other seven +fresh. The signed candidate run recomputed the 17-call #7113 caller, all +3,030 catalogue maps and 104 boundary pairs. A global-phase mutation +rejected in each of four catalogue slices. The aliased-main and +lower-crossing controls also rejected. + +Both precision replays require the same native grid 225 × 2¹⁴, cover +24,277,036 coefficient and pre-product visits, and yield shared +context 2,064. The candidate's fixed-tape model binds ambient rank 145, +1,156 reserved native +banks, 83,895,232 scalar services and 25,147,082,048 elementary records +under the retained width and movement assumptions. Its ordinary model +totals 815,804,876 source units after charging all 51,034 native grid +conversions in addition to the inherited allowance. The outer gate +passed all 54 strict and four functional predicates. The effective BIT +subthreshold was checked as an algebraic inequality under the retained +BIT premise. The seven fixed-tape guard mutations rejected. + +The registered signed command authenticates the native, CLEAR, +independent and grid/ordinary receipts. It reruns the transposed native +endpoint, the actual 17-call signed caller, all catalogue slices and +physical boundary checks, both directed price engines, the outer gate, +and the fixed-tape checks. The [application appendix](application-evidence/README.md) +gives separate reproduction commands for the paired two-prime native +run and rational/integer grid and tariff checks. + +## Source and assumption boundary + +The catalogue is provenance at base +`e54523517d0f03e58352e647c403a5af3e525a57`. The external parent sources +are vendored at the exact commits, paths, Git blob IDs and SHA-256 +values in [SOURCE-PINS.json](SOURCE-PINS.json). The application +appendix binds its executable closure and exact receipts separately. +Git history verification for the catalogue belongs to the registered +launcher. Offline replay uses the bundled inputs and original notices. + +| Parent | Exact head | SHA-256 of original decoded word | SHA-256 of candidate decoded word | +| --- | --- | --- | --- | +| #7636 | `7e68d8dd62d9a38c0f3c942262a7a85ca7125b75` | `98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2` | `9b5b66e93f91c9538525d8d7b1278e0f203058d5cd4e1351fa06f8315fdaa555` | +| #7658 | `0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82` | `fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6` | `f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669` | + +The witnesses and bound carry #7620's five inherited assumptions: +native all-column provider, owned erasure, compiler, precision/tape +and analytic recovery. The ordinary and resource counts also carry the +same-tariff common-U assumption across the whole private extent, +including nonaliasing and return, and the retained W+26 temporary +format. The standalone price brackets use each parent's declared +#7113 residual. The application verifies the #7658 candidate's actual +signed invoice under those contracts. +The #7658 comparison preserves role 457's initial chart 281 and all 234 +CLEARs, with 52 of 68 allocated labels used. The #7636 comparison preserves +its 180 CLEARs and 68 used labels. + +On the #7658 candidate, clocks 100503 and 100504 move role 457 from +966 to 218, then apply `ADD 210,457,-1/2` in chart 218. The original +clocks are 100504 and 100505. In fixed-grid units, an even coordinate +can become odd after a one-tick perturbation. Exact same-grid halving +then fails. The all-width supplier needs a componentwise congruence +and range invariant at this boundary or a charged total rounded ADD +on all admitted states. The [proof](PROOF.md) records the obligation +alongside the finite exact-grid and norm-envelope checks. + +For #7636 the unchanged literal ADD at old clock 150836 has coefficient +`23184221/921600`. Its numerator exceeds the historical 24-bit fixed-tape +guard on the #7636 source and its MOVE-only successor. A separate matched +compilation check splits it into consecutive same-chart ADDs with +coefficients `25` and `144221/921600`. The lowered pair passes the +24-bit guard and exact grid 54,675 × 2¹⁶, preserves all 180 CLEARs and +retains context 2,164 in the fresh native and caller envelopes. Each +lowering adds 544 modeled scalar services over the 17 invocations. +The charged ordinary-model totals are 868,475,092 and 868,458,092 +respectively. Full native and signed application on the separately +hashed lowered pair remains open. + +## Credit + +DreamingOfClouds supplied both exact parent words and the initial +main-176 contact changes. #7630 E6 and #7658 E2 exposed the silent stop +on their respective lineages. The #7658 base also credits SYLforge's +#7637, Ali Romman's #7605 and Rohan Arun's signed #7113 caller. The full +lineage and retained code credits are in [NOTICE](NOTICE). Clear1nsight +prepared this package with substantial OpenAI Codex assistance. The +task scope is changed from a joint helper-basis/channel split to a +single paid native transition contraction on two exact words. + +## Open next questions + +- Independently review the exact #7658 candidate application and its + inherited rounded-domain, common-U and W+26 contracts. Start with + the exact-halving boundary and the private-field nonaliasing, + return and scratch-movement schedule across all 234 lifetimes. +- For #7636, replay the actual native and signed callers on the + separately hashed lowered pair with all 180 CLEARs and the + charged scalar and precision envelope. diff --git a/research/p104-role379-idle-stop/REVIEW.md b/research/p104-role379-idle-stop/REVIEW.md new file mode 100644 index 0000000000..d527e507ca --- /dev/null +++ b/research/p104-role379-idle-stop/REVIEW.md @@ -0,0 +1,13 @@ +# Independent review of the #7658 application + +The completed finite application supports **conditional κ ≥ 0.0037170835567** for the role-379 contraction on #7658 at head `0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82`. The decoded source and candidate SHA-256 digests are `fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6` and `f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669`. The regenerated 17-call caller preserves the #7113 serialization from head `07a76c5e2738882c0cb322278e56f6cae3c9885d`, SHA-256 `255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc`. The change is in the native provider used by that caller. [#7658](https://github.com/CrocSwap/integer-mult-bounds/pull/7658) · [#7113](https://github.com/CrocSwap/integer-mult-bounds/pull/7113) · [Signed replay result](application-evidence/signed-replay/data/EXPECTED.json) + +The direct `748 → 1072` MOVE agrees with the two-hop route on all 512 forward and 512 adjoint Gaussian columns, including absolute phase. A separately authored rational interpreter checks the row maps on all 1,501 arbitrary public inputs, all 1,569 terminal values and charts, 234 ordered CLEAR values and 1,317 protected observations. Two whole-word modular replays use primes 1,000,000,009 and 998,244,353 with seeds 11 and 37, respectively. Those seeded runs check two sampled trajectories. Arbitrary-input equality in the finite model follows from the exact operator and rational checks. [Operator proof](PROOF.md) · [Independent rational replay](evidence/pr7658/INDEPENDENT.json) · [Native physical receipt](application-evidence/receipts/native/RESULT.json) + +The actual signed invoice has 108,581 paid positions and 22,461 targets. Relative to #7658 it removes 17 paid operations each at ranks one and two, adds 17 at rank three, and preserves all targets. The ordinary upper is 815,804,876 source-model units, including the additional conversion charge at all 51,034 native sites. The outer checks use `0.0037170835567 < 0.00371708355677 < 0.0037170835568`, with compiler slack `(probe − claim)/7 = 10⁻¹⁴`. The last number is the lower endpoint of the raw crossing bracket `[0.0037170835568, 0.0037170835569]`. The interior probe, 54 strict and four functional predicates, and the inherited BIT bound `0.00376669` support the application claim at the first number. [Ordinary receipt](application-evidence/receipts/candidate/TARIFF.json) · [Signed price and outer checks](application-evidence/signed-replay/data/EXPECTED.json) + +The conclusion retains `native_all_columns`, `owned_erasure`, `compiler`, `precision_tape` and `analytic_recovery` for these specific interfaces. The caller must furnish a fresh role-457 helper born in chart 281 at each invocation. The complete rank-three provider must preserve spectators and meet the declared precision and return contract at every admitted multiplicity. Under the #7637 and #7641 lineage, one common-U supplier at the fixed tariff must cover the complete private extent of every one of the 234 lifetimes on both words. That includes represented blanks, arbitrary old private junk, and admitted rounded residuals, with nonaliasing, reset, storage, movement and atomic return. The exact CLEAR certificates establish ideal erase-boundary values. Supplier implementation and its charged backing remain premises of the application. [#7637](https://github.com/CrocSwap/integer-mult-bounds/pull/7637) · [#7641](https://github.com/CrocSwap/integer-mult-bounds/pull/7641) + +At zero-based candidate clocks 100503–100504, `MOVE 457,966→218` feeds `ADD 210,457,−1/2` at chart 218. An odd last-tick defect can make that exact division fail. The provider therefore needs the componentwise divisibility and signed-range guarantee, or a total rounded scalar service with its error and full cost charged. The grid replay covers ideal pre-products. Applying the finite precision/tape bounds to a physical provider requires that scalar contract. [Candidate grid](application-evidence/receipts/candidate/GRID.json) · [Signed tape counts](application-evidence/signed-replay/data/EXPECTED.json) + +This review and the validation received substantial Codex assistance. Independence here refers to a separately authored exact checker and evidence review using the pinned source, candidate and inherited framework. Independent human review and upstream selection remain separate. diff --git a/research/p104-role379-idle-stop/SOURCE-PINS.json b/research/p104-role379-idle-stop/SOURCE-PINS.json new file mode 100644 index 0000000000..0071584142 --- /dev/null +++ b/research/p104-role379-idle-stop/SOURCE-PINS.json @@ -0,0 +1,143 @@ +{ + "files": [ + { + "bytes": 1375, + "commit": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "git_blob": "a44152df19b00e6d33283c292822a078990ef06a", + "local_path": "retained/pr7636/NOTICE", + "pull_request": 7636, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "50b6dbd0dbdf3be207d80188aeebacececfa754a0d2a0460210dc720b3652d3c", + "source_path": "research/p104-swap-composites-on7630/NOTICE" + }, + { + "bytes": 41946, + "commit": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "git_blob": "e4ba38441b59f3fbc48807aade768b98d2e39cca", + "local_path": "retained/pr7636/check.py", + "pull_request": 7636, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "72dfc0f5435cea2630a0d4e8f466fbb7b866404a22804769c3e690845ca72d2b", + "source_path": "research/p104-swap-composites-on7630/check.py" + }, + { + "bytes": 11846, + "commit": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "git_blob": "cf505bd95bd945d3479316e2e50d10cfd1ab0cc7", + "local_path": "retained/pr7636/data/affected-pairs-new.json", + "pull_request": 7636, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "cee6de59aa47c8633bf260490d4d5948b7e78276e92f2735765ef1c05a80c8ae", + "source_path": "research/p104-swap-composites-on7630/data/affected-pairs-new.json" + }, + { + "bytes": 15149, + "commit": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "git_blob": "4728a0609e426b09bb225254b83be2f038755283", + "local_path": "retained/pr7636/data/clear-certificates.json", + "pull_request": 7636, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "94809b766d041f6bb400df151de5702c5e8ec0a8a47c80ddfe5b2b3a5e0f09d2", + "source_path": "research/p104-swap-composites-on7630/data/clear-certificates.json" + }, + { + "bytes": 673, + "commit": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "git_blob": "93129ac5c420dee957ca4fa0d89505edc99d2d49", + "local_path": "retained/pr7636/data/invoice-new.json", + "pull_request": 7636, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "18adee673515c4ece7208b53c7cc17a2e121843d55f62067d2e43e341872f0d5", + "source_path": "research/p104-swap-composites-on7630/data/invoice-new.json" + }, + { + "bytes": 856663, + "commit": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "git_blob": "e53c2271bf0bbcfdcfbc1834bc12ceeb54d52d4b", + "local_path": "retained/pr7636/data/word.json.gz", + "pull_request": 7636, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659", + "source_path": "research/p104-swap-composites-on7630/data/word.json.gz" + }, + { + "bytes": 1969, + "commit": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "git_blob": "2baa2a719ea3a9ec94c2e7aec72702ec8c92b346", + "local_path": "retained/pr7658/NOTICE", + "pull_request": 7658, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "2732575164931c53cc4bc57145c31d87741489e3048afee6899e856c0ea503b5", + "source_path": "research/p104-lns-on7641/NOTICE" + }, + { + "bytes": 44730, + "commit": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "git_blob": "a37deac19f0eda3ff5a2d2f795e44dadc39bc117", + "local_path": "retained/pr7658/check.py", + "pull_request": 7658, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "334e37a3fb31c8cd374bc4ecafcdb9fb2597eb3192d3d49373417830458cb696", + "source_path": "research/p104-lns-on7641/check.py" + }, + { + "bytes": 362, + "commit": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "git_blob": "2fb92f310935e95287b6045b9b73ecd49d146383", + "local_path": "retained/pr7658/data/affected-pairs-new.json", + "pull_request": 7658, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "741b7fd3306362d051c4d63b0d642ef47aaece842384d44423e997072f969f36", + "source_path": "research/p104-lns-on7641/data/affected-pairs-new.json" + }, + { + "bytes": 15708, + "commit": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "git_blob": "2137f45d87ae30917855df0af1761eb4fe23e15a", + "local_path": "retained/pr7658/data/clear-certificates.json", + "pull_request": 7658, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "02e0651a9a44c710225dd741d484f990e238bd5ac9e6510a7b90b17679879f47", + "source_path": "research/p104-lns-on7641/data/clear-certificates.json" + }, + { + "bytes": 675, + "commit": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "git_blob": "acae1b60a90f0ee67526be0fd76f8c811cf4624f", + "local_path": "retained/pr7658/data/invoice-new.json", + "pull_request": 7658, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "26383ec33e4c4d552442b62f2bd7d9fd0a2fd0d357c1bcbf52ba913e11bb630e", + "source_path": "research/p104-lns-on7641/data/invoice-new.json" + }, + { + "bytes": 594691, + "commit": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "git_blob": "d917e5bde97ff153f89c7d40a505814dc5fe87f0", + "local_path": "retained/pr7658/data/word.json.gz", + "pull_request": 7658, + "repository": "DreamingOfClouds/integer-mult-bounds", + "sha256": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "source_path": "research/p104-lns-on7641/data/word.json.gz" + }, + { + "bytes": 9553, + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "git_blob": "fda2a852e9937e42fe40df0707694465ca7c1b48", + "local_path": "retained/pricing/compare_recursive_invoices.py", + "repository": "CrocSwap/integer-mult-bounds", + "sha256": "3930c22c11da7bc6042cfeb6e459ecb06e4478430037bee3469d034353855fc6", + "source_path": "scripts/compare_recursive_invoices.py" + }, + { + "bytes": 4593, + "commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "git_blob": "ca50f8021fc3238a58fd420383f4619a8d008ace", + "local_path": "retained/pricing/evaluate_recursive_power.py", + "repository": "CrocSwap/integer-mult-bounds", + "sha256": "52b20f41fd0bb55fa88dccd6015af2ce358917817b9506720f3e60ce681cc3ad", + "source_path": "scripts/evaluate_recursive_power.py" + } + ], + "schema_version": 1 +} diff --git a/research/p104-role379-idle-stop/SOURCES.json b/research/p104-role379-idle-stop/SOURCES.json new file mode 100644 index 0000000000..a05b865a90 --- /dev/null +++ b/research/p104-role379-idle-stop/SOURCES.json @@ -0,0 +1,12 @@ +{ + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "files": [ + { + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "path": "docs/research/agent-task-catalog.json", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81", + "usage": "provenance" + } + ], + "schema_version": 1 +} diff --git a/research/p104-role379-idle-stop/TASK.json b/research/p104-role379-idle-stop/TASK.json new file mode 100644 index 0000000000..e5a37e51ba --- /dev/null +++ b/research/p104-role379-idle-stop/TASK.json @@ -0,0 +1,121 @@ +{ + "schema_version": 1, + "task_id": "p104-side-correction", + "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": "Replace two consecutive, unobserved MOVEs of public role 379 by one contracted native transition on each exact #7636 and #7658 word. Verify the arbitrary-input row map, owned boundary and physical phase on both and qualify the #7658 candidate's finite signed application under the five inherited premises.", + "scope_change_reason": "The earlier main-176 pickup changes leave an unobserved public residence on these words. Its deletion changes the paid histogram without changing the candidate's helper bases or splitting a channel.", + "bottleneck_link": "docs/research/bottleneck-brief.md", + "stop_rule": "Reject the affected result on an intervening role-379 instruction or CLEAR witness, unregistered literal change, illegal chart, altered observation, phase difference, failed paid comparison, or failed candidate-bound application checks.", + "evidence": "PROOF.md, the two registered mutation and independent exact replays and their receipts under evidence/, and the registered #7658 transposed endpoint and signed application replay with all 17 calls, 3,030 maps and 104 boundaries. The signed run authenticates the underlying native, CLEAR, grid and ordinary receipts, which have separate reproduction commands in application-evidence/README.md.", + "outcome": "completed", + "author": "Clear1nsight", + "ai_assistance": "Substantial OpenAI Codex assistance, including a separate exact replay implementation. ChatGPT Pro was consulted for the physical composition and precision arguments.", + "open_questions": [ + { + "question": "Can the rounded-domain, common-U and W+26 contracts be physically instantiated for the qualified #7658 application?", + "why_it_matters": "The finite counts and outer gate rely on all-width arithmetic, the same-tariff private extent, compiler, precision and movement premises.", + "first_step": "At candidate clocks 100503 and 100504, establish componentwise congruence and range or a charged total rounded ADD. Independently review the private-field nonaliasing, return and scratch movement schedule across all 234 lifetimes.", + "blocked_by": "An independently reviewable all-width provider, compiler, physical backing and movement argument." + }, + { + "question": "Do both separately lowered #7636 words pass the actual native and signed caller?", + "why_it_matters": "The same-chart two-ADD lowering has a finite precision and ordinary model. The source-bound full 180-CLEAR application requires its own evidence.", + "first_step": "Bind both new hashes and replay the full retained caller with all 180 CLEARs, the adjusted scalar services and the verified common envelope.", + "blocked_by": "Fresh candidate-bound native, signed and tape-resource qualification." + } + ] +} diff --git a/research/p104-role379-idle-stop/VERIFY.json b/research/p104-role379-idle-stop/VERIFY.json new file mode 100644 index 0000000000..25f45787ce --- /dev/null +++ b/research/p104-role379-idle-stop/VERIFY.json @@ -0,0 +1,46 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "7636" + ], + "timeout_seconds": 300, + "checks": "PR #7636. Authenticate parent bytes; reconstruct the role-379 edit and all inherited CLEAR clocks; check exact Gaussian columns and phase, complete invoice, and independent arbitrary-input, owned observation, certificate and directed-price replay with rejection controls." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "7658" + ], + "timeout_seconds": 300, + "checks": "PR #7658. Authenticate parent bytes; reconstruct the role-379 edit and all inherited CLEAR clocks; check exact Gaussian columns and phase, complete invoice, and independent arbitrary-input, owned observation, certificate and directed-price replay with rejection controls." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/application-evidence/signed-replay/replay.py", + "--core", + "{package}", + "run", + "--wall", + "560" + ], + "timeout_seconds": 600, + "checks": "PR #7658. Rebuild the exact candidate, authenticate the pinned native and resource receipts, and freshly replay the transposed native endpoint, complete 17-call signed application, all 3,030 maps and 104 boundaries, directed price, outer gates, fixed-tape counts and rejection controls." + } + ] +} diff --git a/research/p104-role379-idle-stop/application-evidence/MANIFEST.json b/research/p104-role379-idle-stop/application-evidence/MANIFEST.json new file mode 100644 index 0000000000..92331b9dc7 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/MANIFEST.json @@ -0,0 +1,173 @@ +{ + "files": { + "NOTICE": { + "bytes": 895, + "sha256": "2a6866cd67ac34a9a3cb82df4faffe19a08ba1aeab9f67436764c15bb443b07c" + }, + "README.md": { + "bytes": 5872, + "sha256": "fd3930134949070fcf8188f9ff9d813f614be61b93ad6f832b9e2b81f8378e3b" + }, + "SOURCE-INPUTS.json": { + "bytes": 8628, + "sha256": "8851d08cacad58e70ee4c63eecd922673e0ff6baa7a85338e4489c4e69591708" + }, + "check.py": { + "bytes": 7805, + "sha256": "481ec07e9e759aaa8e1217b1ca16aa415ad69b55bbf5e8d985a0e9c3089f3e2e" + }, + "native-replay/NOTICE-7641": { + "bytes": 1734, + "sha256": "13bed2d17fd4ccdfaf32c73fedbb80ebb0c4de836abf366c8bffe89172851a01" + }, + "native-replay/check_native.py": { + "bytes": 18633, + "sha256": "6cc127ed1b1eddeadb50b69e672587e2c64378e5e5790357e526a9c022e32760" + }, + "native-replay/physical.py": { + "bytes": 12408, + "sha256": "ff91934a4eb5f92778d72407db56c06a6330a5160af009662613e2836933ee42" + }, + "native-replay/predecessor-pairs.zip": { + "bytes": 1016072, + "sha256": "1ddc5e9cd1fb81979f066522db4d18ed63473980b481838fa0961d6e28ddaec6" + }, + "native-replay/run_guarded.sh": { + "bytes": 2437, + "sha256": "de89b65ba5afc136854531882e571c68765af2ecbbea4829cc1c35ce597c0372" + }, + "receipts/candidate/GRID.json": { + "bytes": 29134, + "sha256": "bc5a54b8975e01be3f37c54f8b3b1f0ecfb82167794b2fea06da60423753e017" + }, + "receipts/candidate/LITERALS.json": { + "bytes": 1340, + "sha256": "18c470ca3555af325292596d7fa833d9f405e703210cfb5a9395501a86fdbf30" + }, + "receipts/candidate/ORDINARY.json": { + "bytes": 2724, + "sha256": "bbc6ceba232bd05f2884c41478e4c165b6a748dad4ed22c1a099346ad1f49cc9" + }, + "receipts/candidate/TAPE-SCALAR.json": { + "bytes": 1288, + "sha256": "54c3409da7fb90e216ac4d3e5b34ccd48426aaf30490ea0ffd271ed932924395" + }, + "receipts/candidate/TARIFF.json": { + "bytes": 855, + "sha256": "6f7886417803d17148bc125dbe74e0f256c935b65f685052ab90e70c56c0d509" + }, + "receipts/native/OPERATORS.json": { + "bytes": 726, + "sha256": "e76f9b120562f4ef21cf2b301d1980d1b6bc0113ce810b8de1ed2cf17cd4fb17" + }, + "receipts/native/PHYSICAL-1000000009.json": { + "bytes": 3353, + "sha256": "ab8f75845f296ca2789e225867f97b64758182caed2344c86a4b720a9aa5c167" + }, + "receipts/native/PHYSICAL-998244353.json": { + "bytes": 2025, + "sha256": "2b1ef0f69fe5bbdb35606e2b7d9a9ebe2c07f901abb0e1c13ad33a72e3dcb4a2" + }, + "receipts/native/RESULT.json": { + "bytes": 35834, + "sha256": "01490a7539289511a367602466bb2e8749ce36e3aec642e9066c68dfdebd78b7" + }, + "receipts/native/START.json": { + "bytes": 1549, + "sha256": "3335f180b03325fb5770597a381420ee94f3af98ae2407b53d0391d54381353a" + }, + "receipts/native/run7658-r2.launch.json": { + "bytes": 1190, + "sha256": "e3d27040cf3e3e2d1d0b702fc96f142297a85cc7716e44cc97d4f64e5ed1a8d6" + }, + "receipts/native/run7658-r2.stderr": { + "bytes": 0, + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "receipts/native/run7658-r2.stdout": { + "bytes": 117, + "sha256": "4ffbd1ab67bf5f778a39acf76f863855996dbb5c162b3a91d8318b139ed9d50c" + }, + "receipts/native/run7658-r2.time": { + "bytes": 1551, + "sha256": "b4e268cce3a36bdebedff1b32496a41473d78a8393a618487fe9bca7ed1e418d" + }, + "receipts/source/GRID.json": { + "bytes": 29133, + "sha256": "155c05443c9eaf91348bc07d968c6b710ed5e8fa3992bbcebcae96bd0334c28f" + }, + "receipts/source/LITERALS.json": { + "bytes": 1340, + "sha256": "0ba946ed2661cd67bece7453758429895079c395042b2793ff838eb9569a1f12" + }, + "receipts/source/ORDINARY.json": { + "bytes": 2724, + "sha256": "907c186afb54f9c763062fbe7b657e6439cb297c9e5affbbd65911995f4e947f" + }, + "receipts/source/TAPE-SCALAR.json": { + "bytes": 1288, + "sha256": "08a15ebd68aedb94d92bf06b23616fae5e50f616a507eba9df128ee979e168a1" + }, + "receipts/source/TARIFF.json": { + "bytes": 855, + "sha256": "0c9b2c1e9dde3dec4c8c007a175c20cc36afaeac98890e3723507184d892119a" + }, + "replay.py": { + "bytes": 6421, + "sha256": "59f6a39b35d48dee413ef32a679d025db8078de4e9359e2858b5d46dd18899dd" + }, + "resource-replay/NOTICE-RETAINED": { + "bytes": 893, + "sha256": "da12736e2e824167ff56f2ecb623a5f88f75a270410360890f61dffc33bab249" + }, + "resource-replay/engines/ordinary.py": { + "bytes": 5711, + "sha256": "f0325ce12226a53f52d75ba3e068f0f7d4cb80c827e302617d94ba14a10883fc" + }, + "resource-replay/engines/qualify.py": { + "bytes": 7408, + "sha256": "02bc6cd1a627562e69be4d2dc756e3da55048395a0b85605849b9209ec7a1902" + }, + "resource-replay/engines/tape_scalar.py": { + "bytes": 3870, + "sha256": "9a22a356f3efa5605c852607b0791ecd7c6b2ef0641ae4bf0c2483c1544d31aa" + }, + "resource-replay/engines/vendor/ODD-CALLER-EXACT-GRID.json": { + "bytes": 684, + "sha256": "87d25d9fa3778bf4784e3a9e17f32ce5ba372663c6e97392cc62b87e6719042c" + }, + "resource-replay/engines/vendor/ODD-TYPE-AB-CALLER.json": { + "bytes": 117156, + "sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc" + }, + "resource-replay/engines/vendor/check_odd_fixed_tape_counts.py": { + "bytes": 4247, + "sha256": "e6246e9f8fbeae3077d82e585eafd3647c1a8758c58f33c7c13e7efa6c1e42bb" + }, + "resource-replay/engines/vendor/derive_grid.py": { + "bytes": 1510, + "sha256": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0" + }, + "resource-replay/engines/vendor/envelopes.py": { + "bytes": 14441, + "sha256": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f" + }, + "resource-replay/engines/vendor/independent.py": { + "bytes": 11970, + "sha256": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874" + }, + "resource-replay/engines/vendor/independent_bounds.py": { + "bytes": 11449, + "sha256": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5" + }, + "resource-replay/engines/vendor/source_binding.py": { + "bytes": 2424, + "sha256": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd" + }, + "resource-replay/preflight.py": { + "bytes": 16261, + "sha256": "532be27b5689df79b9b843a639137bd6da353974d526a460cbabd44cbf3ce5f7" + } + }, + "schema": "role379-native-resource-evidence/1" +} diff --git a/research/p104-role379-idle-stop/application-evidence/NOTICE b/research/p104-role379-idle-stop/application-evidence/NOTICE new file mode 100644 index 0000000000..6bec37798c --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/NOTICE @@ -0,0 +1,15 @@ +The role-379 finite application evidence and wrappers were prepared by +Clear1nsight with substantial OpenAI Codex assistance. Apache-2.0, see the +registered package LICENSE. + +DreamingOfClouds authored #7658, #7641 and the pinned phase source used in +the predecessor archive. The archived derived word applies Clear1nsight's +51 exact ADD splits to that word. The historical catalogue belongs to the +234-lifetime repair at decoded SHA-256 +f9f9a485712c0c94c9d14370e2a8436414e1b53bdf86550d9d6436835e9e06cb. The upstream +source and predecessor credits are preserved in native-replay/NOTICE-7641. + +The resource rerun preserves the earlier #7641 resource driver and engines +and uses #7113's exact caller by Rohan Arun. Ali Romman, SYLforge, CubeJerry, +DreamingOfClouds and the authors in resource-replay/NOTICE-RETAINED retain +credit for the underlying algorithms, bounds and verifier implementations. diff --git a/research/p104-role379-idle-stop/application-evidence/README.md b/research/p104-role379-idle-stop/application-evidence/README.md new file mode 100644 index 0000000000..745662d57d --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/README.md @@ -0,0 +1,84 @@ +# #7658 application evidence + +This appendix records the finite application of the role-379 contraction on +[#7658](https://github.com/CrocSwap/integer-mult-bounds/pull/7658), head +`0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82`. The parent’s decoded word +SHA-256 is `fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6`. +The candidate’s is `f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669`. +The signed application checked the conservative claim **0.0037170835567**. +The narrower complete invoice crossing bracket is +**[0.0037170835568, 0.0037170835569]**. The candidate uses 108,581 paid +positions and 22,461 targets under the 17-call #7113 invoice. + +| Check | Fresh work on this parent and candidate | Prior or transferred evidence | +|---|---|---| +| [Registered core](../VERIFY.json) | Literal substitution, exact affected operators, paired arbitrary-input rational replay, 234 ordered CLEARs, complete signed invoice and two directed signs | Source words and engines at fixed Git heads | +| [Native finite application](receipts/native/RESULT.json) | Actual pair census, seven fresh pair groups, 512 forward and 512 adjoint columns for the composed transition, 104 raw ports, and two finite paired physical replays of all 1,501 public outputs | 2,952 of 2,959 union pair groups matched the preserved #7641 repair catalogue by exact engine, frame and catalogue bindings | +| [Paired grid](receipts/candidate/GRID.json) | Rational and fixed-grid integer engines each visited 24,277,036 coefficients per word, with scale `225 × 2^14`, context 2,064, maximum scaled mass `58120605/2` and 18-bit literal numerators | The signed caller’s matching envelope input | +| [Paired ordinary and tape arithmetic](receipts/candidate/TARIFF.json) | The same conditional 83,895,232 scalar services per word. The conservative ordinary total decreases from 815,821,876 to 815,804,876 after a full additional charge for all 51,034 native-scale conversion sites | Retained #7113 scalar and ordinary tariff and common-U premise | +| [Registered signed application](signed-replay/README.md) | Regenerated 17-call caller, all 3,030 maps across four contiguous slices, 104 boundary pairs, all 54 strict and four functional outer predicates, and seven tape falsifiers | Pinned #7113 executable closure, matched native, exact CLEAR and grid evidence, and inherited BIT subthreshold bound | + +The finite physical replay uses primes 1,000,000,009 and 998,244,353 with +seeds 11 and 37. The separate exact affected-operator and rational checks +provide the corresponding arbitrary-input evidence. The signed application +is conditional on native all-column application, owned erasure, compiler, +precision/tape and analytic-recovery assumptions, with the same-tariff +whole-private-extent supplier premise across the 234 lifetimes. A physical +common-U supplier for rounded residuals and arbitrary old private junk, and +its all-width backing, movement and reset cost, remain open. + +## Verify the saved evidence + +Run the receipt check from this appendix directory. + +```sh +python3.12 -I -B check.py +``` + +The script authenticates the named files and all seven predecessor archive +members, checks the native receipt links and recalculates the two saved +ordinary bills. The [source manifest](SOURCE-INPUTS.json) binds retained +upstream bytes to exact commits, paths and checksums. The compressed +predecessor input holds one repaired word, its phase engine, the historical +catalogue result and manifest, and three catalogue shards. The 2.17 MB +derived current MOVE-pair table is referenced by hash in the native result +and regenerated by the optional native driver. + +## Reproduce the optional native and resource application + +These commands assume this directory sits inside the registered package. +They require Linux, CPython 3.12 and the native launcher’s `timeout`, +`taskset`, `prlimit` and GNU `time`. Input bytes are bundled here or +in the registered package. Each command writes a fresh directory. + +```sh +core=.. +work=$(mktemp -d) +python3.12 -I -B replay.py candidate --core "$core" --out "$work/core" +source="$core/retained/pr7658/data/word.json.gz" +candidate="$work/core/mutation/WORD.json.gz" +python3.12 -I -B replay.py native --core "$core" --candidate "$candidate" --out "$work/native" +python3.12 -I -B replay.py resource --case source --stage quick --word "$source" --out "$work/source-quick" +python3.12 -I -B replay.py resource --case candidate --stage quick --word "$candidate" --out "$work/candidate-quick" +python3.12 -I -B replay.py resource --case source --stage grid --word "$source" --out "$work/source-grid" +python3.12 -I -B replay.py resource --case candidate --stage grid --word "$candidate" --out "$work/candidate-grid" +``` + +The native replay uses up to two available CPUs. The grid and quick stages +use one CPU, 2 GiB of virtual address space and respective wall limits of +205 and 30 seconds. Match the replay’s scientific fields against the saved +receipts. Launch clocks, interpreter paths, archive transport bytes and +elapsed times are environment dependent. A relocated smoke check extracted +all seven predecessor members and reproduced the eight quick-stage JSON +receipts exactly. The full native and grid receipts came from the guarded +source runs. The registered package also runs the signed caller from the bundled inputs. +The signed annex documents the command and the full receipt comparison. Run the registered core independently for a +construction-blind replay. + +## Credits + +The exact parent is DreamingOfClouds’ #7658 on #7641 and SYLforge’s #7637. +The column closure reuses the preserved Clear1nsight #7641 repair, with +the original Word and Clifford attribution retained. The resource and +signed checks use Rohan Arun’s #7113 caller and the authors credited in +its retained sources. See the [notice](NOTICE) and the [license](../LICENSE). diff --git a/research/p104-role379-idle-stop/application-evidence/SOURCE-INPUTS.json b/research/p104-role379-idle-stop/application-evidence/SOURCE-INPUTS.json new file mode 100644 index 0000000000..79a06d2c21 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/SOURCE-INPUTS.json @@ -0,0 +1,159 @@ +{ + "claim": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19695810", + "native_archive_members": { + "pairs/ALL-PAIRS-MANIFEST.json": { + "bytes": 274825, + "scope": "exact retained predecessor column archive", + "sha256": "6e10e6f4d0442c031fae92690287c318619bdfa269687a574babebef9cccfddf", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "pairs/ALL-PAIRS-RESULT.json": { + "bytes": 843, + "scope": "exact retained predecessor column archive", + "sha256": "a0bb80f9220fd6414d45e208af1e5571f51e6ac9f333d412dce19ef82854f541", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "pairs/ALL-PAIRS-SHARD-0.jsonl": { + "bytes": 124632, + "scope": "exact retained predecessor column archive", + "sha256": "9bbb0305bb9e5822c26f8bf0a9f8a2140c048f3d73bcb64d9c22ee7b9d3d990c", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "pairs/ALL-PAIRS-SHARD-1.jsonl": { + "bytes": 124635, + "scope": "exact retained predecessor column archive", + "sha256": "cd0f3955de8a46009c6cc47038768969fff3bc59d4992318c0a82ded183ce935", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "pairs/ALL-PAIRS-SHARD-2.jsonl": { + "bytes": 124524, + "scope": "exact retained predecessor column archive", + "sha256": "8a89ee37401d3156ed9074891508189c439be4611c56401a18fe3bee5ded883c", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "phase-check.py": { + "bytes": 46479, + "scope": "original #7641 exact phase module", + "sha256": "6ca9ec1b134f448fbed59158520c4225679500d5ceafb0410ef790e848fec4bc", + "url": "https://github.com/DreamingOfClouds/integer-mult-bounds/blob/351b09cd4b7ef8e0a24d954a761867960cbb1627/research/p104-swap-composites-on7637/check.py" + }, + "repair-word.json.gz": { + "bytes": 921147, + "scope": "local 51 exact ADD splits of #7641, 234 lifetimes", + "sha256": "676c20c53ebd40120903af86bf17c2116f654ab8ce4aa1833f388a2fc400b511", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + } + }, + "observed_driver_files": { + "native-replay/check_native.py": { + "bytes": 18633, + "scope": "executed native driver", + "sha256": "6cc127ed1b1eddeadb50b69e672587e2c64378e5e5790357e526a9c022e32760" + }, + "native-replay/physical.py": { + "bytes": 12408, + "scope": "executed native driver", + "sha256": "ff91934a4eb5f92778d72407db56c06a6330a5160af009662613e2836933ee42" + }, + "native-replay/run_guarded.sh": { + "bytes": 2437, + "scope": "executed native driver", + "sha256": "de89b65ba5afc136854531882e571c68765af2ecbbea4829cc1c35ce597c0372" + }, + "resource-replay/preflight.py": { + "bytes": 16261, + "scope": "executed resource driver", + "sha256": "532be27b5689df79b9b843a639137bd6da353974d526a460cbabd44cbf3ce5f7" + } + }, + "pr7113": { + "head": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "package": "research/signed-caller-8x9", + "url": "https://github.com/CrocSwap/integer-mult-bounds/pull/7113" + }, + "pr7641": { + "head": "351b09cd4b7ef8e0a24d954a761867960cbb1627", + "url": "https://github.com/CrocSwap/integer-mult-bounds/pull/7641" + }, + "pr7658": { + "head": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "package": "research/p104-lns-on7641", + "url": "https://github.com/CrocSwap/integer-mult-bounds/pull/7658" + }, + "resource_engine_files": { + "resource-replay/engines/ordinary.py": { + "bytes": 5711, + "scope": "preserved local #7641 check dependency", + "sha256": "f0325ce12226a53f52d75ba3e068f0f7d4cb80c827e302617d94ba14a10883fc", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "resource-replay/engines/qualify.py": { + "bytes": 7408, + "scope": "preserved local #7641 check dependency", + "sha256": "02bc6cd1a627562e69be4d2dc756e3da55048395a0b85605849b9209ec7a1902", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "resource-replay/engines/tape_scalar.py": { + "bytes": 3870, + "scope": "preserved local #7641 check dependency", + "sha256": "9a22a356f3efa5605c852607b0791ecd7c6b2ef0641ae4bf0c2483c1544d31aa", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "resource-replay/engines/vendor/ODD-CALLER-EXACT-GRID.json": { + "bytes": 684, + "git_blob": "1ba429a3908ee85e6c14b366a8c03c19d6e5c6c0", + "scope": "byte-bound #7113 caller or retained source", + "sha256": "87d25d9fa3778bf4784e3a9e17f32ce5ba372663c6e97392cc62b87e6719042c", + "url": "https://github.com/CrocSwap/integer-mult-bounds/blob/07a76c5e2738882c0cb322278e56f6cae3c9885d/research/signed-caller-8x9/expected/ODD-CALLER-EXACT-GRID.json" + }, + "resource-replay/engines/vendor/ODD-TYPE-AB-CALLER.json": { + "bytes": 117156, + "git_blob": "9451ceaf6e8e037894680b549f3ef41c21b260d7", + "scope": "byte-bound #7113 caller or retained source", + "sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "url": "https://github.com/CrocSwap/integer-mult-bounds/blob/07a76c5e2738882c0cb322278e56f6cae3c9885d/research/signed-caller-8x9/expected/ODD-TYPE-AB-CALLER.json" + }, + "resource-replay/engines/vendor/check_odd_fixed_tape_counts.py": { + "bytes": 4247, + "git_blob": "6873f9618d59d489b67b9eaca45e6142a16b53f3", + "scope": "byte-bound #7113 caller or retained source", + "sha256": "e6246e9f8fbeae3077d82e585eafd3647c1a8758c58f33c7c13e7efa6c1e42bb", + "url": "https://github.com/CrocSwap/integer-mult-bounds/blob/07a76c5e2738882c0cb322278e56f6cae3c9885d/research/signed-caller-8x9/replay/supplier7112/short-caller/check_odd_fixed_tape_counts.py" + }, + "resource-replay/engines/vendor/derive_grid.py": { + "bytes": 1510, + "scope": "preserved local #7641 check dependency", + "sha256": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/7111#discussioncomment-19691406" + }, + "resource-replay/engines/vendor/envelopes.py": { + "bytes": 14441, + "git_blob": "70c8ca23763e30c924fb726b74b82f44d344c65f", + "scope": "byte-bound #7113 caller or retained source", + "sha256": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "url": "https://github.com/CrocSwap/integer-mult-bounds/blob/07a76c5e2738882c0cb322278e56f6cae3c9885d/research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/envelopes.py" + }, + "resource-replay/engines/vendor/independent.py": { + "bytes": 11970, + "git_blob": "1ae1d7c680ad86c0fa999f2e8f0c09e966fc07a0", + "scope": "byte-bound #7113 caller or retained source", + "sha256": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "url": "https://github.com/CrocSwap/integer-mult-bounds/blob/07a76c5e2738882c0cb322278e56f6cae3c9885d/research/signed-caller-8x9/replay/supplier7112/short-caller/independent.py" + }, + "resource-replay/engines/vendor/independent_bounds.py": { + "bytes": 11449, + "git_blob": "8fe729386f81e6973bbe7ecaa5dbb4bf86281908", + "scope": "byte-bound #7113 caller or retained source", + "sha256": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "url": "https://github.com/CrocSwap/integer-mult-bounds/blob/07a76c5e2738882c0cb322278e56f6cae3c9885d/research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/retained/odd-native-common-grid/independent_bounds.py" + }, + "resource-replay/engines/vendor/source_binding.py": { + "bytes": 2424, + "git_blob": "9f0e0a8cbaf48266cf9c6aa8b263505e9569390c", + "scope": "byte-bound #7113 caller or retained source", + "sha256": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "url": "https://github.com/CrocSwap/integer-mult-bounds/blob/07a76c5e2738882c0cb322278e56f6cae3c9885d/research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/source_binding.py" + } + }, + "schema": "role379-application-inputs/1" +} diff --git a/research/p104-role379-idle-stop/application-evidence/check.py b/research/p104-role379-idle-stop/application-evidence/check.py new file mode 100644 index 0000000000..5e7e890566 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/check.py @@ -0,0 +1,154 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Check the archived bytes and recompute the two saved ordinary totals.""" + +from fractions import Fraction +from hashlib import sha256 +import json +from pathlib import Path, PurePosixPath +from zipfile import ZipFile + + +HERE = Path(__file__).resolve().parent +SOURCE = "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6" +CANDIDATE = "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669" +CALLER = "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc" + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def digest(raw): + return sha256(raw).hexdigest() + + +def load(name): + return json.loads((HERE / name).read_bytes()) + + +def inventory(): + return sorted( + path.relative_to(HERE).as_posix() for path in HERE.rglob("*") + if path.is_file() and path.name != "MANIFEST.json" + and path.relative_to(HERE).parts[0] != "signed-replay" + ) + + +def check_custody(): + files = load("MANIFEST.json")["files"] + require(sorted(files) == inventory(), "appendix file inventory differs") + for name, pin in files.items(): + path = PurePosixPath(name) + require(not path.is_absolute() and ".." not in path.parts and path.as_posix() == name, + f"unsafe receipt path {name}") + file = HERE / path + require(file.resolve() == file, f"aliased receipt {name}") + raw = file.read_bytes() + require(len(raw) == pin["bytes"] and digest(raw) == pin["sha256"], f"receipt pin {name}") + origins = load("SOURCE-INPUTS.json") + for section in ("resource_engine_files", "observed_driver_files"): + for name, pin in origins[section].items(): + require(all(files[name][key] == pin[key] for key in ("bytes", "sha256")), f"source pin {name}") + archive_pins = origins["native_archive_members"] + with ZipFile(HERE / "native-replay/predecessor-pairs.zip") as archive: + require(sorted(archive.namelist()) == sorted(archive_pins), "predecessor member inventory") + for name, pin in archive_pins.items(): + raw = archive.read(name) + require(len(raw) == pin["bytes"] and digest(raw) == pin["sha256"], f"predecessor pin {name}") + return len(files), len(archive_pins) + + +def check_native(): + document = load("receipts/native/RESULT.json") + require(document["status"] == "PASS_STRICT_379_NATIVE_FINITE" + and document["source"]["raw_sha256"] == SOURCE + and document["candidate"]["raw_sha256"] == CANDIDATE, "native comparison custody") + counts = document["pair_counts"] + require((counts["union"], counts["fresh"], counts["reused"]) == (2959, 7, 2952), + "native pair closure") + route = document["route_columns"] + require(route["all_forward"] == route["all_adjoint"] == 512 and route["wrong_phase"] == "rejected", + "exact composed MOVE") + launch = load("receipts/native/run7658-r2.launch.json") + require(launch["exit"] == 0 and launch["candidate_canonical_sha256"] == CANDIDATE + and launch["native_result_sha256"] == digest((HERE / "receipts/native/RESULT.json").read_bytes()), + "native launch custody") + for suffix in ("stdout", "stderr", "time"): + name = f"receipts/native/run7658-r2.{suffix}" + require(digest((HERE / name).read_bytes()) == launch[f"{suffix}_sha256"], f"native launch {suffix}") + for name in ("START.json", "OPERATORS.json", "PHYSICAL-1000000009.json", "PHYSICAL-998244353.json"): + raw = (HERE / "receipts/native" / name).read_bytes() + require(digest(raw) == document["artifacts"][name], f"native generated receipt {name}") + for comparison in document["finite_replays"]: + name = f"receipts/native/PHYSICAL-{comparison['prime']}.json" + finite = load(name) + require(finite["seed"] == comparison["seed"] and finite["endpoint_rows"] == 1501 + and finite["digests"] == comparison["digests"] + and finite["digests"]["source"] == finite["digests"]["candidate"], "finite physical replay") + + +def check_resource(case, raw): + base = f"receipts/{case}/" + grid = load(base + "GRID.json") + tape = load(base + "TAPE-SCALAR.json") + ordinary = load(base + "ORDINARY.json") + tariff = load(base + "TARIFF.json") + literal = load(base + "LITERALS.json") + require({grid["decompressed_sha256"], tape["source_raw_sha256"], ordinary["source_word_raw_sha256"], + tariff["word_sha256"], literal["word_sha256"]} == {raw}, "resource word custody") + require({grid["caller_sha256"], tape["caller_sha256"], ordinary["caller_sha256"]} == {CALLER}, + "resource caller custody") + rational, integer = grid["rational_grid"], grid["integer_grid"] + expected = (225, 14, Fraction(58120605, 2), 24277036) + require( + (integer["odd_scale_lcm"], integer["dyadic_height"], Fraction(integer["maximum_scaled_mass"]), + integer["coefficient_visits"]) + == (rational["odd_scale"], rational["fractional_bits"], Fraction(rational["scaled_maximum_mass"]), + rational["coefficient_visits"]) == expected, + "native rational and integer grid", + ) + require(grid["context_c"] == 2064 and integer["numerator_bits"] == 18 + and not literal["failures_by_guard"], "context and literal guards") + require(tape["native_invocations"] == 17 and tape["native_nonmove_per_call"] == 143844 + and ordinary["declared_inventory"]["lifetimes"] == 234, "ordinary and tape denominators") + services = sum(tape["scalar_macro_inputs"].values()) * 32 + require(services == tape["scalar_services_upper"] == 83895232 + and tape["scalar_steps_coefficient"] == services * 2**20, "conditional scalar coefficient") + terms = ordinary["base"] + routing = sum(terms["route_items"].values()) * 1000 + require(terms["routing"] == routing, "ordinary route count") + caller_total = sum(sum(part.values()) for part in terms["caller_items"].values()) + require(terms["caller_total"] == caller_total, "ordinary caller count") + subtotal = 17 * (terms["scalar_upper"] + routing) + caller_total + require(terms["raw_upper"] == subtotal, "ordinary subtotal") + modeled = subtotal + terms["per_input_conversion"] + terms["lambda_second_charge"] + require(terms["conservative_total"] == modeled, "ordinary retained conservative allowance") + modeled += ordinary["all_caller_scalar_surcharge"] + ordinary["charged_caller_odd_conversions"] + require(modeled == ordinary["retained_signed_model_total"] == tariff["retained_signed_model_total"], + "ordinary signed surcharge") + scale = integer["odd_scale_lcm"] + rate = 4 * (scale.bit_length() + 1 + scale.bit_count()) + sites = 2 * 17 * 1501 + require((sites, rate, sites * rate) == (tariff["native_conversion_sites"], tariff["units_per_site"], + tariff["extra_conversion_ordinary"]), "all native conversions") + total = modeled + sites * rate + require(total == tariff["conservative_total"] and 10**9 - total == tariff["margin"] + and total < 10**9 and tariff["strict_ceiling_met"], "strict ordinary ceiling") + return total + + +def main(): + files, archive = check_custody() + check_native() + source = check_resource("source", SOURCE) + candidate = check_resource("candidate", CANDIDATE) + require((source, candidate, source - candidate) == (815821876, 815804876, 17000), "matched ordinary delta") + print(json.dumps({"status": "PASS_ARCHIVED_BYTES_AND_ORDINARY_ARITHMETIC", "files": files, + "prior_archive_members": archive, "ordinary_before": source, "ordinary_after": candidate}, + sort_keys=True)) + + +if __name__ == "__main__": + main() diff --git a/research/p104-role379-idle-stop/application-evidence/native-replay/NOTICE-7641 b/research/p104-role379-idle-stop/application-evidence/native-replay/NOTICE-7641 new file mode 100644 index 0000000000..00e82ea9ed --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/native-replay/NOTICE-7641 @@ -0,0 +1,20 @@ +Apache-2.0. DreamingOfClouds with Claude Opus 5.5 (Anthropic), via Claude Code. + +The base word (data/base-7637-word.json.gz, unmodified bytes, sha256 of the decompressed word +8ab3d9dbe2e2e24202ac96c6122b010b3e7980912f935cc0cc2db2e9d85f83aa) is SYLforge's #7637 candidate word, vendored as data only. Its +own notices, vendored here with it: + + "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. #7637 and its code are not run by this package; only its word is read as data. + +This package adds 20 swap-then-delete composites (the SWAP-NULL relabel law of our Lean package #7634, the mechanism of our #7630 and +#7636), an exact-zero-join fix and a hub re-settle. check.py is our own code: its replay, crossing and column-test sections come from +our #7630-on-#7623 and swap-composite 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-role379-idle-stop/application-evidence/native-replay/check_native.py b/research/p104-role379-idle-stop/application-evidence/native-replay/check_native.py new file mode 100644 index 0000000000..c037df14d0 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/native-replay/check_native.py @@ -0,0 +1,411 @@ +#!/usr/bin/env python3 +"""Candidate-bound chart catalogue and two-modulus physical replay.""" + +import argparse +from collections import Counter, defaultdict +from concurrent.futures import ProcessPoolExecutor +from datetime import datetime, timezone +from fractions import Fraction +from functools import cache +import gzip +import hashlib +import json +from pathlib import Path +from time import monotonic +from types import ModuleType + +from physical import evaluate, raw_ports + + +ROLE = 379 +FIRST, STOP, LAST = 748, 1065, 1072 +REPLACED_PAIRS = {(FIRST, STOP), (STOP, LAST), (FIRST, LAST)} +SOURCE = { + 7636: { + "head": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "gzip": "1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659", + "raw": "98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2", + "clocks": (131142, 131294), + "events": 202668, + "clear": 180, + "engine": "72dfc0f5435cea2630a0d4e8f466fbb7b866404a22804769c3e690845ca72d2b", + }, + 7658: { + "head": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "gzip": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "raw": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "clocks": (98054, 98204), + "events": 150010, + "clear": 234, + "engine": "334e37a3fb31c8cd374bc4ecafcdb9fb2597eb3192d3d49373417830458cb696", + }, +} +OLD = { + "word": "f9f9a485712c0c94c9d14370e2a8436414e1b53bdf86550d9d6436835e9e06cb", + "gzip": "676c20c53ebd40120903af86bf17c2116f654ab8ce4aa1833f388a2fc400b511", + "engine": "6ca9ec1b134f448fbed59158520c4225679500d5ceafb0410ef790e848fec4bc", + "receipt": "a0bb80f9220fd6414d45e208af1e5571f51e6ac9f333d412dce19ef82854f541", + "ascending": 2957, + "directed": 2979, + "moves": 6171, +} +MODULI = ((1000000009, 11), (998244353, 37)) + + +def require(condition, reason): + if not condition: + raise ValueError(reason) + + +def sha(data): + return hashlib.sha256(data).hexdigest() + + +def stamp(): + return datetime.now(timezone.utc).isoformat() + + +def pinned(path, expected): + require(path.is_file() and not path.is_symlink(), f"missing or symlink input {path.name}") + data = path.read_bytes() + require(sha(data) == expected, f"byte pin {path.name}") + return data + + +def word(path, packed_sha, raw_sha=None): + raw = gzip.decompress(pinned(path, packed_sha)) + require(raw_sha is None or sha(raw) == raw_sha, f"word pin {path.name}") + obj = json.loads(raw) + canonical = json.dumps(obj, sort_keys=True, separators=(",", ":")).encode() + return obj, {"gzip_sha256": packed_sha, "raw_sha256": sha(raw), "canonical_sha256": sha(canonical)} + + +def read_engine(path, expected): + data = pinned(path, expected).decode() + start, end = "NB = 9\n", "# Package-specific checks." + require(data.count(start) == data.count(end) == 1, "phase engine extraction anchors") + section = data.split(start, 1)[1].split(end, 1)[0] + return start + "\n".join(line for line in section.splitlines() + if line.strip() and not line.lstrip().startswith("#")) + "\n" + + +def engine_from(code): + module = ModuleType("pinned_phase_engine") + module.require = require + exec(compile(code, "", "exec"), module.__dict__) + return module + + +def dump(path, value): + with path.open("x") as out: + json.dump(value, out, sort_keys=True, indent=2) + out.write("\n") + + +def mentions(event, role): + return event[1] == role or (event[0] in ("ADD", "COPY") and event[2] == role) + + +def require_cut(source, candidate, clocks): + i, j = clocks + require(source.keys() == candidate.keys() + and all(candidate[k] == v for k, v in source.items() if k != "program"), + "header changed") + old = source["program"] + direct = ["MOVE", ROLE, FIRST, LAST, False] + require(old[i] == ["MOVE", ROLE, FIRST, STOP, False] + and old[j] == ["MOVE", ROLE, STOP, LAST, False], "source cut") + require(not any(mentions(e, ROLE) for e in old[i + 1:j]), "non-idle source stop") + require(candidate["program"] == old[:i] + old[i + 1:j] + [direct] + old[j + 1:], + "candidate contains changes beyond the strict direct route") + + +def span(vectors): + elements = {0} + for v in vectors: + require(type(v) is int and 0 < v < 512 and v not in elements, "invalid chart basis") + elements |= {x ^ v for x in elements} + return frozenset(elements) + + +def groups_for(program, frames): + groups = defaultdict(list) + for i, e in enumerate(program): + if e[0] == "MOVE": + _, r, a, b, flag = e + require(len(frames[a]) != len(frames[b]), "equal-rank MOVE") + key = (a, b) if len(frames[a]) < len(frames[b]) else (b, a) + groups[key].append([i, r, a, b, flag]) + return dict(groups) + + +@cache +def scalar(value): + require(type(value) is str, "literal scalar text") + q = Fraction(value) + require(q != 0, "zero literal scalar") + return q + + +def schedule(w, count, clears, birth): + p, n, k = w["program"], w["public"], w["owned_fields"] + require(len(p) == count and n == 1501 and k == 68, "word/event denominator") + require(len(w["initial"]) == len(w["final"]) == n + and w["initial"][457] == birth, "initial or final frame boundary") + spans = tuple(map(span, w["frames"])) + available = range(len(spans)) + require(all(type(f) is int and f in available for f in w["initial"] + w["final"]), + "out-of-range boundary frame") + charts = w["initial"][:] + [None] * k + starts, lives, peak = {}, [], 0 + counts, paid, owned_paid = Counter(), Counter(), Counter() + for i, e in enumerate(p): + op, r, *rest = e + require(type(r) is int and 0 <= r < n + k, f"field index at {i}") + counts[op] += 1 + if op == "MOVE": + a, b, own = rest + require(type(own) is bool and own == (r >= n), f"MOVE flag at {i}") + require(type(a) is type(b) is int and a in available and b in available + and charts[r] == a, f"MOVE source at {i}") + require(spans[a] < spans[b] or (own and spans[b] < spans[a]), + f"MOVE inclusion at {i}") + charts[r] = b + rank = abs(len(w["frames"][b]) - len(w["frames"][a])) + paid[rank] += 1 + if own: + require(r in starts, f"live owned MOVE at {i}") + owned_paid[rank] += 1 + elif op in ("INIT", "CLEAR"): + f, = rest + require(r >= n and type(f) is int and f in available, f"owned frame at {i}") + if op == "INIT": + require(charts[r] is None and r not in starts, f"fresh owned birth at {i}") + charts[r] = f + starts[r] = f + peak = max(peak, len(starts)) + else: + require(charts[r] == f and r in starts, f"live owned CLEAR at {i}") + lives.append([r, starts.pop(r), f]) + charts[r] = None + elif op == "SCALE": + value, f = rest + require(type(f) is int and charts[r] == f, f"SCALE frame at {i}") + scalar(value) + elif op in ("ADD", "COPY"): + s, value, f = rest + require(type(s) is int and 0 <= s < n + k and r != s and type(f) is int + and charts[r] == charts[s] == f, f"{op} frame at {i}") + require(op != "COPY" or r >= n, f"private COPY at {i}") + scalar(value) + else: + raise ValueError(f"unknown event {op} at {i}") + require(charts == w["final"] + [None] * k and not starts, "end charts or live owned state") + require(counts["INIT"] == counts["CLEAR"] == len(lives) == clears and peak == 50, + "owned lifetime denominator or peak") + return {"event_counts": dict(counts), "paid": dict(paid), "owned_paid": dict(owned_paid), + "peak": peak, "lifetime_trace": lives, "birth457": birth} + + +def verified_prior(oldword, folder): + receipt = json.loads(pinned(folder / "ALL-PAIRS-RESULT.json", OLD["receipt"])) + require(receipt["status"] == "PASS_ALL_LITERAL_MOVE_PAIR_COLUMNS" + and receipt["engine_sha256"] == OLD["engine"] + and receipt["canonical_word_sha256"] == OLD["word"] + and receipt["unique_pairs"] == OLD["ascending"] + and receipt["directed_pairs"] == OLD["directed"] + and receipt["move_events"] == OLD["moves"] + and receipt["shards"] == [986, 986, 985] + and len(receipt["shard_sha256"]) == 3, "historical pair receipt completeness") + manifest = json.loads(pinned(folder / "ALL-PAIRS-MANIFEST.json", receipt["manifest_sha256"])) + groups = groups_for(oldword["program"], oldword["frames"]) + keys = sorted(groups) + require(len(keys) == OLD["ascending"] + and manifest["groups"] == [{"ascent": list(p), "occurrences": groups[p]} for p in keys] + and manifest["canonical_word_sha256"] == OLD["word"] + and manifest["gzip_sha256"] == OLD["gzip"] + and manifest["engine_sha256"] == OLD["engine"], "historical literal census mismatch") + by_pair = {} + for shard, (digest, count) in enumerate(zip(receipt["shard_sha256"], receipt["shards"])): + lines = pinned(folder / f"ALL-PAIRS-SHARD-{shard}.jsonl", digest).splitlines() + require(len(lines) == count, "incomplete predecessor shard") + for i, line in zip(range(shard, len(keys), 3), lines): + p = keys[i] + rank = len(oldword["frames"][p[1]]) - len(oldword["frames"][p[0]]) + expected = {"index": i, "ascent": list(p), "rank": rank, "forward_columns": 512, + "adjoint_columns": 512, "wrong_phase_rejected": True} + require(json.loads(line) == expected and p not in by_pair, "bad prior phase row") + by_pair[p] = (shard, i) + require(set(by_pair) == set(groups), "incomplete prior phase table") + return by_pair + + +def pair_job(job): + code, frames, keys = job + phase = engine_from(code) + return [(pair, phase.pair_columns(frames, *pair, wrong_phase=True)) for pair in keys] + + +def pair_catalogue(code, base, changed, oldword, accepted, workers): + frames = tuple(tuple(f) for f in base["frames"]) + oldframes = oldword["frames"] + a, b = (groups_for(w["program"], frames) for w in (base, changed)) + keys = sorted(set(a) | set(b)) + reused = {} + for i, j in keys: + key = (i, j) + if (key in accepted and key not in REPLACED_PAIRS + and all(list(frames[f]) == oldframes[f] for f in key)): + reused[key] = accepted[key] + needs = [k for k in keys if k not in reused] + require(REPLACED_PAIRS <= set(needs), "three route columns must run fresh") + print(f"pair coverage: {len(a)} source, {len(b)} candidate, " + f"{len(reused)} reused, {len(needs)} fresh", flush=True) + if workers == 1: + fresh = dict(pair_job((code, frames, needs))) + else: + with ProcessPoolExecutor(max_workers=workers) as pool: + chunks = pool.map(pair_job, [(code, frames, needs[i::workers]) for i in range(workers)]) + fresh = dict(item for batch in chunks for item in batch) + require(set(fresh) == set(needs), "incomplete fresh phase table") + rows = [] + for p in keys: + rank = len(frames[p[1]]) - len(frames[p[0]]) + require(p in reused or fresh[p] == rank, "rank gate") + rows.append({"ascent": p, "rank": rank, "forward_columns": 512, "adjoint_columns": 512, + "wrong_phase_rejected": True, "prior_shard_and_index": reused.get(p), + "source_occurrences": a.get(p, []), "candidate_occurrences": b.get(p, [])}) + + def census(x): + return {"ascent_groups": len(x), "directed_pairs": + len({(row[2], row[3]) for entries in x.values() for row in entries}), + "move_occurrences": sum(map(len, x.values()))} + + return {"counts": {"source": census(a), "candidate": census(b), "union": len(keys), + "reused": len(reused), "fresh": len(fresh)}, "rows": rows} + + +def route_identity(phase, frames): + def direct(a, b): + return phase.dagger(phase.frame_circuit(frames[a])) + phase.frame_circuit(frames[b]) + + two_steps = direct(FIRST, STOP) + direct(STOP, LAST) + one_step = direct(FIRST, LAST) + require(phase.tableau(two_steps) == phase.tableau(one_step), "bypass signed action") + for a, b in ((two_steps, one_step), (phase.dagger(two_steps), phase.dagger(one_step))): + require(all(phase.column(a, j) == phase.column(b, j) for j in range(512)), + "bypass exact operator column") + wrong = one_step + (("phase", 1),) + require(phase.tableau(wrong) == phase.tableau(two_steps) + and phase.column(wrong) != phase.column(two_steps), "bypass phase mutation detected") + return {"route": [FIRST, STOP, LAST], "direct": [FIRST, LAST], + "all_forward": 512, "all_adjoint": 512, "wrong_phase": "rejected"} + + +def changed_event(w, clock, event): + p = w["program"] + return {**w, "program": p[:clock] + [event] + p[clock + 1:]} + + +def rejected(label, thunk): + try: + thunk() + except ValueError as exc: + require(str(exc).startswith(label), f"unexpected mutation rejection {exc}") + return str(exc) + raise ValueError(f"mutation accepted: {label}") + + +def controls(w, count, clears, birth, cut): + def edit(event): + return schedule(changed_event(w, cut, event), count, clears, birth) + + initial = w["initial"][:] + initial[457] = 281 if birth != 281 else 3 + early, late = w["program"][:cut], w["program"][cut + 1:] + own = next(i for i, e in enumerate(w["program"]) if e[0] == "MOVE" and e[4] is True) + return { + "wrong_direct_source": rejected("MOVE source", lambda: edit(["MOVE", ROLE, STOP, LAST, False])), + "wrong_direct_flag": rejected("MOVE flag", lambda: edit(["MOVE", ROLE, FIRST, LAST, True])), + "non_bool_flag": rejected("MOVE flag", lambda: edit(["MOVE", ROLE, FIRST, LAST, 0])), + "wrong_owned_flag": rejected("MOVE flag", lambda: schedule( + changed_event(w, own, w["program"][own][:4] + [False]), count, clears, birth)), + "nonnested_ascent": rejected("MOVE inclusion", lambda: edit(["MOVE", ROLE, FIRST, FIRST, False])), + "missing_direct": rejected("ADD frame", lambda: schedule( + {**w, "program": early + late}, count - 1, clears, birth)), + "wrong_birth457": rejected("initial or final frame", lambda: schedule( + {**w, "initial": initial}, count, clears, birth)), + } + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--pr", required=True, type=int, choices=SOURCE) + for name in ("source", "candidate", "engine", "prior-engine", "prior-word", "prior-receipts", "out"): + parser.add_argument("--" + name, required=True, type=Path) + parser.add_argument("--candidate-gzip", required=True) + parser.add_argument("--candidate-raw", required=True) + parser.add_argument("--workers", default=1, choices=(1, 2), type=int) + args = parser.parse_args() + start = monotonic() + src = SOURCE[args.pr] + direct_clock = src["clocks"][1] - 1 + pins = {args.source: src["gzip"], args.candidate: args.candidate_gzip, + args.engine: src["engine"], args.prior_engine: OLD["engine"], args.prior_word: OLD["gzip"]} + args.out.mkdir(exist_ok=False) + dump(args.out / "START.json", { + "started_at": stamp(), "pr": args.pr, "head": src["head"], + "source_raw": src["raw"], "candidate_raw": args.candidate_raw, + "source_gzip": src["gzip"], "candidate_gzip": args.candidate_gzip, + "scripts": {p.name: sha(p.read_bytes()) for p in (Path(__file__), Path(__file__).with_name("physical.py"))}, + "primes_and_seeds": MODULI, "args": vars(args) | { + k: str(v) for k, v in vars(args).items() if isinstance(v, Path)}}) + old, sb = word(args.source, src["gzip"], src["raw"]) + new, cb = word(args.candidate, args.candidate_gzip, args.candidate_raw) + require_cut(old, new, src["clocks"]) + birth = 281 + os = schedule(old, src["events"], src["clear"], birth) + ns = schedule(new, src["events"] - 1, src["clear"], birth) + require(os["lifetime_trace"] == ns["lifetime_trace"] and os["owned_paid"] == ns["owned_paid"], + "ordered owned schedule changed") + ms = controls(new, src["events"] - 1, src["clear"], birth, direct_clock) + code = read_engine(args.engine, src["engine"]) + require(code == read_engine(args.prior_engine, OLD["engine"]), "phase engines differ") + oldword, pb = word(args.prior_word, OLD["gzip"]) + require(pb["canonical_sha256"] == OLD["word"], "historical canonical word") + prior = verified_prior(oldword, args.prior_receipts) + cat = pair_catalogue(code, old, new, oldword, prior, args.workers) + dump(args.out / "MOVE-PAIRS.json", cat) + phase = engine_from(code) + route = route_identity(phase, old["frames"]) + ports = raw_ports(phase, old, require) + dump(args.out / "OPERATORS.json", {"route": route, "raw_ports": ports, "controls": ms}) + def task(m): + prime, seed = m + ans = evaluate(phase, old, new, prime, seed, direct_clock, prime == MODULI[0][0], require) + dump(args.out / f"PHYSICAL-{prime}.json", ans) + return ans + + finite = [task(m) for m in MODULI] + for path, h in pins.items(): + pinned(path, h) + require(prior == verified_prior(oldword, args.prior_receipts), "historical proof custody") + report = { + "status": "PASS_STRICT_379_NATIVE_FINITE", + "pr": args.pr, "head": src["head"], "source": sb, "candidate": cb, "historical": pb, + "source_cut_clocks": src["clocks"], "candidate_direct_clock": direct_clock, + "phase_code_sha256": sha(code.encode()), + "prior_proof_sha256": OLD["receipt"], "pair_counts": cat["counts"], + "route_columns": route, "raw_ports": ports, "controls": ms, + "schedules": {"source": os, "candidate": ns}, + "finite_replays": [{"prime": x["prime"], "seed": x["seed"], "digests": x["digests"], + "endpoint_rows": x["endpoint_rows"]} for x in finite], + "artifacts": {p.name: sha(p.read_bytes()) for p in sorted(args.out.glob("*.json"))}, + "completed_at": stamp(), "elapsed_seconds": monotonic() - start, + } + dump(args.out / "RESULT.json", report) + print(f"PASS_STRICT_379_NATIVE_FINITE pr={args.pr} elapsed={report['elapsed_seconds']:.1f}", flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/p104-role379-idle-stop/application-evidence/native-replay/physical.py b/research/p104-role379-idle-stop/application-evidence/native-replay/physical.py new file mode 100644 index 0000000000..44c42bfca7 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/native-replay/physical.py @@ -0,0 +1,306 @@ +"""Dense all-event finite replay with integer gate arithmetic.""" + +from fractions import Fraction +from functools import cache +import hashlib +from math import isqrt +from random import Random +from struct import Struct +from time import monotonic + + +DIM = 512 +ADDRESS = range(DIM) +PACK_ROW = Struct("<512I") + + +class GateInterpreter: + def __init__(self, prime, require): + require(type(prime) is int and 5 <= prime < 2**31 and prime % 4 == 1, + "modulus range and fourth root") + require(all(prime % f for f in range(3, isqrt(prime) + 1, 2)), "modulus is not prime") + self.p = prime + for x in range(2, prime): + root = pow(x, (prime - 1) // 4, prime) + if root * root % prime == prime - 1: + self.i = root + break + self.powers = (1, self.i, prime - 1, prime - self.i) + self.zero = [0] * DIM + self.gates = {} + self.require = require + + def coefficient(self, script): + q = Fraction(script) + self.require(q.denominator % self.p != 0, "literal denominator vanishes in F_p") + return q.numerator * pow(q.denominator, -1, self.p) % self.p + + def gate(self, spec): + if spec in self.gates: + return self.gates[spec] + op, *params = spec + if op == "P": + rows, = params + perm = [None] * DIM + for prev in ADDRESS: + after = sum(((prev & row).bit_count() % 2) << j for j, row in enumerate(rows)) + self.require(perm[after] is None, "non-permutation gate") + perm[after] = prev + gate = ("gather", perm) + elif op == "X": + offset, = params + gate = ("gather", [x ^ offset for x in ADDRESS]) + elif op == "D": + rows, linear = params + weights = [] + for mask in ADDRESS: + phase = 0 + for j, (row, weight) in enumerate(zip(rows, linear)): + if mask >> j & 1: + phase += weight + 2 * ((row & mask) >> (j + 1)).bit_count() + weights.append(self.powers[phase % 4]) + gate = ("weights", weights) + elif op == "phase": + exponent, = params + gate = ("phase", self.powers[exponent % 4]) + elif op == "C": + line, sign = params + half = (self.p + 1) // 2 + gate = ("mix", (1 + sign * self.i) * half % self.p, + (1 - sign * self.i) * half % self.p, [x ^ line for x in ADDRESS]) + else: + raise ValueError(f"unknown physical gate {op}") + self.gates[spec] = gate + return gate + + def apply(self, gates, value): + p = self.p + for op, *spec in gates: + if op == "gather": + indices, = spec + value = [value[j] for j in indices] + elif op == "weights": + weights, = spec + value = [a * b % p for a, b in zip(value, weights)] + elif op == "phase": + weight, = spec + if weight != 1: + value = [a * weight % p for a in value] + else: + c, d, indices = spec + value = [(c * a + d * value[j]) % p for a, j in zip(value, indices)] + return value + + def column_residue(self, exact): + sparse, denominator = exact + inverse = pow(2, -denominator, self.p) + target = [0] * DIM + for x, (re, im) in sparse.items(): + target[x] = (re + self.i * im) * inverse % self.p + return target + + +def raw_ports(phase, w, require): + """The 104 hosted parent-port equations, plus opposite-sign controls.""" + frames = w["frames"] + require(len(w["live"]) == len(w["ports"]) == 104 and len(set(w["live"])) == 104, + "raw port count") + + @cache + def frame(i): + return phase.frame_op(frames[i]) + + def same(x, y): + return x.tab == y.tab and all(phase.column(x.circ, j) == phase.column(y.circ, j) for j in (0, 1)) + + full = phase.op_four(range(9)) + for r, q in zip(w["live"], w["ports"]): + y = r + 112 + low_x, low_y = w["initial"][r], w["initial"][y] + high_x, high_y = w["final"][r], w["final"][y] + require(frames[low_x] == [q] and frames[low_y] == [] + and len(frames[high_x]) == 9 and len(frames[high_y]) == 8, f"port chart dimensions {r}") + p, v, z = frame(high_y), frame(high_x), frame(low_y) + qp, qm = phase.op_c(q, 1), phase.op_c(q, -1) + d = qm.then(full) + low_adapter = phase.lower(qp.dag().then(frame(low_x))) + high_adapter = phase.lower(p.dag().then(d)) + require(low_adapter["rank"] == high_adapter["rank"] == 0, f"port adapter rank {r}") + circ = phase.recipe_circuit(high_adapter) + mp = phase.Op(phase.tableau(circ), circ) + xx = qp.dag().then(v) + yy = z.dag().then(p).then(mp) + yx = qp.dag().then(p).then(mp) + xy = z.dag().then(v) + require(same(xx, d) and same(yy, d) and same(yx, qm.then(d)) and same(xy, qp.then(d)), + f"raw port operator identity {r}") + require(not same(xy, qm.then(d)) and not same(yx, qp.then(d)), + f"raw port operator sign control {r}") + return {"ports": 104, "directions": 4, "opposite_sign_rejections": 208, + "comparisons": "signed Pauli action and Gaussian absolute phase"} + + +def digest(rows): + value = hashlib.sha256() + for row in rows: + value.update(PACK_ROW.pack(*row)) + return value.hexdigest() + + +def evaluate(phase, source, candidate, prime, seed, altered_clock, test_wrong_phase, require): + """Evaluate dense finite fields. Compiled MOVEs and oracle frame maps differ.""" + t0 = monotonic() + field = GateInterpreter(prime, require) + frames, n = source["frames"], source["public"] + size = n + source["owned_fields"] + rand = Random(seed) + initial = [[rand.randrange(prime) for _ in ADDRESS] for _ in range(n)] + + @cache + def direct_frame(frame): + return phase.frame_circuit(frames[frame]) + + @cache + def chart_operator(frame): + return phase.frame_op(frames[frame]) + + @cache + def literal(a, b): + return phase.dagger(direct_frame(a)) + direct_frame(b) + + @cache + def compiled(a, b): + lo, hi = (a, b) if len(frames[a]) < len(frames[b]) else (b, a) + rec = phase.lower(chart_operator(lo).dag().then(chart_operator(hi))) + require(rec["rank"] == len(frames[hi]) - len(frames[lo]), f"compiled MOVE rank {lo},{hi}") + circ = phase.recipe_circuit(rec) + if lo != a: + circ = phase.dagger(circ) + return tuple(field.gate(g) for g in circ) + + @cache + def oracle(a, b): + return tuple(field.gate(g) for g in literal(a, b)) + + @cache + def residue(value): + return field.coefficient(value) + + def cvec(a, b, v): + return field.apply(compiled(a, b), v) + + def pred_move(a, b, v): + return field.apply(oracle(a, b), v) + + # Independently reduce the exact column convention before using a dense + # finite vector. Include the bypass path and a nontrivial endpoint frame. + endpoints = (748, 1072) + r0 = source["live"][0] + boundary = (source["initial"][r0], source["final"][r0]) + witnesses = ((endpoints, cvec), (endpoints[::-1], cvec), (boundary, pred_move)) + for (a, b), move in witnesses: + for j in (0, 5): + v = [0] * DIM + v[j] = 1 + require(move(a, b, v) == field.column_residue(phase.column(literal(a, b), j)), + f"finite versus exact interpreter column {a},{b},{j}") + + def scale(vector, a): + return [a * x % prime for x in vector] + + def plus(x, a, y): + return [(u + a * v) % prime for u, v in zip(x, y)] + + def replay(word, inject=False): + values = initial + [field.zero] * (size - n) + erased = hashlib.sha256() + clears, copy_checks = 0, 0 + for i, e in enumerate(word["program"]): + op, r = e[:2] + if op == "MOVE": + row = cvec(e[2], e[3], values[r]) + values[r] = scale(row, field.i) if inject and i == altered_clock else row + elif op == "INIT": + require(not any(values[r]), f"nonzero dead owned state at INIT {i}") + values[r] = field.zero + elif op == "CLEAR": + erased.update(PACK_ROW.pack(*values[r])) + values[r] = field.zero + clears += 1 + elif op == "SCALE": + values[r] = scale(values[r], residue(e[2])) + else: + if op == "COPY": + if any(values[r]) and inject: + return None, {"detected_at_COPY": i} + require(not any(values[r]), f"nonzero owned COPY target at {i}") + copy_checks += 1 + values[r] = plus(values[r], residue(e[3]), values[e[2]]) + require(not any(any(v) for v in values[n:]), "nonzero final owned payload") + return values, {"events": len(word["program"]), "ordered_clear_values": erased.hexdigest(), + "clears": clears, "copy_zero_checks": copy_checks} + + H = source["hosted"] + require(H["mode"] == "mix-t0", "hosted native model") + live, dp = source["live"], H["Dports"] + x2, y2 = H["X2"], H["Y2"] + require(len(dp) == len(set(dp)) == len(x2) == len(y2) and set(dp) <= set(range(104)), + "hosted second-port count") + mains = set(live) | {r + 112 for r in live} | set(x2) | set(y2) + require(len(mains) == 2 * (104 + len(x2)), "overlapping hosted role") + alpha1, beta1 = map(Fraction, (H["alpha"], H["beta"])) + alpha2, beta2 = map(Fraction, (H["alpha2"], H["beta2"])) + require(alpha2, "nonzero second-port sign witness") + lo, hi = source["initial"], source["final"] + + def row_from(r, s): + return pred_move(lo[s], hi[r], initial[s]) + + def expected(rows, r, s, a, b): + rows[r] = plus(row_from(r, r), residue(a), row_from(r, s)) + rows[s] = plus(scale(row_from(s, r), residue(b)), residue(1 + a * b), row_from(s, s)) + + ref = [None] * n + for k, x in enumerate(live): + a, b = (0, 1) if k in dp else (alpha1, beta1) + expected(ref, x, x + 112, a, b) + for x, y in zip(x2, y2): + expected(ref, x, y, alpha2, beta2) + for r in range(n): + if r not in mains: + ref[r] = row_from(r, r) + require(all(row is not None for row in ref), "incomplete physical endpoint predictor") + + old, old_counts = replay(source) + new, new_counts = replay(candidate) + for label, data in (("source", old), ("candidate", new)): + bad = [r for r in range(n) if data[r] != ref[r]] + require(not bad, f"{label} physical endpoint mismatch {bad[:12]}") + require(old == new, "paired physical endpoints differ") + require(old_counts.keys() == new_counts.keys() + and all(old_counts[k] == new_counts[k] for k in old_counts if k != "events"), + "ordered CLEAR values or COPY zero observations differ") + wrong_ref = [None] * n + for x, y in zip(x2, y2): + expected(wrong_ref, x, y, -alpha2, beta2) + wrong_sign = [r for r in (*x2, *y2) if new[r] != wrong_ref[r]] + require(bool(wrong_sign), "wrong second-port alpha sign accepted") + failed = None + if test_wrong_phase: + mutated, counts = replay(candidate, inject=True) + failed = counts if mutated is None else {"endpoint_rows": [ + r for r in range(n) if mutated[r] != ref[r]]} + require(failed.get("detected_at_COPY") is not None or bool(failed.get("endpoint_rows")), + "wrong bypass phase accepted") + return { + "status": "PASS_PAIRED_DENSE_PHYSICAL_WORDS", + "prime": prime, "seed": seed, "i_squared_minus_one": field.i, + "endpoint_rows": n, "owned_zero_rows": size - n, "vector_width": DIM, + "elapsed_seconds": monotonic() - t0, + "digests": {"initial": digest(initial), "source": digest(old), "candidate": digest(new), + "reference_public": digest(ref)}, + "source": old_counts, "candidate": new_counts, + "wrong_second_alpha_rows": wrong_sign, "wrong_bypass_phase": failed, + "six_finite_exact_column_crosschecks": 6, + "scope": "One deterministic dense input at this modulus through every literal event", + } diff --git a/research/p104-role379-idle-stop/application-evidence/native-replay/predecessor-pairs.zip b/research/p104-role379-idle-stop/application-evidence/native-replay/predecessor-pairs.zip new file mode 100644 index 0000000000..b432752343 Binary files /dev/null and b/research/p104-role379-idle-stop/application-evidence/native-replay/predecessor-pairs.zip differ diff --git a/research/p104-role379-idle-stop/application-evidence/native-replay/run_guarded.sh b/research/p104-role379-idle-stop/application-evidence/native-replay/run_guarded.sh new file mode 100644 index 0000000000..c0447e3fdc --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/native-replay/run_guarded.sh @@ -0,0 +1,60 @@ +#!/usr/bin/env bash +set -euo pipefail + +out=$1 +wall=$2 +cpus=$3 +run_id=$4 +shift 4 +here=$(dirname -- "${BASH_SOURCE[0]}") +test ! -e "$out" && test ! -e "$out.stdout" && test ! -e "$out.launch.json" +test "$wall" -gt 0 && test "$wall" -le 1200 + +rc=0 +/usr/bin/time -v -o "$out.time" timeout -k 10s "${wall}s" \ + prlimit --as=2684354560 --cpu="$wall" taskset -c "$cpus" \ + python3.12 -B "$here/check_native.py" "$@" --out "$out" \ + > "$out.stdout" 2> "$out.stderr" || rc=$? + +python3.12 -B - "$out" "$rc" "$run_id" "$0" "$here" "$wall" "$cpus" <<'PY' +from datetime import datetime, timezone +import hashlib +import json +from pathlib import Path +import sys + +out, rc, run_id, launcher, here, wall, cpus = sys.argv[1:] +out, launcher, here = Path(out), Path(launcher), Path(here) + +def digest(p): + return hashlib.sha256(p.read_bytes()).hexdigest() if p.is_file() else None + +start, result = out / "START.json", out / "RESULT.json" +record = { + "stage": "native", "run_id": run_id, "exit": int(rc), "ended_at": datetime.now(timezone.utc).isoformat(), + "wall_seconds_limit": int(wall), "max_address_space_bytes_per_process": 2684354560, + "affinity": [int(c) for c in cpus.split(",")], + "adapter_sha256": digest(here / "check_native.py"), + "physical_sha256": digest(here / "physical.py"), + "launcher_sha256": digest(launcher), + "start_sha256": digest(start), "native_result_sha256": digest(result), + "stdout_sha256": digest(out.with_suffix(out.suffix + ".stdout")), + "stderr_sha256": digest(out.with_suffix(out.suffix + ".stderr")), + "time_sha256": digest(out.with_suffix(out.suffix + ".time")), +} +if start.is_file(): + a = json.loads(start.read_bytes()) + record["candidate_raw_sha256"] = a["candidate_raw"] + record["started_at"] = a["started_at"] + if a["scripts"] != {"check_native.py": record["adapter_sha256"], "physical.py": record["physical_sha256"]}: + raise ValueError("adapter or physical code changed during run") +if record["exit"] == 0: + r = json.loads(result.read_bytes()) + if r["status"] != "PASS_STRICT_379_NATIVE_FINITE" or r["candidate"]["raw_sha256"] != record["candidate_raw_sha256"]: + raise ValueError("native completion receipt detached") + record["candidate_canonical_sha256"] = r["candidate"]["canonical_sha256"] +with out.with_suffix(out.suffix + ".launch.json").open("x") as f: + json.dump(record, f, indent=2, sort_keys=True) + f.write("\n") +PY +exit "$rc" diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/candidate/GRID.json b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/GRID.json new file mode 100644 index 0000000000..8d75f36299 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/GRID.json @@ -0,0 +1,434 @@ +{ + "status": "FINITE_GRID_AND_ENVELOPE_ONLY", + "compressed_word_sha256": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "decompressed_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "canonical_word_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "source_pins": { + "derive_grid.py": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0", + "independent_bounds.py": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "envelopes.py": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "source_binding.py": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "ODD-TYPE-AB-CALLER.json": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "ODD-CALLER-EXACT-GRID.json": "87d25d9fa3778bf4784e3a9e17f32ce5ba372663c6e97392cc62b87e6719042c" + }, + "engines": { + "rational": { + "source_sha256": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0", + "adapted_sha256": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0", + "edits": [] + }, + "integer": { + "source_sha256": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "adapted_sha256": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "edits": [] + }, + "binding": { + "source_sha256": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "adapted_sha256": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "edits": [] + }, + "envelope": { + "source_sha256": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "adapted_sha256": "01463d192d08d7cb04979a1c2ac374c594948aa506d3fa2115fa487f79935d75", + "edits": [ + { + "old": "elif op in (\"LAMBDA\", \"IDLE_ONE\"):", + "new": "elif op in (\"LAMBDA\", \"IDLE_ONE\", \"IDLE_ODD\"):", + "count": 2 + }, + { + "old": "all(0 <= r < 38 for r in ar) and all(38 <= r < 76 for r in br[:2])", + "new": "all(caller[\"types\"][\"A\"][\"offset\"] <= r < caller[\"types\"][\"A\"][\"offset\"] + caller[\"types\"][\"A\"][\"roles\"] for r in ar) and all(caller[\"types\"][\"B\"][\"offset\"] <= r < caller[\"types\"][\"B\"][\"offset\"] + caller[\"types\"][\"B\"][\"roles\"] for r in br[:2])", + "count": 1 + }, + { + "old": "all(1 <= k <= 18 for k in e[3])", + "new": "all(1 <= k <= caller[\"stages\"] for k in e[3])", + "count": 1 + }, + { + "old": "need(j_order == list(range(1, 19)), \"exact eighteen native calls\")", + "new": "need(j_order == list(range(1, caller[\"stages\"] + 1)), \"all chronological native calls\")", + "count": 1 + }, + { + "old": "word[\"public\"] - len(mains) == 1061", + "new": "word[\"public\"] - len(mains) == expected_helper_count", + "count": 1 + }, + { + "old": "physical_main_inputs=3952, fresh_arbitrary_helpers=18 * 1061,", + "new": "physical_main_inputs=sum(t[\"roles\"] * len(t[\"ports\"]) for t in caller[\"types\"].values()), fresh_arbitrary_helpers=caller[\"stages\"] * expected_helper_count,", + "count": 1 + }, + { + "old": "need(len(e[3]) == len(set(e[3]))", + "new": "need(op != \"IDLE_ODD\" or (len(e[3]) == 1 and e[4] == -1), \"signed child signature\")\n need(len(e[3]) == len(set(e[3]))", + "count": 1 + }, + { + "old": "(life, peak, owned_count) == (54, 43, 51)", + "new": "(life, peak, owned_count) == (234, 50, 68)", + "count": 1 + } + ] + } + }, + "rational_grid": { + "odd_scale": 225, + "fractional_bits": 14, + "unscaled_maximum_mass": "1291569/10", + "scaled_maximum_mass": "58120605/2", + "mass_witness": [ + 119468, + "stored" + ], + "coefficient_visits": 24277036 + }, + "integer_grid": { + "odd_scale_lcm": 225, + "dyadic_height": 14, + "maximum_scaled_mass": "58120605/2", + "mass_witness": [ + 119468, + "stored add" + ], + "numerator_bits": 18, + "coefficient_visits": 24277036 + }, + "native_envelope": { + "census": { + "events": 150009, + "public": 1501, + "owned_labels": 68, + "lifetimes": 234, + "peak_owned": 50, + "opcodes": { + "SCALE": 4149, + "ADD": 139227, + "INIT": 234, + "MOVE": 6165, + "CLEAR": 234 + }, + "scalars": { + "integer": 60504, + "dyadic": 136669, + "noninteger": 82872, + "odd": 6707 + }, + "max_numerator": 199393, + "numerator_bits": 18, + "max_denominator": 15360, + "denominator_bits": 14 + }, + "bounds": { + "M": { + "exact": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "strict_power_of_two": 123, + "witness": { + "cut": 146206, + "register": 1428, + "factor": "1", + "kind": "stored" + } + }, + "Sigma": { + "exact": "88868123222295382265912417766187724151032108484241/19568944742400000", + "strict_power_of_two": 112, + "witness": { + "cut": 146206, + "register": 1428, + "factor": "1", + "kind": "stored" + } + }, + "Gamma": { + "exact": "88868123222295382265912417766187724151032108484241/19568944742400000", + "strict_power_of_two": 112, + "witness": { + "cut": 150009, + "register": 1428, + "factor": "1", + "kind": "public-return" + } + } + }, + "independent_adjoint": { + "M": { + "entrance_mass": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "residual_mass": "88868123222295382265912417766187724151032108484241/19568944742400000", + "active_residual_sites": 52859 + }, + "Sigma": { + "entrance_mass": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "residual_mass": "88868123222295382265912417766187724151032108484241/19568944742400000", + "active_residual_sites": 52859 + }, + "Gamma": { + "entrance_mass": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "residual_mass": "88868123222295382265912417766187724151032108484241/19568944742400000", + "active_residual_sites": 52859 + } + } + }, + "caller_envelope": { + "bounds": { + "M_caller": { + "exact": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "strict_power_of_two": 897, + "witness": { + "event": 4750, + "register": 37, + "cut": 4751, + "factor": "1", + "kind": "stored" + } + }, + "Sigma_caller": { + "exact": "330760398163091904274517275209669219972015945865458218163734882060695321306451726653037009573081354800444678063559544717421760840994040604790042887364557399083547601282242680052564909509962951504752010259120191359591522788506772808919180865748847577957182898163352134613269341707563134066891785388656117877084183091567768369238016129985497933507/214228033597440000000000000000000000000000000", + "strict_power_of_two": 998, + "witness": { + "event": 4752, + "register": 37, + "cut": 4753, + "factor": "1", + "kind": "stored" + } + }, + "M_joint_entrance": { + "exact": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "strict_power_of_two": 892, + "witness": { + "event": 4691, + "register": 36, + "cut": 4691, + "factor": "1", + "kind": "stored" + } + }, + "E_joint_entrance": { + "exact": "12816394039616740054301428707738206262972920737292416934306677378582252953391659109122294219681298187634891498582629514903927815803255251319901355830097785447995374021759550611999121237104494113109034303943474746005063322533097631605030572291283845821714463350613118907293501490209740336309717504347943306623785346190380992477072794929181180617/285637378129920000000000000000000000000000000", + "strict_power_of_two": 993, + "witness": { + "event": 4691, + "register": 36, + "cut": 4691, + "factor": "1", + "kind": "stored" + } + }, + "M_context": { + "exact": "2798643541927124281565622653405811567254114435814381562954829829904044911025149119256416590944270172033820842434555214201348455495477587726146953089298606236886344310265002192927363173667316792923604772702767535736828157980095365812835163225081225571631868036442186408761492427582224034439095062462622547720346433409678960684512818380768272795162653/23803114844160000000000000000000000000000000", + "strict_power_of_two": 1014, + "witness": { + "event": 4691, + "register": null, + "cut": 4692, + "factor": "1", + "kind": "stored" + } + }, + "Sigma_context": { + "exact": "2881812443569994053657152449243936360004691846231651634961872013947121632155651449114923443392571962658954847320581884752631805214753542056312271519371617361668852262758313642922518451378683072169685262934649726334956074695505708738720277758054959159768087107714460577895841118368288171075782936934446146283002172165157719384716258279487470664369457156933265888072027242393396704339223182866366331/11179244137976837456265216000000000000000000000000000000000000", + "strict_power_of_two": 1115, + "witness": { + "event": 4691, + "register": null, + "cut": 4692, + "factor": "1", + "kind": "stored" + } + }, + "Gamma_context": { + "exact": "330760398163091904274517275209669219972015945865458218163734882060695321306451726653037009573081354800444678063559544717421760840994040604790042887364557399083547601282242680052564909509962951504752010259120191359591522788506772808919180865748847577957182898163352134613269341707563134066891785388656117877084183091567768369238016129985497933507/214228033597440000000000000000000000000000000", + "strict_power_of_two": 998, + "witness": { + "register": 37, + "cut": 4783, + "factor": "1", + "kind": "public-return" + } + } + }, + "sites": { + "ADD": 4126, + "noninteger_scalar": 1752, + "SCALE": 312, + "IDLE_ONE": 90, + "LAMBDA": 178, + "J": 17, + "IDLE_ODD": 4, + "SWAP": 52, + "QUERY": 4 + }, + "joint_entries": [ + { + "event": 43, + "stage": 1, + "entrance_mass": "2067/2", + "entrance_defect": "1435/4" + }, + { + "event": 137, + "stage": 2, + "entrance_mass": "56849465528/5", + "entrance_defect": "152445000652388054806622022823066786597401963145058401087/6115295232000000" + }, + { + "event": 268, + "stage": 3, + "entrance_mass": "899756300051784928313/5", + "entrance_defect": "231623719028921087238185337903798137131038383691130798863630100203967/587068342272000000" + }, + { + "event": 432, + "stage": 4, + "entrance_mass": "2514111326902273689027625979152/15", + "entrance_defect": "215735385072722726983392744991929660030483938415353428881951585786071837538431/587068342272000000" + }, + { + "event": 633, + "stage": 5, + "entrance_mass": "513576167499541081817002847690160861158177/15", + "entrance_defect": "44069867182931405474784010397780283583054513179433220196190933548119103921540282929486201/587068342272000000" + }, + { + "event": 867, + "stage": 6, + "entrance_mass": "49174910102467876864090432969907258581035345395534834/225", + "entrance_defect": "4219689101812318065496804353013134594647242022349188471551403631186223364399726172850297087689751909/8806025134080000000" + }, + { + "event": 1138, + "stage": 7, + "entrance_mass": "47202796791779792903787260464709452698419616298153732189406926691/225", + "entrance_defect": "450051384113231625178216600108342294792918250259791159160757423357718853252014635332357419408908864986988713259/978447237120000000" + }, + { + "event": 1423, + "stage": 8, + "entrance_mass": "1527059719525243651854937925515623170877847518562264265010551055991429949116792541/28125", + "entrance_defect": "131036686043150759588914531707300949777442858451143074046692878249208644168083618286169551437677833712439578351677360281541371261/1100753141760000000000" + }, + { + "event": 3058, + "stage": 9, + "entrance_mass": "45382020709918266925583064268574418985484021788023395083741971786893952543604385214817042722264713249357732585113211736557042182118473445437784492974844696068231496289005681248244219743195326431922663592509646282903/2703048706054687500000000", + "entrance_defect": "46730664351108408440621109049557856787146375271160685350167861349657561892038926537018269482094425089642970843256500859029681099002229882531828524024840116640949518146088806254258465418121091054640780216659463152810781264649427090559528322522771147024254729588081/1269499458355200000000000000000000000000000" + }, + { + "event": 3377, + "stage": 10, + "entrance_mass": "17256576412236653193246225901973714737195067836439327666112948810725372605325768521068989782195051084826433423902219365061463548934152577319772447024097669813834215493691840531234110147024064996639957180865886380686899413865699437/67576217651367187500000000", + "entrance_defect": "17769400030114656297936737956471154159343889109160054297060066950418102417086513998308593454598711220222547901089621758307161980549115005470735651700156194295084928435231962012741786189765280487308699883745500711995873254844179355891984596060009803480632653963546827482512901099/31737486458880000000000000000000000000000000" + }, + { + "event": 3674, + "stage": 11, + "entrance_mass": "8232867642949280967953864719378369729636081542640965177026582834276172086852779069019078166383458700724373015543641299678854718814560615654710102550769670203427726502361438450768012893674227975469242856299447027845030556012745339827937032703/2252540588378906250000000", + "entrance_defect": "8477528511322579391638204101689370700961529244503175519829441746363318824628142782040929472355385836353611118980014671389090956612517570862511435645890613925978793808343058318624481887419040746163434313537168637824668065909753134690571750556935111468682638271080714347095521315512338852681/1057916215296000000000000000000000000000000" + }, + { + "event": 3934, + "stage": 12, + "entrance_mass": "103457615351059805192637231353494210876529187337645013912367786609511281374638184501291799844537790265462481580051228205479278831706979374022592427678836083146990308179368316797029946556942233864286312243671687806427572314354434738422294564686254956597631/304092979431152343750000000", + "entrance_defect": "106532124879133961010122345615400533137015197093534458724215993599048343765866886740376516910012235550866719309166932613891587897163228425819499970388216177292101426939339380943887314486644369691153785520387426184166715092608908210073559420840396800974138677242538066078926329096947646214992794243352937/142818689064960000000000000000000000000000000" + }, + { + "event": 4149, + "stage": 13, + "entrance_mass": "6814687293408352348961376609223100753789665399854180217091951198766673494955017243489117504312576625705862588971333049204842152193259763726092611947454717867967563820647006231530855513792517852570389360287582421241328472893443552787136426885585158158296407747039/76023244857788085937500000", + "entrance_defect": "7017203279721536128573055893157348471869455080700156838636358334720679714539945828043102784105832212657860106869531016262007694474929451090611843945021605816226618144449118208464565849165267721194901177937719196643075390972312596648144243561638043117304079361205618662531932812689582378841823705175662310586153/35704672266240000000000000000000000000000000" + }, + { + "event": 4337, + "stage": 14, + "entrance_mass": "273688564209132230699064882255651065961520374651451250325109091529813162250488973700796593555467744131430272845604649750549608356985710665121874068107850799585492748533787927289567936649257940207702597871193107311090132538524151482351564937285621850171994049078063458209591/608185958862304687500000000", + "entrance_defect": "281821924866350323530868330226315067107552433830868844794151998799016053933313333263147616526717787268902343023488296130694126949144258149718072441264161458417377584443800306444086587400624204403928538970342624982137950738662947278975690488162279687521167196072451026064463427681372246771090470760888860138508317214979857/285637378129920000000000000000000000000000000" + }, + { + "event": 4485, + "stage": 15, + "entrance_mass": "5230780602279043381317572379439763694807653157987526423412516241866438709931406455512285461654380762978554988724296151241130161368896505647624919395909388513302452136334767445346454946237326490486725295589968816639097338790755366202380875008783642473174121062695038054202858248061/304092979431152343750000000", + "entrance_defect": "5386226721411032900907848786311966719779361582529745735826658623768499974487600890482640651142577790842912307711775912024135199955708060620781069132791009866280447690080359914735848906486753759015370823479485596610103374692284277322646118864199647995045238127748879942287465360698906417078803049768506444863781508576485079771547/142818689064960000000000000000000000000000000" + }, + { + "event": 4606, + "stage": 16, + "entrance_mass": "5790424100720951765768300756324298709533962301792798636386692749870979029496708556989270788662796627612885676197810930990877069943243536093513215980405080279750566239442965631097385199413957318608000177913047677092759213914423460784984181631621622445055356552059259436283593839861423838063/608185958862304687500000000", + "entrance_defect": "5962501467948558399546510814853418578926874958292080723018797094633378813990050925034553765744902781049293536498331819037912150602655085854934190064389418037665869007447747787743470586288727112406021644495007835224445957888709082584134123760790323357539470625937613363892008688642118353832347159502504245077750020607068660710721850861401/285637378129920000000000000000000000000000000" + }, + { + "event": 4691, + "stage": 17, + "entrance_mass": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "entrance_defect": "12816394039616740054301428707738206262972920737292416934306677378582252953391659109122294219681298187634891498582629514903927815803255251319901355830097785447995374021759550611999121237104494113109034303943474746005063322533097631605030572291283845821714463350613118907293501490209740336309717504347943306623785346190380992477072794929181180617/285637378129920000000000000000000000000000000" + } + ], + "independent_adjoint": { + "M_caller": { + "entrance_mass": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "residual_mass": "330760398163091904274517275209669219972015945865458218163734882060695321306451726653037009573081354800444678063559544717421760840994040604790042887364557399083547601282242680052564909509962951504752010259120191359591522788506772808919180865748847577957182898163352134613269341707563134066891785388655903649050585651567768369238016129985497933507/214228033597440000000000000000000000000000000", + "joint_coefficient": "3721923971948022264020008386608472289590988528157114268392412469599050143495508978788641788787976594161440706214373829555996384554677122174093932095769106055424540710380314024651007332164525664382203471694821380954416641216321248248752759218861172626274920078125266851782731337714997593665899027/10947347259521484375000000000", + "primitive_coefficient": "31933635363307317503891208167952125518099265598871297188945655447689887409437080424471754322893069036961252717295444311531802702290424391181977246033332095685934810861449534911850277930109610390733877602745069385156892357266512877411313922547610591253415658016844390796247824792255124449682067424881/131368167114257812500000000000" + }, + "Sigma_caller": { + "entrance_mass": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "residual_mass": "330760398163091904274517275209669219972015945865458218163734882060695321306451726653037009573081354800444678063559544717421760840994040604790042887364557399083547601282242680052564909509962951504752010259120191359591522788506772808919180865748847577957182898163352134613269341707563134066891785388656117877084183091567768369238016129985497933507/214228033597440000000000000000000000000000000", + "joint_coefficient": "3721923971948022264020008386608472289590988528157114268392412469599050143495508978788641788787976594161440706214373829555996384554677122174093932095769106055424540710380314024651007332164525664382203471694821380954416641216321248248752759218861172626274920078125266851782731337714997593665899027/10947347259521484375000000000", + "primitive_coefficient": "31933635363307317503891208167952125518099265598871297188945655447689887409437080424471754322893069036961252717295444311531802702290424391181977246033332095685934810861449534911850277930109610390733877602745069385156892357266512877411313922547610591253415658016844390796379192959369382262182067424881/131368167114257812500000000000" + }, + "M_joint_entrance": { + "entrance_mass": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "residual_mass": "12816394039616740054301428707738206262972920737292416934306677378582252953391659109122294219681298187634891498582629514903927815803255251319901355830097785447995374021759550611999121237104494113109034303943474746005063322533097631605030572291283845821714463350613118907293501490209740336309717504347943306623785346190380992477072794929181180617/285637378129920000000000000000000000000000000", + "joint_coefficient": "144218124282401204617230263054514744346632405857442589144991781917530152132889870002846209306787762894150543865356389849084238452276894627352790762454037345126994351979907477144401257368423063007427271766117739822282248246858569624239109891511459830034432108241771054783468611278140179030295737/14596463012695312500000000000", + "primitive_coefficient": "1237373204913668966810008103424843603237049842106979534739539344726881600855129275554334885562896567825503574055929527662143657491595081161117482238618339640110136792453314323518006796600687371906278112102741547626404362403105174332310591538741639237757093806525664195341657589882317257470101709011/175157556152343750000000000000" + }, + "E_joint_entrance": { + "entrance_mass": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "residual_mass": "12816394039616740054301428707738206262972920737292416934306677378582252953391659109122294219681298187634891498582629514903927815803255251319901355830097785447995374021759550611999121237104494113109034303943474746005063322533097631605030572291283845821714463350613118907293501490209740336309717504347943306623785346190380992477072794929181180617/285637378129920000000000000000000000000000000", + "joint_coefficient": "144218124282401204617230263054514744346632405857442589144991781917530152132889870002846209306787762894150543865356389849084238452276894627352790762454037345126994351979907477144401257368423063007427271766117739822282248246858569624239109891511459830034432108241771054783468611278140179030295737/14596463012695312500000000000", + "primitive_coefficient": "1237373204913668966810008103424843603237049842106979534739539344726881600855129275554334885562896567825503574055929527662143657491595081161117482238618339640110136792453314323518006796600687371906278112102741547626404362403105174332310591538741639237757093806525664195341657589882317257470101709011/175157556152343750000000000000" + }, + "Gamma_context": { + "entrance_mass": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "residual_mass": "330760398163091904274517275209669219972015945865458218163734882060695321306451726653037009573081354800444678063559544717421760840994040604790042887364557399083547601282242680052564909509962951504752010259120191359591522788506772808919180865748847577957182898163352134613269341707563134066891785388656117877084183091567768369238016129985497933507/214228033597440000000000000000000000000000000", + "joint_coefficient": "3721923971948022264020008386608472289590988528157114268392412469599050143495508978788641788787976594161440706214373829555996384554677122174093932095769106055424540710380314024651007332164525664382203471694821380954416641216321248248752759218861172626274920078125266851782731337714997593665899027/10947347259521484375000000000", + "primitive_coefficient": "31933635363307317503891208167952125518099265598871297188945655447689887409437080424471754322893069036961252717295444311531802702290424391181977246033332095685934810861449534911850277930109610390733877602745069385156892357266512877411313922547610591253415658016844390796379192959369382262182067424881/131368167114257812500000000000" + } + }, + "physical_main_inputs": 3744, + "fresh_arbitrary_helpers": 18717, + "helper_allocation_premise": "distinct (stage, helper) public inputs as in frozen caller proof" + }, + "caller_grid_carried_from_matching_caller": { + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "prime_order": [ + 2, + 3, + 5 + ], + "safe_valuation_bound": [ + 381, + 69, + 62 + ], + "grid_exponents": [ + 381, + 3, + 2 + ], + "caller_odd_scale": "675", + "caller_odd_scale_bits": 10, + "preproduct_exact_divisions": 176874, + "peak_terms": 3752, + "scope": "Independent integer Laurent caller endpoint and pre-product divisibility. Valuation bound propagates complete field operators whose Gaussian coefficients have only power-of-two denominators, so odd factors are sourced only from the charged scalar operations. Fixed conversion and storage bounds still needed." + }, + "context_height": 395, + "context_mass_bits": 1032, + "context_c": 2064, + "context_le_4096": true, + "elapsed_seconds": 77.32330691200332, + "scope": "Conditional positive rounded envelopes and fixed scalar grid; no physical supplier, full signed application, ordinary or fixed-tape qualification." +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/candidate/LITERALS.json b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/LITERALS.json new file mode 100644 index 0000000000..a6a3d1a62e --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/LITERALS.json @@ -0,0 +1,59 @@ +{ + "scope": "Declared literal predicates, no physical run.", + "source_pr": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "word_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "canonical_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "word_gzip_sha256": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "failures_by_guard": {}, + "first_offending_literals": {}, + "max_numerator": [ + 199393, + { + "clock": 9906, + "event": [ + "ADD", + 721, + 558, + "199393/7680", + 3 + ], + "coefficient": "199393/7680" + } + ], + "max_denominator": [ + 15360, + { + "clock": 9703, + "event": [ + "ADD", + 1341, + 558, + "-12713/15360", + 3 + ], + "coefficient": "-12713/15360" + } + ], + "max_abs_coefficient": [ + "2288", + { + "clock": 111618, + "event": [ + "ADD", + 1428, + 578, + "2288", + 127 + ], + "coefficient": "2288" + } + ], + "bounded_split_screen_if_needed": {}, + "controls": { + "smooth_nonzero_unit_accepts": true, + "nonsmooth_scale_rejects": true, + "nonsmooth_ADD_denominator_rejects": true, + "magnitude_endpoint_rejects": true, + "overwide_small_coefficient_rejects": true + } +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/candidate/ORDINARY.json b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/ORDINARY.json new file mode 100644 index 0000000000..025879311d --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/ORDINARY.json @@ -0,0 +1,95 @@ +{ + "status": "RETAINED_MODEL_ACCOUNTING_ONLY", + "source_word_raw_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "source_engine_sha256": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "adapted_ordinary_sha256": "dbbcd61b09584ee3e232e284e6245f8d36df8d5b167f691ccfa50eff3ab5166f", + "declared_inventory": { + "paid": { + "1": 3964, + "2": 886, + "4": 247, + "3": 603, + "5": 359, + "6": 84, + "7": 11, + "9": 4, + "8": 7 + }, + "helpers": { + "9": 615, + "2": 21, + "4": 225, + "8": 32, + "7": 19, + "3": 47, + "5": 80, + "6": 44, + "1": 18 + }, + "lifetimes": 234 + }, + "base": { + "scalar_upper": 3452932, + "init_clear_allowance": 936, + "route_items": { + "moves": 6165, + "helper_boundary": 2202, + "first_main_boundary": 208, + "second_main_boundary": 192, + "first_main_adapter": 416, + "second_main_adapter": 384, + "owned_lifetime": 936 + }, + "routing": 10503000, + "caller_items": { + "A": { + "envelope": 102076416, + "thin": 6144, + "field_boundary": 89856, + "output_routes": 213120000, + "idle_routes": 170112000, + "query_routes": 1152000, + "fused_routes": 0 + }, + "B": { + "envelope": 35730432, + "thin": 0, + "field_boundary": 7488, + "output_routes": 17760000, + "idle_routes": 18016000, + "query_routes": 0, + "fused_routes": 1168000 + } + }, + "caller_total": 559238336, + "raw_upper": 796489180, + "per_input_conversion": 2653768, + "lambda_second_charge": 11280000, + "conservative_total": 810422948, + "margin_to_billion": 189577052, + "odd_divisions": { + "ADD": 6609, + "SCALE": 98 + }, + "lambda_paid_rank1_would_reduce_S_by": 11280 + }, + "all_caller_scalar_surcharge": 2248928, + "charged_caller_odd_conversions": 479232, + "retained_signed_model_total": 813151108, + "retained_signed_model_margin": 186848892, + "native_scale_comparison": { + "old": 1125, + "new": 225, + "conversion_sites": 51034, + "rate_old": 68, + "rate_new": 52, + "increment_if_all_sites_charged_at_rate_delta": -816544, + "status": "sensitivity_only_overlap_with_retained_conversion_unresolved" + }, + "limitations": [ + "Declared dimension rank inventory only; no native, physical, signed or compiler admission.", + "Numerical source-unit model, not measured implementation cost.", + "Changed native grid conversion overlap, precision/storage, lifetime supplier and all physical costs remain open." + ] +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/candidate/TAPE-SCALAR.json b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/TAPE-SCALAR.json new file mode 100644 index 0000000000..8e69673f38 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/TAPE-SCALAR.json @@ -0,0 +1,39 @@ +{ + "status": "SCALAR_CENSUS_ONLY", + "source_raw_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "fixed_tape_source_sha256": "e6246e9f8fbeae3077d82e585eafd3647c1a8758c58f33c7c13e7efa6c1e42bb", + "opcodes": { + "SCALE": 4149, + "ADD": 139227, + "INIT": 234, + "MOVE": 6165, + "CLEAR": 234 + }, + "native_invocations": 17, + "native_nonmove_per_call": 143844, + "caller_macros": 117856, + "conversion_sites": 58522, + "scalar_macro_inputs": { + "native": 2445348, + "caller": 117856, + "conversions": 58522 + }, + "scalar_services_upper": 83895232, + "scalar_steps_coefficient": 87970526789632, + "max_literal_numerator_bits": 18, + "max_numerator_witness": [ + "199393/7680", + "native", + 9906 + ], + "max_absolute_coefficient": [ + "2288", + "native", + 111618 + ], + "retained_24bit_numerator_gate_passes": true, + "retained_scalar_magnitude_lt_2pow16_gate_passes": true, + "scale_assumed_for_comparison": 225, + "scope": "Finite tariff substitutions only; requires fresh matching precision, physical/paid binding, signed application, compiler and supplier. Scale input is separately bound by the grid receipt or marked as provisional." +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/candidate/TARIFF.json b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/TARIFF.json new file mode 100644 index 0000000000..2b8f0d109a --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/candidate/TARIFF.json @@ -0,0 +1,19 @@ +{ + "source_pr": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "word_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "canonical_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "word_gzip_sha256": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "scope": "Declared 17-call model accounting. Keep the retained charge and double-charge all native conversions under the same conditional full-field tariff.", + "native_scale": 225, + "native_conversion_sites": 51034, + "units_per_site": 52, + "extra_conversion_ordinary": 2653768, + "retained_signed_model_total": 813151108, + "conservative_total": 815804876, + "margin": 184195124, + "strict_ceiling_met": true, + "tape_control_arithmetic": { + "exact_ceiling_rejected": true, + "omitted_conversion_rejected": true + } +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/OPERATORS.json b/research/p104-role379-idle-stop/application-evidence/receipts/native/OPERATORS.json new file mode 100644 index 0000000000..2998642acc --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/OPERATORS.json @@ -0,0 +1,31 @@ +{ + "controls": { + "missing_direct": "ADD frame at 98204", + "non_bool_flag": "MOVE flag at 98203", + "nonnested_ascent": "MOVE inclusion at 98203", + "wrong_birth457": "initial or final frame boundary", + "wrong_direct_flag": "MOVE flag at 98203", + "wrong_direct_source": "MOVE source at 98203", + "wrong_owned_flag": "MOVE flag at 88263" + }, + "raw_ports": { + "comparisons": "signed Pauli action and Gaussian absolute phase", + "directions": 4, + "opposite_sign_rejections": 208, + "ports": 104 + }, + "route": { + "all_adjoint": 512, + "all_forward": 512, + "direct": [ + 748, + 1072 + ], + "route": [ + 748, + 1065, + 1072 + ], + "wrong_phase": "rejected" + } +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/PHYSICAL-1000000009.json b/research/p104-role379-idle-stop/application-evidence/receipts/native/PHYSICAL-1000000009.json new file mode 100644 index 0000000000..40311018d9 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/PHYSICAL-1000000009.json @@ -0,0 +1,246 @@ +{ + "candidate": { + "clears": 234, + "copy_zero_checks": 0, + "events": 150009, + "ordered_clear_values": "180f2c1f61b94dcf6ce999f4eadbdacf661e81ca12be03ff06e7fc3dfc5f38c9" + }, + "digests": { + "candidate": "7ecb69ac1c051c7967323c6e7778663e46965418fc0eae891c754e0fd3df6d24", + "initial": "5e0a3b42f5964dcbdbd5a2bb6b3d429e1da7acc016c683539c3b24107c8c8b1d", + "reference_public": "86e64ea929cd4cd5e7b2cc8ba2e4264caec4b981523cc559c1a9ad6f6dddff31", + "source": "7ecb69ac1c051c7967323c6e7778663e46965418fc0eae891c754e0fd3df6d24" + }, + "elapsed_seconds": 58.819177331984974, + "endpoint_rows": 1501, + "i_squared_minus_one": 569522298, + "owned_zero_rows": 68, + "prime": 1000000009, + "scope": "One deterministic dense input at this modulus through every literal event", + "seed": 11, + "six_finite_exact_column_crosschecks": 6, + "source": { + "clears": 234, + "copy_zero_checks": 0, + "events": 150010, + "ordered_clear_values": "180f2c1f61b94dcf6ce999f4eadbdacf661e81ca12be03ff06e7fc3dfc5f38c9" + }, + "status": "PASS_PAIRED_DENSE_PHYSICAL_WORDS", + "vector_width": 512, + "wrong_bypass_phase": { + "endpoint_rows": [ + 34, + 66, + 95, + 119, + 139, + 204, + 228, + 251, + 252, + 262, + 265, + 276, + 279, + 281, + 283, + 332, + 334, + 335, + 347, + 349, + 352, + 388, + 404, + 415, + 436, + 437, + 464, + 465, + 466, + 469, + 470, + 479, + 517, + 518, + 523, + 524, + 525, + 540, + 548, + 549, + 558, + 560, + 578, + 580, + 581, + 586, + 587, + 589, + 591, + 592, + 625, + 627, + 635, + 640, + 655, + 659, + 664, + 665, + 671, + 679, + 680, + 681, + 688, + 732, + 758, + 793, + 913, + 994, + 1007, + 1015, + 1017, + 1021, + 1027, + 1039, + 1042, + 1046, + 1047, + 1095, + 1127, + 1175, + 1176, + 1178, + 1180, + 1181, + 1184, + 1216, + 1221, + 1222, + 1233, + 1234, + 1236, + 1243, + 1245, + 1248, + 1255, + 1264, + 1272, + 1273, + 1279, + 1284, + 1286, + 1293, + 1295, + 1300, + 1302, + 1306, + 1309, + 1311, + 1317, + 1319, + 1343, + 1449, + 1472, + 1473 + ] + }, + "wrong_second_alpha_rows": [ + 772, + 773, + 774, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 787, + 788, + 790, + 792, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 803, + 804, + 805, + 807, + 808, + 809, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881 + ] +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/PHYSICAL-998244353.json b/research/p104-role379-idle-stop/application-evidence/receipts/native/PHYSICAL-998244353.json new file mode 100644 index 0000000000..0ac9d30e08 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/PHYSICAL-998244353.json @@ -0,0 +1,129 @@ +{ + "candidate": { + "clears": 234, + "copy_zero_checks": 0, + "events": 150009, + "ordered_clear_values": "e3f59f527c4a401b4c174e30e2ecfc892190735a3b7fe9cdfbb72337d64531c9" + }, + "digests": { + "candidate": "408d78bd04c7c4d79546a518ecc13a9916f27f40b3c6362b2dfcefffb248d145", + "initial": "f95e41e2c6e36366b4a44ac7d7008b4215e73ad99b6b746efc52d940c97ddf28", + "reference_public": "cffbf10ad2f59b033b43e099be7e9defd89451d6b8ed019830062418699bc0f9", + "source": "408d78bd04c7c4d79546a518ecc13a9916f27f40b3c6362b2dfcefffb248d145" + }, + "elapsed_seconds": 42.19220231100917, + "endpoint_rows": 1501, + "i_squared_minus_one": 911660635, + "owned_zero_rows": 68, + "prime": 998244353, + "scope": "One deterministic dense input at this modulus through every literal event", + "seed": 37, + "six_finite_exact_column_crosschecks": 6, + "source": { + "clears": 234, + "copy_zero_checks": 0, + "events": 150010, + "ordered_clear_values": "e3f59f527c4a401b4c174e30e2ecfc892190735a3b7fe9cdfbb72337d64531c9" + }, + "status": "PASS_PAIRED_DENSE_PHYSICAL_WORDS", + "vector_width": 512, + "wrong_bypass_phase": null, + "wrong_second_alpha_rows": [ + 772, + 773, + 774, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 787, + 788, + 790, + 792, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 803, + 804, + 805, + 807, + 808, + 809, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881 + ] +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/RESULT.json b/research/p104-role379-idle-stop/application-evidence/receipts/native/RESULT.json new file mode 100644 index 0000000000..4cf51d7a07 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/RESULT.json @@ -0,0 +1,2510 @@ +{ + "artifacts": { + "MOVE-PAIRS.json": "6ee58da2a668539882e635f7596ecf54f2029ad1b81347aa8c5f04f7030b7859", + "OPERATORS.json": "e76f9b120562f4ef21cf2b301d1980d1b6bc0113ce810b8de1ed2cf17cd4fb17", + "PHYSICAL-1000000009.json": "ab8f75845f296ca2789e225867f97b64758182caed2344c86a4b720a9aa5c167", + "PHYSICAL-998244353.json": "2b1ef0f69fe5bbdb35606e2b7d9a9ebe2c07f901abb0e1c13ad33a72e3dcb4a2", + "START.json": "3335f180b03325fb5770597a381420ee94f3af98ae2407b53d0391d54381353a" + }, + "candidate": { + "canonical_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "gzip_sha256": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "raw_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669" + }, + "candidate_direct_clock": 98203, + "completed_at": "2026-11-18T01:29:48.911920+00:00", + "controls": { + "missing_direct": "ADD frame at 98204", + "non_bool_flag": "MOVE flag at 98203", + "nonnested_ascent": "MOVE inclusion at 98203", + "wrong_birth457": "initial or final frame boundary", + "wrong_direct_flag": "MOVE flag at 98203", + "wrong_direct_source": "MOVE source at 98203", + "wrong_owned_flag": "MOVE flag at 88263" + }, + "elapsed_seconds": 113.29741521601682, + "finite_replays": [ + { + "digests": { + "candidate": "7ecb69ac1c051c7967323c6e7778663e46965418fc0eae891c754e0fd3df6d24", + "initial": "5e0a3b42f5964dcbdbd5a2bb6b3d429e1da7acc016c683539c3b24107c8c8b1d", + "reference_public": "86e64ea929cd4cd5e7b2cc8ba2e4264caec4b981523cc559c1a9ad6f6dddff31", + "source": "7ecb69ac1c051c7967323c6e7778663e46965418fc0eae891c754e0fd3df6d24" + }, + "endpoint_rows": 1501, + "prime": 1000000009, + "seed": 11 + }, + { + "digests": { + "candidate": "408d78bd04c7c4d79546a518ecc13a9916f27f40b3c6362b2dfcefffb248d145", + "initial": "f95e41e2c6e36366b4a44ac7d7008b4215e73ad99b6b746efc52d940c97ddf28", + "reference_public": "cffbf10ad2f59b033b43e099be7e9defd89451d6b8ed019830062418699bc0f9", + "source": "408d78bd04c7c4d79546a518ecc13a9916f27f40b3c6362b2dfcefffb248d145" + }, + "endpoint_rows": 1501, + "prime": 998244353, + "seed": 37 + } + ], + "head": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "historical": { + "canonical_sha256": "f9f9a485712c0c94c9d14370e2a8436414e1b53bdf86550d9d6436835e9e06cb", + "gzip_sha256": "676c20c53ebd40120903af86bf17c2116f654ab8ce4aa1833f388a2fc400b511", + "raw_sha256": "f9f9a485712c0c94c9d14370e2a8436414e1b53bdf86550d9d6436835e9e06cb" + }, + "pair_counts": { + "candidate": { + "ascent_groups": 2959, + "directed_pairs": 2981, + "move_occurrences": 6165 + }, + "fresh": 7, + "reused": 2952, + "source": { + "ascent_groups": 2958, + "directed_pairs": 2980, + "move_occurrences": 6166 + }, + "union": 2959 + }, + "phase_code_sha256": "3b340b468d119fcca8bca015b0bab187119cd2593b25737ec496c9dc3564ebc6", + "pr": 7658, + "prior_proof_sha256": "a0bb80f9220fd6414d45e208af1e5571f51e6ac9f333d412dce19ef82854f541", + "raw_ports": { + "comparisons": "signed Pauli action and Gaussian absolute phase", + "directions": 4, + "opposite_sign_rejections": 208, + "ports": 104 + }, + "route_columns": { + "all_adjoint": 512, + "all_forward": 512, + "direct": [ + 748, + 1072 + ], + "route": [ + 748, + 1065, + 1072 + ], + "wrong_phase": "rejected" + }, + "schedules": { + "candidate": { + "birth457": 281, + "event_counts": { + "ADD": 139227, + "CLEAR": 234, + "INIT": 234, + "MOVE": 6165, + "SCALE": 4149 + }, + "lifetime_trace": [ + [ + 1568, + 3, + 3 + ], + [ + 1502, + 86, + 86 + ], + [ + 1502, + 353, + 353 + ], + [ + 1502, + 372, + 372 + ], + [ + 1501, + 375, + 375 + ], + [ + 1506, + 3, + 3 + ], + [ + 1516, + 512, + 512 + ], + [ + 1509, + 418, + 418 + ], + [ + 1509, + 3, + 3 + ], + [ + 1509, + 3, + 3 + ], + [ + 1522, + 538, + 538 + ], + [ + 1550, + 543, + 541 + ], + [ + 1549, + 420, + 420 + ], + [ + 1548, + 471, + 471 + ], + [ + 1547, + 419, + 419 + ], + [ + 1513, + 417, + 417 + ], + [ + 1533, + 416, + 416 + ], + [ + 1528, + 319, + 319 + ], + [ + 1547, + 3, + 3 + ], + [ + 1546, + 381, + 381 + ], + [ + 1545, + 470, + 601 + ], + [ + 1544, + 455, + 455 + ], + [ + 1543, + 466, + 466 + ], + [ + 1542, + 475, + 475 + ], + [ + 1518, + 339, + 339 + ], + [ + 1541, + 321, + 321 + ], + [ + 1531, + 377, + 377 + ], + [ + 1529, + 414, + 414 + ], + [ + 1523, + 452, + 452 + ], + [ + 1516, + 3, + 3 + ], + [ + 1505, + 451, + 451 + ], + [ + 1504, + 413, + 413 + ], + [ + 1503, + 338, + 338 + ], + [ + 1541, + 492, + 492 + ], + [ + 1540, + 320, + 320 + ], + [ + 1538, + 263, + 263 + ], + [ + 1537, + 101, + 101 + ], + [ + 1536, + 376, + 376 + ], + [ + 1535, + 337, + 337 + ], + [ + 1534, + 453, + 453 + ], + [ + 1533, + 409, + 409 + ], + [ + 1532, + 415, + 415 + ], + [ + 1531, + 433, + 433 + ], + [ + 1527, + 340, + 340 + ], + [ + 1525, + 360, + 360 + ], + [ + 1526, + 322, + 322 + ], + [ + 1525, + 369, + 369 + ], + [ + 1524, + 378, + 378 + ], + [ + 1514, + 601, + 1090 + ], + [ + 1510, + 477, + 1090 + ], + [ + 1510, + 599, + 260 + ], + [ + 1505, + 8, + 8 + ], + [ + 1523, + 436, + 436 + ], + [ + 1517, + 3, + 3 + ], + [ + 1516, + 495, + 495 + ], + [ + 1514, + 398, + 398 + ], + [ + 1508, + 456, + 456 + ], + [ + 1514, + 525, + 525 + ], + [ + 1509, + 493, + 493 + ], + [ + 1509, + 553, + 553 + ], + [ + 1509, + 564, + 564 + ], + [ + 1506, + 267, + 1091 + ], + [ + 1506, + 904, + 904 + ], + [ + 1510, + 600, + 431 + ], + [ + 1509, + 243, + 600 + ], + [ + 1506, + 517, + 243 + ], + [ + 1504, + 438, + 438 + ], + [ + 1503, + 435, + 435 + ], + [ + 1504, + 734, + 734 + ], + [ + 1503, + 394, + 598 + ], + [ + 1501, + 306, + 306 + ], + [ + 1505, + 397, + 397 + ], + [ + 1530, + 595, + 595 + ], + [ + 1529, + 431, + 517 + ], + [ + 1527, + 598, + 518 + ], + [ + 1505, + 531, + 529 + ], + [ + 1505, + 529, + 531 + ], + [ + 1525, + 737, + 737 + ], + [ + 1524, + 1091, + 599 + ], + [ + 1517, + 595, + 529 + ], + [ + 1505, + 529, + 595 + ], + [ + 1505, + 548, + 548 + ], + [ + 1504, + 734, + 734 + ], + [ + 1505, + 645, + 645 + ], + [ + 1517, + 647, + 647 + ], + [ + 1517, + 664, + 664 + ], + [ + 1517, + 665, + 665 + ], + [ + 1524, + 549, + 559 + ], + [ + 1517, + 559, + 549 + ], + [ + 1518, + 115, + 115 + ], + [ + 1518, + 693, + 693 + ], + [ + 1524, + 695, + 695 + ], + [ + 1518, + 694, + 694 + ], + [ + 1521, + 264, + 264 + ], + [ + 1521, + 723, + 723 + ], + [ + 1508, + 891, + 891 + ], + [ + 1519, + 237, + 237 + ], + [ + 1518, + 736, + 736 + ], + [ + 1518, + 757, + 757 + ], + [ + 1512, + 1090, + 477 + ], + [ + 1528, + 593, + 549 + ], + [ + 1527, + 756, + 756 + ], + [ + 1526, + 442, + 442 + ], + [ + 1524, + 756, + 756 + ], + [ + 1522, + 407, + 407 + ], + [ + 1521, + 911, + 911 + ], + [ + 1519, + 924, + 924 + ], + [ + 1517, + 549, + 593 + ], + [ + 1513, + 541, + 594 + ], + [ + 1512, + 849, + 849 + ], + [ + 1532, + 858, + 858 + ], + [ + 1532, + 850, + 850 + ], + [ + 1512, + 853, + 853 + ], + [ + 1537, + 863, + 863 + ], + [ + 1537, + 841, + 841 + ], + [ + 1521, + 857, + 857 + ], + [ + 1521, + 888, + 888 + ], + [ + 1521, + 889, + 889 + ], + [ + 1513, + 844, + 844 + ], + [ + 1522, + 828, + 828 + ], + [ + 1537, + 1075, + 1075 + ], + [ + 1537, + 866, + 866 + ], + [ + 1537, + 885, + 885 + ], + [ + 1537, + 856, + 856 + ], + [ + 1533, + 1031, + 1031 + ], + [ + 1539, + 1031, + 1031 + ], + [ + 1538, + 597, + 591 + ], + [ + 1537, + 591, + 597 + ], + [ + 1523, + 595, + 595 + ], + [ + 1504, + 120, + 120 + ], + [ + 1504, + 657, + 657 + ], + [ + 1533, + 1031, + 1031 + ], + [ + 1537, + 827, + 827 + ], + [ + 1536, + 845, + 845 + ], + [ + 1535, + 873, + 873 + ], + [ + 1534, + 877, + 877 + ], + [ + 1533, + 826, + 826 + ], + [ + 1532, + 1076, + 1076 + ], + [ + 1512, + 1077, + 1077 + ], + [ + 1531, + 840, + 840 + ], + [ + 1530, + 835, + 835 + ], + [ + 1529, + 846, + 846 + ], + [ + 1528, + 851, + 851 + ], + [ + 1527, + 838, + 838 + ], + [ + 1526, + 855, + 855 + ], + [ + 1525, + 910, + 910 + ], + [ + 1524, + 834, + 834 + ], + [ + 1522, + 874, + 874 + ], + [ + 1522, + 951, + 951 + ], + [ + 1522, + 953, + 953 + ], + [ + 1522, + 954, + 954 + ], + [ + 1521, + 890, + 890 + ], + [ + 1517, + 839, + 839 + ], + [ + 1517, + 959, + 959 + ], + [ + 1520, + 117, + 117 + ], + [ + 1516, + 541, + 543 + ], + [ + 1515, + 594, + 541 + ], + [ + 1519, + 872, + 872 + ], + [ + 1516, + 965, + 965 + ], + [ + 1516, + 967, + 967 + ], + [ + 1513, + 894, + 894 + ], + [ + 1513, + 973, + 973 + ], + [ + 1524, + 979, + 979 + ], + [ + 1521, + 980, + 980 + ], + [ + 1525, + 985, + 985 + ], + [ + 1524, + 985, + 985 + ], + [ + 1525, + 986, + 986 + ], + [ + 1524, + 986, + 986 + ], + [ + 1522, + 979, + 979 + ], + [ + 1522, + 993, + 993 + ], + [ + 1524, + 994, + 994 + ], + [ + 1522, + 994, + 994 + ], + [ + 1521, + 981, + 981 + ], + [ + 1521, + 1007, + 1007 + ], + [ + 1521, + 1008, + 1008 + ], + [ + 1521, + 1009, + 1009 + ], + [ + 1521, + 1016, + 1016 + ], + [ + 1520, + 966, + 966 + ], + [ + 1519, + 980, + 980 + ], + [ + 1518, + 127, + 127 + ], + [ + 1517, + 961, + 961 + ], + [ + 1516, + 973, + 973 + ], + [ + 1515, + 965, + 965 + ], + [ + 1513, + 975, + 975 + ], + [ + 1512, + 245, + 245 + ], + [ + 1511, + 1090, + 470 + ], + [ + 1510, + 518, + 240 + ], + [ + 1509, + 240, + 394 + ], + [ + 1509, + 1091, + 267 + ], + [ + 1502, + 260, + 1091 + ], + [ + 1507, + 1091, + 1091 + ], + [ + 1509, + 175, + 175 + ], + [ + 1507, + 175, + 175 + ], + [ + 1505, + 646, + 646 + ], + [ + 1504, + 707, + 707 + ], + [ + 1510, + 127, + 127 + ], + [ + 1508, + 237, + 237 + ], + [ + 1528, + 127, + 127 + ], + [ + 1527, + 127, + 127 + ], + [ + 1526, + 127, + 127 + ], + [ + 1525, + 127, + 127 + ], + [ + 1524, + 127, + 127 + ], + [ + 1520, + 127, + 127 + ], + [ + 1519, + 127, + 127 + ], + [ + 1508, + 127, + 127 + ], + [ + 1507, + 127, + 127 + ], + [ + 1514, + 237, + 237 + ], + [ + 1513, + 127, + 127 + ], + [ + 1523, + 603, + 603 + ], + [ + 1522, + 127, + 127 + ], + [ + 1521, + 127, + 127 + ], + [ + 1520, + 127, + 127 + ], + [ + 1519, + 127, + 127 + ], + [ + 1518, + 127, + 127 + ], + [ + 1517, + 127, + 127 + ], + [ + 1516, + 127, + 127 + ], + [ + 1515, + 127, + 127 + ], + [ + 1514, + 127, + 127 + ], + [ + 1513, + 127, + 127 + ], + [ + 1512, + 127, + 127 + ], + [ + 1511, + 127, + 127 + ], + [ + 1510, + 127, + 127 + ], + [ + 1509, + 127, + 127 + ], + [ + 1508, + 127, + 127 + ], + [ + 1507, + 127, + 127 + ], + [ + 1506, + 127, + 127 + ], + [ + 1505, + 127, + 127 + ], + [ + 1504, + 127, + 127 + ], + [ + 1503, + 306, + 306 + ], + [ + 1502, + 1091, + 1091 + ], + [ + 1503, + 127, + 127 + ], + [ + 1502, + 127, + 127 + ], + [ + 1501, + 240, + 240 + ], + [ + 1567, + 127, + 127 + ] + ], + "owned_paid": { + "1": 20, + "2": 9, + "3": 2, + "4": 13, + "5": 2, + "6": 1 + }, + "paid": { + "1": 3964, + "2": 886, + "3": 603, + "4": 247, + "5": 359, + "6": 84, + "7": 11, + "8": 7, + "9": 4 + }, + "peak": 50 + }, + "source": { + "birth457": 281, + "event_counts": { + "ADD": 139227, + "CLEAR": 234, + "INIT": 234, + "MOVE": 6166, + "SCALE": 4149 + }, + "lifetime_trace": [ + [ + 1568, + 3, + 3 + ], + [ + 1502, + 86, + 86 + ], + [ + 1502, + 353, + 353 + ], + [ + 1502, + 372, + 372 + ], + [ + 1501, + 375, + 375 + ], + [ + 1506, + 3, + 3 + ], + [ + 1516, + 512, + 512 + ], + [ + 1509, + 418, + 418 + ], + [ + 1509, + 3, + 3 + ], + [ + 1509, + 3, + 3 + ], + [ + 1522, + 538, + 538 + ], + [ + 1550, + 543, + 541 + ], + [ + 1549, + 420, + 420 + ], + [ + 1548, + 471, + 471 + ], + [ + 1547, + 419, + 419 + ], + [ + 1513, + 417, + 417 + ], + [ + 1533, + 416, + 416 + ], + [ + 1528, + 319, + 319 + ], + [ + 1547, + 3, + 3 + ], + [ + 1546, + 381, + 381 + ], + [ + 1545, + 470, + 601 + ], + [ + 1544, + 455, + 455 + ], + [ + 1543, + 466, + 466 + ], + [ + 1542, + 475, + 475 + ], + [ + 1518, + 339, + 339 + ], + [ + 1541, + 321, + 321 + ], + [ + 1531, + 377, + 377 + ], + [ + 1529, + 414, + 414 + ], + [ + 1523, + 452, + 452 + ], + [ + 1516, + 3, + 3 + ], + [ + 1505, + 451, + 451 + ], + [ + 1504, + 413, + 413 + ], + [ + 1503, + 338, + 338 + ], + [ + 1541, + 492, + 492 + ], + [ + 1540, + 320, + 320 + ], + [ + 1538, + 263, + 263 + ], + [ + 1537, + 101, + 101 + ], + [ + 1536, + 376, + 376 + ], + [ + 1535, + 337, + 337 + ], + [ + 1534, + 453, + 453 + ], + [ + 1533, + 409, + 409 + ], + [ + 1532, + 415, + 415 + ], + [ + 1531, + 433, + 433 + ], + [ + 1527, + 340, + 340 + ], + [ + 1525, + 360, + 360 + ], + [ + 1526, + 322, + 322 + ], + [ + 1525, + 369, + 369 + ], + [ + 1524, + 378, + 378 + ], + [ + 1514, + 601, + 1090 + ], + [ + 1510, + 477, + 1090 + ], + [ + 1510, + 599, + 260 + ], + [ + 1505, + 8, + 8 + ], + [ + 1523, + 436, + 436 + ], + [ + 1517, + 3, + 3 + ], + [ + 1516, + 495, + 495 + ], + [ + 1514, + 398, + 398 + ], + [ + 1508, + 456, + 456 + ], + [ + 1514, + 525, + 525 + ], + [ + 1509, + 493, + 493 + ], + [ + 1509, + 553, + 553 + ], + [ + 1509, + 564, + 564 + ], + [ + 1506, + 267, + 1091 + ], + [ + 1506, + 904, + 904 + ], + [ + 1510, + 600, + 431 + ], + [ + 1509, + 243, + 600 + ], + [ + 1506, + 517, + 243 + ], + [ + 1504, + 438, + 438 + ], + [ + 1503, + 435, + 435 + ], + [ + 1504, + 734, + 734 + ], + [ + 1503, + 394, + 598 + ], + [ + 1501, + 306, + 306 + ], + [ + 1505, + 397, + 397 + ], + [ + 1530, + 595, + 595 + ], + [ + 1529, + 431, + 517 + ], + [ + 1527, + 598, + 518 + ], + [ + 1505, + 531, + 529 + ], + [ + 1505, + 529, + 531 + ], + [ + 1525, + 737, + 737 + ], + [ + 1524, + 1091, + 599 + ], + [ + 1517, + 595, + 529 + ], + [ + 1505, + 529, + 595 + ], + [ + 1505, + 548, + 548 + ], + [ + 1504, + 734, + 734 + ], + [ + 1505, + 645, + 645 + ], + [ + 1517, + 647, + 647 + ], + [ + 1517, + 664, + 664 + ], + [ + 1517, + 665, + 665 + ], + [ + 1524, + 549, + 559 + ], + [ + 1517, + 559, + 549 + ], + [ + 1518, + 115, + 115 + ], + [ + 1518, + 693, + 693 + ], + [ + 1524, + 695, + 695 + ], + [ + 1518, + 694, + 694 + ], + [ + 1521, + 264, + 264 + ], + [ + 1521, + 723, + 723 + ], + [ + 1508, + 891, + 891 + ], + [ + 1519, + 237, + 237 + ], + [ + 1518, + 736, + 736 + ], + [ + 1518, + 757, + 757 + ], + [ + 1512, + 1090, + 477 + ], + [ + 1528, + 593, + 549 + ], + [ + 1527, + 756, + 756 + ], + [ + 1526, + 442, + 442 + ], + [ + 1524, + 756, + 756 + ], + [ + 1522, + 407, + 407 + ], + [ + 1521, + 911, + 911 + ], + [ + 1519, + 924, + 924 + ], + [ + 1517, + 549, + 593 + ], + [ + 1513, + 541, + 594 + ], + [ + 1512, + 849, + 849 + ], + [ + 1532, + 858, + 858 + ], + [ + 1532, + 850, + 850 + ], + [ + 1512, + 853, + 853 + ], + [ + 1537, + 863, + 863 + ], + [ + 1537, + 841, + 841 + ], + [ + 1521, + 857, + 857 + ], + [ + 1521, + 888, + 888 + ], + [ + 1521, + 889, + 889 + ], + [ + 1513, + 844, + 844 + ], + [ + 1522, + 828, + 828 + ], + [ + 1537, + 1075, + 1075 + ], + [ + 1537, + 866, + 866 + ], + [ + 1537, + 885, + 885 + ], + [ + 1537, + 856, + 856 + ], + [ + 1533, + 1031, + 1031 + ], + [ + 1539, + 1031, + 1031 + ], + [ + 1538, + 597, + 591 + ], + [ + 1537, + 591, + 597 + ], + [ + 1523, + 595, + 595 + ], + [ + 1504, + 120, + 120 + ], + [ + 1504, + 657, + 657 + ], + [ + 1533, + 1031, + 1031 + ], + [ + 1537, + 827, + 827 + ], + [ + 1536, + 845, + 845 + ], + [ + 1535, + 873, + 873 + ], + [ + 1534, + 877, + 877 + ], + [ + 1533, + 826, + 826 + ], + [ + 1532, + 1076, + 1076 + ], + [ + 1512, + 1077, + 1077 + ], + [ + 1531, + 840, + 840 + ], + [ + 1530, + 835, + 835 + ], + [ + 1529, + 846, + 846 + ], + [ + 1528, + 851, + 851 + ], + [ + 1527, + 838, + 838 + ], + [ + 1526, + 855, + 855 + ], + [ + 1525, + 910, + 910 + ], + [ + 1524, + 834, + 834 + ], + [ + 1522, + 874, + 874 + ], + [ + 1522, + 951, + 951 + ], + [ + 1522, + 953, + 953 + ], + [ + 1522, + 954, + 954 + ], + [ + 1521, + 890, + 890 + ], + [ + 1517, + 839, + 839 + ], + [ + 1517, + 959, + 959 + ], + [ + 1520, + 117, + 117 + ], + [ + 1516, + 541, + 543 + ], + [ + 1515, + 594, + 541 + ], + [ + 1519, + 872, + 872 + ], + [ + 1516, + 965, + 965 + ], + [ + 1516, + 967, + 967 + ], + [ + 1513, + 894, + 894 + ], + [ + 1513, + 973, + 973 + ], + [ + 1524, + 979, + 979 + ], + [ + 1521, + 980, + 980 + ], + [ + 1525, + 985, + 985 + ], + [ + 1524, + 985, + 985 + ], + [ + 1525, + 986, + 986 + ], + [ + 1524, + 986, + 986 + ], + [ + 1522, + 979, + 979 + ], + [ + 1522, + 993, + 993 + ], + [ + 1524, + 994, + 994 + ], + [ + 1522, + 994, + 994 + ], + [ + 1521, + 981, + 981 + ], + [ + 1521, + 1007, + 1007 + ], + [ + 1521, + 1008, + 1008 + ], + [ + 1521, + 1009, + 1009 + ], + [ + 1521, + 1016, + 1016 + ], + [ + 1520, + 966, + 966 + ], + [ + 1519, + 980, + 980 + ], + [ + 1518, + 127, + 127 + ], + [ + 1517, + 961, + 961 + ], + [ + 1516, + 973, + 973 + ], + [ + 1515, + 965, + 965 + ], + [ + 1513, + 975, + 975 + ], + [ + 1512, + 245, + 245 + ], + [ + 1511, + 1090, + 470 + ], + [ + 1510, + 518, + 240 + ], + [ + 1509, + 240, + 394 + ], + [ + 1509, + 1091, + 267 + ], + [ + 1502, + 260, + 1091 + ], + [ + 1507, + 1091, + 1091 + ], + [ + 1509, + 175, + 175 + ], + [ + 1507, + 175, + 175 + ], + [ + 1505, + 646, + 646 + ], + [ + 1504, + 707, + 707 + ], + [ + 1510, + 127, + 127 + ], + [ + 1508, + 237, + 237 + ], + [ + 1528, + 127, + 127 + ], + [ + 1527, + 127, + 127 + ], + [ + 1526, + 127, + 127 + ], + [ + 1525, + 127, + 127 + ], + [ + 1524, + 127, + 127 + ], + [ + 1520, + 127, + 127 + ], + [ + 1519, + 127, + 127 + ], + [ + 1508, + 127, + 127 + ], + [ + 1507, + 127, + 127 + ], + [ + 1514, + 237, + 237 + ], + [ + 1513, + 127, + 127 + ], + [ + 1523, + 603, + 603 + ], + [ + 1522, + 127, + 127 + ], + [ + 1521, + 127, + 127 + ], + [ + 1520, + 127, + 127 + ], + [ + 1519, + 127, + 127 + ], + [ + 1518, + 127, + 127 + ], + [ + 1517, + 127, + 127 + ], + [ + 1516, + 127, + 127 + ], + [ + 1515, + 127, + 127 + ], + [ + 1514, + 127, + 127 + ], + [ + 1513, + 127, + 127 + ], + [ + 1512, + 127, + 127 + ], + [ + 1511, + 127, + 127 + ], + [ + 1510, + 127, + 127 + ], + [ + 1509, + 127, + 127 + ], + [ + 1508, + 127, + 127 + ], + [ + 1507, + 127, + 127 + ], + [ + 1506, + 127, + 127 + ], + [ + 1505, + 127, + 127 + ], + [ + 1504, + 127, + 127 + ], + [ + 1503, + 306, + 306 + ], + [ + 1502, + 1091, + 1091 + ], + [ + 1503, + 127, + 127 + ], + [ + 1502, + 127, + 127 + ], + [ + 1501, + 240, + 240 + ], + [ + 1567, + 127, + 127 + ] + ], + "owned_paid": { + "1": 20, + "2": 9, + "3": 2, + "4": 13, + "5": 2, + "6": 1 + }, + "paid": { + "1": 3965, + "2": 887, + "3": 602, + "4": 247, + "5": 359, + "6": 84, + "7": 11, + "8": 7, + "9": 4 + }, + "peak": 50 + } + }, + "source": { + "canonical_sha256": "9721965b3fa98cef7731ee88319fae2e62354bca3bf1a6b334bcffee14b047cf", + "gzip_sha256": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "raw_sha256": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6" + }, + "source_cut_clocks": [ + 98054, + 98204 + ], + "status": "PASS_STRICT_379_NATIVE_FINITE" +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/START.json b/research/p104-role379-idle-stop/application-evidence/receipts/native/START.json new file mode 100644 index 0000000000..43f881e740 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/START.json @@ -0,0 +1,36 @@ +{ + "args": { + "candidate": "outputs/kappa-7636-ascent-20261118/strong/run7658/WORD.json.gz", + "candidate_gzip": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "candidate_raw": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "engine": "outputs/kappa-7636-ascent-20261118/source7658/check.py", + "out": "outputs/kappa-7636-ascent-20261118/native/run7658-r2", + "pr": 7658, + "prior_engine": "outputs/kappa-7641-successor-20261118/source-7641-check.py", + "prior_receipts": "outputs/kappa-7641-successor-20261118/application", + "prior_word": "outputs/kappa-7641-successor-20261118/resources/REPAIR-WORD.json.gz", + "source": "outputs/kappa-7636-ascent-20261118/source7658/data/word.json.gz", + "workers": 2 + }, + "candidate_gzip": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "candidate_raw": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "head": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "pr": 7658, + "primes_and_seeds": [ + [ + 1000000009, + 11 + ], + [ + 998244353, + 37 + ] + ], + "scripts": { + "check_native.py": "6cc127ed1b1eddeadb50b69e672587e2c64378e5e5790357e526a9c022e32760", + "physical.py": "ff91934a4eb5f92778d72407db56c06a6330a5160af009662613e2836933ee42" + }, + "source_gzip": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "source_raw": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "started_at": "2026-11-18T01:27:55.614684+00:00" +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.launch.json b/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.launch.json new file mode 100644 index 0000000000..9c8d77cd06 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.launch.json @@ -0,0 +1,23 @@ +{ + "adapter_sha256": "6cc127ed1b1eddeadb50b69e672587e2c64378e5e5790357e526a9c022e32760", + "affinity": [ + 6, + 7 + ], + "candidate_canonical_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "candidate_raw_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "ended_at": "2026-11-18T01:29:49.023309+00:00", + "exit": 0, + "launcher_sha256": "de89b65ba5afc136854531882e571c68765af2ecbbea4829cc1c35ce597c0372", + "max_address_space_bytes_per_process": 2684354560, + "native_result_sha256": "01490a7539289511a367602466bb2e8749ce36e3aec642e9066c68dfdebd78b7", + "physical_sha256": "ff91934a4eb5f92778d72407db56c06a6330a5160af009662613e2836933ee42", + "run_id": "strict379-pr7658-r2", + "stage": "native", + "start_sha256": "3335f180b03325fb5770597a381420ee94f3af98ae2407b53d0391d54381353a", + "started_at": "2026-11-18T01:27:55.614684+00:00", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "4ffbd1ab67bf5f778a39acf76f863855996dbb5c162b3a91d8318b139ed9d50c", + "time_sha256": "b4e268cce3a36bdebedff1b32496a41473d78a8393a618487fe9bca7ed1e418d", + "wall_seconds_limit": 1104 +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.stderr b/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.stderr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.stdout b/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.stdout new file mode 100644 index 0000000000..1a23bc4997 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.stdout @@ -0,0 +1,2 @@ +pair coverage: 2958 source, 2959 candidate, 2952 reused, 7 fresh +PASS_STRICT_379_NATIVE_FINITE pr=7658 elapsed=113.3 diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.time b/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.time new file mode 100644 index 0000000000..218a9a6c98 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/native/run7658-r2.time @@ -0,0 +1,23 @@ + Command being timed: "timeout -k 10s 1104s prlimit --as=2684354560 --cpu=1104 taskset -c 6,7 python3.12 -B outputs/kappa-7636-ascent-20261118/native/check_native.py --pr 7658 --source outputs/kappa-7636-ascent-20261118/source7658/data/word.json.gz --candidate outputs/kappa-7636-ascent-20261118/strong/run7658/WORD.json.gz --candidate-gzip 4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e --candidate-raw f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669 --engine outputs/kappa-7636-ascent-20261118/source7658/check.py --prior-engine outputs/kappa-7641-successor-20261118/source-7641-check.py --prior-word outputs/kappa-7641-successor-20261118/resources/REPAIR-WORD.json.gz --prior-receipts outputs/kappa-7641-successor-20261118/application --workers 2 --out outputs/kappa-7636-ascent-20261118/native/run7658-r2" + User time (seconds): 115.27 + System time (seconds): 0.43 + Percent of CPU this job got: 101% + Elapsed (wall clock) time (h:mm:ss or m:ss): 1:53.44 + Average shared text size (kbytes): 0 + Average unshared data size (kbytes): 0 + Average stack size (kbytes): 0 + Average total size (kbytes): 0 + Maximum resident set size (kbytes): 422688 + Average resident set size (kbytes): 0 + Major (requiring I/O) page faults: 0 + Minor (reclaiming a frame) page faults: 168550 + Voluntary context switches: 47 + Involuntary context switches: 6984 + Swaps: 0 + File system inputs: 2160 + File system outputs: 4330 + Socket messages sent: 0 + Socket messages received: 0 + Signals delivered: 0 + Page size (bytes): 4096 + Exit status: 0 diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/source/GRID.json b/research/p104-role379-idle-stop/application-evidence/receipts/source/GRID.json new file mode 100644 index 0000000000..b0ddb9ff3b --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/source/GRID.json @@ -0,0 +1,434 @@ +{ + "status": "FINITE_GRID_AND_ENVELOPE_ONLY", + "compressed_word_sha256": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "decompressed_sha256": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "canonical_word_sha256": "9721965b3fa98cef7731ee88319fae2e62354bca3bf1a6b334bcffee14b047cf", + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "source_pins": { + "derive_grid.py": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0", + "independent_bounds.py": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "envelopes.py": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "source_binding.py": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "ODD-TYPE-AB-CALLER.json": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "ODD-CALLER-EXACT-GRID.json": "87d25d9fa3778bf4784e3a9e17f32ce5ba372663c6e97392cc62b87e6719042c" + }, + "engines": { + "rational": { + "source_sha256": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0", + "adapted_sha256": "ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0", + "edits": [] + }, + "integer": { + "source_sha256": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "adapted_sha256": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "edits": [] + }, + "binding": { + "source_sha256": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "adapted_sha256": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "edits": [] + }, + "envelope": { + "source_sha256": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "adapted_sha256": "01463d192d08d7cb04979a1c2ac374c594948aa506d3fa2115fa487f79935d75", + "edits": [ + { + "old": "elif op in (\"LAMBDA\", \"IDLE_ONE\"):", + "new": "elif op in (\"LAMBDA\", \"IDLE_ONE\", \"IDLE_ODD\"):", + "count": 2 + }, + { + "old": "all(0 <= r < 38 for r in ar) and all(38 <= r < 76 for r in br[:2])", + "new": "all(caller[\"types\"][\"A\"][\"offset\"] <= r < caller[\"types\"][\"A\"][\"offset\"] + caller[\"types\"][\"A\"][\"roles\"] for r in ar) and all(caller[\"types\"][\"B\"][\"offset\"] <= r < caller[\"types\"][\"B\"][\"offset\"] + caller[\"types\"][\"B\"][\"roles\"] for r in br[:2])", + "count": 1 + }, + { + "old": "all(1 <= k <= 18 for k in e[3])", + "new": "all(1 <= k <= caller[\"stages\"] for k in e[3])", + "count": 1 + }, + { + "old": "need(j_order == list(range(1, 19)), \"exact eighteen native calls\")", + "new": "need(j_order == list(range(1, caller[\"stages\"] + 1)), \"all chronological native calls\")", + "count": 1 + }, + { + "old": "word[\"public\"] - len(mains) == 1061", + "new": "word[\"public\"] - len(mains) == expected_helper_count", + "count": 1 + }, + { + "old": "physical_main_inputs=3952, fresh_arbitrary_helpers=18 * 1061,", + "new": "physical_main_inputs=sum(t[\"roles\"] * len(t[\"ports\"]) for t in caller[\"types\"].values()), fresh_arbitrary_helpers=caller[\"stages\"] * expected_helper_count,", + "count": 1 + }, + { + "old": "need(len(e[3]) == len(set(e[3]))", + "new": "need(op != \"IDLE_ODD\" or (len(e[3]) == 1 and e[4] == -1), \"signed child signature\")\n need(len(e[3]) == len(set(e[3]))", + "count": 1 + }, + { + "old": "(life, peak, owned_count) == (54, 43, 51)", + "new": "(life, peak, owned_count) == (234, 50, 68)", + "count": 1 + } + ] + } + }, + "rational_grid": { + "odd_scale": 225, + "fractional_bits": 14, + "unscaled_maximum_mass": "1291569/10", + "scaled_maximum_mass": "58120605/2", + "mass_witness": [ + 119469, + "stored" + ], + "coefficient_visits": 24277036 + }, + "integer_grid": { + "odd_scale_lcm": 225, + "dyadic_height": 14, + "maximum_scaled_mass": "58120605/2", + "mass_witness": [ + 119469, + "stored add" + ], + "numerator_bits": 18, + "coefficient_visits": 24277036 + }, + "native_envelope": { + "census": { + "events": 150010, + "public": 1501, + "owned_labels": 68, + "lifetimes": 234, + "peak_owned": 50, + "opcodes": { + "SCALE": 4149, + "ADD": 139227, + "INIT": 234, + "MOVE": 6166, + "CLEAR": 234 + }, + "scalars": { + "integer": 60504, + "dyadic": 136669, + "noninteger": 82872, + "odd": 6707 + }, + "max_numerator": 199393, + "numerator_bits": 18, + "max_denominator": 15360, + "denominator_bits": 14 + }, + "bounds": { + "M": { + "exact": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "strict_power_of_two": 123, + "witness": { + "cut": 146207, + "register": 1428, + "factor": "1", + "kind": "stored" + } + }, + "Sigma": { + "exact": "88868123222295382265912417872734216386349356484241/19568944742400000", + "strict_power_of_two": 112, + "witness": { + "cut": 146207, + "register": 1428, + "factor": "1", + "kind": "stored" + } + }, + "Gamma": { + "exact": "88868123222295382265912417872734216386349356484241/19568944742400000", + "strict_power_of_two": 112, + "witness": { + "cut": 150010, + "register": 1428, + "factor": "1", + "kind": "public-return" + } + } + }, + "independent_adjoint": { + "M": { + "entrance_mass": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "residual_mass": "88868123222295382265912417872734216386349356484241/19568944742400000", + "active_residual_sites": 52860 + }, + "Sigma": { + "entrance_mass": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "residual_mass": "88868123222295382265912417872734216386349356484241/19568944742400000", + "active_residual_sites": 52860 + }, + "Gamma": { + "entrance_mass": "224853608172628518474883117854804320388212148643409443/39137889484800000", + "residual_mass": "88868123222295382265912417872734216386349356484241/19568944742400000", + "active_residual_sites": 52860 + } + } + }, + "caller_envelope": { + "bounds": { + "M_caller": { + "exact": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "strict_power_of_two": 897, + "witness": { + "event": 4750, + "register": 37, + "cut": 4751, + "factor": "1", + "kind": "stored" + } + }, + "Sigma_caller": { + "exact": "330760398163091904274517275606227163549617030778725727779365172469449016464645942838897678885552680548919920689360010005219158122387137144417269104704837352405508272943690341910532195966663815289600847074747076524679705005177962516015434708308815823731762500557190826524906251832623732439451589214372882916220704799562571790382890609503193933507/214228033597440000000000000000000000000000000", + "strict_power_of_two": 998, + "witness": { + "event": 4752, + "register": 37, + "cut": 4753, + "factor": "1", + "kind": "stored" + } + }, + "M_joint_entrance": { + "exact": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "strict_power_of_two": 892, + "witness": { + "event": 4691, + "register": 36, + "cut": 4691, + "factor": "1", + "kind": "stored" + } + }, + "E_joint_entrance": { + "exact": "12816394039616740054301428723104141522019798543689130521413947035297251426095514887910918347417308305069983326654897628187437882008047104393766304133381003531246221985424830456126358937884831364891951897704784975243094749546480670053909361475087009357112813654631696242681557819350008347885020212958026688124327206474062980018178251900957180617/285637378129920000000000000000000000000000000", + "strict_power_of_two": 993, + "witness": { + "event": 4691, + "register": 36, + "cut": 4691, + "factor": "1", + "kind": "stored" + } + }, + "M_context": { + "exact": "2798643541927124281565622653405811567254114435814381562954829829904044911025149119256416590944270172033820842434555214201348455495477587726146953089298606236886344310265002192927363173667316792923604772702767535736828157980095365812835163225081225571631868036442186408761492427582224034439095062462622547720346433409678960684512818380768272795162653/23803114844160000000000000000000000000000000", + "strict_power_of_two": 1014, + "witness": { + "event": 4691, + "register": null, + "cut": 4692, + "factor": "1", + "kind": "stored" + } + }, + "Sigma_context": { + "exact": "2881812443569994053657152452699022345948395600885310017182171093959829195374580219316863067275096466888883914748817424031877093419161640206842587972374007874074711159470898026226918101882955475960521737677285805734663006724480431585153534274271759205023208375881181682429132017438443130785993735444223533390286076240512519464259574873403242908960876989476692564461707453203734713658086063634366331/11179244137976837456265216000000000000000000000000000000000000", + "strict_power_of_two": 1115, + "witness": { + "event": 4691, + "register": null, + "cut": 4692, + "factor": "1", + "kind": "stored" + } + }, + "Gamma_context": { + "exact": "330760398163091904274517275606227163549617030778725727779365172469449016464645942838897678885552680548919920689360010005219158122387137144417269104704837352405508272943690341910532195966663815289600847074747076524679705005177962516015434708308815823731762500557190826524906251832623732439451589214372882916220704799562571790382890609503193933507/214228033597440000000000000000000000000000000", + "strict_power_of_two": 998, + "witness": { + "register": 37, + "cut": 4783, + "factor": "1", + "kind": "public-return" + } + } + }, + "sites": { + "ADD": 4126, + "noninteger_scalar": 1752, + "SCALE": 312, + "IDLE_ONE": 90, + "LAMBDA": 178, + "J": 17, + "IDLE_ODD": 4, + "SWAP": 52, + "QUERY": 4 + }, + "joint_entries": [ + { + "event": 43, + "stage": 1, + "entrance_mass": "2067/2", + "entrance_defect": "1435/4" + }, + { + "event": 137, + "stage": 2, + "entrance_mass": "56849465528/5", + "entrance_defect": "152445000652388054806622023005837385203310817584994401087/6115295232000000" + }, + { + "event": 268, + "stage": 3, + "entrance_mass": "899756300051784928313/5", + "entrance_defect": "231623719028921087238185338181498328000364772399169653569830676203967/587068342272000000" + }, + { + "event": 432, + "stage": 4, + "entrance_mass": "2514111326902273689027625979152/15", + "entrance_defect": "215735385072722726983392745250580880480330241986368020203114930132421405538431/587068342272000000" + }, + { + "event": 633, + "stage": 5, + "entrance_mass": "513576167499541081817002847690160861158177/15", + "entrance_defect": "44069867182931405474784010450616886758214750272841786526811695896735244767575915057486201/587068342272000000" + }, + { + "event": 867, + "stage": 6, + "entrance_mass": "49174910102467876864090432969907258581035345395534834/225", + "entrance_defect": "4219689101812318065496804358072238532254695657749427643801915481625294722126044936207592957641751909/8806025134080000000" + }, + { + "event": 1138, + "stage": 7, + "entrance_mass": "47202796791779792903787260464709452698419616298153732189406926691/225", + "entrance_defect": "450051384113231625178216600647921556334970121964848821778168962158656251485244110713186457097090723749740713259/978447237120000000" + }, + { + "event": 1423, + "stage": 8, + "entrance_mass": "1527059719525243651854937925515623170877847518562264265010551055991429949116792541/28125", + "entrance_defect": "131036686043150759588914531864404517916435381937346216761459670771588601298276724318365910005721312546980663881473039505349371261/1100753141760000000000" + }, + { + "event": 3058, + "stage": 9, + "entrance_mass": "45382020709918266925583064268574418985484021788023395083741971786893952543604385214817042722264713249357732585113211736557042182118473445437784492974844696068231496289005681248244219743195326431922663592509646282903/2703048706054687500000000", + "entrance_defect": "46730664351108408440621109105584564518805230618609059372169454871877081746544126530236688078675166546593906989606791202540853286694376188092121715693606068483424877029369104229421683252176486919104033124306233481620591176152226993178996341637106752034719497588081/1269499458355200000000000000000000000000000" + }, + { + "event": 3377, + "stage": 10, + "entrance_mass": "17256576412236653193246225901973714737195067836439327666112948810725372605325768521068989782195051084826433423902219365061463548934152577319772447024097669813834215493691840531234110147024064996639957180865886380686899413865699437/67576217651367187500000000", + "entrance_defect": "17769400030114656297936737977775387597457852470587044766237978874371249689778255901450732009400086151357894391571509838686494999704366480578621069105737228523293943783042478812677576382573426714482988229480306989074198690003151191262067796054294446819419397855693606544784901099/31737486458880000000000000000000000000000000" + }, + { + "event": 3674, + "stage": 11, + "entrance_mass": "8232867642949280967953864719378369729636081542640965177026582834276172086852779069019078166383458700724373015543641299678854718814560615654710102550769670203427726502361438450768012893674227975469242856299447027845030556012745339827937032703/2252540588378906250000000", + "entrance_defect": "8477528511322579391638204111853318053004884900202407092899534293325639302725963685873153053083018198801858111332428605595774584202272953324889868105281150118335232350352241311809552983008852427356783746815266546628294790323921246542983679618871785511836472193721297293558272280485906852681/1057916215296000000000000000000000000000000" + }, + { + "event": 3934, + "stage": 12, + "entrance_mass": "103457615351059805192637231353494210876529187337645013912367786609511281374638184501291799844537790265462481580051228205479278831706979374022592427678836083146990308179368316797029946556942233864286312243671687806427572314354434738422294564686254956597631/304092979431152343750000000", + "entrance_defect": "106532124879133961010122345743124893736529135625861232739086930642778249069948500948005015603161947870590787656966222638454694692611814880716495934382156593287178719358154338633389877778787246366316704566692814906216813546210222436616651242325282984209105341228458911431482392860266460223178510979352937/142818689064960000000000000000000000000000000" + }, + { + "event": 4149, + "stage": 13, + "entrance_mass": "6814687293408352348961376609223100753789665399854180217091951198766673494955017243489117504312576625705862588971333049204842152193259763726092611947454717867967563820647006231530855513792517852570389360287582421241328472893443552787136426885585158158296407747039/76023244857788085937500000", + "entrance_defect": "7017203279721536128573055901570470833937292659148845200926458909263793571600138437341498196464847759799042355804332665199680401622416692530158466524819334207259238919242972888588106399464496327329719287487225991172878333177182995634400146862876621026745436869304964750535345234889046011060297026098405094586153/35704672266240000000000000000000000000000000" + }, + { + "event": 4337, + "stage": 14, + "entrance_mass": "273688564209132230699064882255651065961520374651451250325109091529813162250488973700796593555467744131430272845604649750549608356985710665121874068107850799585492748533787927289567936649257940207702597871193107311090132538524151482351564937285621850171994049078063458209591/608185958862304687500000000", + "entrance_defect": "281821924866350323530868330564199298716727426462430980888257700340338077894274243544996162470190441174998327721690459576841272934305846899780869273803622095839451575505116260739165675159161225176505097048054239106293247508538766561978770299331262758376379391264586792811484020201955064638482926936061919432297607710979857/285637378129920000000000000000000000000000000" + }, + { + "event": 4485, + "stage": 15, + "entrance_mass": "5230780602279043381317572379439763694807653157987526423412516241866438709931406455512285461654380762978554988724296151241130161368896505647624919395909388513302452136334767445346454946237326490486725295589968816639097338790755366202380875008783642473174121062695038054202858248061/304092979431152343750000000", + "entrance_defect": "5386226721411032900907848792769665416925944665358417298643996756025997594474300874141060794245564718291269721748602225966696886987633094008130084952319590026699714579819925741501061888010528584393189188311535372816248453540569163289034001242452521195063369573487090904114665940594854193990209478041364089462679430451207895771547/142818689064960000000000000000000000000000000" + }, + { + "event": 4606, + "stage": 16, + "entrance_mass": "5790424100720951765768300756324298709533962301792798636386692749870979029496708556989270788662796627612885676197810930990877069943243536093513215980405080279750566239442965631097385199413957318608000177913047677092759213914423460784984181631621622445055356552059259436283593839861423838063/608185958862304687500000000", + "entrance_defect": "5962501467948558399546510822002029276699186665955166528479715028869119977967366167947566783933332957329942820072218622446747050286453213045213429239385372745465644500692109389203671576955463747925295053703360834905758631185218726101539794734394048953860038948607927029648011330620783607479745418734928465752227052605748871973259578861401/285637378129920000000000000000000000000000000" + }, + { + "event": 4691, + "stage": 17, + "entrance_mass": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "entrance_defect": "12816394039616740054301428723104141522019798543689130521413947035297251426095514887910918347417308305069983326654897628187437882008047104393766304133381003531246221985424830456126358937884831364891951897704784975243094749546480670053909361475087009357112813654631696242681557819350008347885020212958026688124327206474062980018178251900957180617/285637378129920000000000000000000000000000000" + } + ], + "independent_adjoint": { + "M_caller": { + "entrance_mass": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "residual_mass": "330760398163091904274517275606227163549617030778725727779365172469449016464645942838897678885552680548919920689360010005219158122387137144417269104704837352405508272943690341910532195966663815289600847074747076524679705005177962516015434708308815823731762500557190826524906251832623732439451589214372668688187107359562571790382890609503193933507/214228033597440000000000000000000000000000000", + "joint_coefficient": "3721923971948022264020008386608472289590988528157114268392412469599050143495508978788641788787976594161440706214373829555996384554677122174093932095769106055424540710380314024651007332164525664382203471694821380954416641216321248248752759218861172626274920078125266851782731337714997593665899027/10947347259521484375000000000", + "primitive_coefficient": "31933635363307317503891208167952125518099265598871297188945655447689887409437080424471754322893069036961252717295444311531802702290424391181977246033332095685934810861449534911850277930109610390733877602745069385156892357266512877411313922547610591253415658016844390796247824792255124449682067424881/131368167114257812500000000000" + }, + "Sigma_caller": { + "entrance_mass": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "residual_mass": "330760398163091904274517275606227163549617030778725727779365172469449016464645942838897678885552680548919920689360010005219158122387137144417269104704837352405508272943690341910532195966663815289600847074747076524679705005177962516015434708308815823731762500557190826524906251832623732439451589214372882916220704799562571790382890609503193933507/214228033597440000000000000000000000000000000", + "joint_coefficient": "3721923971948022264020008386608472289590988528157114268392412469599050143495508978788641788787976594161440706214373829555996384554677122174093932095769106055424540710380314024651007332164525664382203471694821380954416641216321248248752759218861172626274920078125266851782731337714997593665899027/10947347259521484375000000000", + "primitive_coefficient": "31933635363307317503891208167952125518099265598871297188945655447689887409437080424471754322893069036961252717295444311531802702290424391181977246033332095685934810861449534911850277930109610390733877602745069385156892357266512877411313922547610591253415658016844390796379192959369382262182067424881/131368167114257812500000000000" + }, + "M_joint_entrance": { + "entrance_mass": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "residual_mass": "12816394039616740054301428723104141522019798543689130521413947035297251426095514887910918347417308305069983326654897628187437882008047104393766304133381003531246221985424830456126358937884831364891951897704784975243094749546480670053909361475087009357112813654631696242681557819350008347885020212958026688124327206474062980018178251900957180617/285637378129920000000000000000000000000000000", + "joint_coefficient": "144218124282401204617230263054514744346632405857442589144991781917530152132889870002846209306787762894150543865356389849084238452276894627352790762454037345126994351979907477144401257368423063007427271766117739822282248246858569624239109891511459830034432108241771054783468611278140179030295737/14596463012695312500000000000", + "primitive_coefficient": "1237373204913668966810008103424843603237049842106979534739539344726881600855129275554334885562896567825503574055929527662143657491595081161117482238618339640110136792453314323518006796600687371906278112102741547626404362403105174332310591538741639237757093806525664195341657589882317257470101709011/175157556152343750000000000000" + }, + "E_joint_entrance": { + "entrance_mass": "12446513821466013746992171114880354528234540647439407368041740746722705684890095694539586093101687855496797040728247169012299728404791642365323413178973703529222728715961384485250463009966565309368602073434714550373752128374887698957802006867751735225949803848812917591840288770078529478244705471/608185958862304687500000000", + "residual_mass": "12816394039616740054301428723104141522019798543689130521413947035297251426095514887910918347417308305069983326654897628187437882008047104393766304133381003531246221985424830456126358937884831364891951897704784975243094749546480670053909361475087009357112813654631696242681557819350008347885020212958026688124327206474062980018178251900957180617/285637378129920000000000000000000000000000000", + "joint_coefficient": "144218124282401204617230263054514744346632405857442589144991781917530152132889870002846209306787762894150543865356389849084238452276894627352790762454037345126994351979907477144401257368423063007427271766117739822282248246858569624239109891511459830034432108241771054783468611278140179030295737/14596463012695312500000000000", + "primitive_coefficient": "1237373204913668966810008103424843603237049842106979534739539344726881600855129275554334885562896567825503574055929527662143657491595081161117482238618339640110136792453314323518006796600687371906278112102741547626404362403105174332310591538741639237757093806525664195341657589882317257470101709011/175157556152343750000000000000" + }, + "Gamma_context": { + "entrance_mass": "321214676655933560129782836030951119958622429471431692811117505066079252658303325303661828534046786576018850667853596288128047313819788006911616028348392581085050721023636971054851673799947587501432346122953175312809813833001587100311020687804583808767060460431114911369649528995555025426696059541/456139469146728515625000000", + "residual_mass": "330760398163091904274517275606227163549617030778725727779365172469449016464645942838897678885552680548919920689360010005219158122387137144417269104704837352405508272943690341910532195966663815289600847074747076524679705005177962516015434708308815823731762500557190826524906251832623732439451589214372882916220704799562571790382890609503193933507/214228033597440000000000000000000000000000000", + "joint_coefficient": "3721923971948022264020008386608472289590988528157114268392412469599050143495508978788641788787976594161440706214373829555996384554677122174093932095769106055424540710380314024651007332164525664382203471694821380954416641216321248248752759218861172626274920078125266851782731337714997593665899027/10947347259521484375000000000", + "primitive_coefficient": "31933635363307317503891208167952125518099265598871297188945655447689887409437080424471754322893069036961252717295444311531802702290424391181977246033332095685934810861449534911850277930109610390733877602745069385156892357266512877411313922547610591253415658016844390796379192959369382262182067424881/131368167114257812500000000000" + } + }, + "physical_main_inputs": 3744, + "fresh_arbitrary_helpers": 18717, + "helper_allocation_premise": "distinct (stage, helper) public inputs as in frozen caller proof" + }, + "caller_grid_carried_from_matching_caller": { + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "prime_order": [ + 2, + 3, + 5 + ], + "safe_valuation_bound": [ + 381, + 69, + 62 + ], + "grid_exponents": [ + 381, + 3, + 2 + ], + "caller_odd_scale": "675", + "caller_odd_scale_bits": 10, + "preproduct_exact_divisions": 176874, + "peak_terms": 3752, + "scope": "Independent integer Laurent caller endpoint and pre-product divisibility. Valuation bound propagates complete field operators whose Gaussian coefficients have only power-of-two denominators, so odd factors are sourced only from the charged scalar operations. Fixed conversion and storage bounds still needed." + }, + "context_height": 395, + "context_mass_bits": 1032, + "context_c": 2064, + "context_le_4096": true, + "elapsed_seconds": 89.1810076230031, + "scope": "Conditional positive rounded envelopes and fixed scalar grid; no physical supplier, full signed application, ordinary or fixed-tape qualification." +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/source/LITERALS.json b/research/p104-role379-idle-stop/application-evidence/receipts/source/LITERALS.json new file mode 100644 index 0000000000..1a2e12faa8 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/source/LITERALS.json @@ -0,0 +1,59 @@ +{ + "scope": "Declared literal predicates, no physical run.", + "source_pr": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "word_sha256": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "canonical_sha256": "9721965b3fa98cef7731ee88319fae2e62354bca3bf1a6b334bcffee14b047cf", + "word_gzip_sha256": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "failures_by_guard": {}, + "first_offending_literals": {}, + "max_numerator": [ + 199393, + { + "clock": 9906, + "event": [ + "ADD", + 721, + 558, + "199393/7680", + 3 + ], + "coefficient": "199393/7680" + } + ], + "max_denominator": [ + 15360, + { + "clock": 9703, + "event": [ + "ADD", + 1341, + 558, + "-12713/15360", + 3 + ], + "coefficient": "-12713/15360" + } + ], + "max_abs_coefficient": [ + "2288", + { + "clock": 111619, + "event": [ + "ADD", + 1428, + 578, + "2288", + 127 + ], + "coefficient": "2288" + } + ], + "bounded_split_screen_if_needed": {}, + "controls": { + "smooth_nonzero_unit_accepts": true, + "nonsmooth_scale_rejects": true, + "nonsmooth_ADD_denominator_rejects": true, + "magnitude_endpoint_rejects": true, + "overwide_small_coefficient_rejects": true + } +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/source/ORDINARY.json b/research/p104-role379-idle-stop/application-evidence/receipts/source/ORDINARY.json new file mode 100644 index 0000000000..b6571d750f --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/source/ORDINARY.json @@ -0,0 +1,95 @@ +{ + "status": "RETAINED_MODEL_ACCOUNTING_ONLY", + "source_word_raw_sha256": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "source_engine_sha256": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "adapted_ordinary_sha256": "dbbcd61b09584ee3e232e284e6245f8d36df8d5b167f691ccfa50eff3ab5166f", + "declared_inventory": { + "paid": { + "1": 3965, + "2": 887, + "4": 247, + "3": 602, + "5": 359, + "6": 84, + "7": 11, + "9": 4, + "8": 7 + }, + "helpers": { + "9": 615, + "2": 21, + "4": 225, + "8": 32, + "7": 19, + "3": 47, + "5": 80, + "6": 44, + "1": 18 + }, + "lifetimes": 234 + }, + "base": { + "scalar_upper": 3452932, + "init_clear_allowance": 936, + "route_items": { + "moves": 6166, + "helper_boundary": 2202, + "first_main_boundary": 208, + "second_main_boundary": 192, + "first_main_adapter": 416, + "second_main_adapter": 384, + "owned_lifetime": 936 + }, + "routing": 10504000, + "caller_items": { + "A": { + "envelope": 102076416, + "thin": 6144, + "field_boundary": 89856, + "output_routes": 213120000, + "idle_routes": 170112000, + "query_routes": 1152000, + "fused_routes": 0 + }, + "B": { + "envelope": 35730432, + "thin": 0, + "field_boundary": 7488, + "output_routes": 17760000, + "idle_routes": 18016000, + "query_routes": 0, + "fused_routes": 1168000 + } + }, + "caller_total": 559238336, + "raw_upper": 796506180, + "per_input_conversion": 2653768, + "lambda_second_charge": 11280000, + "conservative_total": 810439948, + "margin_to_billion": 189560052, + "odd_divisions": { + "ADD": 6609, + "SCALE": 98 + }, + "lambda_paid_rank1_would_reduce_S_by": 11280 + }, + "all_caller_scalar_surcharge": 2248928, + "charged_caller_odd_conversions": 479232, + "retained_signed_model_total": 813168108, + "retained_signed_model_margin": 186831892, + "native_scale_comparison": { + "old": 1125, + "new": 225, + "conversion_sites": 51034, + "rate_old": 68, + "rate_new": 52, + "increment_if_all_sites_charged_at_rate_delta": -816544, + "status": "sensitivity_only_overlap_with_retained_conversion_unresolved" + }, + "limitations": [ + "Declared dimension rank inventory only; no native, physical, signed or compiler admission.", + "Numerical source-unit model, not measured implementation cost.", + "Changed native grid conversion overlap, precision/storage, lifetime supplier and all physical costs remain open." + ] +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/source/TAPE-SCALAR.json b/research/p104-role379-idle-stop/application-evidence/receipts/source/TAPE-SCALAR.json new file mode 100644 index 0000000000..a2908e9517 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/source/TAPE-SCALAR.json @@ -0,0 +1,39 @@ +{ + "status": "SCALAR_CENSUS_ONLY", + "source_raw_sha256": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "fixed_tape_source_sha256": "e6246e9f8fbeae3077d82e585eafd3647c1a8758c58f33c7c13e7efa6c1e42bb", + "opcodes": { + "SCALE": 4149, + "ADD": 139227, + "INIT": 234, + "MOVE": 6166, + "CLEAR": 234 + }, + "native_invocations": 17, + "native_nonmove_per_call": 143844, + "caller_macros": 117856, + "conversion_sites": 58522, + "scalar_macro_inputs": { + "native": 2445348, + "caller": 117856, + "conversions": 58522 + }, + "scalar_services_upper": 83895232, + "scalar_steps_coefficient": 87970526789632, + "max_literal_numerator_bits": 18, + "max_numerator_witness": [ + "199393/7680", + "native", + 9906 + ], + "max_absolute_coefficient": [ + "2288", + "native", + 111619 + ], + "retained_24bit_numerator_gate_passes": true, + "retained_scalar_magnitude_lt_2pow16_gate_passes": true, + "scale_assumed_for_comparison": 225, + "scope": "Finite tariff substitutions only; requires fresh matching precision, physical/paid binding, signed application, compiler and supplier. Scale input is separately bound by the grid receipt or marked as provisional." +} diff --git a/research/p104-role379-idle-stop/application-evidence/receipts/source/TARIFF.json b/research/p104-role379-idle-stop/application-evidence/receipts/source/TARIFF.json new file mode 100644 index 0000000000..c8fa9b362e --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/receipts/source/TARIFF.json @@ -0,0 +1,19 @@ +{ + "source_pr": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "word_sha256": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "canonical_sha256": "9721965b3fa98cef7731ee88319fae2e62354bca3bf1a6b334bcffee14b047cf", + "word_gzip_sha256": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "scope": "Declared 17-call model accounting. Keep the retained charge and double-charge all native conversions under the same conditional full-field tariff.", + "native_scale": 225, + "native_conversion_sites": 51034, + "units_per_site": 52, + "extra_conversion_ordinary": 2653768, + "retained_signed_model_total": 813168108, + "conservative_total": 815821876, + "margin": 184178124, + "strict_ceiling_met": true, + "tape_control_arithmetic": { + "exact_ceiling_rejected": true, + "omitted_conversion_rejected": true + } +} diff --git a/research/p104-role379-idle-stop/application-evidence/replay.py b/research/p104-role379-idle-stop/application-evidence/replay.py new file mode 100644 index 0000000000..46d45df2c2 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/replay.py @@ -0,0 +1,158 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Prepare the frozen #7658 word and run optional Linux application checks.""" + +import argparse +import gzip +import hashlib +import json +import os +from pathlib import Path, PurePosixPath +import resource +import runpy +import signal +import subprocess +import sys +import tempfile +from zipfile import ZipFile + + +HERE = Path(__file__).resolve().parent +CANDIDATE = "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669" +SOURCE = "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6" +NATIVE = HERE / "native-replay" +RESOURCES = HERE / "resource-replay" + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def sha(data): + return hashlib.sha256(data).hexdigest() + + +def read(path, pin=None): + data = path.read_bytes() + require(pin is None or sha(data) == pin, f"SHA-256 mismatch for {path.name}") + return data + + +def core_candidate(args): + core = runpy.run_path(str(args.core.resolve() / "verify.py")) + work = args.out.resolve() + work.mkdir(exist_ok=False) + path, raw, transport = core["run_mutation"]( + 7658, work, args.core.resolve() / "evidence/pr7658", core["pinned_sources"]() + ) + require(raw == CANDIDATE, "unexpected #7658 candidate") + print(json.dumps({"word": str(path), "raw_sha256": raw, "gzip_sha256": transport})) + + +def unpack_native(destination): + origins = json.loads(read(HERE / "SOURCE-INPUTS.json")) + pins = origins["native_archive_members"] + with ZipFile(NATIVE / "predecessor-pairs.zip") as archive: + require(sorted(archive.namelist()) == sorted(pins), "unexpected predecessor archive entries") + for name, pin in pins.items(): + path = PurePosixPath(name) + require(not path.is_absolute() and ".." not in path.parts and path.as_posix() == name, + "invalid archive member path") + info = archive.getinfo(name) + require(info.file_size == pin["bytes"], f"archive size for {name}") + data = archive.read(info) + require(sha(data) == pin["sha256"], f"archive pin for {name}") + target = destination / name + target.parent.mkdir(parents=True, exist_ok=True) + with target.open("xb") as stream: + stream.write(data) + + +def native_application(args): + core_parent = args.core.resolve() / "retained/pr7658" + candidate = args.candidate.resolve() + raw = read(candidate) + require(sha(gzip.decompress(raw)) == CANDIDATE, "unexpected #7658 candidate") + available = sorted(os.sched_getaffinity(0)) + cpus = args.cpus if args.cpus else available[:2] + require(len(cpus) in (1, 2) and len(set(cpus)) == len(cpus) and set(cpus) <= set(available), + "choose one or two available Linux CPUs") + with tempfile.TemporaryDirectory(prefix="role379-prior-pairs-") as directory: + prior = Path(directory) + unpack_native(prior) + subprocess.run( + [ + "bash", str(NATIVE / "run_guarded.sh"), str(args.out.resolve()), + str(args.wall), ",".join(map(str, cpus)), "offline-reviewer", + "--pr", "7658", "--source", str(core_parent / "data/word.json.gz"), + "--candidate", str(candidate), "--candidate-gzip", sha(raw), + "--candidate-raw", CANDIDATE, "--engine", str(core_parent / "check.py"), + "--prior-engine", str(prior / "phase-check.py"), + "--prior-word", str(prior / "repair-word.json.gz"), + "--prior-receipts", str(prior / "pairs"), "--workers", str(len(cpus)), + ], + check=True, + ) + + +def resource_application(args): + stage = runpy.run_path(str(RESOURCES / "preflight.py")) + run = stage[args.stage] + path = args.word.resolve() + pin = dict(stage["WORDS"]["7658-b" if args.case == "candidate" else "7658"], path=path) + packed = read(path) + expected = CANDIDATE if args.case == "candidate" else SOURCE + require(sha(gzip.decompress(packed)) == expected, "unexpected resource word") + # The core's decoded candidate is deterministic across supported compressors. + if args.case == "candidate": + pin["gzip_sha256"] = sha(packed) + out = args.out.resolve() + out.mkdir(exist_ok=False) + engines = RESOURCES / "engines" + vendor = engines / "vendor" + for name, digest in stage["SOURCE_PINS"].items(): + read(engines / name, digest) + run.__globals__.update(RESOURCES=engines, VENDOR=vendor, ACTIVE_OUT=out) + cpu, wall = (20, 30) if args.stage == "quick" else (180, 205) + os.sched_setaffinity(0, {min(os.sched_getaffinity(0))}) + resource.setrlimit(resource.RLIMIT_AS, (2 * 1024**3, 2 * 1024**3)) + resource.setrlimit(resource.RLIMIT_CPU, (cpu, cpu + 1)) + signal.alarm(wall) + try: + if args.stage == "quick": + run(pin, 225) + else: + run(pin, cpu, wall) + finally: + signal.alarm(0) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + sub = parser.add_subparsers(required=True) + build = sub.add_parser("candidate", help="rebuild the core #7658 word and price") + build.add_argument("--core", required=True, type=Path) + build.add_argument("--out", required=True, type=Path) + build.set_defaults(run=core_candidate) + native = sub.add_parser("native", help="replay the matched finite native application") + native.add_argument("--core", required=True, type=Path) + native.add_argument("--candidate", required=True, type=Path) + native.add_argument("--out", required=True, type=Path) + native.add_argument("--cpus", type=int, nargs="+") + native.add_argument("--wall", type=int, default=1104) + native.set_defaults(run=native_application) + app = sub.add_parser("resource", help="replay the grid or ordinary and scalar counts") + app.add_argument("--case", choices=("source", "candidate"), required=True) + app.add_argument("--stage", choices=("quick", "grid"), required=True) + app.add_argument("--word", required=True, type=Path) + app.add_argument("--out", required=True, type=Path) + app.set_defaults(run=resource_application) + args = parser.parse_args() + require(sys.version_info[:2] == (3, 12) and __debug__, "use Python 3.12 without -O") + runpy.run_path(str(HERE / "check.py"))["check_custody"]() + args.run(args) + + +if __name__ == "__main__": + main() diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/NOTICE-RETAINED b/research/p104-role379-idle-stop/application-evidence/resource-replay/NOTICE-RETAINED new file mode 100644 index 0000000000..a3687d65a0 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/NOTICE-RETAINED @@ -0,0 +1,9 @@ +New shared-wire composition, seventeenth wire, and two enabling splits: developed with substantial OpenAI assistance, 2026. Apache-2.0. + +Frozen predecessor native words and odd verifier: DreamingOfClouds, with Claude Opus 5.5 (Anthropic), from #6936 and #6937. + +Retained Clifford compiler and exact native interpreter retain their original headers and lineage from #6833: native source by DreamingOfClouds; independent-helper mechanism by Ali Romman; inventory, retiming and helper-retirement extensions by Jerry Chen / @CubeJerry with OpenAI assistance. + +Helper-split lemma: Ali Romman (#5599). Shared native applications: CubeJerry (#6916). Caller blocks: CubeJerry (#6912). Owned-rise argument: CubeJerry (#6914). Width-2 phase convention: unpaidmoon (#6930). Odd-grid precedent: icekylinx (#104). + +The higher-level caller and BIT integration require their own source attribution and pins. diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/ordinary.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/ordinary.py new file mode 100644 index 0000000000..4dd6c57de1 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/ordinary.py @@ -0,0 +1,94 @@ +#!/usr/bin/env python3 +"""Recount the retained ordinary model and signed caller surcharges. + +This is an accounting diagnostic. MOVE ranks are counted from declared frame +dimensions, not a substitute for native or physical binding. No supplier +admission or complete changed-grid conversion theorem is claimed. +""" +import collections +import gzip +import hashlib +import json +import resource +import signal +import sys +from fractions import Fraction +from pathlib import Path +from types import ModuleType + +ROOT = Path(__file__).resolve().parent +V = ROOT / 'vendor' +def sha(b): return hashlib.sha256(b).hexdigest() +def need(ok, text): + if not ok: raise ValueError(text) + +def main(): + resource.setrlimit(resource.RLIMIT_AS, (1024**3, 1024**3)) + resource.setrlimit(resource.RLIMIT_CPU, (120, 121)) + signal.alarm(150) + out = ROOT / 'ORDINARY-RESULT.json' + need(not out.exists(), 'exclusive output') + raw = (ROOT.parent/'word7641.json.gz').read_bytes() + need(sha(raw)=='de43ed04f58133eaef8f8d12a9dae1e6e8aa7f9721044200cc839673d86fd7c1','source compressed pin') + data=gzip.decompress(raw) + need(sha(data)=='6a472688bdf2a1b293df0f4f77427a04a1f87c92fedb5b5a6921cc850c272b4f','source decompressed pin') + W=json.loads(data) + caller_raw=(V/'ODD-TYPE-AB-CALLER.json').read_bytes() + need(sha(caller_raw)=='255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc','caller pin') + C=json.loads(caller_raw) + source=(V/'independent.py').read_bytes() + need(sha(source)=='21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874','ordinary source pin') + text=source.decode(); part=text[text.index('def ordinary('):text.index('def main(')] + edits=[('calls=18;', "calls=C['stages'];"), + ('queryroute=sum(p*1000*(2+(e[4]==-1)) for e in qr)', "queryroute=sum(p*1000*(2+(e[4]==-1)) for e in qr)\n fusedroute=sum(36500*p for e in C['events'] if e[:2]==[ty,'IDLE_ODD'])"), + ('idle_routes=idleroute,query_routes=queryroute)', 'idle_routes=idleroute,query_routes=queryroute,fused_routes=fusedroute)')] + for before,after in edits: + need(part.count(before)==1,'unique ordinary adaptation') + part=part.replace(before,after) + engine=ModuleType('ordinary_recount');engine.F=Fraction;engine.Counter=collections.Counter + exec(compile(part,'independent-ordinary-pinned','exec'),engine.__dict__) + moves=collections.Counter() + for e in W['program']: + if e[0]=='MOVE': + rank=abs(len(W['frames'][e[2]])-len(W['frames'][e[3]])) + need(rank>0,'nonzero declared MOVE rank') + moves[rank]+=1 + mains=set(W['live']) | {r+112 for r in W['live']} | set(W['hosted']['X2']) | set(W['hosted']['Y2']) + helpers=collections.Counter(len(W['frames'][W['final'][r]])-len(W['frames'][W['initial'][r]]) for r in range(W['public']) if r not in mains) + need(all(r>0 for r in helpers),'positive helper ranks') + lifetimes=sum(e[0]=='INIT' for e in W['program']) + need(lifetimes==234 and lifetimes==sum(e[0]=='CLEAR' for e in W['program']),'declared lifecycle count') + N={'paid':dict(moves),'helpers':dict(helpers),'lifetimes':lifetimes} + base=engine.ordinary(W,C,N) + surcharge=0 + for e in C['events']: + if e[0]=='J' or e[1] not in ('ADD','SCALE'): continue + q=Fraction(e[-1]);a,d=abs(q.numerator),q.denominator + surcharge+=len(C['types'][e[0]]['ports'])*4*(a.bit_length()+d.bit_length()+1+(a.bit_count() if e[1]=='ADD' else 0)) + conversions=2*sum(t['roles']*len(t['ports']) for t in C['types'].values()) + cg=json.loads((V/'ODD-CALLER-EXACT-GRID.json').read_bytes()) + need(cg['caller_sha256']==sha(caller_raw),'caller grid pin') + odd=int(cg['caller_odd_scale']) + caller_conversions=conversions*4*(odd.bit_length()+1+odd.bit_count()) + total=base['conservative_total']+surcharge+caller_conversions + # Quantify a possible increased native-grid conversion charge separately. + # The actual primitive conversion implementation and overlap with the + # retained per-input conversion allowance are not established here. + native_conversion_sites=2*C['stages']*W['public'] + def conversion_rate(scale): return 4*(scale.bit_length()+1+scale.bit_count()) + native_extra=native_conversion_sites*(conversion_rate(10125)-conversion_rate(1125)) + record={'status':'RETAINED_MODEL_ACCOUNTING_ONLY','source_word_raw_sha256':sha(data),'caller_sha256':sha(caller_raw), + 'source_engine_sha256':sha(source),'adapted_ordinary_sha256':sha(part.encode()),'declared_inventory':N, + 'base':base,'all_caller_scalar_surcharge':surcharge,'charged_caller_odd_conversions':caller_conversions, + 'retained_signed_model_total':total,'retained_signed_model_margin':10**9-total, + 'native_scale_comparison':{'old':1125,'new':10125,'conversion_sites':native_conversion_sites, + 'rate_old':conversion_rate(1125),'rate_new':conversion_rate(10125),'increment_if_all_sites_charged_at_rate_delta':native_extra, + 'status':'sensitivity_only_overlap_with_retained_conversion_unresolved'}, + 'source_7641_reported_ordinary':878834276, + 'limitations':['Declared dimension rank inventory only; no native, physical, signed or compiler admission.', + 'Numerical source-unit model, not measured implementation cost.', + 'Changed native grid conversion overlap, precision/storage, lifetime supplier and all physical costs remain open.']} + with out.open('x') as f: json.dump(record,f,indent=2); f.write('\n') + print(json.dumps({'status':record['status'],'base':base['conservative_total'],'signed_model':total,'sensitivity':native_extra})) + +if __name__=='__main__': main() diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/qualify.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/qualify.py new file mode 100644 index 0000000000..89de00bdd6 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/qualify.py @@ -0,0 +1,127 @@ +#!/usr/bin/env python3 +"""Bounded finite grid and positive-envelope audit; no physical admission. + +Runs only after separate authorization. Uses pinned attributed engines, with +explicit, counted adaptations; see README.md. Does not mutate source inputs. +""" +import argparse +import gzip +import hashlib +import importlib.util +import json +import resource +import signal +import sys +import time +from fractions import Fraction +from pathlib import Path +from types import ModuleType + +HERE = Path(__file__).resolve().parent +V = HERE / 'vendor' +PINS = { + 'derive_grid.py': 'ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0', + 'independent_bounds.py': '198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5', + 'envelopes.py': '783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f', + 'source_binding.py': '624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd', + 'ODD-TYPE-AB-CALLER.json': '255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc', + 'ODD-CALLER-EXACT-GRID.json': '87d25d9fa3778bf4784e3a9e17f32ce5ba372663c6e97392cc62b87e6719042c', +} +WORD_COMPRESSED = 'de43ed04f58133eaef8f8d12a9dae1e6e8aa7f9721044200cc839673d86fd7c1' +WORD_RAW = '6a472688bdf2a1b293df0f4f77427a04a1f87c92fedb5b5a6921cc850c272b4f' + +def digest(data): + return hashlib.sha256(data).hexdigest() + +def module(name, path, replacements=()): + text = path.read_text() + edits = [] + for old, new, count in replacements: + if text.count(old) != count: + raise ValueError('adapter occurrence mismatch: ' + old) + text = text.replace(old, new) + edits.append({'old': old, 'new': new, 'count': count}) + obj = ModuleType(name) + obj.__file__ = str(path) + sys.modules[name] = obj + exec(compile(text, str(path), 'exec'), obj.__dict__) + return obj, {'source_sha256': digest(path.read_bytes()), 'adapted_sha256': digest(text.encode()), 'edits': edits} + +def main(): + if not __debug__: + raise RuntimeError('assertions required') + ap = argparse.ArgumentParser() + ap.add_argument('--word', type=Path, required=True) + ap.add_argument('--output', type=Path, required=True) + ap.add_argument('--cpu-seconds', type=int, default=1800) + ap.add_argument('--wall-seconds', type=int, default=2100) + args = ap.parse_args() + if not 1 <= args.cpu_seconds <= 1800 or not 1 <= args.wall_seconds <= 2100: + raise ValueError('requested limits exceed frozen scope') + resource.setrlimit(resource.RLIMIT_AS, (2 * 1024**3, 2 * 1024**3)) + resource.setrlimit(resource.RLIMIT_CPU, (args.cpu_seconds, args.cpu_seconds + 1)) + signal.alarm(args.wall_seconds) + for name, pin in PINS.items(): + if digest((V / name).read_bytes()) != pin: + raise ValueError('source pin mismatch: ' + name) + compressed = args.word.read_bytes() + if digest(compressed) != WORD_COMPRESSED: + raise ValueError('only pinned #7641 word is authorized') + raw = gzip.decompress(compressed) + if digest(raw) != WORD_RAW: + raise ValueError('decompressed source mismatch') + w = json.loads(raw) + canonical = digest(json.dumps(w, sort_keys=True, separators=(',', ':')).encode()) + caller_bytes = (V / 'ODD-TYPE-AB-CALLER.json').read_bytes() + c = json.loads(caller_bytes) + cg = json.loads((V / 'ODD-CALLER-EXACT-GRID.json').read_bytes()) + if cg['caller_sha256'] != digest(caller_bytes): + raise ValueError('caller grid is not bound to this caller') + start = time.monotonic() + rational, rational_pin = module('resource_rational_grid', V / 'derive_grid.py') + derived, rows = rational.derive(w) + del rows + integer, int_pin = module('resource_integer_grid', V / 'independent_bounds.py') + wg = integer.word_run(w, scale=derived['odd_scale'], frac=derived['fractional_bits']) + if (wg['odd_scale_lcm'], wg['dyadic_height'], Fraction(wg['maximum_scaled_mass'])) != ( + derived['odd_scale'], derived['fractional_bits'], Fraction(derived['scaled_maximum_mass'])): + raise ValueError('independent rational/integer grids disagree') + binding, binding_pin = module('source_binding', V / 'source_binding.py') + changes = [ + ('elif op in ("LAMBDA", "IDLE_ONE"):', 'elif op in ("LAMBDA", "IDLE_ONE", "IDLE_ODD"):', 2), + ('all(0 <= r < 38 for r in ar) and all(38 <= r < 76 for r in br[:2])', 'all(caller["types"]["A"]["offset"] <= r < caller["types"]["A"]["offset"] + caller["types"]["A"]["roles"] for r in ar) and all(caller["types"]["B"]["offset"] <= r < caller["types"]["B"]["offset"] + caller["types"]["B"]["roles"] for r in br[:2])', 1), + ('all(1 <= k <= 18 for k in e[3])', 'all(1 <= k <= caller["stages"] for k in e[3])', 1), + ('need(j_order == list(range(1, 19)), "exact eighteen native calls")', 'need(j_order == list(range(1, caller["stages"] + 1)), "all chronological native calls")', 1), + ('word["public"] - len(mains) == 1061', 'word["public"] - len(mains) == expected_helper_count', 1), + ('physical_main_inputs=3952, fresh_arbitrary_helpers=18 * 1061,', 'physical_main_inputs=sum(t["roles"] * len(t["ports"]) for t in caller["types"].values()), fresh_arbitrary_helpers=caller["stages"] * expected_helper_count,', 1), + ('need(len(e[3]) == len(set(e[3]))', 'need(op != "IDLE_ODD" or (len(e[3]) == 1 and e[4] == -1), "signed child signature")\n need(len(e[3]) == len(set(e[3]))', 1), + ('(life, peak, owned_count) == (54, 43, 51)', '(life, peak, owned_count) == (234, 50, 68)', 1), + ] + # The only lifecycle change is an explicit literal source contract; no + # coefficient, copy, chart, rounding or backward-witness guard is relaxed. + env, env_pin = module('resource_envelopes', V / 'envelopes.py', changes) + mains = set(w['live']) | {r + 112 for r in w['live']} | set(w['hosted']['X2']) | set(w['hosted']['Y2']) + env.expected_helper_count = w['public'] - len(mains) + wp, wr = env.native_envelope(w) + cp, cr = env.caller_envelope(c, wp, w) + height = cg['grid_exponents'][0] + wg['dyadic_height'] + mass = binding.strict_power(cp['M_context'][0]) + cg['caller_odd_scale_bits'] + derived['odd_scale'].bit_length() + context = 2 * max(height, mass) + result = {'status': 'FINITE_GRID_AND_ENVELOPE_ONLY', 'compressed_word_sha256': digest(compressed), + 'decompressed_sha256': digest(raw), 'canonical_word_sha256': canonical, + 'caller_sha256': digest(caller_bytes), 'source_pins': PINS, + 'engines': {'rational': rational_pin, 'integer': int_pin, 'binding': binding_pin, 'envelope': env_pin}, + 'rational_grid': derived, 'integer_grid': wg, 'native_envelope': wr, + 'caller_envelope': cr, 'caller_grid_carried_from_matching_caller': cg, + 'context_height': height, 'context_mass_bits': mass, 'context_c': context, + 'context_le_4096': context <= 4096, 'prior_7637_context': 2458, + 'elapsed_seconds': time.monotonic() - start, + 'scope': 'Conditional positive rounded envelopes and fixed scalar grid; no physical supplier, full signed application, ordinary or fixed-tape qualification.'} + args.output.parent.mkdir(parents=True, exist_ok=True) + with args.output.open('x') as f: + json.dump(result, f, indent=2, default=str) + f.write('\n') + print(json.dumps({'status': result['status'], 'context_c': context, 'le_4096': context <= 4096})) + +if __name__ == '__main__': + main() diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/tape_scalar.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/tape_scalar.py new file mode 100644 index 0000000000..475be01f90 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/tape_scalar.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python3 +"""Literal scalar-service census using retained fixed-tape tariff formula. + +This does not provide the physical binding or map-slot record ceiling. +""" +import collections +import gzip +import hashlib +import json +import resource +import signal +from fractions import Fraction +from pathlib import Path + +ROOT=Path(__file__).resolve().parent +def sha(b):return hashlib.sha256(b).hexdigest() +def need(v,m): + if not v: raise ValueError(m) +def main(): + resource.setrlimit(resource.RLIMIT_AS,(1024**3,1024**3)) + resource.setrlimit(resource.RLIMIT_CPU,(120,121));signal.alarm(150) + out=ROOT/'TAPE-SCALAR-RESULT.json';need(not out.exists(),'exclusive output') + raw=(ROOT.parent/'word7641.json.gz').read_bytes() + need(sha(raw)=='de43ed04f58133eaef8f8d12a9dae1e6e8aa7f9721044200cc839673d86fd7c1','compressed source pin') + data=gzip.decompress(raw);need(sha(data)=='6a472688bdf2a1b293df0f4f77427a04a1f87c92fedb5b5a6921cc850c272b4f','raw source pin') + w=json.loads(data); cr=(ROOT/'vendor/ODD-TYPE-AB-CALLER.json').read_bytes() + need(sha(cr)=='255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc','caller pin') + c=json.loads(cr); cg=json.loads((ROOT/'vendor/ODD-CALLER-EXACT-GRID.json').read_bytes());need(cg['caller_sha256']==sha(cr),'caller-grid pin') + src=(ROOT/'vendor/check_odd_fixed_tape_counts.py').read_bytes() + need(sha(src)=='e6246e9f8fbeae3077d82e585eafd3647c1a8758c58f33c7c13e7efa6c1e42bb','tape source pin') + op=collections.Counter(e[0] for e in w['program']) + calls=c['stages'];native=sum(v for k,v in op.items() if k!='MOVE') + caller=sum(len(c['types'][e[0]]['ports']) for e in c['events'] if e[0]!='J') + conversions=2*calls*w['public']+2*sum(t['roles']*len(t['ports']) for t in c['types'].values()) + scalar_services=32*(calls*native+caller+conversions) + scalar_records=[] + for i,e in enumerate(w['program']): + if e[0] in ('ADD','COPY','SCALE'): + q=Fraction(e[2] if e[0]=='SCALE' else e[3]);scalar_records.append((q,'native',i)) + for i,e in enumerate(c['events']): + if e[0]!='J' and e[1] in ('ADD','SCALE'): + q=Fraction(e[-1]);scalar_records.append((q,'caller',i)) + odd=int(cg['caller_odd_scale']) + scalar_records.extend((Fraction(s),'conversion',str(s)) for s in (10125,Fraction(1,10125),odd,Fraction(1,odd))) + largest=max(scalar_records,key=lambda x:abs(x[0].numerator).bit_length()) + largest_q=max(scalar_records,key=lambda x:abs(x[0])) + bits=abs(largest[0].numerator).bit_length() + o={'status':'SCALAR_CENSUS_ONLY','source_raw_sha256':sha(data),'caller_sha256':sha(cr),'fixed_tape_source_sha256':sha(src), + 'opcodes':dict(op),'native_invocations':calls,'native_nonmove_per_call':native,'caller_macros':caller,'conversion_sites':conversions, + 'scalar_macro_inputs':{'native':calls*native,'caller':caller,'conversions':conversions}, + 'scalar_services_upper':scalar_services,'scalar_steps_coefficient':scalar_services*2**20, + 'max_literal_numerator_bits':bits,'max_numerator_witness':[str(largest[0]),largest[1],largest[2]], + 'max_absolute_coefficient':[str(largest_q[0]),largest_q[1],largest_q[2]], + 'retained_24bit_numerator_gate_passes':bits<=24,'retained_scalar_magnitude_lt_2pow16_gate_passes':abs(largest_q[0])+1<2**16, + 'scale_assumed_for_comparison':10125,'scope':'Finite tariff substitutions only; requires fresh matching precision, physical/paid binding, signed application, compiler and supplier. Scale 10125 is the author-reported value pending independent grid outcome.'} + with out.open('x') as f:json.dump(o,f,indent=2);f.write('\n') + print(json.dumps({'status':o['status'],'services':scalar_services,'numerator_bits':bits,'gates':[o['retained_24bit_numerator_gate_passes'],o['retained_scalar_magnitude_lt_2pow16_gate_passes']]})) +if __name__=='__main__':main() diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/ODD-CALLER-EXACT-GRID.json b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/ODD-CALLER-EXACT-GRID.json new file mode 100644 index 0000000000..1ba429a390 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/ODD-CALLER-EXACT-GRID.json @@ -0,0 +1,23 @@ +{ + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "prime_order": [ + 2, + 3, + 5 + ], + "safe_valuation_bound": [ + 381, + 69, + 62 + ], + "grid_exponents": [ + 381, + 3, + 2 + ], + "caller_odd_scale": "675", + "caller_odd_scale_bits": 10, + "preproduct_exact_divisions": 176874, + "peak_terms": 3752, + "scope": "Independent integer Laurent caller endpoint and pre-product divisibility. Valuation bound propagates complete field operators whose Gaussian coefficients have only power-of-two denominators, so odd factors are sourced only from the charged scalar operations. Fixed conversion and storage bounds still needed." +} \ No newline at end of file diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/ODD-TYPE-AB-CALLER.json b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/ODD-TYPE-AB-CALLER.json new file mode 100644 index 0000000000..9451ceaf6e --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/ODD-TYPE-AB-CALLER.json @@ -0,0 +1 @@ +{"schema":"mixed-root-caller/1","stages":17,"ambient_rank":145,"roles":72,"types":{"A":{"form":"two-chain-HOST2","roles":36,"offset":0,"ports":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,36,37,38,39,40,41,43,44,45,46,48,49,50,51,52,53,54,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],"alpha2":"-1","beta2":"0","diagonal":[[-1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[-1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1],[-1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[-1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1]]},"B":{"form":"hosted-HOST","roles":36,"offset":36,"ports":[15,17,27,34,35,42,47,55],"diagonal":[[-1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[-1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[-1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0],[-1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0]],"pairs":[[0,1,"-1","1/2","-1/2"],[2,3,"-1","1/2","-1/2"],[4,5,"-1","1/2","-1/2"],[6,7,"-1","1/2","-1/2"],[8,9,"-1","1/2","-1/2"],[10,11,"-1","1/2","-1/2"],[12,13,"-1","1/2","-1/2"],[14,15,"-1","1/2","-1/2"],[16,17,"-1","1/2","-1/2"],[22,23,"-1","1/2","-1/2"],[24,25,"-1","1/2","-1/2"],[26,27,"-1","1/2","-1/2"],[28,29,"-1","1/2","-1/2"],[30,31,"-1","1/2","-1/2"],[32,33,"-1","1/2","-1/2"],[34,35,"-1","1/2","-1/2"],[36,37,"-1","1/2","-1/2"],[38,39,"-1","1/2","-1/2"]]}},"events":[["B","ADD",37,36,"7"],["B","ADD",38,36,"-1/2"],["B","ADD",39,36,"3/2"],["B","SCALE",36,"-2"],["B","ADD",36,37,"1"],["B","ADD",36,38,"2"],["B","ADD",36,39,"-2"],["B","IDLE_ONE",36,[1]],["B","ADD",36,39,"2"],["B","ADD",36,38,"-2"],["B","ADD",36,37,"-1"],["B","SCALE",36,"-1/2"],["B","ADD",39,36,"-3/2"],["B","ADD",38,36,"1/2"],["B","ADD",37,36,"-7"],["B","ADD",39,37,"-1/2"],["B","SCALE",37,"-2"],["B","ADD",37,38,"4"],["B","ADD",37,39,"-8"],["B","IDLE_ONE",37,[1]],["B","ADD",37,39,"8"],["B","ADD",37,38,"-4"],["B","SCALE",37,"-1/2"],["B","ADD",39,37,"1/2"],["B","ADD",37,36,"1"],["B","ADD",38,36,"1/2"],["B","ADD",39,36,"1/2"],["B","ADD",36,38,"-1"],["B","ADD",38,37,"1/2"],["B","SCALE",37,"-1/2"],["B","ADD",37,38,"2"],["B","ADD",37,39,"-1"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",1,"-1"],["A","ADD",1,0,"1"],["A","ADD",19,18,"-1"],["A","SCALE",19,"-1"],["A","LAMBDA",1,1],["A","LAMBDA",19,-1],["A","SCALE",19,"-1"],["J",1,[1,0,18,19],[36,37,"-1","1/2"]],["A","LAMBDA",1,-1],["A","LAMBDA",19,1],["A","SCALE",19,"-1"],["A","ADD",0,1,"-1"],["A","ADD",18,19,"-1"],["A","SCALE",19,"-1"],["A","ADD",19,18,"1"],["A","ADD",1,0,"-1"],["A","SCALE",1,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"-2"],["B","ADD",37,39,"1"],["B","ADD",37,38,"-2"],["B","SCALE",37,"-2"],["B","ADD",38,37,"-1/2"],["B","ADD",36,38,"1"],["B","ADD",39,36,"-1/2"],["B","ADD",38,36,"-1/2"],["B","ADD",37,36,"-1"],["B","ADD",37,36,"12/5"],["B","ADD",38,36,"1/5"],["B","ADD",39,36,"3/10"],["B","ADD",40,36,"-1/40"],["B","ADD",41,36,"3/40"],["B","SCALE",36,"-1/10"],["B","ADD",36,37,"-1"],["B","ADD",36,38,"-2"],["B","ADD",36,39,"6"],["B","ADD",36,40,"20"],["B","ADD",36,41,"8"],["B","IDLE_ONE",36,[2]],["B","ADD",36,41,"-8"],["B","ADD",36,40,"-20"],["B","ADD",36,39,"-6"],["B","ADD",36,38,"2"],["B","ADD",36,37,"1"],["B","SCALE",36,"-10"],["B","ADD",41,36,"-3/40"],["B","ADD",40,36,"1/40"],["B","ADD",39,36,"-3/10"],["B","ADD",38,36,"-1/5"],["B","ADD",37,36,"-12/5"],["B","ADD",37,36,"7/3"],["B","ADD",38,36,"1/6"],["B","ADD",39,36,"1/6"],["B","ADD",41,36,"1/12"],["B","SCALE",36,"1/3"],["B","ADD",36,37,"-2"],["B","ADD",36,38,"-8"],["B","ADD",36,39,"20"],["B","ADD",36,40,"68"],["B","ADD",36,41,"28"],["B","IDLE_ONE",36,[2]],["B","ADD",36,41,"-28"],["B","ADD",36,40,"-68"],["B","ADD",36,39,"-20"],["B","ADD",36,38,"8"],["B","ADD",36,37,"2"],["B","SCALE",36,"3"],["B","ADD",41,36,"-1/12"],["B","ADD",39,36,"-1/6"],["B","ADD",38,36,"-1/6"],["B","ADD",37,36,"-7/3"],["B","ADD",37,36,"3"],["B","ADD",38,36,"1/2"],["B","ADD",39,36,"3/2"],["B","ADD",40,36,"-1/2"],["B","ADD",41,36,"1/2"],["B","SCALE",36,"-1"],["B","ADD",36,37,"1/2"],["B","ADD",36,39,"-1"],["B","ADD",36,40,"-4"],["B","ADD",38,37,"-1/2"],["B","ADD",39,37,"-2"],["B","ADD",40,37,"1/2"],["B","SCALE",37,"1/2"],["B","ADD",37,38,"1"],["B","ADD",37,39,"-2"],["B","ADD",37,40,"-8"],["B","ADD",37,41,"-4"],["B","SCALE",37,"1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",2,"-1"],["A","ADD",2,0,"1"],["A","ADD",1,0,"-2"],["A","ADD",19,18,"-2"],["A","ADD",20,18,"-1"],["A","SCALE",20,"-1"],["A","LAMBDA",2,1],["A","LAMBDA",20,-1],["A","SCALE",20,"-1"],["J",2,[2,0,18,20],[36,37,"-1","1/2"]],["A","LAMBDA",2,-1],["A","LAMBDA",20,1],["A","SCALE",20,"-1"],["A","ADD",0,2,"-1"],["A","ADD",18,20,"-1"],["A","SCALE",20,"-1"],["A","ADD",20,18,"1"],["A","ADD",19,18,"2"],["A","ADD",1,0,"2"],["A","ADD",2,0,"-1"],["A","SCALE",2,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"2"],["B","ADD",37,41,"4"],["B","ADD",37,40,"8"],["B","ADD",37,39,"2"],["B","ADD",37,38,"-1"],["B","SCALE",37,"2"],["B","ADD",40,37,"-1/2"],["B","ADD",39,37,"2"],["B","ADD",38,37,"1/2"],["B","ADD",36,40,"4"],["B","ADD",36,39,"1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-1"],["B","ADD",41,36,"-1/2"],["B","ADD",40,36,"1/2"],["B","ADD",39,36,"-3/2"],["B","ADD",38,36,"-1/2"],["B","ADD",37,36,"-3"],["B","ADD",37,36,"7"],["B","ADD",38,36,"5/2"],["B","ADD",39,36,"19/2"],["B","ADD",40,36,"-5/4"],["B","ADD",41,36,"-9/4"],["B","ADD",42,36,"-1/2"],["B","ADD",43,36,"3/2"],["B","SCALE",36,"-2"],["B","ADD",36,37,"7"],["B","ADD",36,38,"26"],["B","ADD",36,39,"-66"],["B","ADD",36,40,"-212"],["B","ADD",36,41,"-132"],["B","ADD",36,42,"14"],["B","ADD",36,43,"-26"],["B","IDLE_ONE",36,[3]],["B","ADD",36,43,"26"],["B","ADD",36,42,"-14"],["B","ADD",36,41,"132"],["B","ADD",36,40,"212"],["B","ADD",36,39,"66"],["B","ADD",36,38,"-26"],["B","ADD",36,37,"-7"],["B","SCALE",36,"-1/2"],["B","ADD",43,36,"-3/2"],["B","ADD",42,36,"1/2"],["B","ADD",41,36,"9/4"],["B","ADD",40,36,"5/4"],["B","ADD",39,36,"-19/2"],["B","ADD",38,36,"-5/2"],["B","ADD",37,36,"-7"],["B","ADD",37,36,"22/3"],["B","ADD",38,36,"8/3"],["B","ADD",39,36,"61/6"],["B","ADD",40,36,"-4/3"],["B","ADD",41,36,"-29/12"],["B","ADD",42,36,"-1/2"],["B","ADD",43,36,"5/3"],["B","SCALE",36,"2/3"],["B","ADD",36,37,"2"],["B","ADD",36,38,"8"],["B","ADD",36,39,"-20"],["B","ADD",36,40,"-64"],["B","ADD",36,41,"-40"],["B","ADD",36,42,"4"],["B","ADD",36,43,"-8"],["B","IDLE_ONE",36,[3]],["B","ADD",36,43,"8"],["B","ADD",36,42,"-4"],["B","ADD",36,41,"40"],["B","ADD",36,40,"64"],["B","ADD",36,39,"20"],["B","ADD",36,38,"-8"],["B","ADD",36,37,"-2"],["B","SCALE",36,"3/2"],["B","ADD",43,36,"-5/3"],["B","ADD",42,36,"1/2"],["B","ADD",41,36,"29/12"],["B","ADD",40,36,"4/3"],["B","ADD",39,36,"-61/6"],["B","ADD",38,36,"-8/3"],["B","ADD",37,36,"-22/3"],["B","ADD",37,36,"1"],["B","ADD",38,36,"-1/2"],["B","ADD",39,36,"-5/2"],["B","ADD",40,36,"1/4"],["B","ADD",41,36,"3/4"],["B","ADD",42,36,"1/2"],["B","ADD",43,36,"1/2"],["B","ADD",36,38,"-1"],["B","ADD",36,39,"2"],["B","ADD",36,40,"6"],["B","ADD",36,41,"4"],["B","ADD",36,42,"-1"],["B","ADD",38,37,"-1/2"],["B","ADD",39,37,"-2"],["B","ADD",40,37,"1/4"],["B","ADD",41,37,"1/2"],["B","ADD",42,37,"1/2"],["B","SCALE",37,"-1/2"],["B","ADD",37,39,"-1"],["B","ADD",37,40,"-4"],["B","ADD",37,41,"-2"],["B","ADD",37,42,"2"],["B","ADD",37,43,"-1"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",3,"-1"],["A","ADD",3,0,"1"],["A","ADD",1,0,"-2"],["A","ADD",2,0,"-2"],["A","ADD",19,18,"-2"],["A","ADD",20,18,"-2"],["A","ADD",21,18,"-1"],["A","SCALE",21,"-1"],["A","LAMBDA",3,1],["A","LAMBDA",21,-1],["A","SCALE",21,"-1"],["J",3,[3,0,18,21],[36,37,"-1","1/2"]],["A","LAMBDA",3,-1],["A","LAMBDA",21,1],["A","SCALE",21,"-1"],["A","ADD",0,3,"-1"],["A","ADD",18,21,"-1"],["A","SCALE",21,"-1"],["A","ADD",21,18,"1"],["A","ADD",20,18,"2"],["A","ADD",19,18,"2"],["A","ADD",2,0,"2"],["A","ADD",1,0,"2"],["A","ADD",3,0,"-1"],["A","SCALE",3,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"-2"],["B","ADD",37,43,"1"],["B","ADD",37,42,"-2"],["B","ADD",37,41,"2"],["B","ADD",37,40,"4"],["B","ADD",37,39,"1"],["B","SCALE",37,"-2"],["B","ADD",42,37,"-1/2"],["B","ADD",41,37,"-1/2"],["B","ADD",40,37,"-1/4"],["B","ADD",39,37,"2"],["B","ADD",38,37,"1/2"],["B","ADD",36,42,"1"],["B","ADD",36,41,"-4"],["B","ADD",36,40,"-6"],["B","ADD",36,39,"-2"],["B","ADD",36,38,"1"],["B","ADD",43,36,"-1/2"],["B","ADD",42,36,"-1/2"],["B","ADD",41,36,"-3/4"],["B","ADD",40,36,"-1/4"],["B","ADD",39,36,"5/2"],["B","ADD",38,36,"1/2"],["B","ADD",37,36,"-1"],["B","ADD",37,36,"12/5"],["B","ADD",38,36,"1/5"],["B","ADD",39,36,"3/10"],["B","ADD",40,36,"-1/10"],["B","ADD",41,36,"1/20"],["B","ADD",42,36,"1/5"],["B","ADD",43,36,"3/10"],["B","ADD",44,36,"-1/40"],["B","ADD",45,36,"3/40"],["B","SCALE",36,"-1/10"],["B","ADD",36,37,"-1"],["B","ADD",36,38,"-2"],["B","ADD",36,39,"6"],["B","ADD",36,40,"20"],["B","ADD",36,41,"12"],["B","ADD",36,42,"-2"],["B","ADD",36,43,"6"],["B","ADD",36,44,"20"],["B","ADD",36,45,"8"],["B","IDLE_ONE",36,[4]],["B","ADD",36,45,"-8"],["B","ADD",36,44,"-20"],["B","ADD",36,43,"-6"],["B","ADD",36,42,"2"],["B","ADD",36,41,"-12"],["B","ADD",36,40,"-20"],["B","ADD",36,39,"-6"],["B","ADD",36,38,"2"],["B","ADD",36,37,"1"],["B","SCALE",36,"-10"],["B","ADD",45,36,"-3/40"],["B","ADD",44,36,"1/40"],["B","ADD",43,36,"-3/10"],["B","ADD",42,36,"-1/5"],["B","ADD",41,36,"-1/20"],["B","ADD",40,36,"1/10"],["B","ADD",39,36,"-3/10"],["B","ADD",38,36,"-1/5"],["B","ADD",37,36,"-12/5"],["B","ADD",37,36,"7/3"],["B","ADD",38,36,"1/6"],["B","ADD",39,36,"1/6"],["B","ADD",40,36,"-1/12"],["B","ADD",41,36,"1/12"],["B","ADD",42,36,"1/6"],["B","ADD",43,36,"1/6"],["B","ADD",45,36,"1/12"],["B","SCALE",36,"1/3"],["B","ADD",36,37,"-2"],["B","ADD",36,38,"-8"],["B","ADD",36,39,"20"],["B","ADD",36,40,"64"],["B","ADD",36,41,"40"],["B","ADD",36,42,"-8"],["B","ADD",36,43,"20"],["B","ADD",36,44,"68"],["B","ADD",36,45,"28"],["B","IDLE_ONE",36,[4]],["B","ADD",36,45,"-28"],["B","ADD",36,44,"-68"],["B","ADD",36,43,"-20"],["B","ADD",36,42,"8"],["B","ADD",36,41,"-40"],["B","ADD",36,40,"-64"],["B","ADD",36,39,"-20"],["B","ADD",36,38,"8"],["B","ADD",36,37,"2"],["B","SCALE",36,"3"],["B","ADD",45,36,"-1/12"],["B","ADD",43,36,"-1/6"],["B","ADD",42,36,"-1/6"],["B","ADD",41,36,"-1/12"],["B","ADD",40,36,"1/12"],["B","ADD",39,36,"-1/6"],["B","ADD",38,36,"-1/6"],["B","ADD",37,36,"-7/3"],["B","ADD",37,36,"3"],["B","ADD",38,36,"1/2"],["B","ADD",39,36,"3/2"],["B","ADD",40,36,"-1/4"],["B","ADD",41,36,"-1/4"],["B","ADD",42,36,"1/2"],["B","ADD",43,36,"3/2"],["B","ADD",44,36,"-1/2"],["B","ADD",45,36,"1/2"],["B","SCALE",36,"-1"],["B","ADD",36,37,"1/2"],["B","ADD",36,39,"-1"],["B","ADD",36,40,"-4"],["B","ADD",36,41,"-2"],["B","ADD",36,43,"-1"],["B","ADD",36,44,"-4"],["B","ADD",38,37,"-1/2"],["B","ADD",39,37,"-2"],["B","ADD",40,37,"1/4"],["B","ADD",41,37,"1/2"],["B","ADD",42,37,"-1/2"],["B","ADD",43,37,"-2"],["B","ADD",44,37,"1/2"],["B","SCALE",37,"1/2"],["B","ADD",37,38,"1"],["B","ADD",37,39,"-2"],["B","ADD",37,40,"-6"],["B","ADD",37,41,"-4"],["B","ADD",37,42,"1"],["B","ADD",37,43,"-2"],["B","ADD",37,44,"-8"],["B","ADD",37,45,"-4"],["B","SCALE",37,"1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",4,"-1"],["A","ADD",4,0,"1"],["A","ADD",1,0,"-2"],["A","ADD",2,0,"-2"],["A","ADD",3,0,"-2"],["A","ADD",19,18,"-2"],["A","ADD",20,18,"-2"],["A","ADD",21,18,"-2"],["A","ADD",22,18,"-1"],["A","SCALE",22,"-1"],["A","LAMBDA",4,1],["A","LAMBDA",22,-1],["A","SCALE",22,"-1"],["J",4,[4,0,18,22],[36,37,"-1","1/2"]],["A","LAMBDA",4,-1],["A","LAMBDA",22,1],["A","SCALE",22,"-1"],["A","ADD",0,4,"-1"],["A","ADD",18,22,"-1"],["A","SCALE",22,"-1"],["A","ADD",22,18,"1"],["A","ADD",21,18,"2"],["A","ADD",20,18,"2"],["A","ADD",19,18,"2"],["A","ADD",3,0,"2"],["A","ADD",2,0,"2"],["A","ADD",1,0,"2"],["A","ADD",4,0,"-1"],["A","SCALE",4,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"2"],["B","ADD",37,45,"4"],["B","ADD",37,44,"8"],["B","ADD",37,43,"2"],["B","ADD",37,42,"-1"],["B","ADD",37,41,"4"],["B","ADD",37,40,"6"],["B","ADD",37,39,"2"],["B","ADD",37,38,"-1"],["B","SCALE",37,"2"],["B","ADD",44,37,"-1/2"],["B","ADD",43,37,"2"],["B","ADD",42,37,"1/2"],["B","ADD",41,37,"-1/2"],["B","ADD",40,37,"-1/4"],["B","ADD",39,37,"2"],["B","ADD",38,37,"1/2"],["B","ADD",36,44,"4"],["B","ADD",36,43,"1"],["B","ADD",36,41,"2"],["B","ADD",36,40,"4"],["B","ADD",36,39,"1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-1"],["B","ADD",45,36,"-1/2"],["B","ADD",44,36,"1/2"],["B","ADD",43,36,"-3/2"],["B","ADD",42,36,"-1/2"],["B","ADD",41,36,"1/4"],["B","ADD",40,36,"1/4"],["B","ADD",39,36,"-3/2"],["B","ADD",38,36,"-1/2"],["B","ADD",37,36,"-3"],["B","ADD",37,36,"7"],["B","ADD",38,36,"5/2"],["B","ADD",39,36,"19/2"],["B","ADD",40,36,"-5/4"],["B","ADD",41,36,"-9/4"],["B","ADD",42,36,"5/2"],["B","ADD",43,36,"19/2"],["B","ADD",44,36,"-5/4"],["B","ADD",45,36,"-9/4"],["B","ADD",46,36,"-1/2"],["B","ADD",47,36,"3/2"],["B","SCALE",36,"-2"],["B","ADD",36,37,"7"],["B","ADD",36,38,"26"],["B","ADD",36,39,"-66"],["B","ADD",36,40,"-212"],["B","ADD",36,41,"-132"],["B","ADD",36,42,"26"],["B","ADD",36,43,"-66"],["B","ADD",36,44,"-212"],["B","ADD",36,45,"-132"],["B","ADD",36,46,"14"],["B","ADD",36,47,"-26"],["B","IDLE_ONE",36,[5]],["B","ADD",36,47,"26"],["B","ADD",36,46,"-14"],["B","ADD",36,45,"132"],["B","ADD",36,44,"212"],["B","ADD",36,43,"66"],["B","ADD",36,42,"-26"],["B","ADD",36,41,"132"],["B","ADD",36,40,"212"],["B","ADD",36,39,"66"],["B","ADD",36,38,"-26"],["B","ADD",36,37,"-7"],["B","SCALE",36,"-1/2"],["B","ADD",47,36,"-3/2"],["B","ADD",46,36,"1/2"],["B","ADD",45,36,"9/4"],["B","ADD",44,36,"5/4"],["B","ADD",43,36,"-19/2"],["B","ADD",42,36,"-5/2"],["B","ADD",41,36,"9/4"],["B","ADD",40,36,"5/4"],["B","ADD",39,36,"-19/2"],["B","ADD",38,36,"-5/2"],["B","ADD",37,36,"-7"],["B","ADD",37,36,"22/3"],["B","ADD",38,36,"8/3"],["B","ADD",39,36,"61/6"],["B","ADD",40,36,"-4/3"],["B","ADD",41,36,"-29/12"],["B","ADD",42,36,"8/3"],["B","ADD",43,36,"61/6"],["B","ADD",44,36,"-4/3"],["B","ADD",45,36,"-29/12"],["B","ADD",46,36,"-1/2"],["B","ADD",47,36,"5/3"],["B","SCALE",36,"2/3"],["B","ADD",36,37,"2"],["B","ADD",36,38,"8"],["B","ADD",36,39,"-20"],["B","ADD",36,40,"-64"],["B","ADD",36,41,"-40"],["B","ADD",36,42,"8"],["B","ADD",36,43,"-20"],["B","ADD",36,44,"-64"],["B","ADD",36,45,"-40"],["B","ADD",36,46,"4"],["B","ADD",36,47,"-8"],["B","IDLE_ONE",36,[5]],["B","ADD",36,47,"8"],["B","ADD",36,46,"-4"],["B","ADD",36,45,"40"],["B","ADD",36,44,"64"],["B","ADD",36,43,"20"],["B","ADD",36,42,"-8"],["B","ADD",36,41,"40"],["B","ADD",36,40,"64"],["B","ADD",36,39,"20"],["B","ADD",36,38,"-8"],["B","ADD",36,37,"-2"],["B","SCALE",36,"3/2"],["B","ADD",47,36,"-5/3"],["B","ADD",46,36,"1/2"],["B","ADD",45,36,"29/12"],["B","ADD",44,36,"4/3"],["B","ADD",43,36,"-61/6"],["B","ADD",42,36,"-8/3"],["B","ADD",41,36,"29/12"],["B","ADD",40,36,"4/3"],["B","ADD",39,36,"-61/6"],["B","ADD",38,36,"-8/3"],["B","ADD",37,36,"-22/3"],["B","ADD",37,36,"1"],["B","ADD",38,36,"-1/2"],["B","ADD",39,36,"-5/2"],["B","ADD",40,36,"1/4"],["B","ADD",41,36,"3/4"],["B","ADD",42,36,"-1/2"],["B","ADD",43,36,"-5/2"],["B","ADD",44,36,"1/4"],["B","ADD",45,36,"3/4"],["B","ADD",46,36,"1/2"],["B","ADD",47,36,"1/2"],["B","ADD",36,38,"-1"],["B","ADD",36,39,"2"],["B","ADD",36,40,"6"],["B","ADD",36,41,"4"],["B","ADD",36,42,"-1"],["B","ADD",36,43,"2"],["B","ADD",36,44,"6"],["B","ADD",36,45,"4"],["B","ADD",36,46,"-1"],["B","ADD",38,37,"-1/2"],["B","ADD",39,37,"-2"],["B","ADD",40,37,"1/4"],["B","ADD",41,37,"1/2"],["B","ADD",42,37,"-1/2"],["B","ADD",43,37,"-2"],["B","ADD",44,37,"1/4"],["B","ADD",45,37,"1/2"],["B","ADD",46,37,"1/2"],["B","SCALE",37,"-1/2"],["B","ADD",37,39,"-1"],["B","ADD",37,40,"-4"],["B","ADD",37,41,"-2"],["B","ADD",37,43,"-1"],["B","ADD",37,44,"-4"],["B","ADD",37,45,"-2"],["B","ADD",37,46,"2"],["B","ADD",37,47,"-1"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",5,"-1"],["A","ADD",5,0,"1"],["A","ADD",1,0,"-2"],["A","ADD",2,0,"-2"],["A","ADD",3,0,"-2"],["A","ADD",4,0,"-2"],["A","ADD",19,18,"-2"],["A","ADD",20,18,"-2"],["A","ADD",21,18,"-2"],["A","ADD",22,18,"-2"],["A","ADD",23,18,"-1"],["A","SCALE",23,"-1"],["A","LAMBDA",5,1],["A","LAMBDA",23,-1],["A","SCALE",23,"-1"],["J",5,[5,0,18,23],[36,37,"-1","1/2"]],["A","LAMBDA",5,-1],["A","LAMBDA",23,1],["A","SCALE",23,"-1"],["A","ADD",0,5,"-1"],["A","ADD",18,23,"-1"],["A","SCALE",23,"-1"],["A","ADD",23,18,"1"],["A","ADD",22,18,"2"],["A","ADD",21,18,"2"],["A","ADD",20,18,"2"],["A","ADD",19,18,"2"],["A","ADD",4,0,"2"],["A","ADD",3,0,"2"],["A","ADD",2,0,"2"],["A","ADD",1,0,"2"],["A","ADD",5,0,"-1"],["A","SCALE",5,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"-2"],["B","ADD",37,47,"1"],["B","ADD",37,46,"-2"],["B","ADD",37,45,"2"],["B","ADD",37,44,"4"],["B","ADD",37,43,"1"],["B","ADD",37,41,"2"],["B","ADD",37,40,"4"],["B","ADD",37,39,"1"],["B","SCALE",37,"-2"],["B","ADD",46,37,"-1/2"],["B","ADD",45,37,"-1/2"],["B","ADD",44,37,"-1/4"],["B","ADD",43,37,"2"],["B","ADD",42,37,"1/2"],["B","ADD",41,37,"-1/2"],["B","ADD",40,37,"-1/4"],["B","ADD",39,37,"2"],["B","ADD",38,37,"1/2"],["B","ADD",36,46,"1"],["B","ADD",36,45,"-4"],["B","ADD",36,44,"-6"],["B","ADD",36,43,"-2"],["B","ADD",36,42,"1"],["B","ADD",36,41,"-4"],["B","ADD",36,40,"-6"],["B","ADD",36,39,"-2"],["B","ADD",36,38,"1"],["B","ADD",47,36,"-1/2"],["B","ADD",46,36,"-1/2"],["B","ADD",45,36,"-3/4"],["B","ADD",44,36,"-1/4"],["B","ADD",43,36,"5/2"],["B","ADD",42,36,"1/2"],["B","ADD",41,36,"-3/4"],["B","ADD",40,36,"-1/4"],["B","ADD",39,36,"5/2"],["B","ADD",38,36,"1/2"],["B","ADD",37,36,"-1"],["B","ADD",37,36,"12/5"],["B","ADD",38,36,"1/5"],["B","ADD",39,36,"3/10"],["B","ADD",40,36,"-1/10"],["B","ADD",41,36,"1/20"],["B","ADD",42,36,"1/5"],["B","ADD",43,36,"3/10"],["B","ADD",44,36,"-1/10"],["B","ADD",45,36,"1/20"],["B","ADD",46,36,"1/5"],["B","ADD",47,36,"3/10"],["B","ADD",48,36,"-1/40"],["B","ADD",49,36,"3/40"],["B","SCALE",36,"-1/10"],["B","ADD",36,37,"-1"],["B","ADD",36,38,"-2"],["B","ADD",36,39,"6"],["B","ADD",36,40,"20"],["B","ADD",36,41,"12"],["B","ADD",36,42,"-2"],["B","ADD",36,43,"6"],["B","ADD",36,44,"20"],["B","ADD",36,45,"12"],["B","ADD",36,46,"-2"],["B","ADD",36,47,"6"],["B","ADD",36,48,"20"],["B","ADD",36,49,"8"],["B","IDLE_ONE",36,[6]],["B","ADD",36,49,"-8"],["B","ADD",36,48,"-20"],["B","ADD",36,47,"-6"],["B","ADD",36,46,"2"],["B","ADD",36,45,"-12"],["B","ADD",36,44,"-20"],["B","ADD",36,43,"-6"],["B","ADD",36,42,"2"],["B","ADD",36,41,"-12"],["B","ADD",36,40,"-20"],["B","ADD",36,39,"-6"],["B","ADD",36,38,"2"],["B","ADD",36,37,"1"],["B","SCALE",36,"-10"],["B","ADD",49,36,"-3/40"],["B","ADD",48,36,"1/40"],["B","ADD",47,36,"-3/10"],["B","ADD",46,36,"-1/5"],["B","ADD",45,36,"-1/20"],["B","ADD",44,36,"1/10"],["B","ADD",43,36,"-3/10"],["B","ADD",42,36,"-1/5"],["B","ADD",41,36,"-1/20"],["B","ADD",40,36,"1/10"],["B","ADD",39,36,"-3/10"],["B","ADD",38,36,"-1/5"],["B","ADD",37,36,"-12/5"],["B","ADD",37,36,"7/3"],["B","ADD",38,36,"1/6"],["B","ADD",39,36,"1/6"],["B","ADD",40,36,"-1/12"],["B","ADD",41,36,"1/12"],["B","ADD",42,36,"1/6"],["B","ADD",43,36,"1/6"],["B","ADD",44,36,"-1/12"],["B","ADD",45,36,"1/12"],["B","ADD",46,36,"1/6"],["B","ADD",47,36,"1/6"],["B","ADD",49,36,"1/12"],["B","SCALE",36,"1/3"],["B","ADD",36,37,"-2"],["B","ADD",36,38,"-8"],["B","ADD",36,39,"20"],["B","ADD",36,40,"64"],["B","ADD",36,41,"40"],["B","ADD",36,42,"-8"],["B","ADD",36,43,"20"],["B","ADD",36,44,"64"],["B","ADD",36,45,"40"],["B","ADD",36,46,"-8"],["B","ADD",36,47,"20"],["B","ADD",36,48,"68"],["B","ADD",36,49,"28"],["B","IDLE_ONE",36,[6]],["B","ADD",36,49,"-28"],["B","ADD",36,48,"-68"],["B","ADD",36,47,"-20"],["B","ADD",36,46,"8"],["B","ADD",36,45,"-40"],["B","ADD",36,44,"-64"],["B","ADD",36,43,"-20"],["B","ADD",36,42,"8"],["B","ADD",36,41,"-40"],["B","ADD",36,40,"-64"],["B","ADD",36,39,"-20"],["B","ADD",36,38,"8"],["B","ADD",36,37,"2"],["B","SCALE",36,"3"],["B","ADD",49,36,"-1/12"],["B","ADD",47,36,"-1/6"],["B","ADD",46,36,"-1/6"],["B","ADD",45,36,"-1/12"],["B","ADD",44,36,"1/12"],["B","ADD",43,36,"-1/6"],["B","ADD",42,36,"-1/6"],["B","ADD",41,36,"-1/12"],["B","ADD",40,36,"1/12"],["B","ADD",39,36,"-1/6"],["B","ADD",38,36,"-1/6"],["B","ADD",37,36,"-7/3"],["B","ADD",37,36,"3"],["B","ADD",38,36,"1/2"],["B","ADD",39,36,"3/2"],["B","ADD",40,36,"-1/4"],["B","ADD",41,36,"-1/4"],["B","ADD",42,36,"1/2"],["B","ADD",43,36,"3/2"],["B","ADD",44,36,"-1/4"],["B","ADD",45,36,"-1/4"],["B","ADD",46,36,"1/2"],["B","ADD",47,36,"3/2"],["B","ADD",48,36,"-1/2"],["B","ADD",49,36,"1/2"],["B","SCALE",36,"-1"],["B","ADD",36,37,"1/2"],["B","ADD",36,39,"-1"],["B","ADD",36,40,"-4"],["B","ADD",36,41,"-2"],["B","ADD",36,43,"-1"],["B","ADD",36,44,"-4"],["B","ADD",36,45,"-2"],["B","ADD",36,47,"-1"],["B","ADD",36,48,"-4"],["B","ADD",38,37,"-1/2"],["B","ADD",39,37,"-2"],["B","ADD",40,37,"1/4"],["B","ADD",41,37,"1/2"],["B","ADD",42,37,"-1/2"],["B","ADD",43,37,"-2"],["B","ADD",44,37,"1/4"],["B","ADD",45,37,"1/2"],["B","ADD",46,37,"-1/2"],["B","ADD",47,37,"-2"],["B","ADD",48,37,"1/2"],["B","SCALE",37,"1/2"],["B","ADD",37,38,"1"],["B","ADD",37,39,"-2"],["B","ADD",37,40,"-6"],["B","ADD",37,41,"-4"],["B","ADD",37,42,"1"],["B","ADD",37,43,"-2"],["B","ADD",37,44,"-6"],["B","ADD",37,45,"-4"],["B","ADD",37,46,"1"],["B","ADD",37,47,"-2"],["B","ADD",37,48,"-8"],["B","ADD",37,49,"-4"],["B","SCALE",37,"1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",6,"-1"],["A","ADD",6,0,"1"],["A","ADD",1,0,"-2"],["A","ADD",2,0,"-2"],["A","ADD",3,0,"-2"],["A","ADD",4,0,"-2"],["A","ADD",5,0,"-2"],["A","ADD",19,18,"-2"],["A","ADD",20,18,"-2"],["A","ADD",21,18,"-2"],["A","ADD",22,18,"-2"],["A","ADD",23,18,"-2"],["A","ADD",24,18,"-1"],["A","SCALE",24,"-1"],["A","LAMBDA",6,1],["A","LAMBDA",24,-1],["A","SCALE",24,"-1"],["J",6,[6,0,18,24],[36,37,"-1","1/2"]],["A","LAMBDA",6,-1],["A","LAMBDA",24,1],["A","SCALE",24,"-1"],["A","ADD",0,6,"-1"],["A","ADD",18,24,"-1"],["A","SCALE",24,"-1"],["A","ADD",24,18,"1"],["A","ADD",23,18,"2"],["A","ADD",22,18,"2"],["A","ADD",21,18,"2"],["A","ADD",20,18,"2"],["A","ADD",19,18,"2"],["A","ADD",5,0,"2"],["A","ADD",4,0,"2"],["A","ADD",3,0,"2"],["A","ADD",2,0,"2"],["A","ADD",1,0,"2"],["A","ADD",6,0,"-1"],["A","SCALE",6,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"2"],["B","ADD",37,49,"4"],["B","ADD",37,48,"8"],["B","ADD",37,47,"2"],["B","ADD",37,46,"-1"],["B","ADD",37,45,"4"],["B","ADD",37,44,"6"],["B","ADD",37,43,"2"],["B","ADD",37,42,"-1"],["B","ADD",37,41,"4"],["B","ADD",37,40,"6"],["B","ADD",37,39,"2"],["B","ADD",37,38,"-1"],["B","SCALE",37,"2"],["B","ADD",48,37,"-1/2"],["B","ADD",47,37,"2"],["B","ADD",46,37,"1/2"],["B","ADD",45,37,"-1/2"],["B","ADD",44,37,"-1/4"],["B","ADD",43,37,"2"],["B","ADD",42,37,"1/2"],["B","ADD",41,37,"-1/2"],["B","ADD",40,37,"-1/4"],["B","ADD",39,37,"2"],["B","ADD",38,37,"1/2"],["B","ADD",36,48,"4"],["B","ADD",36,47,"1"],["B","ADD",36,45,"2"],["B","ADD",36,44,"4"],["B","ADD",36,43,"1"],["B","ADD",36,41,"2"],["B","ADD",36,40,"4"],["B","ADD",36,39,"1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-1"],["B","ADD",49,36,"-1/2"],["B","ADD",48,36,"1/2"],["B","ADD",47,36,"-3/2"],["B","ADD",46,36,"-1/2"],["B","ADD",45,36,"1/4"],["B","ADD",44,36,"1/4"],["B","ADD",43,36,"-3/2"],["B","ADD",42,36,"-1/2"],["B","ADD",41,36,"1/4"],["B","ADD",40,36,"1/4"],["B","ADD",39,36,"-3/2"],["B","ADD",38,36,"-1/2"],["B","ADD",37,36,"-3"],["B","ADD",37,36,"7"],["B","ADD",38,36,"5/2"],["B","ADD",39,36,"19/2"],["B","ADD",40,36,"-5/4"],["B","ADD",41,36,"-9/4"],["B","ADD",42,36,"5/2"],["B","ADD",43,36,"19/2"],["B","ADD",44,36,"-5/4"],["B","ADD",45,36,"-9/4"],["B","ADD",46,36,"5/2"],["B","ADD",47,36,"19/2"],["B","ADD",48,36,"-5/4"],["B","ADD",49,36,"-9/4"],["B","ADD",50,36,"-1/2"],["B","ADD",51,36,"3/2"],["B","SCALE",36,"-2"],["B","ADD",36,37,"7"],["B","ADD",36,38,"26"],["B","ADD",36,39,"-66"],["B","ADD",36,40,"-212"],["B","ADD",36,41,"-132"],["B","ADD",36,42,"26"],["B","ADD",36,43,"-66"],["B","ADD",36,44,"-212"],["B","ADD",36,45,"-132"],["B","ADD",36,46,"26"],["B","ADD",36,47,"-66"],["B","ADD",36,48,"-212"],["B","ADD",36,49,"-132"],["B","ADD",36,50,"14"],["B","ADD",36,51,"-26"],["B","IDLE_ONE",36,[7]],["B","ADD",36,51,"26"],["B","ADD",36,50,"-14"],["B","ADD",36,49,"132"],["B","ADD",36,48,"212"],["B","ADD",36,47,"66"],["B","ADD",36,46,"-26"],["B","ADD",36,45,"132"],["B","ADD",36,44,"212"],["B","ADD",36,43,"66"],["B","ADD",36,42,"-26"],["B","ADD",36,41,"132"],["B","ADD",36,40,"212"],["B","ADD",36,39,"66"],["B","ADD",36,38,"-26"],["B","ADD",36,37,"-7"],["B","SCALE",36,"-1/2"],["B","ADD",51,36,"-3/2"],["B","ADD",50,36,"1/2"],["B","ADD",49,36,"9/4"],["B","ADD",48,36,"5/4"],["B","ADD",47,36,"-19/2"],["B","ADD",46,36,"-5/2"],["B","ADD",45,36,"9/4"],["B","ADD",44,36,"5/4"],["B","ADD",43,36,"-19/2"],["B","ADD",42,36,"-5/2"],["B","ADD",41,36,"9/4"],["B","ADD",40,36,"5/4"],["B","ADD",39,36,"-19/2"],["B","ADD",38,36,"-5/2"],["B","ADD",37,36,"-7"],["B","ADD",37,36,"22/3"],["B","ADD",38,36,"8/3"],["B","ADD",39,36,"61/6"],["B","ADD",40,36,"-4/3"],["B","ADD",41,36,"-29/12"],["B","ADD",42,36,"8/3"],["B","ADD",43,36,"61/6"],["B","ADD",44,36,"-4/3"],["B","ADD",45,36,"-29/12"],["B","ADD",46,36,"8/3"],["B","ADD",47,36,"61/6"],["B","ADD",48,36,"-4/3"],["B","ADD",49,36,"-29/12"],["B","ADD",50,36,"-1/2"],["B","ADD",51,36,"5/3"],["B","SCALE",36,"2/3"],["B","ADD",36,37,"2"],["B","ADD",36,38,"8"],["B","ADD",36,39,"-20"],["B","ADD",36,40,"-64"],["B","ADD",36,41,"-40"],["B","ADD",36,42,"8"],["B","ADD",36,43,"-20"],["B","ADD",36,44,"-64"],["B","ADD",36,45,"-40"],["B","ADD",36,46,"8"],["B","ADD",36,47,"-20"],["B","ADD",36,48,"-64"],["B","ADD",36,49,"-40"],["B","ADD",36,50,"4"],["B","ADD",36,51,"-8"],["B","IDLE_ONE",36,[7]],["B","ADD",36,51,"8"],["B","ADD",36,50,"-4"],["B","ADD",36,49,"40"],["B","ADD",36,48,"64"],["B","ADD",36,47,"20"],["B","ADD",36,46,"-8"],["B","ADD",36,45,"40"],["B","ADD",36,44,"64"],["B","ADD",36,43,"20"],["B","ADD",36,42,"-8"],["B","ADD",36,41,"40"],["B","ADD",36,40,"64"],["B","ADD",36,39,"20"],["B","ADD",36,38,"-8"],["B","ADD",36,37,"-2"],["B","SCALE",36,"3/2"],["B","ADD",51,36,"-5/3"],["B","ADD",50,36,"1/2"],["B","ADD",49,36,"29/12"],["B","ADD",48,36,"4/3"],["B","ADD",47,36,"-61/6"],["B","ADD",46,36,"-8/3"],["B","ADD",45,36,"29/12"],["B","ADD",44,36,"4/3"],["B","ADD",43,36,"-61/6"],["B","ADD",42,36,"-8/3"],["B","ADD",41,36,"29/12"],["B","ADD",40,36,"4/3"],["B","ADD",39,36,"-61/6"],["B","ADD",38,36,"-8/3"],["B","ADD",37,36,"-22/3"],["B","ADD",37,36,"1"],["B","ADD",38,36,"-1/2"],["B","ADD",39,36,"-5/2"],["B","ADD",40,36,"1/4"],["B","ADD",41,36,"3/4"],["B","ADD",42,36,"-1/2"],["B","ADD",43,36,"-5/2"],["B","ADD",44,36,"1/4"],["B","ADD",45,36,"3/4"],["B","ADD",46,36,"-1/2"],["B","ADD",47,36,"-5/2"],["B","ADD",48,36,"1/4"],["B","ADD",49,36,"3/4"],["B","ADD",50,36,"1/2"],["B","ADD",51,36,"1/2"],["B","ADD",36,38,"-1"],["B","ADD",36,39,"2"],["B","ADD",36,40,"6"],["B","ADD",36,41,"4"],["B","ADD",36,42,"-1"],["B","ADD",36,43,"2"],["B","ADD",36,44,"6"],["B","ADD",36,45,"4"],["B","ADD",36,46,"-1"],["B","ADD",36,47,"2"],["B","ADD",36,48,"6"],["B","ADD",36,49,"4"],["B","ADD",36,50,"-1"],["B","ADD",38,37,"-1/2"],["B","ADD",39,37,"-2"],["B","ADD",40,37,"1/4"],["B","ADD",41,37,"1/2"],["B","ADD",42,37,"-1/2"],["B","ADD",43,37,"-2"],["B","ADD",44,37,"1/4"],["B","ADD",45,37,"1/2"],["B","ADD",46,37,"-1/2"],["B","ADD",47,37,"-2"],["B","ADD",48,37,"1/4"],["B","ADD",49,37,"1/2"],["B","ADD",50,37,"1/2"],["B","SCALE",37,"-1/2"],["B","ADD",37,39,"-1"],["B","ADD",37,40,"-4"],["B","ADD",37,41,"-2"],["B","ADD",37,43,"-1"],["B","ADD",37,44,"-4"],["B","ADD",37,45,"-2"],["B","ADD",37,47,"-1"],["B","ADD",37,48,"-4"],["B","ADD",37,49,"-2"],["B","ADD",37,50,"2"],["B","ADD",37,51,"-1"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",7,"-1"],["A","ADD",7,0,"1"],["A","ADD",1,0,"-2"],["A","ADD",2,0,"-2"],["A","ADD",3,0,"-2"],["A","ADD",4,0,"-2"],["A","ADD",5,0,"-2"],["A","ADD",6,0,"-2"],["A","ADD",19,18,"-2"],["A","ADD",20,18,"-2"],["A","ADD",21,18,"-2"],["A","ADD",22,18,"-2"],["A","ADD",23,18,"-2"],["A","ADD",24,18,"-2"],["A","ADD",25,18,"-1"],["A","SCALE",25,"-1"],["A","LAMBDA",7,1],["A","LAMBDA",25,-1],["A","SCALE",25,"-1"],["J",7,[7,0,18,25],[36,37,"-1","1/2"]],["A","LAMBDA",7,-1],["A","LAMBDA",25,1],["A","SCALE",25,"-1"],["A","ADD",0,7,"-1"],["A","ADD",18,25,"-1"],["A","SCALE",25,"-1"],["A","ADD",25,18,"1"],["A","ADD",24,18,"2"],["A","ADD",23,18,"2"],["A","ADD",22,18,"2"],["A","ADD",21,18,"2"],["A","ADD",20,18,"2"],["A","ADD",19,18,"2"],["A","ADD",6,0,"2"],["A","ADD",5,0,"2"],["A","ADD",4,0,"2"],["A","ADD",3,0,"2"],["A","ADD",2,0,"2"],["A","ADD",1,0,"2"],["A","ADD",7,0,"-1"],["A","SCALE",7,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"-2"],["B","ADD",37,51,"1"],["B","ADD",37,50,"-2"],["B","ADD",37,49,"2"],["B","ADD",37,48,"4"],["B","ADD",37,47,"1"],["B","ADD",37,45,"2"],["B","ADD",37,44,"4"],["B","ADD",37,43,"1"],["B","ADD",37,41,"2"],["B","ADD",37,40,"4"],["B","ADD",37,39,"1"],["B","SCALE",37,"-2"],["B","ADD",50,37,"-1/2"],["B","ADD",49,37,"-1/2"],["B","ADD",48,37,"-1/4"],["B","ADD",47,37,"2"],["B","ADD",46,37,"1/2"],["B","ADD",45,37,"-1/2"],["B","ADD",44,37,"-1/4"],["B","ADD",43,37,"2"],["B","ADD",42,37,"1/2"],["B","ADD",41,37,"-1/2"],["B","ADD",40,37,"-1/4"],["B","ADD",39,37,"2"],["B","ADD",38,37,"1/2"],["B","ADD",36,50,"1"],["B","ADD",36,49,"-4"],["B","ADD",36,48,"-6"],["B","ADD",36,47,"-2"],["B","ADD",36,46,"1"],["B","ADD",36,45,"-4"],["B","ADD",36,44,"-6"],["B","ADD",36,43,"-2"],["B","ADD",36,42,"1"],["B","ADD",36,41,"-4"],["B","ADD",36,40,"-6"],["B","ADD",36,39,"-2"],["B","ADD",36,38,"1"],["B","ADD",51,36,"-1/2"],["B","ADD",50,36,"-1/2"],["B","ADD",49,36,"-3/4"],["B","ADD",48,36,"-1/4"],["B","ADD",47,36,"5/2"],["B","ADD",46,36,"1/2"],["B","ADD",45,36,"-3/4"],["B","ADD",44,36,"-1/4"],["B","ADD",43,36,"5/2"],["B","ADD",42,36,"1/2"],["B","ADD",41,36,"-3/4"],["B","ADD",40,36,"-1/4"],["B","ADD",39,36,"5/2"],["B","ADD",38,36,"1/2"],["B","ADD",37,36,"-1"],["B","ADD",37,36,"41/15"],["B","ADD",38,36,"11/30"],["B","ADD",39,36,"29/30"],["B","ADD",40,36,"-11/60"],["B","ADD",41,36,"-7/60"],["B","ADD",42,36,"11/30"],["B","ADD",43,36,"29/30"],["B","ADD",44,36,"-11/60"],["B","ADD",45,36,"-7/60"],["B","ADD",46,36,"11/30"],["B","ADD",47,36,"29/30"],["B","ADD",48,36,"-11/60"],["B","ADD",49,36,"-7/60"],["B","ADD",50,36,"7/30"],["B","ADD",51,36,"11/30"],["B","SCALE",36,"-2/15"],["B","ADD",36,37,"55"],["B","ADD",36,38,"218"],["B","ADD",36,39,"-546"],["B","ADD",36,40,"-1748"],["B","ADD",36,41,"-1092"],["B","ADD",36,42,"218"],["B","ADD",36,43,"-546"],["B","ADD",36,44,"-1748"],["B","ADD",36,45,"-1092"],["B","ADD",36,46,"218"],["B","ADD",36,47,"-546"],["B","ADD",36,48,"-1748"],["B","ADD",36,49,"-1092"],["B","ADD",36,50,"-982"],["B","ADD",36,51,"218"],["B","IDLE_ONE",36,[8]],["B","ADD",36,51,"-218"],["B","ADD",36,50,"982"],["B","ADD",36,49,"1092"],["B","ADD",36,48,"1748"],["B","ADD",36,47,"546"],["B","ADD",36,46,"-218"],["B","ADD",36,45,"1092"],["B","ADD",36,44,"1748"],["B","ADD",36,43,"546"],["B","ADD",36,42,"-218"],["B","ADD",36,41,"1092"],["B","ADD",36,40,"1748"],["B","ADD",36,39,"546"],["B","ADD",36,38,"-218"],["B","ADD",36,37,"-55"],["B","SCALE",36,"-15/2"],["B","ADD",51,36,"-11/30"],["B","ADD",50,36,"-7/30"],["B","ADD",49,36,"7/60"],["B","ADD",48,36,"11/60"],["B","ADD",47,36,"-29/30"],["B","ADD",46,36,"-11/30"],["B","ADD",45,36,"7/60"],["B","ADD",44,36,"11/60"],["B","ADD",43,36,"-29/30"],["B","ADD",42,36,"-11/30"],["B","ADD",41,36,"7/60"],["B","ADD",40,36,"11/60"],["B","ADD",39,36,"-29/30"],["B","ADD",38,36,"-11/30"],["B","ADD",37,36,"-41/15"],["B","ADD",36,38,"409/150"],["B","ADD",37,38,"-559/75"],["B","ADD",39,38,"-791/300"],["B","ADD",40,38,"1/2"],["B","ADD",41,38,"191/600"],["B","ADD",42,38,"-1"],["B","ADD",43,38,"-791/300"],["B","ADD",44,38,"1/2"],["B","ADD",45,38,"191/600"],["B","ADD",46,38,"-1"],["B","ADD",47,38,"-791/300"],["B","ADD",48,38,"1/2"],["B","ADD",49,38,"191/600"],["B","ADD",50,38,"-191/300"],["B","ADD",51,38,"-1"],["B","SCALE",38,"1/75"],["B","ADD",38,37,"-2"],["B","ADD",38,39,"20"],["B","ADD",38,40,"64"],["B","ADD",38,41,"40"],["B","ADD",38,42,"-8"],["B","ADD",38,43,"20"],["B","ADD",38,44,"64"],["B","ADD",38,45,"40"],["B","ADD",38,46,"-8"],["B","ADD",38,47,"20"],["B","ADD",38,48,"64"],["B","ADD",38,49,"40"],["B","ADD",38,50,"36"],["B","ADD",38,51,"-8"],["B","IDLE_ONE",38,[8]],["B","ADD",38,51,"8"],["B","ADD",38,50,"-36"],["B","ADD",38,49,"-40"],["B","ADD",38,48,"-64"],["B","ADD",38,47,"-20"],["B","ADD",38,46,"8"],["B","ADD",38,45,"-40"],["B","ADD",38,44,"-64"],["B","ADD",38,43,"-20"],["B","ADD",38,42,"8"],["B","ADD",38,41,"-40"],["B","ADD",38,40,"-64"],["B","ADD",38,39,"-20"],["B","ADD",38,37,"2"],["B","SCALE",38,"75"],["B","ADD",51,38,"1"],["B","ADD",50,38,"191/300"],["B","ADD",49,38,"-191/600"],["B","ADD",48,38,"-1/2"],["B","ADD",47,38,"791/300"],["B","ADD",46,38,"1"],["B","ADD",45,38,"-191/600"],["B","ADD",44,38,"-1/2"],["B","ADD",43,38,"791/300"],["B","ADD",42,38,"1"],["B","ADD",41,38,"-191/600"],["B","ADD",40,38,"-1/2"],["B","ADD",39,38,"791/300"],["B","ADD",37,38,"559/75"],["B","ADD",36,38,"-409/150"],["B","IDLE_ODD",68,[8],-1],["B","IDLE_ODD",69,[8],-1],["B","ADD",37,36,"11/5"],["B","ADD",38,36,"1/10"],["B","ADD",39,36,"-1/10"],["B","ADD",40,36,"-1/20"],["B","ADD",41,36,"3/20"],["B","ADD",42,36,"1/10"],["B","ADD",43,36,"-1/10"],["B","ADD",44,36,"-1/20"],["B","ADD",45,36,"3/20"],["B","ADD",46,36,"1/10"],["B","ADD",47,36,"-1/10"],["B","ADD",48,36,"-1/20"],["B","ADD",49,36,"3/20"],["B","ADD",50,36,"1/10"],["B","ADD",51,36,"-1/10"],["B","SCALE",36,"1/5"],["B","ADD",36,37,"-1/2"],["B","ADD",36,39,"1"],["B","ADD",36,40,"4"],["B","ADD",36,41,"2"],["B","ADD",36,43,"1"],["B","ADD",36,44,"4"],["B","ADD",36,45,"2"],["B","ADD",36,47,"1"],["B","ADD",36,48,"4"],["B","ADD",36,49,"2"],["B","ADD",36,51,"1"],["B","ADD",38,37,"-1/2"],["B","ADD",39,37,"-2"],["B","ADD",40,37,"1/4"],["B","ADD",41,37,"1/2"],["B","ADD",42,37,"-1/2"],["B","ADD",43,37,"-2"],["B","ADD",44,37,"1/4"],["B","ADD",45,37,"1/2"],["B","ADD",46,37,"-1/2"],["B","ADD",47,37,"-2"],["B","ADD",48,37,"1/4"],["B","ADD",49,37,"1/2"],["B","ADD",50,37,"-1/2"],["B","ADD",51,37,"-2"],["B","SCALE",37,"-5/2"],["B","ADD",37,38,"-1"],["B","ADD",37,39,"-2"],["B","ADD",37,40,"-10"],["B","ADD",37,41,"-4"],["B","ADD",37,42,"-1"],["B","ADD",37,43,"-2"],["B","ADD",37,44,"-10"],["B","ADD",37,45,"-4"],["B","ADD",37,46,"-1"],["B","ADD",37,47,"-2"],["B","ADD",37,48,"-10"],["B","ADD",37,49,"-4"],["B","ADD",37,50,"-1"],["B","ADD",37,51,"-2"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","SCALE",8,"-1"],["A","ADD",8,0,"1"],["A","ADD",1,0,"-2"],["A","ADD",2,0,"-2"],["A","ADD",3,0,"-2"],["A","ADD",4,0,"-2"],["A","ADD",5,0,"-2"],["A","ADD",6,0,"-2"],["A","ADD",7,0,"-2"],["A","ADD",19,18,"-2"],["A","ADD",20,18,"-2"],["A","ADD",21,18,"-2"],["A","ADD",22,18,"-2"],["A","ADD",23,18,"-2"],["A","ADD",24,18,"-2"],["A","ADD",25,18,"-2"],["A","ADD",26,18,"-1"],["A","SCALE",26,"-1"],["A","LAMBDA",8,1],["A","LAMBDA",26,-1],["A","SCALE",26,"-1"],["J",8,[8,0,18,26],[36,37,"-1","1/2"]],["A","LAMBDA",8,-1],["A","LAMBDA",26,1],["A","SCALE",26,"-1"],["A","ADD",0,8,"-1"],["A","ADD",18,26,"-1"],["A","SCALE",26,"-1"],["A","ADD",26,18,"1"],["A","ADD",25,18,"2"],["A","ADD",24,18,"2"],["A","ADD",23,18,"2"],["A","ADD",22,18,"2"],["A","ADD",21,18,"2"],["A","ADD",20,18,"2"],["A","ADD",19,18,"2"],["A","ADD",7,0,"2"],["A","ADD",6,0,"2"],["A","ADD",5,0,"2"],["A","ADD",4,0,"2"],["A","ADD",3,0,"2"],["A","ADD",2,0,"2"],["A","ADD",1,0,"2"],["A","ADD",8,0,"-1"],["A","SCALE",8,"-1"],["A","ADD",1,0,"-2"],["A","IDLE_ONE",1,[2,3,4,5,6,7,8]],["A","ADD",1,0,"2"],["A","ADD",2,0,"-2"],["A","IDLE_ONE",2,[3,4,5,6,7,8]],["A","ADD",2,0,"2"],["A","ADD",3,0,"-2"],["A","IDLE_ONE",3,[4,5,6,7,8]],["A","ADD",3,0,"2"],["A","ADD",4,0,"-2"],["A","IDLE_ONE",4,[5,6,7,8]],["A","ADD",4,0,"2"],["A","ADD",5,0,"-2"],["A","IDLE_ONE",5,[6,7,8]],["A","ADD",5,0,"2"],["A","ADD",6,0,"-2"],["A","IDLE_ONE",6,[7,8]],["A","ADD",6,0,"2"],["A","ADD",7,0,"-2"],["A","IDLE_ONE",7,[8]],["A","ADD",7,0,"2"],["A","ADD",19,18,"-2"],["A","IDLE_ONE",19,[2,3,4,5,6,7,8]],["A","ADD",19,18,"2"],["A","ADD",20,18,"-2"],["A","IDLE_ONE",20,[3,4,5,6,7,8]],["A","ADD",20,18,"2"],["A","ADD",21,18,"-2"],["A","IDLE_ONE",21,[4,5,6,7,8]],["A","ADD",21,18,"2"],["A","ADD",22,18,"-2"],["A","IDLE_ONE",22,[5,6,7,8]],["A","ADD",22,18,"2"],["A","ADD",23,18,"-2"],["A","IDLE_ONE",23,[6,7,8]],["A","ADD",23,18,"2"],["A","ADD",24,18,"-2"],["A","IDLE_ONE",24,[7,8]],["A","ADD",24,18,"2"],["A","ADD",25,18,"-2"],["A","IDLE_ONE",25,[8]],["A","ADD",25,18,"2"],["A","SWAP",0,18],["A","ADD",19,0,"-2"],["A","ADD",20,0,"-2"],["A","ADD",21,0,"-2"],["A","ADD",22,0,"-2"],["A","ADD",23,0,"-2"],["A","ADD",24,0,"-2"],["A","ADD",25,0,"-2"],["A","ADD",26,0,"-2"],["A","SWAP",1,19],["A","ADD",1,20,"-1"],["A","ADD",1,21,"1"],["A","ADD",1,22,"-1"],["A","ADD",1,23,"1"],["A","ADD",1,24,"-1"],["A","ADD",1,25,"1"],["A","ADD",1,26,"-1"],["A","ADD",1,27,"-1"],["A","ADD",1,28,"1"],["A","ADD",1,29,"-1"],["A","ADD",1,30,"1"],["A","ADD",1,31,"-1"],["A","ADD",1,32,"1"],["A","ADD",1,33,"-1"],["A","ADD",1,34,"1"],["A","ADD",1,35,"-1"],["A","LAMBDA",1,1],["A","QUERY",0,1,-1],["A","LAMBDA",1,-1],["A","ADD",0,1,"-1"],["A","ADD",1,35,"1"],["A","ADD",1,34,"-1"],["A","ADD",1,33,"1"],["A","ADD",1,32,"-1"],["A","ADD",1,31,"1"],["A","ADD",1,30,"-1"],["A","ADD",1,29,"1"],["A","ADD",1,28,"-1"],["A","ADD",1,27,"1"],["A","ADD",1,26,"1"],["A","ADD",1,25,"-1"],["A","ADD",1,24,"1"],["A","ADD",1,23,"-1"],["A","ADD",1,22,"1"],["A","ADD",1,21,"-1"],["A","ADD",1,20,"1"],["A","SWAP",1,19],["A","ADD",26,0,"2"],["A","ADD",25,0,"2"],["A","ADD",24,0,"2"],["A","ADD",23,0,"2"],["A","ADD",22,0,"2"],["A","ADD",21,0,"2"],["A","ADD",20,0,"2"],["A","ADD",19,0,"2"],["A","SWAP",0,18],["A","SWAP",0,19],["A","ADD",20,0,"-1"],["A","ADD",21,0,"-1"],["A","ADD",22,0,"-1"],["A","ADD",23,0,"-1"],["A","ADD",24,0,"-1"],["A","ADD",25,0,"-1"],["A","ADD",26,0,"-1"],["A","ADD",27,0,"-1"],["A","ADD",28,0,"-1"],["A","ADD",29,0,"-1"],["A","ADD",30,0,"-1"],["A","ADD",31,0,"-1"],["A","ADD",32,0,"-1"],["A","ADD",33,0,"-1"],["A","ADD",34,0,"-1"],["A","ADD",35,0,"-1"],["A","ADD",1,2,"-1"],["A","ADD",1,3,"1"],["A","ADD",1,4,"-1"],["A","ADD",1,5,"1"],["A","ADD",1,6,"-1"],["A","ADD",1,7,"1"],["A","ADD",1,8,"-1"],["A","ADD",1,9,"-1"],["A","ADD",1,10,"1"],["A","ADD",1,11,"-1"],["A","ADD",1,12,"1"],["A","ADD",1,13,"-1"],["A","ADD",1,14,"1"],["A","ADD",1,15,"-1"],["A","ADD",1,16,"1"],["A","ADD",1,17,"-1"],["A","ADD",1,18,"1"],["A","LAMBDA",1,1],["A","QUERY",0,1,-1],["A","LAMBDA",1,-1],["A","ADD",0,1,"-1"],["A","ADD",1,18,"-1"],["A","ADD",1,17,"1"],["A","ADD",1,16,"-1"],["A","ADD",1,15,"1"],["A","ADD",1,14,"-1"],["A","ADD",1,13,"1"],["A","ADD",1,12,"-1"],["A","ADD",1,11,"1"],["A","ADD",1,10,"-1"],["A","ADD",1,9,"1"],["A","ADD",1,8,"1"],["A","ADD",1,7,"-1"],["A","ADD",1,6,"1"],["A","ADD",1,5,"-1"],["A","ADD",1,4,"1"],["A","ADD",1,3,"-1"],["A","ADD",1,2,"1"],["A","ADD",35,0,"1"],["A","ADD",34,0,"1"],["A","ADD",33,0,"1"],["A","ADD",32,0,"1"],["A","ADD",31,0,"1"],["A","ADD",30,0,"1"],["A","ADD",29,0,"1"],["A","ADD",28,0,"1"],["A","ADD",27,0,"1"],["A","ADD",26,0,"1"],["A","ADD",25,0,"1"],["A","ADD",24,0,"1"],["A","ADD",23,0,"1"],["A","ADD",22,0,"1"],["A","ADD",21,0,"1"],["A","ADD",20,0,"1"],["A","SWAP",0,19],["A","ADD",1,0,"-2"],["A","ADD",2,0,"-2"],["A","ADD",3,0,"-2"],["A","ADD",4,0,"-2"],["A","ADD",5,0,"-2"],["A","ADD",6,0,"-2"],["A","ADD",7,0,"-2"],["A","ADD",8,0,"-2"],["A","ADD",19,0,"1"],["A","ADD",20,0,"1"],["A","ADD",21,0,"1"],["A","ADD",22,0,"1"],["A","ADD",23,0,"1"],["A","ADD",24,0,"1"],["A","ADD",25,0,"1"],["A","ADD",26,0,"1"],["A","ADD",27,0,"1"],["A","ADD",28,0,"1"],["A","ADD",29,0,"1"],["A","ADD",30,0,"1"],["A","ADD",31,0,"1"],["A","ADD",32,0,"1"],["A","ADD",33,0,"1"],["A","ADD",34,0,"1"],["A","ADD",35,0,"1"],["A","ADD",1,2,"-1"],["A","ADD",1,3,"1"],["A","ADD",1,4,"-1"],["A","ADD",1,5,"1"],["A","ADD",1,6,"-1"],["A","ADD",1,7,"1"],["A","ADD",1,8,"-1"],["A","ADD",1,9,"-1"],["A","ADD",1,10,"1"],["A","ADD",1,11,"-1"],["A","ADD",1,12,"1"],["A","ADD",1,13,"-1"],["A","ADD",1,14,"1"],["A","ADD",1,15,"-1"],["A","ADD",1,16,"1"],["A","ADD",1,17,"-1"],["A","LAMBDA",1,1],["A","QUERY",0,1,-1],["A","LAMBDA",1,-1],["A","ADD",0,1,"-1"],["A","ADD",1,17,"1"],["A","ADD",1,16,"-1"],["A","ADD",1,15,"1"],["A","ADD",1,14,"-1"],["A","ADD",1,13,"1"],["A","ADD",1,12,"-1"],["A","ADD",1,11,"1"],["A","ADD",1,10,"-1"],["A","ADD",1,9,"1"],["A","ADD",1,8,"1"],["A","ADD",1,7,"-1"],["A","ADD",1,6,"1"],["A","ADD",1,5,"-1"],["A","ADD",1,4,"1"],["A","ADD",1,3,"-1"],["A","ADD",1,2,"1"],["A","ADD",35,0,"-1"],["A","ADD",34,0,"-1"],["A","ADD",33,0,"-1"],["A","ADD",32,0,"-1"],["A","ADD",31,0,"-1"],["A","ADD",30,0,"-1"],["A","ADD",29,0,"-1"],["A","ADD",28,0,"-1"],["A","ADD",27,0,"-1"],["A","ADD",26,0,"-1"],["A","ADD",25,0,"-1"],["A","ADD",24,0,"-1"],["A","ADD",23,0,"-1"],["A","ADD",22,0,"-1"],["A","ADD",21,0,"-1"],["A","ADD",20,0,"-1"],["A","ADD",19,0,"-1"],["A","ADD",8,0,"2"],["A","ADD",7,0,"2"],["A","ADD",6,0,"2"],["A","ADD",5,0,"2"],["A","ADD",4,0,"2"],["A","ADD",3,0,"2"],["A","ADD",2,0,"2"],["A","ADD",1,0,"2"],["A","SWAP",0,1],["A","ADD",2,0,"-1"],["A","ADD",3,0,"-1"],["A","ADD",4,0,"-1"],["A","ADD",5,0,"-1"],["A","ADD",6,0,"-1"],["A","ADD",7,0,"-1"],["A","ADD",8,0,"-1"],["A","ADD",9,0,"-1"],["A","ADD",10,0,"-1"],["A","ADD",11,0,"-1"],["A","ADD",12,0,"-1"],["A","ADD",13,0,"-1"],["A","ADD",14,0,"-1"],["A","ADD",15,0,"-1"],["A","ADD",16,0,"-1"],["A","ADD",17,0,"-1"],["A","LAMBDA",1,1],["A","QUERY",0,1,-1],["A","LAMBDA",1,-1],["A","ADD",0,1,"-1"],["A","ADD",17,0,"1"],["A","ADD",16,0,"1"],["A","ADD",15,0,"1"],["A","ADD",14,0,"1"],["A","ADD",13,0,"1"],["A","ADD",12,0,"1"],["A","ADD",11,0,"1"],["A","ADD",10,0,"1"],["A","ADD",9,0,"1"],["A","ADD",8,0,"1"],["A","ADD",7,0,"1"],["A","ADD",6,0,"1"],["A","ADD",5,0,"1"],["A","ADD",4,0,"1"],["A","ADD",3,0,"1"],["A","ADD",2,0,"1"],["A","SWAP",0,1],["A","ADD",10,0,"2"],["A","IDLE_ONE",10,[9]],["A","ADD",10,0,"-2"],["A","ADD",11,0,"2"],["A","IDLE_ONE",11,[9,10]],["A","ADD",11,0,"-2"],["A","ADD",12,0,"2"],["A","IDLE_ONE",12,[9,10,11]],["A","ADD",12,0,"-2"],["A","ADD",13,0,"2"],["A","IDLE_ONE",13,[9,10,11,12]],["A","ADD",13,0,"-2"],["A","ADD",14,0,"2"],["A","IDLE_ONE",14,[9,10,11,12,13]],["A","ADD",14,0,"-2"],["A","ADD",15,0,"2"],["A","IDLE_ONE",15,[9,10,11,12,13,14]],["A","ADD",15,0,"-2"],["A","ADD",16,0,"2"],["A","IDLE_ONE",16,[9,10,11,12,13,14,15]],["A","ADD",16,0,"-2"],["A","ADD",17,0,"2"],["A","IDLE_ONE",17,[9,10,11,12,13,14,15,16]],["A","ADD",17,0,"-2"],["A","ADD",28,18,"2"],["A","IDLE_ONE",28,[9]],["A","ADD",28,18,"-2"],["A","ADD",29,18,"2"],["A","IDLE_ONE",29,[9,10]],["A","ADD",29,18,"-2"],["A","ADD",30,18,"2"],["A","IDLE_ONE",30,[9,10,11]],["A","ADD",30,18,"-2"],["A","ADD",31,18,"2"],["A","IDLE_ONE",31,[9,10,11,12]],["A","ADD",31,18,"-2"],["A","ADD",32,18,"2"],["A","IDLE_ONE",32,[9,10,11,12,13]],["A","ADD",32,18,"-2"],["A","ADD",33,18,"2"],["A","IDLE_ONE",33,[9,10,11,12,13,14]],["A","ADD",33,18,"-2"],["A","ADD",34,18,"2"],["A","IDLE_ONE",34,[9,10,11,12,13,14,15]],["A","ADD",34,18,"-2"],["A","ADD",35,18,"2"],["A","IDLE_ONE",35,[9,10,11,12,13,14,15,16]],["A","ADD",35,18,"-2"],["B","LAMBDA",36,-1],["B","ADD",37,36,"1"],["B","SCALE",37,"-2"],["B","ADD",37,51,"2"],["B","ADD",37,50,"1"],["B","ADD",37,49,"4"],["B","ADD",37,48,"10"],["B","ADD",37,47,"2"],["B","ADD",37,46,"1"],["B","ADD",37,45,"4"],["B","ADD",37,44,"10"],["B","ADD",37,43,"2"],["B","ADD",37,42,"1"],["B","ADD",37,41,"4"],["B","ADD",37,40,"10"],["B","ADD",37,39,"2"],["B","ADD",37,38,"1"],["B","SCALE",37,"-2/5"],["B","ADD",51,37,"2"],["B","ADD",50,37,"1/2"],["B","ADD",49,37,"-1/2"],["B","ADD",48,37,"-1/4"],["B","ADD",47,37,"2"],["B","ADD",46,37,"1/2"],["B","ADD",45,37,"-1/2"],["B","ADD",44,37,"-1/4"],["B","ADD",43,37,"2"],["B","ADD",42,37,"1/2"],["B","ADD",41,37,"-1/2"],["B","ADD",40,37,"-1/4"],["B","ADD",39,37,"2"],["B","ADD",38,37,"1/2"],["B","ADD",36,51,"-1"],["B","ADD",36,49,"-2"],["B","ADD",36,48,"-4"],["B","ADD",36,47,"-1"],["B","ADD",36,45,"-2"],["B","ADD",36,44,"-4"],["B","ADD",36,43,"-1"],["B","ADD",36,41,"-2"],["B","ADD",36,40,"-4"],["B","ADD",36,39,"-1"],["B","ADD",36,37,"1/2"],["B","SCALE",36,"5"],["B","ADD",51,36,"1/10"],["B","ADD",50,36,"-1/10"],["B","ADD",49,36,"-3/20"],["B","ADD",48,36,"1/20"],["B","ADD",47,36,"1/10"],["B","ADD",46,36,"-1/10"],["B","ADD",45,36,"-3/20"],["B","ADD",44,36,"1/20"],["B","ADD",43,36,"1/10"],["B","ADD",42,36,"-1/10"],["B","ADD",41,36,"-3/20"],["B","ADD",40,36,"1/20"],["B","ADD",39,36,"1/10"],["B","ADD",38,36,"-1/10"],["B","ADD",37,36,"-11/5"],["B","ADD",37,36,"41/15"],["B","ADD",38,36,"7/30"],["B","ADD",39,36,"11/30"],["B","SCALE",36,"-2/15"],["B","ADD",36,37,"-3"],["B","ADD",36,38,"62"],["B","ADD",36,39,"-14"],["B","IDLE_ONE",36,[2,3,4,5,6,7,8]],["B","ADD",36,39,"14"],["B","ADD",36,38,"-62"],["B","ADD",36,37,"3"],["B","SCALE",36,"-15/2"],["B","ADD",39,36,"-11/30"],["B","ADD",38,36,"-7/30"],["B","ADD",37,36,"-41/15"],["B","ADD",36,38,"13/3"],["B","ADD",37,38,"-71/6"],["B","ADD",39,38,"-19/12"],["B","SCALE",38,"1/3"],["B","ADD",38,37,"2"],["B","ADD",38,39,"8"],["B","IDLE_ONE",38,[2,3,4,5,6,7,8]],["B","ADD",38,39,"-8"],["B","ADD",38,37,"-2"],["B","SCALE",38,"3"],["B","ADD",39,38,"19/12"],["B","ADD",37,38,"71/6"],["B","ADD",36,38,"-13/3"],["B","ADD",37,36,"41/15"],["B","ADD",38,36,"11/30"],["B","ADD",39,36,"29/30"],["B","ADD",40,36,"-1/15"],["B","ADD",41,36,"-1/6"],["B","SCALE",36,"2/15"],["B","ADD",36,37,"6"],["B","ADD",36,38,"22"],["B","ADD",36,39,"-56"],["B","ADD",36,40,"-68"],["B","ADD",36,41,"-156"],["B","IDLE_ONE",36,[3,4,5,6,7,8]],["B","ADD",36,41,"156"],["B","ADD",36,40,"68"],["B","ADD",36,39,"56"],["B","ADD",36,38,"-22"],["B","ADD",36,37,"-6"],["B","SCALE",36,"15/2"],["B","ADD",41,36,"1/6"],["B","ADD",40,36,"1/15"],["B","ADD",39,36,"-29/30"],["B","ADD",38,36,"-11/30"],["B","ADD",37,36,"-41/15"],["B","ADD",36,37,"1"],["B","SWAP",36,37],["B","ADD",36,37,"-1"],["B","SWAP",36,37],["B","ADD",36,37,"-1"],["B","SWAP",36,37],["B","ADD",36,37,"-1"],["B","SWAP",36,37],["B","ADD",36,37,"-2"],["B","SWAP",36,37],["B","ADD",36,37,"-1"],["B","SWAP",36,37],["B","ADD",36,37,"-3"],["B","SWAP",36,37],["B","ADD",36,37,"-2"],["B","SWAP",36,37],["B","ADD",36,37,"-2"],["B","SWAP",36,37],["B","SWAP",36,38],["B","ADD",36,38,"-30"],["B","SWAP",36,38],["B","ADD",36,38,"-2"],["B","SWAP",36,38],["B","SWAP",36,39],["B","ADD",36,39,"-161"],["B","SWAP",36,39],["B","ADD",36,40,"1"],["B","SWAP",36,40],["B","ADD",36,40,"-1"],["B","SWAP",36,40],["B","ADD",36,40,"-10"],["B","SWAP",36,40],["B","SWAP",36,41],["B","ADD",36,41,"-28"],["B","SWAP",36,41],["B","SCALE",36,"4"],["B","ADD",36,37,"-93"],["B","ADD",36,38,"-347"],["B","ADD",36,39,"10"],["B","ADD",36,40,"12"],["B","ADD",36,41,"28"],["B","IDLE_ONE",36,[3,4,5,6,7,8]],["B","ADD",36,41,"-28"],["B","ADD",36,40,"-12"],["B","ADD",36,39,"-10"],["B","ADD",36,38,"347"],["B","ADD",36,37,"93"],["B","SCALE",36,"1/4"],["B","SWAP",36,41],["B","ADD",36,41,"28"],["B","SWAP",36,41],["B","SWAP",36,40],["B","ADD",36,40,"10"],["B","SWAP",36,40],["B","ADD",36,40,"1"],["B","SWAP",36,40],["B","ADD",36,40,"-1"],["B","SWAP",36,39],["B","ADD",36,39,"161"],["B","SWAP",36,39],["B","SWAP",36,38],["B","ADD",36,38,"2"],["B","SWAP",36,38],["B","ADD",36,38,"30"],["B","SWAP",36,38],["B","SWAP",36,37],["B","ADD",36,37,"2"],["B","SWAP",36,37],["B","ADD",36,37,"2"],["B","SWAP",36,37],["B","ADD",36,37,"3"],["B","SWAP",36,37],["B","ADD",36,37,"1"],["B","SWAP",36,37],["B","ADD",36,37,"2"],["B","SWAP",36,37],["B","ADD",36,37,"1"],["B","SWAP",36,37],["B","ADD",36,37,"1"],["B","SWAP",36,37],["B","ADD",36,37,"1"],["B","SWAP",36,37],["B","ADD",36,37,"-1"],["B","ADD",37,36,"41/15"],["B","ADD",38,36,"11/30"],["B","ADD",39,36,"29/30"],["B","ADD",40,36,"-11/60"],["B","ADD",41,36,"-7/60"],["B","ADD",42,36,"7/30"],["B","ADD",43,36,"11/30"],["B","SCALE",36,"-2/15"],["B","ADD",36,37,"55"],["B","ADD",36,38,"218"],["B","ADD",36,39,"-546"],["B","ADD",36,40,"-1748"],["B","ADD",36,41,"-1092"],["B","ADD",36,42,"-982"],["B","ADD",36,43,"218"],["B","IDLE_ONE",36,[4,5,6,7,8]],["B","ADD",36,43,"-218"],["B","ADD",36,42,"982"],["B","ADD",36,41,"1092"],["B","ADD",36,40,"1748"],["B","ADD",36,39,"546"],["B","ADD",36,38,"-218"],["B","ADD",36,37,"-55"],["B","SCALE",36,"-15/2"],["B","ADD",43,36,"-11/30"],["B","ADD",42,36,"-7/30"],["B","ADD",41,36,"7/60"],["B","ADD",40,36,"11/60"],["B","ADD",39,36,"-29/30"],["B","ADD",38,36,"-11/30"],["B","ADD",37,36,"-41/15"],["B","ADD",36,38,"409/150"],["B","ADD",37,38,"-559/75"],["B","ADD",39,38,"-791/300"],["B","ADD",40,38,"1/2"],["B","ADD",41,38,"191/600"],["B","ADD",42,38,"-191/300"],["B","ADD",43,38,"-1"],["B","SCALE",38,"1/75"],["B","ADD",38,37,"-2"],["B","ADD",38,39,"20"],["B","ADD",38,40,"64"],["B","ADD",38,41,"40"],["B","ADD",38,42,"36"],["B","ADD",38,43,"-8"],["B","IDLE_ONE",38,[4,5,6,7,8]],["B","ADD",38,43,"8"],["B","ADD",38,42,"-36"],["B","ADD",38,41,"-40"],["B","ADD",38,40,"-64"],["B","ADD",38,39,"-20"],["B","ADD",38,37,"2"],["B","SCALE",38,"75"],["B","ADD",43,38,"1"],["B","ADD",42,38,"191/300"],["B","ADD",41,38,"-191/600"],["B","ADD",40,38,"-1/2"],["B","ADD",39,38,"791/300"],["B","ADD",37,38,"559/75"],["B","ADD",36,38,"-409/150"],["B","ADD",37,36,"41/15"],["B","ADD",38,36,"11/30"],["B","ADD",39,36,"29/30"],["B","ADD",40,36,"-11/60"],["B","ADD",41,36,"-7/60"],["B","ADD",42,36,"11/30"],["B","ADD",43,36,"29/30"],["B","ADD",44,36,"-1/15"],["B","ADD",45,36,"-1/6"],["B","SCALE",36,"2/15"],["B","ADD",36,37,"55"],["B","ADD",36,38,"218"],["B","ADD",36,39,"-546"],["B","ADD",36,40,"-1748"],["B","ADD",36,41,"-1092"],["B","ADD",36,42,"218"],["B","ADD",36,43,"-546"],["B","ADD",36,44,"-656"],["B","ADD",36,45,"-1528"],["B","IDLE_ONE",36,[5,6,7,8]],["B","ADD",36,45,"1528"],["B","ADD",36,44,"656"],["B","ADD",36,43,"546"],["B","ADD",36,42,"-218"],["B","ADD",36,41,"1092"],["B","ADD",36,40,"1748"],["B","ADD",36,39,"546"],["B","ADD",36,38,"-218"],["B","ADD",36,37,"-55"],["B","SCALE",36,"15/2"],["B","ADD",45,36,"1/6"],["B","ADD",44,36,"1/15"],["B","ADD",43,36,"-29/30"],["B","ADD",42,36,"-11/30"],["B","ADD",41,36,"7/60"],["B","ADD",40,36,"11/60"],["B","ADD",39,36,"-29/30"],["B","ADD",38,36,"-11/30"],["B","ADD",37,36,"-41/15"],["B","ADD",36,38,"409/150"],["B","ADD",37,38,"-559/75"],["B","ADD",39,38,"-791/300"],["B","ADD",40,38,"1/2"],["B","ADD",41,38,"191/600"],["B","ADD",42,38,"-1"],["B","ADD",43,38,"-791/300"],["B","ADD",44,38,"109/600"],["B","ADD",45,38,"91/200"],["B","SCALE",38,"-1/75"],["B","ADD",38,37,"-2"],["B","ADD",38,39,"20"],["B","ADD",38,40,"64"],["B","ADD",38,41,"40"],["B","ADD",38,42,"-8"],["B","ADD",38,43,"20"],["B","ADD",38,44,"24"],["B","ADD",38,45,"56"],["B","IDLE_ONE",38,[5,6,7,8]],["B","ADD",38,45,"-56"],["B","ADD",38,44,"-24"],["B","ADD",38,43,"-20"],["B","ADD",38,42,"8"],["B","ADD",38,41,"-40"],["B","ADD",38,40,"-64"],["B","ADD",38,39,"-20"],["B","ADD",38,37,"2"],["B","SCALE",38,"-75"],["B","ADD",45,38,"-91/200"],["B","ADD",44,38,"-109/600"],["B","ADD",43,38,"791/300"],["B","ADD",42,38,"1"],["B","ADD",41,38,"-191/600"],["B","ADD",40,38,"-1/2"],["B","ADD",39,38,"791/300"],["B","ADD",37,38,"559/75"],["B","ADD",36,38,"-409/150"],["B","ADD",37,36,"41/15"],["B","ADD",38,36,"11/30"],["B","ADD",39,36,"29/30"],["B","ADD",40,36,"-11/60"],["B","ADD",41,36,"-7/60"],["B","ADD",42,36,"11/30"],["B","ADD",43,36,"29/30"],["B","ADD",44,36,"-11/60"],["B","ADD",45,36,"-7/60"],["B","ADD",46,36,"7/30"],["B","ADD",47,36,"11/30"],["B","SCALE",36,"-2/15"],["B","ADD",36,37,"55"],["B","ADD",36,38,"218"],["B","ADD",36,39,"-546"],["B","ADD",36,40,"-1748"],["B","ADD",36,41,"-1092"],["B","ADD",36,42,"218"],["B","ADD",36,43,"-546"],["B","ADD",36,44,"-1748"],["B","ADD",36,45,"-1092"],["B","ADD",36,46,"-982"],["B","ADD",36,47,"218"],["B","IDLE_ONE",36,[6,7,8]],["B","ADD",36,47,"-218"],["B","ADD",36,46,"982"],["B","ADD",36,45,"1092"],["B","ADD",36,44,"1748"],["B","ADD",36,43,"546"],["B","ADD",36,42,"-218"],["B","ADD",36,41,"1092"],["B","ADD",36,40,"1748"],["B","ADD",36,39,"546"],["B","ADD",36,38,"-218"],["B","ADD",36,37,"-55"],["B","SCALE",36,"-15/2"],["B","ADD",47,36,"-11/30"],["B","ADD",46,36,"-7/30"],["B","ADD",45,36,"7/60"],["B","ADD",44,36,"11/60"],["B","ADD",43,36,"-29/30"],["B","ADD",42,36,"-11/30"],["B","ADD",41,36,"7/60"],["B","ADD",40,36,"11/60"],["B","ADD",39,36,"-29/30"],["B","ADD",38,36,"-11/30"],["B","ADD",37,36,"-41/15"],["B","ADD",36,38,"409/150"],["B","ADD",37,38,"-559/75"],["B","ADD",39,38,"-791/300"],["B","ADD",40,38,"1/2"],["B","ADD",41,38,"191/600"],["B","ADD",42,38,"-1"],["B","ADD",43,38,"-791/300"],["B","ADD",44,38,"1/2"],["B","ADD",45,38,"191/600"],["B","ADD",46,38,"-191/300"],["B","ADD",47,38,"-1"],["B","SCALE",38,"1/75"],["B","ADD",38,37,"-2"],["B","ADD",38,39,"20"],["B","ADD",38,40,"64"],["B","ADD",38,41,"40"],["B","ADD",38,42,"-8"],["B","ADD",38,43,"20"],["B","ADD",38,44,"64"],["B","ADD",38,45,"40"],["B","ADD",38,46,"36"],["B","ADD",38,47,"-8"],["B","IDLE_ONE",38,[6,7,8]],["B","ADD",38,47,"8"],["B","ADD",38,46,"-36"],["B","ADD",38,45,"-40"],["B","ADD",38,44,"-64"],["B","ADD",38,43,"-20"],["B","ADD",38,42,"8"],["B","ADD",38,41,"-40"],["B","ADD",38,40,"-64"],["B","ADD",38,39,"-20"],["B","ADD",38,37,"2"],["B","SCALE",38,"75"],["B","ADD",47,38,"1"],["B","ADD",46,38,"191/300"],["B","ADD",45,38,"-191/600"],["B","ADD",44,38,"-1/2"],["B","ADD",43,38,"791/300"],["B","ADD",42,38,"1"],["B","ADD",41,38,"-191/600"],["B","ADD",40,38,"-1/2"],["B","ADD",39,38,"791/300"],["B","ADD",37,38,"559/75"],["B","ADD",36,38,"-409/150"],["B","ADD",37,36,"41/15"],["B","ADD",38,36,"11/30"],["B","ADD",39,36,"29/30"],["B","ADD",40,36,"-11/60"],["B","ADD",41,36,"-7/60"],["B","ADD",42,36,"11/30"],["B","ADD",43,36,"29/30"],["B","ADD",44,36,"-11/60"],["B","ADD",45,36,"-7/60"],["B","ADD",46,36,"11/30"],["B","ADD",47,36,"29/30"],["B","ADD",48,36,"-1/15"],["B","ADD",49,36,"-1/6"],["B","SCALE",36,"2/15"],["B","ADD",36,37,"55"],["B","ADD",36,38,"218"],["B","ADD",36,39,"-546"],["B","ADD",36,40,"-1748"],["B","ADD",36,41,"-1092"],["B","ADD",36,42,"218"],["B","ADD",36,43,"-546"],["B","ADD",36,44,"-1748"],["B","ADD",36,45,"-1092"],["B","ADD",36,46,"218"],["B","ADD",36,47,"-546"],["B","ADD",36,48,"-656"],["B","ADD",36,49,"-1528"],["B","IDLE_ONE",36,[7,8]],["B","ADD",36,49,"1528"],["B","ADD",36,48,"656"],["B","ADD",36,47,"546"],["B","ADD",36,46,"-218"],["B","ADD",36,45,"1092"],["B","ADD",36,44,"1748"],["B","ADD",36,43,"546"],["B","ADD",36,42,"-218"],["B","ADD",36,41,"1092"],["B","ADD",36,40,"1748"],["B","ADD",36,39,"546"],["B","ADD",36,38,"-218"],["B","ADD",36,37,"-55"],["B","SCALE",36,"15/2"],["B","ADD",49,36,"1/6"],["B","ADD",48,36,"1/15"],["B","ADD",47,36,"-29/30"],["B","ADD",46,36,"-11/30"],["B","ADD",45,36,"7/60"],["B","ADD",44,36,"11/60"],["B","ADD",43,36,"-29/30"],["B","ADD",42,36,"-11/30"],["B","ADD",41,36,"7/60"],["B","ADD",40,36,"11/60"],["B","ADD",39,36,"-29/30"],["B","ADD",38,36,"-11/30"],["B","ADD",37,36,"-41/15"],["B","ADD",36,38,"409/150"],["B","ADD",37,38,"-559/75"],["B","ADD",39,38,"-791/300"],["B","ADD",40,38,"1/2"],["B","ADD",41,38,"191/600"],["B","ADD",42,38,"-1"],["B","ADD",43,38,"-791/300"],["B","ADD",44,38,"1/2"],["B","ADD",45,38,"191/600"],["B","ADD",46,38,"-1"],["B","ADD",47,38,"-791/300"],["B","ADD",48,38,"109/600"],["B","ADD",49,38,"91/200"],["B","SCALE",38,"-1/75"],["B","ADD",38,37,"-2"],["B","ADD",38,39,"20"],["B","ADD",38,40,"64"],["B","ADD",38,41,"40"],["B","ADD",38,42,"-8"],["B","ADD",38,43,"20"],["B","ADD",38,44,"64"],["B","ADD",38,45,"40"],["B","ADD",38,46,"-8"],["B","ADD",38,47,"20"],["B","ADD",38,48,"24"],["B","ADD",38,49,"56"],["B","IDLE_ONE",38,[7,8]],["B","ADD",38,49,"-56"],["B","ADD",38,48,"-24"],["B","ADD",38,47,"-20"],["B","ADD",38,46,"8"],["B","ADD",38,45,"-40"],["B","ADD",38,44,"-64"],["B","ADD",38,43,"-20"],["B","ADD",38,42,"8"],["B","ADD",38,41,"-40"],["B","ADD",38,40,"-64"],["B","ADD",38,39,"-20"],["B","ADD",38,37,"2"],["B","SCALE",38,"-75"],["B","ADD",49,38,"-91/200"],["B","ADD",48,38,"-109/600"],["B","ADD",47,38,"791/300"],["B","ADD",46,38,"1"],["B","ADD",45,38,"-191/600"],["B","ADD",44,38,"-1/2"],["B","ADD",43,38,"791/300"],["B","ADD",42,38,"1"],["B","ADD",41,38,"-191/600"],["B","ADD",40,38,"-1/2"],["B","ADD",39,38,"791/300"],["B","ADD",37,38,"559/75"],["B","ADD",36,38,"-409/150"],["B","ADD",37,36,"41/16"],["B","ADD",52,36,"1/16"],["B","ADD",53,36,"9/32"],["B","SCALE",36,"-1/16"],["B","ADD",36,52,"-10"],["B","ADD",36,53,"6"],["B","IDLE_ONE",36,[16,15,14,13,12,11,10,9]],["B","ADD",36,53,"-6"],["B","ADD",36,52,"10"],["B","SCALE",36,"-16"],["B","ADD",53,36,"-9/32"],["B","ADD",52,36,"-1/16"],["B","ADD",37,36,"-41/16"],["B","ADD",36,37,"7/18"],["B","ADD",52,37,"-1/36"],["B","ADD",53,37,"-1/9"],["B","SCALE",37,"-1/18"],["B","ADD",37,52,"-22"],["B","ADD",37,53,"14"],["B","IDLE_ONE",37,[16,15,14,13,12,11,10,9]],["B","ADD",37,53,"-14"],["B","ADD",37,52,"22"],["B","SCALE",37,"-18"],["B","ADD",53,37,"1/9"],["B","ADD",52,37,"1/36"],["B","ADD",36,37,"-7/18"],["B","ADD",37,36,"41/16"],["B","ADD",52,36,"11/64"],["B","ADD",53,36,"29/64"],["B","ADD",54,36,"1/32"],["B","ADD",55,36,"5/64"],["B","SCALE",36,"-1/16"],["B","ADD",36,37,"5"],["B","ADD",36,52,"22"],["B","ADD",36,53,"-54"],["B","ADD",36,54,"32"],["B","ADD",36,55,"76"],["B","IDLE_ONE",36,[15,14,13,12,11,10,9]],["B","ADD",36,55,"-76"],["B","ADD",36,54,"-32"],["B","ADD",36,53,"54"],["B","ADD",36,52,"-22"],["B","ADD",36,37,"-5"],["B","SCALE",36,"-16"],["B","ADD",55,36,"-5/64"],["B","ADD",54,36,"-1/32"],["B","ADD",53,36,"-29/64"],["B","ADD",52,36,"-11/64"],["B","ADD",37,36,"-41/16"],["B","ADD",36,52,"29/5"],["B","ADD",37,52,"-223/15"],["B","ADD",53,52,"-79/30"],["B","ADD",54,52,"-11/60"],["B","ADD",55,52,"-9/20"],["B","SCALE",52,"1/15"],["B","ADD",52,37,"-1"],["B","ADD",52,53,"10"],["B","ADD",52,54,"-6"],["B","ADD",52,55,"-14"],["B","IDLE_ONE",52,[15,14,13,12,11,10,9]],["B","ADD",52,55,"14"],["B","ADD",52,54,"6"],["B","ADD",52,53,"-10"],["B","ADD",52,37,"1"],["B","SCALE",52,"15"],["B","ADD",55,52,"9/20"],["B","ADD",54,52,"11/60"],["B","ADD",53,52,"79/30"],["B","ADD",37,52,"223/15"],["B","ADD",36,52,"-29/5"],["B","ADD",37,36,"41/16"],["B","ADD",52,36,"11/64"],["B","ADD",53,36,"29/64"],["B","ADD",54,36,"9/64"],["B","ADD",55,36,"1/32"],["B","ADD",56,36,"1/16"],["B","ADD",57,36,"9/32"],["B","SCALE",36,"-1/16"],["B","ADD",36,37,"-5"],["B","ADD",36,52,"-22"],["B","ADD",36,53,"54"],["B","ADD",36,54,"-140"],["B","ADD",36,55,"-32"],["B","ADD",36,56,"-120"],["B","ADD",36,57,"76"],["B","IDLE_ONE",36,[14,13,12,11,10,9]],["B","ADD",36,57,"-76"],["B","ADD",36,56,"120"],["B","ADD",36,55,"32"],["B","ADD",36,54,"140"],["B","ADD",36,53,"-54"],["B","ADD",36,52,"22"],["B","ADD",36,37,"5"],["B","SCALE",36,"-16"],["B","ADD",57,36,"-9/32"],["B","ADD",56,36,"-1/16"],["B","ADD",55,36,"-1/32"],["B","ADD",54,36,"-9/64"],["B","ADD",53,36,"-29/64"],["B","ADD",52,36,"-11/64"],["B","ADD",37,36,"-41/16"],["B","ADD",36,52,"29/5"],["B","ADD",37,52,"-223/15"],["B","ADD",53,52,"-79/30"],["B","ADD",54,52,"-49/60"],["B","ADD",55,52,"-11/60"],["B","ADD",56,52,"-11/30"],["B","ADD",57,52,"-49/30"],["B","SCALE",52,"1/15"],["B","ADD",52,37,"1"],["B","ADD",52,53,"-10"],["B","ADD",52,54,"26"],["B","ADD",52,55,"6"],["B","ADD",52,56,"22"],["B","ADD",52,57,"-14"],["B","IDLE_ONE",52,[14,13,12,11,10,9]],["B","ADD",52,57,"14"],["B","ADD",52,56,"-22"],["B","ADD",52,55,"-6"],["B","ADD",52,54,"-26"],["B","ADD",52,53,"10"],["B","ADD",52,37,"-1"],["B","SCALE",52,"15"],["B","ADD",57,52,"49/30"],["B","ADD",56,52,"11/30"],["B","ADD",55,52,"11/60"],["B","ADD",54,52,"49/60"],["B","ADD",53,52,"79/30"],["B","ADD",37,52,"223/15"],["B","ADD",36,52,"-29/5"],["B","ADD",37,36,"41/16"],["B","ADD",52,36,"11/64"],["B","ADD",53,36,"29/64"],["B","ADD",54,36,"9/64"],["B","ADD",55,36,"1/32"],["B","ADD",56,36,"11/64"],["B","ADD",57,36,"29/64"],["B","ADD",58,36,"1/32"],["B","ADD",59,36,"5/64"],["B","SCALE",36,"-1/16"],["B","ADD",36,37,"5"],["B","ADD",36,52,"22"],["B","ADD",36,53,"-54"],["B","ADD",36,54,"140"],["B","ADD",36,55,"32"],["B","ADD",36,56,"22"],["B","ADD",36,57,"-54"],["B","ADD",36,58,"32"],["B","ADD",36,59,"76"],["B","IDLE_ONE",36,[13,12,11,10,9]],["B","ADD",36,59,"-76"],["B","ADD",36,58,"-32"],["B","ADD",36,57,"54"],["B","ADD",36,56,"-22"],["B","ADD",36,55,"-32"],["B","ADD",36,54,"-140"],["B","ADD",36,53,"54"],["B","ADD",36,52,"-22"],["B","ADD",36,37,"-5"],["B","SCALE",36,"-16"],["B","ADD",59,36,"-5/64"],["B","ADD",58,36,"-1/32"],["B","ADD",57,36,"-29/64"],["B","ADD",56,36,"-11/64"],["B","ADD",55,36,"-1/32"],["B","ADD",54,36,"-9/64"],["B","ADD",53,36,"-29/64"],["B","ADD",52,36,"-11/64"],["B","ADD",37,36,"-41/16"],["B","ADD",36,52,"29/5"],["B","ADD",37,52,"-223/15"],["B","ADD",53,52,"-79/30"],["B","ADD",54,52,"-49/60"],["B","ADD",55,52,"-11/60"],["B","ADD",56,52,"-1"],["B","ADD",57,52,"-79/30"],["B","ADD",58,52,"-11/60"],["B","ADD",59,52,"-9/20"],["B","SCALE",52,"1/15"],["B","ADD",52,37,"-1"],["B","ADD",52,53,"10"],["B","ADD",52,54,"-26"],["B","ADD",52,55,"-6"],["B","ADD",52,56,"-4"],["B","ADD",52,57,"10"],["B","ADD",52,58,"-6"],["B","ADD",52,59,"-14"],["B","IDLE_ONE",52,[13,12,11,10,9]],["B","ADD",52,59,"14"],["B","ADD",52,58,"6"],["B","ADD",52,57,"-10"],["B","ADD",52,56,"4"],["B","ADD",52,55,"6"],["B","ADD",52,54,"26"],["B","ADD",52,53,"-10"],["B","ADD",52,37,"1"],["B","SCALE",52,"15"],["B","ADD",59,52,"9/20"],["B","ADD",58,52,"11/60"],["B","ADD",57,52,"79/30"],["B","ADD",56,52,"1"],["B","ADD",55,52,"11/60"],["B","ADD",54,52,"49/60"],["B","ADD",53,52,"79/30"],["B","ADD",37,52,"223/15"],["B","ADD",36,52,"-29/5"],["B","ADD",37,36,"41/16"],["B","ADD",52,36,"11/64"],["B","ADD",53,36,"29/64"],["B","ADD",54,36,"9/64"],["B","ADD",55,36,"1/32"],["B","ADD",56,36,"11/64"],["B","ADD",57,36,"29/64"],["B","ADD",58,36,"9/64"],["B","ADD",59,36,"1/32"],["B","ADD",60,36,"1/16"],["B","ADD",61,36,"9/32"],["B","SCALE",36,"-1/16"],["B","ADD",36,37,"-5"],["B","ADD",36,52,"-22"],["B","ADD",36,53,"54"],["B","ADD",36,54,"-140"],["B","ADD",36,55,"-32"],["B","ADD",36,56,"-22"],["B","ADD",36,57,"54"],["B","ADD",36,58,"-140"],["B","ADD",36,59,"-32"],["B","ADD",36,60,"-120"],["B","ADD",36,61,"76"],["B","IDLE_ONE",36,[12,11,10,9]],["B","ADD",36,61,"-76"],["B","ADD",36,60,"120"],["B","ADD",36,59,"32"],["B","ADD",36,58,"140"],["B","ADD",36,57,"-54"],["B","ADD",36,56,"22"],["B","ADD",36,55,"32"],["B","ADD",36,54,"140"],["B","ADD",36,53,"-54"],["B","ADD",36,52,"22"],["B","ADD",36,37,"5"],["B","SCALE",36,"-16"],["B","ADD",61,36,"-9/32"],["B","ADD",60,36,"-1/16"],["B","ADD",59,36,"-1/32"],["B","ADD",58,36,"-9/64"],["B","ADD",57,36,"-29/64"],["B","ADD",56,36,"-11/64"],["B","ADD",55,36,"-1/32"],["B","ADD",54,36,"-9/64"],["B","ADD",53,36,"-29/64"],["B","ADD",52,36,"-11/64"],["B","ADD",37,36,"-41/16"],["B","ADD",36,52,"29/5"],["B","ADD",37,52,"-223/15"],["B","ADD",53,52,"-79/30"],["B","ADD",54,52,"-49/60"],["B","ADD",55,52,"-11/60"],["B","ADD",56,52,"-1"],["B","ADD",57,52,"-79/30"],["B","ADD",58,52,"-49/60"],["B","ADD",59,52,"-11/60"],["B","ADD",60,52,"-11/30"],["B","ADD",61,52,"-49/30"],["B","SCALE",52,"1/15"],["B","ADD",52,37,"1"],["B","ADD",52,53,"-10"],["B","ADD",52,54,"26"],["B","ADD",52,55,"6"],["B","ADD",52,56,"4"],["B","ADD",52,57,"-10"],["B","ADD",52,58,"26"],["B","ADD",52,59,"6"],["B","ADD",52,60,"22"],["B","ADD",52,61,"-14"],["B","IDLE_ONE",52,[12,11,10,9]],["B","ADD",52,61,"14"],["B","ADD",52,60,"-22"],["B","ADD",52,59,"-6"],["B","ADD",52,58,"-26"],["B","ADD",52,57,"10"],["B","ADD",52,56,"-4"],["B","ADD",52,55,"-6"],["B","ADD",52,54,"-26"],["B","ADD",52,53,"10"],["B","ADD",52,37,"-1"],["B","SCALE",52,"15"],["B","ADD",61,52,"49/30"],["B","ADD",60,52,"11/30"],["B","ADD",59,52,"11/60"],["B","ADD",58,52,"49/60"],["B","ADD",57,52,"79/30"],["B","ADD",56,52,"1"],["B","ADD",55,52,"11/60"],["B","ADD",54,52,"49/60"],["B","ADD",53,52,"79/30"],["B","ADD",37,52,"223/15"],["B","ADD",36,52,"-29/5"],["B","ADD",37,36,"41/16"],["B","ADD",52,36,"11/64"],["B","ADD",53,36,"29/64"],["B","ADD",54,36,"9/64"],["B","ADD",55,36,"1/32"],["B","ADD",56,36,"11/64"],["B","ADD",57,36,"29/64"],["B","ADD",58,36,"9/64"],["B","ADD",59,36,"1/32"],["B","ADD",60,36,"11/64"],["B","ADD",61,36,"29/64"],["B","ADD",62,36,"1/32"],["B","ADD",63,36,"5/64"],["B","SCALE",36,"-1/16"],["B","ADD",36,37,"5"],["B","ADD",36,52,"22"],["B","ADD",36,53,"-54"],["B","ADD",36,54,"140"],["B","ADD",36,55,"32"],["B","ADD",36,56,"22"],["B","ADD",36,57,"-54"],["B","ADD",36,58,"140"],["B","ADD",36,59,"32"],["B","ADD",36,60,"22"],["B","ADD",36,61,"-54"],["B","ADD",36,62,"32"],["B","ADD",36,63,"76"],["B","IDLE_ONE",36,[11,10,9]],["B","ADD",36,63,"-76"],["B","ADD",36,62,"-32"],["B","ADD",36,61,"54"],["B","ADD",36,60,"-22"],["B","ADD",36,59,"-32"],["B","ADD",36,58,"-140"],["B","ADD",36,57,"54"],["B","ADD",36,56,"-22"],["B","ADD",36,55,"-32"],["B","ADD",36,54,"-140"],["B","ADD",36,53,"54"],["B","ADD",36,52,"-22"],["B","ADD",36,37,"-5"],["B","SCALE",36,"-16"],["B","ADD",63,36,"-5/64"],["B","ADD",62,36,"-1/32"],["B","ADD",61,36,"-29/64"],["B","ADD",60,36,"-11/64"],["B","ADD",59,36,"-1/32"],["B","ADD",58,36,"-9/64"],["B","ADD",57,36,"-29/64"],["B","ADD",56,36,"-11/64"],["B","ADD",55,36,"-1/32"],["B","ADD",54,36,"-9/64"],["B","ADD",53,36,"-29/64"],["B","ADD",52,36,"-11/64"],["B","ADD",37,36,"-41/16"],["B","ADD",36,52,"29/5"],["B","ADD",37,52,"-223/15"],["B","ADD",53,52,"-79/30"],["B","ADD",54,52,"-49/60"],["B","ADD",55,52,"-11/60"],["B","ADD",56,52,"-1"],["B","ADD",57,52,"-79/30"],["B","ADD",58,52,"-49/60"],["B","ADD",59,52,"-11/60"],["B","ADD",60,52,"-1"],["B","ADD",61,52,"-79/30"],["B","ADD",62,52,"-11/60"],["B","ADD",63,52,"-9/20"],["B","SCALE",52,"1/15"],["B","ADD",52,37,"-1"],["B","ADD",52,53,"10"],["B","ADD",52,54,"-26"],["B","ADD",52,55,"-6"],["B","ADD",52,56,"-4"],["B","ADD",52,57,"10"],["B","ADD",52,58,"-26"],["B","ADD",52,59,"-6"],["B","ADD",52,60,"-4"],["B","ADD",52,61,"10"],["B","ADD",52,62,"-6"],["B","ADD",52,63,"-14"],["B","IDLE_ONE",52,[11,10,9]],["B","ADD",52,63,"14"],["B","ADD",52,62,"6"],["B","ADD",52,61,"-10"],["B","ADD",52,60,"4"],["B","ADD",52,59,"6"],["B","ADD",52,58,"26"],["B","ADD",52,57,"-10"],["B","ADD",52,56,"4"],["B","ADD",52,55,"6"],["B","ADD",52,54,"26"],["B","ADD",52,53,"-10"],["B","ADD",52,37,"1"],["B","SCALE",52,"15"],["B","ADD",63,52,"9/20"],["B","ADD",62,52,"11/60"],["B","ADD",61,52,"79/30"],["B","ADD",60,52,"1"],["B","ADD",59,52,"11/60"],["B","ADD",58,52,"49/60"],["B","ADD",57,52,"79/30"],["B","ADD",56,52,"1"],["B","ADD",55,52,"11/60"],["B","ADD",54,52,"49/60"],["B","ADD",53,52,"79/30"],["B","ADD",37,52,"223/15"],["B","ADD",36,52,"-29/5"],["B","ADD",37,36,"5/2"],["B","ADD",52,36,"1/8"],["B","ADD",53,36,"3/8"],["B","ADD",54,36,"1/8"],["B","ADD",56,36,"1/8"],["B","ADD",57,36,"3/8"],["B","ADD",58,36,"1/8"],["B","ADD",60,36,"1/8"],["B","ADD",61,36,"3/8"],["B","ADD",62,36,"1/8"],["B","ADD",65,36,"1/4"],["B","SCALE",36,"-5/2"],["B","ADD",36,37,"3"],["B","ADD",36,52,"2"],["B","ADD",36,53,"-10"],["B","ADD",36,54,"28"],["B","ADD",36,55,"8"],["B","ADD",36,56,"2"],["B","ADD",36,57,"-10"],["B","ADD",36,58,"28"],["B","ADD",36,59,"8"],["B","ADD",36,60,"2"],["B","ADD",36,61,"-10"],["B","ADD",36,62,"28"],["B","ADD",36,63,"8"],["B","ADD",36,64,"2"],["B","IDLE_ONE",36,[10,9]],["B","ADD",36,64,"-2"],["B","ADD",36,63,"-8"],["B","ADD",36,62,"-28"],["B","ADD",36,61,"10"],["B","ADD",36,60,"-2"],["B","ADD",36,59,"-8"],["B","ADD",36,58,"-28"],["B","ADD",36,57,"10"],["B","ADD",36,56,"-2"],["B","ADD",36,55,"-8"],["B","ADD",36,54,"-28"],["B","ADD",36,53,"10"],["B","ADD",36,52,"-2"],["B","ADD",36,37,"-3"],["B","SCALE",36,"-2/5"],["B","ADD",65,36,"-1/4"],["B","ADD",62,36,"-1/8"],["B","ADD",61,36,"-3/8"],["B","ADD",60,36,"-1/8"],["B","ADD",58,36,"-1/8"],["B","ADD",57,36,"-3/8"],["B","ADD",56,36,"-1/8"],["B","ADD",54,36,"-1/8"],["B","ADD",53,36,"-3/8"],["B","ADD",52,36,"-1/8"],["B","ADD",37,36,"-5/2"],["B","ADD",37,36,"2"],["B","ADD",52,36,"-1/4"],["B","ADD",53,36,"-1/4"],["B","ADD",55,36,"-1/4"],["B","ADD",56,36,"-1/4"],["B","ADD",57,36,"-1/4"],["B","ADD",59,36,"-1/4"],["B","ADD",60,36,"-1/4"],["B","ADD",61,36,"-1/4"],["B","ADD",63,36,"-1/4"],["B","ADD",64,36,"-1/2"],["B","SCALE",36,"5"],["B","ADD",36,37,"2"],["B","ADD",36,52,"8"],["B","ADD",36,53,"-20"],["B","ADD",36,54,"52"],["B","ADD",36,55,"12"],["B","ADD",36,56,"8"],["B","ADD",36,57,"-20"],["B","ADD",36,58,"52"],["B","ADD",36,59,"12"],["B","ADD",36,60,"8"],["B","ADD",36,61,"-20"],["B","ADD",36,62,"52"],["B","ADD",36,63,"12"],["B","ADD",36,64,"18"],["B","ADD",36,65,"-20"],["B","IDLE_ONE",36,[10,9]],["B","ADD",36,65,"20"],["B","ADD",36,64,"-18"],["B","ADD",36,63,"-12"],["B","ADD",36,62,"-52"],["B","ADD",36,61,"20"],["B","ADD",36,60,"-8"],["B","ADD",36,59,"-12"],["B","ADD",36,58,"-52"],["B","ADD",36,57,"20"],["B","ADD",36,56,"-8"],["B","ADD",36,55,"-12"],["B","ADD",36,54,"-52"],["B","ADD",36,53,"20"],["B","ADD",36,52,"-8"],["B","ADD",36,37,"-2"],["B","SCALE",36,"1/5"],["B","ADD",64,36,"1/2"],["B","ADD",63,36,"1/4"],["B","ADD",61,36,"1/4"],["B","ADD",60,36,"1/4"],["B","ADD",59,36,"1/4"],["B","ADD",57,36,"1/4"],["B","ADD",56,36,"1/4"],["B","ADD",55,36,"1/4"],["B","ADD",53,36,"1/4"],["B","ADD",52,36,"1/4"],["B","ADD",37,36,"-2"],["B","ADD",37,36,"9/5"],["B","ADD",52,36,"-2/5"],["B","ADD",53,36,"-1/2"],["B","ADD",54,36,"-1/20"],["B","ADD",55,36,"-7/20"],["B","ADD",56,36,"-2/5"],["B","ADD",57,36,"-1/2"],["B","ADD",58,36,"-1/20"],["B","ADD",59,36,"-7/20"],["B","ADD",60,36,"-2/5"],["B","ADD",61,36,"-1/2"],["B","ADD",62,36,"-1/20"],["B","ADD",63,36,"-7/20"],["B","ADD",64,36,"-1/5"],["B","ADD",66,36,"-2/5"],["B","ADD",67,36,"7/40"],["B","SCALE",36,"-1/2"],["B","ADD",36,37,"-4"],["B","ADD",36,52,"-6"],["B","ADD",36,53,"20"],["B","ADD",36,54,"-54"],["B","ADD",36,55,"-14"],["B","ADD",36,56,"-6"],["B","ADD",36,57,"20"],["B","ADD",36,58,"-54"],["B","ADD",36,59,"-14"],["B","ADD",36,60,"-6"],["B","ADD",36,61,"20"],["B","ADD",36,62,"-54"],["B","ADD",36,63,"-14"],["B","ADD",36,64,"-6"],["B","ADD",36,65,"20"],["B","ADD",36,66,"40"],["B","ADD",36,67,"100"],["B","IDLE_ONE",36,[9]],["B","ADD",36,67,"-100"],["B","ADD",36,66,"-40"],["B","ADD",36,65,"-20"],["B","ADD",36,64,"6"],["B","ADD",36,63,"14"],["B","ADD",36,62,"54"],["B","ADD",36,61,"-20"],["B","ADD",36,60,"6"],["B","ADD",36,59,"14"],["B","ADD",36,58,"54"],["B","ADD",36,57,"-20"],["B","ADD",36,56,"6"],["B","ADD",36,55,"14"],["B","ADD",36,54,"54"],["B","ADD",36,53,"-20"],["B","ADD",36,52,"6"],["B","ADD",36,37,"4"],["B","SCALE",36,"-2"],["B","ADD",67,36,"-7/40"],["B","ADD",66,36,"2/5"],["B","ADD",64,36,"1/5"],["B","ADD",63,36,"7/20"],["B","ADD",62,36,"1/20"],["B","ADD",61,36,"1/2"],["B","ADD",60,36,"2/5"],["B","ADD",59,36,"7/20"],["B","ADD",58,36,"1/20"],["B","ADD",57,36,"1/2"],["B","ADD",56,36,"2/5"],["B","ADD",55,36,"7/20"],["B","ADD",54,36,"1/20"],["B","ADD",53,36,"1/2"],["B","ADD",52,36,"2/5"],["B","ADD",37,36,"-9/5"],["B","ADD",36,54,"-52/3"],["B","ADD",37,54,"92/3"],["B","ADD",52,54,"-22/3"],["B","ADD",53,54,"-28/3"],["B","ADD",55,54,"-19/3"],["B","ADD",56,54,"-22/3"],["B","ADD",57,54,"-28/3"],["B","ADD",58,54,"-1"],["B","ADD",59,54,"-19/3"],["B","ADD",60,54,"-22/3"],["B","ADD",61,54,"-28/3"],["B","ADD",62,54,"-1"],["B","ADD",63,54,"-19/3"],["B","ADD",64,54,"-8/3"],["B","ADD",65,54,"2/3"],["B","ADD",66,54,"-22/3"],["B","ADD",67,54,"3"],["B","SCALE",54,"-20/3"],["B","ADD",54,37,"2"],["B","ADD",54,52,"8"],["B","ADD",54,53,"-20"],["B","ADD",54,55,"12"],["B","ADD",54,56,"8"],["B","ADD",54,57,"-20"],["B","ADD",54,58,"52"],["B","ADD",54,59,"12"],["B","ADD",54,60,"8"],["B","ADD",54,61,"-20"],["B","ADD",54,62,"52"],["B","ADD",54,63,"12"],["B","ADD",54,64,"8"],["B","ADD",54,65,"-20"],["B","ADD",54,66,"-30"],["B","ADD",54,67,"-80"],["B","IDLE_ONE",54,[9]],["B","ADD",54,67,"80"],["B","ADD",54,66,"30"],["B","ADD",54,65,"20"],["B","ADD",54,64,"-8"],["B","ADD",54,63,"-12"],["B","ADD",54,62,"-52"],["B","ADD",54,61,"20"],["B","ADD",54,60,"-8"],["B","ADD",54,59,"-12"],["B","ADD",54,58,"-52"],["B","ADD",54,57,"20"],["B","ADD",54,56,"-8"],["B","ADD",54,55,"-12"],["B","ADD",54,53,"20"],["B","ADD",54,52,"-8"],["B","ADD",54,37,"-2"],["B","SCALE",54,"-3/20"],["B","ADD",67,54,"-3"],["B","ADD",66,54,"22/3"],["B","ADD",65,54,"-2/3"],["B","ADD",64,54,"8/3"],["B","ADD",63,54,"19/3"],["B","ADD",62,54,"1"],["B","ADD",61,54,"28/3"],["B","ADD",60,54,"22/3"],["B","ADD",59,54,"19/3"],["B","ADD",58,54,"1"],["B","ADD",57,54,"28/3"],["B","ADD",56,54,"22/3"],["B","ADD",55,54,"19/3"],["B","ADD",53,54,"28/3"],["B","ADD",52,54,"22/3"],["B","ADD",37,54,"-92/3"],["B","ADD",36,54,"52/3"],["B","IDLE_ODD",70,[9],-1],["B","IDLE_ODD",71,[9],-1],["B","ADD",37,36,"5/3"],["B","ADD",52,36,"-1/2"],["B","ADD",53,36,"-2/3"],["B","ADD",54,36,"-1/12"],["B","ADD",55,36,"-5/12"],["B","ADD",56,36,"-1/2"],["B","ADD",57,36,"-2/3"],["B","ADD",58,36,"-1/12"],["B","ADD",59,36,"-5/12"],["B","ADD",60,36,"-1/2"],["B","ADD",61,36,"-2/3"],["B","ADD",62,36,"-1/12"],["B","ADD",63,36,"-5/12"],["B","ADD",65,36,"1/6"],["B","ADD",66,36,"-2/3"],["B","ADD",67,36,"1/4"],["B","SCALE",36,"-1/3"],["B","ADD",36,37,"1"],["B","ADD",36,52,"-2"],["B","ADD",36,53,"2"],["B","ADD",36,54,"-4"],["B","ADD",36,56,"-2"],["B","ADD",36,57,"2"],["B","ADD",36,58,"-4"],["B","ADD",36,60,"-2"],["B","ADD",36,61,"2"],["B","ADD",36,62,"-4"],["B","ADD",36,64,"-2"],["B","ADD",36,65,"2"],["B","ADD",36,66,"-2"],["B","ADD",52,37,"-3/4"],["B","ADD",53,37,"-5/4"],["B","ADD",54,37,"-1/4"],["B","ADD",55,37,"-1/2"],["B","ADD",56,37,"-3/4"],["B","ADD",57,37,"-5/4"],["B","ADD",58,37,"-1/4"],["B","ADD",59,37,"-1/2"],["B","ADD",60,37,"-3/4"],["B","ADD",61,37,"-5/4"],["B","ADD",62,37,"-1/4"],["B","ADD",63,37,"-1/2"],["B","ADD",64,37,"3/2"],["B","ADD",65,37,"5/4"],["B","ADD",66,37,"-1/2"],["B","SCALE",37,"-3/4"],["B","ADD",37,53,"1"],["B","ADD",37,54,"-3"],["B","ADD",37,55,"-1"],["B","ADD",37,57,"1"],["B","ADD",37,58,"-3"],["B","ADD",37,59,"-1"],["B","ADD",37,61,"1"],["B","ADD",37,62,"-3"],["B","ADD",37,63,"-1"],["B","ADD",37,65,"1"],["B","ADD",37,66,"2"],["B","ADD",37,67,"4"],["B","SCALE",37,"1"],["B","ADD",37,36,"1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",9,0,"1"],["A","ADD",10,0,"2"],["A","ADD",11,0,"2"],["A","ADD",12,0,"2"],["A","ADD",13,0,"2"],["A","ADD",14,0,"2"],["A","ADD",15,0,"2"],["A","ADD",16,0,"2"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",27,18,"1"],["A","ADD",28,18,"2"],["A","ADD",29,18,"2"],["A","ADD",30,18,"2"],["A","ADD",31,18,"2"],["A","ADD",32,18,"2"],["A","ADD",33,18,"2"],["A","ADD",34,18,"2"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",9,1],["A","LAMBDA",27,-1],["A","SCALE",27,"-1"],["J",9,[9,0,18,27],[36,37,"-1","1/2"]],["A","LAMBDA",9,-1],["A","LAMBDA",27,1],["A","SCALE",27,"-1"],["A","ADD",0,9,"-1"],["A","ADD",18,27,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-2"],["A","ADD",33,18,"-2"],["A","ADD",32,18,"-2"],["A","ADD",31,18,"-2"],["A","ADD",30,18,"-2"],["A","ADD",29,18,"-2"],["A","ADD",28,18,"-2"],["A","ADD",27,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-2"],["A","ADD",15,0,"-2"],["A","ADD",14,0,"-2"],["A","ADD",13,0,"-2"],["A","ADD",12,0,"-2"],["A","ADD",11,0,"-2"],["A","ADD",10,0,"-2"],["A","ADD",9,0,"-1"],["B","LAMBDA",36,-1],["B","ADD",37,36,"-1/2"],["B","SCALE",37,"1"],["B","ADD",37,67,"-4"],["B","ADD",37,66,"-2"],["B","ADD",37,65,"-1"],["B","ADD",37,63,"1"],["B","ADD",37,62,"3"],["B","ADD",37,61,"-1"],["B","ADD",37,59,"1"],["B","ADD",37,58,"3"],["B","ADD",37,57,"-1"],["B","ADD",37,55,"1"],["B","ADD",37,54,"3"],["B","ADD",37,53,"-1"],["B","SCALE",37,"-4/3"],["B","ADD",66,37,"1/2"],["B","ADD",65,37,"-5/4"],["B","ADD",64,37,"-3/2"],["B","ADD",63,37,"1/2"],["B","ADD",62,37,"1/4"],["B","ADD",61,37,"5/4"],["B","ADD",60,37,"3/4"],["B","ADD",59,37,"1/2"],["B","ADD",58,37,"1/4"],["B","ADD",57,37,"5/4"],["B","ADD",56,37,"3/4"],["B","ADD",55,37,"1/2"],["B","ADD",54,37,"1/4"],["B","ADD",53,37,"5/4"],["B","ADD",52,37,"3/4"],["B","ADD",36,66,"2"],["B","ADD",36,65,"-2"],["B","ADD",36,64,"2"],["B","ADD",36,62,"4"],["B","ADD",36,61,"-2"],["B","ADD",36,60,"2"],["B","ADD",36,58,"4"],["B","ADD",36,57,"-2"],["B","ADD",36,56,"2"],["B","ADD",36,54,"4"],["B","ADD",36,53,"-2"],["B","ADD",36,52,"2"],["B","ADD",36,37,"-1"],["B","SCALE",36,"-3"],["B","ADD",67,36,"-1/4"],["B","ADD",66,36,"2/3"],["B","ADD",65,36,"-1/6"],["B","ADD",63,36,"5/12"],["B","ADD",62,36,"1/12"],["B","ADD",61,36,"2/3"],["B","ADD",60,36,"1/2"],["B","ADD",59,36,"5/12"],["B","ADD",58,36,"1/12"],["B","ADD",57,36,"2/3"],["B","ADD",56,36,"1/2"],["B","ADD",55,36,"5/12"],["B","ADD",54,36,"1/12"],["B","ADD",53,36,"2/3"],["B","ADD",52,36,"1/2"],["B","ADD",37,36,"-5/3"],["B","ADD",37,36,"7/5"],["B","ADD",52,36,"-7/10"],["B","ADD",53,36,"-1"],["B","ADD",54,36,"-3/20"],["B","ADD",55,36,"-11/20"],["B","ADD",56,36,"-7/10"],["B","ADD",57,36,"-1"],["B","ADD",58,36,"-3/20"],["B","ADD",59,36,"-11/20"],["B","ADD",60,36,"-7/10"],["B","ADD",61,36,"-1"],["B","ADD",62,36,"-3/20"],["B","ADD",63,36,"-11/20"],["B","ADD",64,36,"2/5"],["B","ADD",65,36,"1/2"],["B","ADD",66,36,"-3/5"],["B","ADD",67,36,"1/5"],["B","SCALE",36,"-2"],["B","ADD",36,37,"-69"],["B","ADD",36,52,"-296"],["B","ADD",36,53,"730"],["B","ADD",36,54,"-1894"],["B","ADD",36,55,"-434"],["B","ADD",36,56,"-296"],["B","ADD",36,57,"730"],["B","ADD",36,58,"-1894"],["B","ADD",36,59,"-434"],["B","ADD",36,60,"-296"],["B","ADD",36,61,"730"],["B","ADD",36,62,"-1894"],["B","ADD",36,63,"-434"],["B","ADD",36,64,"-296"],["B","ADD",36,65,"730"],["B","ADD",36,66,"710"],["B","ADD",36,67,"1440"],["B","IDLE_ONE",36,[10]],["B","ADD",36,67,"-1440"],["B","ADD",36,66,"-710"],["B","ADD",36,65,"-730"],["B","ADD",36,64,"296"],["B","ADD",36,63,"434"],["B","ADD",36,62,"1894"],["B","ADD",36,61,"-730"],["B","ADD",36,60,"296"],["B","ADD",36,59,"434"],["B","ADD",36,58,"1894"],["B","ADD",36,57,"-730"],["B","ADD",36,56,"296"],["B","ADD",36,55,"434"],["B","ADD",36,54,"1894"],["B","ADD",36,53,"-730"],["B","ADD",36,52,"296"],["B","ADD",36,37,"69"],["B","SCALE",36,"-1/2"],["B","ADD",67,36,"-1/5"],["B","ADD",66,36,"3/5"],["B","ADD",65,36,"-1/2"],["B","ADD",64,36,"-2/5"],["B","ADD",63,36,"11/20"],["B","ADD",62,36,"3/20"],["B","ADD",61,36,"1"],["B","ADD",60,36,"7/10"],["B","ADD",59,36,"11/20"],["B","ADD",58,36,"3/20"],["B","ADD",57,36,"1"],["B","ADD",56,36,"7/10"],["B","ADD",55,36,"11/20"],["B","ADD",54,36,"3/20"],["B","ADD",53,36,"1"],["B","ADD",52,36,"7/10"],["B","ADD",37,36,"-7/5"],["B","ADD",36,55,"-11/6"],["B","ADD",37,55,"31/12"],["B","ADD",52,55,"-61/48"],["B","ADD",53,55,"-29/16"],["B","ADD",54,55,"-13/48"],["B","ADD",56,55,"-61/48"],["B","ADD",57,55,"-29/16"],["B","ADD",58,55,"-13/48"],["B","ADD",59,55,"-1"],["B","ADD",60,55,"-61/48"],["B","ADD",61,55,"-29/16"],["B","ADD",62,55,"-13/48"],["B","ADD",63,55,"-1"],["B","ADD",64,55,"17/24"],["B","ADD",65,55,"43/48"],["B","ADD",66,55,"-53/48"],["B","ADD",67,55,"143/384"],["B","SCALE",55,"5/48"],["B","ADD",55,37,"-2"],["B","ADD",55,52,"-8"],["B","ADD",55,53,"20"],["B","ADD",55,54,"-52"],["B","ADD",55,56,"-8"],["B","ADD",55,57,"20"],["B","ADD",55,58,"-52"],["B","ADD",55,59,"-12"],["B","ADD",55,60,"-8"],["B","ADD",55,61,"20"],["B","ADD",55,62,"-52"],["B","ADD",55,63,"-12"],["B","ADD",55,64,"-8"],["B","ADD",55,65,"20"],["B","ADD",55,66,"20"],["B","ADD",55,67,"40"],["B","IDLE_ONE",55,[10]],["B","ADD",55,67,"-40"],["B","ADD",55,66,"-20"],["B","ADD",55,65,"-20"],["B","ADD",55,64,"8"],["B","ADD",55,63,"12"],["B","ADD",55,62,"52"],["B","ADD",55,61,"-20"],["B","ADD",55,60,"8"],["B","ADD",55,59,"12"],["B","ADD",55,58,"52"],["B","ADD",55,57,"-20"],["B","ADD",55,56,"8"],["B","ADD",55,54,"52"],["B","ADD",55,53,"-20"],["B","ADD",55,52,"8"],["B","ADD",55,37,"2"],["B","SCALE",55,"48/5"],["B","ADD",67,55,"-143/384"],["B","ADD",66,55,"53/48"],["B","ADD",65,55,"-43/48"],["B","ADD",64,55,"-17/24"],["B","ADD",63,55,"1"],["B","ADD",62,55,"13/48"],["B","ADD",61,55,"29/16"],["B","ADD",60,55,"61/48"],["B","ADD",59,55,"1"],["B","ADD",58,55,"13/48"],["B","ADD",57,55,"29/16"],["B","ADD",56,55,"61/48"],["B","ADD",54,55,"13/48"],["B","ADD",53,55,"29/16"],["B","ADD",52,55,"61/48"],["B","ADD",37,55,"-31/12"],["B","ADD",36,55,"11/6"],["B","ADD",37,36,"3"],["B","ADD",52,36,"1/2"],["B","ADD",53,36,"1"],["B","ADD",54,36,"1/4"],["B","ADD",55,36,"1/4"],["B","ADD",56,36,"1/2"],["B","ADD",57,36,"1"],["B","ADD",58,36,"1/4"],["B","ADD",59,36,"1/4"],["B","ADD",60,36,"1/2"],["B","ADD",61,36,"1"],["B","ADD",62,36,"1/4"],["B","ADD",63,36,"1/4"],["B","ADD",64,36,"-2"],["B","ADD",65,36,"-3/2"],["B","ADD",67,36,"1/2"],["B","SCALE",36,"2"],["B","ADD",36,52,"4"],["B","ADD",36,53,"-8"],["B","ADD",36,54,"20"],["B","ADD",36,55,"4"],["B","ADD",36,56,"4"],["B","ADD",36,57,"-8"],["B","ADD",36,58,"20"],["B","ADD",36,59,"4"],["B","ADD",36,60,"4"],["B","ADD",36,61,"-8"],["B","ADD",36,62,"20"],["B","ADD",36,63,"4"],["B","ADD",36,64,"4"],["B","ADD",36,65,"-8"],["B","ADD",36,66,"-6"],["B","ADD",36,67,"-16"],["B","ADD",52,37,"-3/4"],["B","ADD",53,37,"-5/4"],["B","ADD",54,37,"-1/4"],["B","ADD",55,37,"-1/2"],["B","ADD",56,37,"-3/4"],["B","ADD",57,37,"-5/4"],["B","ADD",58,37,"-1/4"],["B","ADD",59,37,"-1/2"],["B","ADD",60,37,"-3/4"],["B","ADD",61,37,"-5/4"],["B","ADD",62,37,"-1/4"],["B","ADD",63,37,"-1/2"],["B","ADD",64,37,"3/2"],["B","ADD",65,37,"5/4"],["B","ADD",66,37,"-1/4"],["B","ADD",67,37,"-1/4"],["B","SCALE",37,"1/8"],["B","ADD",37,52,"-2"],["B","ADD",37,53,"7/2"],["B","ADD",37,54,"-17/2"],["B","ADD",37,55,"-3/2"],["B","ADD",37,56,"-2"],["B","ADD",37,57,"7/2"],["B","ADD",37,58,"-17/2"],["B","ADD",37,59,"-3/2"],["B","ADD",37,60,"-2"],["B","ADD",37,61,"7/2"],["B","ADD",37,62,"-17/2"],["B","ADD",37,63,"-3/2"],["B","ADD",37,64,"-2"],["B","ADD",37,65,"7/2"],["B","ADD",37,66,"1"],["B","ADD",37,67,"4"],["B","SCALE",37,"-2"],["B","ADD",37,36,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",10,0,"1"],["A","ADD",11,0,"2"],["A","ADD",12,0,"2"],["A","ADD",13,0,"2"],["A","ADD",14,0,"2"],["A","ADD",15,0,"2"],["A","ADD",16,0,"2"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",28,18,"1"],["A","ADD",29,18,"2"],["A","ADD",30,18,"2"],["A","ADD",31,18,"2"],["A","ADD",32,18,"2"],["A","ADD",33,18,"2"],["A","ADD",34,18,"2"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",10,1],["A","LAMBDA",28,-1],["A","SCALE",28,"-1"],["J",10,[10,0,18,28],[36,37,"-1","1/2"]],["A","LAMBDA",10,-1],["A","LAMBDA",28,1],["A","SCALE",28,"-1"],["A","ADD",0,10,"-1"],["A","ADD",18,28,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-2"],["A","ADD",33,18,"-2"],["A","ADD",32,18,"-2"],["A","ADD",31,18,"-2"],["A","ADD",30,18,"-2"],["A","ADD",29,18,"-2"],["A","ADD",28,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-2"],["A","ADD",15,0,"-2"],["A","ADD",14,0,"-2"],["A","ADD",13,0,"-2"],["A","ADD",12,0,"-2"],["A","ADD",11,0,"-2"],["A","ADD",10,0,"-1"],["B","LAMBDA",36,-1],["B","ADD",37,36,"1/2"],["B","SCALE",37,"-1/2"],["B","ADD",37,67,"-4"],["B","ADD",37,66,"-1"],["B","ADD",37,65,"-7/2"],["B","ADD",37,64,"2"],["B","ADD",37,63,"3/2"],["B","ADD",37,62,"17/2"],["B","ADD",37,61,"-7/2"],["B","ADD",37,60,"2"],["B","ADD",37,59,"3/2"],["B","ADD",37,58,"17/2"],["B","ADD",37,57,"-7/2"],["B","ADD",37,56,"2"],["B","ADD",37,55,"3/2"],["B","ADD",37,54,"17/2"],["B","ADD",37,53,"-7/2"],["B","ADD",37,52,"2"],["B","SCALE",37,"8"],["B","ADD",67,37,"1/4"],["B","ADD",66,37,"1/4"],["B","ADD",65,37,"-5/4"],["B","ADD",64,37,"-3/2"],["B","ADD",63,37,"1/2"],["B","ADD",62,37,"1/4"],["B","ADD",61,37,"5/4"],["B","ADD",60,37,"3/4"],["B","ADD",59,37,"1/2"],["B","ADD",58,37,"1/4"],["B","ADD",57,37,"5/4"],["B","ADD",56,37,"3/4"],["B","ADD",55,37,"1/2"],["B","ADD",54,37,"1/4"],["B","ADD",53,37,"5/4"],["B","ADD",52,37,"3/4"],["B","ADD",36,67,"16"],["B","ADD",36,66,"6"],["B","ADD",36,65,"8"],["B","ADD",36,64,"-4"],["B","ADD",36,63,"-4"],["B","ADD",36,62,"-20"],["B","ADD",36,61,"8"],["B","ADD",36,60,"-4"],["B","ADD",36,59,"-4"],["B","ADD",36,58,"-20"],["B","ADD",36,57,"8"],["B","ADD",36,56,"-4"],["B","ADD",36,55,"-4"],["B","ADD",36,54,"-20"],["B","ADD",36,53,"8"],["B","ADD",36,52,"-4"],["B","SCALE",36,"1/2"],["B","ADD",67,36,"-1/2"],["B","ADD",65,36,"3/2"],["B","ADD",64,36,"2"],["B","ADD",63,36,"-1/4"],["B","ADD",62,36,"-1/4"],["B","ADD",61,36,"-1"],["B","ADD",60,36,"-1/2"],["B","ADD",59,36,"-1/4"],["B","ADD",58,36,"-1/4"],["B","ADD",57,36,"-1"],["B","ADD",56,36,"-1/2"],["B","ADD",55,36,"-1/4"],["B","ADD",54,36,"-1/4"],["B","ADD",53,36,"-1"],["B","ADD",52,36,"-1/2"],["B","ADD",37,36,"-3"],["B","ADD",37,36,"2/3"],["B","ADD",52,36,"-5/4"],["B","ADD",53,36,"-23/12"],["B","ADD",54,36,"-1/3"],["B","ADD",55,36,"-11/12"],["B","ADD",56,36,"-5/4"],["B","ADD",57,36,"-23/12"],["B","ADD",58,36,"-1/3"],["B","ADD",59,36,"-11/12"],["B","ADD",60,36,"-5/4"],["B","ADD",61,36,"-23/12"],["B","ADD",62,36,"-1/3"],["B","ADD",63,36,"-11/12"],["B","ADD",64,36,"-1/3"],["B","SCALE",36,"2/3"],["B","ADD",36,37,"-12"],["B","ADD",36,52,"-52"],["B","ADD",36,53,"128"],["B","ADD",36,54,"-332"],["B","ADD",36,55,"-76"],["B","ADD",36,56,"-52"],["B","ADD",36,57,"128"],["B","ADD",36,58,"-332"],["B","ADD",36,59,"-76"],["B","ADD",36,60,"-52"],["B","ADD",36,61,"128"],["B","ADD",36,62,"-332"],["B","ADD",36,63,"-76"],["B","ADD",36,64,"-28"],["B","ADD",36,65,"76"],["B","IDLE_ONE",36,[11]],["B","ADD",36,65,"-76"],["B","ADD",36,64,"28"],["B","ADD",36,63,"76"],["B","ADD",36,62,"332"],["B","ADD",36,61,"-128"],["B","ADD",36,60,"52"],["B","ADD",36,59,"76"],["B","ADD",36,58,"332"],["B","ADD",36,57,"-128"],["B","ADD",36,56,"52"],["B","ADD",36,55,"76"],["B","ADD",36,54,"332"],["B","ADD",36,53,"-128"],["B","ADD",36,52,"52"],["B","ADD",36,37,"12"],["B","SCALE",36,"3/2"],["B","ADD",64,36,"1/3"],["B","ADD",63,36,"11/12"],["B","ADD",62,36,"1/3"],["B","ADD",61,36,"23/12"],["B","ADD",60,36,"5/4"],["B","ADD",59,36,"11/12"],["B","ADD",58,36,"1/3"],["B","ADD",57,36,"23/12"],["B","ADD",56,36,"5/4"],["B","ADD",55,36,"11/12"],["B","ADD",54,36,"1/3"],["B","ADD",53,36,"23/12"],["B","ADD",52,36,"5/4"],["B","ADD",37,36,"-2/3"],["B","ADD",36,53,"-14/27"],["B","ADD",37,53,"46/135"],["B","ADD",52,53,"-88/135"],["B","ADD",54,53,"-47/270"],["B","ADD",55,53,"-43/90"],["B","ADD",56,53,"-88/135"],["B","ADD",57,53,"-1"],["B","ADD",58,53,"-47/270"],["B","ADD",59,53,"-43/90"],["B","ADD",60,53,"-88/135"],["B","ADD",61,53,"-1"],["B","ADD",62,53,"-47/270"],["B","ADD",63,53,"-43/90"],["B","ADD",64,53,"-22/135"],["B","ADD",65,53,"1/135"],["B","SCALE",53,"-4/135"],["B","ADD",53,37,"-1"],["B","ADD",53,52,"-4"],["B","ADD",53,54,"-26"],["B","ADD",53,55,"-6"],["B","ADD",53,56,"-4"],["B","ADD",53,57,"10"],["B","ADD",53,58,"-26"],["B","ADD",53,59,"-6"],["B","ADD",53,60,"-4"],["B","ADD",53,61,"10"],["B","ADD",53,62,"-26"],["B","ADD",53,63,"-6"],["B","ADD",53,64,"-2"],["B","ADD",53,65,"6"],["B","IDLE_ONE",53,[11]],["B","ADD",53,65,"-6"],["B","ADD",53,64,"2"],["B","ADD",53,63,"6"],["B","ADD",53,62,"26"],["B","ADD",53,61,"-10"],["B","ADD",53,60,"4"],["B","ADD",53,59,"6"],["B","ADD",53,58,"26"],["B","ADD",53,57,"-10"],["B","ADD",53,56,"4"],["B","ADD",53,55,"6"],["B","ADD",53,54,"26"],["B","ADD",53,52,"4"],["B","ADD",53,37,"1"],["B","SCALE",53,"-135/4"],["B","ADD",65,53,"-1/135"],["B","ADD",64,53,"22/135"],["B","ADD",63,53,"43/90"],["B","ADD",62,53,"47/270"],["B","ADD",61,53,"1"],["B","ADD",60,53,"88/135"],["B","ADD",59,53,"43/90"],["B","ADD",58,53,"47/270"],["B","ADD",57,53,"1"],["B","ADD",56,53,"88/135"],["B","ADD",55,53,"43/90"],["B","ADD",54,53,"47/270"],["B","ADD",52,53,"88/135"],["B","ADD",37,53,"-46/135"],["B","ADD",36,53,"14/27"],["B","ADD",37,36,"3"],["B","ADD",52,36,"1/2"],["B","ADD",53,36,"1"],["B","ADD",54,36,"1/4"],["B","ADD",55,36,"1/4"],["B","ADD",56,36,"1/2"],["B","ADD",57,36,"1"],["B","ADD",58,36,"1/4"],["B","ADD",59,36,"1/4"],["B","ADD",60,36,"1/2"],["B","ADD",61,36,"1"],["B","ADD",62,36,"1/4"],["B","ADD",63,36,"1/4"],["B","ADD",65,36,"1/2"],["B","SCALE",36,"-2"],["B","ADD",36,52,"-4"],["B","ADD",36,53,"8"],["B","ADD",36,54,"-20"],["B","ADD",36,55,"-4"],["B","ADD",36,56,"-4"],["B","ADD",36,57,"8"],["B","ADD",36,58,"-20"],["B","ADD",36,59,"-4"],["B","ADD",36,60,"-4"],["B","ADD",36,61,"8"],["B","ADD",36,62,"-20"],["B","ADD",36,63,"-4"],["B","ADD",36,64,"-6"],["B","ADD",36,65,"8"],["B","ADD",52,37,"-3/4"],["B","ADD",53,37,"-5/4"],["B","ADD",54,37,"-1/4"],["B","ADD",55,37,"-1/2"],["B","ADD",56,37,"-3/4"],["B","ADD",57,37,"-5/4"],["B","ADD",58,37,"-1/4"],["B","ADD",59,37,"-1/2"],["B","ADD",60,37,"-3/4"],["B","ADD",61,37,"-5/4"],["B","ADD",62,37,"-1/4"],["B","ADD",63,37,"-1/2"],["B","ADD",64,37,"-1/4"],["B","ADD",65,37,"-1/4"],["B","SCALE",37,"-1/8"],["B","ADD",37,52,"-2"],["B","ADD",37,53,"9/2"],["B","ADD",37,54,"-23/2"],["B","ADD",37,55,"-5/2"],["B","ADD",37,56,"-2"],["B","ADD",37,57,"9/2"],["B","ADD",37,58,"-23/2"],["B","ADD",37,59,"-5/2"],["B","ADD",37,60,"-2"],["B","ADD",37,61,"9/2"],["B","ADD",37,62,"-23/2"],["B","ADD",37,63,"-5/2"],["B","ADD",37,64,"-2"],["B","ADD",37,65,"5/2"],["B","SCALE",37,"2"],["B","ADD",37,36,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",11,0,"1"],["A","ADD",12,0,"2"],["A","ADD",13,0,"2"],["A","ADD",14,0,"2"],["A","ADD",15,0,"2"],["A","ADD",16,0,"2"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",29,18,"1"],["A","ADD",30,18,"2"],["A","ADD",31,18,"2"],["A","ADD",32,18,"2"],["A","ADD",33,18,"2"],["A","ADD",34,18,"2"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",11,1],["A","LAMBDA",29,-1],["A","SCALE",29,"-1"],["J",11,[11,0,18,29],[36,37,"-1","1/2"]],["A","LAMBDA",11,-1],["A","LAMBDA",29,1],["A","SCALE",29,"-1"],["A","ADD",0,11,"-1"],["A","ADD",18,29,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-2"],["A","ADD",33,18,"-2"],["A","ADD",32,18,"-2"],["A","ADD",31,18,"-2"],["A","ADD",30,18,"-2"],["A","ADD",29,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-2"],["A","ADD",15,0,"-2"],["A","ADD",14,0,"-2"],["A","ADD",13,0,"-2"],["A","ADD",12,0,"-2"],["A","ADD",11,0,"-1"],["B","LAMBDA",36,-1],["B","ADD",37,36,"1/2"],["B","SCALE",37,"1/2"],["B","ADD",37,65,"-5/2"],["B","ADD",37,64,"2"],["B","ADD",37,63,"5/2"],["B","ADD",37,62,"23/2"],["B","ADD",37,61,"-9/2"],["B","ADD",37,60,"2"],["B","ADD",37,59,"5/2"],["B","ADD",37,58,"23/2"],["B","ADD",37,57,"-9/2"],["B","ADD",37,56,"2"],["B","ADD",37,55,"5/2"],["B","ADD",37,54,"23/2"],["B","ADD",37,53,"-9/2"],["B","ADD",37,52,"2"],["B","SCALE",37,"-8"],["B","ADD",65,37,"1/4"],["B","ADD",64,37,"1/4"],["B","ADD",63,37,"1/2"],["B","ADD",62,37,"1/4"],["B","ADD",61,37,"5/4"],["B","ADD",60,37,"3/4"],["B","ADD",59,37,"1/2"],["B","ADD",58,37,"1/4"],["B","ADD",57,37,"5/4"],["B","ADD",56,37,"3/4"],["B","ADD",55,37,"1/2"],["B","ADD",54,37,"1/4"],["B","ADD",53,37,"5/4"],["B","ADD",52,37,"3/4"],["B","ADD",36,65,"-8"],["B","ADD",36,64,"6"],["B","ADD",36,63,"4"],["B","ADD",36,62,"20"],["B","ADD",36,61,"-8"],["B","ADD",36,60,"4"],["B","ADD",36,59,"4"],["B","ADD",36,58,"20"],["B","ADD",36,57,"-8"],["B","ADD",36,56,"4"],["B","ADD",36,55,"4"],["B","ADD",36,54,"20"],["B","ADD",36,53,"-8"],["B","ADD",36,52,"4"],["B","SCALE",36,"-1/2"],["B","ADD",65,36,"-1/2"],["B","ADD",63,36,"-1/4"],["B","ADD",62,36,"-1/4"],["B","ADD",61,36,"-1"],["B","ADD",60,36,"-1/2"],["B","ADD",59,36,"-1/4"],["B","ADD",58,36,"-1/4"],["B","ADD",57,36,"-1"],["B","ADD",56,36,"-1/2"],["B","ADD",55,36,"-1/4"],["B","ADD",54,36,"-1/4"],["B","ADD",53,36,"-1"],["B","ADD",52,36,"-1/2"],["B","ADD",37,36,"-3"],["B","ADD",36,52,"14"],["B","ADD",37,52,"-34"],["B","ADD",53,52,"-4"],["B","ADD",54,52,"-3/2"],["B","ADD",55,52,"1/2"],["B","ADD",56,52,"-1"],["B","ADD",57,52,"-4"],["B","ADD",58,52,"-3/2"],["B","ADD",59,52,"1/2"],["B","ADD",60,52,"-1"],["B","ADD",61,52,"-4"],["B","ADD",62,52,"-1/2"],["B","ADD",63,52,"1"],["B","SCALE",52,"-1"],["B","ADD",52,36,"1"],["B","ADD",52,37,"1"],["B","ADD",52,53,"-6"],["B","ADD",52,54,"16"],["B","ADD",52,55,"4"],["B","ADD",52,56,"2"],["B","ADD",52,57,"-6"],["B","ADD",52,58,"16"],["B","ADD",52,59,"4"],["B","ADD",52,60,"2"],["B","ADD",52,61,"-6"],["B","ADD",52,62,"14"],["B","ADD",52,63,"6"],["B","IDLE_ONE",52,[12]],["B","ADD",52,63,"-6"],["B","ADD",52,62,"-14"],["B","ADD",52,61,"6"],["B","ADD",52,60,"-2"],["B","ADD",52,59,"-4"],["B","ADD",52,58,"-16"],["B","ADD",52,57,"6"],["B","ADD",52,56,"-2"],["B","ADD",52,55,"-4"],["B","ADD",52,54,"-16"],["B","ADD",52,53,"6"],["B","ADD",52,37,"-1"],["B","ADD",52,36,"-1"],["B","SCALE",52,"-1"],["B","ADD",63,52,"-1"],["B","ADD",62,52,"1/2"],["B","ADD",61,52,"4"],["B","ADD",60,52,"1"],["B","ADD",59,52,"-1/2"],["B","ADD",58,52,"3/2"],["B","ADD",57,52,"4"],["B","ADD",56,52,"1"],["B","ADD",55,52,"-1/2"],["B","ADD",54,52,"3/2"],["B","ADD",53,52,"4"],["B","ADD",37,52,"34"],["B","ADD",36,52,"-14"],["B","ADD",37,36,"5/2"],["B","ADD",52,36,"1/8"],["B","ADD",53,36,"3/8"],["B","ADD",54,36,"1/8"],["B","ADD",56,36,"1/8"],["B","ADD",57,36,"3/8"],["B","ADD",58,36,"1/8"],["B","ADD",60,36,"1/8"],["B","ADD",61,36,"3/8"],["B","ADD",62,36,"1/16"],["B","ADD",63,36,"-1/16"],["B","SCALE",36,"1/8"],["B","ADD",36,37,"-1"],["B","ADD",36,52,"-4"],["B","ADD",36,53,"10"],["B","ADD",36,54,"-26"],["B","ADD",36,55,"-6"],["B","ADD",36,56,"-4"],["B","ADD",36,57,"10"],["B","ADD",36,58,"-26"],["B","ADD",36,59,"-6"],["B","ADD",36,60,"-4"],["B","ADD",36,61,"10"],["B","ADD",36,62,"-24"],["B","ADD",36,63,"-10"],["B","IDLE_ONE",36,[12]],["B","ADD",36,63,"10"],["B","ADD",36,62,"24"],["B","ADD",36,61,"-10"],["B","ADD",36,60,"4"],["B","ADD",36,59,"6"],["B","ADD",36,58,"26"],["B","ADD",36,57,"-10"],["B","ADD",36,56,"4"],["B","ADD",36,55,"6"],["B","ADD",36,54,"26"],["B","ADD",36,53,"-10"],["B","ADD",36,52,"4"],["B","ADD",36,37,"1"],["B","SCALE",36,"8"],["B","ADD",63,36,"1/16"],["B","ADD",62,36,"-1/16"],["B","ADD",61,36,"-3/8"],["B","ADD",60,36,"-1/8"],["B","ADD",58,36,"-1/8"],["B","ADD",57,36,"-3/8"],["B","ADD",56,36,"-1/8"],["B","ADD",54,36,"-1/8"],["B","ADD",53,36,"-3/8"],["B","ADD",52,36,"-1/8"],["B","ADD",37,36,"-5/2"],["B","SWAP",36,37],["B","ADD",52,36,"-3/4"],["B","ADD",53,36,"-5/4"],["B","ADD",54,36,"-1/4"],["B","ADD",55,36,"-1/2"],["B","ADD",56,36,"-3/4"],["B","ADD",57,36,"-5/4"],["B","ADD",58,36,"-1/4"],["B","ADD",59,36,"-1/2"],["B","ADD",60,36,"-3/4"],["B","ADD",61,36,"-5/4"],["B","ADD",62,36,"-1/4"],["B","ADD",63,36,"-1/4"],["B","SCALE",36,"-1/2"],["B","ADD",36,37,"1/2"],["B","ADD",36,52,"1"],["B","ADD",36,53,"-3"],["B","ADD",36,54,"8"],["B","ADD",36,55,"2"],["B","ADD",36,56,"1"],["B","ADD",36,57,"-3"],["B","ADD",36,58,"8"],["B","ADD",36,59,"2"],["B","ADD",36,60,"1"],["B","ADD",36,61,"-3"],["B","ADD",36,62,"6"],["B","ADD",36,63,"2"],["B","ADD",52,37,"-7/4"],["B","ADD",53,37,"-11/4"],["B","ADD",54,37,"-1/2"],["B","ADD",55,37,"-5/4"],["B","ADD",56,37,"-7/4"],["B","ADD",57,37,"-11/4"],["B","ADD",58,37,"-1/2"],["B","ADD",59,37,"-5/4"],["B","ADD",60,37,"-7/4"],["B","ADD",61,37,"-11/4"],["B","ADD",62,37,"-3/4"],["B","ADD",63,37,"-1/4"],["B","SCALE",37,"1/2"],["B","ADD",37,52,"-1"],["B","ADD",37,53,"1"],["B","ADD",37,54,"-2"],["B","ADD",37,56,"-1"],["B","ADD",37,57,"1"],["B","ADD",37,58,"-2"],["B","ADD",37,60,"-1"],["B","ADD",37,61,"1"],["B","ADD",37,62,"-2"],["B","ADD",37,63,"-2"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",12,0,"1"],["A","ADD",13,0,"2"],["A","ADD",14,0,"2"],["A","ADD",15,0,"2"],["A","ADD",16,0,"2"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",30,18,"1"],["A","ADD",31,18,"2"],["A","ADD",32,18,"2"],["A","ADD",33,18,"2"],["A","ADD",34,18,"2"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",12,1],["A","LAMBDA",30,-1],["A","SCALE",30,"-1"],["J",12,[12,0,18,30],[36,37,"-1","1/2"]],["A","LAMBDA",12,-1],["A","LAMBDA",30,1],["A","SCALE",30,"-1"],["A","ADD",0,12,"-1"],["A","ADD",18,30,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-2"],["A","ADD",33,18,"-2"],["A","ADD",32,18,"-2"],["A","ADD",31,18,"-2"],["A","ADD",30,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-2"],["A","ADD",15,0,"-2"],["A","ADD",14,0,"-2"],["A","ADD",13,0,"-2"],["A","ADD",12,0,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"-2"],["B","ADD",37,63,"2"],["B","ADD",37,62,"2"],["B","ADD",37,61,"-1"],["B","ADD",37,60,"1"],["B","ADD",37,58,"2"],["B","ADD",37,57,"-1"],["B","ADD",37,56,"1"],["B","ADD",37,54,"2"],["B","ADD",37,53,"-1"],["B","ADD",37,52,"1"],["B","SCALE",37,"2"],["B","ADD",63,37,"1/4"],["B","ADD",62,37,"3/4"],["B","ADD",61,37,"11/4"],["B","ADD",60,37,"7/4"],["B","ADD",59,37,"5/4"],["B","ADD",58,37,"1/2"],["B","ADD",57,37,"11/4"],["B","ADD",56,37,"7/4"],["B","ADD",55,37,"5/4"],["B","ADD",54,37,"1/2"],["B","ADD",53,37,"11/4"],["B","ADD",52,37,"7/4"],["B","ADD",36,63,"-2"],["B","ADD",36,62,"-6"],["B","ADD",36,61,"3"],["B","ADD",36,60,"-1"],["B","ADD",36,59,"-2"],["B","ADD",36,58,"-8"],["B","ADD",36,57,"3"],["B","ADD",36,56,"-1"],["B","ADD",36,55,"-2"],["B","ADD",36,54,"-8"],["B","ADD",36,53,"3"],["B","ADD",36,52,"-1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-2"],["B","ADD",63,36,"1/4"],["B","ADD",62,36,"1/4"],["B","ADD",61,36,"5/4"],["B","ADD",60,36,"3/4"],["B","ADD",59,36,"1/2"],["B","ADD",58,36,"1/4"],["B","ADD",57,36,"5/4"],["B","ADD",56,36,"3/4"],["B","ADD",55,36,"1/2"],["B","ADD",54,36,"1/4"],["B","ADD",53,36,"5/4"],["B","ADD",52,36,"3/4"],["B","SWAP",36,37],["B","ADD",37,36,"7/4"],["B","ADD",52,36,"-7/16"],["B","ADD",53,36,"-9/16"],["B","ADD",54,36,"-1/16"],["B","ADD",55,36,"-3/8"],["B","ADD",56,36,"-7/16"],["B","ADD",57,36,"-9/16"],["B","ADD",58,36,"-1/16"],["B","ADD",59,36,"-3/8"],["B","ADD",60,36,"-1/8"],["B","ADD",61,36,"1/4"],["B","SCALE",36,"-1/4"],["B","ADD",36,52,"2"],["B","ADD",36,53,"-4"],["B","ADD",36,54,"10"],["B","ADD",36,55,"2"],["B","ADD",36,56,"2"],["B","ADD",36,57,"-4"],["B","ADD",36,58,"10"],["B","ADD",36,59,"2"],["B","ADD",36,60,"2"],["B","ADD",36,61,"-2"],["B","IDLE_ONE",36,[13]],["B","ADD",36,61,"2"],["B","ADD",36,60,"-2"],["B","ADD",36,59,"-2"],["B","ADD",36,58,"-10"],["B","ADD",36,57,"4"],["B","ADD",36,56,"-2"],["B","ADD",36,55,"-2"],["B","ADD",36,54,"-10"],["B","ADD",36,53,"4"],["B","ADD",36,52,"-2"],["B","SCALE",36,"-4"],["B","ADD",61,36,"-1/4"],["B","ADD",60,36,"1/8"],["B","ADD",59,36,"3/8"],["B","ADD",58,36,"1/16"],["B","ADD",57,36,"9/16"],["B","ADD",56,36,"7/16"],["B","ADD",55,36,"3/8"],["B","ADD",54,36,"1/16"],["B","ADD",53,36,"9/16"],["B","ADD",52,36,"7/16"],["B","ADD",37,36,"-7/4"],["B","ADD",37,36,"2"],["B","ADD",52,36,"-1/4"],["B","ADD",53,36,"-1/4"],["B","ADD",55,36,"-1/4"],["B","ADD",56,36,"-1/4"],["B","ADD",57,36,"-1/4"],["B","ADD",59,36,"-1/4"],["B","ADD",61,36,"1/2"],["B","ADD",36,37,"1"],["B","ADD",36,52,"4"],["B","ADD",36,53,"-10"],["B","ADD",36,54,"26"],["B","ADD",36,55,"6"],["B","ADD",36,56,"4"],["B","ADD",36,57,"-10"],["B","ADD",36,58,"26"],["B","ADD",36,59,"6"],["B","ADD",36,60,"2"],["B","ADD",36,61,"-6"],["B","IDLE_ONE",36,[13]],["B","ADD",36,61,"6"],["B","ADD",36,60,"-2"],["B","ADD",36,59,"-6"],["B","ADD",36,58,"-26"],["B","ADD",36,57,"10"],["B","ADD",36,56,"-4"],["B","ADD",36,55,"-6"],["B","ADD",36,54,"-26"],["B","ADD",36,53,"10"],["B","ADD",36,52,"-4"],["B","ADD",36,37,"-1"],["B","ADD",61,36,"-1/2"],["B","ADD",59,36,"1/4"],["B","ADD",57,36,"1/4"],["B","ADD",56,36,"1/4"],["B","ADD",55,36,"1/4"],["B","ADD",53,36,"1/4"],["B","ADD",52,36,"1/4"],["B","ADD",37,36,"-2"],["B","ADD",37,36,"2"],["B","ADD",52,36,"-1/4"],["B","ADD",53,36,"-1/4"],["B","ADD",55,36,"-1/4"],["B","ADD",56,36,"-1/4"],["B","ADD",57,36,"-1/4"],["B","ADD",59,36,"-1/4"],["B","ADD",60,36,"-1/4"],["B","ADD",61,36,"1/4"],["B","SCALE",36,"-1/2"],["B","ADD",36,37,"1/2"],["B","ADD",36,52,"-1"],["B","ADD",36,53,"1"],["B","ADD",36,54,"-2"],["B","ADD",36,56,"-1"],["B","ADD",36,57,"1"],["B","ADD",36,58,"-2"],["B","ADD",36,60,"-3"],["B","ADD",36,61,"1"],["B","ADD",52,37,"-3/4"],["B","ADD",53,37,"-5/4"],["B","ADD",54,37,"-1/4"],["B","ADD",55,37,"-1/2"],["B","ADD",56,37,"-3/4"],["B","ADD",57,37,"-5/4"],["B","ADD",58,37,"-1/4"],["B","ADD",59,37,"-1/2"],["B","ADD",60,37,"-1/4"],["B","ADD",61,37,"-1/4"],["B","SCALE",37,"-1/2"],["B","ADD",37,52,"-1"],["B","ADD",37,53,"3"],["B","ADD",37,54,"-8"],["B","ADD",37,55,"-2"],["B","ADD",37,56,"-1"],["B","ADD",37,57,"3"],["B","ADD",37,58,"-8"],["B","ADD",37,59,"-2"],["B","ADD",37,60,"-1"],["B","ADD",37,61,"1"],["B","SCALE",37,"1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",13,0,"1"],["A","ADD",14,0,"2"],["A","ADD",15,0,"2"],["A","ADD",16,0,"2"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",31,18,"1"],["A","ADD",32,18,"2"],["A","ADD",33,18,"2"],["A","ADD",34,18,"2"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",13,1],["A","LAMBDA",31,-1],["A","SCALE",31,"-1"],["J",13,[13,0,18,31],[36,37,"-1","1/2"]],["A","LAMBDA",13,-1],["A","LAMBDA",31,1],["A","SCALE",31,"-1"],["A","ADD",0,13,"-1"],["A","ADD",18,31,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-2"],["A","ADD",33,18,"-2"],["A","ADD",32,18,"-2"],["A","ADD",31,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-2"],["A","ADD",15,0,"-2"],["A","ADD",14,0,"-2"],["A","ADD",13,0,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"2"],["B","ADD",37,61,"-1"],["B","ADD",37,60,"1"],["B","ADD",37,59,"2"],["B","ADD",37,58,"8"],["B","ADD",37,57,"-3"],["B","ADD",37,56,"1"],["B","ADD",37,55,"2"],["B","ADD",37,54,"8"],["B","ADD",37,53,"-3"],["B","ADD",37,52,"1"],["B","SCALE",37,"-2"],["B","ADD",61,37,"1/4"],["B","ADD",60,37,"1/4"],["B","ADD",59,37,"1/2"],["B","ADD",58,37,"1/4"],["B","ADD",57,37,"5/4"],["B","ADD",56,37,"3/4"],["B","ADD",55,37,"1/2"],["B","ADD",54,37,"1/4"],["B","ADD",53,37,"5/4"],["B","ADD",52,37,"3/4"],["B","ADD",36,61,"-1"],["B","ADD",36,60,"3"],["B","ADD",36,58,"2"],["B","ADD",36,57,"-1"],["B","ADD",36,56,"1"],["B","ADD",36,54,"2"],["B","ADD",36,53,"-1"],["B","ADD",36,52,"1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-2"],["B","ADD",61,36,"-1/4"],["B","ADD",60,36,"1/4"],["B","ADD",59,36,"1/4"],["B","ADD",57,36,"1/4"],["B","ADD",56,36,"1/4"],["B","ADD",55,36,"1/4"],["B","ADD",53,36,"1/4"],["B","ADD",52,36,"1/4"],["B","ADD",37,36,"-2"],["B","ADD",36,52,"14"],["B","ADD",37,52,"-34"],["B","ADD",53,52,"-4"],["B","ADD",54,52,"-3/2"],["B","ADD",55,52,"1/2"],["B","ADD",56,52,"-1"],["B","ADD",57,52,"-4"],["B","ADD",58,52,"-1/2"],["B","ADD",59,52,"1"],["B","SCALE",52,"-1"],["B","ADD",52,36,"1"],["B","ADD",52,37,"1"],["B","ADD",52,53,"-6"],["B","ADD",52,54,"16"],["B","ADD",52,55,"4"],["B","ADD",52,56,"2"],["B","ADD",52,57,"-6"],["B","ADD",52,58,"14"],["B","ADD",52,59,"6"],["B","IDLE_ONE",52,[14]],["B","ADD",52,59,"-6"],["B","ADD",52,58,"-14"],["B","ADD",52,57,"6"],["B","ADD",52,56,"-2"],["B","ADD",52,55,"-4"],["B","ADD",52,54,"-16"],["B","ADD",52,53,"6"],["B","ADD",52,37,"-1"],["B","ADD",52,36,"-1"],["B","SCALE",52,"-1"],["B","ADD",59,52,"-1"],["B","ADD",58,52,"1/2"],["B","ADD",57,52,"4"],["B","ADD",56,52,"1"],["B","ADD",55,52,"-1/2"],["B","ADD",54,52,"3/2"],["B","ADD",53,52,"4"],["B","ADD",37,52,"34"],["B","ADD",36,52,"-14"],["B","ADD",37,36,"5/2"],["B","ADD",52,36,"1/8"],["B","ADD",53,36,"3/8"],["B","ADD",54,36,"1/8"],["B","ADD",56,36,"1/8"],["B","ADD",57,36,"3/8"],["B","ADD",58,36,"1/16"],["B","ADD",59,36,"-1/16"],["B","SCALE",36,"1/8"],["B","ADD",36,37,"-1"],["B","ADD",36,52,"-4"],["B","ADD",36,53,"10"],["B","ADD",36,54,"-26"],["B","ADD",36,55,"-6"],["B","ADD",36,56,"-4"],["B","ADD",36,57,"10"],["B","ADD",36,58,"-24"],["B","ADD",36,59,"-10"],["B","IDLE_ONE",36,[14]],["B","ADD",36,59,"10"],["B","ADD",36,58,"24"],["B","ADD",36,57,"-10"],["B","ADD",36,56,"4"],["B","ADD",36,55,"6"],["B","ADD",36,54,"26"],["B","ADD",36,53,"-10"],["B","ADD",36,52,"4"],["B","ADD",36,37,"1"],["B","SCALE",36,"8"],["B","ADD",59,36,"1/16"],["B","ADD",58,36,"-1/16"],["B","ADD",57,36,"-3/8"],["B","ADD",56,36,"-1/8"],["B","ADD",54,36,"-1/8"],["B","ADD",53,36,"-3/8"],["B","ADD",52,36,"-1/8"],["B","ADD",37,36,"-5/2"],["B","SWAP",36,37],["B","ADD",52,36,"-3/4"],["B","ADD",53,36,"-5/4"],["B","ADD",54,36,"-1/4"],["B","ADD",55,36,"-1/2"],["B","ADD",56,36,"-3/4"],["B","ADD",57,36,"-5/4"],["B","ADD",58,36,"-1/4"],["B","ADD",59,36,"-1/4"],["B","SCALE",36,"-1/2"],["B","ADD",36,37,"1/2"],["B","ADD",36,52,"1"],["B","ADD",36,53,"-3"],["B","ADD",36,54,"8"],["B","ADD",36,55,"2"],["B","ADD",36,56,"1"],["B","ADD",36,57,"-3"],["B","ADD",36,58,"6"],["B","ADD",36,59,"2"],["B","ADD",52,37,"-7/4"],["B","ADD",53,37,"-11/4"],["B","ADD",54,37,"-1/2"],["B","ADD",55,37,"-5/4"],["B","ADD",56,37,"-7/4"],["B","ADD",57,37,"-11/4"],["B","ADD",58,37,"-3/4"],["B","ADD",59,37,"-1/4"],["B","SCALE",37,"1/2"],["B","ADD",37,52,"-1"],["B","ADD",37,53,"1"],["B","ADD",37,54,"-2"],["B","ADD",37,56,"-1"],["B","ADD",37,57,"1"],["B","ADD",37,58,"-2"],["B","ADD",37,59,"-2"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",14,0,"1"],["A","ADD",15,0,"2"],["A","ADD",16,0,"2"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",32,18,"1"],["A","ADD",33,18,"2"],["A","ADD",34,18,"2"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",14,1],["A","LAMBDA",32,-1],["A","SCALE",32,"-1"],["J",14,[14,0,18,32],[36,37,"-1","1/2"]],["A","LAMBDA",14,-1],["A","LAMBDA",32,1],["A","SCALE",32,"-1"],["A","ADD",0,14,"-1"],["A","ADD",18,32,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-2"],["A","ADD",33,18,"-2"],["A","ADD",32,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-2"],["A","ADD",15,0,"-2"],["A","ADD",14,0,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"-2"],["B","ADD",37,59,"2"],["B","ADD",37,58,"2"],["B","ADD",37,57,"-1"],["B","ADD",37,56,"1"],["B","ADD",37,54,"2"],["B","ADD",37,53,"-1"],["B","ADD",37,52,"1"],["B","SCALE",37,"2"],["B","ADD",59,37,"1/4"],["B","ADD",58,37,"3/4"],["B","ADD",57,37,"11/4"],["B","ADD",56,37,"7/4"],["B","ADD",55,37,"5/4"],["B","ADD",54,37,"1/2"],["B","ADD",53,37,"11/4"],["B","ADD",52,37,"7/4"],["B","ADD",36,59,"-2"],["B","ADD",36,58,"-6"],["B","ADD",36,57,"3"],["B","ADD",36,56,"-1"],["B","ADD",36,55,"-2"],["B","ADD",36,54,"-8"],["B","ADD",36,53,"3"],["B","ADD",36,52,"-1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-2"],["B","ADD",59,36,"1/4"],["B","ADD",58,36,"1/4"],["B","ADD",57,36,"5/4"],["B","ADD",56,36,"3/4"],["B","ADD",55,36,"1/2"],["B","ADD",54,36,"1/4"],["B","ADD",53,36,"5/4"],["B","ADD",52,36,"3/4"],["B","SWAP",36,37],["B","ADD",37,36,"7/4"],["B","ADD",52,36,"-7/16"],["B","ADD",53,36,"-9/16"],["B","ADD",54,36,"-1/16"],["B","ADD",55,36,"-3/8"],["B","ADD",56,36,"-1/8"],["B","ADD",57,36,"1/4"],["B","SCALE",36,"-1/4"],["B","ADD",36,52,"2"],["B","ADD",36,53,"-4"],["B","ADD",36,54,"10"],["B","ADD",36,55,"2"],["B","ADD",36,56,"2"],["B","ADD",36,57,"-2"],["B","IDLE_ONE",36,[15]],["B","ADD",36,57,"2"],["B","ADD",36,56,"-2"],["B","ADD",36,55,"-2"],["B","ADD",36,54,"-10"],["B","ADD",36,53,"4"],["B","ADD",36,52,"-2"],["B","SCALE",36,"-4"],["B","ADD",57,36,"-1/4"],["B","ADD",56,36,"1/8"],["B","ADD",55,36,"3/8"],["B","ADD",54,36,"1/16"],["B","ADD",53,36,"9/16"],["B","ADD",52,36,"7/16"],["B","ADD",37,36,"-7/4"],["B","ADD",37,36,"2"],["B","ADD",52,36,"-1/4"],["B","ADD",53,36,"-1/4"],["B","ADD",55,36,"-1/4"],["B","ADD",57,36,"1/2"],["B","ADD",36,37,"1"],["B","ADD",36,52,"4"],["B","ADD",36,53,"-10"],["B","ADD",36,54,"26"],["B","ADD",36,55,"6"],["B","ADD",36,56,"2"],["B","ADD",36,57,"-6"],["B","IDLE_ONE",36,[15]],["B","ADD",36,57,"6"],["B","ADD",36,56,"-2"],["B","ADD",36,55,"-6"],["B","ADD",36,54,"-26"],["B","ADD",36,53,"10"],["B","ADD",36,52,"-4"],["B","ADD",36,37,"-1"],["B","ADD",57,36,"-1/2"],["B","ADD",55,36,"1/4"],["B","ADD",53,36,"1/4"],["B","ADD",52,36,"1/4"],["B","ADD",37,36,"-2"],["B","ADD",37,36,"2"],["B","ADD",52,36,"-1/4"],["B","ADD",53,36,"-1/4"],["B","ADD",55,36,"-1/4"],["B","ADD",56,36,"-1/4"],["B","ADD",57,36,"1/4"],["B","SCALE",36,"-1/2"],["B","ADD",36,37,"1/2"],["B","ADD",36,52,"-1"],["B","ADD",36,53,"1"],["B","ADD",36,54,"-2"],["B","ADD",36,56,"-3"],["B","ADD",36,57,"1"],["B","ADD",52,37,"-3/4"],["B","ADD",53,37,"-5/4"],["B","ADD",54,37,"-1/4"],["B","ADD",55,37,"-1/2"],["B","ADD",56,37,"-1/4"],["B","ADD",57,37,"-1/4"],["B","SCALE",37,"-1/2"],["B","ADD",37,52,"-1"],["B","ADD",37,53,"3"],["B","ADD",37,54,"-8"],["B","ADD",37,55,"-2"],["B","ADD",37,56,"-1"],["B","ADD",37,57,"1"],["B","SCALE",37,"1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",15,0,"1"],["A","ADD",16,0,"2"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",33,18,"1"],["A","ADD",34,18,"2"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",15,1],["A","LAMBDA",33,-1],["A","SCALE",33,"-1"],["J",15,[15,0,18,33],[36,37,"-1","1/2"]],["A","LAMBDA",15,-1],["A","LAMBDA",33,1],["A","SCALE",33,"-1"],["A","ADD",0,15,"-1"],["A","ADD",18,33,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-2"],["A","ADD",33,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-2"],["A","ADD",15,0,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"2"],["B","ADD",37,57,"-1"],["B","ADD",37,56,"1"],["B","ADD",37,55,"2"],["B","ADD",37,54,"8"],["B","ADD",37,53,"-3"],["B","ADD",37,52,"1"],["B","SCALE",37,"-2"],["B","ADD",57,37,"1/4"],["B","ADD",56,37,"1/4"],["B","ADD",55,37,"1/2"],["B","ADD",54,37,"1/4"],["B","ADD",53,37,"5/4"],["B","ADD",52,37,"3/4"],["B","ADD",36,57,"-1"],["B","ADD",36,56,"3"],["B","ADD",36,54,"2"],["B","ADD",36,53,"-1"],["B","ADD",36,52,"1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-2"],["B","ADD",57,36,"-1/4"],["B","ADD",56,36,"1/4"],["B","ADD",55,36,"1/4"],["B","ADD",53,36,"1/4"],["B","ADD",52,36,"1/4"],["B","ADD",37,36,"-2"],["B","ADD",36,52,"14"],["B","ADD",37,52,"-34"],["B","ADD",53,52,"-4"],["B","ADD",54,52,"-1/2"],["B","ADD",55,52,"1"],["B","SCALE",52,"-1"],["B","ADD",52,36,"1"],["B","ADD",52,37,"1"],["B","ADD",52,53,"-6"],["B","ADD",52,54,"14"],["B","ADD",52,55,"6"],["B","IDLE_ONE",52,[16]],["B","ADD",52,55,"-6"],["B","ADD",52,54,"-14"],["B","ADD",52,53,"6"],["B","ADD",52,37,"-1"],["B","ADD",52,36,"-1"],["B","SCALE",52,"-1"],["B","ADD",55,52,"-1"],["B","ADD",54,52,"1/2"],["B","ADD",53,52,"4"],["B","ADD",37,52,"34"],["B","ADD",36,52,"-14"],["B","ADD",37,36,"5/2"],["B","ADD",52,36,"1/8"],["B","ADD",53,36,"3/8"],["B","ADD",54,36,"1/16"],["B","ADD",55,36,"-1/16"],["B","SCALE",36,"1/8"],["B","ADD",36,37,"-1"],["B","ADD",36,52,"-4"],["B","ADD",36,53,"10"],["B","ADD",36,54,"-24"],["B","ADD",36,55,"-10"],["B","IDLE_ONE",36,[16]],["B","ADD",36,55,"10"],["B","ADD",36,54,"24"],["B","ADD",36,53,"-10"],["B","ADD",36,52,"4"],["B","ADD",36,37,"1"],["B","SCALE",36,"8"],["B","ADD",55,36,"1/16"],["B","ADD",54,36,"-1/16"],["B","ADD",53,36,"-3/8"],["B","ADD",52,36,"-1/8"],["B","ADD",37,36,"-5/2"],["B","SWAP",36,37],["B","ADD",52,36,"-3/4"],["B","ADD",53,36,"-5/4"],["B","ADD",54,36,"-1/4"],["B","ADD",55,36,"-1/4"],["B","SCALE",36,"-1/2"],["B","ADD",36,37,"1/2"],["B","ADD",36,52,"1"],["B","ADD",36,53,"-3"],["B","ADD",36,54,"6"],["B","ADD",36,55,"2"],["B","ADD",52,37,"-7/4"],["B","ADD",53,37,"-11/4"],["B","ADD",54,37,"-3/4"],["B","ADD",55,37,"-1/4"],["B","SCALE",37,"1/2"],["B","ADD",37,52,"-1"],["B","ADD",37,53,"1"],["B","ADD",37,54,"-2"],["B","ADD",37,55,"-2"],["B","SCALE",37,"-1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",16,0,"1"],["A","ADD",17,0,"2"],["A","SCALE",0,"-1"],["A","ADD",34,18,"1"],["A","ADD",35,18,"2"],["A","SCALE",18,"-1"],["A","LAMBDA",16,1],["A","LAMBDA",34,-1],["A","SCALE",34,"-1"],["J",16,[16,0,18,34],[36,37,"-1","1/2"]],["A","LAMBDA",16,-1],["A","LAMBDA",34,1],["A","SCALE",34,"-1"],["A","ADD",0,16,"-1"],["A","ADD",18,34,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-2"],["A","ADD",34,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-2"],["A","ADD",16,0,"-1"],["B","LAMBDA",36,-1],["B","SCALE",37,"-2"],["B","ADD",37,55,"2"],["B","ADD",37,54,"2"],["B","ADD",37,53,"-1"],["B","ADD",37,52,"1"],["B","SCALE",37,"2"],["B","ADD",55,37,"1/4"],["B","ADD",54,37,"3/4"],["B","ADD",53,37,"11/4"],["B","ADD",52,37,"7/4"],["B","ADD",36,55,"-2"],["B","ADD",36,54,"-6"],["B","ADD",36,53,"3"],["B","ADD",36,52,"-1"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-2"],["B","ADD",55,36,"1/4"],["B","ADD",54,36,"1/4"],["B","ADD",53,36,"5/4"],["B","ADD",52,36,"3/4"],["B","SWAP",36,37],["B","ADD",37,36,"7/4"],["B","ADD",52,36,"-1/8"],["B","ADD",53,36,"1/4"],["B","SCALE",36,"-1/4"],["B","ADD",36,37,"-1"],["B","ADD",36,53,"4"],["B","IDLE_ONE",36,[17]],["B","ADD",36,53,"-4"],["B","ADD",36,37,"1"],["B","SCALE",36,"-4"],["B","ADD",53,36,"-1/4"],["B","ADD",52,36,"1/8"],["B","ADD",37,36,"-7/4"],["B","ADD",37,36,"5/3"],["B","ADD",52,36,"-1/6"],["B","ADD",53,36,"1/6"],["B","SCALE",36,"-1/3"],["B","ADD",36,37,"1"],["B","ADD",36,52,"2"],["B","ADD",36,53,"-6"],["B","IDLE_ONE",36,[17]],["B","ADD",36,53,"6"],["B","ADD",36,52,"-2"],["B","ADD",36,37,"-1"],["B","SCALE",36,"-3"],["B","ADD",53,36,"-1/6"],["B","ADD",52,36,"1/6"],["B","ADD",37,36,"-5/3"],["B","ADD",37,36,"2"],["B","ADD",52,36,"-1/4"],["B","ADD",53,36,"1/4"],["B","SCALE",36,"-1/2"],["B","ADD",36,37,"1/2"],["B","ADD",36,52,"-3"],["B","ADD",36,53,"1"],["B","ADD",52,37,"-1/4"],["B","ADD",53,37,"-1/4"],["B","SCALE",37,"-1/2"],["B","ADD",37,52,"-1"],["B","ADD",37,53,"1"],["B","SCALE",37,"1/2"],["B","ADD",37,36,"-1/2"],["B","ADD",36,37,"1"],["B","LAMBDA",36,1],["A","ADD",17,0,"1"],["A","SCALE",0,"-1"],["A","ADD",35,18,"1"],["A","SCALE",18,"-1"],["A","LAMBDA",17,1],["A","LAMBDA",35,-1],["A","SCALE",35,"-1"],["J",17,[17,0,18,35],[36,37,"-1","1/2"]],["A","LAMBDA",17,-1],["A","LAMBDA",35,1],["A","SCALE",35,"-1"],["A","ADD",0,17,"-1"],["A","ADD",18,35,"-1"],["A","SCALE",18,"-1"],["A","ADD",35,18,"-1"],["A","SCALE",0,"-1"],["A","ADD",17,0,"-1"],["A","LAMBDA",0,-1],["A","LAMBDA",1,-1],["A","LAMBDA",2,-1],["A","LAMBDA",3,-1],["A","LAMBDA",4,-1],["A","LAMBDA",5,-1],["A","LAMBDA",6,-1],["A","LAMBDA",7,-1],["A","LAMBDA",8,-1],["A","LAMBDA",9,-1],["A","LAMBDA",10,-1],["A","LAMBDA",11,-1],["A","LAMBDA",12,-1],["A","LAMBDA",13,-1],["A","LAMBDA",14,-1],["A","LAMBDA",15,-1],["A","LAMBDA",16,-1],["A","LAMBDA",17,-1],["A","LAMBDA",18,-1],["A","LAMBDA",19,-1],["A","LAMBDA",20,-1],["A","LAMBDA",21,-1],["A","LAMBDA",22,-1],["A","LAMBDA",23,-1],["A","LAMBDA",24,-1],["A","LAMBDA",25,-1],["A","LAMBDA",26,-1],["A","LAMBDA",27,-1],["A","LAMBDA",28,-1],["A","LAMBDA",29,-1],["A","LAMBDA",30,-1],["A","LAMBDA",31,-1],["A","LAMBDA",32,-1],["A","LAMBDA",33,-1],["A","LAMBDA",34,-1],["A","LAMBDA",35,-1],["B","LAMBDA",36,-1],["B","SCALE",37,"2"],["B","ADD",37,53,"-1"],["B","ADD",37,52,"1"],["B","SCALE",37,"-2"],["B","ADD",53,37,"1/4"],["B","ADD",52,37,"1/4"],["B","ADD",36,53,"-1"],["B","ADD",36,52,"3"],["B","ADD",36,37,"-1/2"],["B","SCALE",36,"-2"],["B","ADD",53,36,"-1/4"],["B","ADD",52,36,"1/4"],["B","ADD",37,36,"-2"],["B","LAMBDA",36,-1],["B","LAMBDA",37,-1],["B","LAMBDA",38,-1],["B","LAMBDA",39,-1],["B","LAMBDA",40,-1],["B","LAMBDA",41,-1],["B","LAMBDA",42,-1],["B","LAMBDA",43,-1],["B","LAMBDA",44,-1],["B","LAMBDA",45,-1],["B","LAMBDA",46,-1],["B","LAMBDA",47,-1],["B","LAMBDA",48,-1],["B","LAMBDA",49,-1],["B","LAMBDA",50,-1],["B","LAMBDA",51,-1],["B","LAMBDA",52,-1],["B","LAMBDA",53,-1],["B","LAMBDA",54,-1],["B","LAMBDA",55,-1],["B","LAMBDA",56,-1],["B","LAMBDA",57,-1],["B","LAMBDA",58,-1],["B","LAMBDA",59,-1],["B","LAMBDA",60,-1],["B","LAMBDA",61,-1],["B","LAMBDA",62,-1],["B","LAMBDA",63,-1],["B","LAMBDA",64,-1],["B","LAMBDA",65,-1],["B","LAMBDA",66,-1],["B","LAMBDA",67,-1]],"ops_note":"QSELF(x, k): R[x] *= q^k, one paid rank-1 job on one register (new op; not in the retained alphabet).; source interval457..575 replaced by a three-QUERY even-basis factorization; no QSELF"} \ No newline at end of file diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/check_odd_fixed_tape_counts.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/check_odd_fixed_tape_counts.py new file mode 100644 index 0000000000..6873f9618d --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/check_odd_fixed_tape_counts.py @@ -0,0 +1,64 @@ +"""Substitute the exact caller counts into the reviewed finite-tape bounds.""" +from fractions import Fraction as Q +from hashlib import sha256 +from pathlib import Path +import gzip +import json + +root=Path(__file__).resolve().parent +def read(name): + return json.loads((root/name).read_text()) +cpath=root/"ODD-TYPE-AB-CALLER.json" +caller=read(cpath.name) +partial=read("ODD-ADMISSION-PARTIAL.json") +precision=read("ODD-PRECISION.json") +binding=read("ODD-PHYSICAL-BINDING.json") +native=json.loads(gzip.decompress((root.parent/"WORD.json.gz").read_bytes())) +nhash=sha256(json.dumps(native,sort_keys=True,separators=(",",":")).encode()).hexdigest() +chash=sha256(cpath.read_bytes()).hexdigest() +assert all(r["caller_sha256"]==chash and r["native_sha256"]==nhash for r in (partial,precision,binding)) +g=partial["compiler_outer"] +b=binding["occurrence_and_geometry"] +assert g["outer"]["strict_count"]==54 and g["outer"]["functional_count"]==4 and Q(g["outer"]["minimum_margin"])>0 +assert b["paid_positions"]==sum(partial["invoice"]["P"].values()) +assert b["productive_fields"]==sum(partial["invoice"]["T"].values()) +assert b["rank_surplus"]==partial["invoice"]["S"] and partial["invoice"]["empty_root_credits"]==0 +assert b["ambient"]==caller["ambient_rank"] and b["ambient"]<=153 +L=b["native_calls"] +native_scalars=sum(e[0]!="MOVE" for e in native["program"]) +caller_macros=sum(len(caller["types"][e[0]]["ports"]) for e in caller["events"] if e[0]!="J") +conversions=2*L*native["public"]+2*sum(t['roles']*len(t['ports']) for t in caller['types'].values()) +signed_idle=sum(len(caller["types"][e[0]]["ports"]) for e in caller["events"] if e[:2]==["B","IDLE_ODD"]) +scalar_services=32*(L*native_scalars+caller_macros+conversions) +map_slots=(2*b["paid_positions"]+2*b["productive_fields"]+b["native_contact_boundaries"] + +2*b["idle_uses"]+3*b["query_uses"]+b["lambda_uses"]+signed_idle) +records_per_map=4*(b["ambient"]+1)**2 +paid_record_ceiling=map_slots*records_per_map +# Use the same upper ambient 153 as the inherited compiler, even though +# each actual paid or target map is on at most 137 axes. +H=int(g["H"]) +carrier_power=1920 +kstar=carrier_power*153**carrier_power*(H+1)**2 +cc=precision["context_c"] +assert cc<=4096 and (4096*kstar).bit_length()peak:peak=mass;witness=[i,kind] + for i,e in enumerate(word['program']): + op,r=e[:2] + if op in('INIT','CLEAR'):rows[r]={} + elif op=='SCALE': + rows[r]={k:Q(e[2])*v for k,v in rows[r].items()};observe(rows[r],i,'scale') + elif op in('ADD','COPY'): + if op=='COPY':assert not rows[r] + product={k:Q(e[3])*v for k,v in rows[e[2]].items()};observe(product,i,'product') + row=rows[r].copy() + for k,v in product.items(): + value=row.get(k,Q(0))+v + if value:row[k]=value + else:row.pop(k,None) + rows[r]=row;observe(row,i,'stored') + odd=denom;frac=0 + while odd%2==0:odd//=2;frac+=1 + return dict(odd_scale=odd,fractional_bits=frac,unscaled_maximum_mass=str(peak),scaled_maximum_mass=str(peak*odd),mass_witness=witness,coefficient_visits=visits),rows +if __name__=='__main__': + w=json.load(gzip.open(sys.argv[1],'rt'));result,rows=derive(w) + Path(sys.argv[2]).write_text(json.dumps(result,indent=2)+'\n');print(result) diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/envelopes.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/envelopes.py new file mode 100644 index 0000000000..70c8ca2376 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/envelopes.py @@ -0,0 +1,294 @@ +"""Exact positive forward envelopes with independent backward cut checks. + +These are scalar triangle bounds under the stated complete-fibre unitary +contracts. They neither simulate rounding nor establish native provider admission. +Prepared for @CubeJerry with substantial OpenAI assistance. Apache-2.0. +""" +from collections import Counter +from fractions import Fraction as F +from source_binding import need, sources, strict_power, fraction_string, oddpart + + +def frame_span(basis): + s = {0} + for v in basis: + need(isinstance(v, int) and 0 < v < 512 and v not in s, "independent frame basis") + s |= {u ^ v for u in tuple(s)} + return frozenset(s) + + +def validate_word(word): + n, owned_count = word["public"], word["owned_fields"] + need(n == len(word["initial"]) == len(word["final"]), "public frame lists") + spans = list(map(frame_span, word["frames"])) + cur = list(word["initial"]) + [None] * owned_count + owned, zero = set(), set(range(n, n + owned_count)) + life = peak = 0 + counts = Counter() + scalar = Counter() + max_num = max_den = 0 + for i, e in enumerate(word["program"]): + op, r = e[:2] + need(0 <= r < len(cur), "word role at " + str(i)) + counts[op] += 1 + if op == "INIT": + need(len(e) == 3 and r >= n and r not in owned and cur[r] is None, + "fresh owned INIT at " + str(i)) + need(0 <= e[2] < len(spans), "INIT frame") + owned.add(r); zero.add(r); cur[r] = e[2] + life += 1; peak = max(peak, len(owned)) + elif op == "CLEAR": + need(len(e) == 3 and r in owned and cur[r] == e[2], "owned CLEAR") + owned.remove(r); zero.add(r); cur[r] = None + elif op == "MOVE": + _, _, a, b, private = e + need(cur[r] == a and bool(private) == (r in owned), "MOVE source/owner") + need(0 <= b < len(spans), "MOVE destination") + need((spans[a] < spans[b] or spans[b] < spans[a]) if private + else spans[a] < spans[b], "strict source frame nesting") + cur[r] = b + # A rounded child need not preserve exact zero. + zero.discard(r) + else: + need(op in ("ADD", "COPY", "SCALE"), "known native operation") + q = F(e[2] if op == "SCALE" else e[3]) + need(q and abs(q) + 1 < 2 ** 16, "nonzero bounded source coefficient") + need(cur[r] == e[-1] and cur[r] is not None, "scalar live frame") + if op != "SCALE": + s = e[2] + need(0 <= s < len(cur) and s != r and cur[s] == cur[r], "same-frame source") + if op == "COPY": + need(r in owned and r in zero, "COPY into freshly exact zero") + zero.discard(r) + max_num = max(max_num, abs(q.numerator)) + max_den = max(max_den, q.denominator) + scalar["noninteger" if q.denominator > 1 else "integer"] += 1 + scalar["odd" if oddpart(q.denominator) > 1 else "dyadic"] += 1 + need(not owned and cur[:n] == word["final"], "all owned returned; declared final frames") + need((life, peak, owned_count) == (54, 43, 51), "source lifecycle census") + return dict(events=len(word["program"]), public=n, owned_labels=owned_count, + lifetimes=life, peak_owned=peak, opcodes=dict(counts), scalars=dict(scalar), + max_numerator=max_num, numerator_bits=max_num.bit_length(), + max_denominator=max_den, denominator_bits=max_den.bit_length()) + + +def summarize(values): + return {k: {"exact": fraction_string(v[0]), "strict_power_of_two": strict_power(v[0]), + "witness": v[1]} for k, v in values.items()} + + +def native_envelope(word): + census = validate_word(word) + n, size = word["public"], word["public"] + word["owned_fields"] + mass = [F(i < n) for i in range(size)] + error = [F(0) for _ in range(size)] + peaks = {"M": (F(1), {"cut": 0, "register": 0, "factor": "1"}), + "Sigma": (F(0), {"cut": 0, "register": 0, "factor": "1"})} + + def note(name, value, cut, register, factor=F(1), kind="stored"): + if value > peaks[name][0]: + peaks[name] = (value, dict(cut=cut, register=register, + factor=str(factor), kind=kind)) + + for i, e in enumerate(word["program"]): + op, r = e[:2] + if op == "MOVE": + error[r] += 1 + elif op in ("INIT", "CLEAR"): + mass[r] = error[r] = F(0) + else: + q = abs(F(e[2] if op == "SCALE" else e[3])) + if op == "SCALE": + mass[r] *= q; error[r] *= q + else: + s = e[2] + note("M", q * mass[s], i, s, q, "pre-add-product") + note("Sigma", q * error[s], i, s, q, "pre-add-product") + mass[r] += q * mass[s]; error[r] += q * error[s] + if q.denominator > 1: + error[r] += 1 + note("M", mass[r], i + 1, r) + note("Sigma", error[r], i + 1, r) + r = max(range(n), key=error.__getitem__) + peaks["Gamma"] = (error[r], dict(cut=len(word["program"]), register=r, factor="1", kind="public-return")) + checks = {} + for name, (value, witness) in peaks.items(): + m, d, active = native_adjoint(word, witness) + need((m if name == "M" else d) == value, "backward native witness: " + name) + checks[name] = dict(entrance_mass=str(m), residual_mass=str(d), active_residual_sites=active) + return peaks, dict(census=census, bounds=summarize(peaks), independent_adjoint=checks) + + +def native_adjoint(word, witness): + """Transpose recurrence from one cut, not a second forward-state run.""" + size = word["public"] + word["owned_fields"] + lam = [F(0) for _ in range(size)] + lam[witness["register"]] = F(witness["factor"]) + residual, active = F(0), 0 + for e in reversed(word["program"][:witness["cut"]]): + op, r = e[:2] + if op in ("INIT", "CLEAR"): + lam[r] = F(0) + elif op == "MOVE": + residual += lam[r]; active += bool(lam[r]) + else: + q = abs(F(e[2] if op == "SCALE" else e[3])) + if q.denominator > 1: + residual += lam[r]; active += bool(lam[r]) + if op == "SCALE": + lam[r] *= q + else: + lam[e[2]] += q * lam[r] + return sum(lam[:word["public"]]), residual, active + + +def caller_envelope(caller, word_peaks, word): + """Contract J only at its proved exact endpoint; include each native interior.""" + mw, sw, gw = (word_peaks[k][0] for k in ("M", "Sigma", "Gamma")) + size = caller["roles"] + mass, error = [F(1)] * size, [F(0)] * size + peaks = {"M_caller": (F(1), {}), "Sigma_caller": (F(0), {}), + "M_joint_entrance": (F(1), {}), "E_joint_entrance": (F(0), {}), + "M_context": (F(1), {}), "Sigma_context": (F(0), {})} + sites = Counter() + j_order = [] + log = [] + + def note(name, value, i, r=None, *, cut=None, factor=F(1), kind="stored"): + if value > peaks[name][0]: + peaks[name] = (value, dict(event=i, register=r, cut=i + 1 if cut is None else cut, + factor=str(factor), kind=kind)) + + for i, e in enumerate(caller["events"]): + ty = e[0] + if ty == "J": + _, j, ar, br = e + need(len(ar) == 4 and len(br) == 4 and br[2:] == ["-1", "1/2"], "exact J source signature") + u, v, x, y = ar; s, t = br[:2] + regs = (u, v, x, y, s, t) + need(len(set(regs)) == 6 and all(0 <= r < size for r in regs), "six distinct J roles") + need(all(0 <= r < 38 for r in ar) and all(38 <= r < 76 for r in br[:2]), + "current type-local J main binding") + mi, ei = max([F(1)] + [mass[r] for r in regs]), max(error[r] for r in regs) + mr, er = max(regs, key=mass.__getitem__), max(regs, key=error.__getitem__) + note("M_joint_entrance", mi, i, mr, cut=i) + note("E_joint_entrance", ei, i, er, cut=i) + note("M_context", mw * mi, i) + note("Sigma_context", mw * ei + sw, i) + # Each stage's 1,061 arbitrary public helper inputs are distinct raw + # inputs, not zero; their initial bound is 1 and prior defect is 0. + out_m = (mass[u], mass[v] + mass[u], mass[x] + mass[y], mass[y], + mass[s] + mass[t], (mass[s] + mass[t]) / 2) + out_e = (error[u], error[v] + error[u], error[x] + error[y], error[y], + error[s] + error[t], (error[s] + error[t]) / 2) + for r, a, b in zip(regs, out_m, out_e): + mass[r], error[r] = a, b + gw + j_order.append(j); sites["J"] += 1 + log.append(dict(event=i, stage=j, entrance_mass=str(mi), entrance_defect=str(ei))) + else: + need(ty in ("A", "B"), "known caller type") + op, r = e[1:3] + off = caller["types"][ty]["offset"] + count = caller["types"][ty]["roles"] + need(off <= r < off + count, "type-local target") + sites[op] += 1 + if op == "SWAP": + s = e[3] + need(off <= s < off + count and s != r, "type-local SWAP") + mass[r], mass[s] = mass[s], mass[r] + error[r], error[s] = error[s], error[r] + elif op in ("LAMBDA", "IDLE_ONE"): + if op == "LAMBDA": + need(e[3] in (-1, 1), "unit Lambda sign") + else: + need(len(e[3]) == len(set(e[3])) and all(1 <= k <= 18 for k in e[3]), "idle mask") + error[r] += 1 + elif op == "QUERY": + s = e[3] + need(off <= s < off + count and s != r and e[4] == -1, "retained negative query") + mass[r] += mass[s]; error[r] += error[s] + 1 + elif op == "ADD": + s, q = e[3], abs(F(e[4])) + need(off <= s < off + count and r != s and q, "type-local ADD") + note("M_caller", q * mass[s], i, s, cut=i, factor=q, kind="pre-add-product") + note("Sigma_caller", q * error[s], i, s, cut=i, factor=q, kind="pre-add-product") + mass[r] += q * mass[s]; error[r] += q * error[s] + (q.denominator > 1) + sites["noninteger_scalar"] += q.denominator > 1 + elif op == "SCALE": + q = abs(F(e[3])); need(q, "nonzero caller SCALE") + mass[r] *= q; error[r] = q * error[r] + (q.denominator > 1) + sites["noninteger_scalar"] += q.denominator > 1 + else: + raise ValueError("non-retained caller opcode: " + str(op)) + for r in range(size): + note("M_caller", mass[r], i, r) + note("Sigma_caller", error[r], i, r) + need(j_order == list(range(1, 19)), "exact eighteen native calls") + # Completed helper outputs have ideal norm <=1 and defect <=gw; maximum + # over independent helper fields does not multiply by 1,061 or by 18. + peaks["M_context"] = max(peaks["M_context"], peaks["M_caller"], key=lambda a: a[0]) + peaks["Sigma_context"] = max(peaks["Sigma_context"], peaks["Sigma_caller"], key=lambda a: a[0]) + ri = max(range(size), key=error.__getitem__) + need(error[ri] >= gw, "main output dominates helper-return defect in this source") + peaks["Gamma_context"] = (error[ri], dict(register=ri, cut=len(caller["events"]), factor="1", kind="public-return")) + need(len(caller["types"]["A"]["ports"]) == 96 and len(caller["types"]["B"]["ports"]) == 8, + "current physical type multiplicities") + mains = set(word["live"]) | {r + 112 for r in word["live"]} | set(word["hosted"]["X2"]) | set(word["hosted"]["Y2"]) + need(len(mains) == 400 and word["public"] - len(mains) == 1061, "fresh per-stage helper census") + adjoints = {} + for name in ("M_caller", "Sigma_caller", "M_joint_entrance", "E_joint_entrance", "Gamma_context"): + value, witness = peaks[name] + m, d, j_part, primitive_part = caller_adjoint(caller, witness, gw) + need((m if name.startswith("M_") else d) == value, "backward caller witness: " + name) + adjoints[name] = dict(entrance_mass=str(m), residual_mass=str(d), + joint_coefficient=str(j_part), primitive_coefficient=str(primitive_part)) + return peaks, dict(bounds=summarize(peaks), sites=dict(sites), joint_entries=log, + independent_adjoint=adjoints, + physical_main_inputs=3952, fresh_arbitrary_helpers=18 * 1061, + helper_allocation_premise="distinct (stage, helper) public inputs as in frozen caller proof") + + +def caller_adjoint(caller, witness, gamma_word): + lam = [F(0)] * caller["roles"] + lam[witness["register"]] = F(witness["factor"]) + joint, primitive = F(0), F(0) + for e in reversed(caller["events"][:witness["cut"]]): + if e[0] == "J": + u, v, x, y = e[2]; s, t = e[3][:2] + joint += sum(lam[r] for r in (u, v, x, y, s, t)) + a, b = lam[s], lam[t] + lam[u] += lam[v] + lam[y] += lam[x] + lam[s] = lam[t] = a + b / 2 + continue + op, r = e[1:3] + if op == "SWAP": + s = e[3]; lam[r], lam[s] = lam[s], lam[r] + elif op in ("LAMBDA", "IDLE_ONE"): + primitive += lam[r] + elif op == "QUERY": + primitive += lam[r]; lam[e[3]] += lam[r] + else: + q = abs(F(e[3] if op == "SCALE" else e[4])) + if q.denominator > 1: + primitive += lam[r] + if op == "SCALE": + lam[r] *= q + else: + lam[e[3]] += q * lam[r] + return sum(lam), joint * gamma_word + primitive, joint, primitive + + +def run(): + caller, word = sources() + wp, wr = native_envelope(word) + cp, cr = caller_envelope(caller, wp, word) + expected_w = {"M": 237, "Sigma": 235, "Gamma": 235} + expected_c = {"M_caller": 121, "Sigma_caller": 342, "M_joint_entrance": 119, + "E_joint_entrance": 340, "M_context": 355, "Sigma_context": 576, + "Gamma_context": 337} + for k, p in expected_w.items(): + need(strict_power(wp[k][0]) == p, "frozen native bound " + k) + for k, p in expected_c.items(): + need(strict_power(cp[k][0]) == p, "frozen caller bound " + k) + return dict(native=wr, caller=cr) diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/independent.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/independent.py new file mode 100644 index 0000000000..1ae1d7c680 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/independent.py @@ -0,0 +1,220 @@ +#!/usr/bin/env python3 +"""Independent finite word/caller/invoice audit; no imported author checker. +Native endpoint uses the transposed circuit in reverse chronological order. +Caller identity uses exact polynomials in 18 unrestricted commuting variables +and q modulo q^4-1, with Gaussian rational coefficients. +""" +from collections import Counter +from fractions import Fraction as F +from pathlib import Path +from decimal import Decimal, localcontext +import argparse, gzip, hashlib, json, math, time + +HERE=Path(__file__).resolve().parent + +if not __debug__: raise RuntimeError('Run without -O; assertions are proof checks.') + +def load(p): + p=Path(p); b=p.read_bytes(); return json.loads(gzip.decompress(b) if p.suffix=='.gz' else b) +def pin(p): return hashlib.sha256(Path(p).read_bytes()).hexdigest() +def addto(a,b,q=F(1)): + for k,v in b.items(): + z=a.get(k,0)+q*v + if z:a[k]=z + else:a.pop(k,None) +def scale(a,q): return {k:v*q for k,v in a.items() if v*q} +def span(b): + s={0} + for x in b: + assert x not in s and 0=n and r not in active;active.add(r);cur[r]=e[2];life+=1;peak=max(peak,len(active)-n) + elif op=='CLEAR': + assert r>=n and r in active and cur[r]==e[2];active.remove(r);del cur[r] + elif op=='MOVE': + _,r,a,b,owned=e;assert r in active and cur[r]==a and owned==(r>=n) + assert (frames[a]0;paid[rank]+=1;cur[r]=b + if owned and dim[b]>dim[a]:rises[rank]+=1 + elif op=='SCALE':assert r in active and cur[r]==e[-1] + else:assert op in ('ADD','COPY') and r in active and e[2] in active and r!=e[2] and cur[r]==cur[e[2]]==e[-1] + assert active==set(range(n)) and [cur[r] for r in range(n)]==W['final'] + # adj[r][j] is the derivative of final output j with respect to current r. + adj=[{r:F(1)} if r0:lo=mid + else:hi=mid + crossing=str((lo+hi)/2) + Ecount=sum(len(d['ports']) for d in C['types'].values() for dg in d['diagonal'] if not any(dg[2:]));Te=T.copy();Te[1]-=Ecount;lo,hi=Decimal(0),Decimal('.01') + for _ in range(200): + mid=(lo+hi)/2 + if margin(mid,Te)>0:lo=mid + else:hi=mid + nocredit=str((lo+hi)/2) + return dict(T=dict(sorted(T.items())),P=dict(sorted(P.items())),S=S,raw_crossing=crossing,empty_root_credits=Ecount,no_E_credit_crossing=nocredit) + +def ordinary(W,C,N): + # Atomic contributions are separately itemized to prevent zero-charge shortcuts. + calls=18;portsA=len(C['types']['A']['ports']);ports=sum(len(v['ports']) for v in C['types'].values()) + scalar=0;init_clear=0;odd=Counter() + for e in W['program']: + if e[0] in ('ADD','COPY','SCALE'): + q=F(e[2] if e[0]=='SCALE' else e[3]);a=abs(q.numerator);d=q.denominator + scalar+=4*(a.bit_length()+d.bit_length()+1+(a.bit_count() if e[0]!='SCALE' else 0)) + if d&(d-1):odd[e[0]]+=1 + elif e[0] in ('INIT','CLEAR'):init_clear+=2 + route_items=dict(moves=sum(N['paid'].values()),helper_boundary=2*sum(N['helpers'].values()),first_main_boundary=2*ports,second_main_boundary=2*portsA,first_main_adapter=4*ports,second_main_adapter=4*portsA,owned_lifetime=4*N['lifetimes']) + routing=1000*sum(route_items.values());rest_items={};lam=0 + def swapcost(axes):return len(set(axes)-set(range(len(axes)))) + for ty,t in C['types'].items(): + ne=sum(e[0] in (ty,'J') for e in C['events']);p=len(t['ports']);nr=t['roles'];env=32*nr*p*ne + qr=[e for e in C['events'] if e[0]==ty and e[1]=='QUERY'];idle=[e for e in C['events'] if e[0]==ty and e[1]=='IDLE_ONE'];la=sum(e[0]==ty and e[1]=='LAMBDA' for e in C['events']);lam+=la*p + output=0 + for qp,zero,*mask in t['diagonal']: + axes=([0] if qp else [])+[a for k,v in enumerate(mask) if v for a in range(9+8*k,17+8*k)] + output+=p*1000*(2*swapcost(axes)+2*bool(qp)+(qp==-1)) + idleroute=sum(2*p*1000*swapcost([a for k in e[3] for a in range(1+8*k,9+8*k)]) for e in idle) + queryroute=sum(p*1000*(2+(e[4]==-1)) for e in qr) + rest_items[ty]=dict(envelope=env,thin=16*p*len(qr),field_boundary=26*nr*p,output_routes=output,idle_routes=idleroute,query_routes=queryroute) + rest=sum(sum(d.values()) for d in rest_items.values());upper=calls*(scalar+routing)+rest;conversion=calls*len(W['initial'])*104;secondlam=lam*1000 + return dict(scalar_upper=scalar,init_clear_allowance=init_clear,route_items=route_items,routing=routing,caller_items=rest_items,caller_total=rest,raw_upper=upper,per_input_conversion=conversion,lambda_second_charge=secondlam,conservative_total=upper+conversion+secondlam,margin_to_billion=10**9-upper-conversion-secondlam,odd_divisions=dict(odd),lambda_paid_rank1_would_reduce_S_by=lam) + +def main(): + ap=argparse.ArgumentParser();ap.add_argument('word');ap.add_argument('--out',required=True);ap.add_argument('--caller',action='store_true');ap.add_argument('--mutant',type=int);ap.add_argument('--caller-path',required=True);a=ap.parse_args() + W=load(a.word);C=load(a.caller_path);start=time.time();N=native(W,a.mutant) + result=dict(schema='independent-reverse-circuit-audit/1',word=str(Path(a.word).resolve()),word_sha256=pin(a.word),caller_sha256=pin(a.caller_path),native=N) + if a.mutant is None: + result['invoice']=invoices(W,C,N);result['ordinary']=ordinary(W,C,N) + if a.caller:result['caller']=caller(C) + result['seconds']=time.time()-start;Path(a.out).write_text(json.dumps(result,indent=2)+'\n');print(json.dumps(result,indent=2)) +if __name__=='__main__':main() diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/independent_bounds.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/independent_bounds.py new file mode 100644 index 0000000000..8fe729386f --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/independent_bounds.py @@ -0,0 +1,267 @@ +"""Read-only author-side audit of the odd-grid package. + +Independent fixed-grid integer word engine and positive transfer matrix caller +engine. This does not prove native/endpoint identities or run a physical tape. +Prepared for @CubeJerry with substantial OpenAI assistance. +""" +from __future__ import annotations + +from collections import Counter +from hashlib import sha256 +from math import gcd, lcm +from pathlib import Path +import ast +import gzip +import json + +ROOT = Path(__file__).resolve().parent +SOURCE = ROOT / "source/data" + + +def need(ok, message): + if not ok: + raise ValueError(message) + + +def rational(text): + bits = str(text).split("/") + return (int(bits[0]), int(bits[1]) if len(bits) == 2 else 1) + + +def height(n): + need(n > 0 and n & (n - 1) == 0, "dyadic denominator") + return n.bit_length() - 1 + + +def reduced(n, d): + g = gcd(n, d) + return str(n // g) if d // g == 1 else f"{n//g}/{d//g}" + + +def word_run(word, scale=1125, frac=24): + """Store every formal row on the *one fixed* scale*2^frac integer grid.""" + n = len(word["initial"]) + unit = 1 << frac + rows = [{i: scale * unit} for i in range(n)] + rows += [{} for _ in range(word["owned_fields"])] + frames = list(word["initial"]) + [None] * word["owned_fields"] + live = set() + peak, odd_lcm, high, visits = scale * unit, 1, 0, 0 + numerator_bits = 0 + witness = None + + def observe(row, index, kind): + nonlocal peak, odd_lcm, high, visits, witness + mass = sum(abs(value) for value in row.values()) + if mass > peak: + peak, witness = mass, (index, kind) + for value in row.values(): + if not value: + continue + odd_lcm = lcm(odd_lcm, scale // gcd(value, scale)) + trailing = (abs(value) & -abs(value)).bit_length() - 1 + high = max(high, frac - trailing) + visits += 1 + + def multiply(row, q, index): + a, b = rational(q) + result = {} + for key, value in row.items(): + quotient, residue = divmod(value * a, b) + need(residue == 0, f"integer grid rejection at event {index}: denominator {b}") + if quotient: + result[key] = quotient + return result + + for index, event in enumerate(word["program"]): + op, target = event[:2] + if op == "INIT": + need(target >= n and target not in live, "fresh owner") + live.add(target); rows[target] = {}; frames[target] = event[2] + elif op == "CLEAR": + need(target in live and frames[target] == event[2], "owner clear") + live.remove(target); rows[target] = {}; frames[target] = None + elif op == "MOVE": + need(frames[target] == event[2], "source chart") + frames[target] = event[3] + elif op == "SCALE": + need(frames[target] == event[3], "scale chart") + numerator_bits = max(numerator_bits, abs(rational(event[2])[0]).bit_length()) + rows[target] = multiply(rows[target], event[2], index) + observe(rows[target], index, "scale") + elif op in ("ADD", "COPY"): + source = event[2] + need(target != source and frames[target] == frames[source] == event[4], "common chart") + need(op != "COPY" or target in live and not rows[target], "copy zero") + numerator_bits = max(numerator_bits, abs(rational(event[3])[0]).bit_length()) + product = multiply(rows[source], event[3], index) + observe(product, index, "pre-add product") + result = rows[target].copy() + for key, value in product.items(): + result[key] = result.get(key, 0) + value + if not result[key]: + del result[key] + rows[target] = result + observe(result, index, "stored add") + else: + raise ValueError(op) + need(not live and frames[:n] == word["final"], "completed owned/frame endpoints") + need(all(value % scale == 0 for row in rows[:n] for value in row.values()), "unscaled public rows dyadic") + need(all(not row for row in rows[n:]), "private rows gone") + return dict(odd_scale_lcm=odd_lcm, dyadic_height=high, + maximum_scaled_mass=reduced(peak, unit), mass_witness=witness, + numerator_bits=numerator_bits, coefficient_visits=visits) + + +def caller_run(caller): + """Propagate all 78 positive input contributions on a common integer grid. + + Matrix entries count triangle-inequality contributions; they do not commute + Clifford words or evaluate numerical characters. The common scale only + grows and all divisions below are integer-exact after that scale change. + """ + count = caller["roles"] + rows = [[int(i == j) for j in range(count)] for i in range(count)] + debts = [0] * count + scale = 0 + maximum = pre_joint = (1, 0) + maximum_debt = joint_debt = 0 + + def larger(pair, candidate): + a, k = pair; b, ell = candidate + return candidate if (b << k) > (a << ell) else pair + + def denominator(bits): + nonlocal scale, rows + if bits: + rows = [[value << bits for value in row] for row in rows] + scale += bits + + for event in caller["events"]: + if event[0] == "J": + pre_joint = larger(pre_joint, (max(map(sum, rows)), scale)) + joint_debt = max(joint_debt, *debts) + s, t, x, y = event[2] + bs, bt, alpha, beta = event[3] + need(len({s, t, x, y, bs, bt}) == 6, "joint owner separation") + need(rational(alpha) == (-1, 1) and rational(beta) == (1, 2), "actual B pair") + a, b = rational(caller["types"]["A"]["alpha2"]) + need(b == 1, "actual A integer shear") + denominator(1) + rows[t] = [u + v for u, v in zip(rows[t], rows[s])] + rows[x] = [u + abs(a) * v for u, v in zip(rows[x], rows[y])] + combo = [u + v for u, v in zip(rows[bs], rows[bt])] + need(all(v % 2 == 0 for v in combo), "B integer halving") + rows[bs], rows[bt] = combo, [v // 2 for v in combo] + debts[t], debts[x] = max(debts[t], debts[s]), max(debts[x], debts[y]) + newdebt = max(debts[bs], debts[bt]) + debts[bs], debts[bt] = newdebt, newdebt + 1 + else: + op, t = event[1:3] + if op in ("ADD", "SCALE"): + a, b = rational(event[4] if op == "ADD" else event[3]) + k = height(b); denominator(k) + if op == "ADD": + source = event[3] + need(all(abs(a) * v % b == 0 for v in rows[source]), "ADD integer grid") + rows[t] = [u + abs(a) * v // b for u, v in zip(rows[t], rows[source])] + debts[t] = max(debts[t], debts[source] + k) + else: + need(all(abs(a) * v % b == 0 for v in rows[t]), "SCALE integer grid") + rows[t] = [abs(a) * v // b for v in rows[t]] + debts[t] += k + elif op == "QUERY": + source = event[3] + rows[t] = [u + v for u, v in zip(rows[t], rows[source])] + debts[t] = max(debts[t], debts[source]) + elif op == "SWAP": + source = event[3] + rows[t], rows[source] = rows[source], rows[t] + debts[t], debts[source] = debts[source], debts[t] + elif op == "LAMBDA": + rows[t] = [2 * v for v in rows[t]] + debts[t] += 1 + elif op != "IDLE_ONE": + raise ValueError(op) + maximum = larger(maximum, (max(map(sum, rows)), scale)) + maximum_debt = max(maximum_debt, *debts) + return dict(maximum_mass=reduced(maximum[0], 1 << maximum[1]), + pre_joint_mass=reduced(pre_joint[0], 1 << pre_joint[1]), + denominator_height=maximum_debt, pre_joint_height=joint_debt) + + +def threshold_run(): + """Read source literals by AST and regenerate the threshold by integers.""" + check = SOURCE.parent / "check.py" + nodes = ast.parse(check.read_text()).body + values = {} + for node in nodes: + if not isinstance(node, ast.Assign) or len(node.targets) != 1: + continue + target = node.targets[0] + if isinstance(target, ast.Tuple) and all(isinstance(x, ast.Name) for x in target.elts): + names = [x.id for x in target.elts] + if names == ["KAPPA", "TESTED"]: + for name, value in zip(names, node.value.elts): + need(isinstance(value, ast.Call) and isinstance(value.args[0], ast.Constant), "price source literal") + digits = value.args[0].value + before, after = digits.split(".") + values[name] = (int((before or "0") + after), 10 ** len(after)) + elif names == ["LPMIN", "LP"]: + values["LP"] = node.value.elts[1].value + a, b = values["KAPPA"] + c, d = values["TESTED"] + numerator, denominator = c*b-a*d, 7*b*d + common = gcd(numerator, denominator) + need(numerator // common == 1, "unit exact source gap") + step = denominator // common + power = values["LP"] + def wins(j): + return pow(step*j+1, power) < 1 << j + lo, hi = 1, 2 + while not wins(hi): + lo, hi = hi, hi*2 + while hi-lo > 1: + mid = (hi+lo)//2 + if wins(mid): + hi = mid + else: + lo = mid + h = step*hi + need(wins(hi) and not wins(hi-1), "threshold neighbors") + kstar = 1920*pow(153, 1920)*pow(h+1, 2) + need(h == 1339210000000000000 and kstar.bit_length() == 14066 + and (357*kstar).bit_length() == 14075 < h, "symbolic threshold margin") + return {"H": h, "integer_threshold_index": hi, "gap_denominator": step, + "logarithm_power": power, "Kstar_bits": kstar.bit_length(), + "357Kstar_bits": (357*kstar).bit_length(), + "source_check_sha256": sha256(check.read_bytes()).hexdigest()} + + +def main(): + word = json.loads(gzip.decompress((SOURCE / "word.json.gz").read_bytes())) + caller = json.loads((SOURCE / "caller.json").read_text()) + result = {"source_sha256": {n: sha256((SOURCE/n).read_bytes()).hexdigest() + for n in ("word.json.gz", "caller.json")}, + "word": word_run(word), "caller": caller_run(caller), "negative_scales": {}} + for scale in (375, 225): + try: + word_run(word, scale=scale) + except ValueError as error: + result["negative_scales"][str(scale)] = str(error) + else: + raise ValueError("insufficient odd scale was accepted") + expected = json.loads((ROOT / "EXPECTED-BOUNDS.json").read_text()) + for key in ("dyadic_height", "maximum_scaled_mass", "coefficient_visits"): + need(result["word"][key] == expected["word"][key], "independent word agreement: " + key) + need(result["word"]["odd_scale_lcm"] == 1125, "minimal source-derived scale") + need(result["word"]["numerator_bits"] == 24, "literal numerator width") + for key in ("maximum_mass", "denominator_height", "pre_joint_height"): + need(result["caller"][key] == expected["caller"][key], "independent caller agreement: " + key) + result["threshold"] = threshold_run() + print(json.dumps(result, sort_keys=True, indent=2)) + print("PASS_INDEPENDENT_ODD_GRID_BOUNDS") + + +if __name__ == "__main__": + main() diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/source_binding.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/source_binding.py new file mode 100644 index 0000000000..9f0e0a8cba --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/engines/vendor/source_binding.py @@ -0,0 +1,85 @@ +"""Authenticate the frozen source capsule; no network or Git is required. + +Prepared for @CubeJerry with substantial OpenAI assistance. Apache-2.0. +""" +from fractions import Fraction +import gzip +import hashlib +import json +from pathlib import Path +import sys +import types + +ROOT = Path(__file__).resolve().parent + + +def need(ok, message): + if not ok: + raise ValueError(message) + + +def digest(data): + return hashlib.sha256(data).hexdigest() + + +def blob(data): + return hashlib.sha1(b"blob " + str(len(data)).encode() + b"\0" + data).hexdigest() + + +def check_dependencies(): + items = json.loads((ROOT / "DEPENDENCIES.json").read_bytes())["files"] + need(len(items) == 11, "exact eleven-file immutable capsule") + seen = set() + for row in items: + name = row["local_path"] + path = ROOT / name + need(name not in seen and path.resolve().is_relative_to(ROOT), "capsule path") + seen.add(name) + data = path.read_bytes() + need(len(data) == row["bytes"], "source length: " + name) + need(digest(data) == row["sha256"], "source SHA-256: " + name) + need(blob(data) == row["git_blob"], "source Git blob: " + name) + return len(items) + + +def sources(): + check_dependencies() + caller = json.loads((ROOT / "data/caller.json").read_bytes()) + word = json.loads(gzip.decompress((ROOT / "data/word.json.gz").read_bytes())) + need(len(caller["events"]) == 3095 and caller["roles"] == 76, "frozen caller shape") + need(len(word["program"]) == 71144 and word["public"] == 1461, "frozen local word") + return caller, word + + +def load_vendor(name, relative): + """Compile authenticated bytes directly, never a cached .pyc.""" + check_dependencies() + path = ROOT / relative + module = types.ModuleType(name) + module.__file__ = str(path) + sys.modules[name] = module + exec(compile(path.read_bytes(), str(path), "exec"), module.__dict__) + return module + + +def fraction_string(x): + return str(Fraction(x)) + + +def strict_power(x): + """Smallest nonnegative k for which the exact nonnegative x is < 2**k.""" + x = Fraction(x) + need(x >= 0, "positive majorant") + k = max(0, x.numerator.bit_length() - x.denominator.bit_length()) + while x >= 1 << k: + k += 1 + while k and x < 1 << (k - 1): + k -= 1 + return k + + +def oddpart(n): + need(n > 0, "positive denominator") + while n % 2 == 0: + n //= 2 + return n diff --git a/research/p104-role379-idle-stop/application-evidence/resource-replay/preflight.py b/research/p104-role379-idle-stop/application-evidence/resource-replay/preflight.py new file mode 100644 index 0000000000..28f3a6a971 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/resource-replay/preflight.py @@ -0,0 +1,335 @@ +#!/usr/bin/env python3 +"""Run the bounded literal, grid and ordinary feasibility checks.""" + +import argparse +import gzip +import hashlib +import importlib.util +import json +import resource +import signal +import sys +from collections import Counter +from fractions import Fraction +from pathlib import Path + + +HERE = Path(__file__).resolve().parent +OUTPUTS = HERE.parents[1] +RESOURCES = OUTPUTS / 'kappa-7641-successor-20261118/resources' +VENDOR = RESOURCES / 'vendor' +SOURCE_PINS = { + 'qualify.py': '02bc6cd1a627562e69be4d2dc756e3da55048395a0b85605849b9209ec7a1902', + 'ordinary.py': 'f0325ce12226a53f52d75ba3e068f0f7d4cb80c827e302617d94ba14a10883fc', + 'tape_scalar.py': '9a22a356f3efa5605c852607b0791ecd7c6b2ef0641ae4bf0c2483c1544d31aa', + 'vendor/ODD-CALLER-EXACT-GRID.json': '87d25d9fa3778bf4784e3a9e17f32ce5ba372663c6e97392cc62b87e6719042c', + 'vendor/derive_grid.py': 'ceb7a44ef19d72a16db7b43c65c85910d965499d1715436011de32af5d39dbb0', + 'vendor/independent_bounds.py': '198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5', +} +ORIGINAL_COMPRESSED = 'de43ed04f58133eaef8f8d12a9dae1e6e8aa7f9721044200cc839673d86fd7c1' +ORIGINAL_RAW = '6a472688bdf2a1b293df0f4f77427a04a1f87c92fedb5b5a6921cc850c272b4f' +WORDS = { + '7636': { + 'head': '7e68d8dd62d9a38c0f3c942262a7a85ca7125b75', + 'path': HERE.parent / 'pins/7636/data/word.json.gz', + 'gzip_sha256': '1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659', + 'raw_sha256': '98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2', + 'canonical_sha256': 'c3390064f8bff3fda737f38c1d438016125e784952c545940bbb261b10df668c', + 'lifetimes': 180, + 'reported_grid': 54675, + }, + '7620': { + 'head': 'b1356c84a0733843ce59855f02511c49c6a44133', + 'path': OUTPUTS / 'kappa-research-20261115b/inputs/pr7620/data/word.json.gz', + 'gzip_sha256': '2eb2cf1d29529c68a6cb1c0639de3065a805858d3492068e76b70c5a5e80a81c', + 'raw_sha256': '684c1f877fe3aa9e0afaf8f494286e617bc87ed324288b589812a709d1752a5e', + 'canonical_sha256': '6c46ad38d812ae110392f1c977cc6f02665f8860e98ef1c21cb539ff3779533d', + 'lifetimes': 167, + 'reported_grid': 1125, + }, + '7658': { + 'head': '0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82', + 'path': HERE.parent / 'word7658.verified-source.gz', + 'gzip_sha256': 'dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9', + 'raw_sha256': 'fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6', + 'canonical_sha256': '9721965b3fa98cef7731ee88319fae2e62354bca3bf1a6b334bcffee14b047cf', + 'lifetimes': 234, + 'reported_grid': 225, + }, + '7658-b': { + 'head': '0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82', + 'path': HERE.parent / 'strong/run7658/WORD.json.gz', + 'gzip_sha256': '4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e', + 'raw_sha256': 'f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669', + 'canonical_sha256': 'f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669', + 'lifetimes': 234, + 'reported_grid': 225, + }, +} + + +def need(ok, message): + if not ok: + raise ValueError(message) + + +def digest(data): + return hashlib.sha256(data).hexdigest() + + +def write_json(path, data): + with path.open('x') as stream: + json.dump(data, stream, indent=2, default=str) + stream.write('\n') + + +def run_adapted(name, substitutions, argv=None): + source = RESOURCES / name + raw = source.read_bytes() + need(digest(raw) == SOURCE_PINS[name], f'source pin {name}') + text = raw.decode() + for before, after in substitutions: + need(text.count(before) == 1, f'exact adapter occurrence in {name}: {before}') + text = text.replace(before, after) + report = { + 'source': str(source), 'source_sha256': digest(raw), + 'adapted_sha256': digest(text.encode()), + 'substitutions': substitutions, + } + write_json(ACTIVE_OUT / f'{source.stem}-adapter.json', report) + original_argv = sys.argv + try: + if argv is not None: + sys.argv = [str(source), *argv] + exec(compile(text, str(source), 'exec'), {'__name__': '__main__', '__file__': str(source)}) + finally: + sys.argv = original_argv + + +def smooth(value): + if value == 0: + return False + for prime in (2, 3, 5): + while value % prime == 0: + value //= prime + return value == 1 + + +def problems(opcode, scalar): + problems = [] + numerator = abs(scalar.numerator) + if not numerator or not smooth(scalar.denominator): + problems.append('zero_or_nonsmooth_denominator') + if opcode == 'SCALE' and not smooth(numerator): + problems.append('scale_not_unit') + if abs(scalar) + 1 >= 2**16: + problems.append('native_magnitude') + if numerator >= 2**24: + problems.append('fixed_tape_numerator') + if 2 * (numerator + scalar.denominator) + 2 * (scalar.denominator // 2) >= 2**26: + problems.append('fixed_tape_W_plus_26_rounded_work_bound') + return problems + + +def literal_inventory(word): + totals, first = Counter(), {} + widest = largest_denominator = largest_magnitude = None + split_count = Counter() + for clock, event in enumerate(word['program']): + opcode = event[0] + if opcode not in ('ADD', 'COPY', 'SCALE'): + continue + scalar = Fraction(event[2] if opcode == 'SCALE' else event[3]) + witness = {'clock': clock, 'event': event, 'coefficient': str(scalar)} + issues = problems(opcode, scalar) + for issue in issues: + totals[issue] += 1 + first.setdefault(issue, witness) + if widest is None or abs(scalar.numerator) > widest[0]: + widest = (abs(scalar.numerator), witness) + if largest_denominator is None or scalar.denominator > largest_denominator[0]: + largest_denominator = (scalar.denominator, witness) + if largest_magnitude is None or abs(scalar) > largest_magnitude[0]: + largest_magnitude = (abs(scalar), witness) + if issues: + integer = int(scalar) + fraction = scalar - integer + if opcode == 'ADD' and integer and fraction and not problems(opcode, Fraction(integer)) and not problems(opcode, fraction): + split_count['qualifying_integer_plus_fraction_ADD'] += 1 + else: + split_count['different_repair_required'] += 1 + control_cases = { + 'smooth_nonzero_unit_accepts': not problems('SCALE', Fraction(9, 125)), + 'nonsmooth_scale_rejects': 'scale_not_unit' in problems('SCALE', Fraction(7, 32)), + 'nonsmooth_ADD_denominator_rejects': 'zero_or_nonsmooth_denominator' in problems('ADD', Fraction(1, 7)), + 'magnitude_endpoint_rejects': 'native_magnitude' in problems('ADD', Fraction(65535)), + 'overwide_small_coefficient_rejects': problems('ADD', Fraction(2**24+1, 2**20)) == ['fixed_tape_numerator'], + } + need(all(control_cases.values()), 'literal guard controls') + return { + 'failures_by_guard': totals, 'first_offending_literals': first, + 'max_numerator': widest, 'max_denominator': largest_denominator, + 'max_abs_coefficient': largest_magnitude, + 'bounded_split_screen_if_needed': split_count, 'controls': control_cases, + } + + +def identity(pin): + compressed = pin['path'].read_bytes() + need(digest(compressed) == pin['gzip_sha256'], 'compressed word pin') + raw = gzip.decompress(compressed) + need(digest(raw) == pin['raw_sha256'], 'raw word pin') + word = json.loads(raw) + canonical = json.dumps(word, sort_keys=True, separators=(',', ':')).encode() + need(digest(canonical) == pin['canonical_sha256'], 'canonical word pin') + return word + + +def charged_total(total, sites, expected_sites, rate): + need(sites == expected_sites and rate > 0, 'all native conversions must be charged') + conservative_total = total + sites * rate + return conservative_total, conservative_total < 10**9 + + +def quick(pin, native_scale): + path = str(pin['path']) + word = identity(pin) + source = {'source_pr': pin['head'], 'word_sha256': pin['raw_sha256'], + 'canonical_sha256': pin['canonical_sha256'], 'word_gzip_sha256': pin['gzip_sha256']} + write_json(ACTIVE_OUT / 'LITERALS.json', {'scope': 'Declared literal predicates, no physical run.', + **source, **literal_inventory(word)}) + del word + caller_raw = (VENDOR / 'ODD-TYPE-AB-CALLER.json').read_bytes() + need(digest(caller_raw) == '255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc', 'pinned signed caller') + caller = json.loads(caller_raw) + need([e[1] for e in caller['events'] if e[0] == 'J'] == list(range(1, 18)), '17 chronological call sites') + common = [("ROOT.parent/'word7641.json.gz'", f'Path({path!r})'), + (ORIGINAL_COMPRESSED, pin['gzip_sha256']), (ORIGINAL_RAW, pin['raw_sha256'])] + run_adapted('ordinary.py', [*common, + (' resource.setrlimit(resource.RLIMIT_AS, (1024**3, 1024**3))\n resource.setrlimit(resource.RLIMIT_CPU, (120, 121))\n signal.alarm(150)\n', ''), + ("out = ROOT / 'ORDINARY-RESULT.json'", f'out = Path({str(ACTIVE_OUT / "ORDINARY.json")!r})'), + ('lifetimes==234', f"lifetimes=={pin['lifetimes']}"), + ('conversion_rate(10125)-conversion_rate(1125)', f'conversion_rate({native_scale})-conversion_rate(1125)'), + ("'old':1125,'new':10125", f"'old':1125,'new':{native_scale}"), + ("'rate_new':conversion_rate(10125)", f"'rate_new':conversion_rate({native_scale})"), + ("'source_7641_reported_ordinary':878834276,", ''), + ]) + run_adapted('tape_scalar.py', [*common, + (' resource.setrlimit(resource.RLIMIT_AS,(1024**3,1024**3))\n resource.setrlimit(resource.RLIMIT_CPU,(120,121));signal.alarm(150)\n', ''), + ("out=ROOT/'TAPE-SCALAR-RESULT.json'", f'out=Path({str(ACTIVE_OUT / "TAPE-SCALAR.json")!r})'), + ('(10125,Fraction(1,10125),odd,Fraction(1,odd))', f'({native_scale},Fraction(1,{native_scale}),odd,Fraction(1,odd))'), + ("'scale_assumed_for_comparison':10125", f"'scale_assumed_for_comparison':{native_scale}"), + ('Scale 10125 is the author-reported value pending independent grid outcome.', 'Scale input is separately bound by the grid receipt or marked as provisional.'), + ]) + ordinary = json.loads((ACTIVE_OUT / 'ORDINARY.json').read_bytes()) + sites = ordinary['native_scale_comparison']['conversion_sites'] + rate = 4 * (native_scale.bit_length() + 1 + native_scale.bit_count()) + retained_total = ordinary['retained_signed_model_total'] + expected_sites = 2 * 17 * 1501 + adverse = { + 'exact_ceiling_rejected': not charged_total(10**9 - expected_sites * rate, expected_sites, expected_sites, rate)[1], + } + try: + charged_total(retained_total, sites - 1, expected_sites, rate) + except ValueError: + adverse['omitted_conversion_rejected'] = True + else: + raise ValueError('omitted conversion control was accepted') + need(all(adverse.values()), 'strict ordinary controls') + paid_total, below_cap = charged_total(retained_total, sites, expected_sites, rate) + write_json(ACTIVE_OUT / 'TARIFF.json', {**source, + 'scope': 'Declared 17-call model accounting. Keep the retained charge and double-charge all native conversions under the same conditional full-field tariff.', + 'native_scale': native_scale, 'native_conversion_sites': sites, 'units_per_site': rate, + 'extra_conversion_ordinary': sites * rate, 'retained_signed_model_total': retained_total, + 'conservative_total': paid_total, 'margin': 10**9 - paid_total, 'strict_ceiling_met': below_cap, + 'tape_control_arithmetic': adverse, + }) + + +def grid(pin, cpu, wall): + identity(pin) + run_adapted('qualify.py', [ + (ORIGINAL_COMPRESSED, pin['gzip_sha256']), (ORIGINAL_RAW, pin['raw_sha256']), + ("'only pinned #7641 word is authorized'", "'only the dispatched exact word is authorized'"), + ('(234, 50, 68)', f"({pin['lifetimes']}, 50, 68)"), + ("'prior_7637_context': 2458,", ''), + ], [f'--word={pin["path"]}', f'--output={ACTIVE_OUT / "GRID.json"}', f'--cpu-seconds={cpu}', f'--wall-seconds={wall}']) + + +def old_grid_control(pin): + word = identity(pin) + engine_path = VENDOR / 'independent_bounds.py' + need(digest(engine_path.read_bytes()) == SOURCE_PINS['vendor/independent_bounds.py'], 'unchanged integer grid engine') + spec = importlib.util.spec_from_file_location('retained_integer_grid_control', engine_path) + engine = importlib.util.module_from_spec(spec) + spec.loader.exec_module(engine) + try: + engine.word_run(word, scale=1125, frac=24) + except ValueError as error: + first_error = str(error) + else: + raise ValueError('insufficient inherited odd scale accepted') + need(first_error == 'integer grid rejection at event 5650: denominator 9', 'first inherited-scale rejection') + cut, column = 5650, 586 + coordinate = [Fraction(role == column) for role in range(word['public'] + word['owned_fields'])] + for event in word['program'][:cut]: + opcode, role = event[:2] + if opcode in ('INIT', 'CLEAR'): + coordinate[role] = Fraction(0) + elif opcode == 'SCALE': + coordinate[role] *= Fraction(event[2]) + elif opcode in ('ADD', 'COPY'): + coordinate[role] += Fraction(event[3]) * coordinate[event[2]] + event = word['program'][cut] + need(event == ['ADD', 1300, 1298, '-10/9', 3], 'exact adverse event') + source = coordinate[event[2]] + coefficient = Fraction(event[3]) + product = coefficient * source + old_tick = source * 1125 * 2**24 + need(old_tick.denominator == 1, 'original entrance coordinate integral') + remainder = (old_tick.numerator * coefficient.numerator) % coefficient.denominator + need(source == Fraction(2, 15) and product == Fraction(-4, 27) and remainder == 3, 'independent exact coordinate witness') + new_tick = product * 54675 * 2**16 + need(new_tick.denominator == 1, 'fresh grid admits the adverse product') + write_json(ACTIVE_OUT / 'OLD-GRID-CONTROL.json', { + 'status': 'PASS_SCOPED_INHERITED_GRID_REJECTION', + 'raw_word_sha256': pin['raw_sha256'], 'canonical_sha256': pin['canonical_sha256'], + 'integer_engine_sha256': SOURCE_PINS['vendor/independent_bounds.py'], + 'inherited_odd_scale': 1125, 'inherited_fractional_bits': 24, 'first_error': first_error, + 'clock': cut, 'column': column, 'event': event, 'source_coordinate_before': str(source), + 'preproduct_coordinate': str(product), 'scaled_source_integer': old_tick.numerator, + 'old_division_remainder': remainder, 'new_scaled_preproduct_integer': new_tick.numerator, + }) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument('test', choices=('quick', 'grid', 'old-grid-control')) + ap.add_argument('word', choices=WORDS) + ap.add_argument('out', type=Path) + ap.add_argument('--cpu', type=int, required=True) + ap.add_argument('--wall', type=int, required=True) + ap.add_argument('--scale', type=int) + args = ap.parse_args() + need(__debug__, 'assertions must be enabled') + need(1 <= args.cpu <= 390 and 1 <= args.wall <= 420, 'one bounded preflight') + need(digest((VENDOR / 'ODD-CALLER-EXACT-GRID.json').read_bytes()) == SOURCE_PINS['vendor/ODD-CALLER-EXACT-GRID.json'], 'pinned caller grid receipt') + resource.setrlimit(resource.RLIMIT_AS, (2 * 1024**3, 2 * 1024**3)) + resource.setrlimit(resource.RLIMIT_CPU, (args.cpu, args.cpu + 1)) + signal.alarm(args.wall) + global ACTIVE_OUT + ACTIVE_OUT = args.out.resolve() + need(ACTIVE_OUT.is_relative_to(HERE), 'fresh receipt directory under app') + ACTIVE_OUT.mkdir(parents=True, exist_ok=False) + pin = WORDS[args.word] + if args.test == 'quick': + quick(pin, args.scale if args.scale is not None else pin['reported_grid']) + elif args.test == 'grid': + grid(pin, args.cpu, args.wall) + else: + need(args.word == '7636', 'old-grid witness bound to #7636') + old_grid_control(pin) + + +if __name__ == '__main__': + main() diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/README.md b/research/p104-role379-idle-stop/application-evidence/signed-replay/README.md new file mode 100644 index 0000000000..fb6e759629 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/README.md @@ -0,0 +1,35 @@ +# Signed replay of the #7658 role-379 candidate + +The observed application used exact caller PR #7113 at head `07a76c5e2738882c0cb322278e56f6cae3c9885d` and the role-379 word with decoded SHA-256 `f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669`. It regenerated and replayed the full 17-call signed program. The complete invoice has 108,581 paid positions, 22,461 productive fields and rank surplus 1,424. The verified application claim is conditional κ ≥ 0.0037170835567. The independently directed invoice crossing interval is [0.0037170835568, 0.0037170835569]. [#7113 signed caller](https://github.com/CrocSwap/integer-mult-bounds/pull/7113) [#7658 source](https://github.com/CrocSwap/integer-mult-bounds/pull/7658) + +The observed exact application checked all 3,030 paid and helper maps, 104 main boundaries, 234 CLEARs and 1,156 reserved owned banks. All 54 strict and four functional outer predicates passed. It charged 815,804,876 conservative ordinary units including native-scale conversions, and bounded 83,895,232 scalar services, 294,932 map slots and 25,147,082,048 elementary records. Each catalogue slice rejected a wrong phase. Further controls rejected aliased main owners, a probe at the lower crossing, stale native launch bindings and seven tape mutations. + +## Reproduction + +Use Linux CPython 3.12 and the entire role-379 package. From that package's root, the following command verifies the exact #7113 source closure and the retained prerequisites without launching the scientific replay. + +```sh +python3.12 -I -B application-evidence/signed-replay/replay.py --core . check +``` + +The next command rebuilds the candidate using the core package and runs the complete signed application in a fresh directory. + +```sh +python3.12 -I -B application-evidence/signed-replay/replay.py --core . run --out /tmp/role379-signed +``` + +Use a fresh output directory for each run. By default the harness picks one available CPU and uses the original 2 GiB per-process address-space and 900-second signed wall bounds. The original signed stage took 305.15 seconds with peak RSS 122,868 KiB. The launcher unpacks a bounded local source capsule and restores the layout expected by the exact signed driver, using the core package's pricing code and the application appendix's retained native, grid and ordinary receipts. It runs offline from the complete package. + +The annex stores the original signed gzip once in `data/WORD.json.gz` at SHA-256 `4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e`. The verifier checks that compressed pin and its decoded pin, independently rebuilds the candidate through the core verifier, and compares every decoded byte. It then passes the original gzip to the unchanged signed driver. The rebuilt gzip may differ across compressors. The transport controls accept a gzip with an altered header, modification time and compression level when the decoded word is identical. They reject a one-byte change to the decoded word. + +When `--out` is omitted, the command uses a fresh temporary directory and prints the candidate hash, checked claim and catalogue count after comparing the replay. The registered command can use `run --wall 560` in its 600-second verification slot. + +The run produces the raw driver outputs and child receipts under the new directory. `REPLAY-RESULT.json` requires agreement with the observed scientific result, omitting elapsed time and stderr hashes affected by the relocated traceback paths. `data/OBSERVED.json` records original digests, resource measurements and all 14 child receipts without workspace paths. The source capsule retains the exact 68-file verification freeze used by the observed driver. Its 67 upstream members carry their exact Git blob and SHA-256 pins. The local predecessor runner within that freeze is authenticated as provenance and kept inert. The two pricing engines use the copies already in the core package. The archive includes the original caller's Apache license and the retained nested notices. + +## Open next questions + +The conditional application requires the five framework assumptions and the inherited common-U owned-bank contract covering all 234 lifetimes at the same tariff. A supplier implementation must still establish that contract, its backing and return semantics, and the compiler and analytic recovery obligations. The replay evaluates the finite model under those assumptions. + +## Credit + +Rohan Arun authored the signed caller. DreamingOfClouds authored the #7658 word and its #7641 predecessor. The application uses their sources and the inherited work credited in the retained #7113 archive, including Ali Romman and SYLforge. Clear1nsight prepared the role-379 construction, independent application and relocation with substantial OpenAI Codex assistance. Apache-2.0. diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/data/EXPECTED.json b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/EXPECTED.json new file mode 100644 index 0000000000..e9d00b3c1e --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/EXPECTED.json @@ -0,0 +1,319 @@ +{ + "assembly_sha256": "060101cd5bf6c186cd3ac471d0e538567a480fae3db5348bcb88b2161091112e", + "assumptions": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ], + "birth_roles": { + "457": { + "distinct_owners_bound": 17, + "frame": 281 + }, + "461": { + "distinct_owners_bound": 17, + "frame": 3 + } + }, + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "candidate_canonical_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "candidate_gzip_sha256": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "catalogue_boundary_pairs": 104, + "catalogue_common_with_source": 3029, + "catalogue_new_to_source": [ + [ + 748, + 1072 + ] + ], + "catalogue_size": 3030, + "clear_lifetimes": 234, + "controls": { + "absolute_phase_rejections": 4, + "aliased_main_rejected": true, + "fixed_tape": { + "cases": [ + { + "case": "positive", + "returncode": 0, + "stdout_sha256": "e4b8d73c207a964a1687a35ddd3bcc8a1e3424b5c7394dfa69275f58092d62be" + }, + { + "case": "candidate_hash", + "returncode": 1, + "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "case": "caller_hash", + "returncode": 1, + "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "case": "outer_strict", + "returncode": 1, + "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "case": "outer_functional", + "returncode": 1, + "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "case": "paid_positions", + "returncode": 1, + "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "case": "precision_cap", + "returncode": 1, + "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "case": "scalar_width", + "returncode": 1, + "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + } + ], + "positive": 1, + "rejecting": 7, + "scope": "Synthetic local guard coverage on retained fixed-tape counter; no new physical run, native provider, supplier or actual-tape proof.", + "status": "PASS_SYNTHETIC_FIXED_TAPE_GUARD_CONTROLS" + }, + "lower_crossing_probe_rejected": true, + "native_receipt_mutations": [ + "stage", + "exit", + "run_id", + "candidate_canonical_sha256", + "native_result_sha256", + "adapter_sha256", + "launcher_sha256", + "native_status", + "native_word" + ] + }, + "fixed_tape": { + "H": 14519700000000000000, + "Kstar_bits": 14073, + "actual_ambient": 145, + "caller_odd_scale": 675, + "caller_sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "common_grid": { + "fractional": "p+D", + "signed_width": "p+h+2D+3", + "temp_padding": 26 + }, + "compiler_ambient_cap": 153, + "context_bound_bits": 14084, + "context_c": 2064, + "elementary_records_per_map_upper": 85264, + "elementary_records_upper": 25147082048, + "log_power": 2281, + "max_scalar_numerator_bits": 18, + "monomial_map_slots": 294932, + "native_invocations": 17, + "native_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "owned_banks_per_raw_occurrence": 1156, + "scalar_macro_inputs": { + "caller": 117856, + "conversions": 58522, + "native": 2445348 + }, + "scalar_services_upper": 83895232, + "scalar_steps_coefficient": 87970526789632, + "scope": "Exact finite-cost and common-format substitutions in the selected #7000 conditional application proof, using the conservative primitive movement and scalar constants there. The premise is the complete signed native/physical binding and retained compiler, BIT, stock, and outer contracts. This script counts the raw occurrence, not an enumerated top-level compiled multiplier.", + "tested_claim": "37170835567/10000000000000" + }, + "ordinary": { + "extra_charge_with_possible_overlap": 2653768, + "extra_sites": 51034, + "model_margin": 184195124, + "model_total": 815804876, + "native_scale": 225, + "retained": 813151108 + }, + "paid": { + "1": 67772, + "16": 416, + "2": 15062, + "24": 416, + "3": 10251, + "32": 416, + "4": 4199, + "40": 416, + "48": 416, + "5": 6103, + "56": 416, + "6": 1428, + "64": 208, + "7": 187, + "8": 775, + "9": 100 + }, + "price_outer": { + "BIT_margin": "4960644323/100000000000000", + "BIT_pin": "376669/100000000", + "H": "14519700000000000000", + "alpha": [ + 0.9999999999999576, + 0.9999999999999576 + ], + "claim": "37170835567/10000000000000", + "compiler_gap": "1/100000000000000", + "delta": [ + 0.908348433359286, + 0.908348433359286 + ], + "derivative_upper": -374172.8204343817, + "gamma": [ + 0.943817284522682, + 0.943817284522682 + ], + "input_lift": { + "derivative_upper_on_required_interval": "-2299831290525933154178526076272396899996972093654613095735772838275432653960006518819/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "interval_kappa_cap": "376669/100000000", + "margins": { + "37170835567/10000000000000": [ + "31678024447666754254018044688990306631875772164187980148549888289641770213503/25000000000000000000000000000000000000000000000000000000000000000000000000000000", + "126712097790667017016072178755961226527503088656751920594199553158567080855969/100000000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "371708355677/100000000000000": [ + "7919506112059335116271945924238967322299873732187404127076504452589152395053/6250000000000000000000000000000000000000000000000000000000000000000000000000000", + "5068483911717974474414045391512939086271919188599938641328962849657057532911/4000000000000000000000000000000000000000000000000000000000000000000000000000000" + ] + }, + "source_BIT_wide_crude_bound_would_be": "-2299831290525933154178526076272396899996972093654613095735772838275432653960006518819/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "minimum_log_power": 2280, + "moment_margin_float": { + "2323177223/625000000000": [ + 1.0548875139509706e-09, + 1.0548875139509706e-09 + ], + "371708355677/100000000000000": [ + 1.2459643064899579e-08, + 1.2459643064899579e-08 + ], + "37170835569/10000000000000": [ + -3.696096432253417e-08, + -3.696096432253417e-08 + ] + }, + "moment_margins": { + "2323177223/625000000000": [ + "105488751395097062518299188204961118086779016880219926676546370938054401/100000000000000000000000000000000000000000000000000000000000000000000000000000000", + "105488751395097062518299188204961118086779016880219926676546370976634601/100000000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "371708355677/100000000000000": [ + "622982153244978988370367288477237876572739884098310087509931862616217203/50000000000000000000000000000000000000000000000000000000000000000000000000000000", + "38936384577811186773147955529827367285796242756144380469370741414725491/3125000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "37170835569/10000000000000": [ + "-739219286450683450654805079388236941929870150050194576768418413306899319/20000000000000000000000000000000000000000000000000000000000000000000000000000000", + "-3696096432253417253274025396941184709649350750250972883842092066495914521/100000000000000000000000000000000000000000000000000000000000000000000000000000000" + ] + }, + "outer": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "raw_bracket": [ + "2323177223/625000000000", + "37170835569/10000000000000" + ], + "tested": "371708355677/100000000000000", + "written_log_power": 2281 + }, + "reserved_native_banks": 1156, + "source_canonical_sha256": "9721965b3fa98cef7731ee88319fae2e62354bca3bf1a6b334bcffee14b047cf", + "source_copy_pins": { + "controls.py": "0530da3c9de597116b6f69b40f8588eb1d3a0ce72aabddc2e2017a68162f9a9c", + "replay/supplier7108/CALLER.json": "9557f713ab4ffb91ede05e8a6d5668c694b9940fc16f2f2d657e2f2b2cac2d3f", + "replay/supplier7112/RESULT.json": "dd554497178066500aaf2c206bed157e5a6c3251a4ddae0531dab97998636f41", + "replay/supplier7112/WORD.json.gz": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "replay/supplier7112/short-caller/BOUND-NATIVE-GRID.json": "bc5a54b8975e01be3f37c54f8b3b1f0ecfb82167794b2fea06da60423753e017", + "replay/supplier7112/short-caller/COHORT-PRICE.json": "0619c1a22ed5fd42f158c3fcbb7a3556f91c1861212e20847c9a86a925a02c0d", + "replay/supplier7112/short-caller/DATA-PHASES.json": "c5916ff312678f12aba403847643fbbc29f643acec60bdf836fa56cd3e8251fa", + "replay/supplier7112/short-caller/INGREDIENT-INPUT.json": "218ef761f0502028f9a11a1160cee4563d259b38b1317d008ff068d81b4299bc", + "replay/supplier7112/short-caller/ODD-LOCALIZED-GROUPING.json": "8aac6b3d9e528bffbcf411bbd300c8e0f0b7bf75da45ab12badf3f3530ffcbe2", + "replay/supplier7112/short-caller/ODD-UNIT-DYADIC-TAPES.json": "c3195057f7a6723a81172ed540d0f1c4ba699ff3cb8dc37cbde7bb481d9b976c", + "replay/supplier7112/short-caller/ODD-UNIT-PREFIX-CLOSURES.json": "3b953e5d3e83e7573a3e908a5a23edb78773d4d22816aca54f766f0f0e9f5403", + "replay/supplier7112/short-caller/SHORT-ADMISSION-PARTIAL.json": "7977815fe72382738727e3d550eea3bc735923c9c57968872d4f863cb39cd401", + "replay/supplier7112/short-caller/SHORT-CALLER-RAW-PRICE.json": "a4f83d65d250efb40f6506658374d7414afdde11c96eb88b7d2fbb182aa090c1", + "replay/supplier7112/short-caller/SHORT-PRECISION.json": "68a00d2b83ee2eb944d2e05fc7f32bc9aa37282c45b968f0ab6fd500659ac028", + "replay/supplier7112/short-caller/SHORT-TYPE-A-ROOT.json": "e9812d720942d8149c219dfa28c1081ff1d353529e5282ca4624a04233f38f88", + "replay/supplier7112/short-caller/admission-source/ARCHIVE-CHAIN.json": "6de95c4eb396e69883fbeeb3989782bbbe232c22644af1c804050badca10f456", + "replay/supplier7112/short-caller/admission-source/FULL-RESULT.json": "d9ba709fa5dcefffe3f3abdcf34600ce188224703cfd743e6db8b58ba4816cb7", + "replay/supplier7112/short-caller/admission-source/INDEPENDENT-NOTICE.md": "cadbc642ca84311d2c7a6cf704c7828cb4cf77e3c784b66e4c6e8a5c28002fb8", + "replay/supplier7112/short-caller/admission-source/INDEPENDENT-SOURCES.json": "dced1457df5230466ba6202fd6d4595bc2b7fb2a65302806bf2720b1837ff350", + "replay/supplier7112/short-caller/admission-source/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "replay/supplier7112/short-caller/admission-source/NATIVE-INPUTS.json": "9bb6c1567783661334d6c1d23f715ce5635cbbb513678819ab9e020a34c7e4c0", + "replay/supplier7112/short-caller/admission-source/NOTICE": "da12736e2e824167ff56f2ecb623a5f88f75a270410360890f61dffc33bab249", + "replay/supplier7112/short-caller/admission-source/data/bit-admission.json": "a46b6c6040f75184cab5467656811ad988c216e3bc8e44d595a5015b6e49620b", + "replay/supplier7112/short-caller/admission-source/data/caller.json": "3828d53e80ea97e8b866320f081af20b6b93bfebd58b95b56b85a7afe151af5e", + "replay/supplier7112/short-caller/admission-source/data/final.json.gz": "2b94953dc14a122e3ef089633f05b58ec689ec5156feb7c784ed3e137dc01883", + "replay/supplier7112/short-caller/admission-source/frozen/clifford_exact.py": "2982ead07721e83358dc67c6f49c2b4c16a236a6bebdfd72f58221be1f5d0962", + "replay/supplier7112/short-caller/admission-source/frozen/native_verify.py": "3049471905b47b385c88378a1a3be7a18b8858aadd035b8a6da2f4a03b470f38", + "replay/supplier7112/short-caller/admission-source/frozen/physical.py": "4e995d1158033d83bf69b671f23dc7924d66edbbe07623ba063ba7421234ea20", + "replay/supplier7112/short-caller/admission-source/frozen/verify_host3_odd.py": "e75ad2096ba2587d1dc9c8982b2c2eb7c6fd2636a80adcd943314ef2cf6fd258", + "replay/supplier7112/short-caller/admission-source/independent.py": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "replay/supplier7112/short-caller/admission-source/interval_gate.py": "60a743d13f668ef86db4b8215b4d5d04430a671ba6f1fe06d9c1c4c3dfe86da5", + "replay/supplier7112/short-caller/admission-source/precision_replay.py": "850d9098c5946ab27ef5228acc54d59df2196e72259d3e21588ec0c319c8f5ee", + "replay/supplier7112/short-caller/admission-source/retained/odd-native-common-grid/independent_bounds.py": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/envelopes.py": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/source_binding.py": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "replay/supplier7112/short-caller/assemble_odd_application.py": "6cdac39ab196a70c53ba2283c2555cd8dee30644dcc4769628b46fb53bd55a1f", + "replay/supplier7112/short-caller/candidate_gate.py": "e71097ca81a082afd7c647324a6c94cb357aeb1084693a095a0f3e0b45a9b11a", + "replay/supplier7112/short-caller/check_odd_caller_exact_grid.py": "abd5a5fd011b71e5b382cbc058855594d4f2fe7b049f375506675c0303180f54", + "replay/supplier7112/short-caller/check_odd_fixed_tape_counts.py": "7ee80322d63c03e07fe0c7e28438d9191f335438924321ec3ba2a229bd4404b6", + "replay/supplier7112/short-caller/check_odd_partial_admission.py": "53238097b9f4f8a58142824f9df855da5ee7ca60d53b5ac07012296408f44035", + "replay/supplier7112/short-caller/check_odd_physical_binding.py": "5c80c3b0415a7f91d216395248dd6f13297eed637732098e1ca8fb0548951b98", + "replay/supplier7112/short-caller/check_odd_precision.py": "ea6dea2ca47b52e5512dc45126cd7ab632bc6f817b351bd87b95cf9c1c7e8235", + "replay/supplier7112/short-caller/connected.py": "469537b46fb92c5aca926d3b1497da5425408673b0a73ba1427f23d872b414e7", + "replay/supplier7112/short-caller/cut_library.py": "7ccb81af19db54ec7cdb44849af018d4ca8893f80f17277914f8566715985133", + "replay/supplier7112/short-caller/emit_odd_type_ab.py": "6fd9f61f9ba6c726524d1a585d0201b0eac61829ccae6be598f0f0fc1cb64f1a", + "replay/supplier7112/short-caller/emit_odd_type_b.py": "d1fa8b67d98beacd6bb574b3d5fcbc94b8646a7ffbce91d2a6fd4d690d3c5329", + "replay/supplier7112/short-caller/host34.py": "bded1a8626d65ee40c4ba3b25780fc03f0fa08906f3c83f631892df072d9a9b7", + "replay/supplier7112/short-caller/independent.py": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "replay/supplier7112/short-caller/interval_gate.py": "60a743d13f668ef86db4b8215b4d5d04430a671ba6f1fe06d9c1c4c3dfe86da5", + "replay/supplier7112/short-caller/lower.py": "67345fdfc8e5bb816e24b37dfafad0396372c48ec4e1b95b8b69f019a8fdfdee", + "replay/supplier7112/short-caller/mirrored.py": "55dd441a3a7f504b351857d45fd701994a0950ae1baec6c4c2b4b0166fb69db3", + "replay/supplier7112/short-caller/native_ingredient.py": "a455469277054a2cb5949c6d98f5a4ae6f31f16acba31e0eeea360b43b0f4ceb", + "replay/supplier7112/short-caller/odd_unit_dyadic_tapes.py": "3cdafa35635360a487ce400ec8d585f6134dd7c58209543528e98e7db178bbc7", + "replay/supplier7112/short-caller/screen.py": "01e3eaba4b710a080e6e393e53157e6a119fdf312620eed26e9185ca91f6bea6", + "replay/supplier7112/short-caller/short_dyadic_seam.py": "6e588b365618ab2df4fa2d1f16073d09a953a7cd6e826e1f96bbf87f950b672b", + "replay/supplier7112/short-caller/short_native_catalogue.py": "775695c379f407801910531565cc371012cee501b2cec5f5d718ecdccf06b64d", + "replay/supplier7112/short-caller/signed_child.py": "ef03444360f02225138be9b38e2f9a85f313eeaa910d63a365de0f16d228cb8b", + "replay/supplier7112/short-caller/signed_model.py": "f88c798b9a22c656ea0b755b4f32be411c1f80687dff1a1ac9e9c2a0b5f4203e", + "replay/supplier7112/short-caller/stage.py": "0ab5546e926dd98d3ad833909b534840b7d8d0467c4790ca09bc2b14b37313f5", + "replay/supplier7112/short-caller/upstream_application.py": "d98987db98553dc55bfc80e3ca47abfcd51c57af6f8cda61101391d8eae94184", + "replay/supplier7112/short-caller/upstream_native_catalogue.py": "6120e1ea1e07eeba757694d209437a38f121b0a377cc466889a30fa52c561472" + }, + "source_head": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "source_pr": 7658, + "status": "PASS_FRESH_SIGNED_CALLER_CONDITIONAL_COMPONENTS", + "targets": { + "1": 306, + "137": 208, + "17": 416, + "2": 357, + "25": 416, + "3": 799, + "33": 416, + "4": 3825, + "41": 416, + "49": 416, + "5": 1360, + "57": 416, + "6": 748, + "65": 416, + "7": 323, + "73": 208, + "8": 544, + "9": 10871 + } +} diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/data/OBSERVED.json b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/OBSERVED.json new file mode 100644 index 0000000000..1bc0dd6c88 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/OBSERVED.json @@ -0,0 +1,177 @@ +{ + "children": [ + { + "check": "SHORT-CATALOGUE-0-1000", + "cpu_seconds": 71.163271, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "cfbfeb2c08536428dac9b915a7d2ba69e0fa722ca0ced0056ef6f3d63d0fc855", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "80d07e71a35ca8f09438a3fc38c50578ddafbd502b0b5786421b3b0ad3c910bb", + "swaps": 0, + "wall_seconds": 71.66257273199153 + }, + { + "check": "SHORT-CATALOGUE-1000-2000", + "cpu_seconds": 79.059795, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "21ac8b38c94628f51f8d1c95281d397148fb286394517731d85858e886aac946", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "5d117ff447d07b9471dc6127b849b5c3a30061e177f19a72ba75bdfe7ea36526", + "swaps": 0, + "wall_seconds": 79.37606150200008 + }, + { + "check": "SHORT-CATALOGUE-2000-3000", + "cpu_seconds": 78.559405, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "86460713aa4b26db8414d1bf0e9a7b6230b74305db0f2f1c7750057fdd4dc137", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "5c72474c3d1e79e997338beea92116d4c8f37cb1c1b613433bd01f62ea7e45aa", + "swaps": 0, + "wall_seconds": 78.77430970800924 + }, + { + "check": "SHORT-CATALOGUE-3000-3030", + "cpu_seconds": 6.765733, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "25b73f05959b84e51a40db91689fa214451b3ea3287727e25746bffa92fd370c", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "0aaef267d6b8dcfe71831187db4b7ceb8cc5c7201aa598cf4029c74dada3a4b1", + "swaps": 0, + "wall_seconds": 6.911022795015015 + }, + { + "check": "assemble_odd_application", + "cpu_seconds": 0.050654, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "34cce669f906f9141f75ced97aff9a90914b03786325a6d6f4849dc24f8f0197", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "d22c37ad00925a13f6d827084b5e81221ef59c7cc4e4c9f268d58a49c182995e", + "swaps": 0, + "wall_seconds": 0.1034029939910397 + }, + { + "check": "check_odd_caller_exact_grid", + "cpu_seconds": 4.982714, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "34a6360a9538ce8d89e9ce5ed511aed9273df024050ee4e16e158441e945c4bf", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "2878d7d7d7eb5fc8b54d1ddb2c31331fd3aef8cb79181948a8df51e40624ff3c", + "swaps": 0, + "wall_seconds": 5.009847561013885 + }, + { + "check": "check_odd_fixed_tape_counts", + "cpu_seconds": 0.673596, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "2cc54b165ddbb41a65f4eba7c305bee33bc0e033b55675df66703c523658c94f", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "e4b8d73c207a964a1687a35ddd3bcc8a1e3424b5c7394dfa69275f58092d62be", + "swaps": 0, + "wall_seconds": 0.7032545499969274 + }, + { + "check": "check_odd_partial_admission", + "cpu_seconds": 15.172529, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "b0a39e1074772dfccea395643b4a9855c6b60355af3b686d8e3353c13afada8e", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "8372b05b076f2a90ac95b861bb8b0daa300e242af6a488712a56137967209f0f", + "swaps": 0, + "wall_seconds": 15.215906586992787 + }, + { + "check": "check_odd_physical_binding", + "cpu_seconds": 10.651895000000001, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "8896bf493f2463cb20667b8099d7309a921762d70f48768f3a6fd84d6f7a3008", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "4fb847891be6126f6d85d79b4435b557d035842d559880ecf6b12ce2c5115f61", + "swaps": 0, + "wall_seconds": 10.915792102983687 + }, + { + "check": "check_odd_precision", + "cpu_seconds": 1.0017019999999999, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "5664561f9a9fc895476cd50778fc87e749f49536716243e99d6120f00d73a919", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "af3167e850cb95dca860b232a9cbb0f959dbc549cd4514c9ead165e4585241ff", + "swaps": 0, + "wall_seconds": 1.003227217006497 + }, + { + "check": "emit_odd_type_ab", + "cpu_seconds": 2.663581, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "f35a0b236f309913bc4df478101f5bf4eb576af0e27cb60f101f4ca9338ff4fc", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "afcbffd1c461c964ec6ad174277cab2442c281419df69e0aa984e59d8b3c0a0a", + "swaps": 0, + "wall_seconds": 2.707049732998712 + }, + { + "check": "emit_odd_type_b", + "cpu_seconds": 6.009882, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "95a53cd2999f003cf1a13c18d650d41adf96d51cfe6a91da412ca721dae69cfa", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "993a372fe8e7aa28fc8fe349a71f100b8871728630a0b518de4853525ad37d2f", + "swaps": 0, + "wall_seconds": 6.108595209021587 + }, + { + "check": "fixed_controls", + "cpu_seconds": 4.231583, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "4838cb7668c25429a91d39a7ec59139da7aea4fdb3a68e9ecbb35f623a3be40a", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "f0877a80478ec477409657dffc80a4e3a9612e702f731e1335e1d8d9b2bf6436", + "swaps": 0, + "wall_seconds": 4.306096930988133 + }, + { + "check": "native_ingredient", + "cpu_seconds": 16.780705, + "exit": 0, + "peak_rss_kib": 120564, + "raw_receipt_sha256": "96ab1fcd0d06c602476c90adbd0af84c90c40f6d0b968d1a53c1de10d4da206f", + "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "stdout_sha256": "2cdeb048cafa211c211097ee2437eeb5d5001c65415d9eaf002f711c4ced17f4", + "swaps": 0, + "wall_seconds": 16.91754675100674 + } + ], + "driver_files": { + "engines.py": "3c7acc3de8709c9e2aa1211b7cea9e3711789256778e43a82093074afd570f89", + "guard.py": "134f02c54632f84d2d265efb7d032ec2400aa70cfa636376bcde193fdafd2392", + "native_ingredient.py": "a455469277054a2cb5949c6d98f5a4ae6f31f16acba31e0eeea360b43b0f4ceb", + "run.py": "2b9c6977c03840a5f3ca8b14188c0770866656bcc1581e7809f1f7efe87f2548" + }, + "ended": "2026-11-18T01:39:33.402023+00:00", + "normalized_result_sha256": "0cf30b41a25a3d71c58d7425f6aee701bf438872bcd9b07e3b9c0d4efe8ccfc6", + "original_parameters_sha256": "08f0f4471981fa648598caeb7ae6475e2e60dbf20d99edc69948bb1312446ae2", + "peak_rss_kib": 122868, + "raw_authorization_sha256": "b2af18c0e24c6e3dff8fa157a6a194cba640435b1ba0da720e37762579034204", + "raw_exit_sha256": "73dd2b3a9c000fe6d841c4585d23c7261e84f3abeb21eb92744a25929855181e", + "raw_price_outer_sha256": "452ca88f786fe7c9c61477d37c9c35c16072e5044c028b07d2836418dbb6b594", + "raw_result_sha256": "520230a2e51933101114b55f0178d38277ccc062e2b11825be1e3aca0cd7ee38", + "raw_start_sha256": "d24f0afd35aeda450e6f3b01a1ce01bb96d5db75b59f3cbc3bdee61afe76c6fc", + "scope": "Historical actual 17-call signed application", + "started": "2026-11-18T01:34:28.319119+00:00", + "status": "PASS_FRESH_SIGNED_CALLER_CONDITIONAL_COMPONENTS", + "wall_seconds_observed": 305.15 +} diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/data/SOURCE-CLOSURE.json b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/SOURCE-CLOSURE.json new file mode 100644 index 0000000000..00a48ac333 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/SOURCE-CLOSURE.json @@ -0,0 +1,569 @@ +{ + "archive_sha256": "6f6f67b5b1ef44d6a5085dfd518c0b488ae91dbeee49d0bdbec4cf63a2f41735", + "caller_head": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "caller_pr": 7113, + "caller_repository": "rohanarun/integer-mult-bounds", + "members": { + "caller/FREEZE.json": { + "bytes": 9058, + "origin": "retained_exact_source_freeze", + "sha256": "ac57680f5a9c2ba97840b3b5bd10f1b7b77db1fe20d54e6197a1e18c08842045" + }, + "caller/LICENSE": { + "bytes": 11357, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "origin": "github", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "source_path": "research/signed-caller-8x9/LICENSE" + }, + "caller/expected/ODD-8X9-APPLICATION-CHECKS.json": { + "bytes": 11790, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "4082bd88e5f0e559ad5e4a0dc745dc4e55ca9c70", + "origin": "github", + "sha256": "10512d62f540fe7bb839ec94b6a21bbdf4a3dfadf56b4ec9095d4b242bda19b8", + "source_path": "research/signed-caller-8x9/expected/ODD-8X9-APPLICATION-CHECKS.json" + }, + "caller/expected/ODD-ADMISSION-PARTIAL.json": { + "bytes": 10525, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "edddf47ec553dab6f182c81fcb7cd563d272c7a8", + "origin": "github", + "sha256": "75ec76e4393ef1622fcff9e2727dc411921076af4a506d97506665add140fa86", + "source_path": "research/signed-caller-8x9/expected/ODD-ADMISSION-PARTIAL.json" + }, + "caller/expected/ODD-CALLER-EXACT-GRID.json": { + "bytes": 684, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "1ba429a3908ee85e6c14b366a8c03c19d6e5c6c0", + "origin": "github", + "sha256": "87d25d9fa3778bf4784e3a9e17f32ce5ba372663c6e97392cc62b87e6719042c", + "source_path": "research/signed-caller-8x9/expected/ODD-CALLER-EXACT-GRID.json" + }, + "caller/expected/ODD-FIXED-TAPE-COUNTS.json": { + "bytes": 1334, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "e8459616d5ea3ab72fabd31c1838c250630badec", + "origin": "github", + "sha256": "1a8bf36a966edca8c61f3be803cdbe136307095dec40245cdc93e79a9062fe99", + "source_path": "research/signed-caller-8x9/expected/ODD-FIXED-TAPE-COUNTS.json" + }, + "caller/expected/ODD-PHYSICAL-BINDING.json": { + "bytes": 2020, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "c10f2a7f93b5632fb8789046b6a5c99da42c432a", + "origin": "github", + "sha256": "ade5f8cbb2e30677b1d48d23a1aa270b3d0b72e2504472ab9fdb71d124b075b5", + "source_path": "research/signed-caller-8x9/expected/ODD-PHYSICAL-BINDING.json" + }, + "caller/expected/ODD-PRECISION.json": { + "bytes": 28948, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "2117f3ab66ec96f7387029fcba2f3c098ca80239", + "origin": "github", + "sha256": "9c03607288cc2afb80cb02c197f93360978233036418b32b09ad91be16f9c153", + "source_path": "research/signed-caller-8x9/expected/ODD-PRECISION.json" + }, + "caller/expected/ODD-TYPE-AB-CALLER.json": { + "bytes": 117156, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "9451ceaf6e8e037894680b549f3ef41c21b260d7", + "origin": "github", + "sha256": "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc", + "source_path": "research/signed-caller-8x9/expected/ODD-TYPE-AB-CALLER.json" + }, + "caller/expected/ODD-TYPE-AB-REPLAY.json": { + "bytes": 1569, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "7c7641f7727c3e889ab05f87612d01abf8e8b296", + "origin": "github", + "sha256": "71fd0a7ad8b743266c6a75100f3543b48ea7d6fcbe45f008d3b61270e3b660a0", + "source_path": "research/signed-caller-8x9/expected/ODD-TYPE-AB-REPLAY.json" + }, + "caller/replay/supplier7108/CALLER.json": { + "bytes": 121560, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "534eea1eb122ff43e607fa382dbd694ba2e5e56e", + "origin": "github", + "sha256": "9557f713ab4ffb91ede05e8a6d5668c694b9940fc16f2f2d657e2f2b2cac2d3f", + "source_path": "research/signed-caller-8x9/replay/supplier7108/CALLER.json" + }, + "caller/replay/supplier7112/RESULT.json": { + "bytes": 73115, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "6d984a86455bcbd77bcee9d2922ac7d713b15284", + "origin": "github", + "sha256": "7b808ff32d9803084aaaf820cd172ddc9001c7aebbd17e0324e779abeff91b30", + "source_path": "research/signed-caller-8x9/replay/supplier7112/RESULT.json" + }, + "caller/replay/supplier7112/WORD.json.gz": { + "bytes": 355352, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "856952b2aabfef84bf2c1fe37320f4b6d6bc4491", + "origin": "github", + "sha256": "fe0b1dc3049a6b72760a705af2e698e0e9998e969e19862a696eba63434eb233", + "source_path": "research/signed-caller-8x9/replay/supplier7112/WORD.json.gz" + }, + "caller/replay/supplier7112/short-caller/DATA-PHASES.json": { + "bytes": 814141, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "d9a4f84211182ca200c081ea061d724c8a2cfb70", + "origin": "github", + "sha256": "c5916ff312678f12aba403847643fbbc29f643acec60bdf836fa56cd3e8251fa", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/DATA-PHASES.json" + }, + "caller/replay/supplier7112/short-caller/ODD-LOCALIZED-GROUPING.json": { + "bytes": 355579, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "bf6d7a8d51a2bd6de2be823550f98cb5c4e074c8", + "origin": "github", + "sha256": "8aac6b3d9e528bffbcf411bbd300c8e0f0b7bf75da45ab12badf3f3530ffcbe2", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/ODD-LOCALIZED-GROUPING.json" + }, + "caller/replay/supplier7112/short-caller/ODD-UNIT-DYADIC-TAPES.json": { + "bytes": 34184, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "2e640266f70d9f96c3195e715c3524fcddc6db96", + "origin": "github", + "sha256": "c3195057f7a6723a81172ed540d0f1c4ba699ff3cb8dc37cbde7bb481d9b976c", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/ODD-UNIT-DYADIC-TAPES.json" + }, + "caller/replay/supplier7112/short-caller/ODD-UNIT-PREFIX-CLOSURES.json": { + "bytes": 10730, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "d6a3718b18942ae2fa6d63f845414294b5e94abd", + "origin": "github", + "sha256": "3b953e5d3e83e7573a3e908a5a23edb78773d4d22816aca54f766f0f0e9f5403", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/ODD-UNIT-PREFIX-CLOSURES.json" + }, + "caller/replay/supplier7112/short-caller/SHORT-ADMISSION-PARTIAL.json": { + "bytes": 10417, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "558d65f480f695b0e6f96db695644b5a3809c958", + "origin": "github", + "sha256": "7977815fe72382738727e3d550eea3bc735923c9c57968872d4f863cb39cd401", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/SHORT-ADMISSION-PARTIAL.json" + }, + "caller/replay/supplier7112/short-caller/SHORT-CALLER-RAW-PRICE.json": { + "bytes": 4312, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "e1473e1a2d9d83a62f916c1745429ca72b939955", + "origin": "github", + "sha256": "a4f83d65d250efb40f6506658374d7414afdde11c96eb88b7d2fbb182aa090c1", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/SHORT-CALLER-RAW-PRICE.json" + }, + "caller/replay/supplier7112/short-caller/SHORT-CATALOGUE-0-1000.log": { + "bytes": 965, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "90b09eb4dc992501c6edaa61872f7d225ea2c77c", + "origin": "github", + "sha256": "a916a76627fb79bf606b22f857ca93db6342891fb2c85b20658b5002c359e422", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/SHORT-CATALOGUE-0-1000.log" + }, + "caller/replay/supplier7112/short-caller/SHORT-CATALOGUE-1000-2000.log": { + "bytes": 974, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "80bc6ea9976744294c9ec3fdacc8696578846e2a", + "origin": "github", + "sha256": "da633bfa408e98a2f2a958262a09d5e4274a9b25f7b4a6a73df5a97f37338f79", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/SHORT-CATALOGUE-1000-2000.log" + }, + "caller/replay/supplier7112/short-caller/SHORT-CATALOGUE-2000-3047.log": { + "bytes": 1000, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "356672d505421157eafac11a7edb73a9829a82fd", + "origin": "github", + "sha256": "e8d500c0261a4a9e0cf3da2838d82806ed497ab9cf57cb8620ca6debfb98525c", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/SHORT-CATALOGUE-2000-3047.log" + }, + "caller/replay/supplier7112/short-caller/SHORT-PRECISION.json": { + "bytes": 28381, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "6e0669b319f0265f3aadf6ad85b6ecc4738aa508", + "origin": "github", + "sha256": "68a00d2b83ee2eb944d2e05fc7f32bc9aa37282c45b968f0ab6fd500659ac028", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/SHORT-PRECISION.json" + }, + "caller/replay/supplier7112/short-caller/SHORT-TYPE-A-ROOT.json": { + "bytes": 168057, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "6d0a3ea1e2446818a231142484609c53a85eabd2", + "origin": "github", + "sha256": "e9812d720942d8149c219dfa28c1081ff1d353529e5282ca4624a04233f38f88", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/SHORT-TYPE-A-ROOT.json" + }, + "caller/replay/supplier7112/short-caller/admission-source/ARCHIVE-CHAIN.json": { + "bytes": 204, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "4533eb3778c635ac352facefad3a1ab0d3cd3d4f", + "origin": "github", + "sha256": "6de95c4eb396e69883fbeeb3989782bbbe232c22644af1c804050badca10f456", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/ARCHIVE-CHAIN.json" + }, + "caller/replay/supplier7112/short-caller/admission-source/FULL-RESULT.json": { + "bytes": 25225, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "ff3256f0d3ffbfc56b062f9ec0fdbbc7b30e76d5", + "origin": "github", + "sha256": "d9ba709fa5dcefffe3f3abdcf34600ce188224703cfd743e6db8b58ba4816cb7", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/FULL-RESULT.json" + }, + "caller/replay/supplier7112/short-caller/admission-source/INDEPENDENT-NOTICE.md": { + "bytes": 1238, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "1bc9b4da2b8398954cd7a49356eb9d397785d0a6", + "origin": "github", + "sha256": "cadbc642ca84311d2c7a6cf704c7828cb4cf77e3c784b66e4c6e8a5c28002fb8", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/INDEPENDENT-NOTICE.md" + }, + "caller/replay/supplier7112/short-caller/admission-source/INDEPENDENT-SOURCES.json": { + "bytes": 1921, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "95afd397782ada3dfcf0f4d9fa1fdb76ab6ea617", + "origin": "github", + "sha256": "dced1457df5230466ba6202fd6d4595bc2b7fb2a65302806bf2720b1837ff350", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/INDEPENDENT-SOURCES.json" + }, + "caller/replay/supplier7112/short-caller/admission-source/LICENSE": { + "bytes": 11357, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "origin": "github", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/LICENSE" + }, + "caller/replay/supplier7112/short-caller/admission-source/NATIVE-INPUTS.json": { + "bytes": 1868, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "347b2c4df65e55aacf289addc96d6558e8e1eaf2", + "origin": "github", + "sha256": "9bb6c1567783661334d6c1d23f715ce5635cbbb513678819ab9e020a34c7e4c0", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/NATIVE-INPUTS.json" + }, + "caller/replay/supplier7112/short-caller/admission-source/NOTICE": { + "bytes": 893, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "a3687d65a00794277cdaad37558d24008cbc37f5", + "origin": "github", + "sha256": "da12736e2e824167ff56f2ecb623a5f88f75a270410360890f61dffc33bab249", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/NOTICE" + }, + "caller/replay/supplier7112/short-caller/admission-source/data/bit-admission.json": { + "bytes": 313909, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "575f76487f9999ecc3e7b1b70f9f71bc582ef8a8", + "origin": "github", + "sha256": "a46b6c6040f75184cab5467656811ad988c216e3bc8e44d595a5015b6e49620b", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/data/bit-admission.json" + }, + "caller/replay/supplier7112/short-caller/admission-source/data/caller.json": { + "bytes": 73501, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "cf55f4271009a06ad192a070d330a4466b6d44fa", + "origin": "github", + "sha256": "3828d53e80ea97e8b866320f081af20b6b93bfebd58b95b56b85a7afe151af5e", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/data/caller.json" + }, + "caller/replay/supplier7112/short-caller/admission-source/data/final.json.gz": { + "bytes": 350722, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "74563a7867d9d762b6588f65362369668841bb3e", + "origin": "github", + "sha256": "2b94953dc14a122e3ef089633f05b58ec689ec5156feb7c784ed3e137dc01883", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/data/final.json.gz" + }, + "caller/replay/supplier7112/short-caller/admission-source/frozen/clifford_exact.py": { + "bytes": 6824, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "166841a037f069249f6f7f6dedb89248812f59e2", + "origin": "github", + "sha256": "2982ead07721e83358dc67c6f49c2b4c16a236a6bebdfd72f58221be1f5d0962", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/frozen/clifford_exact.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/frozen/native_verify.py": { + "bytes": 12323, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "2c209dfa9cfade3bc20ac5fc9d876b433a147f8c", + "origin": "github", + "sha256": "3049471905b47b385c88378a1a3be7a18b8858aadd035b8a6da2f4a03b470f38", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/frozen/native_verify.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/frozen/physical.py": { + "bytes": 7527, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "5e0b17b9ef2151e3dee68378b71b3d0d47a56233", + "origin": "github", + "sha256": "4e995d1158033d83bf69b671f23dc7924d66edbbe07623ba063ba7421234ea20", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/frozen/physical.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/frozen/verify_host3_odd.py": { + "bytes": 4861, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "2117502bedfc9fc0a7abade8243eb5a43d0b514e", + "origin": "github", + "sha256": "e75ad2096ba2587d1dc9c8982b2c2eb7c6fd2636a80adcd943314ef2cf6fd258", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/frozen/verify_host3_odd.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/independent.py": { + "bytes": 11970, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "1ae1d7c680ad86c0fa999f2e8f0c09e966fc07a0", + "origin": "github", + "sha256": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/independent.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/interval_gate.py": { + "bytes": 6886, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "e24dc46079b4c25152f5afc096dda2ce8ee58ff5", + "origin": "github", + "sha256": "60a743d13f668ef86db4b8215b4d5d04430a671ba6f1fe06d9c1c4c3dfe86da5", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/interval_gate.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/precision_replay.py": { + "bytes": 2676, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "fafa1611dded2746f021714aad6837aed61041cb", + "origin": "github", + "sha256": "850d9098c5946ab27ef5228acc54d59df2196e72259d3e21588ec0c319c8f5ee", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/precision_replay.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/retained/odd-native-common-grid/independent_bounds.py": { + "bytes": 11449, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "8fe729386f81e6973bbe7ecaa5dbb4bf86281908", + "origin": "github", + "sha256": "198521def614fe78fa728f1dde2b7fb820c0c0e0ac3ad0c9224dccbf51eac0d5", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/retained/odd-native-common-grid/independent_bounds.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/envelopes.py": { + "bytes": 14441, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "70c8ca23763e30c924fb726b74b82f44d344c65f", + "origin": "github", + "sha256": "783da6b5b450fc07434946cb9ec86070dfee01df6b5fa1c385cb024def2c9a9f", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/envelopes.py" + }, + "caller/replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/source_binding.py": { + "bytes": 2424, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "9f0e0a8cbaf48266cf9c6aa8b263505e9569390c", + "origin": "github", + "sha256": "624c459311c58f3847b7713b818bfd340153abf42919f02ac9aa8892ed52a2bd", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/admission-source/retained/query-only-precision-envelope/source_binding.py" + }, + "caller/replay/supplier7112/short-caller/assemble_odd_application.py": { + "bytes": 3634, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "8e0c97cb8436eaa8e1eb731275af9e7769b85755", + "origin": "github", + "sha256": "6cdac39ab196a70c53ba2283c2555cd8dee30644dcc4769628b46fb53bd55a1f", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/assemble_odd_application.py" + }, + "caller/replay/supplier7112/short-caller/candidate_gate.py": { + "bytes": 8706, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "9059169472058620ff7de4c467aebabc657f6112", + "origin": "github", + "sha256": "e71097ca81a082afd7c647324a6c94cb357aeb1084693a095a0f3e0b45a9b11a", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/candidate_gate.py" + }, + "caller/replay/supplier7112/short-caller/check_odd_caller_exact_grid.py": { + "bytes": 5342, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "1bbc6f149f7ae3e1d68ab79642a642a94054428e", + "origin": "github", + "sha256": "abd5a5fd011b71e5b382cbc058855594d4f2fe7b049f375506675c0303180f54", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/check_odd_caller_exact_grid.py" + }, + "caller/replay/supplier7112/short-caller/check_odd_fixed_tape_counts.py": { + "bytes": 4247, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "6873f9618d59d489b67b9eaca45e6142a16b53f3", + "origin": "github", + "sha256": "e6246e9f8fbeae3077d82e585eafd3647c1a8758c58f33c7c13e7efa6c1e42bb", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/check_odd_fixed_tape_counts.py" + }, + "caller/replay/supplier7112/short-caller/check_odd_partial_admission.py": { + "bytes": 4410, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "eb12dfd706f07aa104227908d8d191c1649a6b76", + "origin": "github", + "sha256": "4416b1ea5f07f8a91028a2e500116588fbdfaed95a8ef9bac7a46bcb44b9478e", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/check_odd_partial_admission.py" + }, + "caller/replay/supplier7112/short-caller/check_odd_physical_binding.py": { + "bytes": 5058, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "def1e6a18439bd40d1b12af04c6347bbf6b74c55", + "origin": "github", + "sha256": "5c80c3b0415a7f91d216395248dd6f13297eed637732098e1ca8fb0548951b98", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/check_odd_physical_binding.py" + }, + "caller/replay/supplier7112/short-caller/check_odd_precision.py": { + "bytes": 4171, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "4de6829cafd5ef7658804fb4afa54129291b4541", + "origin": "github", + "sha256": "b2d9c13577158157a587ace766d9dadb7819a0164b372722329d9754e1be6c61", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/check_odd_precision.py" + }, + "caller/replay/supplier7112/short-caller/connected.py": { + "bytes": 6511, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "3755148cea67c85a0f47f1e910aeb8f08cab3023", + "origin": "github", + "sha256": "469537b46fb92c5aca926d3b1497da5425408673b0a73ba1427f23d872b414e7", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/connected.py" + }, + "caller/replay/supplier7112/short-caller/cut_library.py": { + "bytes": 6798, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "af54c2d22c1ea49ed5539a35659ece8cfd5f8910", + "origin": "github", + "sha256": "7ccb81af19db54ec7cdb44849af018d4ca8893f80f17277914f8566715985133", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/cut_library.py" + }, + "caller/replay/supplier7112/short-caller/emit_odd_type_ab.py": { + "bytes": 6331, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "504316b91bb70bb3697a2488a2b400647067f279", + "origin": "github", + "sha256": "7a7993648433c6febad8c07b315aec1b96598835a3f587b62040423c33c3b71f", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/emit_odd_type_ab.py" + }, + "caller/replay/supplier7112/short-caller/emit_odd_type_b.py": { + "bytes": 4474, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "6d00e53612cb63c24641d7fab48fccd1729eaa0c", + "origin": "github", + "sha256": "d1fa8b67d98beacd6bb574b3d5fcbc94b8646a7ffbce91d2a6fd4d690d3c5329", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/emit_odd_type_b.py" + }, + "caller/replay/supplier7112/short-caller/host34.py": { + "bytes": 7425, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "d889cb15341194ccf0ee97818f8e3a0579b0ed7f", + "origin": "github", + "sha256": "bded1a8626d65ee40c4ba3b25780fc03f0fa08906f3c83f631892df072d9a9b7", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/host34.py" + }, + "caller/replay/supplier7112/short-caller/independent.py": { + "bytes": 11970, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "1ae1d7c680ad86c0fa999f2e8f0c09e966fc07a0", + "origin": "github", + "sha256": "21f46a8340331abb1486b50bd4e04453f1968b0a5950d86ff7780dd368590874", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/independent.py" + }, + "caller/replay/supplier7112/short-caller/interval_gate.py": { + "bytes": 6886, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "e24dc46079b4c25152f5afc096dda2ce8ee58ff5", + "origin": "github", + "sha256": "60a743d13f668ef86db4b8215b4d5d04430a671ba6f1fe06d9c1c4c3dfe86da5", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/interval_gate.py" + }, + "caller/replay/supplier7112/short-caller/lower.py": { + "bytes": 9586, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "595e28c7774dacf039b1237e53f01e3d48364542", + "origin": "github", + "sha256": "67345fdfc8e5bb816e24b37dfafad0396372c48ec4e1b95b8b69f019a8fdfdee", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/lower.py" + }, + "caller/replay/supplier7112/short-caller/mirrored.py": { + "bytes": 7762, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "853e188ee5840f8a36db7ff54e4f437c26827f64", + "origin": "github", + "sha256": "55dd441a3a7f504b351857d45fd701994a0950ae1baec6c4c2b4b0166fb69db3", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/mirrored.py" + }, + "caller/replay/supplier7112/short-caller/odd_unit_dyadic_tapes.py": { + "bytes": 2824, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "0d9d8bdd2da8fa8dfb7a503ee39ab9403a2bb4f8", + "origin": "github", + "sha256": "3cdafa35635360a487ce400ec8d585f6134dd7c58209543528e98e7db178bbc7", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/odd_unit_dyadic_tapes.py" + }, + "caller/replay/supplier7112/short-caller/screen.py": { + "bytes": 3081, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "6ed72712271a5821ef27a20b388bc968db1d4c3d", + "origin": "github", + "sha256": "01e3eaba4b710a080e6e393e53157e6a119fdf312620eed26e9185ca91f6bea6", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/screen.py" + }, + "caller/replay/supplier7112/short-caller/short_dyadic_seam.py": { + "bytes": 4150, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "c80784fa9a79da082cc3f5e8882bb3f1022e3a40", + "origin": "github", + "sha256": "6e588b365618ab2df4fa2d1f16073d09a953a7cd6e826e1f96bbf87f950b672b", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/short_dyadic_seam.py" + }, + "caller/replay/supplier7112/short-caller/short_native_catalogue.py": { + "bytes": 1628, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "4ee80e4ece5db30598cf0d9d8711f1cb7ebf6a59", + "origin": "github", + "sha256": "775695c379f407801910531565cc371012cee501b2cec5f5d718ecdccf06b64d", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/short_native_catalogue.py" + }, + "caller/replay/supplier7112/short-caller/signed_child.py": { + "bytes": 5304, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "0980a6559ba1939763de5c798c7947c8bdd51d67", + "origin": "github", + "sha256": "ef03444360f02225138be9b38e2f9a85f313eeaa910d63a365de0f16d228cb8b", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/signed_child.py" + }, + "caller/replay/supplier7112/short-caller/signed_model.py": { + "bytes": 1408, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "01cb0c63c5cb201ecc3cedd25433aaeb57803270", + "origin": "github", + "sha256": "f88c798b9a22c656ea0b755b4f32be411c1f80687dff1a1ac9e9c2a0b5f4203e", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/signed_model.py" + }, + "caller/replay/supplier7112/short-caller/stage.py": { + "bytes": 7610, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "9b6c81e25bd481bb0b896e41c968b30f9587e4db", + "origin": "github", + "sha256": "0ab5546e926dd98d3ad833909b534840b7d8d0467c4790ca09bc2b14b37313f5", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/stage.py" + }, + "caller/replay/supplier7112/short-caller/upstream_application.py": { + "bytes": 19068, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "1a6d358cbec88e70615e5314cdfca9e123124f83", + "origin": "github", + "sha256": "d98987db98553dc55bfc80e3ca47abfcd51c57af6f8cda61101391d8eae94184", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/upstream_application.py" + }, + "caller/replay/supplier7112/short-caller/upstream_native_catalogue.py": { + "bytes": 5071, + "commit": "07a76c5e2738882c0cb322278e56f6cae3c9885d", + "git_blob": "98b35c89c8bd52637633aa78d506244bca8ec9e1", + "origin": "github", + "sha256": "6120e1ea1e07eeba757694d209437a38f121b0a377cc466889a30fa52c561472", + "source_path": "research/signed-caller-8x9/replay/supplier7112/short-caller/upstream_native_catalogue.py" + }, + "caller/run_caller.py": { + "bytes": 3998, + "origin": "retained_local_inert", + "sha256": "9f4ff83515095b0d3c8fecc17beae2f40099da8238291e55a7daf0c1c059918e" + }, + "resources/fixed/controls.py": { + "bytes": 4233, + "origin": "retained_local_tape_controls", + "sha256": "3492500899f8858040bc3c7be5c2de5bf597688318ec314e74eda513ac2e8156" + } + }, + "prior_freeze_sha256": "ac57680f5a9c2ba97840b3b5bd10f1b7b77db1fe20d54e6197a1e18c08842045", + "schema_version": 1 +} diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/data/SPEC.json b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/SPEC.json new file mode 100644 index 0000000000..4bdd640389 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/SPEC.json @@ -0,0 +1,109 @@ +{ + "bit_pin": ".00376669", + "bracket": [ + "0.0037170835568", + "0.0037170835569" + ], + "candidate_canonical_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "candidate_raw_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "catalogue_size": 3030, + "claim": "0.0037170835567", + "inputs": { + "clear_result": { + "origin": "core", + "path": "evidence/pr7658/mutation/RESULT.json", + "sha256": "7df5b2e874db762da98307571bcbb4772671f771503ca04060f735d286558ae3" + }, + "grid": { + "origin": "application-evidence", + "path": "receipts/candidate/GRID.json", + "sha256": "bc5a54b8975e01be3f37c54f8b3b1f0ecfb82167794b2fea06da60423753e017" + }, + "independent_pair": { + "origin": "core", + "path": "evidence/pr7658/INDEPENDENT.json", + "sha256": "992753e69f5a5c73d016c1646de2114cd03a8d2ef2eee87d9a70e91620ec3292" + }, + "native_adapter": { + "origin": "application-evidence", + "path": "native-replay/check_native.py", + "sha256": "6cc127ed1b1eddeadb50b69e672587e2c64378e5e5790357e526a9c022e32760" + }, + "native_launcher": { + "origin": "application-evidence", + "path": "native-replay/run_guarded.sh", + "sha256": "de89b65ba5afc136854531882e571c68765af2ecbbea4829cc1c35ce597c0372" + }, + "native_physical": { + "origin": "application-evidence", + "path": "native-replay/physical.py", + "sha256": "ff91934a4eb5f92778d72407db56c06a6330a5160af009662613e2836933ee42" + }, + "native_receipt": { + "origin": "application-evidence", + "path": "receipts/native/run7658-r2.launch.json", + "sha256": "e3d27040cf3e3e2d1d0b702fc96f142297a85cc7716e44cc97d4f64e5ed1a8d6" + }, + "native_result": { + "origin": "application-evidence", + "path": "receipts/native/RESULT.json", + "sha256": "01490a7539289511a367602466bb2e8749ce36e3aec642e9066c68dfdebd78b7" + }, + "native_start": { + "origin": "application-evidence", + "path": "receipts/native/START.json", + "sha256": "3335f180b03325fb5770597a381420ee94f3af98ae2407b53d0391d54381353a" + }, + "native_stderr": { + "origin": "application-evidence", + "path": "receipts/native/run7658-r2.stderr", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "native_stdout": { + "origin": "application-evidence", + "path": "receipts/native/run7658-r2.stdout", + "sha256": "4ffbd1ab67bf5f778a39acf76f863855996dbb5c162b3a91d8318b139ed9d50c" + }, + "native_time": { + "origin": "application-evidence", + "path": "receipts/native/run7658-r2.time", + "sha256": "b4e268cce3a36bdebedff1b32496a41473d78a8393a618487fe9bca7ed1e418d" + }, + "ordinary": { + "origin": "application-evidence", + "path": "receipts/candidate/ORDINARY.json", + "sha256": "bbc6ceba232bd05f2884c41478e4c165b6a748dad4ed22c1a099346ad1f49cc9" + }, + "source_invoice": { + "origin": "core", + "path": "retained/pr7658/data/invoice-new.json", + "sha256": "26383ec33e4c4d552442b62f2bd7d9fd0a2fd0d357c1bcbf52ba913e11bb630e" + }, + "source_word": { + "origin": "core", + "path": "retained/pr7658/data/word.json.gz", + "sha256": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9" + }, + "word": { + "origin": "retained-signed-transport", + "path": "WORD.json.gz", + "sha256": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e" + } + }, + "native_launch": { + "adapter_sha256": "6cc127ed1b1eddeadb50b69e672587e2c64378e5e5790357e526a9c022e32760", + "launcher_sha256": "de89b65ba5afc136854531882e571c68765af2ecbbea4829cc1c35ce597c0372", + "run_id": "strict379-pr7658-r2", + "status": "PASS_STRICT_379_NATIVE_FINITE" + }, + "paid_positions": 108581, + "probe": "0.00371708355677", + "schema": "signed-application-spec/v1", + "source_bracket": [ + "0.00371676699784", + "0.00371676699785" + ], + "source_canonical_sha256": "9721965b3fa98cef7731ee88319fae2e62354bca3bf1a6b334bcffee14b047cf", + "source_head": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "source_pr": 7658 +} diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/data/WORD.json.gz b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/WORD.json.gz new file mode 100644 index 0000000000..e05407f54f Binary files /dev/null and b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/WORD.json.gz differ diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/data/caller-closure.tar.gz b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/caller-closure.tar.gz new file mode 100644 index 0000000000..74e81a44e2 Binary files /dev/null and b/research/p104-role379-idle-stop/application-evidence/signed-replay/data/caller-closure.tar.gz differ diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/engines.py b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/engines.py new file mode 100644 index 0000000000..6f6f342ad0 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/engines.py @@ -0,0 +1,140 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Prior source pins and counted adapters for the actual #7113 entry points.""" + +from fractions import Fraction +import importlib.util +import json +from pathlib import Path + +from guard import digest, patch, read, require, write + +HERE = Path(__file__).resolve().parent +PRIOR = HERE.parents[1] / "kappa-7641-successor-20261118" +CALLER = "255d89f38cd45e38e5770f559bc43dc217e989032359768cdc7e8cdfd64b47bc" +CALLER_FREEZE = "ac57680f5a9c2ba97840b3b5bd10f1b7b77db1fe20d54e6197a1e18c08842045" +PINS = { + "resources/vendor/check_odd_fixed_tape_counts.py": "e6246e9f8fbeae3077d82e585eafd3647c1a8758c58f33c7c13e7efa6c1e42bb", + "resources/vendor/interval_gate.py": "60a743d13f668ef86db4b8215b4d5d04430a671ba6f1fe06d9c1c4c3dfe86da5", + "resources/vendor/evaluate_recursive_power.py": "52b20f41fd0bb55fa88dccd6015af2ce358917817b9506720f3e60ce681cc3ad", + "resources/vendor/compare_recursive_invoices.py": "3930c22c11da7bc6042cfeb6e459ecb06e4478430037bee3469d034353855fc6", + "resources/fixed/controls.py": "3492500899f8858040bc3c7be5c2de5bf597688318ec314e74eda513ac2e8156", +} +SOURCE_PINS = { + 7658: ("0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", 234, (281, 3)), + 7636: ("7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2", + "1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659", 180, (281, 285)), +} +ASSUMPTIONS = ["native_all_columns", "owned_erasure", "compiler", "precision_tape", "analytic_recovery"] + + +def verify_sources(): + pins = json.loads(read(PRIOR / "caller/FREEZE.json", CALLER_FREEZE))["files"] + for rel, pin in pins.items(): + read(PRIOR / "caller" / rel, pin) + for rel, pin in PINS.items(): + read(PRIOR / rel, pin) + return pins + + +def module(name, path): + spec = importlib.util.spec_from_file_location(name, path) + obj = importlib.util.module_from_spec(spec) + spec.loader.exec_module(obj) + return obj + + +def capture_price(spec, old, new): + interval = module("signed_interval", PRIOR / "resources/vendor/interval_gate.py") + dyadic = module("signed_dyadic", PRIOR / "resources/vendor/evaluate_recursive_power.py") + claim, probe = map(Fraction, (spec["claim"], spec["probe"])) + lo, hi = map(Fraction, spec["bracket"]) + old_lo, old_hi = map(Fraction, spec["source_bracket"]) + zero = dict(old, paid={}, targets={}) + + def check(invo, at, accept): + hist = {int(r): invo["targets"].get(r, 0) - invo["paid"].get(r, 0) + for r in invo["targets"].keys() | invo["paid"].keys()} + bounds = interval.moment(hist, at) + require((bounds[0] > 0 if accept else bounds[1] < 0), f"Log/exp price at {at}") + result = dyadic.evaluate(zero, invo, 1 - at, bits=256) + require(result["classification"] == ("new_cost_lower" if accept else "new_cost_higher"), + f"Integer-power price at {at}") + return {"kappa": str(at), "logexp_bounds": interval.show(bounds), "integer_power": result} + + points = {"source_lower": check(old, old_lo, True), "source_upper": check(old, old_hi, False), + "claim": check(new, claim, True), "probe": check(new, probe, True), + "lower": check(new, lo, True), "upper": check(new, hi, False)} + if spec["candidate_canonical_sha256"] != spec["source_canonical_sha256"]: + require(old_hi < claim and old["targets"] == new["targets"], "Strict gain with equal targets") + points["source_at_claim"] = check(old, claim, False) + inv = {"P": {int(r): n for r, n in new["paid"].items()}, + "T": {int(r): n for r, n in new["targets"].items()}} + gate = interval.gate(inv, claim, probe, lo, hi, spec["bit_pin"]) + require(gate["outer"]["strict_count"] == 54 and gate["outer"]["functional_count"] == 4 + and Fraction(gate["outer"]["minimum_margin"]) > 0, "Complete outer predicates") + return points | {"gate": gate} + + +def prepare(spec, inputs, grid, work, pins): + root = PRIOR / "caller" + copies = {} + for rel, pin in pins.items(): + if not rel.startswith("replay/") or ".log" in rel: + continue + path = work / rel + path.parent.mkdir(parents=True, exist_ok=True) + path.write_bytes(read(root / rel, pin)) + copies[rel] = pin + folder = work / "replay/supplier7112/short-caller" + stale_result = folder.parent / "RESULT.json" + stale_result.unlink() + del copies[str(stale_result.relative_to(work))] + scale = grid["integer_grid"]["odd_scale_lcm"] + for role, path in (("word", folder.parent / "WORD.json.gz"), ("grid", folder / "BOUND-NATIVE-GRID.json")): + path.write_bytes(inputs[role]) + copies[str(path.relative_to(work))] = digest(inputs[role]) + adapted = {} + patch(folder / "emit_odd_type_ab.py", [ + ('invoice=next(x for x in json.loads((root/"SHORT-CALLER-RAW-PRICE.json").read_text())["rows"] if tuple(x["shape"])==shape)', + 'invoice=json.loads((root/"COHORT-PRICE.json").read_text())'), + ], adapted) + patch(folder / "check_odd_precision.py", [ + ('previous=json.loads((root/"SHORT-PRECISION.json").read_text())', + 'previous=json.loads((root/"BOUND-NATIVE-GRID.json").read_text())'), + ('previous["native_sha256"]==sha', 'previous["canonical_word_sha256"]==sha'), + ('wg=previous["native_grid"]\nwr=previous["rounded_native"]', + 'wg=previous["integer_grid"]\nwr=previous["native_envelope"]'), + ('+(1125).bit_length()', '+int(wg["odd_scale_lcm"]).bit_length()'), + ], adapted) + patch(folder / "check_odd_partial_admission.py", [ + ('previous=json.loads((root/"SHORT-ADMISSION-PARTIAL.json").read_text())\nassert previous["native_sha256"]==digest and not N["bad_inputs"]', + 'actual_native=ind.native(w)\nassert actual_native==N and not N["bad_inputs"], "Fresh native adjoint and inventory"'), + ('claim=Q(".00363797977")\ntested=claim+Q(7,10**17)', + f'claim=Q({spec["claim"]!r})\ntested=Q({spec["probe"]!r})'), + ('g=gate(invoice,claim,tested,*bracket,r["gate"]["BIT_pin"])', + 'g=gate(invoice,claim,tested,*bracket,r["gate"]["BIT_pin"])\n' + 'try:\n gate(invoice,claim,Q(bracket[0]),*bracket,r["gate"]["BIT_pin"])\n' + 'except AssertionError:\n crossing_probe_rejected=True\n' + 'else:\n raise AssertionError("Probe at lower crossing unexpectedly accepted")'), + ('"scope":"Reuse exact same native word all-column adjoint;', + '"crossing_probe_rejected":crossing_probe_rejected,"scope":"Fresh changed-native arbitrary-input adjoint;'), + ], adapted) + tape = folder / "check_odd_fixed_tape_counts.py" + read(tape, PINS["resources/vendor/check_odd_fixed_tape_counts.py"]) + patch(tape, [("scalars.append(Q(1125))", f"scalars.append(Q({scale}))"), + ("scalars.append(Q(1,1125))", f"scalars.append(Q(1,{scale}))")], adapted) + controls = work / "controls.py" + controls.write_bytes(read(PRIOR / "resources/fixed/controls.py", PINS["resources/fixed/controls.py"])) + patch(controls, [ + ("source=R/'stage'", "source=R/'replay/supplier7112'"), + ("676c20c53ebd40120903af86bf17c2116f654ab8ce4aa1833f388a2fc400b511", digest(inputs["word"])), + ("d0d3a2b549a119f9132ad9cdc0c1d75a7bf1daac85435df51921661afb44d76c", digest(tape.read_bytes())), + ], adapted) + copies.update({str((folder / name).relative_to(work)): record["adapted_sha256"] + for name, record in adapted.items() if name != "controls.py"}) + copies["controls.py"] = adapted["controls.py"]["adapted_sha256"] + write(work / "ADAPTATION.json", adapted) + return folder, copies diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/guard.py b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/guard.py new file mode 100644 index 0000000000..851d466b15 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/guard.py @@ -0,0 +1,170 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Source and process custody for a fresh signed application.""" + +from datetime import datetime, timezone +from hashlib import sha256 +import json +import os +from pathlib import Path +import signal +import subprocess +import sys +import time + +ENTRY = ("import pathlib,runpy,sys\n" + "path=pathlib.Path(sys.argv[1]);sys.argv=sys.argv[1:]\n" + "sys.path.insert(0,str(path.parent));runpy.run_path(str(path),run_name='__main__')") + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def digest(data): + return sha256(data).hexdigest() + + +def canonical(value): + return json.dumps(value, sort_keys=True, separators=(",", ":")).encode() + + +def read(path, expected=None): + data = path.read_bytes() + if expected is not None: + require(digest(data) == expected, f"Input hash {path}") + return data + + +def write(path, value): + with path.open("x") as out: + json.dump(value, out, indent=2, sort_keys=True) + out.write("\n") + + +def utc(): + return datetime.now(timezone.utc).isoformat() + + +def authenticate_inputs(spec): + return {name: read(Path(ref["path"]), ref["sha256"]) for name, ref in spec["inputs"].items()} + + +def verify_receipt(spec, doc, result, result_sha): + contract = spec["native_launch"] + checks = { + "stage": "native", + "exit": 0, + "run_id": contract["run_id"], + "candidate_canonical_sha256": spec["candidate_canonical_sha256"], + "native_result_sha256": result_sha, + "adapter_sha256": contract["adapter_sha256"], + "launcher_sha256": contract["launcher_sha256"], + } + for name, value in checks.items(): + require(doc.get(name) == value, f"Native launch receipt {name}") + require(result["status"] == contract["status"], "Native scientific success marker") + word = result.get("word_canonical_sha256") + if word is None: + word = result["candidate"]["canonical_sha256"] + require(word == spec["candidate_canonical_sha256"], "Native scientific word") + for name in ("adapter", "launcher"): + require(spec["inputs"]["native_" + name]["sha256"] == checks[name + "_sha256"], + f"External native source closure {name}") + for name in ("physical", "start", "stdout", "stderr", "time"): + require(doc[name + "_sha256"] == spec["inputs"]["native_" + name]["sha256"], + f"Native external custody {name}") + return checks + + +def binding_controls(spec, launch, native, pin): + accepted = verify_receipt(spec, launch, native, pin) + for field in accepted: + altered = dict(launch, **{field: object()}) + try: + verify_receipt(spec, altered, native, pin) + except ValueError as failure: + require(str(failure) == f"Native launch receipt {field}", "Native control rejected at wrong guard") + else: + raise ValueError(f"Mutated native receipt accepted: {field}") + for field, message in (("status", "Native scientific success marker"), + ("word_canonical_sha256", "Native scientific word")): + try: + verify_receipt(spec, launch, native | {field: "stale"}, pin) + except ValueError as failure: + require(str(failure) == message, "Stale result rejected at wrong guard") + else: + raise ValueError(f"Stale native result accepted: {field}") + return list(accepted) + ["native_status", "native_word"] + + +def patch(path, changes, records): + source = path.read_text() + updated = source + for old, new in changes: + require(updated.count(old) == 1, f"Exact one-occurrence source anchor {path.name}") + updated = updated.replace(old, new, 1) + compile(updated, str(path), "exec") + path.write_text(updated) + records[path.name] = {"source_sha256": digest(source.encode()), + "adapted_sha256": digest(path.read_bytes()), "changes": changes} + + +def group_members(group): + members = [] + for entry in Path("/proc").iterdir(): + if not entry.name.isdecimal(): + continue + try: + stat = (entry / "stat").read_text().rsplit(")", 1)[1].split() + except (FileNotFoundError, PermissionError, ProcessLookupError): + continue + if int(stat[2]) == group: + members.append(int(entry.name)) + return members + + +def launch(work, name, script, deadline, args=(), log_dir=None): + log_dir = log_dir or work + out_path, err_path = (log_dir / (name + suffix) for suffix in (".log", ".stderr")) + started, tick = utc(), time.monotonic() + deadline = min(tick + 300, deadline) + require(tick < deadline, "Signed application wall limit") + env = {k: v for k, v in os.environ.items() if not k.startswith("PYTHON")} + env.update({k: "1" for k in ("OMP_NUM_THREADS", "OPENBLAS_NUM_THREADS", "MKL_NUM_THREADS", + "VECLIB_MAXIMUM_THREADS", "NUMEXPR_NUM_THREADS")}) + command = [sys.executable, "-I", "-B", "-c", ENTRY, str(script), *map(str, args)] + stop = None + with out_path.open("x") as out, err_path.open("x") as err: + proc = subprocess.Popen(command, cwd=script.parent, env=env, stdout=out, stderr=err, + start_new_session=True) + try: + while not os.waitid(os.P_PID, proc.pid, os.WEXITED | os.WNOHANG | os.WNOWAIT): + if time.monotonic() >= deadline: + raise TimeoutError(f"{name}: process or signed wall limit") + time.sleep(0.1) + except BaseException as failure: + stop = failure + finally: + # Keep the leader unreaped until its process group has been signaled. + try: + os.killpg(proc.pid, signal.SIGKILL) + except ProcessLookupError: + pass + _, status, usage = os.wait4(proc.pid, 0) + proc.returncode = os.waitstatus_to_exitcode(status) + for _ in range(20): + residual = group_members(proc.pid) + if not residual: + break + time.sleep(0.1) + write(work / (name + ".receipt.json"), + {"started": started, "ended": utc(), "wall_seconds": time.monotonic() - tick, + "exit": proc.returncode, "stdout_sha256": digest(out_path.read_bytes()), + "stderr_sha256": digest(err_path.read_bytes()), "command": command, "pid": proc.pid, + "group_residual": residual, "stop": str(stop) if stop else None, + "cpu_seconds": usage.ru_utime + usage.ru_stime, "peak_rss_kib": usage.ru_maxrss, + "major_faults": usage.ru_majflt, "swaps": usage.ru_nswap}) + if stop: + raise stop + require(not residual and proc.returncode == 0 and usage.ru_nswap == 0, f"Signed child {name} failed") diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/native_ingredient.py b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/native_ingredient.py new file mode 100644 index 0000000000..18fbab90c5 --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/native_ingredient.py @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Fresh transposed native verification and retained 18-call ingredient invoice.""" + +from fractions import Fraction +import gzip +from hashlib import sha256 +import independent as engine +from interval_gate import moment, show +import json +from pathlib import Path + + +def main(): + folder = Path(__file__).resolve().parent + config = json.loads((folder / "INGREDIENT-INPUT.json").read_bytes()) + raw = gzip.decompress((folder.parent / "WORD.json.gz").read_bytes()) + word = json.loads(raw) + canon = json.dumps(word, sort_keys=True, separators=(",", ":")).encode() + candidate = sha256(canon).hexdigest() + assert candidate == config["candidate_canonical_sha256"] + bound_caller = folder / "admission-source/data/caller.json" + assert sha256(bound_caller.read_bytes()).hexdigest() == config["retained_18_caller_sha256"] + caller = json.loads(bound_caller.read_bytes()) + assert caller["stages"] == 18 and [e[1] for e in caller["events"] if e[0] == "J"] == list(range(1, 19)) + native = engine.native(word) + assert not native["bad_inputs"] and native["lifetimes"] == config["clear_lifetimes"] + assert native["owned_peak"] == 50 and native["events"] == len(word["program"]) + # The last nontrivial scalar has no later scalar row repair. + mutant = max(i for i, e in enumerate(word["program"]) + if e[0] in ("ADD", "SCALE") and e[1] < word["public"]) + bad = engine.native(word, mutant)["bad_inputs"] + assert bad, "Deliberate coefficient fault must change an arbitrary-input row" + inv = engine.invoices(word, caller, native) + assert inv["S"] > 0 + hist = {r: inv["T"].get(r, 0) - inv["P"].get(r, 0) for r in inv["T"].keys() | inv["P"].keys()} + step = 10**16 + lower = int(Fraction(inv["raw_crossing"]) * step) + lo, hi = Fraction(lower, step), Fraction(lower + 1, step) + ml, mh = moment(hist, lo), moment(hist, hi) + assert ml[0] > 0 and mh[1] < 0 + ordinary = engine.ordinary(word, caller, native) + assert ordinary["margin_to_billion"] > 0 + result = {"status": "PASS_TRANSPOSED_NATIVE_18_INGREDIENT", "word_canonical_sha256": candidate, + "native": native, "invoice": inv, "gate": {"BIT_pin": config["bit_pin"]}, + "ordinary": ordinary, "ingredient_18_caller_sha256": config["retained_18_caller_sha256"], + "unmodified_dyadic_invoice_bracket": [str(lo), str(hi)], + "sign_margins": [show(ml), show(mh)], + "bad_scalar_control": {"event": mutant, "bad_inputs": bad}, + "physical_evidence_sha256": config["physical_evidence_sha256"], + "clear_evidence_sha256": config["clear_evidence_sha256"], + "scope": "Fresh all-input transposed native endpoint and separate literal 18-call arithmetic."} + with (folder.parent / "RESULT.json").open("x") as out: + json.dump(result, out, indent=2, sort_keys=True) + out.write("\n") + print(result["status"], candidate, flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/run.py b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/run.py new file mode 100644 index 0000000000..804c5c926a --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/driver/run.py @@ -0,0 +1,307 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Run the source-pinned #7113 application on a frozen strict role-379 candidate.""" + +import argparse +from collections import Counter +from fractions import Fraction +import gzip +import json +import os +from pathlib import Path +import resource +import signal +import sys +import time + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE)) +from engines import ASSUMPTIONS, CALLER, PRIOR, SOURCE_PINS, capture_price, prepare, verify_sources +from guard import authenticate_inputs, binding_controls, canonical, digest, launch, read, require, utc, write + + +def word_profile(word): + main = set(word["live"]) | {r + 112 for r in word["live"]} + main |= set(word["hosted"]["X2"]) | set(word["hosted"]["Y2"]) + helper_roles = set(range(word["public"])) - main + dim = [len(frame) for frame in word["frames"]] + moves = [(e[2], e[3]) for e in word["program"] if e[0] == "MOVE"] + helpers = [(word["initial"][r], word["final"][r]) for r in helper_roles] + paid_counts = Counter(abs(dim[a] - dim[b]) for a, b in moves) + target_counts = Counter(dim[b] - dim[a] for a, b in helpers) + require(min(paid_counts) > 0 and min(target_counts) > 0, "Positive native and target ranks") + return paid_counts, target_counts, set(moves), set(helpers), helper_roles + + +def signed_invoice(caller, profile): + paid, targets, _, _, _ = profile + p, t = Counter(), Counter() + for e in caller["events"]: + if e[0] == "J": + p.update(paid) + t.update(targets) + elif e[1] == "QUERY": + p[1] += len(caller["types"][e[0]]["ports"]) + elif e[1] in ("IDLE_ONE", "IDLE_ODD"): + p[8 * len(e[3]) + (e[1] == "IDLE_ODD")] += len(caller["types"][e[0]]["ports"]) + for d in caller["types"].values(): + for row in d["diagonal"]: + t[row[0] % 2 + 8 * sum(row[2:])] += len(d["ports"]) + return {"paid": {str(r): n for r, n in p.items()}, "targets": {str(r): n for r, n in t.items()}} + + +def verify_native_and_clear(spec, inputs, w, source, life): + native = json.loads(inputs["native_result"]) + mark = json.loads(inputs["native_receipt"]) + checked = binding_controls(spec, mark, native, digest(inputs["native_result"])) + require(native["pr"] == spec["source_pr"] and native["head"] == spec["source_head"] + and native["source"]["canonical_sha256"] == spec["source_canonical_sha256"] + and native["candidate"]["raw_sha256"] == spec["candidate_raw_sha256"] + and native["candidate"]["gzip_sha256"] == digest(inputs["word"]), + "Physical result on the actual source and candidate") + route = native["route_columns"] + require(route["all_forward"] == route["all_adjoint"] == 512 and route["wrong_phase"] == "rejected" + and len(native["finite_replays"]) == 2, "Exact three-route composition and two finite physical oracles") + clear = json.loads(inputs["clear_result"]) + require(clear["status"] == "PASS_SILENT_PUBLIC_MOVE_SUBSTITUTION" + and clear["source"]["head"] == spec["source_head"] + and clear["source"]["gzip_sha256"] == digest(inputs["source_word"]) + and clear["candidate"]["word_sha256"] == spec["candidate_raw_sha256"] + and clear["candidate"]["gzip_sha256"] == digest(inputs["word"]) + and clear["ordered_clears"] == life and clear["owned_peak"] == 50 + and clear["candidate"]["events"] == len(w["program"]) + and clear["source"]["events"] == len(source["program"]), "Exact CLEAR result on both words") + return checked + + +def verify_grid(spec, grid, w, life): + scale = grid["integer_grid"]["odd_scale_lcm"] + require(grid["canonical_word_sha256"] == spec["candidate_canonical_sha256"] + and grid["caller_sha256"] == CALLER, "Fresh candidate and caller grid") + require(grid["integer_grid"]["dyadic_height"] == grid["rational_grid"]["fractional_bits"] + and scale == grid["rational_grid"]["odd_scale"] + and Fraction(grid["integer_grid"]["maximum_scaled_mass"]) + == Fraction(grid["rational_grid"]["scaled_maximum_mass"]), + "Two independent native grid results agree") + require(grid["native_envelope"]["census"]["lifetimes"] == life + and grid["native_envelope"]["census"]["events"] == len(w["program"]) + and grid["context_c"] <= 4096, "Fresh precision inventory and cap") + require(scale > 0 and scale % 2 == 1 and grid["integer_grid"]["numerator_bits"] <= 24, + "Supported odd grid and scalar width") + + +def catalogue_check(work, folder, maps, deadline, word_sha): + slices = [] + catalogue = sorted(maps) + size = len(catalogue) + cat_sha = digest(json.dumps(catalogue, separators=(",", ":")).encode()) + for start in range(0, size, 1000): + stop = min(start + 1000, size) + label = f"SHORT-CATALOGUE-{start}-{stop}" + launch(work, label, folder / "short_native_catalogue.py", deadline, + ("--start", start, "--stop", stop), log_dir=folder) + blob = (folder / (label + ".log")).read_bytes() + record = json.loads(blob[blob.index(b"\n{") + 1:]) + require((record["word_sha256"], record["catalogue_digest"], record["catalogue_size"], + record["slice_start"], record["slice_stop"], record["checked_maps"]) == + (word_sha, cat_sha, size, start, stop, stop - start) + and record["phase_control_rejected"], "Exact fresh catalogue slice and wrong-phase control") + slices.append(record) + require(sum(r["main_boundary_pairs"] for r in slices) == 104, "Complete physical boundary catalogue") + return slices + + +def run(spec, inputs, work, deadline, pins): + tick = time.monotonic() + pr = spec["source_pr"] + head, raw_sha, zip_sha, life, entrance = SOURCE_PINS[pr] + require(spec["source_head"] == head and digest(inputs["source_word"]) == zip_sha, + "Exact source head and gzip") + w_raw, b_raw = (gzip.decompress(inputs[k]) for k in ("word", "source_word")) + w, source = map(json.loads, (w_raw, b_raw)) + candidate = digest(canonical(w)) + word_sha = digest(inputs["word"]) + require(digest(w_raw) == spec["candidate_raw_sha256"] and candidate == spec["candidate_canonical_sha256"], + "Exact candidate raw and canonical bytes") + require(digest(b_raw) == raw_sha and digest(canonical(source)) == spec["source_canonical_sha256"], + "Exact source raw and canonical bytes") + require(w.keys() == source.keys() and all(w[k] == source[k] for k in w if k != "program"), + "Matched literal native headers") + require((w["public"], w["owned_fields"], len(w["live"])) == (1501, 68, 104) + and (w["initial"][457], w["initial"][461]) == entrance, "Declared native interface") + profile, old_profile = word_profile(w), word_profile(source) + expected_paid, expected_helpers, paid_maps, helper_maps, helper_roles = profile + maps = paid_maps | helper_maps + require(len(maps) == spec["catalogue_size"] and len(helper_roles) == 1101 and {457, 461} <= helper_roles, + "Frozen map denominator and helper entrances") + checked = verify_native_and_clear(spec, inputs, w, source, life) + grid, ordinary = map(json.loads, (inputs["grid"], inputs["ordinary"])) + verify_grid(spec, grid, w, life) + require(ordinary["source_word_raw_sha256"] == digest(w_raw) and ordinary["caller_sha256"] == CALLER, + "Actual ordinary-model source identity") + caller_bytes = read(PRIOR / "caller/expected/ODD-TYPE-AB-CALLER.json", CALLER) + caller = json.loads(caller_bytes) + require(caller["stages"] == 17 and caller["ambient_rank"] == 145 + and [e[1] for e in caller["events"] if e[0] == "J"] == list(range(1, 18)), "All signed invocations") + old, new = signed_invoice(caller, old_profile), signed_invoice(caller, profile) + source_invoice = json.loads(inputs["source_invoice"]) + require({k: source_invoice[k] for k in old} == old, "Matched complete source invoice") + require(sum(new["paid"].values()) == spec["paid_positions"] and sum(new["targets"].values()) == 22461, + "Frozen complete signed paid and target census") + independent = json.loads(inputs["independent_pair"]) + require(independent["result"] == "PASS_PAIRED_EXACT_REPLAY_AND_CONDITIONAL_PRICE" + and independent["source"]["head"] == head + and independent["source"]["literal_sha256"] == raw_sha + and independent["source"]["gzip_sha256"] == zip_sha + and independent["candidate"]["literal_sha256"] == spec["candidate_raw_sha256"] + and independent["candidate"]["gzip_sha256"] == word_sha + and independent["source"]["full_signed_invoice"] == source_invoice + and independent["candidate"]["full_signed_invoice"] == source_invoice | new + and independent["source"]["price"]["kappa"] == spec["source_bracket"] + and independent["candidate"]["price"]["kappa"] == spec["bracket"], + "Independent exact pair and both directed crossing brackets") + cost = capture_price(spec, source_invoice, source_invoice | new) + write(work / "PRICE-OUTER.json", cost) + folder, copies = prepare(spec, inputs, grid, work, pins) + ingredient = folder / "native_ingredient.py" + ingredient.write_bytes(read(HERE / ingredient.name)) + induction = folder / "INGREDIENT-INPUT.json" + write(induction, {"candidate_canonical_sha256": candidate, "clear_lifetimes": life, "bit_pin": spec["bit_pin"], + "retained_18_caller_sha256": digest((folder / "admission-source/data/caller.json").read_bytes()), + "physical_evidence_sha256": digest(inputs["native_result"]), + "clear_evidence_sha256": digest(inputs["clear_result"])}) + launch(work, "native_ingredient", ingredient, deadline) + native_bridge = folder.parent / "RESULT.json" + n = json.loads(native_bridge.read_bytes())["native"] + require(n["paid"] == {str(r): q for r, q in expected_paid.items()} + and n["helpers"] == {str(r): q for r, q in expected_helpers.items()}, + "Independent fresh transposed native histograms") + cohort = folder / "COHORT-PRICE.json" + write(cohort, {"paid": new["paid"], "target": new["targets"], "bracket": spec["bracket"]}) + copies.update({str(path.relative_to(work)): digest(path.read_bytes()) + for path in (ingredient, induction, native_bridge, cohort)}) + checks = ("emit_odd_type_b", "emit_odd_type_ab", "check_odd_caller_exact_grid", + "check_odd_physical_binding", "check_odd_precision", "check_odd_partial_admission", + "check_odd_fixed_tape_counts") + for script in checks: + launch(work, script, folder / (script + ".py"), deadline) + require((folder / "ODD-TYPE-AB-CALLER.json").read_bytes() == caller_bytes, "Exact regenerated caller bytes") + + def report(name): + return json.loads((folder / name).read_bytes()) + + binding = report("ODD-PHYSICAL-BINDING.json") + geometry = binding["occurrence_and_geometry"] + precision = report("ODD-PRECISION.json") + partial = report("ODD-ADMISSION-PARTIAL.json") + tape = report("ODD-FIXED-TAPE-COUNTS.json") + for evidence in (binding, precision, partial, tape): + require(evidence["native_sha256"] == candidate and evidence["caller_sha256"] == CALLER, + "Signed intermediate result custody") + require(geometry["native_calls"] == 17 and geometry["native_contact_boundaries"] == 13600 + and geometry["reserved_native_banks"] == 1156 and geometry["fresh_helpers"] == len(helper_roles) * 17 + and geometry["paid"] == new["paid"] and geometry["targets"] == new["targets"] + and geometry["rank_surplus"] == partial["invoice"]["S"] == 1424 + and partial["invoice"]["empty_root_credits"] == 0 and binding["aliased_main_rejected"], + "Complete occurrence and physical ownership binding") + require(partial["invoice"]["P"] == new["paid"] and partial["invoice"]["T"] == new["targets"] + and partial["crossing_probe_rejected"] and partial["compiler_outer"] == cost["gate"], + "Outer corroboration and lower-bracket control") + require(precision["rounded_caller"] == grid["caller_envelope"] and precision["context_c"] == grid["context_c"] + and tape["context_bound_bits"] < tape["H"] and tape["max_scalar_numerator_bits"] <= 24, + "Candidate fixed precision and tape") + charged = partial["ordinary"]["conservative_total"] + require(charged == ordinary["retained_signed_model_total"], "Independent ordinary source-unit agreement") + scale = grid["integer_grid"]["odd_scale_lcm"] + sites = 2 * geometry["native_calls"] * w["public"] + extra = sites * 4 * (scale.bit_length() + 1 + scale.bit_count()) + require(charged + extra < 10**9, "Ordinary cap including all native-scale conversions") + slices = catalogue_check(work, folder, maps, deadline, word_sha) + launch(work, "assemble_odd_application", folder / "assemble_odd_application.py", deadline) + launch(work, "fixed_controls", work / "controls.py", deadline) + assembly = report("ODD-8X9-APPLICATION-CHECKS.json") + falsifiers = json.loads((work / "CONTROLS.json").read_bytes()) + require(assembly["status"] == "PASS_8X9_EXACT_COMPONENT_APPLICATION_CHECKS" + and assembly["assumptions"] == ASSUMPTIONS and assembly["native_canonical_sha256"] == candidate + and assembly["caller_sha256"] == CALLER and falsifiers["positive"] == 1 and falsifiers["rejecting"] == 7, + "Final joined component and fixed-tape controls") + for rel, pin in copies.items(): + read(work / rel, pin) + authenticate_inputs(spec) + verify_sources() + old_maps = old_profile[2] | old_profile[3] + return {"status": "PASS_FRESH_SIGNED_CALLER_CONDITIONAL_COMPONENTS", "source_pr": pr, "source_head": head, + "source_canonical_sha256": digest(canonical(source)), "candidate_canonical_sha256": candidate, + "candidate_gzip_sha256": word_sha, "caller_sha256": CALLER, **new, "price_outer": cost["gate"], + "clear_lifetimes": life, "reserved_native_banks": geometry["reserved_native_banks"], + "catalogue_size": len(maps), "catalogue_common_with_source": len(maps & old_maps), + "catalogue_new_to_source": sorted(maps - old_maps), "catalogue_boundary_pairs": 104, + "birth_roles": {r: {"frame": w["initial"][r], "distinct_owners_bound": 17} for r in (457, 461)}, + "fixed_tape": tape, "ordinary": {"retained": charged, "native_scale": scale, "extra_sites": sites, + "extra_charge_with_possible_overlap": extra, "model_total": charged + extra, + "model_margin": 10**9 - charged - extra}, + "controls": {"native_receipt_mutations": checked, "fixed_tape": falsifiers, + "absolute_phase_rejections": len(slices), "aliased_main_rejected": True, + "lower_crossing_probe_rejected": True}, + "assumptions": ASSUMPTIONS, "seconds": time.monotonic() - tick, "source_copy_pins": copies, + "assembly_sha256": digest((folder / "ODD-8X9-APPLICATION-CHECKS.json").read_bytes())} + + +def main(): + require(sys.flags.isolated and sys.dont_write_bytecode and __debug__, "Use Python -I -B with assertions") + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--spec", required=True, type=Path) + parser.add_argument("--go", required=True, type=Path) + parser.add_argument("--work", required=True, type=Path) + args = parser.parse_args() + spec_bytes = args.spec.read_bytes() + spec, go = map(json.loads, (spec_bytes, args.go.read_bytes())) + require(go["status"] == "GO" and go["spec_sha256"] == digest(spec_bytes) + and go["source_head"] == spec["source_head"] + and go["candidate_canonical_sha256"] == spec["candidate_canonical_sha256"] + and go["scope"] == "fresh-signed-caller-outer" + and go["event_id"] and go["receipt_id"], "Exact registered run authorization") + names = ("run.py", "guard.py", "engines.py", "native_ingredient.py") + require(set(go["driver_files"]) == set(names), "Frozen driver closure") + for name in names: + read(HERE / name, go["driver_files"][name]) + wall = go["wall_seconds"] + require(type(wall) is int and 150 <= wall <= 900, "Signed wall budget") + work = args.work.resolve() + require(work.is_relative_to(HERE) and work != HERE, "Dedicated signed output directory") + cpu = go["cpu"] + require(type(cpu) is int and cpu in os.sched_getaffinity(0), "Registered CPU affinity") + os.sched_setaffinity(0, {cpu}) + resource.setrlimit(resource.RLIMIT_AS, (2 * 1024**3, 2 * 1024**3)) + resource.setrlimit(resource.RLIMIT_CPU, (wall, wall)) + + def interrupted(signum, _frame): + raise InterruptedError(f"Signal {signum}") + + for signum in (signal.SIGTERM, signal.SIGINT, signal.SIGALRM): + signal.signal(signum, interrupted) + deadline = time.monotonic() + wall + signal.alarm(wall) + inputs = authenticate_inputs(spec) + pins = verify_sources() + work.mkdir() + write(work / "START.json", {"started": utc(), "spec": spec, "authorization": go, + "interpreter": sys.executable, "affinity": sorted(os.sched_getaffinity(0)), + "address_space": resource.getrlimit(resource.RLIMIT_AS), + "cpu_per_process": resource.getrlimit(resource.RLIMIT_CPU)}) + try: + result = run(spec, inputs, work, deadline, pins) + for name in names: + read(HERE / name, go["driver_files"][name]) + signal.alarm(0) + write(work / "RESULT.json", result) + except BaseException as failure: + signal.alarm(0) + write(work / "EXIT.json", {"ended": utc(), "status": "INCOMPLETE", "error": repr(failure)}) + raise + write(work / "EXIT.json", {"ended": utc(), "status": "COMPLETE", "result_sha256": digest((work / "RESULT.json").read_bytes())}) + print(result["status"], result["candidate_canonical_sha256"], flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/p104-role379-idle-stop/application-evidence/signed-replay/replay.py b/research/p104-role379-idle-stop/application-evidence/signed-replay/replay.py new file mode 100644 index 0000000000..7f551e01ca --- /dev/null +++ b/research/p104-role379-idle-stop/application-evidence/signed-replay/replay.py @@ -0,0 +1,315 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Replay the signed #7113 application on the pinned #7658 role-379 word.""" + +import argparse +from copy import deepcopy +import gzip +from hashlib import sha1, sha256 +from io import BytesIO +import json +import os +from pathlib import Path, PurePosixPath +import runpy +import subprocess +import sys +import tarfile +import tempfile + + +HERE = Path(__file__).resolve().parent +PRIORDIR = "kappa-7641-successor-20261118" +HEAD = "07a76c5e2738882c0cb322278e56f6cae3c9885d" +FREEZE = "ac57680f5a9c2ba97840b3b5bd10f1b7b77db1fe20d54e6197a1e18c08842045" +DRIVERS = {"engines.py", "guard.py", "native_ingredient.py", "run.py"} +SPEC_INPUTS = { + "clear_result", "grid", "independent_pair", "native_adapter", "native_launcher", + "native_physical", "native_receipt", "native_result", "native_start", "native_stderr", + "native_stdout", "native_time", "ordinary", "source_invoice", "source_word", "word", +} +SHORT_CALLER = "caller/replay/supplier7112/short-caller" +VENDOR_SHORT_CALLER = ("interval_gate.py", "check_odd_fixed_tape_counts.py") +PRICING = { + "evaluate_recursive_power.py": "52b20f41fd0bb55fa88dccd6015af2ce358917817b9506720f3e60ce681cc3ad", + "compare_recursive_invoices.py": "3930c22c11da7bc6042cfeb6e459ecb06e4478430037bee3469d034353855fc6", +} +NATIVE_WORD = "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669" +NATIVE_TRANSPORT = "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e" + + +def require(ok, reason): + if not ok: + raise ValueError(reason) + + +def digest(raw): + return sha256(raw).hexdigest() + + +def git_blob(raw): + return sha1(f"blob {len(raw)}\0".encode() + raw).hexdigest() + + +def read(path, pin=None): + raw = path.read_bytes() + require(pin is None or digest(raw) == pin, f"byte pin {path.name}") + return raw + + +def load(path, pin=None): + return json.loads(read(path, pin)) + + +def write(path, raw): + path.parent.mkdir(parents=True, exist_ok=True) + with path.open("xb") as out: + out.write(raw) + + +def write_json(path, obj): + write(path, (json.dumps(obj, sort_keys=True, indent=2) + "\n").encode()) + + +def relative(name): + p = PurePosixPath(name) + require(not p.is_absolute() and ".." not in p.parts and p.parts and p.as_posix() == name, + f"invalid relative input {name!r}") + return p + + +def bound_path(root, name): + p = root / relative(name) + require(p.is_file() and p.resolve() == p, f"missing or aliased input {name}") + return p + + +def materialize(root, core): + """Authenticate the exact source inventory and restore the driver's relative layout.""" + sources = load(HERE / "data/SOURCE-CLOSURE.json") + members = sources["members"] + require(sources["schema_version"] == 1 and sources["caller_pr"] == 7113 + and sources["caller_head"] == HEAD and sources["prior_freeze_sha256"] == FREEZE, + "source manifest and caller head") + archive = read(HERE / "data/caller-closure.tar.gz", sources["archive_sha256"]) + validated = {} + with tarfile.open(fileobj=BytesIO(archive), mode="r:gz") as packed: + for entry in packed: + name = entry.name + relative(name) + require(entry.isfile() and name in members and name not in validated, + f"unexpected archive entry {name}") + record = members[name] + require(entry.size == record["bytes"], f"archive size {name}") + raw = packed.extractfile(entry).read() + require(digest(raw) == record["sha256"], f"archive byte pin {name}") + if "git_blob" in record: + require(git_blob(raw) == record["git_blob"], f"Git blob pin {name}") + validated[name] = raw + require(set(validated) == set(members), "archive member omission") + require(digest(validated["caller/FREEZE.json"]) == FREEZE, "prior scientific source freeze") + frozen = json.loads(validated["caller/FREEZE.json"])["files"] + require(len(frozen) == 68, "prior source denominator") + require(set(validated) == {"caller/" + name for name in frozen} + | {"caller/FREEZE.json", "caller/LICENSE", "resources/fixed/controls.py"}, "archive closure shape") + for local, pin in frozen.items(): + name = "caller/" + local + record = members[name] + require(digest(validated[name]) == pin, f"signed driver historical freeze {local}") + if local == "run_caller.py": + require(record["origin"] == "retained_local_inert", "local wrapper provenance") + else: + require(record["origin"] == "github" and record["commit"] == HEAD + and record["source_path"] == f"research/signed-caller-8x9/{local}" + and "git_blob" in record, f"#7113 source binding {local}") + prior = root / PRIORDIR + for name, raw in validated.items(): + write(prior / name, raw) + for name in VENDOR_SHORT_CALLER: + write(prior / "resources/vendor" / name, validated[SHORT_CALLER + "/" + name]) + for name, pin in PRICING.items(): + path = bound_path(core, f"retained/pricing/{name}") + write(prior / "resources/vendor" / name, read(path, pin)) + + run = load(HERE / "data/OBSERVED.json") + require(set(run["driver_files"]) == DRIVERS, "original driver file set") + driver = root / "current/signed" + for name, pin in run["driver_files"].items(): + write(driver / name, read(HERE / "driver" / name, pin)) + return driver, run + + +def match_rebuilt(packed, historical_decoded): + require(gzip.decompress(packed) == historical_decoded, "rebuilt candidate decoded bytes differ") + + +def transport_controls(decoded): + def alternate(raw): + out = BytesIO() + with gzip.GzipFile(filename="rebuilt-role379.json", fileobj=out, mode="wb", + mtime=37, compresslevel=1) as zipped: + zipped.write(raw) + return out.getvalue() + + equivalent = alternate(decoded) + require(digest(equivalent) != NATIVE_TRANSPORT, "alternate transport control changed no bytes") + match_rebuilt(equivalent, decoded) + marker = b'"owned_fields":68' + require(decoded.count(marker) == 1, "decoded mutation control anchor") + different = decoded.replace(marker, b'"owned_fields":69', 1) + try: + match_rebuilt(alternate(different), decoded) + except ValueError as exc: + require(str(exc) == "rebuilt candidate decoded bytes differ", "wrong decoded mutation refusal") + else: + raise ValueError("one-byte decoded word mutation accepted") + return {"alternate_gzip": "accepted", "different_decoded_byte": "rejected"} + + +def portable_spec(core, evidence): + """Restore runtime paths and authenticate the exact historical signed inputs.""" + spec = load(HERE / "data/SPEC.json") + require(set(spec["inputs"]) == SPEC_INPUTS and spec["source_pr"] == 7658 + and spec["candidate_canonical_sha256"] == spec["candidate_raw_sha256"] == NATIVE_WORD, + "exact signed input set and candidate") + inputs = {} + for name, ref in spec["inputs"].items(): + if name == "word": + require(ref["origin"] == "retained-signed-transport" and ref["path"] == "WORD.json.gz" + and ref["sha256"] == NATIVE_TRANSPORT, "historical signed transport pin") + p = bound_path(HERE / "data", ref["path"]) + elif ref["origin"] == "core": + p = bound_path(core, ref["path"]) + else: + require(ref["origin"] == "application-evidence", f"unknown input provenance {name}") + p = bound_path(evidence, ref["path"]) + raw = read(p, ref["sha256"]) + if name == "word": + decoded = gzip.decompress(raw) + require(digest(decoded) == NATIVE_WORD, "historical signed word pin") + inputs[name] = {"path": str(p), "sha256": digest(raw)} + return {**spec, "inputs": inputs}, decoded + + +def check_driver(driver): + # Import the unchanged driver and call its independent source guard. + entry = ( + "import runpy,sys\n" + "ns=runpy.run_path(sys.argv[1])\n" + "assert len(ns['verify_sources']())==68\n" + ) + subprocess.run([sys.executable, "-I", "-B", "-c", entry, str(driver / "run.py")], + cwd=driver, check=True) + + +def regenerate(core, work): + entry = runpy.run_path(str(bound_path(core, "verify.py"))) + work.mkdir() + result, raw, _ = entry["run_mutation"](7658, work, core / "evidence/pr7658", entry["pinned_sources"]()) + require(raw == NATIVE_WORD, "core candidate word hash") + return result + + +def normalize_result(obj): + """Leave only reproducible scientific fields and control outcomes.""" + data = deepcopy(obj) + del data["seconds"] + for case in data["controls"]["fixed_tape"]["cases"]: + # A rejected control's traceback carries relocated filesystem paths. + case.pop("stderr_sha256") + return data + + +def run_application(args, core, evidence): + output = args.out.resolve() + output.mkdir(exist_ok=False) + driver, observed = materialize(output, core) + spec, historical_decoded = portable_spec(core, evidence) + transport = transport_controls(historical_decoded) + rebuilt = read(regenerate(core, output / "candidate")) + match_rebuilt(rebuilt, historical_decoded) + path = output / "SPEC.json" + write_json(path, spec) + available = os.sched_getaffinity(0) + cpu = min(available) if args.cpu is None else args.cpu + require(cpu in available and 150 <= args.wall <= 900, "one available Linux CPU and bounded wall") + # The command is the reviewer's authorization for this local run. Its + # self-contained receipt is separate from the original ledger event. + local_receipt = { + "mode": "independent_checkout_replay", "spec_sha256": digest(read(path)), + "candidate_canonical_sha256": NATIVE_WORD, "cpu": cpu, "wall_seconds": args.wall, + "source_head": spec["source_head"], "driver_files": observed["driver_files"], + } + receipt_path = output / "REPLAY-REQUEST.json" + write_json(receipt_path, local_receipt) + go = {**local_receipt, "status": "GO", "scope": "fresh-signed-caller-outer", + "event_id": "independent-checkout-replay", + "receipt_id": "sha256:" + digest(read(receipt_path))} + write_json(output / "GO.json", go) + work = driver / "application" + subprocess.run([sys.executable, "-I", "-B", str(driver / "run.py"), + "--spec", str(path), "--go", str(output / "GO.json"), "--work", str(work)], + cwd=driver, check=True) + result = read(work / "RESULT.json") + exit_receipt = load(work / "EXIT.json") + require(exit_receipt["status"] == "COMPLETE" + and exit_receipt["result_sha256"] == digest(result), "portable signed completion custody") + expected = load(HERE / "data/EXPECTED.json", observed["normalized_result_sha256"]) + actual = normalize_result(json.loads(result)) + changed = sorted(k for k in actual.keys() | expected.keys() if actual.get(k) != expected.get(k)) + require(not changed, "relocated result differs: " + ", ".join(changed)) + write_json(output / "REPLAY-RESULT.json", { + "status": "PASS_PORTABLE_7658_SIGNED_APPLICATION", + "result_sha256": digest(result), "candidate": NATIVE_WORD, + "claim": spec["claim"], "catalogue_size": actual["catalogue_size"], + "normalized_result_sha256": observed["normalized_result_sha256"], + "retained_native_launch_verified": True, + "transport": {"historical_gzip_sha256": NATIVE_TRANSPORT, + "rebuilt_gzip_sha256": digest(rebuilt), + "decoded_sha256": NATIVE_WORD, "controls": transport}, + "raw_result": work.relative_to(output).as_posix() + "/RESULT.json", + }) + print(f"PASS_PORTABLE_7658_SIGNED_APPLICATION {NATIVE_WORD} " + f"kappa={spec['claim']} catalogue_maps={actual['catalogue_size']}", flush=True) + + +def main(): + require(sys.version_info[:2] == (3, 12) and sys.flags.isolated + and sys.dont_write_bytecode and __debug__, "use Linux Python 3.12 -I -B with assertions") + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--core", required=True, type=Path) + parser.add_argument("--application-evidence", type=Path) + command = parser.add_subparsers(dest="mode", required=True) + check = command.add_parser("check", help="validate bindings and relocated input closure") + check.add_argument("--candidate", type=Path, help="optionally check a previously generated candidate") + run = command.add_parser("run", help="rebuild candidate and execute the complete signed application") + run.add_argument("--out", type=Path, help="retain outputs in a fresh directory") + run.add_argument("--cpu", type=int) + run.add_argument("--wall", type=int, default=900) + args = parser.parse_args() + core = args.core.resolve() + evidence = (args.application_evidence or (core / "application-evidence")).resolve() + if args.mode == "run": + if args.out is not None: + run_application(args, core, evidence) + else: + with tempfile.TemporaryDirectory(prefix="role379-signed-replay-") as tmp: + args.out = Path(tmp) / "run" + run_application(args, core, evidence) + return + spec, historical_decoded = portable_spec(core, evidence) + transport_controls(historical_decoded) + if args.candidate: + match_rebuilt(read(args.candidate), historical_decoded) + with tempfile.TemporaryDirectory(prefix="role379-signed-source-check-") as tmp: + driver, observed = materialize(Path(tmp), core) + expected = load(HERE / "data/EXPECTED.json", observed["normalized_result_sha256"]) + require(expected["status"] == "PASS_FRESH_SIGNED_CALLER_CONDITIONAL_COMPONENTS" + and expected["candidate_canonical_sha256"] == NATIVE_WORD, "observed signed result") + check_driver(driver) + print(f"PASS_PORTABLE_SIGNED_INPUTS_ONLY {len(spec['inputs'])}/{len(SPEC_INPUTS)}", flush=True) + print("PASS_PORTABLE_SIGNED_TRANSPORT_CONTROLS alternate_gzip=accepted different_decoded_byte=rejected", + flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/p104-role379-idle-stop/evidence/pr7636/INDEPENDENT.json b/research/p104-role379-idle-stop/evidence/pr7636/INDEPENDENT.json new file mode 100644 index 0000000000..e4bcecd4f4 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7636/INDEPENDENT.json @@ -0,0 +1,593 @@ +{ + "assurance": "Exact literal row and certificate replay with the pinned source's conditional #7113 invoice residual.", + "candidate": { + "affected_census_with_literal_edit": 1026, + "changed_native_ordinary_units_at_17_calls": -17000, + "changed_pair_multiplicities": [ + [ + 748, + 1065, + 2, + 1 + ], + [ + 748, + 1072, + 0, + 1 + ], + [ + 1065, + 1072, + 2, + 1 + ] + ], + "full_signed_delta": { + "paid": { + "1": -17, + "2": -17, + "3": 17 + }, + "targets": {} + }, + "full_signed_invoice": { + "contract": { + "ambient_rank": 145, + "boundary": "complete signed #7113 caller application with 17 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "paid": { + "1": 68078, + "2": 15572, + "3": 10863, + "4": 4624, + "5": 6018, + "6": 765, + "7": 221, + "8": 758, + "9": 32, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 208 + }, + "schema": "integer-mult-recursive-invoice/v1", + "targets": { + "1": 306, + "2": 357, + "3": 799, + "4": 3825, + "5": 1360, + "6": 765, + "7": 323, + "8": 544, + "9": 10854, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208, + "137": 208 + } + }, + "gzip_sha256": "869504fb9f9d994c1ee9b9e5a3a83fb2fcb8cd5455b7639c1ee2bcd195086d5c", + "literal_changes": [ + { + "candidate": [], + "candidate_start": 131142, + "source": [ + [ + "MOVE", + 379, + 748, + 1065, + false + ] + ], + "source_start": 131142 + }, + { + "candidate": [ + [ + "MOVE", + 379, + 748, + 1072, + false + ] + ], + "candidate_start": 131293, + "source": [ + [ + "MOVE", + 379, + 1065, + 1072, + false + ] + ], + "source_start": 131294 + } + ], + "literal_sha256": "9b5b66e93f91c9538525d8d7b1278e0f203058d5cd4e1351fa06f8315fdaa555", + "pairs_new_to_word": [ + [ + 748, + 1072 + ] + ], + "pairs_removed_from_word": [], + "price": { + "at_claim": [ + "0.00000002097381973806846457", + "0.00000002097381973806846458" + ], + "at_lower": [ + "0.00000002097381973806846457", + "0.00000002097381973806846458" + ], + "at_upper": [ + "-0.00000001741817047577948238", + "-0.00000001741817047577948237" + ], + "claim": "0.0036810345257", + "derivative": [ + "-383919.90213871355903182628359680", + "-383919.90213824537988613634338883" + ], + "kappa": [ + "0.0036810345257", + "0.0036810345258" + ], + "source_at_claim": [ + "-0.11918864963200024818563328", + "-0.11918864963200024818563327" + ], + "weighted_surplus": 1424 + }, + "trace": { + "changed_operation_grid": { + "numerator_bits": 29, + "odd_lcm": 54675, + "two_power": 16 + }, + "events_by_opcode": { + "ADD": 191543, + "CLEAR": 180, + "COPY": 1, + "INIT": 180, + "MOVE": 6227, + "SCALE": 4536 + }, + "final_rows_sha256": "93c7c11e5c9c371f2ea64c675ba8eecda28316a063aab73bed8a9516ad01e98b", + "literal_scalar_units": 6548076, + "native_helper_targets": { + "1": 18, + "2": 21, + "3": 47, + "4": 225, + "5": 80, + "6": 45, + "7": 19, + "8": 32, + "9": 614 + }, + "native_paid": { + "1": 3982, + "2": 916, + "3": 639, + "4": 272, + "5": 354, + "6": 45, + "7": 13, + "8": 6 + }, + "native_paid_owned": { + "1": 20, + "2": 9, + "3": 2, + "4": 13, + "5": 2, + "6": 1 + }, + "non_dyadic_literal_events": { + "ADD": 11624, + "SCALE": 113 + }, + "nonzero_public_output_coefficients": 1709, + "ordered_clear_sha256": "3d1639a0afee8582431f36163d36e97ad57dc9171fd4353c89a7c905bf2a7d85", + "ordered_clear_values": 180, + "ordered_owned_or_copy_observations": 1049, + "ordered_protected_sha256": "586e710f72ea513b84b1a90c1fd8ec7752188b81bc8a04f589fcdb8a75a0cf1c", + "owned_add_zero_refills": 0, + "owned_label_count": 68, + "owned_lifetimes": 180, + "owned_moves": 47, + "peak_owned": 50, + "protected_observations_by_opcode": { + "ADD": 619, + "CLEAR": 180, + "COPY": 1, + "INIT": 180, + "MOVE": 47, + "SCALE": 22 + }, + "tape_move_pair_count": 3009 + }, + "variant": "B" + }, + "controls": { + "certificate": { + "rejection": { + "clock": 121447, + "code": "clear_self", + "detail": "owned field 1502 used as its own witness" + } + }, + "chart": { + "literal_after": [ + "MOVE", + 379, + 748, + 520, + false + ], + "literal_before": [ + "MOVE", + 379, + 748, + 1072, + false + ], + "rejection": { + "clock": 131293, + "code": "public_ascent", + "detail": "748 to 520" + } + }, + "coefficient": { + "clock": 202666, + "invoice_identical": true, + "literal_after": [ + "ADD", + 756, + 0, + "1/4", + 127 + ], + "literal_before": [ + "ADD", + 756, + 0, + "-1/4", + 127 + ], + "rejection": { + "clock": null, + "code": "final_row", + "detail": "public row 756 full formal-input coefficient map" + } + } + }, + "elapsed_seconds": 104.29722056799801, + "finished": "2026-11-18T01:26:06.129785+00:00", + "input_bytes_rechecked": { + "candidate_gzip": "869504fb9f9d994c1ee9b9e5a3a83fb2fcb8cd5455b7639c1ee2bcd195086d5c", + "clear_certificates": "94809b766d041f6bb400df151de5702c5e8ec0a8a47c80ddfe5b2b3a5e0f09d2", + "source_affected_census": "cee6de59aa47c8633bf260490d4d5948b7e78276e92f2735765ef1c05a80c8ae", + "source_gzip": "1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659", + "source_invoice": "18adee673515c4ece7208b53c7cc17a2e121843d55f62067d2e43e341872f0d5" + }, + "limits": { + "address_space_bytes": 2147483648, + "cpu": 4, + "cpu_seconds": 240, + "wall_seconds": 240 + }, + "price_convention": "sum (targets_r - paid_r) * r^(1-C)", + "resource_usage": { + "max_rss_kib": 261188, + "system_cpu_seconds": 0.126933, + "user_cpu_seconds": 96.94092 + }, + "result": "PASS_PAIRED_EXACT_REPLAY_AND_CONDITIONAL_PRICE", + "schema": "p104-independent-exact-replay/2", + "source": { + "affected_predecessor_census": 1023, + "allocated_owned": 68, + "caller_residual": { + "paid": { + "1": 384, + "8": 656, + "9": 32, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 208 + }, + "targets": { + "9": 416, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208, + "137": 208 + } + }, + "clear_certificate_term_counts": [ + [ + 0, + 6 + ], + [ + 1, + 40 + ], + [ + 2, + 65 + ], + [ + 3, + 2 + ], + [ + 4, + 4 + ], + [ + 5, + 8 + ], + [ + 6, + 5 + ], + [ + 7, + 14 + ], + [ + 8, + 4 + ], + [ + 9, + 2 + ], + [ + 10, + 1 + ], + [ + 11, + 2 + ], + [ + 12, + 1 + ], + [ + 14, + 2 + ], + [ + 15, + 2 + ], + [ + 16, + 6 + ], + [ + 17, + 2 + ], + [ + 18, + 1 + ], + [ + 19, + 1 + ], + [ + 21, + 1 + ], + [ + 23, + 1 + ], + [ + 24, + 1 + ], + [ + 25, + 2 + ], + [ + 26, + 1 + ], + [ + 29, + 1 + ], + [ + 37, + 2 + ], + [ + 39, + 1 + ], + [ + 81, + 1 + ], + [ + 83, + 1 + ] + ], + "frames": 1096, + "full_signed_invoice": { + "contract": { + "ambient_rank": 145, + "boundary": "complete signed #7113 caller application with 17 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "paid": { + "1": 68095, + "2": 15589, + "3": 10846, + "4": 4624, + "5": 6018, + "6": 765, + "7": 221, + "8": 758, + "9": 32, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 208 + }, + "schema": "integer-mult-recursive-invoice/v1", + "targets": { + "1": 306, + "2": 357, + "3": 799, + "4": 3825, + "5": 1360, + "6": 765, + "7": 323, + "8": 544, + "9": 10854, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208, + "137": 208 + } + }, + "gzip_sha256": "1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659", + "head": "7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + "literal_sha256": "98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2", + "pr": 7636, + "price": { + "at_lower": [ + "0.00000001815275357103453681", + "0.00000001815275357103453682" + ], + "at_upper": [ + "-0.00000002024251539010279358", + "-0.00000002024251539010279357" + ], + "derivative": [ + "-383952.68961160739157283628566201", + "-383952.68961113921637791198621405" + ], + "kappa": [ + "0.0036807241001", + "0.0036807241002" + ], + "weighted_surplus": 1424 + }, + "public": 1501, + "trace": { + "changed_operation_grid": { + "numerator_bits": 29, + "odd_lcm": 54675, + "two_power": 16 + }, + "events_by_opcode": { + "ADD": 191543, + "CLEAR": 180, + "COPY": 1, + "INIT": 180, + "MOVE": 6228, + "SCALE": 4536 + }, + "final_rows_sha256": "93c7c11e5c9c371f2ea64c675ba8eecda28316a063aab73bed8a9516ad01e98b", + "literal_scalar_units": 6548076, + "native_helper_targets": { + "1": 18, + "2": 21, + "3": 47, + "4": 225, + "5": 80, + "6": 45, + "7": 19, + "8": 32, + "9": 614 + }, + "native_paid": { + "1": 3983, + "2": 917, + "3": 638, + "4": 272, + "5": 354, + "6": 45, + "7": 13, + "8": 6 + }, + "native_paid_owned": { + "1": 20, + "2": 9, + "3": 2, + "4": 13, + "5": 2, + "6": 1 + }, + "non_dyadic_literal_events": { + "ADD": 11624, + "SCALE": 113 + }, + "nonzero_public_output_coefficients": 1709, + "ordered_clear_sha256": "3d1639a0afee8582431f36163d36e97ad57dc9171fd4353c89a7c905bf2a7d85", + "ordered_clear_values": 180, + "ordered_owned_or_copy_observations": 1049, + "ordered_protected_sha256": "586e710f72ea513b84b1a90c1fd8ec7752188b81bc8a04f589fcdb8a75a0cf1c", + "owned_add_zero_refills": 0, + "owned_label_count": 68, + "owned_lifetimes": 180, + "owned_moves": 47, + "peak_owned": 50, + "protected_observations_by_opcode": { + "ADD": 619, + "CLEAR": 180, + "COPY": 1, + "INIT": 180, + "MOVE": 47, + "SCALE": 22 + }, + "tape_move_pair_count": 3008 + } + }, + "started": "2026-11-18T01:24:21.832568+00:00" +} diff --git a/research/p104-role379-idle-stop/evidence/pr7636/mutation/CLEAR-CERTIFICATES.json b/research/p104-role379-idle-stop/evidence/pr7636/mutation/CLEAR-CERTIFICATES.json new file mode 100644 index 0000000000..f909b06f6e --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7636/mutation/CLEAR-CERTIFICATES.json @@ -0,0 +1 @@ +{"clear_event_index":{"121447":{"1072":"1","500":"-1"},"121449":{"307":"1"},"121854":{"1089":"1","510":"-1"},"121856":{"22":"1/4","23":"-3/4","320":"1/4","321":"-1/2","323":"-1","325":"1/2","330":"-1"},"122607":{"246":"1","510":"1"},"122613":{"262":"1","500":"1"},"122691":{"1477":"-1"},"122820":{"1094":"1","332":"-1"},"122822":{"22":"1/8","23":"1/8","320":"1/8","321":"1/4","323":"1/2","325":"1/4","330":"-1/2"},"122896":{"385":"-1/4","387":"-1/2","389":"-1/4","394":"-1/2","64":"1/8"},"122928":{"18":"1/4","288":"-1/4","289":"-1/2","291":"-1/2","298":"1","39":"1/4","40":"1/4"},"123037":{"103":"1/2","17":"-5/8","272":"-1/2","273":"-1/2","275":"-1","277":"1/2","282":"1"},"123046":{"1088":"1","512":"-1"},"123048":{"23":"-1/4","320":"-1/4","321":"-1/2","323":"-1","325":"1/2","330":"1"},"123200":{"1116":"1","354":"-1"},"123202":{"30":"1/4","353":"1/2","355":"-1","357":"-1/2","362":"-1"},"123205":{"385":"1/2","387":"-1","389":"-1/2","394":"-1","64":"1/4","96":"1"},"123272":{"385":"-1/2","387":"-1","389":"1/2","394":"-1","64":"-1/4","65":"-1/2","96":"1/2"},"123275":{"29":"-1/2","30":"-1/4","353":"-1/2","355":"-1","357":"1/2","362":"-1","59":"1/2"},"123695":{"1105":"1","343":"-1"},"123697":{"341":"1"},"123747":{"18":"1/4","288":"1/4","289":"1/2","291":"5/2","293":"-1","298":"-1","39":"1/4","40":"1/4"},"123754":{"1084":"1","23":"1/4","320":"1/4","321":"1/2","323":"1","325":"1/2","330":"-1","511":"-1"},"123758":{"108":"1/2","23":"1/4","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"-1"},"123790":{"18":"1/4","288":"1/4","289":"-1/2","298":"-1","39":"-1/4","40":"1/4"},"123872":{"1104":"1","342":"-1"},"123874":{"339":"1"},"123877":{"384":"-1/2","385":"-1/2","387":"-1","389":"1/2","394":"1","64":"-3/4"},"123940":{"30":"-1/4","352":"-1/2","353":"-1/2","355":"-1","357":"1/2","362":"1","59":"1/2"},"123943":{"26":"1/4","368":"-3/4","369":"-1/2","371":"-1","373":"1/2","378":"1","8":"1/4"},"123999":{"18":"1/4","288":"1/4","289":"1/2","293":"-1","298":"1","39":"1/4","40":"1/4"},"124009":{"107":"-1/4","304":"-1/4","305":"1/2","307":"-1","309":"-1/2","314":"1","35":"1/4","45":"1/4"},"124061":{"17":"-1/4","273":"1/2","275":"-1","277":"-1/2","282":"1"},"124068":{"1086":"1","513":"-1"},"124070":{"108":"1/2","23":"1/4","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"1"},"124309":{"104":"1/2","416":"-1/2","417":"1","421":"1/2","426":"2"},"124459":{"26":"1/8","368":"-1/8","369":"-1/4","371":"1/2","373":"-1/4","378":"-1/2","8":"1/8","95":"-1/4"},"125900":{"831":"1"},"126366":{"1082":"1"},"126501":{"30":"1/4","353":"1/2","355":"-1","357":"-1/2","362":"1"},"126508":{"30":"1/8","353":"-1/4","355":"-1/2","357":"-1/4","362":"-1/2"},"126518":{"30":"1/8","352":"1/4","353":"1/4","355":"1/2","357":"1/4","362":"-1/2","59":"-1/4"},"126525":{"30":"1/8","353":"-1/4","355":"1/2","357":"-1/4","362":"-1/2"},"126785":{},"127159":{"385":"1/4","387":"-1/2","389":"1/4","394":"-1/2","64":"-1/8","65":"-1/4","96":"3/8"},"127167":{"1343":"-1","1344":"-1","1346":"-1","1347":"-1"},"127944":{"103":"1","108":"1","18":"1","45":"1","61":"1","63":"1"},"128035":{"365":"1"},"128103":{"1402":"1","290":"1"},"128106":{"380":"1","424":"1"},"128116":{"278":"1"},"128295":{"1470":"-1","169":"1"},"128433":{"1471":"-1","203":"1"},"128485":{"88":"1"},"128527":{"451":"1"},"128577":{"628":"-2","630":"-2"},"128796":{"640":"-1/2","641":"-1/2"},"128853":{"913":"-1","927":"1"},"128897":{"228":"1"},"128909":{"1102":"4","1106":"2","1110":"2","1113":"-2","1224":"-2","1249":"4","1280":"4","1341":"-1","1342":"-1","1355":"4","674":"-2","712":"-1","714":"-1","883":"-2"},"128910":{"256":"1/4","336":"1/4"},"128911":{"256":"1/4","336":"1/4"},"128926":{"92":"1/4"},"128927":{"92":"1/4"},"128928":{"1134":"4","1138":"-2","1144":"-2","26":"1/4","3":"1/4","67":"1/8","721":"-1","723":"-1","775":"2","837":"4","942":"2","956":"-2"},"128929":{"1105":"1","1134":"1","1137":"1","1138":"-1/2","1144":"-1/2","26":"1/16","3":"1/16","546":"1","67":"1/32","721":"-1/4","723":"-1/4","775":"1/2","837":"1","942":"1/2","956":"-1/2"},"128930":{"1105":"1","1134":"1","1137":"1","1138":"-1/2","1144":"-1/2","26":"1/16","3":"1/16","546":"1","67":"1/32","721":"-1/4","723":"-1/4","775":"1/2","837":"1","942":"1/2","956":"-1/2"},"128931":{"1105":"1","1134":"1","1137":"1","1138":"-1/2","1144":"-1/2","1390":"-1/4","26":"1/16","3":"1/16","546":"1","67":"1/32","721":"-1/4","724":"-1/4","725":"-1/4","775":"1/2","837":"1","942":"1/2","956":"-1/2"},"128932":{"1390":"-1","26":"1","368":"1/4","381":"1","723":"1","724":"-1","725":"-1","865":"4","95":"1/4"},"128933":{"1390":"-1","26":"1","368":"1/4","381":"1","723":"1","724":"-1","725":"-1","865":"4","95":"1/4"},"128950":{"1078":"1","1080":"1","1255":"1","1258":"1","1259":"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"},"128959":{"146":"-1/2"},"128960":{"106":"-15/16","1154":"-2","1162":"3","1163":"-3","1168":"4","1173":"-2","1349":"-1","1353":"4","1365":"3/4","1373":"3/2","1380":"3/4","1385":"21/16","1392":"-3/8","1397":"-6","1448":"-3/4","240":"9/16","405":"-3/2","41":"-3/4","42":"3/8","52":"2","573":"-2","728":"-1/4","737":"1","813":"3/2","875":"-2"},"128961":{"106":"5/16","1162":"-1","1163":"1","1365":"-1/4","1373":"-1/2","1380":"-1/4","1385":"-7/16","1392":"1/8","1397":"2","1448":"1/4","240":"-3/16","405":"1/2","41":"1/4","42":"-1/8","728":"-1/4","813":"-1/2"},"129005":{"1469":"-1","223":"1"},"129015":{"106":"5/16","1162":"-1","1163":"1","1365":"-1/4","1373":"-1/2","1380":"-1/4","1385":"-7/16","1392":"1/8","1397":"2","1448":"1/4","240":"-3/16","405":"1/2","41":"1/4","42":"-1/8","728":"-1/4","813":"-1/2"},"129055":{"572":"1"},"129060":{"1100":"1","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","674":"-1/2","712":"-1/4","714":"-1/4","883":"-1/2"},"129061":{"1100":"1","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","674":"-1/2","712":"-1/4","714":"-1/4","883":"-1/2"},"129062":{"1100":"1","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","674":"-1/2","712":"-1/4","714":"-1/4","863":"-2","883":"-1/2"},"129204":{"648":"1"},"129308":{},"129431":{"125":"1","1457":"-1"},"129452":{"139":"1","1474":"-1"},"129490":{"1472":"-1","163":"1"},"129497":{"1465":"-1","201":"1"},"129633":{"752":"-1","891":"1","937":"-1"},"129638":{"611":"1","613":"1","752":"1","891":"-1","937":"1"},"129645":{"1277":"-1","1279":"2","1368":"-3","1374":"2","476":"-1","489":"-1","524":"1","607":"-1","608":"-1/4","610":"3/4","611":"-1","612":"-1","613":"-1/2","770":"1"},"129874":{"128":"1","1476":"-1"},"129882":{"119":"1","1475":"-1"},"129885":{"1458":"-1","154":"1"},"130027":{"707":"4"},"130143":{"333":"1"},"130146":{"1466":"-1"},"130645":{"106":"15/64","1154":"1/2","1162":"-3/4","1163":"3/4","1168":"-1","1173":"1/2","13":"1/4","1349":"1/4","1353":"-1","1365":"-3/16","1373":"-3/8","1380":"-3/16","1385":"-21/64","1392":"3/32","1397":"3/2","1448":"3/16","1474":"1/2","240":"-9/64","402":"1/4","405":"3/8","41":"3/16","42":"-3/32","52":"-1/2","573":"1/2","728":"1/16","737":"-1/2","813":"-3/8","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"},"130646":{"106":"-5/64","1154":"1/2","1162":"1/4","1163":"-1/4","1168":"-1","1173":"1/2","13":"1/4","1349":"1/4","1353":"-1","1365":"1/16","1373":"1/8","1380":"1/16","1385":"-9/64","1392":"-1/32","1397":"-1/2","1448":"-1/16","1474":"1/2","240":"-13/64","402":"1/4","405":"-1/8","41":"-1/16","42":"1/32","52":"-1/2","573":"1/2","728":"5/16","737":"-1/2","813":"1/8","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"},"130647":{"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","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"},"130807":{"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"},"130903":{"74":"1"},"131309":{"513":"1"},"131358":{"276":"1"},"131397":{"343":"-1/2"},"131444":{"254":"1","559":"-1/2"},"131448":{"526":"1"},"131461":{"248":"1","546":"-1/2"},"131469":{"280":"1","568":"-1/2"},"131476":{"284":"1","575":"-1/2"},"131485":{"292":"1","467":"1"},"131492":{"252":"1","558":"-1/2"},"131498":{"1399":"1","563":"1"},"131505":{"1436":"1","364":"1"},"131524":{"428":"1","564":"1"},"131549":{"263":"1","512":"1"},"131576":{"479":"1","527":"1"},"131598":{"461":"1","523":"-1/2"},"131659":{"1138":"1","502":"1"},"131690":{"302":"1","578":"-1/2"},"131698":{"349":"1"},"131761":{"1336":"1"},"131767":{"133":"3/2","1334":"-1","1336":"1/2","1337":"1","1340":"1/2","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","896":"1","901":"1","929":"-1","962":"1","981":"1"},"131799":{"1334":"1","1337":"-1/2","1340":"1/2","1362":"2","1377":"-2","1386":"-1/2","1498":"-1","483":"-1","519":"-1","543":"-1","696":"-1","697":"1/4","698":"1/2","700":"1/2","702":"1","733":"1/2","767":"1/2","883":"1","892":"1","896":"1","901":"-1","924":"2","929":"-1","962":"1","981":"1"},"131800":{"133":"-1/2","1334":"1","1337":"-1/2","1340":"1/2","1362":"2","1377":"-2","1386":"-1/2","1498":"-1","483":"-1","519":"-1","543":"-1","696":"-1","697":"1/4","698":"1/2","700":"1/2","702":"1","733":"1/2","767":"1/2","883":"1","892":"1","896":"1","901":"-1","924":"2","929":"-1","962":"1","981":"1"},"131820":{"1158":"-1/2","1160":"-1","1207":"2","1243":"-2","1400":"2","146":"4","1479":"-3","1495":"-2","228":"2","428":"-1","430":"-1","451":"-1","508":"2","565":"-1","581":"1","582":"1","637":"-1","922":"-1","925":"1","974":"1","983":"-1"},"131873":{"1449":"1","1450":"1","248":"-1","268":"-1","302":"1","38":"1","546":"1/2","578":"-1/2","648":"-1","652":"-1","654":"-1"},"131987":{"1473":"-1","165":"1"},"132265":{"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","924":"2","986":"2"},"132398":{"242":"1","499":"1"},"132451":{"576":"-1/2"},"132460":{"430":"1","565":"1"},"132480":{"1404":"1","359":"-1/2"},"132485":{"328":"1","573":"1"},"132523":{"529":"1"},"132530":{"247":"1","498":"1"},"132533":{"1395":"1","551":"1"},"132536":{"1410":"1","392":"1"},"132608":{"1466":"-1"},"132615":{"1277":"-1/4","1279":"1/2","1280":"3/8","1368":"-3/4","1374":"1/2","173":"1/2","476":"-1/4","489":"-1/4","524":"1/4","537":"1/4","607":"-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"},"132616":{"151":"1/2"},"132631":{"707":"4"},"132640":{"902":"-1/2","985":"-1/2"},"132657":{"294":"1","466":"1"},"132665":{"260":"1","501":"1"},"132668":{"295":"1","458":"1"},"132704":{"1481":"-1"},"132712":{},"132715":{"10":"1","547":"-1/2"},"132769":{"456":"1","474":"1"},"132806":{"300":"1","577":"-1/2"},"132834":{"173":"1"},"132983":{"244":"1","511":"1"},"132995":{"1405":"1","354":"-1/2"},"133383":{"1435":"1","366":"1"},"133459":{"457":"1","475":"1"},"133525":{"917":"-1"},"133533":{"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","286":"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","929":"-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"},"133606":{"151":"-2","528":"-4","60":"-4","623":"-1","625":"-1/2","626":"1","628":"2","629":"2","630":"2","768":"1/2"},"133638":{"334":"1","580":"1"},"133697":{"517":"1","553":"1"},"133923":{"1467":"-1"},"134614":{"438":"-1","585":"-1","769":"1"},"134637":{"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"},"134642":{"92":"1"},"134645":{"92":"1"},"134648":{"1389":"-4","1390":"-4","26":"-1","368":"1","381":"4","723":"4","724":"-4","725":"-4","80":"-2","865":"16","95":"1"},"134661":{"1342":"-2","1437":"2","256":"1","336":"1"},"134662":{"1342":"-2","1437":"2","256":"1","336":"1"},"134665":{"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"},"134676":{"368":"1","9":"1"},"134750":{},"134869":{"862":"-1"},"134875":{"1000":"-1/2","1206":"1","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","1466":"1","1477":"1","1490":"2","226":"1","230":"1","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"},"134903":{"998":"1"},"135237":{"108":"-1","1492":"-2","22":"-1/2","23":"-1/2","320":"-1/2","333":"-1","49":"1"},"135478":{"1082":"-1","794":"-4"},"136748":{"1025":"-2","1029":"-5/2","831":"-1","864":"-2"},"136920":{"1499":"1","998":"-1"},"136926":{},"136927":{},"137350":{"863":"1"}}} diff --git a/research/p104-role379-idle-stop/evidence/pr7636/mutation/EDITS.json b/research/p104-role379-idle-stop/evidence/pr7636/mutation/EDITS.json new file mode 100644 index 0000000000..cf7fb2742a --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7636/mutation/EDITS.json @@ -0,0 +1 @@ +{"append":[],"base_events":202668,"delete":[[131142,["MOVE",379,748,1065,false]],[131294,["MOVE",379,1065,1072,false]]],"insert_before":[[131294,[["MOVE",379,748,1072,false]]]],"source_head":"7e68d8dd62d9a38c0f3c942262a7a85ca7125b75","source_pr":7636,"source_word_sha256":"98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2"} diff --git a/research/p104-role379-idle-stop/evidence/pr7636/mutation/INVOICE.json b/research/p104-role379-idle-stop/evidence/pr7636/mutation/INVOICE.json new file mode 100644 index 0000000000..97e3f76e15 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7636/mutation/INVOICE.json @@ -0,0 +1 @@ +{"contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"paid":{"1":68078,"16":416,"2":15572,"24":416,"3":10863,"32":416,"4":4624,"40":416,"48":416,"5":6018,"56":416,"6":765,"64":208,"7":221,"8":758,"9":32},"schema":"integer-mult-recursive-invoice/v1","targets":{"1":306,"137":208,"17":416,"2":357,"25":416,"3":799,"33":416,"4":3825,"41":416,"49":416,"5":1360,"57":416,"6":765,"65":416,"7":323,"73":208,"8":544,"9":10854}} diff --git a/research/p104-role379-idle-stop/evidence/pr7636/mutation/PRICE.json b/research/p104-role379-idle-stop/evidence/pr7636/mutation/PRICE.json new file mode 100644 index 0000000000..dd81e6fd1f --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7636/mutation/PRICE.json @@ -0,0 +1 @@ +{"bracket":["0.0036810345257","0.0036810345258"],"candidate_at_lower":{"bits":256,"classification":"new_cost_lower","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"9963189654743/10000000000000","new_minus_old":{"lower":"-2428602406757807441804730145969742991104780072582840411999532860817933/115792089237316195423570985008687907853269984665640564039457584007913129639936","upper":"-2428602406757807441804730145969742991104780072582840411999532733543395/115792089237316195423570985008687907853269984665640564039457584007913129639936"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67772},{"power_lower":"115497022463128840419862943811668375076942514553623223735938143158927875445431/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"230994044926257680839725887623336750153885029107246447471876286317855750891533/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":2,"signed_count":15215},{"power_lower":"345974304446934688403762773699204932784332479221628059385297306486954330817055/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"345974304446934688403762773699204932784332479221628059385297306486954330817999/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":3,"signed_count":10064},{"power_lower":"460810830367142601181550979063047625827136085229198193110551708198538392127959/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"115202707591785650295387744765761906456784021307299548277637927049634598032291/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":4,"signed_count":799},{"power_lower":"71942574401460256683233475733029441024735213275805999073652262479320827391617/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"575540595211682053465867805864235528197881706206447992589218099834566619134401/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":5,"signed_count":4658},{"power_lower":"804759468121631344795977512406278622666160085330046987315967723769497361496233/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"402379734060815672397988756203139311333080042665023493657983861884748680749127/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":7,"signed_count":-102},{"power_lower":"919273141658023292765259354095206408049533005005952380274797833252837624001253/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"919273141658023292765259354095206408049533005005952380274797833252837624003547/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":214},{"power_lower":"258433499485915726582280538792502140782157368891708893423275633856257544178167/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"1033733997943662906329122155170008563128629475566835573693102535425030176715203/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":9,"signed_count":-10822},{"power_lower":"1833861214374070989965026275335869899351435639230788926917087574695705316294193/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"916930607187035494982513137667934949675717819615394463458543787347852658149283/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":16,"signed_count":416},{"power_lower":"1948042763955289200987725849226688309599373238244277966036367032590507036715525/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1948042763955289200987725849226688309599373238244277966036367032590507036720139/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":17,"signed_count":-416},{"power_lower":"2746689241698102786663418752689463214885192722522963470255568171615444220111419/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"2746689241698102786663418752689463214885192722522963470255568171615444220117967/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":24,"signed_count":416},{"power_lower":"178794045278929684485062063395769440651035805844202249365721609916831195883737/7237005577332262213973186563042994240829374041602535252466099000494570602496","power_upper":"178794045278929684485062063395769440651035805844202249365721609916831195884159/7237005577332262213973186563042994240829374041602535252466099000494570602496","rank":25,"signed_count":-416},{"power_lower":"1829188084142145964901217841670804906247819401029228338510662901052286787039045/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1829188084142145964901217841670804906247819401029228338510662901052286787043381/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":32,"signed_count":416},{"power_lower":"3772273108165710579744449806738104881336099363674989725206894856582690182231135/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"3772273108165710579744449806738104881336099363674989725206894856582690182240057/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":33,"signed_count":-416},{"power_lower":"4569215518925673719751165616872264541341970849646360904347613874609008874661065/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"17848498120803412967777990690907283364617073631431097282607866697691440916687/452312848583266388373324160190187140051835877600158453279131187530910662656","rank":40,"signed_count":416},{"power_lower":"585377528428649641145599861324947140680820793814999204314122912924632347199791/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"4683020227429197129164798890599577125446566350519993634512983303397058777609411/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":41,"signed_count":-416},{"power_lower":"171230625045910568854013447767184355086917683917461956470653968552808428340761/3618502788666131106986593281521497120414687020801267626233049500247285301248","power_upper":"5479380001469138203328430328549899362781365885358782607060926993689869706917313/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":48,"signed_count":416},{"power_lower":"2796554608338034115547354908471027117909077934443870542266754804532680605851987/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1398277304169017057773677454235513558954538967221935271133377402266340302929297/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":49,"signed_count":-416},{"power_lower":"798622955821060668321025185648315177041423166032287479920064820405188187956573/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"3194491823284242673284100742593260708165692664129149919680259281620752751833845/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":56,"signed_count":416},{"power_lower":"3251324480482381450586076272483246743343432586232333354454658881038578509712617/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1625662240241190725293038136241623371671716293116166677227329440519289254860125/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":57,"signed_count":-416},{"power_lower":"7298107448789986561834083607562201807664050396107533988364330227805861745134411/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1824526862197496640458520901890550451916012599026883497091082556951465436287919/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":64,"signed_count":208},{"power_lower":"3705858684089761688204968051314512848968925816708957301577093369119060598571393/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3705858684089761688204968051314512848968925816708957301577093369119060598580039/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":65,"signed_count":-416},{"power_lower":"8320372967266569233135187964832002520377206385690192686349560229550052580078575/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"4160186483633284616567593982416001260188603192845096343174780114775026290048965/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":73,"signed_count":-208},{"power_lower":"1947350506956383718546053832070701174529986606915430599375697973972418983547243/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"7789402027825534874184215328282804698119946427661722397502791895889675934207281/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":137,"signed_count":-208}]},"candidate_at_source_upper":{"bits":256,"classification":"new_cost_lower","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"4981596379499/5000000000000","new_minus_old":{"lower":"-13799941959455414265671283076390769749746960978183823777520436291615973159449/115792089237316195423570985008687907853269984665640564039457584007913129639936","upper":"-3449985489863853566417820769097692437436740244545955944380109072903962184075/28948022309329048855892746252171976963317496166410141009864396001978282409984"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67772},{"power_lower":"57748523657345263614981846254684338371444021764042535014375987243472005353249/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"230994094629381054459927385018737353485776087056170140057503948973888021413653/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":2,"signed_count":15215},{"power_lower":"172987211218543373097507996356531881390613824983143607733196244165088656946749/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"86493605609271686548753998178265940695306912491571803866598122082544328473605/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":3,"signed_count":10064},{"power_lower":"460811028673034210253216208314955028484627965982764688847460370970992207797777/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"460811028673034210253216208314955028484627965982764688847460370970992207798955/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":4,"signed_count":799},{"power_lower":"17985652586184936243624271312439392190661159589818865055515580630928909953449/3618502788666131106986593281521497120414687020801267626233049500247285301248","power_upper":"575540882757917959795976681998060550101157106874203681776498580189725118511801/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":5,"signed_count":4658},{"power_lower":"402379977122443943001506697069422682811820868625273933597523802916968746100801/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"804759954244887886003013394138845365623641737250547867195047605833937492203573/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":7,"signed_count":-102},{"power_lower":"919273735059765139950502582260711007182703312149343550034918009841772822172853/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"919273735059765139950502582260711007182703312149343550034918009841772822175095/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":214},{"power_lower":"516867351513771230729744217953972853482640065576544847801674348152521538436613/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"516867351513771230729744217953972853482640065576544847801674348152521538437851/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":9,"signed_count":-10822},{"power_lower":"916931396373264395296597374432740105381834236662178321229162523016491796575257/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1833862792746528790593194748865480210763668473324356642458325046032983593154793/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":16,"signed_count":416},{"power_lower":"243505559657863085673380129462896929247726088785840741126113229545894430678533/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"1948044477262904685387041035703175433981808710286725929008905836367155445432773/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":17,"signed_count":-416},{"power_lower":"686672987860706230010629643719314256907132186145193100783540899944048043979669/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"85834123482588278751328705464914282113391523268149137597942612493006005497659/3618502788666131106986593281521497120414687020801267626233049500247285301248","rank":24,"signed_count":416},{"power_lower":"2860707582940931542402452389229682304950804037525268091867123580061870995897653/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1430353791470465771201226194614841152475402018762634045933561790030935497952121/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":25,"signed_count":-416},{"power_lower":"1829190052080327526213532244809348018457808791888758588438302369030332712638681/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"914595026040163763106766122404674009228904395944379294219151184515166356321461/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":32,"signed_count":416},{"power_lower":"235767325163277068948334142358221924350181054927801749696215923065809140773167/7237005577332262213973186563042994240829374041602535252466099000494570602496","power_upper":"3772277202612433103173346277731550789602896878844827995139454769052946252379401/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":33,"signed_count":-416},{"power_lower":"2284610375619510329397437657908717202859084900855336964411681674020909634630499/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"4569220751239020658794875315817434405718169801710673928823363348041819269271563/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":40,"signed_count":416},{"power_lower":"4683025625959328105039242083868956148444448730136397458814851194216766419833735/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"4683025625959328105039242083868956148444448730136397458814851194216766419844569/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":41,"signed_count":-416},{"power_lower":"2739693293075470958992865350642212212426237270234162655415582852089200572643825/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"2739693293075470958992865350642212212426237270234162655415582852089200572650157/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":48,"signed_count":416},{"power_lower":"5593115973828721928818653322727297191241192121825768834188930713814227900883575/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"5593115973828721928818653322727297191241192121825768834188930713814227900896499/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":49,"signed_count":-416},{"power_lower":"6388991630067340754804326430130563441037526495793819842625077112323393615380003/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"6388991630067340754804326430130563441037526495793819842625077112323393615394775/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":56,"signed_count":416},{"power_lower":"6502657122224879493680912048518443108380978135255818966957689238329933560502665/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"6502657122224879493680912048518443108380978135255818966957689238329933560517597/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":57,"signed_count":-416},{"power_lower":"7298116870823273102132288830804168105301010594102981512192415343369712020995909/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"456132304426454568883268051925260506581313162131436344512025958960607001313299/7237005577332262213973186563042994240829374041602535252466099000494570602496","rank":64,"signed_count":208},{"power_lower":"7411726972557827068680523577523081550575962712213536748293827231976359173983263/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"7411726972557827068680523577523081550575962712213536748293827231976359174000167/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":65,"signed_count":-416},{"power_lower":"8320384048912595555387868863179624293404385409888526533463739184485305990314785/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"8320384048912595555387868863179624293404385409888526533463739184485305990333713/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":73,"signed_count":-208},{"power_lower":"3894706962245636097052829140624918084614202494235071494143222147211294111408613/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"15578827848982544388211316562499672338456809976940285976572888588845176445670265/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":137,"signed_count":-208}]},"candidate_at_upper":{"bits":256,"classification":"new_cost_higher","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"4981594827371/5000000000000","new_minus_old":{"lower":"2016886350082244115711348589842424215733516256212208805458998498301913/115792089237316195423570985008687907853269984665640564039457584007913129639936","upper":"504221587520561028927837147460606053933379064053052201364749653359967/28948022309329048855892746252171976963317496166410141009864396001978282409984"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67772},{"power_lower":"115497022463120834776314605446553479411593454566115891744560991133192095677071/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"230994044926241669552629210893106958823186909132231783489121982266384191354751/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":2,"signed_count":15215},{"power_lower":"345974304446896679241519895359232713780162454055049459836896684013933391687365/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"345974304446896679241519895359232713780162454055049459836896684013933391688215/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":3,"signed_count":10064},{"power_lower":"460810830367078719235982889066674752136430978808843016205943444786747462721257/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"460810830367078719235982889066674752136430978808843016205943444786747462722339/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":4,"signed_count":799},{"power_lower":"35971287200724338986278747275206885776760117255604884092303072852057105001893/7237005577332262213973186563042994240829374041602535252466099000494570602496","power_upper":"287770297605794711890229978201655086214080938044839072738424582816456840015807/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":5,"signed_count":4658},{"power_lower":"804759468121474745834320903812026899206058570068721753918462340360309814798843/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"25148733378796085807322528244125840600189330314647554809951948136259681712521/3618502788666131106986593281521497120414687020801267626233049500247285301248","rank":7,"signed_count":-102},{"power_lower":"459636570828916067644683975677098232281523044606661574174976122473186753587815/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"919273141657832135289367951354196464563046089213323148349952244946373507177703/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":214},{"power_lower":"1033733997943435771754451195622697278567473748873899950272518600219147188249777/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"516866998971717885877225597811348639283736874436949975136259300109573594126039/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":9,"signed_count":-10822},{"power_lower":"916930607186781267836456847959915848523398071196847068081414924795729750224153/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"916930607186781267836456847959915848523398071196847068081414924795729750226125/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":16,"signed_count":416},{"power_lower":"1948042763954737278912362899521141193616838139871984730972487127111754017719835/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"974021381977368639456181449760570596808419069935992365486243563555877008861999/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":17,"signed_count":-416},{"power_lower":"2746689241697229874036883476422122072327624633102284182441507520079529503742081/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"2746689241697229874036883476422122072327624633102284182441507520079529503748007/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":24,"signed_count":416},{"power_lower":"715176181115488531608256795744538061083040259975064432125212047747647739231753/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"715176181115488531608256795744538061083040259975064432125212047747647739233277/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":25,"signed_count":-416},{"power_lower":"228648510517689002077449932910554054921016766523427580239148738085205795195657/7237005577332262213973186563042994240829374041602535252466099000494570602496","power_upper":"914594042070756008309799731642216219684067066093710320956594952340823180784587/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":32,"signed_count":416},{"power_lower":"3772273108164391601599788230455885679825163616630103430841315874020607994664385/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"943068277041097900399947057613971419956290904157525857710328968505151998668113/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":33,"signed_count":-416},{"power_lower":"4569215518923988191226247581211735757525088821547067339401788744564947370671159/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"4569215518923988191226247581211735757525088821547067339401788744564947370680927/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":40,"signed_count":416},{"power_lower":"4683020227427458055854359981393928697347962249956743839782293520593454135900305/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"4683020227427458055854359981393928697347962249956743839782293520593454135910317/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":41,"signed_count":-416},{"power_lower":"5479380001467017025188347158255568965661199091476846070780540974018957674928367/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"342461250091688564074271697390973060353824943217302879423783810876184854683755/7237005577332262213973186563042994240829374041602535252466099000494570602496","rank":48,"signed_count":416},{"power_lower":"1398277304168472873374202321400263486731516148126525383366450168349463785585019/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"5593109216673891493496809285601053946926064592506101533465800673397855142352025/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":49,"signed_count":-416},{"power_lower":"3194491823282956777977911317821290247505525347481129610405009477763472795419443/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3194491823282956777977911317821290247505525347481129610405009477763472795426271/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":56,"signed_count":416},{"power_lower":"3251324480481066923429780957975039004178864082978942991959855351225905536753235/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1625662240240533461714890478987519502089432041489471495979927675612952768380067/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":57,"signed_count":-416},{"power_lower":"3649053724393475682136576424967551842219890617783806484358547250721425672990551/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"7298107448786951364273152849935103684439781235567612968717094501442851345996705/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":64,"signed_count":208},{"power_lower":"7411717368176429438546957448672007577427658659398721965518350095753467132832523/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"3705858684088214719273478724336003788713829329699360982759175047876733566424069/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":65,"signed_count":-416},{"power_lower":"4160186483631499705430030130046990091626591487016803738347710507669914143870309/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"4160186483631499705430030130046990091626591487016803738347710507669914143879047/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":73,"signed_count":-208},{"power_lower":"1947350506955425625811041354043011306202018159205275975255599174310006239117507/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"15578804055643405006488330832344090449616145273642207802044793394480049912973165/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":137,"signed_count":-208}]},"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":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"delta_paid":{"1":-17,"2":-17,"3":17},"delta_targets":{},"hinges":[{"rank":0,"value":0},{"rank":1,"value":-17},{"rank":2,"value":-17},{"rank":3,"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":296054,"paid_minus_targets":-1424,"targets":297478},"old":{"paid":296054,"paid_minus_targets":-1424,"targets":297478}},"schema":"integer-mult-recursive-invoice-comparison/v1","signed_net_delta":{"1":-17,"2":-17,"3":17},"tariff_class":"increasing concave f on nonnegative ranks, with f(0)=0","uniform_order":"weak; some concave tariffs can give equality"},"declared_fixed_caller_residual":{"paid":{"1":384,"16":416,"24":416,"32":416,"40":416,"48":416,"56":416,"64":208,"8":656,"9":32},"targets":{"137":208,"17":416,"25":416,"33":416,"41":416,"49":416,"57":416,"65":416,"73":208,"9":416}},"native_calls":17,"scope":"Literal native counts plus unchanged residual inferred from the pinned declared invoice.","source_at_source_upper":{"bits":256,"classification":"new_cost_higher","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"4981596379499/5000000000000","new_minus_old":{"lower":"2343923148438529131267754705733166208865715482942153322785989258550929/115792089237316195423570985008687907853269984665640564039457584007913129639936","upper":"2343923148438529131267754705733166208865715482942153322785989382969573/115792089237316195423570985008687907853269984665640564039457584007913129639936"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67789},{"power_lower":"57748523657345263614981846254684338371444021764042535014375987243472005353249/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"230994094629381054459927385018737353485776087056170140057503948973888021413653/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":2,"signed_count":15232},{"power_lower":"172987211218543373097507996356531881390613824983143607733196244165088656946749/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"86493605609271686548753998178265940695306912491571803866598122082544328473605/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":3,"signed_count":10047},{"power_lower":"460811028673034210253216208314955028484627965982764688847460370970992207797777/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"460811028673034210253216208314955028484627965982764688847460370970992207798955/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":4,"signed_count":799},{"power_lower":"17985652586184936243624271312439392190661159589818865055515580630928909953449/3618502788666131106986593281521497120414687020801267626233049500247285301248","power_upper":"575540882757917959795976681998060550101157106874203681776498580189725118511801/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":5,"signed_count":4658},{"power_lower":"402379977122443943001506697069422682811820868625273933597523802916968746100801/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"804759954244887886003013394138845365623641737250547867195047605833937492203573/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":7,"signed_count":-102},{"power_lower":"919273735059765139950502582260711007182703312149343550034918009841772822172853/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"919273735059765139950502582260711007182703312149343550034918009841772822175095/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":214},{"power_lower":"516867351513771230729744217953972853482640065576544847801674348152521538436613/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"516867351513771230729744217953972853482640065576544847801674348152521538437851/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":9,"signed_count":-10822},{"power_lower":"916931396373264395296597374432740105381834236662178321229162523016491796575257/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1833862792746528790593194748865480210763668473324356642458325046032983593154793/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":16,"signed_count":416},{"power_lower":"243505559657863085673380129462896929247726088785840741126113229545894430678533/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"1948044477262904685387041035703175433981808710286725929008905836367155445432773/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":17,"signed_count":-416},{"power_lower":"686672987860706230010629643719314256907132186145193100783540899944048043979669/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"85834123482588278751328705464914282113391523268149137597942612493006005497659/3618502788666131106986593281521497120414687020801267626233049500247285301248","rank":24,"signed_count":416},{"power_lower":"2860707582940931542402452389229682304950804037525268091867123580061870995897653/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1430353791470465771201226194614841152475402018762634045933561790030935497952121/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":25,"signed_count":-416},{"power_lower":"1829190052080327526213532244809348018457808791888758588438302369030332712638681/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"914595026040163763106766122404674009228904395944379294219151184515166356321461/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":32,"signed_count":416},{"power_lower":"235767325163277068948334142358221924350181054927801749696215923065809140773167/7237005577332262213973186563042994240829374041602535252466099000494570602496","power_upper":"3772277202612433103173346277731550789602896878844827995139454769052946252379401/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":33,"signed_count":-416},{"power_lower":"2284610375619510329397437657908717202859084900855336964411681674020909634630499/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"4569220751239020658794875315817434405718169801710673928823363348041819269271563/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":40,"signed_count":416},{"power_lower":"4683025625959328105039242083868956148444448730136397458814851194216766419833735/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"4683025625959328105039242083868956148444448730136397458814851194216766419844569/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":41,"signed_count":-416},{"power_lower":"2739693293075470958992865350642212212426237270234162655415582852089200572643825/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"2739693293075470958992865350642212212426237270234162655415582852089200572650157/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":48,"signed_count":416},{"power_lower":"5593115973828721928818653322727297191241192121825768834188930713814227900883575/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"5593115973828721928818653322727297191241192121825768834188930713814227900896499/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":49,"signed_count":-416},{"power_lower":"6388991630067340754804326430130563441037526495793819842625077112323393615380003/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"6388991630067340754804326430130563441037526495793819842625077112323393615394775/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":56,"signed_count":416},{"power_lower":"6502657122224879493680912048518443108380978135255818966957689238329933560502665/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"6502657122224879493680912048518443108380978135255818966957689238329933560517597/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":57,"signed_count":-416},{"power_lower":"7298116870823273102132288830804168105301010594102981512192415343369712020995909/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"456132304426454568883268051925260506581313162131436344512025958960607001313299/7237005577332262213973186563042994240829374041602535252466099000494570602496","rank":64,"signed_count":208},{"power_lower":"7411726972557827068680523577523081550575962712213536748293827231976359173983263/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"7411726972557827068680523577523081550575962712213536748293827231976359174000167/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":65,"signed_count":-416},{"power_lower":"8320384048912595555387868863179624293404385409888526533463739184485305990314785/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"8320384048912595555387868863179624293404385409888526533463739184485305990333713/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":73,"signed_count":-208},{"power_lower":"3894706962245636097052829140624918084614202494235071494143222147211294111408613/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"15578827848982544388211316562499672338456809976940285976572888588845176445670265/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":137,"signed_count":-208}]},"source_upper":"0.0036807241002"} diff --git a/research/p104-role379-idle-stop/evidence/pr7636/mutation/RESULT.json b/research/p104-role379-idle-stop/evidence/pr7636/mutation/RESULT.json new file mode 100644 index 0000000000..2d0ac87e93 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7636/mutation/RESULT.json @@ -0,0 +1 @@ +{"CLEAR_certificates":"same coefficients keyed by retained CLEAR clocks","candidate":{"events":202667,"gzip_sha256":"869504fb9f9d994c1ee9b9e5a3a83fb2fcb8cd5455b7639c1ee2bcd195086d5c","word_sha256":"9b5b66e93f91c9538525d8d7b1278e0f203058d5cd4e1351fa06f8315fdaa555"},"controls":{"legal_changed_scalar":"normalized non-MOVE sequence differs","legal_intervening_scale":"role observed in open MOVE interval at [131294]","missing_direct_move":"clock 131294: scalar operands must share the declared chart","wrong_direct_source":"clock 131293: MOVE source chart or ownership"},"cut":{"CLEARs_in_open_interval":0,"anchors":[131142,131294],"dimensions":[3,5,6],"frames":[748,1065,1072],"intervening_role_mentions":0,"neighbors":{"after":[131296,["ADD",379,395,"1",1072]],"before":[130393,["ADD",544,379,"1",748]]}},"declared_signed_paid_delta":{"1":-17,"2":-17,"3":17},"finished_at":"2026-11-18T01:19:36.547785+00:00","ordered_clears":180,"owned_labels":68,"owned_peak":50,"paid_native_after":{"1":3982,"2":916,"3":639,"4":272,"5":354,"6":45,"7":13,"8":6},"paid_native_before":{"1":3983,"2":917,"3":638,"4":272,"5":354,"6":45,"7":13,"8":6},"paid_native_delta":{"1":-1,"2":-1,"3":1},"physical":{"absolute_phase_equal":true,"adjoint_columns":512,"checked_pairs":[{"adjoint_columns":512,"forward_columns":512,"pair":[748,1065],"rank":2,"recipe_sha256":"b2526c5f3cc9751c82151c2fbf05ae715c3a99cf3b15e6c7193eed6b1f4444ca","wrong_phase_rejected":true},{"adjoint_columns":512,"forward_columns":512,"pair":[1065,1072],"rank":1,"recipe_sha256":"ac5e3f6a7d8c2c35ae675868a5cd235ca3acccfea30e9d527ea153b9940417b4","wrong_phase_rejected":true},{"adjoint_columns":512,"forward_columns":512,"pair":[748,1072],"rank":3,"recipe_sha256":"48bec10572ffbbbb7d17e06b02f8f116dc2c5507c10e5c9389f530b86768e739","wrong_phase_rejected":true}],"composed_path":[748,1065,1072],"forward_columns":512,"signed_pauli_equal":true,"wrong_phase_rejected_forward_and_adjoint":true,"wrong_phase_same_pauli":true},"protected_events":1049,"role":379,"scalar_order":{"events":196440,"invariant":"Identical INIT, ADD, COPY, SCALE and CLEAR instructions in order imply identical normalized symbolic rows after each scalar operation on arbitrary inputs.","sha256":"dc57eec04f10fd348bd8b8fdeb270280bd8f82eb6ea5b6e5d6146673dfa0f3b8"},"signed_price_bracket_on_declared_residual":["0.0036810345257","0.0036810345258"],"source":{"certificates_sha256":"94809b766d041f6bb400df151de5702c5e8ec0a8a47c80ddfe5b2b3a5e0f09d2","events":202668,"gzip_sha256":"1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659","head":"7e68d8dd62d9a38c0f3c942262a7a85ca7125b75","invoice_sha256":"18adee673515c4ece7208b53c7cc17a2e121843d55f62067d2e43e341872f0d5","physical_checker_sha256":"72dfc0f5435cea2630a0d4e8f466fbb7b866404a22804769c3e690845ca72d2b","pr":7636,"price_checker_sha256":{"compare_recursive_invoices.py":"3930c22c11da7bc6042cfeb6e459ecb06e4478430037bee3469d034353855fc6","evaluate_recursive_power.py":"52b20f41fd0bb55fa88dccd6015af2ce358917817b9506720f3e60ce681cc3ad"},"word_sha256":"98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2"},"started_at":"2026-11-18T01:19:27.536441+00:00","status":"PASS_SILENT_PUBLIC_MOVE_SUBSTITUTION"} diff --git a/research/p104-role379-idle-stop/evidence/pr7658/INDEPENDENT.json b/research/p104-role379-idle-stop/evidence/pr7658/INDEPENDENT.json new file mode 100644 index 0000000000..d462c314f9 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7658/INDEPENDENT.json @@ -0,0 +1,583 @@ +{ + "assurance": "Exact literal row and certificate replay with the pinned source's conditional #7113 invoice residual.", + "candidate": { + "affected_census_with_literal_edit": 35, + "changed_native_ordinary_units_at_17_calls": -17000, + "changed_pair_multiplicities": [ + [ + 748, + 1065, + 2, + 1 + ], + [ + 748, + 1072, + 0, + 1 + ], + [ + 1065, + 1072, + 2, + 1 + ] + ], + "full_signed_delta": { + "paid": { + "1": -17, + "2": -17, + "3": 17 + }, + "targets": {} + }, + "full_signed_invoice": { + "contract": { + "ambient_rank": 145, + "boundary": "complete signed #7113 caller application with 17 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "paid": { + "1": 67772, + "2": 15062, + "3": 10251, + "4": 4199, + "5": 6103, + "6": 1428, + "7": 187, + "8": 775, + "9": 100, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 208 + }, + "schema": "integer-mult-recursive-invoice/v1", + "targets": { + "1": 306, + "2": 357, + "3": 799, + "4": 3825, + "5": 1360, + "6": 748, + "7": 323, + "8": 544, + "9": 10871, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208, + "137": 208 + } + }, + "gzip_sha256": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "literal_changes": [ + { + "candidate": [], + "candidate_start": 98054, + "source": [ + [ + "MOVE", + 379, + 748, + 1065, + false + ] + ], + "source_start": 98054 + }, + { + "candidate": [ + [ + "MOVE", + 379, + 748, + 1072, + false + ] + ], + "candidate_start": 98203, + "source": [ + [ + "MOVE", + 379, + 1065, + 1072, + false + ] + ], + "source_start": 98204 + } + ], + "literal_sha256": "f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669", + "pairs_new_to_word": [ + [ + 748, + 1072 + ] + ], + "pairs_removed_from_word": [], + "price": { + "at_claim": [ + "0.00000000105488751395097062", + "0.00000000105488751395097063" + ], + "at_lower": [ + "0.00000000105488751395097062", + "0.00000000105488751395097063" + ], + "at_upper": [ + "-0.00000003696096432253417254", + "-0.00000003696096432253417253" + ], + "claim": "0.0037170835568", + "derivative": [ + "-380158.51836508586119795863760986", + "-380158.51836461700196050629033207" + ], + "kappa": [ + "0.0037170835568", + "0.0037170835569" + ], + "source_at_claim": [ + "-0.12035288524837354778508185", + "-0.12035288524837354778508184" + ], + "weighted_surplus": 1424 + }, + "trace": { + "changed_operation_grid": { + "numerator_bits": 20, + "odd_lcm": 225, + "two_power": 14 + }, + "events_by_opcode": { + "ADD": 139227, + "CLEAR": 234, + "INIT": 234, + "MOVE": 6165, + "SCALE": 4149 + }, + "final_rows_sha256": "93c7c11e5c9c371f2ea64c675ba8eecda28316a063aab73bed8a9516ad01e98b", + "literal_scalar_units": 3452932, + "native_helper_targets": { + "1": 18, + "2": 21, + "3": 47, + "4": 225, + "5": 80, + "6": 44, + "7": 19, + "8": 32, + "9": 615 + }, + "native_paid": { + "1": 3964, + "2": 886, + "3": 603, + "4": 247, + "5": 359, + "6": 84, + "7": 11, + "8": 7, + "9": 4 + }, + "native_paid_owned": { + "1": 20, + "2": 9, + "3": 2, + "4": 13, + "5": 2, + "6": 1 + }, + "non_dyadic_literal_events": { + "ADD": 6609, + "SCALE": 98 + }, + "nonzero_public_output_coefficients": 1709, + "ordered_clear_sha256": "a8c2dbc7c36c513c99819e373970011ae944ea11e7211b28aede6270bd3367d1", + "ordered_clear_values": 234, + "ordered_owned_or_copy_observations": 1317, + "ordered_protected_sha256": "cfe765ee31d119fd21898cb4c6c126f43abca1d1d33a709875038f2fe4762a94", + "owned_add_zero_refills": 0, + "owned_label_count": 52, + "owned_lifetimes": 234, + "owned_moves": 47, + "peak_owned": 50, + "protected_observations_by_opcode": { + "ADD": 777, + "CLEAR": 234, + "INIT": 234, + "MOVE": 47, + "SCALE": 25 + }, + "tape_move_pair_count": 2981 + }, + "variant": "B" + }, + "controls": { + "certificate": { + "rejection": { + "clock": 87504, + "code": "clear_self", + "detail": "owned field 1568 used as its own witness" + } + }, + "chart": { + "literal_after": [ + "MOVE", + 379, + 748, + 520, + false + ], + "literal_before": [ + "MOVE", + 379, + 748, + 1072, + false + ], + "rejection": { + "clock": 98203, + "code": "public_ascent", + "detail": "748 to 520" + } + }, + "coefficient": { + "clock": 150008, + "invoice_identical": true, + "literal_after": [ + "ADD", + 816, + 239, + "1/2", + 127 + ], + "literal_before": [ + "ADD", + 816, + 239, + "-1/2", + 127 + ], + "rejection": { + "clock": null, + "code": "final_row", + "detail": "public row 816 full formal-input coefficient map" + } + } + }, + "elapsed_seconds": 56.44705835499917, + "finished": "2026-11-18T01:27:56.080227+00:00", + "input_bytes_rechecked": { + "candidate_gzip": "4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e", + "clear_certificates": "02e0651a9a44c710225dd741d484f990e238bd5ac9e6510a7b90b17679879f47", + "source_affected_census": "741b7fd3306362d051c4d63b0d642ef47aaece842384d44423e997072f969f36", + "source_gzip": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "source_invoice": "26383ec33e4c4d552442b62f2bd7d9fd0a2fd0d357c1bcbf52ba913e11bb630e" + }, + "limits": { + "address_space_bytes": 2147483648, + "cpu": 7, + "cpu_seconds": 240, + "wall_seconds": 240 + }, + "price_convention": "sum (targets_r - paid_r) * r^(1-C)", + "resource_usage": { + "max_rss_kib": 244204, + "system_cpu_seconds": 0.143927, + "user_cpu_seconds": 56.32566 + }, + "result": "PASS_PAIRED_EXACT_REPLAY_AND_CONDITIONAL_PRICE", + "schema": "p104-independent-exact-replay/2", + "source": { + "affected_predecessor_census": 32, + "allocated_owned": 68, + "caller_residual": { + "paid": { + "1": 384, + "8": 656, + "9": 32, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 208 + }, + "targets": { + "9": 416, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208, + "137": 208 + } + }, + "clear_certificate_term_counts": [ + [ + 0, + 42 + ], + [ + 1, + 40 + ], + [ + 2, + 71 + ], + [ + 3, + 3 + ], + [ + 4, + 5 + ], + [ + 5, + 11 + ], + [ + 6, + 12 + ], + [ + 7, + 17 + ], + [ + 8, + 4 + ], + [ + 9, + 3 + ], + [ + 11, + 2 + ], + [ + 12, + 1 + ], + [ + 13, + 1 + ], + [ + 14, + 3 + ], + [ + 15, + 2 + ], + [ + 16, + 3 + ], + [ + 18, + 3 + ], + [ + 19, + 1 + ], + [ + 21, + 1 + ], + [ + 22, + 1 + ], + [ + 23, + 1 + ], + [ + 25, + 1 + ], + [ + 27, + 1 + ], + [ + 28, + 2 + ], + [ + 39, + 1 + ], + [ + 81, + 1 + ], + [ + 83, + 1 + ] + ], + "frames": 1096, + "full_signed_invoice": { + "contract": { + "ambient_rank": 145, + "boundary": "complete signed #7113 caller application with 17 native calls", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "paid": { + "1": 67789, + "2": 15079, + "3": 10234, + "4": 4199, + "5": 6103, + "6": 1428, + "7": 187, + "8": 775, + "9": 100, + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 208 + }, + "schema": "integer-mult-recursive-invoice/v1", + "targets": { + "1": 306, + "2": 357, + "3": 799, + "4": 3825, + "5": 1360, + "6": 748, + "7": 323, + "8": 544, + "9": 10871, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208, + "137": 208 + } + }, + "gzip_sha256": "dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + "head": "0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + "literal_sha256": "fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + "pr": 7658, + "price": { + "at_lower": [ + "0.00000000187006493235293401", + "0.00000000187006493235293402" + ], + "at_upper": [ + "-0.00000000193184817432109411", + "-0.00000000193184817432109410" + ], + "derivative": [ + "-380191.31066742625455473488655617", + "-380191.31066737936902491602028335" + ], + "kappa": [ + "0.00371676699784", + "0.00371676699785" + ], + "weighted_surplus": 1424 + }, + "public": 1501, + "trace": { + "changed_operation_grid": { + "numerator_bits": 20, + "odd_lcm": 225, + "two_power": 14 + }, + "events_by_opcode": { + "ADD": 139227, + "CLEAR": 234, + "INIT": 234, + "MOVE": 6166, + "SCALE": 4149 + }, + "final_rows_sha256": "93c7c11e5c9c371f2ea64c675ba8eecda28316a063aab73bed8a9516ad01e98b", + "literal_scalar_units": 3452932, + "native_helper_targets": { + "1": 18, + "2": 21, + "3": 47, + "4": 225, + "5": 80, + "6": 44, + "7": 19, + "8": 32, + "9": 615 + }, + "native_paid": { + "1": 3965, + "2": 887, + "3": 602, + "4": 247, + "5": 359, + "6": 84, + "7": 11, + "8": 7, + "9": 4 + }, + "native_paid_owned": { + "1": 20, + "2": 9, + "3": 2, + "4": 13, + "5": 2, + "6": 1 + }, + "non_dyadic_literal_events": { + "ADD": 6609, + "SCALE": 98 + }, + "nonzero_public_output_coefficients": 1709, + "ordered_clear_sha256": "a8c2dbc7c36c513c99819e373970011ae944ea11e7211b28aede6270bd3367d1", + "ordered_clear_values": 234, + "ordered_owned_or_copy_observations": 1317, + "ordered_protected_sha256": "cfe765ee31d119fd21898cb4c6c126f43abca1d1d33a709875038f2fe4762a94", + "owned_add_zero_refills": 0, + "owned_label_count": 52, + "owned_lifetimes": 234, + "owned_moves": 47, + "peak_owned": 50, + "protected_observations_by_opcode": { + "ADD": 777, + "CLEAR": 234, + "INIT": 234, + "MOVE": 47, + "SCALE": 25 + }, + "tape_move_pair_count": 2980 + } + }, + "started": "2026-11-18T01:26:59.633172+00:00" +} diff --git a/research/p104-role379-idle-stop/evidence/pr7658/mutation/CLEAR-CERTIFICATES.json b/research/p104-role379-idle-stop/evidence/pr7658/mutation/CLEAR-CERTIFICATES.json new file mode 100644 index 0000000000..bbd3af0966 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7658/mutation/CLEAR-CERTIFICATES.json @@ -0,0 +1 @@ +{"clear_event_index":{"100156":{"498":"-3/2","540":"2"},"100194":{"344":"2","512":"-3/2"},"100211":{"28":"2","513":"-3/2"},"100221":{"1435":"1","366":"1"},"100296":{"274":"1","457":"1"},"100331":{"510":"-3/2","528":"2"},"100347":{"151":"-2","501":"-1","528":"-4","60":"-2","623":"-1","625":"-1/2","626":"1","628":"2","629":"2","630":"2","768":"1/2"},"100369":{"917":"-1"},"100377":{"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"},"100486":{"580":"1"},"100490":{"428":"-3","474":"-1/2"},"100513":{"294":"-3/2","408":"2"},"100555":{"553":"1"},"100626":{"295":"-1/2","424":"-3"},"100714":{"546":"1","577":"-1"},"100722":{"547":"1","578":"-1"},"100812":{"558":"1","575":"-1"},"100819":{"558":"-1","575":"1"},"100834":{"559":"1","576":"-1"},"100841":{"559":"-1","576":"1"},"100891":{"546":"-1","577":"1"},"100964":{"516":"2"},"100980":{"523":"1","580":"2"},"100987":{"523":"1/2","580":"-2"},"101006":{"268":"-1","568":"1"},"101158":{"1410":"-1","526":"-3/2"},"101173":{"1399":"-1","527":"-3/2"},"101188":{"490":"1/2","550":"-2"},"101258":{"1434":"1/2","553":"-2"},"101280":{"430":"-2","457":"-1/4"},"101408":{"547":"-1","578":"1"},"101442":{},"101454":{"356":"2","500":"-3/2"},"101487":{"295":"-3/2","424":"2"},"101512":{"428":"2","474":"-3/2"},"101532":{"278":"-3/2","562":"2"},"101569":{"438":"-1","585":"-2"},"101590":{"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"},"101599":{"1342":"-2","1437":"2","256":"1","336":"1"},"101613":{"1342":"-2","1437":"2","256":"1","336":"1"},"101815":{"862":"-1"},"101821":{"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"},"101848":{"742":"1/4","998":"1/2"},"101937":{"126":"1/4","15":"1/4","164":"1/4","679":"-1/4","682":"-1/4"},"101947":{"126":"-1/4","164":"1/4","413":"1/2","679":"-1/4","682":"-1/4"},"102087":{"126":"1/4","15":"1/4","164":"1/4","679":"-1/4","682":"-1/4"},"102091":{"126":"-1/4","164":"1/4","413":"1/2","679":"-1/4","682":"-1/4"},"102140":{},"102227":{"108":"-1","1492":"-2","22":"-1/2","23":"-1/2","320":"-1/2","333":"-1","49":"1"},"102321":{},"102323":{},"102324":{},"102326":{},"102327":{},"102345":{},"102362":{},"102402":{},"102406":{},"102449":{"1082":"-1","794":"-4"},"102497":{},"102661":{"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"},"102680":{},"102743":{},"102826":{},"102827":{},"102835":{},"102842":{},"102843":{},"102853":{},"102856":{},"102867":{},"102873":{},"102876":{},"102877":{},"102881":{},"102894":{},"102895":{},"102902":{},"102916":{},"102917":{},"102933":{"1025":"-2","1029":"-5/2","831":"-1","864":"2"},"102964":{"1499":"1","998":"-1"},"102969":{},"102970":{},"102988":{"863":"1"},"102991":{},"87504":{},"88242":{"233":"1"},"88439":{"1072":"1","500":"-1"},"88788":{"1089":"1","510":"-1"},"88790":{"22":"1/4","23":"-3/4","320":"1/4","321":"-1/2","323":"-1","325":"1/2","330":"-1"},"89173":{},"89534":{"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"},"89629":{"29":"-1/4","30":"-3/4","352":"-1/8","353":"1/4","355":"-1/2","357":"1/4","362":"-1/2","59":"1/4"},"89702":{},"89771":{},"89855":{"500":"1"},"90046":{"628":"-2","630":"-2"},"90048":{"30":"1/4","352":"-1/8","353":"-1/4","355":"1/2","357":"-1/4","362":"-1/2","59":"-1/2"},"90053":{"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"},"90056":{"30":"-3/4","352":"-1/8","353":"1/4","355":"1/2","357":"1/4","362":"-1/2"},"90059":{"30":"-1/4","352":"-1/8","353":"-1/4","355":"-1/2","357":"-1/4","362":"-1/2"},"90080":{"30":"-3/2","352":"-1/4","353":"1/2","355":"-1","357":"-1/2","362":"1","59":"1"},"90350":{"17":"-5/8","273":"-1/2","275":"-1","277":"1/2","282":"-1","77":"-1/2"},"90377":{},"90413":{"22":"1/8","23":"1/8","320":"1/8","321":"1/4","323":"1/2","325":"1/4","330":"-1/2"},"90470":{"1385":"-1/4","240":"-1/4"},"90481":{"385":"-1/4","387":"-1/2","389":"-1/4","394":"-1/2","64":"1/8"},"90488":{"1173":"1","573":"-1"},"90490":{"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"},"90520":{"18":"1/4","288":"-1/4","289":"-1/2","291":"-1/2","298":"1","39":"1/4","40":"1/4"},"90601":{"103":"1/2","17":"-5/8","272":"-1/2","273":"-1/2","275":"-1","277":"1/2","282":"1"},"90607":{"23":"-1/4","320":"-1/4","321":"-1/2","323":"-1","325":"1/2","330":"1"},"90715":{"30":"1/4","353":"1/2","355":"-1","357":"-1/2","362":"-1"},"90725":{"385":"1/2","387":"-1","389":"-1/2","394":"-1","64":"1/4","96":"1"},"90742":{},"90762":{"385":"-1/2","387":"-1","389":"1/2","394":"-1","64":"-1/4","65":"-1/2","96":"1/2"},"90766":{"29":"-1/2","30":"-1/4","353":"-1/2","355":"-1","357":"1/2","362":"-1","59":"1/2"},"91018":{"18":"1/4","288":"1/4","289":"1/2","291":"5/2","293":"-1","298":"-1","39":"1/4","40":"1/4"},"91199":{"104":"1/2","1179":"-1","416":"-1/2","417":"1","421":"1/2","426":"2"},"91224":{"17":"-1/4","273":"1/2","275":"-1","277":"-1/2","282":"-1"},"91338":{"224":"1/8","225":"1/2","227":"-1","229":"-1/4","234":"-1/2","57":"-1/8","81":"1/8"},"91381":{"23":"1/4","320":"1/4","321":"1/2","323":"1","325":"1/2","330":"-1"},"91386":{"108":"1/2","23":"1/4","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"-1"},"91418":{"18":"1/4","288":"1/4","289":"-1/2","298":"-1","39":"-1/4","40":"1/4"},"91450":{"384":"-1/2","385":"-1/2","387":"-1","389":"1/2","394":"1","64":"-3/4"},"91485":{"1120":"1","358":"-1"},"91487":{"30":"-1/4","352":"-1/2","353":"-1/2","355":"-1","357":"1/2","362":"1","59":"1/2"},"91491":{"26":"1/4","368":"-3/4","369":"-1/2","371":"-1","373":"1/2","378":"1","8":"1/4"},"91545":{"18":"1/4","288":"1/4","289":"1/2","293":"-1","298":"1","39":"1/4","40":"1/4"},"91555":{"107":"-1/4","304":"-1/4","305":"1/2","307":"-1","309":"-1/2","314":"1","35":"1/4","45":"1/4"},"91593":{"17":"-1/4","273":"1/2","275":"-1","277":"-1/2","282":"1"},"91600":{"1086":"1","513":"-1"},"91602":{"108":"1/2","23":"1/4","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"1"},"91757":{"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"},"91760":{"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"},"91811":{"1343":"-1","1344":"-1","1346":"-1","1347":"-1"},"91901":{"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"},"92807":{"26":"-3/8","368":"1/8","369":"1/4","371":"-1/2","373":"1/4","378":"-1/2","8":"-3/8"},"93162":{},"93375":{"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"},"93412":{"86":"1"},"93546":{"385":"1/4","387":"-1/2","389":"1/4","394":"-1/2","64":"-1/8","65":"-1/4","96":"3/8"},"94353":{"1402":"1","290":"1"},"94428":{"1112":"1/2","350":"1/2"},"94489":{"1470":"-1","169":"1"},"94629":{"1471":"-1","203":"1"},"94842":{"103":"1","108":"1","18":"1","45":"1","61":"1","63":"1"},"94876":{"1206":"1/3","1455":"-2/3","1460":"2/3","449":"4/3"},"94909":{"368":"1/4","721":"-1","723":"-1","724":"-1","725":"-1","9":"1/4"},"94927":{"368":"1/4","9":"1/4"},"94966":{"368":"1","9":"1"},"95004":{"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"},"95007":{"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"},"95206":{},"95439":{"256":"1/4","336":"1/4"},"95474":{"1020":"2/3","1023":"-4/3","1025":"-2/3","1029":"-1/3","831":"1/3"},"95677":{"1098":"1","337":"-1/4","341":"1/4","346":"-1/2","58":"-1/8","712":"-7/4","714":"1/4","93":"-1/4"},"95702":{"1207":"-2","1479":"3","451":"2","581":"-1","582":"-1"},"95717":{"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"},"95726":{"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"},"95752":{"640":"-1/2","641":"-1/2"},"95774":{"913":"-1","927":"1"},"95808":{"228":"1"},"95834":{"92":"1/4"},"95851":{"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"},"95860":{"146":"-1/2"},"95906":{"1469":"-1","223":"1"},"95957":{"1484":"1/2","34":"-1/2","49":"-1/2"},"96342":{"125":"1","1457":"-1"},"96366":{"139":"1","1474":"-1"},"96404":{"1472":"-1","163":"1"},"96411":{"1465":"-1","201":"1"},"96548":{"752":"-1","891":"1","937":"-1"},"96553":{"611":"1","613":"1","752":"1","891":"-1","937":"1"},"96560":{"1277":"-1","1279":"2","1368":"-3","1374":"2","476":"-1","489":"-1","524":"1","607":"-1","608":"-1/4","610":"3/4","611":"-1","612":"-1","613":"-1/2","770":"1"},"96789":{"128":"1","1476":"-1"},"96797":{"119":"1","1475":"-1"},"96800":{"1458":"-1","154":"1"},"96841":{"225":"-1/2","229":"1/4"},"96931":{"707":"4"},"96950":{"1233":"1","1381":"1"},"97036":{"108":"1","22":"1/2","23":"1/2","320":"-1/2","333":"2","49":"-1"},"97040":{"1466":"-1"},"97450":{"1208":"1","1461":"-3","454":"12"},"97546":{"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"},"97700":{"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"},"97761":{"68":"1","777":"1"},"97764":{"68":"1","777":"1"},"97781":{"68":"1"},"97801":{"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"},"97944":{"1495":"-2"},"98044":{"1208":"1"},"98058":{"1277":"-1/4","1279":"1/2","1280":"3/8","1368":"-3/4","1374":"1/2","173":"1/2","476":"-1/4","489":"-1/4","524":"1/4","607":"-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"},"98072":{"151":"1/2"},"98257":{"382":"1/2","816":"-1/2"},"98326":{"559":"-1/2"},"98338":{"546":"-1/2"},"98346":{"568":"-1/2"},"98353":{"575":"-1/2"},"98361":{"292":"1"},"98364":{"558":"-1/2"},"98371":{"1399":"1","563":"1"},"98378":{"1436":"1","364":"1"},"98397":{"428":"1"},"98421":{"512":"1"},"98447":{"527":"1"},"98468":{"523":"-1/2"},"98524":{"550":"1"},"98554":{"578":"-1/2"},"98607":{"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"},"98621":{"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"},"98628":{"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"},"98682":{"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"},"98685":{"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"},"98745":{"1449":"1","1450":"1","268":"-1","38":"1","546":"1/2","578":"-1/2","648":"-1","652":"-1","654":"-1"},"98850":{"1473":"-1","165":"1"},"99133":{"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"},"99258":{"242":"1","499":"1"},"99313":{"430":"1"},"99332":{"1404":"1","359":"-1/2"},"99337":{"328":"1","573":"1"},"99379":{"498":"1"},"99382":{"1395":"1","551":"1"},"99385":{"1410":"1","392":"1"},"99496":{"294":"1"},"99504":{"501":"1"},"99507":{"295":"1"},"99546":{"547":"-1/2"},"99596":{"474":"1"},"99633":{"577":"-1/2"},"99645":{"1463":"1/2"},"99806":{"511":"1"},"99818":{"1405":"1","354":"-1/2"}}} diff --git a/research/p104-role379-idle-stop/evidence/pr7658/mutation/EDITS.json b/research/p104-role379-idle-stop/evidence/pr7658/mutation/EDITS.json new file mode 100644 index 0000000000..75749e95b4 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7658/mutation/EDITS.json @@ -0,0 +1 @@ +{"append":[],"base_events":150010,"delete":[[98054,["MOVE",379,748,1065,false]],[98204,["MOVE",379,1065,1072,false]]],"insert_before":[[98204,[["MOVE",379,748,1072,false]]]],"source_head":"0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82","source_pr":7658,"source_word_sha256":"fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6"} diff --git a/research/p104-role379-idle-stop/evidence/pr7658/mutation/INVOICE.json b/research/p104-role379-idle-stop/evidence/pr7658/mutation/INVOICE.json new file mode 100644 index 0000000000..7cb2942922 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7658/mutation/INVOICE.json @@ -0,0 +1 @@ +{"contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"paid":{"1":67772,"16":416,"2":15062,"24":416,"3":10251,"32":416,"4":4199,"40":416,"48":416,"5":6103,"56":416,"6":1428,"64":208,"7":187,"8":775,"9":100},"schema":"integer-mult-recursive-invoice/v1","targets":{"1":306,"137":208,"17":416,"2":357,"25":416,"3":799,"33":416,"4":3825,"41":416,"49":416,"5":1360,"57":416,"6":748,"65":416,"7":323,"73":208,"8":544,"9":10871}} diff --git a/research/p104-role379-idle-stop/evidence/pr7658/mutation/PRICE.json b/research/p104-role379-idle-stop/evidence/pr7658/mutation/PRICE.json new file mode 100644 index 0000000000..695467efd3 --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7658/mutation/PRICE.json @@ -0,0 +1 @@ +{"bracket":["0.0037170835568","0.0037170835569"],"candidate_at_lower":{"bits":256,"classification":"new_cost_lower","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"622676822777/625000000000","new_minus_old":{"lower":"-122147629150741423678248145975343527365937548063269761930638786961579/115792089237316195423570985008687907853269984665640564039457584007913129639936","upper":"-122147629150741423678248145975343527365937548063269761930638669150667/115792089237316195423570985008687907853269984665640564039457584007913129639936"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67466},{"power_lower":"115494136542252157496175016843255919652925462319984717692520686644442767769475/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"230988273084504314992350033686511839305850924639969435385041373288885535539573/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":2,"signed_count":14705},{"power_lower":"345960602783538406007890959631077655085330739343433744424590581634916883211505/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"172980301391769203003945479815538827542665369671716872212295290817458441606189/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":3,"signed_count":9452},{"power_lower":"460787802120135620600669901109357224620520199067877978928466332231518260222013/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"57598475265016952575083737638669653077565024883484747366058291528939782527891/14474011154664524427946373126085988481658748083205070504932198000989141204992","rank":4,"signed_count":374},{"power_lower":"287753602038122833203750035005726655901143953590134555024617718612023485463553/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"575507204076245666407500070011453311802287907180269110049235437224046970928463/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":5,"signed_count":4743},{"power_lower":"690140774888879584702845440391826520433362885293455199304726382204826945192917/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"690140774888879584702845440391826520433362885293455199304726382204826945194523/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":6,"signed_count":680},{"power_lower":"804703017693211899052890530800508109513983952135566405975076645090885205313939/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"25146969302912871845402829087515878422311998504236450186721145159090162666119/3618502788666131106986593281521497120414687020801267626233049500247285301248","rank":7,"signed_count":-136},{"power_lower":"459602116911425492613951449013140394364697637641199305487910332534213838468029/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"919204233822850985227902898026280788729395275282398610975820665068427676938177/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":231},{"power_lower":"129206515171609492514034182483437754405083804577738152266657423113343175048427/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"1033652121372875940112273459867502035240670436621905218133259384906745400389773/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":9,"signed_count":-10771},{"power_lower":"229209741335981716968162032298713753443151915210513563383330388279319635048209/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"916838965343926867872648129194855013772607660842054253533321553117278540194853/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":16,"signed_count":416},{"power_lower":"243480476444353535293197603028020991825464233665738074524250309327148755501931/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"1947843811554828282345580824224167934603713869325904596194002474617190044019715/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":17,"signed_count":-416},{"power_lower":"2746374583178777792695463044359476114445561946831148331144609827906392065019093/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"2746374583178777792695463044359476114445561946831148331144609827906392065025159/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":24,"signed_count":416},{"power_lower":"715093198778123536918020692862177081209206351361159587057130283648374412302639/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"2860372795112494147672082771448708324836825405444638348228521134593497649216803/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":25,"signed_count":-416},{"power_lower":"1828959566204351327815877066701840540429761298492935930339495849965144306798067/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3657919132408702655631754133403681080859522596985871860678991699930288613604161/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":32,"signed_count":416},{"power_lower":"1885898829644457148948745106177485392079040403551376276281107023210500823762979/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3771797659288914297897490212354970784158080807102752552562214046421001647534219/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":33,"signed_count":-416},{"power_lower":"4568607942622331356890320224123789853083692527432773548623931435733865209397493/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"4568607942622331356890320224123789853083692527432773548623931435733865209407499/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":40,"signed_count":416},{"power_lower":"1170598337577958174116844383866404767888509220118861459348178957528099939052109/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"2341196675155916348233688767732809535777018440237722918696357915056199878109349/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":41,"signed_count":-416},{"power_lower":"5478615390654857904413215455253324650681642857739670956896362706774004365397161/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"5478615390654857904413215455253324650681642857739670956896362706774004365409157/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":48,"signed_count":416},{"power_lower":"5592324578904630609242165135819449814675405798258557731767153918884841818829181/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"5592324578904630609242165135819449814675405798258557731767153918884841818841415/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":49,"signed_count":-416},{"power_lower":"3194028304116854017046393231134175065935005179712099620563806796864066985696901/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3194028304116854017046393231134175065935005179712099620563806796864066985703893/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":56,"signed_count":416},{"power_lower":"6501701281420896023086355597468343634207084107348450212146061152566968902731719/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"6501701281420896023086355597468343634207084107348450212146061152566968902745859/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":57,"signed_count":-416},{"power_lower":"7297013371493410537733372901452371086027060080807477918109224237007617958298047/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"7297013371493410537733372901452371086027060080807477918109224237007617958314031/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":64,"signed_count":208},{"power_lower":"3705301058736055063666584525199185491772965311883142045221519986132141588952829/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3705301058736055063666584525199185491772965311883142045221519986132141588960827/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":65,"signed_count":-416},{"power_lower":"4159543090219313602696342504712964083067731947613099003311896389170818540986707/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"2079771545109656801348171252356482041533865973806549501655948194585409270497833/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":73,"signed_count":-208},{"power_lower":"15576041235481865641773554809518274694297425703758559808805009266521206418187495/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"486751288608808301305423587797446084196794553242454994025156539578787700569419/3618502788666131106986593281521497120414687020801267626233049500247285301248","rank":137,"signed_count":-208}]},"candidate_at_source_upper":{"bits":256,"classification":"new_cost_lower","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"9962832330021/10000000000000","new_minus_old":{"lower":"-1741840746153051281081319568902285857834000037499910443485448809366733507977/14474011154664524427946373126085988481658748083205070504932198000989141204992","upper":"-6967362984612205124325278275609143431336000149999641773941795237466868980445/57896044618658097711785492504343953926634992332820282019728792003956564819968"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67466},{"power_lower":"115494161884198858058978794416950230975220724795523028365189313778880130614049/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"230988323768397716117957588833900461950441449591046056730378627557760261228787/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":2,"signed_count":14705},{"power_lower":"10811272596880628752134316646169477516785219449718689881684481293804134026883/3618502788666131106986593281521497120414687020801267626233049500247285301248","power_upper":"86490180775045030017074533169355820134281755597749519053475850350433072215305/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":3,"signed_count":9452},{"power_lower":"460788004334058375881711278625723527969145564736291745570466507213668846580229/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"230394002167029187940855639312861763984572782368145872785233253606834423290729/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":4,"signed_count":374},{"power_lower":"287753748643410690374565870550838895478458042430503973475334993074136388916289/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"287753748643410690374565870550838895478458042430503973475334993074136388917039/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":5,"signed_count":4743},{"power_lower":"690141166335048334168932973329159668253833861010900342647869218642196298811017/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"345070583167524167084466486664579834126916930505450171323934609321098149406395/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":6,"signed_count":680},{"power_lower":"402351756693270905705965484524239594913452307384306113955506758373971445660183/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"402351756693270905705965484524239594913452307384306113955506758373971445661213/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":7,"signed_count":-136},{"power_lower":"459602419451846710314990260445673743761940017093228431925372449826331263904441/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"919204838903693420629980520891347487523880034186456863850744899652662527811221/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":231},{"power_lower":"516826420165443871955934515892877171767773581895292815517523546941474306352021/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"258413210082721935977967257946438585883886790947646407758761773470737153176661/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":9,"signed_count":-10771},{"power_lower":"1833679540085008298940080127833513548444461553095019295901352439600258752020723/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"916839770042504149470040063916756774222230776547509647950676219800129376012597/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":16,"signed_count":416},{"power_lower":"243480694816953264212295236741767468516664625542823393082833748721861160893077/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"60870173704238316053073809185441867129166156385705848270708437180465290223417/3618502788666131106986593281521497120414687020801267626233049500247285301248","rank":17,"signed_count":-416},{"power_lower":"343297168268277087689600287469191402888828937675513214206378893136333380640687/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"2746377346146216701516802299753531223110631501404105713651031145090667045132195/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":24,"signed_count":416},{"power_lower":"1430187854865142116958924557518521250754219764097175126669682450526492768376037/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1430187854865142116958924557518521250754219764097175126669682450526492768379485/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":25,"signed_count":-416},{"power_lower":"1828961572774449690830402622165122010566767407012055093231141391712843347263815/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3657923145548899381660805244330244021133534814024110186462282783425686694536505/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":32,"signed_count":416},{"power_lower":"942950458526919965247390893221654415567921660237272047186479815518681606551131/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"3771801834107679860989563572886617662271686640949088188745919262074726426213639/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":33,"signed_count":-416},{"power_lower":"2284306638803254099010950347504031014734299859042074072857804918728798711359353/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"2284306638803254099010950347504031014734299859042074072857804918728798711364877/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":40,"signed_count":416},{"power_lower":"4682398854769475485312435212182750459204333159891598407669703021864699460973325/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"585299856846184435664054401522843807400541644986449800958712877733087432623081/14474011154664524427946373126085988481658748083205070504932198000989141204992","rank":41,"signed_count":-416},{"power_lower":"2739311052250078306521239025248952762324666868201119281947947550810314924352355/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"5478622104500156613042478050497905524649333736402238563895895101620629848717951/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":48,"signed_count":416},{"power_lower":"2796165734299402131881236272142320660386671686826538314484579815710307275986251/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"2796165734299402131881236272142320660386671686826538314484579815710307275993007/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":49,"signed_count":-416},{"power_lower":"6388064748289678456019907552036045302920956731856114145405552359609926959310637/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1597016187072419614004976888009011325730239182964028536351388089902481739831517/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":56,"signed_count":416},{"power_lower":"3250854801359366313170412144781139248573055766991590397626622954312887468989253/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3250854801359366313170412144781139248573055766991590397626622954312887468997057/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":57,"signed_count":-416},{"power_lower":"7297022978247358870296552101780880462933322316594676188960679429771091782483027/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"3648511489123679435148276050890440231466661158297338094480339714885545891250331/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":64,"signed_count":208},{"power_lower":"7410611910140509792956379191685461467026753831169255700147593485312378126674365/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"3705305955070254896478189595842730733513376915584627850073796742656189063346019/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":65,"signed_count":-416},{"power_lower":"4159548739644367054397140968529683809962067062854347564134017631225506379063371/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"4159548739644367054397140968529683809962067062854347564134017631225506379073263/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":73,"signed_count":-208},{"power_lower":"3894016373655087057381285719859447525006708738129069794119342835937456806917535/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"15576065494620348229525142879437790100026834952516279176477371343749827227707563/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":137,"signed_count":-208}]},"candidate_at_upper":{"bits":256,"classification":"new_cost_higher","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"9962829164431/10000000000000","new_minus_old":{"lower":"4279787279132137043662569549418940480060944228490770390256070451356347/115792089237316195423570985008687907853269984665640564039457584007913129639936","upper":"2139893639566068521831284774709470240030472114245385195128035280306403/57896044618658097711785492504343953926634992332820282019728792003956564819968"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67466},{"power_lower":"230988273084488304105326940754639015819251025345615489116043357564568861311697/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"115494136542244152052663470377319507909625512672807744558021678782284430656135/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":2,"signed_count":14705},{"power_lower":"345960602783500398350929659526009522653889717638334850405252356944760888108165/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"345960602783500398350929659526009522653889717638334850405252356944760888108973/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":3,"signed_count":9452},{"power_lower":"460787802120071741847494708338080840744477936708755246965083962305632277692287/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"460787802120071741847494708338080840744477936708755246965083962305632277693323/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":4,"signed_count":374},{"power_lower":"575507204076153042096188151604405536792866325772906195917432676280894933260359/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"575507204076153042096188151604405536792866325772906195917432676280894933261617/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":5,"signed_count":4743},{"power_lower":"345070387444377964037997348861303056629482965697982483320088018502601949408381/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"690140774888755928075994697722606113258965931395964966640176037005203898818255/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":6,"signed_count":680},{"power_lower":"201175754423263827768995020049295909857969570885740937462170883179643470656945/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"402351508846527655537990040098591819715939141771481874924341766359286941314757/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":7,"signed_count":-136},{"power_lower":"919204233822659842080992995736101840734274383165007354158180753282126040819701/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"919204233822659842080992995736101840734274383165007354158180753282126040821671/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":231},{"power_lower":"516826060686324411763861932215651818102519829200376966935237968290666630969777/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"64603257585790551470482741526956477262814978650047120866904746036333328871359/7237005577332262213973186563042994240829374041602535252466099000494570602496","rank":9,"signed_count":-10771},{"power_lower":"916838965343672666135105908308007572445064331850052824658256072214214421093165/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"916838965343672666135105908308007572445064331850052824658256072214214421095037/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":16,"signed_count":416},{"power_lower":"973921905777138208318838728149856460033856448703978211862807598139982578922269/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"486960952888569104159419364074928230016928224351989105931403799069991289462123/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":17,"signed_count":-416},{"power_lower":"2746374583177904980069099027317259482748731786562859359708052749417977635044653/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1373187291588952490034549513658629741374365893281429679854026374708988817525141/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":24,"signed_count":416},{"power_lower":"2860372795111573429188053090575032266208468393063037677502727508641973442430343/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"2860372795111573429188053090575032266208468393063037677502727508641973442436133/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":25,"signed_count":-416},{"power_lower":"3657919132407434917465081666329150327296577889030090479206444051166005976096883/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"3657919132407434917465081666329150327296577889030090479206444051166005976104335/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":32,"signed_count":416},{"power_lower":"3771797659287595485993887916938132284312269580623267573960041084282722322263233/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1885898829643797742996943958469066142156134790311633786980020542141361161135447/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":33,"signed_count":-416},{"power_lower":"2284303971310323026246488204517905188983403630023785945915426461227075821882609/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"4568607942620646052492976409035810377966807260047571891830852922454151643774507/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":40,"signed_count":416},{"power_lower":"4682393350310093855952273856284270821371518481866387493323072866605820634907823/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1170598337577523463988068464071067705342879620466596873330768216651455158729337/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":41,"signed_count":-416},{"power_lower":"2739307695326368511134674002100790917101647315408415983065047073649283850529777/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"5478615390652737022269348004201581834203294630816831966130094147298567701070697/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":48,"signed_count":416},{"power_lower":"2796162289451227088505592579470673107355988516129284749796027000727460616528397/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1398081144725613544252796289735336553677994258064642374898013500363730308267039/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":49,"signed_count":-416},{"power_lower":"3194028304115568308322970219932254926266722937587936112180077725107673516346181/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"6388056608231136616645940439864509852533445875175872224360155450215347032705337/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":56,"signed_count":416},{"power_lower":"812712660177283418990682887694929518900535801792508360826576149776099203800271/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"6501701281418267351925463101559436151204286414340066886612609198208793630415285/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":57,"signed_count":-416},{"power_lower":"7297013371490375795186398205521582296950457506796262635692921828300711305883197/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"7297013371490375795186398205521582296950457506796262635692921828300711305898037/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":64,"signed_count":208},{"power_lower":"7410602117469016655019025973141262728907791983652053907470248395653923589272629/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"926325264683627081877378246642657841113473997956506738433781049456740448660933/14474011154664524427946373126085988481658748083205070504932198000989141204992","rank":65,"signed_count":-416},{"power_lower":"4159543090217528967604113386747898789120541448527467408986120344322688120349825/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"8319086180435057935208226773495797578241082897054934817972240688645376240716263/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":73,"signed_count":-208},{"power_lower":"7788020617737101129597854191353039200314076809518713365226766991428849546310431/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1947005154434275282399463547838259800078519202379678341306691747857212386581543/14474011154664524427946373126085988481658748083205070504932198000989141204992","rank":137,"signed_count":-208}]},"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":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"delta_paid":{"1":-17,"2":-17,"3":17},"delta_targets":{},"hinges":[{"rank":0,"value":0},{"rank":1,"value":-17},{"rank":2,"value":-17},{"rank":3,"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":296105,"paid_minus_targets":-1424,"targets":297529},"old":{"paid":296105,"paid_minus_targets":-1424,"targets":297529}},"schema":"integer-mult-recursive-invoice-comparison/v1","signed_net_delta":{"1":-17,"2":-17,"3":17},"tariff_class":"increasing concave f on nonnegative ranks, with f(0)=0","uniform_order":"weak; some concave tariffs can give equality"},"declared_fixed_caller_residual":{"paid":{"1":384,"16":416,"24":416,"32":416,"40":416,"48":416,"56":416,"64":208,"8":656,"9":32},"targets":{"137":208,"17":416,"25":416,"33":416,"41":416,"49":416,"57":416,"65":416,"73":208,"9":416}},"native_calls":17,"scope":"Literal native counts plus unchanged residual inferred from the pinned declared invoice.","source_at_source_upper":{"bits":256,"classification":"new_cost_higher","contract":{"ambient_rank":145,"boundary":"complete signed #7113 caller application with 17 native calls","model":"mixed-target-unnormalized-power-v1","rank_semantics":"H_r costs r^(1-C); debit surrendered productive fields"},"exponent":"9962832330021/10000000000000","new_minus_old":{"lower":"1212425022398133471628294115334631500708352986951487091156032433034205/57896044618658097711785492504343953926634992332820282019728792003956564819968","upper":"2424850044796266943256588230669263001416705973902974182312064996166661/115792089237316195423570985008687907853269984665640564039457584007913129639936"},"quantity":"(new paid - new targets) - (old paid - old targets)","schema":"integer-mult-recursive-power-comparison/v1","scope":"Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, compiler, applicability or kappa claim is verified. Unresolved is not equality.","terms":[{"power_lower":"1","power_upper":"1","rank":1,"signed_count":67483},{"power_lower":"115494161884198858058978794416950230975220724795523028365189313778880130614049/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"230988323768397716117957588833900461950441449591046056730378627557760261228787/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":2,"signed_count":14722},{"power_lower":"10811272596880628752134316646169477516785219449718689881684481293804134026883/3618502788666131106986593281521497120414687020801267626233049500247285301248","power_upper":"86490180775045030017074533169355820134281755597749519053475850350433072215305/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":3,"signed_count":9435},{"power_lower":"460788004334058375881711278625723527969145564736291745570466507213668846580229/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"230394002167029187940855639312861763984572782368145872785233253606834423290729/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":4,"signed_count":374},{"power_lower":"287753748643410690374565870550838895478458042430503973475334993074136388916289/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"287753748643410690374565870550838895478458042430503973475334993074136388917039/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":5,"signed_count":4743},{"power_lower":"690141166335048334168932973329159668253833861010900342647869218642196298811017/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"345070583167524167084466486664579834126916930505450171323934609321098149406395/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":6,"signed_count":680},{"power_lower":"402351756693270905705965484524239594913452307384306113955506758373971445660183/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"402351756693270905705965484524239594913452307384306113955506758373971445661213/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":7,"signed_count":-136},{"power_lower":"459602419451846710314990260445673743761940017093228431925372449826331263904441/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"919204838903693420629980520891347487523880034186456863850744899652662527811221/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":8,"signed_count":231},{"power_lower":"516826420165443871955934515892877171767773581895292815517523546941474306352021/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"258413210082721935977967257946438585883886790947646407758761773470737153176661/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":9,"signed_count":-10771},{"power_lower":"1833679540085008298940080127833513548444461553095019295901352439600258752020723/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"916839770042504149470040063916756774222230776547509647950676219800129376012597/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":16,"signed_count":416},{"power_lower":"243480694816953264212295236741767468516664625542823393082833748721861160893077/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"60870173704238316053073809185441867129166156385705848270708437180465290223417/3618502788666131106986593281521497120414687020801267626233049500247285301248","rank":17,"signed_count":-416},{"power_lower":"343297168268277087689600287469191402888828937675513214206378893136333380640687/14474011154664524427946373126085988481658748083205070504932198000989141204992","power_upper":"2746377346146216701516802299753531223110631501404105713651031145090667045132195/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":24,"signed_count":416},{"power_lower":"1430187854865142116958924557518521250754219764097175126669682450526492768376037/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"1430187854865142116958924557518521250754219764097175126669682450526492768379485/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":25,"signed_count":-416},{"power_lower":"1828961572774449690830402622165122010566767407012055093231141391712843347263815/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3657923145548899381660805244330244021133534814024110186462282783425686694536505/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":32,"signed_count":416},{"power_lower":"942950458526919965247390893221654415567921660237272047186479815518681606551131/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"3771801834107679860989563572886617662271686640949088188745919262074726426213639/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":33,"signed_count":-416},{"power_lower":"2284306638803254099010950347504031014734299859042074072857804918728798711359353/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"2284306638803254099010950347504031014734299859042074072857804918728798711364877/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":40,"signed_count":416},{"power_lower":"4682398854769475485312435212182750459204333159891598407669703021864699460973325/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"585299856846184435664054401522843807400541644986449800958712877733087432623081/14474011154664524427946373126085988481658748083205070504932198000989141204992","rank":41,"signed_count":-416},{"power_lower":"2739311052250078306521239025248952762324666868201119281947947550810314924352355/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"5478622104500156613042478050497905524649333736402238563895895101620629848717951/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":48,"signed_count":416},{"power_lower":"2796165734299402131881236272142320660386671686826538314484579815710307275986251/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"2796165734299402131881236272142320660386671686826538314484579815710307275993007/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":49,"signed_count":-416},{"power_lower":"6388064748289678456019907552036045302920956731856114145405552359609926959310637/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"1597016187072419614004976888009011325730239182964028536351388089902481739831517/28948022309329048855892746252171976963317496166410141009864396001978282409984","rank":56,"signed_count":416},{"power_lower":"3250854801359366313170412144781139248573055766991590397626622954312887468989253/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"3250854801359366313170412144781139248573055766991590397626622954312887468997057/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":57,"signed_count":-416},{"power_lower":"7297022978247358870296552101780880462933322316594676188960679429771091782483027/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"3648511489123679435148276050890440231466661158297338094480339714885545891250331/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":64,"signed_count":208},{"power_lower":"7410611910140509792956379191685461467026753831169255700147593485312378126674365/115792089237316195423570985008687907853269984665640564039457584007913129639936","power_upper":"3705305955070254896478189595842730733513376915584627850073796742656189063346019/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":65,"signed_count":-416},{"power_lower":"4159548739644367054397140968529683809962067062854347564134017631225506379063371/57896044618658097711785492504343953926634992332820282019728792003956564819968","power_upper":"4159548739644367054397140968529683809962067062854347564134017631225506379073263/57896044618658097711785492504343953926634992332820282019728792003956564819968","rank":73,"signed_count":-208},{"power_lower":"3894016373655087057381285719859447525006708738129069794119342835937456806917535/28948022309329048855892746252171976963317496166410141009864396001978282409984","power_upper":"15576065494620348229525142879437790100026834952516279176477371343749827227707563/115792089237316195423570985008687907853269984665640564039457584007913129639936","rank":137,"signed_count":-208}]},"source_upper":"0.0037167669979"} diff --git a/research/p104-role379-idle-stop/evidence/pr7658/mutation/RESULT.json b/research/p104-role379-idle-stop/evidence/pr7658/mutation/RESULT.json new file mode 100644 index 0000000000..d5b4f27c4b --- /dev/null +++ b/research/p104-role379-idle-stop/evidence/pr7658/mutation/RESULT.json @@ -0,0 +1 @@ +{"CLEAR_certificates":"same coefficients keyed by retained CLEAR clocks","candidate":{"events":150009,"gzip_sha256":"4e9cd9cc70a5423db44f870b35d8d6da9ac5746aa352f3af1420443f6dda350e","word_sha256":"f0753b6614b2d351723dddc307a39b6ecd748a43008c6fdb9335b01feeec9669"},"controls":{"legal_changed_scalar":"normalized non-MOVE sequence differs","legal_intervening_scale":"role observed in open MOVE interval at [98204]","missing_direct_move":"clock 98204: scalar operands must share the declared chart","wrong_direct_source":"clock 98203: MOVE source chart or ownership"},"cut":{"CLEARs_in_open_interval":2,"anchors":[98054,98204],"dimensions":[3,5,6],"frames":[748,1065,1072],"intervening_role_mentions":0,"neighbors":{"after":[98206,["ADD",379,395,"1",1072]],"before":[97285,["ADD",544,379,"1",748]]}},"declared_signed_paid_delta":{"1":-17,"2":-17,"3":17},"finished_at":"2026-11-18T01:24:44.181077+00:00","ordered_clears":234,"owned_labels":52,"owned_peak":50,"paid_native_after":{"1":3964,"2":886,"3":603,"4":247,"5":359,"6":84,"7":11,"8":7,"9":4},"paid_native_before":{"1":3965,"2":887,"3":602,"4":247,"5":359,"6":84,"7":11,"8":7,"9":4},"paid_native_delta":{"1":-1,"2":-1,"3":1},"physical":{"absolute_phase_equal":true,"adjoint_columns":512,"checked_pairs":[{"adjoint_columns":512,"forward_columns":512,"pair":[748,1065],"rank":2,"recipe_sha256":"b2526c5f3cc9751c82151c2fbf05ae715c3a99cf3b15e6c7193eed6b1f4444ca","wrong_phase_rejected":true},{"adjoint_columns":512,"forward_columns":512,"pair":[1065,1072],"rank":1,"recipe_sha256":"ac5e3f6a7d8c2c35ae675868a5cd235ca3acccfea30e9d527ea153b9940417b4","wrong_phase_rejected":true},{"adjoint_columns":512,"forward_columns":512,"pair":[748,1072],"rank":3,"recipe_sha256":"48bec10572ffbbbb7d17e06b02f8f116dc2c5507c10e5c9389f530b86768e739","wrong_phase_rejected":true}],"composed_path":[748,1065,1072],"forward_columns":512,"signed_pauli_equal":true,"wrong_phase_rejected_forward_and_adjoint":true,"wrong_phase_same_pauli":true},"protected_events":1317,"role":379,"scalar_order":{"events":143844,"invariant":"Identical INIT, ADD, COPY, SCALE and CLEAR instructions in order imply identical normalized symbolic rows after each scalar operation on arbitrary inputs.","sha256":"fe2112fe69e690537fbdf51a39b966fb594be9afb3c9992fc31bce3052bcd5ba"},"signed_price_bracket_on_declared_residual":["0.0037170835568","0.0037170835569"],"source":{"certificates_sha256":"02e0651a9a44c710225dd741d484f990e238bd5ac9e6510a7b90b17679879f47","events":150010,"gzip_sha256":"dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9","head":"0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82","invoice_sha256":"26383ec33e4c4d552442b62f2bd7d9fd0a2fd0d357c1bcbf52ba913e11bb630e","physical_checker_sha256":"334e37a3fb31c8cd374bc4ecafcdb9fb2597eb3192d3d49373417830458cb696","pr":7658,"price_checker_sha256":{"compare_recursive_invoices.py":"3930c22c11da7bc6042cfeb6e459ecb06e4478430037bee3469d034353855fc6","evaluate_recursive_power.py":"52b20f41fd0bb55fa88dccd6015af2ce358917817b9506720f3e60ce681cc3ad"},"word_sha256":"fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6"},"started_at":"2026-11-18T01:24:29.922769+00:00","status":"PASS_SILENT_PUBLIC_MOVE_SUBSTITUTION"} diff --git a/research/p104-role379-idle-stop/retained/pr7636/NOTICE b/research/p104-role379-idle-stop/retained/pr7636/NOTICE new file mode 100644 index 0000000000..a44152df19 --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7636/NOTICE @@ -0,0 +1,16 @@ +Apache-2.0. DreamingOfClouds with Claude Opus 5.5 (Anthropic), via Claude Code. + +The base word is our #7630 (seven stop edits and a joint hub re-settle on our #7623, which is on our #7621), which uses +SYLforge's loan + stationary-snapshot device of #7616 and #7620 and inherits #7620's composition: Ali Romman's #7605, our #7611 stay +drops, Clear1nsight's #7612 contact rechart, FanPUYen's #7604, SYLforge's #7603, ToikY's #7546/#7544 and rohanarun's signed #7113 +caller, and the courier lineage of our #7615/#7617 and the crowd's courier pattern (Clear1nsight's #7244/#7274/#7314/#7334/#7481, +rohanarun's #7480 and #7277, CubeJerry's #7577, petalas's #7326). The SWAP-NULL relabel law comes from our Lean package 2 (#7634). +#7633 (Clear1nsight) is cited only as a price point. + +Vendored data (unmodified, data only): data/base-7630-word.json.gz, data/invoice-7630.json and data/affected-pairs-7630.json +are our #7630's data/word.json.gz, data/invoice-new.json and data/affected-pairs-new.json. + +check.py is our own code. Its replay, crossing and column-test sections are taken from our #7630 package; 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-role379-idle-stop/retained/pr7636/check.py b/research/p104-role379-idle-stop/retained/pr7636/check.py new file mode 100644 index 0000000000..e4ba38441b --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7636/check.py @@ -0,0 +1,977 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Exact replay of 22 swap-then-delete composites on our #7630 word (SWAP-NULL relabel + stop deletion + joint hub re-settle). + +Standard library only. Written for this package; it imports no other package and runs no other author's code +(the #7630 word, invoice and affected-pair census are vendored as data). + +Modes (each is a separate VERIFY command): core, certificates, controls, columns1..columns4; all runs every mode. + +core + 1. Vendored #7630 word (data/base-7630-word.json.gz) and new word (data/word.json.gz): sha256 pinned. + 2. Header (initial, final, frames, hosted, ports, live, owned_fields) identical. + 3. Interior: every MOVE/INIT/CLEAR and every ADD/COPY/SCALE at a chart of dimension 1..8 of the new word equals #7630's + interior with the deletions and insertions of data/edits.json (composites C1..C22), event for event and in order. + Everything else (ADD/SCALE at the {0} chart and at V) is the re-derived joint hub. + 4. Both words replayed over the rationals from arbitrary inputs with full legality checks. All 1,569 rows and end charts + equal #7630's; helpers end at identity; owned rows empty; owned MOVE multiset, owned lifetimes, peak 50, 68 labels, 180 CLEARs unchanged. + 5. Routes: exactly the 44 helpers h1,h2 of C1..C22 change chains, each from route_before to route_after; new MOVE pairs strictly nested. + 6. Coefficients 5-smooth; grid statistics printed. + 7. Census, complete invoice (17 native calls), S and kappa recomputed; #7630's crossing reproduced. +certificates exact CLEAR certificates for all 180 CLEARs of the new word (#7620's verify_certificates rule), 2 rejecting controls. +controls negative controls rejected; 2 positives accepted. +columns1..4 affected-pair column tests on the 1,023-pair census (sorted index mod 4): 512 forward + 512 adjoint exact Gaussian + columns, signed Pauli action, absolute phase, exact ascent rank, wrong-phase rejection; rejecting controls. +""" +import collections +import multiprocessing +import copy +import decimal +import gzip +import hashlib +import json +import os +import sys +from fractions import Fraction as Q +from pathlib import Path + +HERE = Path(__file__).resolve().parent +DATA = HERE / 'data' +BASE_SHA256 = 'fa1a8dad12d28e6e5ced5a6989d49074efe15d6647ffc122cb28fcd666f366c2' +WORD_SHA256 = '1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659' +CALLS = 17 +NPARTS = 4 +CLAIM, ABOVE = '0.0036807241001', '0.0036807241002' + + +def require(cond, label): + if not cond: + raise AssertionError(label) + + +def load_gz(path): + return json.loads(gzip.decompress(path.read_bytes())) + + +def span(vectors): + s = {0} + for v in vectors: + require(type(v) is int and 0 < v < 512 and v not in s, 'frame vectors independent in F2^9') + s |= {x ^ v for x in s} + return frozenset(s) + + +def mains(W): + live = set(W['live']) + return live | {r + 112 for r in live} | set(W['hosted']['X2']) | set(W['hosted']['Y2']) + + +def replay(W): + """Exact replay; returns rows, end charts, MOVE chains and owned data. Raises on any illegality.""" + n, N = W['public'], W['public'] + W['owned_fields'] + sp = [span(f) for f in W['frames']] + rows = [{r: Q(1)} if r < n else {} for r in range(N)] + cur = list(W['initial']) + [None] * W['owned_fields'] + alive, chains, owned_moves = set(), collections.defaultdict(list), collections.Counter() + lifetimes, peak = collections.Counter(), 0 + init_chart = {} + stats = dict(max_den_exp=0, odd_den=1, max_num_bits=0, smooth=True) + + def note(q): + d = q.denominator + e = (d & -d).bit_length() - 1 + stats['max_den_exp'] = max(stats['max_den_exp'], e) + odd = d >> e + o = odd + for p in (3, 5): + while o % p == 0: + o //= p + if o != 1: + stats['smooth'] = False + if odd > 1 and stats['odd_den'] % odd: + stats['odd_den'] = stats['odd_den'] * odd // __import__('math').gcd(stats['odd_den'], odd) + stats['max_num_bits'] = max(stats['max_num_bits'], abs(q.numerator).bit_length()) + + for i, e in enumerate(W['program']): + op, r = e[0], e[1] + require(type(r) is int and 0 <= r < N, '%d register index' % i) + if op == 'MOVE': + a, b, flag = e[2], e[3], e[4] + require(type(flag) is bool and flag == (r >= n), '%d MOVE ownership flag' % i) + require(cur[r] == a, '%d MOVE from the current chart' % i) + if r >= n: + require(r in alive, '%d owned MOVE on a live field' % i) + require(sp[a] < sp[b] or sp[b] < sp[a], '%d owned MOVE nested' % i) + owned_moves[(a, b)] += 1 + else: + require(sp[a] < sp[b], '%d public MOVE strictly ascends' % i) + cur[r] = b + chains[r].append((a, b)) + elif op == 'INIT': + require(r >= n and r not in alive and len(e) == 3, '%d INIT of a dead owned field' % i) + alive.add(r); rows[r] = {}; cur[r] = e[2]; init_chart[r] = e[2] + peak = max(peak, len(alive)) + elif op == 'CLEAR': + require(r >= n and r in alive and cur[r] == e[2], '%d CLEAR at the current chart' % i) + lifetimes[(r, init_chart.pop(r), e[2])] += 1 + alive.discard(r); rows[r] = {}; cur[r] = None + elif op == 'SCALE': + q = Q(e[2]) + require(q != 0, '%d SCALE by zero' % i) + require(cur[r] == e[3] and (r < n or r in alive), '%d SCALE chart' % i) + rows[r] = {k: v * q for k, v in rows[r].items()} + for v in rows[r].values(): + note(v) + elif op in ('ADD', 'COPY'): + s, q, f = e[2], Q(e[3]), e[4] + require(type(s) is int and 0 <= s < N and s != r, '%d operand' % i) + require(q != 0, '%d zero coefficient' % i) + require(cur[r] == f and cur[s] == f, '%d ADD/COPY operands at chart %d' % (i, f)) + for x in (r, s): + require(x < n or x in alive, '%d owned field live' % i) + if op == 'COPY': + require(not rows[r], '%d COPY into a zero field' % i) + R = rows[r] + for k, v in rows[s].items(): + nv = R.get(k, 0) + q * v + if nv: + R[k] = nv + note(nv) + else: + R.pop(k, None) + else: + raise AssertionError('%d unknown op %r' % (i, op)) + require(not alive, 'every owned field cleared') + require(cur[:n] == list(W['final']), 'public fields end at final charts') + return dict(rows=rows, cur=cur, chains=chains, owned_moves=owned_moves, + lifetimes=lifetimes, peak=peak, sp=sp, stats=stats) + + +def crossing(T, P, digits=40): + """Root of F(C) = sum (T_r - P_r) r^(1-C) on [0.003, 0.0045] by bisection in 80-digit decimals.""" + D = decimal.Decimal + with decimal.localcontext(decimal.Context(prec=digits + 40)) as ctx: + ranks = sorted({int(r) for r in T} | {int(r) for r in P}) + terms = [(D(T.get(str(r), 0) - P.get(str(r), 0)) * r, D(r).ln()) for r in ranks] + + def F(C): + return sum((c * (-C * l).exp() for c, l in terms), D(0)) + lo, hi = D('0.003'), D('0.0045') + require(F(lo) > 0 > F(hi), 'crossing bracketed') + for _ in range(160): + mid = (lo + hi) / 2 + if F(mid) > 0: + lo = mid + else: + hi = mid + return decimal.Context(prec=digits).create_decimal(lo) + + +def invoice_json(P, T): + return {'schema': 'integer-mult-recursive-invoice/v1', + 'contract': {'model': 'mixed-target-unnormalized-power-v1', + 'rank_semantics': 'H_r costs r^(1-C); debit surrendered productive fields', + 'ambient_rank': 145, + 'boundary': 'complete signed #7113 caller application with 17 native calls'}, + 'paid': {k: P[k] for k in sorted(P, key=int)}, + 'targets': {k: T[k] for k in sorted(T, key=int)}} + + +def clears(W): + """Row content erased at every owned CLEAR, in program order.""" + n = W['public'] + rows = [{r: Q(1)} if r < n else {} for r in range(n + W['owned_fields'])] + out = [] + for e in W['program']: + op, r = e[0], e[1] + if op == 'INIT': + rows[r] = {} + elif op == 'CLEAR': + out.append((r, tuple(sorted(rows[r].items())))) + rows[r] = {} + elif op == 'SCALE': + rows[r] = {k: v * Q(e[2]) for k, v in rows[r].items()} + elif op in ('ADD', 'COPY'): + R = rows[r] + for k, v in rows[e[2]].items(): + nv = R.get(k, 0) + Q(e[3]) * v + if nv: + R[k] = nv + else: + R.pop(k, None) + return out + + + +def literal_coeffs(program): + return [Q(e[2]) for e in program if e[0] == 'SCALE'] + [Q(e[3]) for e in program if e[0] in ('ADD', 'COPY')] + + +def nondyadic(program): + return sum(1 for q in literal_coeffs(program) if q.denominator & (q.denominator - 1)) + + +# --------------------------------------------------------------------------- +# Column tests for every affected public chart pair (own implementation). +# A chart pair (a, b) is the operator F_a^dagger F_b of two nine-bit stabilizer +# frames (Gaussian-dyadic Clifford maps). For each pair this section (i) builds +# the circuit of F_a^dagger F_b directly from the frame definition, (ii) compiles +# it to the child recipe monomial . Fourier^r . monomial with r = dim b - dim a, +# (iii) requires the recipe and the direct circuit to agree in signed Pauli action +# and exact absolute phase, and (iv) compares all 512 forward and 512 adjoint +# Gaussian columns, then checks that a recipe with its absolute phase shifted is +# rejected. Gates: P (bit permutation), D (diagonal Z4 quadratic form), +# C (one Fourier line, (1+i)I/2 + (1-i)X/2), X (offset), phase (i^k). +# --------------------------------------------------------------------------- +NB = 9 +FULL = 1 << NB + + +def par(x): + return x.bit_count() & 1 + + +def rank2(rows): + piv = {} + for x in rows: + while x: + b = x.bit_length() - 1 + if b not in piv: + piv[b] = x + break + x ^= piv[b] + return len(piv) + + +def tr(rows, n=NB): + return tuple(sum(((rows[j] >> i) & 1) << j for j in range(n)) for i in range(n)) + + +def mvec(rows, x): + return sum(par(r & x) << i for i, r in enumerate(rows)) + + +def minv(rows, n=NB): + a = [r | (1 << (n + i)) for i, r in enumerate(rows)] + for j in range(n): + k = next(i for i in range(j, n) if a[i] >> j & 1) + a[j], a[k] = a[k], a[j] + for i in range(n): + if i != j and a[i] >> j & 1: + a[i] ^= a[j] + require([r & ((1 << n) - 1) for r in a] == [1 << i for i in range(n)], 'binary inverse') + return tuple(r >> n for r in a) + + +def extend(vecs, n=NB): + out = [] + for x in list(vecs) + [1 << i for i in range(n)]: + if rank2(out + [x]) > len(out): + out.append(x) + require(len(out) == n, 'basis extension') + return tuple(out) + + +def qform(Qr, al, x): + return (sum(al[i] for i in range(NB) if x >> i & 1) + + 2 * sum(par((Qr[i] >> (i + 1)) & (x >> (i + 1))) for i in range(NB) if x >> i & 1)) % 4 + + +def dagger(circ): + out = [] + for g in reversed(circ): + t = g[0] + if t == 'P': + out.append(('P', minv(g[1]))) + elif t == 'D': + out.append(('D', g[1], tuple(-a % 4 for a in g[2]))) + elif t == 'C': + out.append(('C', g[1], -g[2])) + elif t == 'phase': + out.append(('phase', -g[1] % 4)) + else: + out.append(g) + return tuple(out) + + +def fourier(r): + return tuple(('C', 1 << i, 1) for i in range(r)) + + +def frame_circuit(vecs): + r = len(vecs) + if r == 0: + return () + if r == NB: + return fourier(NB) + G = tr(extend(vecs)) + gi = tr(minv(G)) + Qr = tuple((1 << i) ^ sum(par(a & b) << j for j, b in enumerate(gi)) for i, a in enumerate(gi)) + chart = (('P', G), ('D', Qr, tuple((row >> i) & 1 for i, row in enumerate(Qr)))) + return dagger(chart) + fourier(r) + chart + + +def tableau(circ): + rows = [(1 << i, 0, 0) for i in range(NB)] + [(0, 1 << i, 0) for i in range(NB)] + for g in circ: + t = g[0] + out = [] + it = tr(minv(g[1])) if t == 'P' else None + for x, z, p in rows: + if t == 'P': + x, z = mvec(g[1], x), mvec(it, z) + elif t == 'X': + p += 2 * par(z & g[1]) + elif t == 'C': + if par(z & g[1]): + x ^= g[1] + p += 3 * g[2] + elif t == 'D': + p += sum(g[2][i] for i in range(NB) if x >> i & 1) + p += 2 * sum(par((g[1][i] >> (i + 1)) & (x >> (i + 1))) for i in range(NB) if x >> i & 1) + z ^= mvec(g[1], x) + else: + require(t == 'phase', 'gate type') + out.append((x, z, p % 4)) + rows = out + return tuple(rows) + + +_ACT = {} + + +def dact(g): + if g not in _ACT: + _ACT[g] = tuple(qform(g[1], g[2], x) for x in range(FULL)) + return _ACT[g] + + +def rot(pr, k): + a, b = pr + return ((a, b), (-b, a), (-a, -b), (b, -a))[k % 4] + + +def column(circ, basis=0): + """Exact Gaussian-dyadic column: ({address: (re, im)}, denominator exponent), value = num / 2^(den/2) ... .""" + val, den = {basis: (1, 0)}, 0 + for g in circ: + t = g[0] + res = {} + if t == 'C': + d, s = g[1], g[2] + for ad, (a, b) in val.items(): + for tg, pr in ((ad, (a - s * b, b + s * a)), (ad ^ d, (a + s * b, b - s * a))): + o = res.get(tg, (0, 0)) + res[tg] = (o[0] + pr[0], o[1] + pr[1]) + den += 1 + else: + for ad, pr in val.items(): + if t == 'P': + tg = mvec(g[1], ad) + elif t == 'X': + tg = ad ^ g[1] + elif t == 'D': + tg = ad + pr = rot(pr, dact(g)[ad]) + else: + require(t == 'phase', 'gate type') + tg = ad + pr = rot(pr, g[1]) + require(tg not in res, 'monomial map injective') + res[tg] = pr + val = {ad: pr for ad, pr in res.items() if pr != (0, 0)} + while den and all((a | b) % 2 == 0 for a, b in val.values()): + den -= 1 + val = {ad: (a // 2, b // 2) for ad, (a, b) in val.items()} + return val, den + + +def monomial_circuit(rec): + M, Qr, al = tuple(rec['matrix_rows']), tuple(rec['quadratic_rows']), tuple(rec['linear_Z4']) + require(tr(Qr) == Qr and all(al[i] % 2 == (Qr[i] >> i) & 1 for i in range(NB)), 'diagonal form') + minv(M) + return (('D', Qr, al), ('P', M), ('X', rec['offset']), ('phase', rec['phase'])) + + +def recipe_circuit(rec): + if rec['rank'] == 0: + return monomial_circuit(rec['left']) + return monomial_circuit(rec['right']) + fourier(rec['rank']) + monomial_circuit(rec['left']) + + +# compiler: symplectic tableau algebra used to produce the recipe +def pmul(a, b): + x, z, p = a + y, w, q = b + return x ^ y, z ^ w, (p + q + 2 * par(z & y)) % 4 + + +def tapply(T, pa): + x, z, ph = pa + out = (0, 0, ph) + for i in range(NB): + if x >> i & 1: + out = pmul(out, T[i]) + for i in range(NB): + if z >> i & 1: + out = pmul(out, T[NB + i]) + return out + + +def tcompose(A, B): + return tuple(tapply(A, p) for p in B) + + +def tidentity(): + return tuple([(1 << i, 0, 0) for i in range(NB)] + [(0, 1 << i, 0) for i in range(NB)]) + + +def tinverse(T): + cols = [x | (z << NB) for x, z, p in T] + ci = tr(minv(tr(cols, 2 * NB), 2 * NB), 2 * NB) + out = [] + for j, w in enumerate(ci): + x, z = w & (FULL - 1), w >> NB + u, v, p = tapply(T, (x, z, 0)) + require((u, v) == tidentity()[j][:2], 'tableau inverse') + out.append((x, z, -p % 4)) + return tuple(out) + + +class Op: + def __init__(s, tab, circ): + s.tab, s.circ = tab, tuple(circ) + + def then(s, o): + return Op(tcompose(o.tab, s.tab), s.circ + o.circ) + + def dag(s): + return Op(tinverse(s.tab), dagger(s.circ)) + + +def op_perm(G): + cols, gi = tr(G), minv(G) + return Op(tuple([(a, 0, 0) for a in cols] + [(0, a, 0) for a in gi]), [('P', tuple(G))]) + + +def op_diag(Qr, al=None): + Qr = tuple(Qr) + al = tuple(al) if al is not None else tuple((Qr[i] >> i) & 1 for i in range(NB)) + return Op(tuple([(1 << i, Qr[i], al[i]) for i in range(NB)] + [(0, 1 << i, 0) for i in range(NB)]), [('D', Qr, al)]) + + +def op_c(q, s=1): + return Op(tuple([(1 << i, 0, 0) for i in range(NB)] + + [(q if q >> i & 1 else 0, 1 << i, (3 * s) % 4 if q >> i & 1 else 0) for i in range(NB)]), [('C', q, s)]) + + +def op_x(b): + return Op(tuple([(1 << i, 0, 0) for i in range(NB)] + [(0, 1 << i, 2 * ((b >> i) & 1)) for i in range(NB)]), [('X', b)]) + + +def op_id(): + return Op(tidentity(), []) + + +def op_four(axes): + o = op_id() + for i in axes: + o = o.then(op_c(1 << i)) + return o + + +def op_had(axes): + S = op_diag(tuple(1 << i if i in axes else 0 for i in range(NB))) + return S.then(op_four(axes)).then(S) + + +def frame_op(vecs): + r = len(vecs) + if r == 0: + return op_id() + if r == NB: + return op_four(range(NB)) + G = tr(extend(vecs)) + gi = tr(minv(G)) + Qr = tuple((1 << i) ^ sum(par(a & b) << j for j, b in enumerate(gi)) for i, a in enumerate(gi)) + K = op_perm(G).then(op_diag(Qr)) + return K.dag().then(op_four(range(r))).then(K) + + +def split_monomial(op): + T = op.tab + require(all(x == 0 and p % 2 == 0 for x, z, p in T[NB:]), 'monomial tableau') + G = tr([x for x, z, p in T[:NB]]) + b = mvec(G, sum((p // 2) << i for i, (x, z, p) in enumerate(T[NB:]))) + cols = [mvec(tr(G), z) for x, z, p in T[:NB]] + Qr = tr(cols) + al = [(p - 2 * par(b & z)) % 4 for x, z, p in T[:NB]] + out = op_diag(Qr, al).then(op_perm(G)).then(op_x(b)) + require(out.tab == T, 'monomial rebuilt') + val, den = column(op.circ) + require(den == 0 and all(v == (0, 0) for a, v in val.items() if a != b), 'monomial column') + ph = [(1, 0), (0, 1), (-1, 0), (0, -1)].index(val[b]) + out = out.then(Op(tidentity(), [('phase', ph)])) + return out, dict(matrix_rows=G, offset=b, quadratic_rows=Qr, linear_Z4=al, phase=ph) + + +def lower(op): + Bc = [x for x, z, p in op.tab[NB:]] + r = rank2(Bc) + if not r: + mon, rec = split_monomial(op) + return dict(rank=0, left=rec, right=None) + G = tr(extend(Bc)) + A = minv(G) + PA = op_perm(A) + part = op.then(PA) + Bc = [x for x, z, p in part.tab[NB:]] + Dc = [z for x, z, p in part.tab[NB:]] + picks, sel = [], [] + for j, x in enumerate(Bc): + if rank2(sel + [x]) > len(sel): + picks.append(j) + sel.append(x) + require(len(picks) == r and all(x >> r == 0 for x in Bc), 'rank selection') + Br = tr(sel, r) + Bi = minv(Br, r) + Dr = tr([Dc[j] & ((1 << r) - 1) for j in picks], r) + Qs = tuple(sum(par(row & col) << j for j, col in enumerate(tr(Bi, r))) for row in Dr) + DQ = op_diag(Qs + (0,) * (NB - r)) + V = part.then(DQ).then(op_had(range(r))) + require(all(x == 0 for x, z, p in V.tab[NB:]), 'V monomial') + Vm, _ = split_monomial(V) + S = op_diag(tuple(1 << i if i < r else 0 for i in range(NB))) + left = S.dag().then(DQ.dag()).then(PA.dag()) + right = Vm.then(S.dag()).then(op_x((1 << r) - 1)) + lm, lrec = split_monomial(left) + rm, rrec = split_monomial(right) + comp = rm.then(op_four(range(r))).then(lm) + require(comp.tab == op.tab and column(comp.circ) == column(op.circ), 'recipe reproduces the pair operator') + return dict(rank=r, left=lrec, right=rrec) + + +def pair_columns(frames, a, b, wrong_phase=True): + """Full column test of the chart pair (a, b); returns its rank.""" + U, V = frames[a], frames[b] + rec = lower(frame_op(U).dag().then(frame_op(V))) + require(rec['rank'] == len(V) - len(U), 'exact public ascent rank of pair %s' % ((a, b),)) + expected = dagger(frame_circuit(U)) + frame_circuit(V) + actual = recipe_circuit(rec) + require(tableau(actual) == tableau(expected), 'signed Pauli action of pair %s' % ((a, b),)) + for x, y in ((actual, expected), (dagger(actual), dagger(expected))): + for c in range(FULL): + require(column(x, c) == column(y, c), 'Gaussian column %d of pair %s' % (c, (a, b))) + if wrong_phase: + bad = actual + (('phase', 1),) + require(tableau(bad) == tableau(actual) and column(bad) != column(expected), 'wrong absolute phase rejected') + return rec['rank'] + + + +# --------------------------------------------------------------------------- +# Package-specific checks. +# --------------------------------------------------------------------------- +MODES = ('all', 'core', 'certificates', 'controls') + tuple('columns%d' % i for i in range(1, NPARTS + 1)) +MODE = sys.argv[1] if len(sys.argv) > 1 else 'all' +require(MODE in MODES, 'mode is one of ' + ', '.join(MODES)) + + +def load_words(): + base_raw = (DATA / 'base-7630-word.json.gz').read_bytes() + require(hashlib.sha256(base_raw).hexdigest() == BASE_SHA256, 'vendored #7630 word bytes') + word_raw = (DATA / 'word.json.gz').read_bytes() + require(hashlib.sha256(word_raw).hexdigest() == WORD_SHA256, 'new word bytes') + return json.loads(gzip.decompress(base_raw)), json.loads(gzip.decompress(word_raw)) + + +def interior_test(W): + dim = [len(f) for f in W['frames']] + + def ok(e): + if e[0] in ('ADD', 'COPY'): + return 0 < dim[e[4]] < 9 + if e[0] == 'SCALE': + return 0 < dim[e[3]] < 9 + return True + return ok + + +def apply_interior(B, E): + """#7630's interior subsequence with the listed deletions and insertions (inserts ordered by seq).""" + ok, P = interior_test(B), B['program'] + dele, ins = {}, collections.defaultdict(list) + allins = [] + for ed in E['edits']: + for i, ev in ed['delete']: + require(P[i] == ev and ok(ev) and i not in dele, '%s deletion %d matches an interior base event' % (ed['id'], i)) + dele[i] = ev + allins.extend(ed['insert']) + require(sorted(x['seq'] for x in allins) == list(range(len(allins))), 'insert sequence numbers') + for x in sorted(allins, key=lambda x: x['seq']): + require(ok(x['event']), 'insertion is interior') + ins[x['before']].append(x['event']) + keys, k, out = sorted(ins), 0, [] + for i, e in enumerate(P): + if not ok(e): + continue + while k < len(keys) and keys[k] <= i: + out.extend(ins[keys[k]]) + k += 1 + if i not in dele: + out.append(e) + for key in keys[k:]: + out.extend(ins[key]) + return out, len(dele), sum(len(v) for v in ins.values()) + + +def chain_route(RX, X, r): + ch = RX['chains'].get(r, []) + return [ch[0][0]] + [b for a, b in ch] if ch else [X['initial'][r]] + + +def routes_of(X): + out = collections.defaultdict(list) + for e in X['program']: + if e[0] == 'MOVE' and e[1] < X['public']: + out[e[1]].append((e[2], e[3])) + return out + + +def move_pairs(X): + return {(e[2], e[3]) for e in X['program'] if e[0] == 'MOVE'} + + +def native_counts(W): + dim = [len(f) for f in W['frames']] + paid = collections.Counter(abs(dim[e[3]] - dim[e[2]]) for e in W['program'] if e[0] == 'MOVE') + M, n = mains(W), W['public'] + helpers = collections.Counter(dim[W['final'][r]] - dim[W['initial'][r]] for r in range(n) if r not in M) + return paid, helpers + + +def diff(a, b): + d = collections.Counter(b) + d.subtract(a) + return {k: v for k, v in sorted(d.items()) if v} + + +def verify_certificates(W, certs): + """#7620's verify_certificates rule at every CLEAR: erased row == sum of certificate coefficients times rows of live + registers other than the cleared field, exactly. A zero row needs the empty certificate. Returns per-CLEAR sizes and failures.""" + n = W['public'] + rows = [{r: Q(1)} if r < n else {} for r in range(n + W['owned_fields'])] + live, sizes, bad, seen = set(range(n)), [], [], 0 + for i, e in enumerate(W['program']): + op, r = e[0], e[1] + if op == 'INIT': + live.add(r) + rows[r] = {} + elif op == 'CLEAR': + seen += 1 + c = certs.get(str(i)) + okc = c is not None + if okc: + cert = {int(k): Q(v) for k, v in c.items()} + okc = all(k in live and k != r for k in cert) + s = {} + for k, cf in cert.items(): + for t, v in rows[k].items(): + s[t] = s.get(t, 0) + cf * v + okc = okc and {t: v for t, v in s.items() if v} == rows[r] + sizes.append(len(cert)) + if not okc: + bad.append(i) + rows[r] = {} + live.discard(r) + elif op == 'SCALE': + rows[r] = {k: v * Q(e[2]) for k, v in rows[r].items()} + elif op != 'MOVE': + R = rows[r] + for k, v in rows[e[2]].items(): + nv = R.get(k, 0) + Q(e[3]) * v + if nv: + R[k] = nv + else: + R.pop(k, None) + require(seen == len(certs), 'one certificate per CLEAR and no other') + return sizes, bad + + +def certificates_section(B, W): + certs = json.loads((DATA / 'clear-certificates.json').read_text())['clear_event_index'] + require(len(certs) == 180, '180 certificates') + sizes, bad = verify_certificates(W, certs) + require(not bad and len(sizes) == 180, 'every CLEAR certified (failures at %s)' % bad[:5]) + nz = sum(1 for s in sizes if s) + cb, cw = clears(B), clears(W) + same = sum(1 for a, b in zip(cb, cw) if a == b) + print('PASS CLEAR certificates: all 180 CLEARs of the new word erase an exact combination of other live registers' + ' (#7620 verify_certificates rule; %d nonzero rows, certificate sizes %d..%d; %d zero rows); %d of 180 CLEAR contents' + ' are identical to #7630\'s, the rest change with the re-derived hub content' % (nz, min(s for s in sizes if s), max(sizes), 180 - nz, same)) + k = next(i for i, c in certs.items() if c) + X = copy.deepcopy(certs) + f0 = next(iter(X[k])) + X[k][f0] = str(Q(X[k][f0]) + 1) + require(int(k) in verify_certificates(W, X)[1], 'corrupted coefficient rejected') + Y = copy.deepcopy(certs) + r = W['program'][int(k)][1] + Y[k][str(r)] = Y[k].pop(f0) + require(int(k) in verify_certificates(W, Y)[1], 'cleared field as a term rejected') + print('PASS certificate controls: corrupted coefficient (CLEAR at event %s) rejected; cleared field as a term rejected' % k) + print('PASS_CERTIFICATES_ON_7630') + + +def changed_registers(B, W): + rb, rw = routes_of(B), routes_of(W) + return rb, rw, [r for r in range(W['public']) if rb[r] != rw[r]] + + +def affected_pairs(B, W): + """#7630's 981-pair census plus every old- and new-route pair of the 44 registers whose chain changed; none leaves.""" + p0 = {tuple(p) for p in json.loads((DATA / 'affected-pairs-7630.json').read_text())} + require(len(p0) == 981, "#7630's census is 981 pairs") + rb, rw, changed = changed_registers(B, W) + E = json.loads((DATA / 'edits.json').read_text()) + require(changed == sorted({r for ed in E['edits'] for r in (ed['h1'], ed['h2'])}) and len(changed) == 44, 'changed routes are exactly the 44 helpers of C1..C22') + allp = p0 | {q for r in changed for q in rb[r] + rw[r]} + filep = {tuple(p) for p in json.loads((DATA / 'affected-pairs-new.json').read_text())} + require(allp == filep and len(allp) == 1023 and not p0 - allp, 'census is 1023 pairs (981 + 42), none dropped') + require(move_pairs(W) - move_pairs(B) <= allp, 'every new MOVE pair is tested') + return p0, allp + + +def _pair_job(args): + frames, a, b = args + return (a, b, pair_columns(frames, a, b)) + + +def columns_section(B, W, part): + p0, allp = affected_pairs(B, W) + frames = [tuple(f) for f in W['frames']] + mine = sorted(allp)[part::NPARTS] + print('affected pairs: 981 (#7630) + 42 = %d; part %d of %d tests %d pairs' % (len(allp), part + 1, NPARTS, len(mine))) + jobs = [(frames, a, b) for a, b in mine] + with multiprocessing.Pool(min(int(os.environ.get('CHECK_PROCS', '8')), multiprocessing.cpu_count())) as pool: + done = pool.map(_pair_job, jobs, chunksize=4) + require(len(done) == len(mine), 'all pairs of this part tested') + print('PASS columns part %d: %d chart pairs x (512 forward + 512 adjoint) exact Gaussian columns = %d, signed Pauli action,' + ' absolute phase, exact public ascent rank, wrong-phase rejection each' % (part + 1, len(done), len(done) * 1024)) + if part: + return + + def col_rejected(label, mutate): + try: + mutate() + except AssertionError as exc: + print('PASS control rejected: %s (%s)' % (label, str(exc)[:70])) + return + raise AssertionError('control not rejected: ' + label) + + def non_nested(): + pair_columns(frames, 260, 128) + require(not (span(frames[260]) < span(frames[128]) or span(frames[128]) < span(frames[260])), 'control pair is not nested') + col_rejected('column test rejects the non-nested pair (260,128)', non_nested) + exp_of = lambda a, b: dagger(frame_circuit(frames[a])) + frame_circuit(frames[b]) + newp = sorted(move_pairs(W) - move_pairs(B)) + for a, b in (newp[0], newp[-1]): + def tampered_recipe(a=a, b=b): + rec = lower(frame_op(frames[a]).dag().then(frame_op(frames[b]))) + rec['left']['offset'] ^= 1 + exp = exp_of(a, b) + require(tableau(recipe_circuit(rec)) == tableau(exp) and column(recipe_circuit(rec), 0) == column(exp, 0), 'recipe column 0') + col_rejected('column test rejects a (%d,%d) recipe with a shifted offset' % (a, b), tampered_recipe) + + def phase_only(a=a, b=b): + rec = lower(frame_op(frames[a]).dag().then(frame_op(frames[b]))) + require(column(recipe_circuit(rec) + (('phase', 2),), 0) == column(exp_of(a, b), 0), 'recipe column 0 phase') + col_rejected('column test rejects a (%d,%d) recipe with a global phase error' % (a, b), phase_only) + + +def run_controls(B, W): + RB = replay(B) + P0 = W['program'] + E = json.loads((DATA / 'edits.json').read_text()) + res = [] + + def outcome(P, X0, initial=None): + X = dict(X0) + X['program'] = P + if initial is not None: + X['initial'] = initial + try: + R = replay(X) + except AssertionError as ex: + return 'illegal: ' + str(ex) + if R['rows'] != RB['rows'] or R['cur'] != RB['cur']: + return 'rows/end charts differ (%d rows)' % sum(a != b for a, b in zip(R['rows'], RB['rows'])) + return None + + def test(label, P, X0=W, expect_reject=True, initial=None): + o = outcome(P, X0, initial) + require((o is not None) == expect_reject, 'control %s: %s' % (label, 'ACCEPTED' if o is None else 'REJECTED ' + o)) + if expect_reject: + res.append(1) + print('PASS control %s: %s %s' % ('rejected' if expect_reject else 'accepted', label, '(%s)' % o[:80] if o else ''), flush=True) + + def ix(ev, P=P0): + require(P.count(ev) == 1, 'control event present once: %r' % (ev,)) + return P.index(ev) + + def mod(f, base=P0): + P = list(base) + f(P) + return P + + dim = [len(f) for f in W['frames']] + ed = {e['id']: e for e in E['edits']} + test('new word (positive)', P0, expect_reject=False) + test('#7630 word itself (positive)', B['program'], B, expect_reject=False) + # inserted MOVEs of three composites (the merged ascent that skips the deleted stay) + def inserted_moves(cid): + return [x['event'] for x in ed[cid]['insert'] if x['event'][0] == 'MOVE'] + for n, cid in enumerate(('C1', 'C12', 'C22'), 1): + mv = inserted_moves(cid)[0] + test('%d %s inserted MOVE %s dropped' % (n, cid, mv), mod(lambda P, mv=mv: P.pop(ix(mv)))) + # relabelled operand: restore the pre-swap register in one ADD of C1 and in one of C7 + for n, cid in zip((4, 5), ('C1', 'C7')): + adds = [x['event'] for x in ed[cid]['insert'] if x['event'][0] == 'ADD'] + a = adds[-1] + alt = list(a) + alt[1 if a[1] in (ed[cid]['h1'], ed[cid]['h2']) else 2] = ed[cid]['h2'] if a[1 if a[1] in (ed[cid]['h1'], ed[cid]['h2']) else 2] == ed[cid]['h1'] else ed[cid]['h1'] + test('%d %s inserted ADD %s with the swapped register undone %s' % (n, cid, a, alt), mod(lambda P, a=a, alt=alt: P.__setitem__(ix(a), alt))) + # coefficient changes + for n, cid in zip((6, 7), ('C2', 'C9')): + a = next(x['event'] for x in ed[cid]['insert'] if x['event'][0] == 'ADD') + alt = list(a) + alt[3] = str(-Q(a[3])) + test('%d %s inserted ADD %s coefficient negated' % (n, cid, a), mod(lambda P, a=a, alt=alt: P.__setitem__(ix(a), alt))) + # ownership flag + mv = inserted_moves('C3')[0] + test('8 C3 inserted MOVE with ownership flag True', mod(lambda P: P.__setitem__(ix(mv), mv[:4] + [True]))) + v_add = next(i for i, e in enumerate(P0) if e[0] == 'ADD' and dim[e[4]] == 9) + z_add = next(i for i, e in enumerate(P0) if e[0] == 'ADD' and dim[e[4]] == 0) + test('9 first V-mix ADD coefficient doubled', mod(lambda P: P.__setitem__(v_add, P[v_add][:3] + [str(2 * Q(P[v_add][3]))] + P[v_add][4:]))) + test('10 first {0}-prefix ADD dropped', mod(lambda P: P.pop(z_add))) + # stay not taken: replace a merged MOVE of C5 (3 -> far chart) by its pre-edit first hop + old_first = next(e for i, e in ed['C5']['delete'] if e[0] == 'MOVE' and e[2] == 3) + mv = next(x['event'] for x in ed['C5']['insert'] if x['event'][0] == 'MOVE' and x['event'][2] == 3) + test('11 C5 stay re-taken: MOVE %s replaced by %s' % (mv, old_first), mod(lambda P: P.__setitem__(ix(mv), old_first))) + # bare deletion on #7630 (no relabel, no hub re-settle) + Bp = B['program'] + + def bare(P): + for i, ev in sorted(ed['C1']['delete'], reverse=True): + require(P[i] == ev, 'C1 event in #7630') + del P[i] + test('12 C1 deletions applied to #7630 without the relabel and without hub re-settle', mod(bare, Bp), B) + test('13 one C4 deletion alone applied to #7630', mod(lambda P: P.pop(ed['C4']['delete'][0][0]), Bp), B) + test('14 last event of the new word dropped', P0[:-1]) + require(len(res) == 14, '14 negative controls rejected') + print('PASS_CONTROLS_ON_7630: 14/14 negative controls rejected, 2 positives accepted') + + +def core(B, W): + E = json.loads((DATA / 'edits.json').read_text()) + require(B.keys() == W.keys() and all(B[k] == W[k] for k in B if k != 'program'), 'header identical (initial, final, frames, hosted, ports, owned_fields)') + print('PASS header: identical to #7630 (initial, final, frames, hosted, ports, live, owned_fields)') + require(len(E['edits']) == 22, '22 composites') + got, nd, ni = apply_interior(B, E) + ok = interior_test(W) + mine = [e for e in W['program'] if ok(e)] + require(got == mine, 'interior of the new word = #7630 interior + edit list') + hb = sum(1 for e in B['program'] if not ok(e)) + hw = sum(1 for e in W['program'] if not ok(e)) + print('PASS interior: %d interior events = #7630\'s %d - %d deleted + %d inserted (C1..C22); hub events (ADD/SCALE at {0} and V)' + ' %d -> %d; word %d -> %d events' % (len(mine), len(mine) - ni + nd, nd, ni, hb, hw, len(B['program']), len(W['program']))) + RB, R = replay(B), replay(W) + n = W['public'] + bad = [r for r in range(len(R['rows'])) if R['rows'][r] != RB['rows'][r]] + require(not bad, 'all rows equal #7630 (first differing %s)' % bad[:3]) + require(R['cur'] == RB['cur'], 'all end charts equal #7630') + M = mains(W) + require(all(R['rows'][r] == {r: Q(1)} for r in range(n) if r not in M), 'helpers end at identity') + require(all(not R['rows'][r] for r in range(n, len(R['rows']))), 'owned rows end empty') + require(R['owned_moves'] == RB['owned_moves'], 'owned MOVE multiset unchanged') + require(R['lifetimes'] == RB['lifetimes'] and sum(R['lifetimes'].values()) == 180, 'owned lifetimes (field, INIT chart, CLEAR chart) unchanged, 180') + require(R['peak'] == RB['peak'] == 50, 'owned peak 50') + ownseq = lambda X: [e for e in X['program'] if e[0] in ('INIT', 'CLEAR') or (e[0] == 'MOVE' and e[1] >= n)] + require(ownseq(B) == ownseq(W), 'owned INIT/CLEAR/MOVE sequence identical') + labels = {e[1] for e in W['program'] if e[0] == 'INIT'} + require(len(labels) == 68 == W['owned_fields'], '68 owned labels') + print('PASS exact replay: both words legal; all %d rows and end charts equal #7630, helpers identity, owned empty;' + ' owned MOVEs (%d), 180 lifetimes, peak 50 and 68 labels unchanged; owned INIT/CLEAR/MOVE sequence identical' % (len(R['rows']), sum(R['owned_moves'].values()))) + changed = sorted(r for r in range(n) if chain_route(R, W, r) != chain_route(RB, B, r)) + require(changed == sorted({r for ed in E['edits'] for r in (ed['h1'], ed['h2'])}) and len(changed) == 44, 'exactly the 44 helpers of C1..C22 change chains') + for ed in E['edits']: + for r in (ed['h1'], ed['h2']): + require(chain_route(RB, B, r) == ed['route_before'][str(r)] and chain_route(R, W, r) == ed['route_after'][str(r)], + '%s route of %d: %s -> %s' % (ed['id'], r, chain_route(RB, B, r), chain_route(R, W, r))) + require(all(B['initial'][r] == 3 and B['final'][r] == 127 for r in (ed['h1'], ed['h2'])), '%s: both swapped registers are helpers born at chart 3 ending at V' % ed['id']) + require(all(r not in M for r in (ed['h1'], ed['h2'])), '%s: both are helpers' % ed['id']) + newp, gone = sorted(move_pairs(W) - move_pairs(B)), sorted(move_pairs(B) - move_pairs(W)) + for a, b in newp: + require(R['sp'][a] < R['sp'][b], 'new pair %s strictly nested' % ((a, b),)) + print('PASS routes: exactly the 44 helpers of C1..C22 change chains, as listed; %d new MOVE pairs %s, all strictly nested; %d leave' + % (len(newp), newp, len(gone))) + sb, sw = RB['stats'], R['stats'] + require(sw['smooth'], 'replayed coefficients have 5-smooth denominators') + for q in literal_coeffs(W['program']): + o = q.denominator + for p in (2, 3, 5): + while o % p == 0: + o //= p + require(o == 1, 'literal coefficient has a 5-smooth denominator') + print('PASS coefficients: 5-smooth; replayed grid #7630 (2-adic exponent %d, odd lcm %d, numerator bits %d) -> new (%d, %d, %d);' + ' non-dyadic literal events %d -> %d' % (sb['max_den_exp'], sb['odd_den'], sb['max_num_bits'], sw['max_den_exp'], sw['odd_den'], + sw['max_num_bits'], nondyadic(B['program']), nondyadic(W['program']))) + pb, hb_ = native_counts(B) + pw, hw_ = native_counts(W) + dP, dT = diff(pb, pw), diff(hb_, hw_) + require(dP == {2: -18, 3: -6, 4: -20, 6: 20, 7: 2} and dT == {}, 'native deltas per call') + print('PASS native per call: paid MOVE delta %s (22 fewer MOVEs); helper target delta %s' % (dP, dT)) + inv0 = json.loads((DATA / 'invoice-7630.json').read_text()) + P0 = {k: inv0['paid'][k] for k in sorted(inv0['paid'], key=int)} + T0 = {k: inv0['targets'][k] for k in sorted(inv0['targets'], key=int)} + require(inv0 == invoice_json(P0, T0), 'invoice-7630.json is #7630\'s invoice in the official schema') + P, T = collections.Counter({int(k): v for k, v in P0.items()}), collections.Counter({int(k): v for k, v in T0.items()}) + for k, v in dP.items(): + P[k] += CALLS * v + for k, v in dT.items(): + T[k] += CALLS * v + require(min(P.values()) >= 0 and min(T.values()) >= 0, 'nonnegative counts') + Pn = {str(k): v for k, v in sorted(P.items()) if v} + Tn = {str(k): v for k, v in sorted(T.items()) if v} + Sf = lambda T_, P_: sum(int(k) * v for k, v in T_.items()) - sum(int(k) * v for k, v in P_.items()) + require(Sf(T0, P0) == Sf(Tn, Pn) == 1424, 'rank surplus S 1424 unchanged') + require(json.loads((DATA / 'invoice-new.json').read_text()) == invoice_json(Pn, Tn), 'invoice-new.json matches') + require(json.loads((DATA / 'invoice-zero.json').read_text()) == invoice_json({}, {}), 'zero invoice') + print('PASS complete invoice: paid positions %d -> %d, productive %d -> %d, S = 1424' % (sum(P0.values()), sum(Pn.values()), sum(T0.values()), sum(Tn.values()))) + k0, k1 = crossing(T0, P0), crossing(Tn, Pn) + require(decimal.Decimal('0.0036667343458') <= k0 <= decimal.Decimal('0.0036667343459'), '#7630 crossing reproduced') + print('PASS kappa #7630 %s' % k0) + print('PASS kappa new %s (ratio over #7630 %s)' % (k1, +decimal.Context(prec=12).divide(k1, k0))) + expected = json.loads((HERE / 'EXPECTED.json').read_text()) + require(str(k1)[:len(expected['kappa_prefix'])] == expected['kappa_prefix'], 'kappa digits as recorded') + require(decimal.Decimal(CLAIM) < k1 < decimal.Decimal(ABOVE), 'claim %s is below the exact crossing' % CLAIM) + print('PASS_CORE_ON_7630') + + +def main(): + B, W = load_words() + if MODE in ('core', 'all'): + core(B, W) + if MODE in ('certificates', 'all'): + certificates_section(B, W) + if MODE in ('controls', 'all'): + run_controls(B, W) + for i in range(NPARTS): + if MODE in ('columns%d' % (i + 1), 'all'): + columns_section(B, W, i) + print('PASS_COLUMNS_ON_7630_%d' % (i + 1)) + if MODE == 'all': + print('PASS_SWAP_COMPOSITES_ON_7630_EXACT (conditional on the same framework assumptions as #7630)') + + +if __name__ == '__main__': + main() diff --git a/research/p104-role379-idle-stop/retained/pr7636/data/affected-pairs-new.json b/research/p104-role379-idle-stop/retained/pr7636/data/affected-pairs-new.json new file mode 100644 index 0000000000..cf505bd95b --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7636/data/affected-pairs-new.json @@ -0,0 +1 @@ +[[1, 389], [1, 390], [2, 299], [3, 1], [3, 2], [3, 4], [3, 5], [3, 8], [3, 9], [3, 10], [3, 11], [3, 18], [3, 21], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 29], [3, 30], [3, 31], [3, 35], [3, 39], [3, 40], [3, 46], [3, 47], [3, 50], [3, 51], [3, 52], [3, 55], [3, 56], [3, 58], [3, 60], [3, 61], [3, 62], [3, 66], [3, 68], [3, 69], [3, 71], [3, 76], [3, 78], [3, 79], [3, 82], [3, 83], [3, 84], [3, 85], [3, 86], [3, 89], [3, 90], [3, 95], [3, 96], [3, 97], [3, 100], [3, 101], [3, 102], [3, 257], [3, 259], [3, 261], [3, 278], [3, 280], [3, 281], [3, 282], [3, 284], [3, 285], [3, 298], [3, 299], [3, 300], [3, 301], [3, 313], [3, 315], [3, 319], [3, 320], [3, 321], [3, 322], [3, 323], [3, 324], [3, 327], [3, 331], [3, 332], [3, 333], [3, 334], [3, 337], [3, 338], [3, 339], [3, 340], [3, 351], [3, 353], [3, 359], [3, 360], [3, 361], [3, 369], [3, 371], [3, 372], [3, 373], [3, 375], [3, 376], [3, 377], [3, 378], [3, 381], [3, 382], [3, 386], [3, 389], [3, 390], [3, 393], [3, 394], [3, 395], [3, 397], [3, 398], [3, 399], [3, 400], [3, 401], [3, 404], [3, 405], [3, 407], [3, 408], [3, 409], [3, 410], [3, 411], [3, 413], [3, 414], [3, 415], [3, 416], [3, 417], [3, 419], [3, 420], [3, 427], [3, 429], [3, 431], [3, 432], [3, 433], [3, 435], [3, 436], [3, 438], [3, 441], [3, 443], [3, 445], [3, 447], [3, 448], [3, 449], [3, 451], [3, 452], [3, 453], [3, 455], [3, 456], [3, 457], [3, 458], [3, 475], [3, 486], [3, 488], [3, 492], [3, 493], [3, 495], [3, 506], [3, 521], [3, 545], [3, 546], [3, 551], [3, 554], [3, 555], [3, 556], [3, 557], [3, 561], [3, 562], [3, 574], [3, 575], [3, 576], [3, 594], [3, 595], [3, 597], [3, 602], [3, 603], [3, 618], [3, 652], [3, 661], [3, 744], [3, 745], [3, 746], [3, 755], [3, 757], [3, 816], [3, 817], [3, 818], [3, 820], [3, 821], [3, 822], [3, 823], [3, 824], [3, 832], [3, 833], [3, 836], [3, 837], [3, 842], [3, 848], [3, 849], [3, 871], [3, 965], [3, 966], [3, 1053], [3, 1083], [4, 447], [4, 448], [5, 443], [7, 251], [8, 435], [9, 635], [9, 665], [10, 270], [10, 277], [11, 275], [18, 334], [21, 370], [23, 301], [24, 429], [24, 438], [24, 849], [25, 255], [26, 390], [27, 408], [27, 411], [29, 315], [30, 351], [31, 371], [31, 372], [35, 316], [39, 484], [40, 480], [40, 487], [42, 501], [46, 369], [47, 486], [50, 331], [51, 333], [51, 334], [52, 313], [55, 407], [56, 410], [58, 274], [60, 446], [61, 428], [62, 425], [66, 272], [68, 405], [69, 409], [69, 410], [70, 386], [71, 314], [76, 386], [76, 394], [78, 404], [78, 407], [79, 353], [82, 427], [83, 295], [83, 296], [84, 274], [85, 276], [85, 277], [86, 260], [89, 445], [90, 441], [90, 448], [93, 310], [95, 332], [95, 344], [96, 313], [97, 485], [100, 356], [101, 369], [101, 373], [101, 376], [102, 372], [128, 127], [129, 127], [131, 127], [133, 127], [134, 127], [137, 127], [139, 127], [140, 127], [141, 127], [142, 127], [143, 127], [145, 127], [147, 127], [149, 127], [152, 127], [153, 127], [155, 127], [156, 127], [158, 127], [162, 127], [163, 127], [165, 127], [167, 127], [172, 127], [174, 127], [176, 127], [178, 127], [181, 127], [183, 127], [184, 127], [186, 127], [188, 127], [190, 127], [192, 127], [194, 127], [196, 127], [200, 127], [201, 127], [202, 127], [204, 127], [206, 127], [207, 127], [209, 127], [210, 127], [212, 127], [214, 127], [215, 127], [218, 127], [221, 127], [225, 127], [227, 127], [229, 127], [238, 127], [245, 127], [246, 127], [251, 264], [255, 261], [257, 553], [257, 682], [259, 127], [259, 723], [260, 719], [260, 906], [261, 730], [261, 736], [264, 743], [270, 285], [272, 281], [274, 283], [274, 284], [275, 287], [276, 282], [277, 280], [277, 286], [278, 564], [278, 633], [280, 826], [280, 838], [280, 951], [280, 965], [281, 827], [281, 839], [281, 952], [281, 966], [282, 537], [282, 846], [282, 959], [282, 973], [283, 525], [283, 834], [283, 960], [283, 974], [284, 850], [284, 979], [284, 993], [284, 1074], [285, 851], [285, 866], [285, 980], [285, 994], [286, 857], [286, 873], [286, 985], [286, 999], [287, 858], [287, 874], [287, 986], [287, 1000], [295, 300], [296, 298], [298, 526], [298, 828], [298, 953], [298, 975], [299, 829], [299, 847], [299, 954], [299, 976], [300, 538], [300, 840], [300, 961], [300, 967], [301, 835], [301, 841], [301, 962], [301, 968], [310, 716], [313, 322], [313, 323], [313, 554], [314, 326], [315, 321], [315, 822], [316, 325], [319, 838], [320, 839], [321, 526], [321, 822], [322, 554], [322, 847], [323, 853], [323, 881], [323, 981], [323, 1007], [324, 1008], [324, 1075], [325, 863], [325, 889], [325, 985], [325, 1013], [326, 864], [326, 890], [326, 986], [326, 1014], [327, 783], [327, 907], [331, 338], [331, 817], [332, 340], [332, 555], [333, 339], [333, 823], [334, 337], [334, 343], [334, 816], [337, 816], [337, 846], [338, 525], [338, 817], [339, 823], [339, 840], [340, 555], [340, 841], [343, 855], [343, 979], [344, 856], [344, 892], [344, 980], [344, 1016], [351, 360], [351, 555], [353, 359], [353, 823], [356, 727], [359, 538], [359, 823], [360, 555], [360, 835], [361, 885], [361, 1009], [362, 1010], [362, 1076], [369, 378], [369, 379], [369, 554], [370, 382], [371, 377], [371, 822], [372, 375], [372, 381], [372, 816], [372, 871], [373, 618], [373, 733], [373, 913], [375, 537], [375, 816], [376, 817], [376, 834], [377, 822], [377, 828], [378, 554], [378, 829], [379, 877], [379, 1001], [379, 1007], [379, 1077], [380, 888], [380, 1008], [381, 871], [381, 893], [382, 872], [382, 894], [382, 994], [382, 1016], [386, 574], [386, 740], [386, 909], [389, 395], [389, 557], [390, 393], [390, 399], [390, 818], [390, 837], [393, 818], [393, 1074], [394, 127], [394, 819], [394, 866], [395, 557], [395, 875], [397, 881], [398, 1075], [399, 837], [399, 891], [400, 892], [401, 922], [401, 1062], [404, 521], [404, 913], [405, 414], [405, 821], [407, 416], [407, 417], [407, 824], [407, 836], [408, 420], [408, 833], [409, 415], [409, 556], [410, 413], [410, 419], [410, 820], [410, 832], [411, 575], [411, 912], [413, 820], [413, 873], [414, 821], [414, 874], [415, 556], [415, 867], [416, 824], [416, 868], [417, 836], [417, 883], [419, 832], [419, 889], [420, 833], [420, 890], [425, 432], [427, 433], [427, 556], [428, 437], [429, 576], [429, 770], [431, 850], [432, 819], [432, 851], [433, 556], [433, 859], [435, 842], [435, 885], [436, 1076], [437, 528], [437, 973], [438, 849], [438, 894], [441, 456], [441, 527], [443, 452], [443, 821], [445, 455], [445, 848], [446, 458], [447, 453], [447, 557], [448, 451], [448, 457], [448, 820], [449, 928], [449, 1065], [451, 820], [451, 857], [452, 821], [452, 858], [453, 557], [453, 612], [455, 848], [455, 1077], [456, 527], [456, 888], [457, 844], [457, 895], [457, 965], [458, 845], [458, 896], [458, 966], [475, 877], [480, 495], [484, 494], [485, 497], [486, 492], [486, 837], [487, 496], [488, 548], [488, 660], [492, 837], [492, 855], [493, 856], [494, 528], [495, 127], [495, 849], [495, 872], [496, 766], [497, 767], [501, 513], [506, 651], [506, 664], [513, 127], [513, 914], [521, 913], [521, 1029], [525, 127], [525, 974], [526, 127], [526, 975], [527, 976], [528, 127], [528, 973], [537, 127], [537, 959], [538, 127], [538, 961], [545, 665], [546, 548], [548, 127], [548, 660], [551, 553], [553, 127], [553, 682], [554, 946], [555, 948], [556, 947], [557, 945], [561, 657], [562, 564], [564, 127], [564, 633], [574, 909], [574, 1035], [575, 912], [575, 1036], [576, 770], [576, 1033], [594, 602], [594, 723], [594, 725], [594, 760], [594, 764], [594, 765], [594, 883], [595, 127], [595, 603], [595, 618], [595, 736], [597, 731], [597, 732], [602, 636], [602, 638], [602, 640], [602, 641], [602, 684], [602, 685], [602, 686], [602, 687], [602, 688], [602, 689], [603, 127], [612, 127], [618, 733], [618, 789], [618, 913], [631, 127], [631, 152], [633, 127], [633, 212], [635, 127], [635, 210], [636, 631], [636, 647], [638, 645], [638, 651], [640, 647], [641, 645], [645, 127], [645, 651], [647, 127], [647, 631], [649, 127], [649, 176], [651, 127], [651, 140], [651, 174], [652, 649], [652, 657], [657, 127], [657, 649], [660, 127], [660, 231], [661, 664], [664, 127], [664, 651], [665, 127], [665, 635], [674, 127], [674, 142], [682, 127], [682, 134], [682, 180], [684, 682], [684, 695], [685, 694], [685, 696], [686, 674], [686, 693], [687, 694], [688, 695], [689, 693], [693, 127], [693, 674], [694, 127], [694, 696], [695, 127], [695, 682], [696, 127], [696, 165], [716, 783], [716, 807], [719, 907], [723, 127], [723, 902], [725, 883], [727, 729], [729, 789], [729, 808], [730, 127], [730, 913], [731, 826], [732, 827], [733, 238], [736, 127], [736, 909], [740, 1062], [740, 1071], [743, 245], [743, 922], [744, 746], [744, 916], [745, 747], [746, 207], [746, 916], [747, 245], [747, 917], [755, 757], [755, 924], [757, 923], [757, 924], [760, 853], [764, 863], [765, 864], [766, 844], [767, 845], [770, 901], [783, 807], [783, 907], [789, 808], [789, 913], [807, 932], [808, 933], [816, 939], [817, 940], [818, 939], [819, 127], [819, 940], [820, 937], [821, 938], [822, 945], [823, 947], [824, 948], [826, 127], [826, 951], [827, 127], [827, 952], [828, 127], [828, 953], [829, 127], [829, 954], [832, 951], [833, 952], [834, 127], [834, 960], [835, 127], [835, 962], [836, 961], [837, 959], [838, 127], [838, 965], [839, 127], [839, 966], [840, 127], [840, 967], [841, 127], [841, 968], [842, 967], [844, 127], [844, 965], [845, 127], [845, 966], [846, 127], [846, 973], [847, 127], [847, 976], [848, 975], [849, 127], [849, 974], [850, 127], [850, 979], [851, 127], [851, 980], [853, 127], [853, 981], [855, 127], [855, 979], [856, 127], [856, 980], [857, 127], [857, 985], [858, 127], [858, 986], [859, 127], [863, 127], [863, 985], [864, 127], [864, 986], [866, 127], [866, 994], [867, 127], [868, 127], [871, 993], [872, 127], [872, 994], [873, 127], [873, 999], [874, 127], [874, 1000], [875, 127], [877, 127], [877, 1001], [881, 127], [881, 1007], [883, 127], [883, 1009], [885, 127], [885, 1009], [888, 127], [888, 1008], [889, 127], [889, 1013], [890, 127], [890, 1014], [891, 127], [892, 127], [892, 1016], [893, 1015], [894, 127], [894, 1016], [895, 127], [896, 127], [901, 246], [902, 127], [906, 127], [907, 127], [907, 177], [909, 127], [912, 127], [913, 127], [913, 147], [914, 245], [916, 127], [917, 245], [922, 195], [922, 245], [923, 127], [924, 127], [928, 186], [932, 128], [933, 152], [937, 137], [938, 184], [939, 184], [939, 212], [940, 137], [940, 192], [945, 200], [945, 210], [946, 194], [947, 210], [947, 214], [948, 194], [948, 200], [951, 127], [951, 156], [951, 162], [952, 127], [952, 139], [952, 143], [953, 127], [953, 156], [954, 127], [954, 139], [959, 127], [959, 145], [959, 178], [960, 127], [960, 221], [961, 127], [961, 163], [961, 178], [962, 127], [962, 221], [965, 127], [965, 149], [965, 206], [966, 127], [966, 218], [966, 227], [967, 127], [967, 206], [967, 227], [968, 127], [968, 218], [973, 127], [973, 158], [973, 229], [974, 127], [974, 147], [974, 172], [975, 127], [975, 147], [975, 158], [976, 127], [976, 172], [976, 229], [979, 127], [979, 129], [979, 153], [980, 127], [980, 133], [980, 181], [981, 127], [981, 181], [985, 127], [985, 183], [985, 196], [986, 127], [986, 155], [986, 204], [993, 127], [993, 188], [993, 209], [994, 127], [994, 201], [994, 215], [999, 127], [999, 131], [1000, 127], [1000, 190], [1001, 127], [1001, 186], [1007, 127], [1007, 176], [1007, 225], [1008, 127], [1008, 141], [1008, 165], [1009, 127], [1009, 165], [1009, 176], [1010, 127], [1010, 225], [1013, 127], [1013, 174], [1014, 127], [1014, 140], [1015, 142], [1016, 127], [1016, 140], [1016, 167], [1029, 1079], [1033, 1041], [1035, 1042], [1036, 1043], [1041, 246], [1042, 127], [1043, 127], [1053, 1083], [1062, 922], [1062, 1071], [1065, 928], [1071, 1082], [1074, 127], [1074, 993], [1075, 127], [1075, 1008], [1076, 127], [1076, 1010], [1077, 127], [1077, 1007], [1079, 127], [1082, 134], [1083, 202]] \ No newline at end of file diff --git a/research/p104-role379-idle-stop/retained/pr7636/data/clear-certificates.json b/research/p104-role379-idle-stop/retained/pr7636/data/clear-certificates.json new file mode 100644 index 0000000000..4728a0609e --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7636/data/clear-certificates.json @@ -0,0 +1 @@ +{"clear_event_index":{"121447":{"500":"-1","1072":"1"},"121449":{"307":"1"},"121854":{"510":"-1","1089":"1"},"121856":{"22":"1/4","23":"-3/4","320":"1/4","321":"-1/2","323":"-1","325":"1/2","330":"-1"},"122607":{"246":"1","510":"1"},"122613":{"262":"1","500":"1"},"122691":{"1477":"-1"},"122820":{"332":"-1","1094":"1"},"122822":{"22":"1/8","23":"1/8","320":"1/8","321":"1/4","323":"1/2","325":"1/4","330":"-1/2"},"122896":{"64":"1/8","385":"-1/4","387":"-1/2","389":"-1/4","394":"-1/2"},"122928":{"18":"1/4","39":"1/4","40":"1/4","288":"-1/4","289":"-1/2","291":"-1/2","298":"1"},"123037":{"17":"-5/8","103":"1/2","272":"-1/2","273":"-1/2","275":"-1","277":"1/2","282":"1"},"123046":{"512":"-1","1088":"1"},"123048":{"23":"-1/4","320":"-1/4","321":"-1/2","323":"-1","325":"1/2","330":"1"},"123200":{"354":"-1","1116":"1"},"123202":{"30":"1/4","353":"1/2","355":"-1","357":"-1/2","362":"-1"},"123205":{"64":"1/4","96":"1","385":"1/2","387":"-1","389":"-1/2","394":"-1"},"123272":{"64":"-1/4","65":"-1/2","96":"1/2","385":"-1/2","387":"-1","389":"1/2","394":"-1"},"123275":{"29":"-1/2","30":"-1/4","59":"1/2","353":"-1/2","355":"-1","357":"1/2","362":"-1"},"123695":{"343":"-1","1105":"1"},"123697":{"341":"1"},"123747":{"18":"1/4","39":"1/4","40":"1/4","288":"1/4","289":"1/2","291":"5/2","293":"-1","298":"-1"},"123754":{"23":"1/4","320":"1/4","321":"1/2","323":"1","325":"1/2","330":"-1","511":"-1","1084":"1"},"123758":{"23":"1/4","108":"1/2","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"-1"},"123790":{"18":"1/4","39":"-1/4","40":"1/4","288":"1/4","289":"-1/2","298":"-1"},"123872":{"342":"-1","1104":"1"},"123874":{"339":"1"},"123877":{"64":"-3/4","384":"-1/2","385":"-1/2","387":"-1","389":"1/2","394":"1"},"123940":{"30":"-1/4","59":"1/2","352":"-1/2","353":"-1/2","355":"-1","357":"1/2","362":"1"},"123943":{"8":"1/4","26":"1/4","368":"-3/4","369":"-1/2","371":"-1","373":"1/2","378":"1"},"123999":{"18":"1/4","39":"1/4","40":"1/4","288":"1/4","289":"1/2","293":"-1","298":"1"},"124009":{"35":"1/4","45":"1/4","107":"-1/4","304":"-1/4","305":"1/2","307":"-1","309":"-1/2","314":"1"},"124061":{"17":"-1/4","273":"1/2","275":"-1","277":"-1/2","282":"1"},"124068":{"513":"-1","1086":"1"},"124070":{"23":"1/4","108":"1/2","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"1"},"124309":{"104":"1/2","416":"-1/2","417":"1","421":"1/2","426":"2"},"124459":{"8":"1/8","26":"1/8","95":"-1/4","368":"-1/8","369":"-1/4","371":"1/2","373":"-1/4","378":"-1/2"},"125900":{"831":"1"},"126366":{"1082":"1"},"126501":{"30":"1/4","353":"1/2","355":"-1","357":"-1/2","362":"1"},"126508":{"30":"1/8","353":"-1/4","355":"-1/2","357":"-1/4","362":"-1/2"},"126518":{"30":"1/8","59":"-1/4","352":"1/4","353":"1/4","355":"1/2","357":"1/4","362":"-1/2"},"126525":{"30":"1/8","353":"-1/4","355":"1/2","357":"-1/4","362":"-1/2"},"126785":{},"127159":{"64":"-1/8","65":"-1/4","96":"3/8","385":"1/4","387":"-1/2","389":"1/4","394":"-1/2"},"127167":{"1343":"-1","1344":"-1","1346":"-1","1347":"-1"},"127944":{"18":"1","45":"1","61":"1","63":"1","103":"1","108":"1"},"128035":{"365":"1"},"128103":{"290":"1","1402":"1"},"128106":{"380":"1","424":"1"},"128116":{"278":"1"},"128295":{"169":"1","1470":"-1"},"128433":{"203":"1","1471":"-1"},"128485":{"88":"1"},"128527":{"451":"1"},"128577":{"628":"-2","630":"-2"},"128796":{"640":"-1/2","641":"-1/2"},"128853":{"913":"-1","927":"1"},"128897":{"228":"1"},"128909":{"674":"-2","712":"-1","714":"-1","883":"-2","1102":"4","1106":"2","1110":"2","1113":"-2","1224":"-2","1249":"4","1280":"4","1341":"-1","1342":"-1","1355":"4"},"128910":{"256":"1/4","336":"1/4"},"128911":{"256":"1/4","336":"1/4"},"128926":{"92":"1/4"},"128927":{"92":"1/4"},"128928":{"3":"1/4","26":"1/4","67":"1/8","721":"-1","723":"-1","775":"2","837":"4","942":"2","956":"-2","1134":"4","1138":"-2","1144":"-2"},"128929":{"3":"1/16","26":"1/16","67":"1/32","546":"1","721":"-1/4","723":"-1/4","775":"1/2","837":"1","942":"1/2","956":"-1/2","1105":"1","1134":"1","1137":"1","1138":"-1/2","1144":"-1/2"},"128930":{"3":"1/16","26":"1/16","67":"1/32","546":"1","721":"-1/4","723":"-1/4","775":"1/2","837":"1","942":"1/2","956":"-1/2","1105":"1","1134":"1","1137":"1","1138":"-1/2","1144":"-1/2"},"128931":{"3":"1/16","26":"1/16","67":"1/32","546":"1","721":"-1/4","724":"-1/4","725":"-1/4","775":"1/2","837":"1","942":"1/2","956":"-1/2","1105":"1","1134":"1","1137":"1","1138":"-1/2","1144":"-1/2","1390":"-1/4"},"128932":{"26":"1","95":"1/4","368":"1/4","381":"1","723":"1","724":"-1","725":"-1","865":"4","1390":"-1"},"128933":{"26":"1","95":"1/4","368":"1/4","381":"1","723":"1","724":"-1","725":"-1","865":"4","1390":"-1"},"128950":{"146":"-2","451":"1","496":"2","497":"-2","581":"-1","582":"-1","889":"-1","895":"1","897":"1","898":"-1","907":"1","919":"-1","1078":"1","1080":"1","1255":"1","1258":"1","1259":"1","1479":"1"},"128959":{"146":"-1/2"},"128960":{"41":"-3/4","42":"3/8","52":"2","106":"-15/16","240":"9/16","405":"-3/2","573":"-2","728":"-1/4","737":"1","813":"3/2","875":"-2","1154":"-2","1162":"3","1163":"-3","1168":"4","1173":"-2","1349":"-1","1353":"4","1365":"3/4","1373":"3/2","1380":"3/4","1385":"21/16","1392":"-3/8","1397":"-6","1448":"-3/4"},"128961":{"41":"1/4","42":"-1/8","106":"5/16","240":"-3/16","405":"1/2","728":"-1/4","813":"-1/2","1162":"-1","1163":"1","1365":"-1/4","1373":"-1/2","1380":"-1/4","1385":"-7/16","1392":"1/8","1397":"2","1448":"1/4"},"129005":{"223":"1","1469":"-1"},"129015":{"41":"1/4","42":"-1/8","106":"5/16","240":"-3/16","405":"1/2","728":"-1/4","813":"-1/2","1162":"-1","1163":"1","1365":"-1/4","1373":"-1/2","1380":"-1/4","1385":"-7/16","1392":"1/8","1397":"2","1448":"1/4"},"129055":{"572":"1"},"129060":{"338":"-1/4","674":"-1/2","712":"-1/4","714":"-1/4","883":"-1/2","1100":"1","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"},"129061":{"338":"-1/4","674":"-1/2","712":"-1/4","714":"-1/4","883":"-1/2","1100":"1","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"},"129062":{"338":"-1/4","674":"-1/2","712":"-1/4","714":"-1/4","863":"-2","883":"-1/2","1100":"1","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"},"129204":{"648":"1"},"129308":{},"129431":{"125":"1","1457":"-1"},"129452":{"139":"1","1474":"-1"},"129490":{"163":"1","1472":"-1"},"129497":{"201":"1","1465":"-1"},"129633":{"752":"-1","891":"1","937":"-1"},"129638":{"611":"1","613":"1","752":"1","891":"-1","937":"1"},"129645":{"476":"-1","489":"-1","524":"1","607":"-1","608":"-1/4","610":"3/4","611":"-1","612":"-1","613":"-1/2","770":"1","1277":"-1","1279":"2","1368":"-3","1374":"2"},"129874":{"128":"1","1476":"-1"},"129882":{"119":"1","1475":"-1"},"129885":{"154":"1","1458":"-1"},"130027":{"707":"4"},"130143":{"333":"1"},"130146":{"1466":"-1"},"130645":{"13":"1/4","41":"3/16","42":"-3/32","52":"-1/2","106":"15/64","240":"-9/64","402":"1/4","405":"3/8","573":"1/2","728":"1/16","737":"-1/2","813":"-3/8","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","1154":"1/2","1162":"-3/4","1163":"3/4","1168":"-1","1173":"1/2","1349":"1/4","1353":"-1","1365":"-3/16","1373":"-3/8","1380":"-3/16","1385":"-21/64","1392":"3/32","1397":"3/2","1448":"3/16","1474":"1/2"},"130646":{"13":"1/4","41":"-1/16","42":"1/32","52":"-1/2","106":"-5/64","240":"-13/64","402":"1/4","405":"-1/8","573":"1/2","728":"5/16","737":"-1/2","813":"1/8","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","1154":"1/2","1162":"1/4","1163":"-1/4","1168":"-1","1173":"1/2","1349":"1/4","1353":"-1","1365":"1/16","1373":"1/8","1380":"1/16","1385":"-9/64","1392":"-1/32","1397":"-1/2","1448":"-1/16","1474":"1/2"},"130647":{"13":"1/4","52":"-1/2","240":"-3/16","402":"1/4","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","1154":"1/2","1168":"-1","1173":"1/2","1349":"1/4","1353":"-1","1385":"-3/16","1448":"1/4","1474":"1/2"},"130807":{"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","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"},"130903":{"74":"1"},"131310":{"513":"1"},"131359":{"276":"1"},"131398":{"343":"-1/2"},"131445":{"254":"1","559":"-1/2"},"131449":{"526":"1"},"131462":{"248":"1","546":"-1/2"},"131470":{"280":"1","568":"-1/2"},"131477":{"284":"1","575":"-1/2"},"131486":{"292":"1","467":"1"},"131493":{"252":"1","558":"-1/2"},"131499":{"563":"1","1399":"1"},"131506":{"364":"1","1436":"1"},"131525":{"428":"1","564":"1"},"131550":{"263":"1","512":"1"},"131577":{"479":"1","527":"1"},"131599":{"461":"1","523":"-1/2"},"131660":{"502":"1","1138":"1"},"131691":{"302":"1","578":"-1/2"},"131699":{"349":"1"},"131762":{"1336":"1"},"131768":{"133":"3/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","896":"1","901":"1","929":"-1","962":"1","981":"1","1334":"-1","1336":"1/2","1337":"1","1340":"1/2","1362":"-1/2","1377":"2","1386":"3/2","1498":"2"},"131800":{"483":"-1","519":"-1","543":"-1","696":"-1","697":"1/4","698":"1/2","700":"1/2","702":"1","733":"1/2","767":"1/2","883":"1","892":"1","896":"1","901":"-1","924":"2","929":"-1","962":"1","981":"1","1334":"1","1337":"-1/2","1340":"1/2","1362":"2","1377":"-2","1386":"-1/2","1498":"-1"},"131801":{"133":"-1/2","483":"-1","519":"-1","543":"-1","696":"-1","697":"1/4","698":"1/2","700":"1/2","702":"1","733":"1/2","767":"1/2","883":"1","892":"1","896":"1","901":"-1","924":"2","929":"-1","962":"1","981":"1","1334":"1","1337":"-1/2","1340":"1/2","1362":"2","1377":"-2","1386":"-1/2","1498":"-1"},"131821":{"146":"4","228":"2","428":"-1","430":"-1","451":"-1","508":"2","565":"-1","581":"1","582":"1","637":"-1","922":"-1","925":"1","974":"1","983":"-1","1158":"-1/2","1160":"-1","1207":"2","1243":"-2","1400":"2","1479":"-3","1495":"-2"},"131874":{"38":"1","248":"-1","268":"-1","302":"1","546":"1/2","578":"-1/2","648":"-1","652":"-1","654":"-1","1449":"1","1450":"1"},"131988":{"165":"1","1473":"-1"},"132266":{"133":"-3","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","924":"2","986":"2","1334":"2","1336":"-1","1337":"-1","1362":"2","1377":"-4","1386":"-3","1498":"-2"},"132399":{"242":"1","499":"1"},"132452":{"576":"-1/2"},"132461":{"430":"1","565":"1"},"132481":{"359":"-1/2","1404":"1"},"132486":{"328":"1","573":"1"},"132524":{"529":"1"},"132531":{"247":"1","498":"1"},"132534":{"551":"1","1395":"1"},"132537":{"392":"1","1410":"1"},"132609":{"1466":"-1"},"132616":{"173":"1/2","476":"-1/4","489":"-1/4","524":"1/4","537":"1/4","607":"-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","1277":"-1/4","1279":"1/2","1280":"3/8","1368":"-3/4","1374":"1/2"},"132617":{"151":"1/2"},"132632":{"707":"4"},"132641":{"902":"-1/2","985":"-1/2"},"132658":{"294":"1","466":"1"},"132666":{"260":"1","501":"1"},"132669":{"295":"1","458":"1"},"132705":{"1481":"-1"},"132713":{},"132716":{"10":"1","547":"-1/2"},"132770":{"456":"1","474":"1"},"132807":{"300":"1","577":"-1/2"},"132835":{"173":"1"},"132984":{"244":"1","511":"1"},"132996":{"354":"-1/2","1405":"1"},"133384":{"366":"1","1435":"1"},"133460":{"457":"1","475":"1"},"133526":{"917":"-1"},"133534":{"28":"-1","129":"-1/2","150":"-1/2","286":"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","929":"-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","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","1291":"-1","1302":"-1","1303":"-1/2","1322":"-1","1323":"-1","1324":"1/2","1325":"1/2","1394":"1/2","1427":"-1"},"133607":{"60":"-4","151":"-2","528":"-4","623":"-1","625":"-1/2","626":"1","628":"2","629":"2","630":"2","768":"1/2"},"133639":{"334":"1","580":"1"},"133698":{"517":"1","553":"1"},"133924":{"1467":"-1"},"134615":{"438":"-1","585":"-1","769":"1"},"134638":{"41":"-1","42":"1/2","106":"-5/4","240":"3/4","405":"-2","728":"1","813":"2","1162":"4","1163":"-4","1365":"1","1373":"2","1380":"1","1385":"7/4","1392":"-1/2","1397":"-8","1448":"-1"},"134643":{"92":"1"},"134646":{"92":"1"},"134649":{"26":"-1","80":"-2","95":"1","368":"1","381":"4","723":"4","724":"-4","725":"-4","865":"16","1389":"-4","1390":"-4"},"134662":{"256":"1","336":"1","1342":"-2","1437":"2"},"134663":{"256":"1","336":"1","1342":"-2","1437":"2"},"134666":{"41":"-1","42":"1/2","106":"-5/4","240":"3/4","405":"-2","728":"1","813":"2","1162":"4","1163":"-4","1365":"1","1373":"2","1380":"1","1385":"7/4","1392":"-1/2","1397":"-8","1448":"-1"},"134677":{"9":"1","368":"1"},"134751":{},"134870":{"862":"-1"},"134876":{"7":"-1/2","87":"-1/2","226":"1","230":"1","473":"1","485":"1","496":"1","508":"1","521":"1","544":"1","779":"-1/2","857":"-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","1000":"-1/2","1206":"1","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","1466":"1","1477":"1","1490":"2"},"134904":{"998":"1"},"135238":{"22":"-1/2","23":"-1/2","49":"1","108":"-1","320":"-1/2","333":"-1","1492":"-2"},"135479":{"794":"-4","1082":"-1"},"136749":{"831":"-1","864":"-2","1025":"-2","1029":"-5/2"},"136921":{"998":"-1","1499":"1"},"136927":{},"136928":{},"137351":{"863":"1"}}} \ No newline at end of file diff --git a/research/p104-role379-idle-stop/retained/pr7636/data/invoice-new.json b/research/p104-role379-idle-stop/retained/pr7636/data/invoice-new.json new file mode 100644 index 0000000000..93129ac5c4 --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7636/data/invoice-new.json @@ -0,0 +1 @@ +{"schema": "integer-mult-recursive-invoice/v1", "contract": {"model": "mixed-target-unnormalized-power-v1", "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields", "ambient_rank": 145, "boundary": "complete signed #7113 caller application with 17 native calls"}, "paid": {"1": 68095, "2": 15589, "3": 10846, "4": 4624, "5": 6018, "6": 765, "7": 221, "8": 758, "9": 32, "16": 416, "24": 416, "32": 416, "40": 416, "48": 416, "56": 416, "64": 208}, "targets": {"1": 306, "2": 357, "3": 799, "4": 3825, "5": 1360, "6": 765, "7": 323, "8": 544, "9": 10854, "17": 416, "25": 416, "33": 416, "41": 416, "49": 416, "57": 416, "65": 416, "73": 208, "137": 208}} \ No newline at end of file diff --git a/research/p104-role379-idle-stop/retained/pr7636/data/word.json.gz b/research/p104-role379-idle-stop/retained/pr7636/data/word.json.gz new file mode 100644 index 0000000000..e53c2271bf Binary files /dev/null and b/research/p104-role379-idle-stop/retained/pr7636/data/word.json.gz differ diff --git a/research/p104-role379-idle-stop/retained/pr7658/NOTICE b/research/p104-role379-idle-stop/retained/pr7658/NOTICE new file mode 100644 index 0000000000..2baa2a719e --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7658/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-role379-idle-stop/retained/pr7658/check.py b/research/p104-role379-idle-stop/retained/pr7658/check.py new file mode 100644 index 0000000000..a37deac19f --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7658/check.py @@ -0,0 +1,1043 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Exact replay of five large-neighbourhood-search edits on the #7641 word (hubs re-derived). + +Standard library only. Written for this package; it imports no other package and runs no other author's code +(the #7641 word, its invoice and its column-test pair records are vendored as data). + +Modes (each is a separate VERIFY command): core, certificates, controls, columns1; all runs every mode. + +core + 1. Vendored #7641 word (data/base-7641-word.json.gz) and new word (data/word.json.gz): sha256 pinned. + 2. Header (initial, final, frames, hosted, ports, live, owned_fields) identical. + 3. Interior: every MOVE/INIT/CLEAR and every ADD/COPY/SCALE at a chart of dimension 1..8 of the new word equals #7641's + interior with the deletions and insertions of data/edits.json (edits E1..E5), event for event and in order. + Everything else (ADD/SCALE at the {0} chart and at V) is the re-derived joint hub. + 4. Both words replayed over the rationals from arbitrary inputs with full legality checks. All 1,569 rows and end charts + equal #7641's; helpers end at identity; owned rows empty; owned MOVE multiset and INIT/CLEAR/MOVE sequence unchanged; + 234 lifetimes, peak 50, the same labels (52 of the 68 allocated). Neither word has an exact-zero join. + 5. Routes: exactly the six registers of E1..E5 change chains, each from route_before to route_after; new MOVE pairs strictly nested. + 6. Coefficients 5-smooth; grid statistics printed. + 7. Complete invoice (17 native calls), S and kappa recomputed; #7641's crossing reproduced. +certificates exact CLEAR certificates for all 234 CLEARs of the new word (#7620's verify_certificates rule), 2 rejecting controls. +controls negative controls rejected; 2 positives accepted. +columns1 column tests on the 32-pair census: 512 forward + 512 adjoint exact Gaussian columns, signed Pauli + action, absolute phase, exact ascent rank, wrong-phase rejection; rejecting controls. +""" +import collections +import multiprocessing +import copy +import decimal +import gzip +import hashlib +import json +import os +import sys +from fractions import Fraction as Q +from pathlib import Path + +HERE = Path(__file__).resolve().parent +DATA = HERE / 'data' +BASE_SHA256 = 'de43ed04f58133eaef8f8d12a9dae1e6e8aa7f9721044200cc839673d86fd7c1' +WORD_SHA256 = 'dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9' +BASE_RAW_SHA256 = '6a472688bdf2a1b293df0f4f77427a04a1f87c92fedb5b5a6921cc850c272b4f' +CALLS = 17 +NPARTS = 1 +CENSUS_SIZE = 32 +CHANGED = (176, 236, 360, 370, 461, 537) +CLAIM, ABOVE = '0.0037167669978', '0.0037167669979' +DELTA_PAID = {1: -1, 2: -3, 3: -3, 4: -1, 5: 1, 6: 1, 9: 1} + + + +def require(cond, label): + if not cond: + raise AssertionError(label) + + +def load_gz(path): + return json.loads(gzip.decompress(path.read_bytes())) + + +def span(vectors): + s = {0} + for v in vectors: + require(type(v) is int and 0 < v < 512 and v not in s, 'frame vectors independent in F2^9') + s |= {x ^ v for x in s} + return frozenset(s) + + +def mains(W): + live = set(W['live']) + return live | {r + 112 for r in live} | set(W['hosted']['X2']) | set(W['hosted']['Y2']) + + +def replay(W): + """Exact replay; returns rows, end charts, MOVE chains and owned data. Raises on any illegality.""" + n, N = W['public'], W['public'] + W['owned_fields'] + sp = [span(f) for f in W['frames']] + rows = [{r: Q(1)} if r < n else {} for r in range(N)] + cur = list(W['initial']) + [None] * W['owned_fields'] + alive, chains, owned_moves = set(), collections.defaultdict(list), collections.Counter() + lifetimes, peak = collections.Counter(), 0 + init_chart = {} + stats = dict(max_den_exp=0, odd_den=1, max_num_bits=0, smooth=True) + + def note(q): + d = q.denominator + e = (d & -d).bit_length() - 1 + stats['max_den_exp'] = max(stats['max_den_exp'], e) + odd = d >> e + o = odd + for p in (3, 5): + while o % p == 0: + o //= p + if o != 1: + stats['smooth'] = False + if odd > 1 and stats['odd_den'] % odd: + stats['odd_den'] = stats['odd_den'] * odd // __import__('math').gcd(stats['odd_den'], odd) + stats['max_num_bits'] = max(stats['max_num_bits'], abs(q.numerator).bit_length()) + + for i, e in enumerate(W['program']): + op, r = e[0], e[1] + require(type(r) is int and 0 <= r < N, '%d register index' % i) + if op == 'MOVE': + a, b, flag = e[2], e[3], e[4] + require(type(flag) is bool and flag == (r >= n), '%d MOVE ownership flag' % i) + require(cur[r] == a, '%d MOVE from the current chart' % i) + if r >= n: + require(r in alive, '%d owned MOVE on a live field' % i) + require(sp[a] < sp[b] or sp[b] < sp[a], '%d owned MOVE nested' % i) + owned_moves[(a, b)] += 1 + else: + require(sp[a] < sp[b], '%d public MOVE strictly ascends' % i) + cur[r] = b + chains[r].append((a, b)) + elif op == 'INIT': + require(r >= n and r not in alive and len(e) == 3, '%d INIT of a dead owned field' % i) + alive.add(r); rows[r] = {}; cur[r] = e[2]; init_chart[r] = e[2] + peak = max(peak, len(alive)) + elif op == 'CLEAR': + require(r >= n and r in alive and cur[r] == e[2], '%d CLEAR at the current chart' % i) + lifetimes[(r, init_chart.pop(r), e[2])] += 1 + alive.discard(r); rows[r] = {}; cur[r] = None + elif op == 'SCALE': + q = Q(e[2]) + require(q != 0, '%d SCALE by zero' % i) + require(cur[r] == e[3] and (r < n or r in alive), '%d SCALE chart' % i) + rows[r] = {k: v * q for k, v in rows[r].items()} + for v in rows[r].values(): + note(v) + elif op in ('ADD', 'COPY'): + s, q, f = e[2], Q(e[3]), e[4] + require(type(s) is int and 0 <= s < N and s != r, '%d operand' % i) + require(q != 0, '%d zero coefficient' % i) + require(cur[r] == f and cur[s] == f, '%d ADD/COPY operands at chart %d' % (i, f)) + for x in (r, s): + require(x < n or x in alive, '%d owned field live' % i) + if op == 'COPY': + require(not rows[r], '%d COPY into a zero field' % i) + R = rows[r] + for k, v in rows[s].items(): + nv = R.get(k, 0) + q * v + if nv: + R[k] = nv + note(nv) + else: + R.pop(k, None) + else: + raise AssertionError('%d unknown op %r' % (i, op)) + require(not alive, 'every owned field cleared') + require(cur[:n] == list(W['final']), 'public fields end at final charts') + return dict(rows=rows, cur=cur, chains=chains, owned_moves=owned_moves, + lifetimes=lifetimes, peak=peak, sp=sp, stats=stats) + + +def crossing(T, P, digits=40): + """Root of F(C) = sum (T_r - P_r) r^(1-C) on [0.003, 0.0045] by bisection in 80-digit decimals.""" + D = decimal.Decimal + with decimal.localcontext(decimal.Context(prec=digits + 40)) as ctx: + ranks = sorted({int(r) for r in T} | {int(r) for r in P}) + terms = [(D(T.get(str(r), 0) - P.get(str(r), 0)) * r, D(r).ln()) for r in ranks] + + def F(C): + return sum((c * (-C * l).exp() for c, l in terms), D(0)) + lo, hi = D('0.003'), D('0.0045') + require(F(lo) > 0 > F(hi), 'crossing bracketed') + for _ in range(160): + mid = (lo + hi) / 2 + if F(mid) > 0: + lo = mid + else: + hi = mid + return decimal.Context(prec=digits).create_decimal(lo) + + +def invoice_json(P, T): + return {'schema': 'integer-mult-recursive-invoice/v1', + 'contract': {'model': 'mixed-target-unnormalized-power-v1', + 'rank_semantics': 'H_r costs r^(1-C); debit surrendered productive fields', + 'ambient_rank': 145, + 'boundary': 'complete signed #7113 caller application with 17 native calls'}, + 'paid': {k: P[k] for k in sorted(P, key=int)}, + 'targets': {k: T[k] for k in sorted(T, key=int)}} + + +def clears(W): + """Row content erased at every owned CLEAR, in program order.""" + n = W['public'] + rows = [{r: Q(1)} if r < n else {} for r in range(n + W['owned_fields'])] + out = [] + for e in W['program']: + op, r = e[0], e[1] + if op == 'INIT': + rows[r] = {} + elif op == 'CLEAR': + out.append((r, tuple(sorted(rows[r].items())))) + rows[r] = {} + elif op == 'SCALE': + rows[r] = {k: v * Q(e[2]) for k, v in rows[r].items()} + elif op in ('ADD', 'COPY'): + R = rows[r] + for k, v in rows[e[2]].items(): + nv = R.get(k, 0) + Q(e[3]) * v + if nv: + R[k] = nv + else: + R.pop(k, None) + return out + + + +def literal_coeffs(program): + return [Q(e[2]) for e in program if e[0] == 'SCALE'] + [Q(e[3]) for e in program if e[0] in ('ADD', 'COPY')] + + +def nondyadic(program): + return sum(1 for q in literal_coeffs(program) if q.denominator & (q.denominator - 1)) + + +# --------------------------------------------------------------------------- +# Column tests for every affected public chart pair (own implementation). +# A chart pair (a, b) is the operator F_a^dagger F_b of two nine-bit stabilizer +# frames (Gaussian-dyadic Clifford maps). For each pair this section (i) builds +# the circuit of F_a^dagger F_b directly from the frame definition, (ii) compiles +# it to the child recipe monomial . Fourier^r . monomial with r = dim b - dim a, +# (iii) requires the recipe and the direct circuit to agree in signed Pauli action +# and exact absolute phase, and (iv) compares all 512 forward and 512 adjoint +# Gaussian columns, then checks that a recipe with its absolute phase shifted is +# rejected. Gates: P (bit permutation), D (diagonal Z4 quadratic form), +# C (one Fourier line, (1+i)I/2 + (1-i)X/2), X (offset), phase (i^k). +# --------------------------------------------------------------------------- +NB = 9 +FULL = 1 << NB + + +def par(x): + return x.bit_count() & 1 + + +def rank2(rows): + piv = {} + for x in rows: + while x: + b = x.bit_length() - 1 + if b not in piv: + piv[b] = x + break + x ^= piv[b] + return len(piv) + + +def tr(rows, n=NB): + return tuple(sum(((rows[j] >> i) & 1) << j for j in range(n)) for i in range(n)) + + +def mvec(rows, x): + return sum(par(r & x) << i for i, r in enumerate(rows)) + + +def minv(rows, n=NB): + a = [r | (1 << (n + i)) for i, r in enumerate(rows)] + for j in range(n): + k = next(i for i in range(j, n) if a[i] >> j & 1) + a[j], a[k] = a[k], a[j] + for i in range(n): + if i != j and a[i] >> j & 1: + a[i] ^= a[j] + require([r & ((1 << n) - 1) for r in a] == [1 << i for i in range(n)], 'binary inverse') + return tuple(r >> n for r in a) + + +def extend(vecs, n=NB): + out = [] + for x in list(vecs) + [1 << i for i in range(n)]: + if rank2(out + [x]) > len(out): + out.append(x) + require(len(out) == n, 'basis extension') + return tuple(out) + + +def qform(Qr, al, x): + return (sum(al[i] for i in range(NB) if x >> i & 1) + + 2 * sum(par((Qr[i] >> (i + 1)) & (x >> (i + 1))) for i in range(NB) if x >> i & 1)) % 4 + + +def dagger(circ): + out = [] + for g in reversed(circ): + t = g[0] + if t == 'P': + out.append(('P', minv(g[1]))) + elif t == 'D': + out.append(('D', g[1], tuple(-a % 4 for a in g[2]))) + elif t == 'C': + out.append(('C', g[1], -g[2])) + elif t == 'phase': + out.append(('phase', -g[1] % 4)) + else: + out.append(g) + return tuple(out) + + +def fourier(r): + return tuple(('C', 1 << i, 1) for i in range(r)) + + +def frame_circuit(vecs): + r = len(vecs) + if r == 0: + return () + if r == NB: + return fourier(NB) + G = tr(extend(vecs)) + gi = tr(minv(G)) + Qr = tuple((1 << i) ^ sum(par(a & b) << j for j, b in enumerate(gi)) for i, a in enumerate(gi)) + chart = (('P', G), ('D', Qr, tuple((row >> i) & 1 for i, row in enumerate(Qr)))) + return dagger(chart) + fourier(r) + chart + + +def tableau(circ): + rows = [(1 << i, 0, 0) for i in range(NB)] + [(0, 1 << i, 0) for i in range(NB)] + for g in circ: + t = g[0] + out = [] + it = tr(minv(g[1])) if t == 'P' else None + for x, z, p in rows: + if t == 'P': + x, z = mvec(g[1], x), mvec(it, z) + elif t == 'X': + p += 2 * par(z & g[1]) + elif t == 'C': + if par(z & g[1]): + x ^= g[1] + p += 3 * g[2] + elif t == 'D': + p += sum(g[2][i] for i in range(NB) if x >> i & 1) + p += 2 * sum(par((g[1][i] >> (i + 1)) & (x >> (i + 1))) for i in range(NB) if x >> i & 1) + z ^= mvec(g[1], x) + else: + require(t == 'phase', 'gate type') + out.append((x, z, p % 4)) + rows = out + return tuple(rows) + + +_ACT = {} + + +def dact(g): + if g not in _ACT: + _ACT[g] = tuple(qform(g[1], g[2], x) for x in range(FULL)) + return _ACT[g] + + +def rot(pr, k): + a, b = pr + return ((a, b), (-b, a), (-a, -b), (b, -a))[k % 4] + + +def column(circ, basis=0): + """Exact Gaussian-dyadic column: ({address: (re, im)}, denominator exponent), value = num / 2^(den/2) ... .""" + val, den = {basis: (1, 0)}, 0 + for g in circ: + t = g[0] + res = {} + if t == 'C': + d, s = g[1], g[2] + for ad, (a, b) in val.items(): + for tg, pr in ((ad, (a - s * b, b + s * a)), (ad ^ d, (a + s * b, b - s * a))): + o = res.get(tg, (0, 0)) + res[tg] = (o[0] + pr[0], o[1] + pr[1]) + den += 1 + else: + for ad, pr in val.items(): + if t == 'P': + tg = mvec(g[1], ad) + elif t == 'X': + tg = ad ^ g[1] + elif t == 'D': + tg = ad + pr = rot(pr, dact(g)[ad]) + else: + require(t == 'phase', 'gate type') + tg = ad + pr = rot(pr, g[1]) + require(tg not in res, 'monomial map injective') + res[tg] = pr + val = {ad: pr for ad, pr in res.items() if pr != (0, 0)} + while den and all((a | b) % 2 == 0 for a, b in val.values()): + den -= 1 + val = {ad: (a // 2, b // 2) for ad, (a, b) in val.items()} + return val, den + + +def monomial_circuit(rec): + M, Qr, al = tuple(rec['matrix_rows']), tuple(rec['quadratic_rows']), tuple(rec['linear_Z4']) + require(tr(Qr) == Qr and all(al[i] % 2 == (Qr[i] >> i) & 1 for i in range(NB)), 'diagonal form') + minv(M) + return (('D', Qr, al), ('P', M), ('X', rec['offset']), ('phase', rec['phase'])) + + +def recipe_circuit(rec): + if rec['rank'] == 0: + return monomial_circuit(rec['left']) + return monomial_circuit(rec['right']) + fourier(rec['rank']) + monomial_circuit(rec['left']) + + +# compiler: symplectic tableau algebra used to produce the recipe +def pmul(a, b): + x, z, p = a + y, w, q = b + return x ^ y, z ^ w, (p + q + 2 * par(z & y)) % 4 + + +def tapply(T, pa): + x, z, ph = pa + out = (0, 0, ph) + for i in range(NB): + if x >> i & 1: + out = pmul(out, T[i]) + for i in range(NB): + if z >> i & 1: + out = pmul(out, T[NB + i]) + return out + + +def tcompose(A, B): + return tuple(tapply(A, p) for p in B) + + +def tidentity(): + return tuple([(1 << i, 0, 0) for i in range(NB)] + [(0, 1 << i, 0) for i in range(NB)]) + + +def tinverse(T): + cols = [x | (z << NB) for x, z, p in T] + ci = tr(minv(tr(cols, 2 * NB), 2 * NB), 2 * NB) + out = [] + for j, w in enumerate(ci): + x, z = w & (FULL - 1), w >> NB + u, v, p = tapply(T, (x, z, 0)) + require((u, v) == tidentity()[j][:2], 'tableau inverse') + out.append((x, z, -p % 4)) + return tuple(out) + + +class Op: + def __init__(s, tab, circ): + s.tab, s.circ = tab, tuple(circ) + + def then(s, o): + return Op(tcompose(o.tab, s.tab), s.circ + o.circ) + + def dag(s): + return Op(tinverse(s.tab), dagger(s.circ)) + + +def op_perm(G): + cols, gi = tr(G), minv(G) + return Op(tuple([(a, 0, 0) for a in cols] + [(0, a, 0) for a in gi]), [('P', tuple(G))]) + + +def op_diag(Qr, al=None): + Qr = tuple(Qr) + al = tuple(al) if al is not None else tuple((Qr[i] >> i) & 1 for i in range(NB)) + return Op(tuple([(1 << i, Qr[i], al[i]) for i in range(NB)] + [(0, 1 << i, 0) for i in range(NB)]), [('D', Qr, al)]) + + +def op_c(q, s=1): + return Op(tuple([(1 << i, 0, 0) for i in range(NB)] + + [(q if q >> i & 1 else 0, 1 << i, (3 * s) % 4 if q >> i & 1 else 0) for i in range(NB)]), [('C', q, s)]) + + +def op_x(b): + return Op(tuple([(1 << i, 0, 0) for i in range(NB)] + [(0, 1 << i, 2 * ((b >> i) & 1)) for i in range(NB)]), [('X', b)]) + + +def op_id(): + return Op(tidentity(), []) + + +def op_four(axes): + o = op_id() + for i in axes: + o = o.then(op_c(1 << i)) + return o + + +def op_had(axes): + S = op_diag(tuple(1 << i if i in axes else 0 for i in range(NB))) + return S.then(op_four(axes)).then(S) + + +def frame_op(vecs): + r = len(vecs) + if r == 0: + return op_id() + if r == NB: + return op_four(range(NB)) + G = tr(extend(vecs)) + gi = tr(minv(G)) + Qr = tuple((1 << i) ^ sum(par(a & b) << j for j, b in enumerate(gi)) for i, a in enumerate(gi)) + K = op_perm(G).then(op_diag(Qr)) + return K.dag().then(op_four(range(r))).then(K) + + +def split_monomial(op): + T = op.tab + require(all(x == 0 and p % 2 == 0 for x, z, p in T[NB:]), 'monomial tableau') + G = tr([x for x, z, p in T[:NB]]) + b = mvec(G, sum((p // 2) << i for i, (x, z, p) in enumerate(T[NB:]))) + cols = [mvec(tr(G), z) for x, z, p in T[:NB]] + Qr = tr(cols) + al = [(p - 2 * par(b & z)) % 4 for x, z, p in T[:NB]] + out = op_diag(Qr, al).then(op_perm(G)).then(op_x(b)) + require(out.tab == T, 'monomial rebuilt') + val, den = column(op.circ) + require(den == 0 and all(v == (0, 0) for a, v in val.items() if a != b), 'monomial column') + ph = [(1, 0), (0, 1), (-1, 0), (0, -1)].index(val[b]) + out = out.then(Op(tidentity(), [('phase', ph)])) + return out, dict(matrix_rows=G, offset=b, quadratic_rows=Qr, linear_Z4=al, phase=ph) + + +def lower(op): + Bc = [x for x, z, p in op.tab[NB:]] + r = rank2(Bc) + if not r: + mon, rec = split_monomial(op) + return dict(rank=0, left=rec, right=None) + G = tr(extend(Bc)) + A = minv(G) + PA = op_perm(A) + part = op.then(PA) + Bc = [x for x, z, p in part.tab[NB:]] + Dc = [z for x, z, p in part.tab[NB:]] + picks, sel = [], [] + for j, x in enumerate(Bc): + if rank2(sel + [x]) > len(sel): + picks.append(j) + sel.append(x) + require(len(picks) == r and all(x >> r == 0 for x in Bc), 'rank selection') + Br = tr(sel, r) + Bi = minv(Br, r) + Dr = tr([Dc[j] & ((1 << r) - 1) for j in picks], r) + Qs = tuple(sum(par(row & col) << j for j, col in enumerate(tr(Bi, r))) for row in Dr) + DQ = op_diag(Qs + (0,) * (NB - r)) + V = part.then(DQ).then(op_had(range(r))) + require(all(x == 0 for x, z, p in V.tab[NB:]), 'V monomial') + Vm, _ = split_monomial(V) + S = op_diag(tuple(1 << i if i < r else 0 for i in range(NB))) + left = S.dag().then(DQ.dag()).then(PA.dag()) + right = Vm.then(S.dag()).then(op_x((1 << r) - 1)) + lm, lrec = split_monomial(left) + rm, rrec = split_monomial(right) + comp = rm.then(op_four(range(r))).then(lm) + require(comp.tab == op.tab and column(comp.circ) == column(op.circ), 'recipe reproduces the pair operator') + return dict(rank=r, left=lrec, right=rrec) + + +def pair_columns(frames, a, b, wrong_phase=True): + """Full column test of the chart pair (a, b); returns its rank.""" + U, V = frames[a], frames[b] + rec = lower(frame_op(U).dag().then(frame_op(V))) + require(rec['rank'] == len(V) - len(U), 'exact public ascent rank of pair %s' % ((a, b),)) + expected = dagger(frame_circuit(U)) + frame_circuit(V) + actual = recipe_circuit(rec) + require(tableau(actual) == tableau(expected), 'signed Pauli action of pair %s' % ((a, b),)) + for x, y in ((actual, expected), (dagger(actual), dagger(expected))): + for c in range(FULL): + require(column(x, c) == column(y, c), 'Gaussian column %d of pair %s' % (c, (a, b))) + if wrong_phase: + bad = actual + (('phase', 1),) + require(tableau(bad) == tableau(actual) and column(bad) != column(expected), 'wrong absolute phase rejected') + return rec['rank'] + + + +# --------------------------------------------------------------------------- +# --------------------------------------------------------------------------- +# Package-specific checks. +# --------------------------------------------------------------------------- +MODES = ('all', 'core', 'certificates', 'controls') + tuple('columns%d' % i for i in range(1, NPARTS + 1)) +MODE = sys.argv[1] if len(sys.argv) > 1 else 'all' +require(MODE in MODES, 'mode is one of ' + ', '.join(MODES)) +CALLER_EXTRA_PAID = {'1': 384, '8': 656, '9': 32, '16': 416, '24': 416, '32': 416, '40': 416, '48': 416, '56': 416, '64': 208} +CALLER_EXTRA_TARGETS = {'9': 416, '17': 416, '25': 416, '33': 416, '41': 416, '49': 416, '57': 416, '65': 416, '73': 208, '137': 208} + + +def load_words(): + base_raw = (DATA / 'base-7641-word.json.gz').read_bytes() + require(hashlib.sha256(base_raw).hexdigest() == BASE_SHA256, 'vendored #7641 word bytes') + word_raw = (DATA / 'word.json.gz').read_bytes() + require(hashlib.sha256(word_raw).hexdigest() == WORD_SHA256, 'new word bytes') + base = json.loads(gzip.decompress(base_raw)) + require(hashlib.sha256(gzip.decompress(base_raw)).hexdigest() == BASE_RAW_SHA256, 'decompressed #7641 word hash') + return base, json.loads(gzip.decompress(word_raw)) + + +def interior_test(W): + dim = [len(f) for f in W['frames']] + + def ok(e): + if e[0] in ('ADD', 'COPY'): + return 0 < dim[e[4]] < 9 + if e[0] == 'SCALE': + return 0 < dim[e[3]] < 9 + return True + return ok + + +def apply_interior(B, E): + """#7641's interior subsequence with the listed deletions and insertions (inserts ordered by seq).""" + ok, P = interior_test(B), B['program'] + dele, ins = {}, collections.defaultdict(list) + allins = [] + for ed in E['edits']: + for i, ev in ed['delete']: + require(P[i] == ev and ok(ev) and i not in dele, '%s deletion %d matches an interior base event' % (ed['id'], i)) + dele[i] = ev + allins.extend(ed['insert']) + require(sorted(x['seq'] for x in allins) == list(range(len(allins))), 'insert sequence numbers') + for x in sorted(allins, key=lambda x: x['seq']): + require(ok(x['event']), 'insertion is interior') + ins[x['before']].append(x['event']) + keys, k, out = sorted(ins), 0, [] + for i, e in enumerate(P): + if not ok(e): + continue + while k < len(keys) and keys[k] <= i: + out.extend(ins[keys[k]]) + k += 1 + if i not in dele: + out.append(e) + for key in keys[k:]: + out.extend(ins[key]) + return out, len(dele), sum(len(v) for v in ins.values()) + + +def chain_route(RX, X, r): + ch = RX['chains'].get(r, []) + return [ch[0][0]] + [b for a, b in ch] if ch else [X['initial'][r]] + + +def routes_of(X): + out = collections.defaultdict(list) + for e in X['program']: + if e[0] == 'MOVE' and e[1] < X['public']: + out[e[1]].append((e[2], e[3])) + return out + + +def move_pairs(X): + return {(e[2], e[3]) for e in X['program'] if e[0] == 'MOVE'} + + +def public_move_pairs(X): + return {(e[2], e[3]) for e in X['program'] if e[0] == 'MOVE' and e[1] < X['public']} + + +def native_counts(W): + dim = [len(f) for f in W['frames']] + paid = collections.Counter(abs(dim[e[3]] - dim[e[2]]) for e in W['program'] if e[0] == 'MOVE') + M, n = mains(W), W['public'] + helpers = collections.Counter(dim[W['final'][r]] - dim[W['initial'][r]] for r in range(n) if r not in M) + return paid, helpers + + +def diff(a, b): + d = collections.Counter(b) + d.subtract(a) + return {k: v for k, v in sorted(d.items()) if v} + + +def zero_joins(W): + """Exact-zero joins: an owned row that becomes exactly 0 after a non-INIT op and is written again (ADD from a nonzero + operand) before its CLEAR. Returns [(field, event index where it became zero, event index of the refill)].""" + n = W['public'] + rows = {r: {r: Q(1)} for r in range(n)} + zero, joins = {}, [] + for t, e in enumerate(W['program']): + op = e[0] + if op == 'INIT': + rows[e[1]] = {} + zero.pop(e[1], None) + elif op == 'CLEAR': + rows.pop(e[1], None) + zero.pop(e[1], None) + elif op == 'ADD': + x, y, q = e[1], e[2], Q(e[3]) + R = rows[x] + if x in zero and any(rows[y].values()): + joins.append((x, zero.pop(x), t)) + for k, v in rows[y].items(): + s = R.get(k, 0) + q * v + if s: + R[k] = s + else: + R.pop(k, None) + if x >= n and not R: + zero[x] = t + elif op == 'SCALE': + q = Q(e[2]) + rows[e[1]] = {k: q * v for k, v in rows[e[1]].items()} + if q == 0 and e[1] >= n: + zero[e[1]] = t + elif op == 'COPY': + rows[e[1]] = dict(rows[e[2]]) + return joins + + +def verify_certificates(W, certs): + """#7620's verify_certificates rule at every CLEAR: erased row == sum of certificate coefficients times rows of live + registers other than the cleared field, exactly. A zero row needs the empty certificate. Returns per-CLEAR sizes and failures.""" + n = W['public'] + rows = [{r: Q(1)} if r < n else {} for r in range(n + W['owned_fields'])] + live, sizes, bad, seen = set(range(n)), [], [], 0 + for i, e in enumerate(W['program']): + op, r = e[0], e[1] + if op == 'INIT': + live.add(r) + rows[r] = {} + elif op == 'CLEAR': + seen += 1 + c = certs.get(str(i)) + okc = c is not None + if okc: + cert = {int(k): Q(v) for k, v in c.items()} + okc = all(k in live and k != r for k in cert) + s = {} + for k, cf in cert.items(): + for t, v in rows[k].items(): + s[t] = s.get(t, 0) + cf * v + okc = okc and {t: v for t, v in s.items() if v} == rows[r] + sizes.append(len(cert)) + if not okc: + bad.append(i) + rows[r] = {} + live.discard(r) + elif op == 'SCALE': + rows[r] = {k: v * Q(e[2]) for k, v in rows[r].items()} + elif op != 'MOVE': + R = rows[r] + for k, v in rows[e[2]].items(): + nv = R.get(k, 0) + Q(e[3]) * v + if nv: + R[k] = nv + else: + R.pop(k, None) + require(seen == len(certs), 'one certificate per CLEAR and no other') + return sizes, bad + + +def certificates_section(B, W): + certs = json.loads((DATA / 'clear-certificates.json').read_text())['clear_event_index'] + require(len(certs) == 234, '234 certificates') + sizes, bad = verify_certificates(W, certs) + require(not bad and len(sizes) == 234, 'every CLEAR certified (failures at %s)' % bad[:5]) + nz = sum(1 for s in sizes if s) + cb, cw = clears(B), clears(W) + same = sum(1 for a, b in zip(cb, cw) if a == b) + print('PASS CLEAR certificates: all 234 CLEARs of the new word erase an exact combination of other live registers' + ' (#7620 verify_certificates rule; %d nonzero rows, certificate sizes %d..%d; %d zero rows with the empty certificate);' + ' %d of the base word\'s 234 CLEAR contents are unchanged in the new word, the rest change with the re-derived hub content' + % (nz, min(s for s in sizes if s), max(sizes), 234 - nz, same)) + k = next(i for i, c in certs.items() if c) + X = copy.deepcopy(certs) + f0 = next(iter(X[k])) + X[k][f0] = str(Q(X[k][f0]) + 1) + require(int(k) in verify_certificates(W, X)[1], 'corrupted coefficient rejected') + Y = copy.deepcopy(certs) + r = W['program'][int(k)][1] + Y[k][str(r)] = Y[k].pop(f0) + require(int(k) in verify_certificates(W, Y)[1], 'cleared field as a term rejected') + print('PASS certificate controls: corrupted coefficient (CLEAR at event %s) rejected; cleared field as a term rejected' % k) + print('PASS_CERTIFICATES_ON_7641') + + +def changed_registers(B, W): + rb, rw = routes_of(B), routes_of(W) + return rb, rw, [r for r in range(W['public']) if rb[r] != rw[r]] + + +def census(B, W): + """Column-test census: every old- and new-route pair of the six changed registers and every new MOVE pair.""" + rb, rw, changed = changed_registers(B, W) + E = json.loads((DATA / 'edits.json').read_text()) + listed = sorted({r for ed in E['edits'] for r in ed['registers']}) + require(changed == listed == sorted(CHANGED), 'changed routes are exactly the six registers of E1..E5') + allp = {q for r in changed for q in rb[r] + rw[r]} | (move_pairs(W) - move_pairs(B)) + filep = {tuple(p) for p in json.loads((DATA / 'affected-pairs-new.json').read_text())} + require(allp == filep and len(allp) == CENSUS_SIZE, 'census is %d pairs' % CENSUS_SIZE) + require(move_pairs(W) - move_pairs(B) <= allp and len(move_pairs(W) - move_pairs(B)) == 4, 'all 4 new MOVE pairs are tested') + return None, allp + + +def _pair_job(args): + frames, a, b = args + return (a, b, pair_columns(frames, a, b)) + + +def columns_section(B, W, part): + p0, allp = census(B, W) + frames = [tuple(f) for f in W['frames']] + mine = sorted(allp)[part::NPARTS] + print('census: old and new route pairs of the six changed registers plus the 4 new MOVE pairs = %d; part %d of %d tests %d pairs' + % (len(allp), part + 1, NPARTS, len(mine))) + jobs = [(frames, a, b) for a, b in mine] + with multiprocessing.Pool(min(int(os.environ.get('CHECK_PROCS', '8')), multiprocessing.cpu_count())) as pool: + done = pool.map(_pair_job, jobs, chunksize=4) + require(len(done) == len(mine), 'all pairs of this part tested') + print('PASS columns part %d: %d chart pairs x (512 forward + 512 adjoint) exact Gaussian columns = %d, signed Pauli action,' + ' absolute phase, exact public ascent rank, wrong-phase rejection each' % (part + 1, len(done), len(done) * 1024)) + if part: + return + + def col_rejected(label, mutate): + try: + mutate() + except AssertionError as exc: + print('PASS control rejected: %s (%s)' % (label, str(exc)[:70])) + return + raise AssertionError('control not rejected: ' + label) + + def non_nested(): + pair_columns(frames, 260, 128) + require(not (span(frames[260]) < span(frames[128]) or span(frames[128]) < span(frames[260])), 'control pair is not nested') + col_rejected('column test rejects the non-nested pair (260,128)', non_nested) + exp_of = lambda a, b: dagger(frame_circuit(frames[a])) + frame_circuit(frames[b]) + newp = sorted(move_pairs(W) - move_pairs(B)) + for a, b in (newp[0], newp[-1]): + def tampered_recipe(a=a, b=b): + rec = lower(frame_op(frames[a]).dag().then(frame_op(frames[b]))) + rec['left']['offset'] ^= 1 + exp = exp_of(a, b) + require(tableau(recipe_circuit(rec)) == tableau(exp) and column(recipe_circuit(rec), 0) == column(exp, 0), 'recipe column 0') + col_rejected('column test rejects a (%d,%d) recipe with a shifted offset' % (a, b), tampered_recipe) + + def phase_only(a=a, b=b): + rec = lower(frame_op(frames[a]).dag().then(frame_op(frames[b]))) + require(column(recipe_circuit(rec) + (('phase', 2),), 0) == column(exp_of(a, b), 0), 'recipe column 0 phase') + col_rejected('column test rejects a (%d,%d) recipe with a global phase error' % (a, b), phase_only) + + +def run_controls(B, W): + RB = replay(B) + P0 = W['program'] + E = json.loads((DATA / 'edits.json').read_text()) + res = [] + + def outcome(P, X0, initial=None): + X = dict(X0) + X['program'] = P + if initial is not None: + X['initial'] = initial + try: + R = replay(X) + except AssertionError as ex: + return 'illegal: ' + str(ex) + if R['rows'] != RB['rows'] or R['cur'] != RB['cur']: + return 'rows/end charts differ (%d rows)' % sum(a != b for a, b in zip(R['rows'], RB['rows'])) + return None + + def test(label, P, X0=W, expect_reject=True, initial=None): + o = outcome(P, X0, initial) + require((o is not None) == expect_reject, 'control %s: %s' % (label, 'ACCEPTED' if o is None else 'REJECTED ' + o)) + if expect_reject: + res.append(1) + print('PASS control %s: %s %s' % ('rejected' if expect_reject else 'accepted', label, '(%s)' % o[:80] if o else ''), flush=True) + + def ix(ev, P=P0): + require(P.count(ev) == 1, 'control event present once: %r' % (ev,)) + return P.index(ev) + + def mod(f, base=P0): + P = list(base) + f(P) + return P + + dim = [len(f) for f in W['frames']] + ed = {e['id']: e for e in E['edits']} + test('new word (positive)', P0, expect_reject=False) + test('#7641 word itself (positive)', B['program'], B, expect_reject=False) + + def ins(cid, op, reg=None): + return [x['event'] for x in ed[cid]['insert'] if x['event'][0] == op and (reg is None or x['event'][1] == reg)] + mv = ins('E1', 'MOVE', 537)[0] + test('1 E1 inserted MOVE %s dropped' % (mv,), mod(lambda P: P.pop(ix(mv)))) + mv = ins('E4', 'MOVE', 370)[0] + test('2 E4 inserted MOVE %s dropped' % (mv,), mod(lambda P: P.pop(ix(mv)))) + mv = ins('E5', 'MOVE', 461)[0] + test('3 E5 inserted MOVE %s dropped' % (mv,), mod(lambda P: P.pop(ix(mv)))) + a = ins('E4', 'ADD', 1132)[0] + test('4 E4 inserted ADD %s dropped' % (a,), mod(lambda P: P.pop(ix(a)))) + a = ins('E1', 'ADD', 612)[0] + alt = list(a) + alt[2] = 360 if a[2] == 537 else 537 + test('5 E1 inserted ADD %s with the relabelled operand undone %s' % (a, alt), mod(lambda P: P.__setitem__(ix(a), alt))) + a = ins('E5', 'ADD', 1214)[0] + alt = list(a) + alt[3] = str(-Q(a[3])) + test('6 E5 inserted ADD %s coefficient negated' % (a,), mod(lambda P: P.__setitem__(ix(a), alt))) + a = ins('E2', 'ADD', 176)[0] + alt = list(a) + alt[3] = str(-Q(a[3])) + test('7 E2 inserted ADD %s coefficient negated' % (a,), mod(lambda P: P.__setitem__(ix(a), alt))) + mv = ins('E4', 'MOVE', 370)[0] + test('8 E4 inserted MOVE with ownership flag True', mod(lambda P: P.__setitem__(ix(mv), mv[:4] + [True]))) + v_add = next(i for i, e in enumerate(P0) if e[0] == 'ADD' and dim[e[4]] == 9) + z_add = next(i for i, e in enumerate(P0) if e[0] == 'ADD' and dim[e[4]] == 0) + test('9 first V-mix ADD coefficient doubled', mod(lambda P: P.__setitem__(v_add, P[v_add][:3] + [str(2 * Q(P[v_add][3]))] + P[v_add][4:]))) + test('10 first {0}-prefix ADD dropped', mod(lambda P: P.pop(z_add))) + mv = ins('E3', 'MOVE', 236)[0] + old = next(e for i, e in ed['E3']['delete'] if e[0] == 'MOVE' and e[1] == 236 and e[3] == 928) + test('11 E3 stay re-taken: MOVE %s replaced by the original %s' % (mv, old), mod(lambda P: P.__setitem__(ix(mv), old))) + mv = ins('E2', 'MOVE', 176)[0] + old = next(e for i, e in ed['E2']['delete'] if e[0] == 'MOVE' and e[1] == 176) + test('12 E2 stop re-taken: MOVE %s replaced by the original %s' % (mv, old), mod(lambda P: P.__setitem__(ix(mv), old))) + Bp = B['program'] + + def bare(cid): + def f(P): + for i, ev in sorted(ed[cid]['delete'], reverse=True): + require(P[i] == ev, '%s event in #7641' % cid) + del P[i] + return f + test('13 E5 deletions applied to #7641 without the re-sourced ADD and without hub re-settle', mod(bare('E5'), Bp), B) + test('14 E3 deletions applied to #7641 without hub re-settle', mod(bare('E3'), Bp), B) + test('15 last event of the new word dropped', P0[:-1]) + require(len(res) == 15, '15 negative controls rejected') + require(not zero_joins(B) and not zero_joins(W), 'no exact-zero join in either word') + print('PASS_CONTROLS_ON_7641: 15/15 negative controls rejected, 2 positives accepted') + + +def core(B, W): + E = json.loads((DATA / 'edits.json').read_text()) + require(B.keys() == W.keys() and all(B[k] == W[k] for k in B if k != 'program'), 'header identical (initial, final, frames, hosted, ports, owned_fields)') + print('PASS header: identical to #7641 (initial, final, frames, hosted, ports, live, owned_fields)') + require([e['id'] for e in E['edits']] == ['E1', 'E2', 'E3', 'E4', 'E5'], 'edits E1..E5') + got, nd, ni = apply_interior(B, E) + ok = interior_test(W) + mine = [e for e in W['program'] if ok(e)] + require(got == mine, 'interior of the new word = #7641 interior + edit list') + hb = sum(1 for e in B['program'] if not ok(e)) + hw = sum(1 for e in W['program'] if not ok(e)) + print('PASS interior: %d interior events = #7641\'s %d - %d deleted + %d inserted (E1..E5); hub events (ADD/SCALE at {0} and V)' + ' %d -> %d; word %d -> %d events' % (len(mine), len(mine) - ni + nd, nd, ni, hb, hw, len(B['program']), len(W['program']))) + RB, R = replay(B), replay(W) + n = W['public'] + bad = [r for r in range(len(R['rows'])) if R['rows'][r] != RB['rows'][r]] + require(not bad, 'all rows equal #7641 (first differing %s)' % bad[:3]) + require(R['cur'] == RB['cur'], 'all end charts equal #7641') + M = mains(W) + require(all(R['rows'][r] == {r: Q(1)} for r in range(n) if r not in M), 'helpers end at identity') + require(all(not R['rows'][r] for r in range(n, len(R['rows']))), 'owned rows end empty') + require(R['owned_moves'] == RB['owned_moves'], 'owned MOVE multiset unchanged') + ltb, ltw = collections.Counter(RB['lifetimes']), collections.Counter(R['lifetimes']) + require(sum(ltb.values()) == sum(ltw.values()) == 234 and ltb == ltw, '234 owned lifetimes unchanged') + require(R['peak'] == RB['peak'] == 50, 'owned peak 50') + ownseq = lambda X: [e for e in X['program'] if e[0] in ('INIT', 'CLEAR') or (e[0] == 'MOVE' and e[1] >= n)] + require(ownseq(W) == ownseq(B), 'owned INIT/CLEAR/MOVE sequence = #7641\'s') + labels = {e[1] for e in W['program'] if e[0] == 'INIT'} + require(labels == {e[1] for e in B['program'] if e[0] == 'INIT'} and len(labels) <= 68 == W['owned_fields'], 'same owned labels as #7641, within the 68 allocated') + require(not zero_joins(B) and not zero_joins(W), 'no exact-zero join in either word') + print('PASS exact replay: both words legal; all %d rows and end charts equal #7641, helpers identity, owned empty;' + ' owned MOVEs (%d) and the owned INIT/CLEAR/MOVE sequence unchanged; 234 lifetimes, peak 50, %d of 68 labels used;' + ' no exact-zero join in either word' % (len(R['rows']), sum(R['owned_moves'].values()), len(labels))) + changed = sorted(r for r in range(n) if chain_route(R, W, r) != chain_route(RB, B, r)) + require(changed == sorted(CHANGED) == sorted({r for ed in E['edits'] for r in ed['registers']}), 'exactly the six registers of E1..E5 change chains') + for ed in E['edits']: + for r in ed['registers']: + require(chain_route(RB, B, r) == ed['route_before'][str(r)] and chain_route(R, W, r) == ed['route_after'][str(r)], + '%s route of %d: %s -> %s' % (ed['id'], r, chain_route(RB, B, r), chain_route(R, W, r))) + require(all(r in M for r in (176,)) and not any(r in M for r in (236, 360, 370, 461, 537)), 'register kinds: 176 is a main, the other five are helpers') + newp, gone = sorted(move_pairs(W) - move_pairs(B)), sorted(move_pairs(B) - move_pairs(W)) + for a, b in newp: + require(R['sp'][a] < R['sp'][b], 'new pair %s strictly nested' % ((a, b),)) + print('PASS routes: exactly the six registers of E1..E5 change chains, as listed; %d new MOVE pairs %s, all strictly nested; %d leave %s' + % (len(newp), newp, len(gone), gone)) + sb, sw = RB['stats'], R['stats'] + require(sw['smooth'], 'replayed coefficients have 5-smooth denominators') + for q in literal_coeffs(W['program']): + o = q.denominator + for p in (2, 3, 5): + while o % p == 0: + o //= p + require(o == 1, 'literal coefficient has a 5-smooth denominator') + print('PASS coefficients: 5-smooth; replayed grid #7641 (2-adic exponent %d, odd lcm %d, numerator bits %d) -> new (%d, %d, %d);' + ' non-dyadic literal events %d -> %d' % (sb['max_den_exp'], sb['odd_den'], sb['max_num_bits'], sw['max_den_exp'], sw['odd_den'], + sw['max_num_bits'], nondyadic(B['program']), nondyadic(W['program']))) + pb, hb_ = native_counts(B) + pw, hw_ = native_counts(W) + dP, dT = diff(pb, pw), diff(hb_, hw_) + require(dP == DELTA_PAID and dT == {}, 'native deltas per call') + print('PASS native per call: paid MOVE delta %s (5 fewer MOVEs, some re-ranked); helper target delta %s' % (dP, dT)) + inv0 = json.loads((DATA / 'invoice-7641.json').read_text()) + P0 = {k: inv0['paid'][k] for k in sorted(inv0['paid'], key=int)} + T0 = {k: inv0['targets'][k] for k in sorted(inv0['targets'], key=int)} + require(inv0 == invoice_json(P0, T0), 'invoice-7641.json is #7641\'s invoice in the official schema') + for k in sorted(set(P0) | set(str(x) for x in pb), key=int): + require(P0.get(k, 0) == CALLS * pb.get(int(k), 0) + CALLER_EXTRA_PAID.get(k, 0), 'invoice-7641 paid rank %s = 17 x native + the caller constant' % k) + for k in sorted(set(T0) | set(str(x) for x in hb_), key=int): + require(T0.get(k, 0) == CALLS * hb_.get(int(k), 0) + CALLER_EXTRA_TARGETS.get(k, 0), 'invoice-7641 target rank %s = 17 x helper + the caller constant' % k) + P, T = collections.Counter({int(k): v for k, v in P0.items()}), collections.Counter({int(k): v for k, v in T0.items()}) + for k, v in dP.items(): + P[k] += CALLS * v + for k, v in dT.items(): + T[k] += CALLS * v + require(min(P.values()) >= 0 and min(T.values()) >= 0, 'nonnegative counts') + Pn = {str(k): v for k, v in sorted(P.items()) if v} + Tn = {str(k): v for k, v in sorted(T.items()) if v} + Sf = lambda T_, P_: sum(int(k) * v for k, v in T_.items()) - sum(int(k) * v for k, v in P_.items()) + require(Sf(T0, P0) == Sf(Tn, Pn) == 1424, 'rank surplus S 1424 unchanged') + require(json.loads((DATA / 'invoice-new.json').read_text()) == invoice_json(Pn, Tn), 'invoice-new.json matches') + require(json.loads((DATA / 'invoice-zero.json').read_text()) == invoice_json({}, {}), 'zero invoice') + print('PASS complete invoice: paid positions %d -> %d, productive %d -> %d, S = 1424' % (sum(P0.values()), sum(Pn.values()), sum(T0.values()), sum(Tn.values()))) + k0, k1 = crossing(T0, P0), crossing(Tn, Pn) + require(decimal.Decimal('0.0037136318149') <= k0 < decimal.Decimal('0.0037136318150'), '#7641 crossing reproduced') + print('PASS kappa #7641 %s' % k0) + print('PASS kappa new %s (ratio over #7641 %s)' % (k1, +decimal.Context(prec=12).divide(k1, k0))) + expected = json.loads((HERE / 'EXPECTED.json').read_text()) + require(str(k1)[:len(expected['kappa_prefix'])] == expected['kappa_prefix'], 'kappa digits as recorded') + require(decimal.Decimal(CLAIM) < k1 < decimal.Decimal(ABOVE), 'claim %s is below the exact crossing' % CLAIM) + print('PASS_CORE_ON_7641') + + +def main(): + B, W = load_words() + if MODE in ('core', 'all'): + core(B, W) + if MODE in ('certificates', 'all'): + certificates_section(B, W) + if MODE in ('controls', 'all'): + run_controls(B, W) + for i in range(NPARTS): + if MODE in ('columns%d' % (i + 1), 'all'): + columns_section(B, W, i) + print('PASS_COLUMNS_ON_7641_%d' % (i + 1)) + if MODE == 'all': + print('PASS_LNS_ON_7641_EXACT (conditional on the premises named in the README)') + + +if __name__ == '__main__': + main() diff --git a/research/p104-role379-idle-stop/retained/pr7658/data/affected-pairs-new.json b/research/p104-role379-idle-stop/retained/pr7658/data/affected-pairs-new.json new file mode 100644 index 0000000000..2fb92f3109 --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7658/data/affected-pairs-new.json @@ -0,0 +1 @@ +[[3, 7], [3, 55], [3, 62], [3, 127], [3, 285], [3, 407], [3, 449], [3, 824], [7, 256], [55, 407], [62, 425], [200, 127], [256, 265], [265, 751], [285, 127], [407, 416], [407, 824], [416, 868], [425, 432], [432, 127], [432, 819], [449, 928], [449, 1065], [751, 127], [751, 928], [819, 127], [824, 948], [868, 127], [928, 127], [928, 186], [948, 200], [1065, 928]] \ No newline at end of file diff --git a/research/p104-role379-idle-stop/retained/pr7658/data/clear-certificates.json b/research/p104-role379-idle-stop/retained/pr7658/data/clear-certificates.json new file mode 100644 index 0000000000..2137f45d87 --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7658/data/clear-certificates.json @@ -0,0 +1 @@ +{"clear_event_index":{"87504":{},"88242":{"233":"1"},"88439":{"500":"-1","1072":"1"},"88788":{"510":"-1","1089":"1"},"88790":{"22":"1/4","23":"-3/4","320":"1/4","321":"-1/2","323":"-1","325":"1/2","330":"-1"},"89173":{},"89534":{"20":"1/8","37":"1/8","110":"-3/8","432":"1/2","433":"1/8","435":"1/2","437":"-1/4","442":"3/2","735":"3/8"},"89629":{"29":"-1/4","30":"-3/4","59":"1/4","352":"-1/8","353":"1/4","355":"-1/2","357":"1/4","362":"-1/2"},"89702":{},"89771":{},"89855":{"500":"1"},"90046":{"628":"-2","630":"-2"},"90048":{"30":"1/4","59":"-1/2","352":"-1/8","353":"-1/4","355":"1/2","357":"-1/4","362":"-1/2"},"90053":{"106":"-2","240":"1","403":"2","405":"1/4","728":"-4","729":"4","730":"4","813":"2","1165":"-1","1365":"1","1380":"-1","1385":"1"},"90056":{"30":"-3/4","352":"-1/8","353":"1/4","355":"1/2","357":"1/4","362":"-1/2"},"90059":{"30":"-1/4","352":"-1/8","353":"-1/4","355":"-1/2","357":"-1/4","362":"-1/2"},"90080":{"30":"-3/2","59":"1","352":"-1/4","353":"1/2","355":"-1","357":"-1/2","362":"1"},"90350":{"17":"-5/8","77":"-1/2","273":"-1/2","275":"-1","277":"1/2","282":"-1"},"90377":{},"90413":{"22":"1/8","23":"1/8","320":"1/8","321":"1/4","323":"1/2","325":"1/4","330":"-1/2"},"90470":{"240":"-1/4","1385":"-1/4"},"90481":{"64":"1/8","385":"-1/4","387":"-1/2","389":"-1/4","394":"-1/2"},"90488":{"573":"-1","1173":"1"},"90490":{"41":"1/2","106":"-3/2","240":"-1/2","401":"1/16","403":"2","405":"7/16","730":"2","813":"-1/2","814":"-2","876":"-1/2","1162":"-2","1165":"-2","1365":"1/4","1380":"-1/4","1385":"-1/2"},"90520":{"18":"1/4","39":"1/4","40":"1/4","288":"-1/4","289":"-1/2","291":"-1/2","298":"1"},"90601":{"17":"-5/8","103":"1/2","272":"-1/2","273":"-1/2","275":"-1","277":"1/2","282":"1"},"90607":{"23":"-1/4","320":"-1/4","321":"-1/2","323":"-1","325":"1/2","330":"1"},"90715":{"30":"1/4","353":"1/2","355":"-1","357":"-1/2","362":"-1"},"90725":{"64":"1/4","96":"1","385":"1/2","387":"-1","389":"-1/2","394":"-1"},"90742":{},"90762":{"64":"-1/4","65":"-1/2","96":"1/2","385":"-1/2","387":"-1","389":"1/2","394":"-1"},"90766":{"29":"-1/2","30":"-1/4","59":"1/2","353":"-1/2","355":"-1","357":"1/2","362":"-1"},"91018":{"18":"1/4","39":"1/4","40":"1/4","288":"1/4","289":"1/2","291":"5/2","293":"-1","298":"-1"},"91199":{"104":"1/2","416":"-1/2","417":"1","421":"1/2","426":"2","1179":"-1"},"91224":{"17":"-1/4","273":"1/2","275":"-1","277":"-1/2","282":"-1"},"91338":{"57":"-1/8","81":"1/8","224":"1/8","225":"1/2","227":"-1","229":"-1/4","234":"-1/2"},"91381":{"23":"1/4","320":"1/4","321":"1/2","323":"1","325":"1/2","330":"-1"},"91386":{"23":"1/4","108":"1/2","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"-1"},"91418":{"18":"1/4","39":"-1/4","40":"1/4","288":"1/4","289":"-1/2","298":"-1"},"91450":{"64":"-3/4","384":"-1/2","385":"-1/2","387":"-1","389":"1/2","394":"1"},"91485":{"358":"-1","1120":"1"},"91487":{"30":"-1/4","59":"1/2","352":"-1/2","353":"-1/2","355":"-1","357":"1/2","362":"1"},"91491":{"8":"1/4","26":"1/4","368":"-3/4","369":"-1/2","371":"-1","373":"1/2","378":"1"},"91545":{"18":"1/4","39":"1/4","40":"1/4","288":"1/4","289":"1/2","293":"-1","298":"1"},"91555":{"35":"1/4","45":"1/4","107":"-1/4","304":"-1/4","305":"1/2","307":"-1","309":"-1/2","314":"1"},"91593":{"17":"-1/4","273":"1/2","275":"-1","277":"-1/2","282":"1"},"91600":{"513":"-1","1086":"1"},"91602":{"23":"1/4","108":"1/2","320":"-1/4","321":"1/2","323":"-1","325":"-1/2","330":"1"},"91757":{"41":"-1/16","42":"1/32","106":"-5/64","240":"-13/64","402":"1/4","405":"-1/8","570":"-1","573":"1/2","728":"5/16","813":"1/8","875":"1/2","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"},"91760":{"41":"-1","42":"1/2","106":"-5/4","240":"3/4","405":"-2","728":"1","813":"2","1162":"-8","1163":"-4","1365":"1","1373":"2","1380":"1","1385":"7/4","1392":"-1/2","1448":"-1"},"91811":{"1343":"-1","1344":"-1","1346":"-1","1347":"-1"},"91901":{"8":"1/8","26":"-1/8","368":"1/8","369":"1/4","371":"-1/2","372":"-1/2","373":"-1/4","377":"-1","378":"1/2"},"92807":{"8":"-3/8","26":"-3/8","368":"1/8","369":"1/4","371":"-1/2","373":"1/4","378":"-1/2"},"93162":{},"93375":{"43":"-1/2","104":"-3/8","416":"3/8","417":"-1/4","419":"-1/2","421":"-1/8","426":"1/2","788":"4","815":"-4","1179":"1/2","1185":"4","1388":"-4","1391":"-3"},"93412":{"86":"1"},"93546":{"64":"-1/8","65":"-1/4","96":"3/8","385":"1/4","387":"-1/2","389":"1/4","394":"-1/2"},"94353":{"290":"1","1402":"1"},"94428":{"350":"1/2","1112":"1/2"},"94489":{"169":"1","1470":"-1"},"94629":{"203":"1","1471":"-1"},"94842":{"18":"1","45":"1","61":"1","63":"1","103":"1","108":"1"},"94876":{"449":"4/3","1206":"1/3","1455":"-2/3","1460":"2/3"},"94909":{"9":"1/4","368":"1/4","721":"-1","723":"-1","724":"-1","725":"-1"},"94927":{"9":"1/4","368":"1/4"},"94966":{"9":"1","368":"1"},"95004":{"8":"1/8","26":"5/2","95":"1/4","368":"3/8","369":"-1/4","371":"1/2","373":"-1/4","378":"-1/2","381":"2","723":"2","725":"-2","865":"8","1144":"4","1390":"-2"},"95007":{"8":"1/8","26":"5/2","95":"1/4","368":"3/8","369":"-1/4","371":"-1/2","373":"-1/4","378":"-1/2","381":"2","723":"2","724":"-2","865":"8","1138":"4","1390":"-2"},"95206":{},"95439":{"256":"1/4","336":"1/4"},"95474":{"831":"1/3","1020":"2/3","1023":"-4/3","1025":"-2/3","1029":"-1/3"},"95677":{"58":"-1/8","93":"-1/4","337":"-1/4","341":"1/4","346":"-1/2","712":"-7/4","714":"1/4","1098":"1"},"95702":{"451":"2","581":"-1","582":"-1","1207":"-2","1479":"3"},"95717":{"3":"1/16","26":"1/16","67":"1/32","546":"1","550":"-1/2","553":"-1/2","721":"-1/4","724":"-1/4","725":"-1/4","775":"1/2","837":"1","942":"1/2","956":"-1/2","1105":"1","1134":"1","1137":"1","1138":"-1/2","1144":"-1/2","1390":"-1/4"},"95726":{"338":"-1/4","348":"1/2","526":"1/2","712":"-1/4","714":"-1/4","863":"-2","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"},"95752":{"640":"-1/2","641":"-1/2"},"95774":{"913":"-1","927":"1"},"95808":{"228":"1"},"95834":{"92":"1/4"},"95851":{"146":"-2","451":"1","496":"2","497":"-2","581":"-1","582":"-1","889":"-1","895":"1","897":"1","898":"-1","907":"1","919":"-1","1078":"1","1080":"1","1258":"1","1259":"1","1340":"1","1479":"1"},"95860":{"146":"-1/2"},"95906":{"223":"1","1469":"-1"},"95957":{"34":"-1/2","49":"-1/2","1484":"1/2"},"96342":{"125":"1","1457":"-1"},"96366":{"139":"1","1474":"-1"},"96404":{"163":"1","1472":"-1"},"96411":{"201":"1","1465":"-1"},"96548":{"752":"-1","891":"1","937":"-1"},"96553":{"611":"1","613":"1","752":"1","891":"-1","937":"1"},"96560":{"476":"-1","489":"-1","524":"1","607":"-1","608":"-1/4","610":"3/4","611":"-1","612":"-1","613":"-1/2","770":"1","1277":"-1","1279":"2","1368":"-3","1374":"2"},"96789":{"128":"1","1476":"-1"},"96797":{"119":"1","1475":"-1"},"96800":{"154":"1","1458":"-1"},"96841":{"225":"-1/2","229":"1/4"},"96931":{"707":"4"},"96950":{"1233":"1","1381":"1"},"97036":{"22":"1/2","23":"1/2","49":"-1","108":"1","320":"-1/2","333":"2"},"97040":{"1466":"-1"},"97450":{"454":"12","1208":"1","1461":"-3"},"97546":{"13":"1/4","52":"-1/2","240":"-3/16","402":"1/4","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","1154":"1/2","1168":"-1","1173":"1/2","1349":"1/4","1353":"-1","1385":"-3/16","1448":"1/4","1474":"1/2"},"97700":{"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","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"},"97761":{"68":"1","777":"1"},"97764":{"68":"1","777":"1"},"97781":{"68":"1"},"97801":{"30":"-1/8","59":"1/8","353":"-1/4","355":"-1/2","357":"-1/4","362":"-1/2","538":"-1","1322":"-1","1325":"1/2","1394":"1/2","1427":"-1"},"97944":{"1495":"-2"},"98044":{"1208":"1"},"98059":{"173":"1/2","476":"-1/4","489":"-1/4","524":"1/4","607":"-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","1277":"-1/4","1279":"1/2","1280":"3/8","1368":"-3/4","1374":"1/2"},"98073":{"151":"1/2"},"98258":{"382":"1/2","816":"-1/2"},"98327":{"559":"-1/2"},"98339":{"546":"-1/2"},"98347":{"568":"-1/2"},"98354":{"575":"-1/2"},"98362":{"292":"1"},"98365":{"558":"-1/2"},"98372":{"563":"1","1399":"1"},"98379":{"364":"1","1436":"1"},"98398":{"428":"1"},"98422":{"512":"1"},"98448":{"527":"1"},"98469":{"523":"-1/2"},"98525":{"550":"1"},"98555":{"578":"-1/2"},"98608":{"483":"-1","519":"-1","543":"-1","696":"-1","697":"1/4","698":"1/2","700":"1/2","702":"1","767":"1/2","901":"-1","1334":"1","1336":"-2","1337":"-1","1362":"1","1377":"-2","1386":"-1/2"},"98622":{"133":"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","1255":"1/3","1334":"-2/3","1336":"4/3","1337":"2/3","1362":"-1/3","1377":"4/3","1386":"1"},"98629":{"133":"3/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","1255":"1/2","1334":"-1","1336":"1/2","1337":"1","1362":"-1/2","1377":"2","1386":"3/2","1498":"2"},"98683":{"133":"-1/2","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","1255":"1/2","1262":"-2","1334":"1","1337":"-1/2","1362":"2","1377":"-2","1386":"-1/2","1498":"-1"},"98686":{"146":"4","228":"2","428":"-1","430":"-1","451":"-1","508":"2","581":"1","582":"1","637":"-1","922":"-1","925":"1","974":"1","983":"-1","1158":"-1/2","1160":"-1","1207":"2","1243":"-2","1400":"2","1463":"-4/3","1479":"-3","1495":"-2"},"98746":{"38":"1","268":"-1","546":"1/2","578":"-1/2","648":"-1","652":"-1","654":"-1","1449":"1","1450":"1"},"98851":{"165":"1","1473":"-1"},"99134":{"133":"-3","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","1334":"2","1336":"-1","1337":"-1","1362":"2","1377":"-4","1386":"-3","1498":"-2"},"99259":{"242":"1","499":"1"},"99314":{"430":"1"},"99333":{"359":"-1/2","1404":"1"},"99338":{"328":"1","573":"1"},"99380":{"498":"1"},"99383":{"551":"1","1395":"1"},"99386":{"392":"1","1410":"1"},"99497":{"294":"1"},"99505":{"501":"1"},"99508":{"295":"1"},"99547":{"547":"-1/2"},"99597":{"474":"1"},"99634":{"577":"-1/2"},"99646":{"1463":"1/2"},"99807":{"511":"1"},"99819":{"354":"-1/2","1405":"1"},"100157":{"498":"-3/2","540":"2"},"100195":{"344":"2","512":"-3/2"},"100212":{"28":"2","513":"-3/2"},"100222":{"366":"1","1435":"1"},"100297":{"274":"1","457":"1"},"100332":{"510":"-3/2","528":"2"},"100348":{"60":"-2","151":"-2","501":"-1","528":"-4","623":"-1","625":"-1/2","626":"1","628":"2","629":"2","630":"2","768":"1/2"},"100370":{"917":"-1"},"100378":{"28":"-1","129":"-1/2","150":"-1/2","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","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","1291":"-1","1302":"-1","1303":"-1/2","1322":"-1","1323":"-1","1324":"1/2","1325":"1/2","1394":"1/2","1427":"-1"},"100487":{"580":"1"},"100491":{"428":"-3","474":"-1/2"},"100514":{"294":"-3/2","408":"2"},"100556":{"553":"1"},"100627":{"295":"-1/2","424":"-3"},"100715":{"546":"1","577":"-1"},"100723":{"547":"1","578":"-1"},"100813":{"558":"1","575":"-1"},"100820":{"558":"-1","575":"1"},"100835":{"559":"1","576":"-1"},"100842":{"559":"-1","576":"1"},"100892":{"546":"-1","577":"1"},"100965":{"516":"2"},"100981":{"523":"1","580":"2"},"100988":{"523":"1/2","580":"-2"},"101007":{"268":"-1","568":"1"},"101159":{"526":"-3/2","1410":"-1"},"101174":{"527":"-3/2","1399":"-1"},"101189":{"490":"1/2","550":"-2"},"101259":{"553":"-2","1434":"1/2"},"101281":{"430":"-2","457":"-1/4"},"101409":{"547":"-1","578":"1"},"101443":{},"101455":{"356":"2","500":"-3/2"},"101488":{"295":"-3/2","424":"2"},"101513":{"428":"2","474":"-3/2"},"101533":{"278":"-3/2","562":"2"},"101570":{"438":"-1","585":"-2"},"101591":{"41":"-1","42":"1/2","106":"-5/4","240":"3/4","405":"-2","728":"1","813":"2","1162":"4","1163":"-4","1365":"1","1373":"2","1380":"1","1385":"7/4","1392":"-1/2","1397":"-8","1448":"-1"},"101600":{"256":"1","336":"1","1342":"-2","1437":"2"},"101614":{"256":"1","336":"1","1342":"-2","1437":"2"},"101816":{"862":"-1"},"101822":{"7":"-1/2","87":"-1/2","226":"1","230":"1","449":"-4","473":"1","485":"1","496":"1","508":"1","521":"1","544":"1","779":"-1/2","857":"-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","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"},"101849":{"742":"1/4","998":"1/2"},"101938":{"15":"1/4","126":"1/4","164":"1/4","679":"-1/4","682":"-1/4"},"101948":{"126":"-1/4","164":"1/4","413":"1/2","679":"-1/4","682":"-1/4"},"102088":{"15":"1/4","126":"1/4","164":"1/4","679":"-1/4","682":"-1/4"},"102092":{"126":"-1/4","164":"1/4","413":"1/2","679":"-1/4","682":"-1/4"},"102141":{},"102228":{"22":"-1/2","23":"-1/2","49":"1","108":"-1","320":"-1/2","333":"-1","1492":"-2"},"102322":{},"102324":{},"102325":{},"102327":{},"102328":{},"102346":{},"102363":{},"102403":{},"102407":{},"102450":{"794":"-4","1082":"-1"},"102498":{},"102662":{"757":"1/2","796":"1/2","890":"-1","906":"-1","942":"-1","943":"1","956":"1","964":"1","971":"-1","1074":"1/2","1221":"1","1222":"1","1255":"1","1311":"1","1312":"1","1313":"1","1314":"1/2","1356":"1"},"102681":{},"102744":{},"102827":{},"102828":{},"102836":{},"102843":{},"102844":{},"102854":{},"102857":{},"102868":{},"102874":{},"102877":{},"102878":{},"102882":{},"102895":{},"102896":{},"102903":{},"102917":{},"102918":{},"102934":{"831":"-1","864":"2","1025":"-2","1029":"-5/2"},"102965":{"998":"-1","1499":"1"},"102970":{},"102971":{},"102989":{"863":"1"},"102992":{}}} \ No newline at end of file diff --git a/research/p104-role379-idle-stop/retained/pr7658/data/invoice-new.json b/research/p104-role379-idle-stop/retained/pr7658/data/invoice-new.json new file mode 100644 index 0000000000..acae1b60a9 --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pr7658/data/invoice-new.json @@ -0,0 +1 @@ +{"schema": "integer-mult-recursive-invoice/v1", "contract": {"model": "mixed-target-unnormalized-power-v1", "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields", "ambient_rank": 145, "boundary": "complete signed #7113 caller application with 17 native calls"}, "paid": {"1": 67789, "2": 15079, "3": 10234, "4": 4199, "5": 6103, "6": 1428, "7": 187, "8": 775, "9": 100, "16": 416, "24": 416, "32": 416, "40": 416, "48": 416, "56": 416, "64": 208}, "targets": {"1": 306, "2": 357, "3": 799, "4": 3825, "5": 1360, "6": 748, "7": 323, "8": 544, "9": 10871, "17": 416, "25": 416, "33": 416, "41": 416, "49": 416, "57": 416, "65": 416, "73": 208, "137": 208}} \ No newline at end of file diff --git a/research/p104-role379-idle-stop/retained/pr7658/data/word.json.gz b/research/p104-role379-idle-stop/retained/pr7658/data/word.json.gz new file mode 100644 index 0000000000..d917e5bde9 Binary files /dev/null and b/research/p104-role379-idle-stop/retained/pr7658/data/word.json.gz differ diff --git a/research/p104-role379-idle-stop/retained/pricing/compare_recursive_invoices.py b/research/p104-role379-idle-stop/retained/pricing/compare_recursive_invoices.py new file mode 100644 index 0000000000..fda2a852e9 --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pricing/compare_recursive_invoices.py @@ -0,0 +1,218 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Compare declared recursive invoices by exact signed concave order. + +Usage: python3 -B scripts/compare_recursive_invoices.py OLD.json NEW.json + +Each input has schema ``integer-mult-recursive-invoice/v1``, an identical +contract object with model, rank_semantics, ambient_rank and boundary, and +paid/targets objects mapping canonical positive decimal ranks to nonnegative +integer counts. Contracts are declarations, not verified mathematical premises. + +For d = (new paid - old paid) - (new targets - old targets), set +K(k) = sum_r d[r] min(r,k). The sign of K at every support knot determines +the order for every increasing concave tariff f with f(0)=0. Indeed, on the +integer ranks 0..R, write s_j=f(j)-f(j-1). Then + + sum_r d[r] f(r) = s_R K(R) + sum_(k=1..R-1) (s_k-s_(k+1)) K(k). + +All coefficients on the right are nonnegative. Conversely, the increasing +concave tariffs min(r,k) witness every required hinge. Between support knots +K is linear. For f(r)=r**t, 0= 0 for value in values): + classification, power_sign = "uniformly_worse", "strictly_positive" + else: + classification, power_sign = "inconclusive", "not_determined" + old_mass, new_mass = _masses(old), _masses(new) + return { + "schema": REPORT_SCHEMA, + "classification": classification, + "contract": old["contract"], + "delta_paid": paid, + "delta_targets": targets, + "signed_net_delta": net, + "hinges": hinges, + "rank_mass": {"old": old_mass, "new": new_mass, + "delta": {key: new_mass[key] - old_mass[key] for key in old_mass}}, + "quantity": "(new paid - new targets) - (old paid - old targets)", + "tariff_class": "increasing concave f on nonnegative ranks, with f(0)=0", + "uniform_order": "weak; some concave tariffs can give equality", + "power_moment": {"tariff": "r^t", "exponent": "0 < t < 1", + "new_minus_old_sign": power_sign}, + "assurance": { + "contract": "Exact matching user declarations; mathematical applicability is not verified.", + "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.", + "inconclusive": "Mixed hinge signs do not establish a power-moment crossing or failure.", + }, + "method_credit": "Classical concave order/majorization; mightyOil's t16-moment-order-audit " + "and its retained predecessors. No new theorem claim.", + } + + +def main(argv=None): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("old", help="old invoice JSON") + parser.add_argument("new", help="new invoice JSON") + args = parser.parse_args(argv) + try: + old, old_evidence = load_invoice(args.old) + new, new_evidence = load_invoice(args.new) + report = compare_invoices(old, new) + report["inputs"] = {"old": old_evidence, "new": new_evidence} + except (OSError, ValueError, TypeError, RecursionError) as exc: + print(json.dumps({"status": "INVALID_RECURSIVE_INVOICE", "error": str(exc)}, + ensure_ascii=True), file=sys.stderr) + return 2 + print(json.dumps(report, indent=2, sort_keys=True, ensure_ascii=True)) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/research/p104-role379-idle-stop/retained/pricing/evaluate_recursive_power.py b/research/p104-role379-idle-stop/retained/pricing/evaluate_recursive_power.py new file mode 100644 index 0000000000..ca50f8021f --- /dev/null +++ b/research/p104-role379-idle-stop/retained/pricing/evaluate_recursive_power.py @@ -0,0 +1,98 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Certify a signed invoice cost at one exact rational power, using integer bounds. + +Usage: evaluate_recursive_power.py OLD.json NEW.json --exponent 0.9969 +See docs/research/recursive-power-comparison.md for the interval argument. +Prepared for aliromman with OpenAI Codex assistance. The invoice schema and +signed accounting retain the compare_recursive_invoices predecessor credits. +""" +import argparse +from fractions import Fraction as Q +import json +import re +from math import isqrt +from pathlib import Path +import sys + +sys.path.insert(0, str(Path(__file__).resolve().parent)) +try: + from compare_recursive_invoices import compare_invoices, load_invoice, require, MAX_RANK +finally: + sys.path.pop(0) + + +def parse_exponent(text): + require(isinstance(text, str) and len(text) <= 128, 'exponent needs at most 128 characters') + require(re.fullmatch(r'[+-]?(?:[0-9]+(?:/[0-9]+)?|[0-9]*\.[0-9]+)', text) is not None, + 'use a fraction or decimal without scientific notation') + exponent = Q(text) + require(0 < exponent < 1, 'exponent must satisfy 0 < t < 1') + return exponent + + +def power_bounds(rank, exponent, bits=128): + """Enclose rank**exponent by directed integer square roots and products.""" + require(type(rank) is int and 1 <= rank <= MAX_RANK, 'rank is outside 1..10^9') + require(isinstance(exponent, Q) and 0 < exponent < 1, 'need an exact rational 0 < t < 1') + require(type(bits) is int and 16 <= bits <= 256, 'bits must be an integer in 16..256') + scale = 1 << bits + digits, remainder = divmod(exponent.numerator * scale, exponent.denominator) + lower = upper = scale + root_lower = root_upper = rank * scale + for shift in range(bits - 1, -1, -1): + root_lower = isqrt(root_lower * scale) + radicand = root_upper * scale + root_upper = isqrt(radicand) + root_upper += root_upper * root_upper < radicand + if digits & (1 << shift): + lower = lower * root_lower // scale + upper = (upper * root_upper + scale - 1) // scale + if remainder: + upper = (upper * root_upper + scale - 1) // scale + return Q(lower, scale), Q(upper, scale) + + +def evaluate(old, new, exponent, bits=128): + report = compare_invoices(old, new) + require(isinstance(exponent, Q) and 0 < exponent < 1, 'need an exact rational 0 < t < 1') + require(type(bits) is int and 16 <= bits <= 256, 'bits must be an integer in 16..256') + delta = report['signed_net_delta'] + require(len(delta) <= 512, 'power comparison supports at most 512 nonzero ranks') + lower = upper = Q(0) + terms = [] + for rank, count in delta.items(): + lo, hi = power_bounds(int(rank), exponent, bits) + lower += count * (lo if count > 0 else hi) + upper += count * (hi if count > 0 else lo) + terms.append({'rank': int(rank), 'signed_count': count, 'power_lower': str(lo), 'power_upper': str(hi)}) + sign = ('new_cost_lower' if upper < 0 else 'new_cost_higher' if lower > 0 + else 'equal' if lower == upper == 0 else 'unresolved') + return {'schema': 'integer-mult-recursive-power-comparison/v1', 'contract': report['contract'], + 'exponent': str(exponent), 'bits': bits, 'classification': sign, + 'new_minus_old': {'lower': str(lower), 'upper': str(upper)}, 'terms': terms, + 'quantity': report['quantity'], + 'scope': 'Exact arithmetic on declared invoices at this exponent only. No circuit, ownership, ' + 'compiler, applicability or kappa claim is verified. Unresolved is not equality.'} + + +def main(argv=None): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('old'); parser.add_argument('new') + parser.add_argument('--exponent', required=True, help='exact fraction or decimal t in r^t') + parser.add_argument('--bits', type=int, default=128, help='dyadic grid bits, 16..256; default 128') + args = parser.parse_args(argv) + try: + exponent = parse_exponent(args.exponent) + old, old_pin = load_invoice(args.old); new, new_pin = load_invoice(args.new) + report = evaluate(old, new, exponent, args.bits) + report['inputs'] = {'old': old_pin, 'new': new_pin} + except (OSError, ValueError, TypeError, RecursionError, ZeroDivisionError) as exc: + print(json.dumps({'status': 'INVALID_POWER_COMPARISON', 'error': str(exc)}), file=sys.stderr) + return 2 + print(json.dumps(report, indent=2, sort_keys=True)) + return 0 + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/research/p104-role379-idle-stop/src/direct_replay.py b/research/p104-role379-idle-stop/src/direct_replay.py new file mode 100644 index 0000000000..12b161d5ca --- /dev/null +++ b/research/p104-role379-idle-stop/src/direct_replay.py @@ -0,0 +1,751 @@ +#!/usr/bin/env python3 +"""Independent rational interpreter for the #7636 comparison boundary.""" + +import argparse +import gzip +import hashlib +import json +import math +import os +import resource +import signal +import sys +import time +import traceback +from collections import Counter +from dataclasses import dataclass +from datetime import datetime, timezone +from fractions import Fraction +from functools import cache +from pathlib import Path + + +A_CLOCKS = {127153, 127445, 127446, 127469, 130068} +CALLS = 17 +PUBLIC = 1501 +OWNED = 68 +GATE = 1 << 224 +PRICE_SCALE = 10**13 +ARITY = {"MOVE": 5, "INIT": 3, "CLEAR": 3, "SCALE": 4, "ADD": 5, "COPY": 5} + + +@dataclass(frozen=True) +class SourcePin: + head: str + literal_sha: str + gzip_sha: str + invoice_sha: str + certs_sha: str + affected_sha: str + events: int + used_labels: int + clears: int + affected: int + price: tuple[str, str] + b_clocks: frozenset[int] + + +SOURCES = { + 7636: SourcePin( + head="7e68d8dd62d9a38c0f3c942262a7a85ca7125b75", + literal_sha="98b8c12ece2f323a6ff5cac8c7ed2f78ba3835438ea56b16bd7d4698ec5ad5b2", + gzip_sha="1b4e33c3e3b69d1f1b42d019a2e372ac612fa28494bd8da18a734618f9bda659", + invoice_sha="18adee673515c4ece7208b53c7cc17a2e121843d55f62067d2e43e341872f0d5", + certs_sha="94809b766d041f6bb400df151de5702c5e8ec0a8a47c80ddfe5b2b3a5e0f09d2", + affected_sha="cee6de59aa47c8633bf260490d4d5948b7e78276e92f2735765ef1c05a80c8ae", + events=202668, used_labels=68, clears=180, affected=1023, + price=("0.0036807241001", "0.0036807241002"), b_clocks=frozenset({131142, 131294}), + ), + 7658: SourcePin( + head="0a0e71c34a5ee5a1b59a8fe7bc6abd35a4d3dd82", + literal_sha="fa84fcdecb534700cd00dc81b74889f549a653daa2fb3658cb8142e1eeb9b9e6", + gzip_sha="dde0a987c2dd9e221208ca5043dfd6e2bdfbb8c4289fa20e2b93fae1696b3ea9", + invoice_sha="26383ec33e4c4d552442b62f2bd7d9fd0a2fd0d357c1bcbf52ba913e11bb630e", + certs_sha="02e0651a9a44c710225dd741d484f990e238bd5ac9e6510a7b90b17679879f47", + affected_sha="741b7fd3306362d051c4d63b0d642ef47aaece842384d44423e997072f969f36", + events=150010, used_labels=52, clears=234, affected=32, + price=("0.00371676699784", "0.00371676699785"), b_clocks=frozenset({98054, 98204}), + ), +} + + +class Refusal(ValueError): + def __init__(self, code, detail, clock=None): + super().__init__(f"{code} at {clock}: {detail}" if clock is not None else f"{code}: {detail}") + self.record = dict(code=code, detail=detail, clock=clock) + + +def demand(condition, code, detail, clock=None): + if not condition: + raise Refusal(code, detail, clock) + + +def digest(raw): + return hashlib.sha256(raw).hexdigest() + + +def exact_json(raw): + def unique_map(items): + table = dict(items) + demand(len(table) == len(items), "duplicate_key", "JSON object repeats a key") + return table + + return json.loads(raw, object_pairs_hook=unique_map) + + +def read_pinned(path, expected, custody): + raw = path.read_bytes() + observed = digest(raw) + demand(expected is None or observed == expected, "hash", f"{path.name}: expected {expected}, got {observed}") + custody[path] = observed + return raw + + +def read_word(path, gzip_hash, word_hash, custody): + literal = gzip.decompress(read_pinned(path, gzip_hash, custody)) + demand(isinstance(word_hash, str) and word_hash == digest(literal), "literal_hash", path.name) + return exact_json(literal) + + +def index(value, count, kind, clock=None): + demand(type(value) is int and 0 <= value < count, kind, f"invalid index {value!r}", clock) + return value + + +def chart_catalogue(frames): + masks = [] + for number, basis in enumerate(frames): + vectors = [0] + for vector in basis: + index(vector, 512, "frame_vector") + demand(vector not in vectors, "frame_dimension", f"dependent direction in chart {number}") + vectors.extend([old ^ vector for old in vectors]) + masks.append(sum(1 << vector for vector in vectors)) + return masks, [len(basis) for basis in frames] + + +def strictly_inside(smaller, larger): + return smaller != larger and (smaller & larger) == smaller + + +def touched(event): + if event[0] in {"ADD", "COPY"}: + return event[1], event[2] + return (event[1],) + + +@cache +def coefficient(literal): + demand(type(literal) is str, "scalar_encoding", repr(literal)) + result = Fraction(literal) + demand(result != 0, "zero_scalar", literal) + return result + + +def add_scaled(destination, donor, scalar): + # Published rows and observations retain the old dictionary. + out = destination.copy() + for formal_input, donor_coefficient in donor.items(): + new = out.get(formal_input, 0) + scalar * donor_coefficient + if new: + out[formal_input] = new + else: + out.pop(formal_input, None) + return out + + +def verify_clear(event, rows, certificate, clock): + owned = event[1] + reconstructed = {} + for donor, scalar in certificate.items(): + index(donor, len(rows), "clear_donor", clock) + demand(donor != owned, "clear_self", f"owned field {owned} used as its own witness", clock) + demand(rows[donor] is not None, "clear_dead_donor", f"role {donor}", clock) + reconstructed = add_scaled(reconstructed, rows[donor], scalar) + demand(rows[owned] or not certificate, "clear_zero_certificate", f"owned field {owned}", clock) + demand(reconstructed == rows[owned], "clear_reconstruction", f"owned field {owned}", clock) + + +@cache +def denominator_parts(denominator): + two_power = (denominator & -denominator).bit_length() - 1 + odd = denominator >> two_power + remaining = odd + for prime in (3, 5): + while remaining % prime == 0: + remaining //= prime + return two_power, odd, remaining == 1 + + +class Grid: + def __init__(self): + self.two_power = 0 + self.odd_lcm = 1 + self.numerator_bits = 1 + + def see(self, number, clock): + two_power, odd, smooth = denominator_parts(number.denominator) + demand(smooth, "grid_prime", f"coefficient has denominator {number.denominator}", clock) + self.two_power = max(self.two_power, two_power) + self.odd_lcm = math.lcm(self.odd_lcm, odd) + self.numerator_bits = max(self.numerator_bits, abs(number.numerator).bit_length()) + + +def interpret(word, masks, dimensions, certificates): + """MOVE changes chart and retains the same formal common-ambient row.""" + table_size = PUBLIC + OWNED + frame_count = len(masks) + row = [{formal_input: Fraction(1)} for formal_input in range(PUBLIC)] + [None] * OWNED + chart = [index(chart_id, frame_count, "initial_chart") for chart_id in word["initial"]] + [None] * OWNED + observations, erasures = [], [] + open_lifetime, finished_lifetimes = {}, [] + peak, labels = 0, set() + counts, paid, move_pairs = Counter(), Counter(), Counter() + paid_owned = Counter() + nondyadic = Counter() + scalar_units = 0 + grid = Grid() + + for clock, event in enumerate(word["program"]): + demand(type(event) is list and len(event) >= 2, "event", repr(event), clock) + operation = event[0] + demand(operation in ARITY and len(event) == ARITY[operation], "event_shape", repr(event), clock) + refs = [index(ref, table_size, "role", clock) for ref in touched(event)] + target = refs[0] + private = target >= PUBLIC + counts[operation] += 1 + protected = operation == "COPY" or any(ref >= PUBLIC for ref in refs) + before = tuple((chart[ref], row[ref]) for ref in refs) if protected else None + scalars = () + + if operation == "INIT": + demand(private and row[target] is None, "init_lifetime", str(target), clock) + here = index(event[2], frame_count, "chart", clock) + row[target], chart[target] = {}, here + open_lifetime[target] = here + labels.add(target) + peak = max(peak, len(open_lifetime)) + else: + for ref in refs: + demand(row[ref] is not None, "dead_operand", str(ref), clock) + if operation == "MOVE": + _, _, begin, end, flag = event + index(begin, frame_count, "chart", clock) + index(end, frame_count, "chart", clock) + demand(type(flag) is bool and flag == private, "move_ownership", str(target), clock) + demand(begin == chart[target], "move_origin", f"role {target} starts at {chart[target]}, got {begin}", clock) + forwards = strictly_inside(masks[begin], masks[end]) + backwards = private and strictly_inside(masks[end], masks[begin]) + demand(forwards or backwards, "owned_nesting" if private else "public_ascent", f"{begin} to {end}", clock) + rank = abs(dimensions[end] - dimensions[begin]) + paid[rank] += 1 + if private: + paid_owned[rank] += 1 + move_pairs[(begin, end)] += 1 + chart[target] = end + elif operation == "CLEAR": + here = index(event[2], frame_count, "chart", clock) + demand(private and here == chart[target], "clear_lifetime", str(target), clock) + ordinal = len(erasures) + demand(ordinal < len(certificates), "extra_clear", str(target), clock) + expected, terms = certificates[ordinal] + demand(tuple(event) == expected, "clear_order", f"ordered CLEAR {ordinal}", clock) + verify_clear(event, row, terms, clock) + erasures.append((clock, tuple(event), row[target])) + finished_lifetimes.append((target, open_lifetime.pop(target), here)) + row[target], chart[target] = None, None + else: + here = index(event[-1], frame_count, "chart", clock) + demand(all(chart[ref] == here for ref in refs), "scalar_chart", repr(event), clock) + amount = coefficient(event[-2]) + if operation == "SCALE": + row[target] = {i: amount * value for i, value in row[target].items()} + scalars = row[target].values() + else: + donor = refs[1] + demand(donor != target, "scalar_alias", str(target), clock) + if operation == "COPY": + demand(not row[target], "copy_nonzero", str(target), clock) + row[target] = add_scaled(row[target], row[donor], amount) + scalars = (row[target][i] for i in row[donor] if i in row[target]) + grid.see(amount, clock) + if denominator_parts(amount.denominator)[1] > 1: + nondyadic[operation] += 1 + numerator = abs(amount.numerator) + additions = numerator.bit_count() if operation in {"ADD", "COPY"} else 0 + scalar_units += 4 * (numerator.bit_length() + amount.denominator.bit_length() + 1 + additions) + for number in scalars: + grid.see(number, clock) + if protected: + after = tuple((chart[ref], row[ref]) for ref in refs) + observations.append((clock, tuple(event), before, after)) + + demand(not open_lifetime, "live_owned_at_end", repr(open_lifetime)) + demand(len(erasures) == len(certificates), "clear_count", str(len(erasures))) + demand(chart[:PUBLIC] == word["final"], "final_charts", "declared public output charts") + primary = set(word["live"]) | {port + 112 for port in word["live"]} + primary.update(word["hosted"]["X2"], word["hosted"]["Y2"]) + targets, altered_helpers = Counter(), [] + for role, (initial, final) in enumerate(zip(word["initial"], word["final"], strict=True)): + if role in primary: + continue + if row[role] != {role: 1}: + altered_helpers.append(role) + rank = dimensions[final] - dimensions[initial] + demand(rank > 0, "helper_rank", f"public role {role}, rank {rank}") + targets[rank] += 1 + return dict(rows=row, charts=chart, observations=observations, erasures=erasures, + lifetimes=finished_lifetimes, peak=peak, labels=sorted(labels), counts=counts, + paid=paid, paid_owned=paid_owned, targets=targets, move_pairs=move_pairs, altered_helpers=altered_helpers, + grid=vars(grid), nondyadic=dict(nondyadic), scalar_units=scalar_units) + + +def source_certificates(raw, source_program, clear_count): + table = exact_json(raw) + demand(isinstance(table, dict) and set(table) == {"clear_event_index"}, "certificate_schema", "CLEAR index") + table = table["clear_event_index"] + clocks = [i for i, event in enumerate(source_program) if event[0] == "CLEAR"] + demand(len(clocks) == clear_count and set(table) == {str(i) for i in clocks}, "certificate_coverage", repr(len(table))) + result = [] + for clock in clocks: + terms = {} + for key, value in table[str(clock)].items(): + role = index(int(key), PUBLIC + OWNED, "clear_donor", clock) + demand(str(role) == key, "clear_donor_spelling", key, clock) + terms[role] = coefficient(value) + result.append((tuple(source_program[clock]), terms)) + return result + + +def exact_compare(reference, candidate): + demand(reference["charts"] == candidate["charts"], "end_charts", "final public and private charts") + demand(reference["lifetimes"] == candidate["lifetimes"], "owned_order", "ordered owned lifetimes") + demand(reference["peak"] == candidate["peak"], "owned_peak", "maximum simultaneous lifetimes") + for kind in ("erasures", "observations"): + left, right = reference[kind], candidate[kind] + demand(len(left) == len(right), "protected_count", kind) + for a, b in zip(left, right, strict=True): + demand(a[1:] == b[1:], "protected_value", f"{kind} at source clock {a[0]}", b[0]) + for role, (a, b) in enumerate(zip(reference["rows"], candidate["rows"], strict=True)): + demand(a == b, "final_row", f"public row {role} full formal-input coefficient map") + + +def literal_changes(source, candidate): + """Recover short edit blocks using shared literal anchors on both tapes.""" + i, j = 0, 0 + changes = [] + previous_window = 0 + while i < len(source) and j < len(candidate): + if source[i] == candidate[j]: + i += 1 + j += 1 + previous_window += 1 + continue + matches = [] + for old_size in range(9): + for new_size in range(9): + old_anchor = source[i + old_size:i + old_size + 5] + new_anchor = candidate[j + new_size:j + new_size + 5] + if len(old_anchor) == 5 and old_anchor == new_anchor: + matches.append((old_size + new_size, old_size, new_size)) + matches.sort() + demand(matches and matches[0][0] > 0, "literal_alignment", "no anchor near edit", i) + demand(len(matches) == 1 or matches[0][0] != matches[1][0], "literal_alignment", "nonunique anchor", i) + _, old_size, new_size = matches[0] + demand(previous_window >= 5, "literal_alignment", "no shared prefix near edit", i) + changes.append(dict(source_start=i, source=source[i:i + old_size], + candidate_start=j, candidate=candidate[j:j + new_size])) + i += old_size + j += new_size + previous_window = 0 + demand(i == len(source) and j == len(candidate), "literal_tail", "unmatched terminal events") + return changes + + +def verify_scope(changes, program, variant, b_clocks): + permitted = b_clocks if variant == "B" else A_CLOCKS | b_clocks + removed = {j for edit in changes for j in range(edit["source_start"], edit["source_start"] + len(edit["source"]))} + demand(removed == permitted, "scope", f"replaced source clocks {sorted(removed)}") + a_insertions, b_insertions = [], [] + for edit in changes: + if edit["source_start"] in b_clocks: + b_insertions.extend(edit["candidate"]) + else: + a_insertions.extend(edit["candidate"]) + demand(b_insertions == [["MOVE", 379, 748, 1072, False]], "idle_replacement", repr(b_insertions)) + first, last = sorted(b_clocks) + demand(program[first] == ["MOVE", 379, 748, 1065, False] and program[last] == ["MOVE", 379, 1065, 1072, False], + "idle_source", "role 379's two leg identities") + demand(not any(379 in touched(event) for event in program[first + 1:last]), "idle_intervening_operand", "role 379") + if variant == "C": + demand(all(set(touched(event)) <= {902, 1091} for event in a_insertions), "contact_operands", repr(a_insertions)) + contacts = [event for event in a_insertions if event[0] == "ADD"] + demand(len(contacts) == 1 and contacts[0][1:3] == [1091, 902] and contacts[0][4] == 373, + "contact_chart", repr(contacts)) + + +def histogram(raw): + result = Counter() + for rank, quantity in raw.items(): + parsed = int(rank) + demand(str(parsed) == rank and parsed > 0, "invoice_rank", repr(rank)) + demand(type(quantity) is int and quantity > 0, "invoice_count", repr(quantity)) + result[parsed] = quantity + return result + + +def delta(before, after): + return {rank: after[rank] - before[rank] for rank in sorted(before.keys() | after.keys()) + if after[rank] != before[rank]} + + +def signed_invoice(pinned, original, candidate): + demand(pinned["schema"] == "integer-mult-recursive-invoice/v1", "invoice_schema", str(pinned["schema"])) + demand(pinned["contract"]["model"] == "mixed-target-unnormalized-power-v1" + and pinned["contract"]["ambient_rank"] == 145 + and pinned["contract"]["boundary"] == "complete signed #7113 caller application with 17 native calls", + "invoice_contract", str(pinned["contract"])) + residual, invoice = {}, {} + for key in ("paid", "targets"): + current = histogram(pinned[key]) + residual[key], invoice[key] = Counter(), Counter() + for rank in current.keys() | original[key].keys() | candidate[key].keys(): + kept = current[rank] - CALLS * original[key][rank] + demand(kept >= 0, "invoice_negative_residual", f"{key} at rank {rank}") + if kept: + residual[key][rank] = kept + count = kept + CALLS * candidate[key][rank] + if count: + invoice[key][rank] = count + return {"schema": pinned["schema"], "contract": pinned["contract"], **invoice}, residual + + +def signed_weights(invoice): + paid, targets = (histogram({str(k): v for k, v in invoice[key].items()}) for key in ("paid", "targets")) + return {rank: rank * change for rank, change in delta(paid, targets).items()} + + +def quantize(lower, upper): + return Fraction(math.floor(lower * GATE), GATE), Fraction(math.ceil(upper * GATE), GATE) + + +def log_one_to_two(z): + """2 atanh(z), where 0 <= z <= 1/3. Bound the positive omitted tail.""" + square = z * z + term, total = z, Fraction(0) + for i in range(96): + total += term / (2 * i + 1) + term *= square + return 2 * total, 2 * (total + term / (193 * (1 - square))) + + +@cache +def log_integer(number): + exponent = number.bit_length() - 1 + divisor = 1 << exponent + lower, upper = log_one_to_two(Fraction(number - divisor, number + divisor)) + two_lo, two_hi = log_one_to_two(Fraction(1, 3)) + return quantize(lower + exponent * two_lo, upper + exponent * two_hi) + + +@cache +def exp_minus_small(value): + """Even and odd partial sums bound exp(-x) for 0 <= x < 1.""" + demand(0 <= value < 1, "price_exponential_domain", str(value)) + term, total = Fraction(1), Fraction(1) + for k in range(1, 33): + term = -term * value / k + total += term + return quantize(total - term * value / 33, total) + + +def signed_price(weights, start, end, derivative=False): + lo = hi = Fraction(0) + for rank, weight in weights.items(): + log_lo, log_hi = log_integer(rank) + power_lo = exp_minus_small(end * log_hi)[0] + power_hi = exp_minus_small(start * log_lo)[1] + if derivative: + power_lo, power_hi = power_lo * log_lo, power_hi * log_hi + weight = -weight + a, b = weight * power_lo, weight * power_hi + lo += min(a, b) + hi += max(a, b) + return lo, hi + + +def approximate_grid(weights): + """Propose neighboring 13-place decimals. Only the exact sign test accepts them.""" + log = {rank: math.log(rank) for rank in weights} + low, high = 0, PRICE_SCALE // 100 + while high - low > 1: + middle = (low + high) // 2 + estimate = math.fsum(weight * math.exp(-middle / PRICE_SCALE * log[rank]) for rank, weight in weights.items()) + if estimate > 0: + low = middle + else: + high = middle + return (f"0.{low:013d}", f"0.{high:013d}") + + +def decimal_text(value, places): + sign = "-" if value < 0 else "" + quotient, suffix = divmod(abs(value), 10**places) + return f"{sign}{quotient}.{suffix:0{places}d}" + + +def outward_decimal(interval, places=26): + scale = 10**places + return [decimal_text(math.floor(interval[0] * scale), places), decimal_text(math.ceil(interval[1] * scale), places)] + + +def price_bracket(weights, bracket): + left, right = map(Fraction, bracket) + lower = signed_price(weights, left, left) + upper = signed_price(weights, right, right) + slope = signed_price(weights, left, right, derivative=True) + demand(left < right and lower[0] > 0 > upper[1] and slope[1] < 0, "price_bracket", repr(bracket)) + return dict(kappa=list(bracket), at_lower=outward_decimal(lower), at_upper=outward_decimal(upper), + derivative=outward_decimal(slope), weighted_surplus=sum(weights.values())) + + +def with_event(word, clock, changed): + tape = list(word["program"]) + tape[clock] = changed + return {**word, "program": tape} + + +def rejected(expected, action): + try: + action() + except Refusal as error: + demand(error.record["code"] in expected, "wrong_control_rejection", repr(error.record)) + return error.record + raise Refusal("control_accepted", repr(expected)) + + +def adverse_controls(word, candidate, masks, dimensions, certificates, changes, invoice_seed, original): + direct_clock = next(edit["candidate_start"] + i for edit in changes + for i, event in enumerate(edit["candidate"]) + if event == ["MOVE", 379, 748, 1072, False]) + direct = word["program"][direct_clock] + wrong_end = next(b for b, rank in enumerate(dimensions) + if rank == dimensions[direct[3]] and not strictly_inside(masks[direct[2]], masks[b])) + wrong_chart = with_event(word, direct_clock, [*direct[:3], wrong_end, False]) + chart = rejected({"public_ascent"}, lambda: interpret(wrong_chart, masks, dimensions, certificates)) + demand(chart["clock"] == direct_clock, "wrong_control_clock", repr(chart)) + + # A final-hub public ADD preserves the paid/target ranks and changes a real output. + last_clear = candidate["erasures"][-1][0] + clock, event = next((i, word["program"][i]) for i in range(len(word["program"]) - 1, last_clear, -1) + if word["program"][i][0] == "ADD" and max(touched(word["program"][i])) < PUBLIC) + wrong = [*event[:3], str(-coefficient(event[3])), event[4]] + mutated = interpret(with_event(word, clock, wrong), masks, dimensions, certificates) + good_invoice = signed_invoice(invoice_seed, original, candidate)[0] + control_invoice = signed_invoice(invoice_seed, original, mutated)[0] + demand(good_invoice == control_invoice, "control_price_changed", f"sign mutation at {clock}") + good = rejected({"final_row"}, lambda: exact_compare(candidate, mutated)) + + first_event, first_terms = certificates[0] + invalid = [(first_event, {**first_terms, first_event[1]: Fraction(1)}), *certificates[1:]] + clear = rejected({"clear_self"}, lambda: interpret(word, masks, dimensions, invalid)) + return dict(chart=dict(literal_before=direct, literal_after=wrong_chart["program"][direct_clock], rejection=chart), + coefficient=dict(clock=clock, literal_before=event, literal_after=wrong, invoice_identical=True, rejection=good), + certificate=dict(rejection=clear)) + + +def ordered_proof_trace(result): + def serial_row(row): + return None if row is None else [(i, str(value)) for i, value in sorted(row.items())] + + def serialize(data): + return digest(json.dumps(data, separators=(",", ":")).encode()) + + return { + "final_rows_sha256": serialize([serial_row(row) for row in result["rows"]]), + "ordered_clear_sha256": serialize([(event, serial_row(row)) for _, event, row in result["erasures"]]), + "ordered_protected_sha256": serialize([(event, + [(chart, serial_row(row)) for chart, row in before], + [(chart, serial_row(row)) for chart, row in after]) + for _, event, before, after in result["observations"]]), + "peak_owned": result["peak"], + "owned_label_count": len(result["labels"]), + "owned_lifetimes": len(result["lifetimes"]), + "owned_moves": sum(result["paid_owned"].values()), + "owned_add_zero_refills": owned_add_zero_refills(result["observations"]), + "ordered_clear_values": len(result["erasures"]), + "ordered_owned_or_copy_observations": len(result["observations"]), + "protected_observations_by_opcode": Counter(event[0] for _, event, _, _ in result["observations"]), + "nonzero_public_output_coefficients": sum(len(row) for row in result["rows"][:PUBLIC]), + "events_by_opcode": result["counts"], + "changed_operation_grid": result["grid"], + "non_dyadic_literal_events": result["nondyadic"], + "literal_scalar_units": result["scalar_units"], + "tape_move_pair_count": len(result["move_pairs"]), + "native_paid": result["paid"], + "native_paid_owned": result["paid_owned"], + "native_helper_targets": result["targets"], + } + + +def owned_add_zero_refills(observations): + count = 0 + pending = set() + for _, (operation, target, *_), before, after in observations: + if operation in {"INIT", "CLEAR"}: + pending.discard(target) + elif operation == "ADD" and target >= PUBLIC: + if target in pending and before[1][1]: + count += 1 + pending.remove(target) + if not after[0][1]: + pending.add(target) + return count + + +def run(args, custody, report): + pin = SOURCES[args.source_pr] + source = read_word(args.source_word or args.data / "word.json.gz", pin.gzip_sha, pin.literal_sha, custody) + demand(source["schema"] == "p104-accumulated-block-composition/2", "word_schema", source["schema"]) + demand(source["public"] == len(source["initial"]) == len(source["final"]) == PUBLIC + and source["owned_fields"] == OWNED and len(source["program"]) == pin.events and len(source["frames"]) == 1096, + "source_denominator", "public, owned, event and chart totals") + if args.source_pr == 7658: + demand(source["initial"][457] == 281, "source_entrance", "row 457 enters at chart 281") + if args.candidate is not None: + candidate = read_word(args.candidate, args.candidate_gzip_sha, args.candidate_json_sha, custody) + demand({k: v for k, v in source.items() if k != "program"} == + {k: v for k, v in candidate.items() if k != "program"}, "word_header", "candidate header differs") + changes = literal_changes(source["program"], candidate["program"]) + verify_scope(changes, source["program"], args.variant, pin.b_clocks) + certificate_bytes = read_pinned(args.source_certificates or args.data / "clear-certificates.json", pin.certs_sha, custody) + certs = source_certificates(certificate_bytes, source["program"], pin.clears) + affected_bytes = read_pinned(args.data / "affected-pairs-new.json", pin.affected_sha, custody) + affected = {tuple(pair) for pair in exact_json(affected_bytes)} + demand(len(affected) == pin.affected, "affected_census", str(len(affected))) + pinned_invoice = exact_json(read_pinned(args.source_invoice or args.data / "invoice-new.json", pin.invoice_sha, custody)) + masks, dimensions = chart_catalogue(source["frames"]) + before = interpret(source, masks, dimensions, certs) + demand(before["peak"] == 50 and len(before["labels"]) == pin.used_labels, "owned_denominator", "peak or used label count") + if args.source_pr == 7636: + demand(sum(before["paid_owned"].values()) == 47, "owned_moves", "source MOVE count") + if args.source_pr == 7658: + demand(owned_add_zero_refills(before["observations"]) == 0, "owned_zero_refill", "source has an exact-zero join") + demand(not before["altered_helpers"], "helper_identity", repr(before["altered_helpers"])) + source_invoice, residual = signed_invoice(pinned_invoice, before, before) + source_weights = signed_weights(source_invoice) + report["source"] = dict(pr=args.source_pr, head=pin.head, literal_sha256=pin.literal_sha, gzip_sha256=pin.gzip_sha, + full_signed_invoice=source_invoice, caller_residual=residual, + price=price_bracket(source_weights, pin.price), trace=ordered_proof_trace(before), + public=PUBLIC, allocated_owned=OWNED, frames=len(masks), + affected_predecessor_census=len(affected), + clear_certificate_term_counts=sorted(Counter(len(terms) for _, terms in certs).items())) + if args.candidate is None: + report["result"] = "PASS_SOURCE_REPLAY_AND_CONDITIONAL_PRICE" + return + + after = interpret(candidate, masks, dimensions, certs) + exact_compare(before, after) + invoice, _ = signed_invoice(pinned_invoice, before, after) + weights = signed_weights(invoice) + bracket = approximate_grid(weights) + candidate_price = price_bracket(weights, bracket) + demand(Fraction(bracket[0]) > Fraction(pin.price[1]), "strict_price_improvement", repr(bracket)) + if args.claim: + claim = Fraction(args.claim) + demand(claim > Fraction(pin.price[1]), "claim_exceeds_source", args.claim) + sign = signed_price(weights, claim, claim) + preceding = signed_price(source_weights, claim, claim) + demand(sign[0] > 0 > preceding[1], "claim_price_sign", args.claim) + candidate_price.update(claim=args.claim, at_claim=outward_decimal(sign), source_at_claim=outward_decimal(preceding)) + + source_pairs, candidate_pairs = before["move_pairs"], after["move_pairs"] + changed_pair_counts = [[*pair, source_pairs[pair], candidate_pairs[pair]] + for pair in sorted(source_pairs.keys() | candidate_pairs.keys()) + if source_pairs[pair] != candidate_pairs[pair]] + changes_out = {key: delta(source_invoice[key], invoice[key]) for key in ("paid", "targets")} + ordinary_variable_delta = CALLS * (after["scalar_units"] - before["scalar_units"] + + 1000 * (sum(after["paid"].values()) - sum(before["paid"].values()))) + report["candidate"] = dict(variant=args.variant, literal_sha256=args.candidate_json_sha, gzip_sha256=args.candidate_gzip_sha, + literal_changes=changes, full_signed_invoice=invoice, full_signed_delta=changes_out, + price=candidate_price, trace=ordered_proof_trace(after), + changed_pair_multiplicities=changed_pair_counts, + pairs_new_to_word=sorted(candidate_pairs.keys() - source_pairs.keys()), + pairs_removed_from_word=sorted(source_pairs.keys() - candidate_pairs.keys()), + affected_census_with_literal_edit=len(affected | {tuple(pair[:2]) for pair in changed_pair_counts}), + changed_native_ordinary_units_at_17_calls=ordinary_variable_delta) + report["controls"] = adverse_controls(candidate, after, masks, dimensions, certs, changes, pinned_invoice, before) + report["result"] = "PASS_PAIRED_EXACT_REPLAY_AND_CONDITIONAL_PRICE" + + +def cap(source_pr): + usable = sorted(os.sched_getaffinity(0)) + # The two independent pinned replays can use different available CPUs. + chosen = usable[-1] if source_pr == 7658 else usable[len(usable) // 2] + os.sched_setaffinity(0, {chosen}) + address = 2 * 1024**3 + resource.setrlimit(resource.RLIMIT_AS, (address, address)) + resource.setrlimit(resource.RLIMIT_CPU, (240, 241)) + + def timeout(_signum, _frame): + raise Refusal("timeout", "240-second elapsed-time cap") + + signal.signal(signal.SIGALRM, timeout) + signal.alarm(240) + return dict(cpu=chosen, address_space_bytes=address, cpu_seconds=240, wall_seconds=240) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--data", type=Path, required=True) + parser.add_argument("--source-pr", type=int, choices=tuple(SOURCES), default=7636) + parser.add_argument("--source-word", type=Path) + parser.add_argument("--source-certificates", type=Path) + parser.add_argument("--source-invoice", type=Path) + parser.add_argument("--candidate", type=Path) + parser.add_argument("--candidate-gzip-sha") + parser.add_argument("--candidate-json-sha") + parser.add_argument("--variant", choices=("B", "C")) + parser.add_argument("--claim") + parser.add_argument("--out", type=Path, required=True) + args = parser.parse_args() + if args.candidate is not None and not (args.candidate_gzip_sha and args.candidate_json_sha and args.variant): + parser.error("a candidate requires both hashes and its variant") + if args.source_pr == 7658 and args.variant == "C": + parser.error("#7658 is pinned only for the standalone role-379 edit") + report = {"schema": "p104-independent-exact-replay/2", "limits": cap(args.source_pr), + "started": datetime.now(timezone.utc).isoformat(), + "price_convention": "sum (targets_r - paid_r) * r^(1-C)", + "assurance": "Exact literal row and certificate replay with the pinned source's conditional #7113 invoice residual."} + custody = {} + start = time.perf_counter() + with args.out.open("x") as output: + try: + run(args, custody, report) + for path, expected in custody.items(): + demand(digest(path.read_bytes()) == expected, "input_changed_during_run", path.name) + roles = { + args.source_word or args.data / "word.json.gz": "source_gzip", + args.source_certificates or args.data / "clear-certificates.json": "clear_certificates", + args.source_invoice or args.data / "invoice-new.json": "source_invoice", + args.data / "affected-pairs-new.json": "source_affected_census", + args.candidate: "candidate_gzip", + } + report["input_bytes_rechecked"] = {roles[path]: sha for path, sha in custody.items()} + except Exception as error: + report["result"] = "REFUSED" + report["error"] = error.record if isinstance(error, Refusal) else repr(error) + traceback.print_exc() + report["finished"] = datetime.now(timezone.utc).isoformat() + report["elapsed_seconds"] = time.perf_counter() - start + used = resource.getrusage(resource.RUSAGE_SELF) + report["resource_usage"] = dict(user_cpu_seconds=used.ru_utime, system_cpu_seconds=used.ru_stime, max_rss_kib=used.ru_maxrss) + json.dump(report, output, indent=2, sort_keys=True) + output.write("\n") + signal.alarm(0) + print(report["result"]) + return report["result"] == "REFUSED" + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/research/p104-role379-idle-stop/src/idle_direct.py b/research/p104-role379-idle-stop/src/idle_direct.py new file mode 100644 index 0000000000..ddbb82f5dc --- /dev/null +++ b/research/p104-role379-idle-stop/src/idle_direct.py @@ -0,0 +1,358 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Contract one silent public stop and check its literal and physical substitution.""" + +import argparse +from collections import Counter +from datetime import datetime, timezone +from fractions import Fraction +import gzip +from hashlib import sha256 +from io import BytesIO +import json +from pathlib import Path +import runpy +import sys + + +PRICE_PINS = { + 'compare_recursive_invoices.py': '3930c22c11da7bc6042cfeb6e459ecb06e4478430037bee3469d034353855fc6', + 'evaluate_recursive_power.py': '52b20f41fd0bb55fa88dccd6015af2ce358917817b9506720f3e60ce681cc3ad', +} + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def digest(data): + return sha256(data).hexdigest() + + +def read_pinned(path, pin): + data = path.read_bytes() + require(digest(data) == pin, f'input hash mismatch for {path.name}') + return data + + +def canonical(obj): + return json.dumps(obj, sort_keys=True, separators=(',', ':')).encode('ascii') + + +def span(frame): + values = {0} + for vector in frame: + require(type(vector) is int and 0 < vector < 512 and vector not in values, + 'dependent or invalid frame vector') + values |= {entry ^ vector for entry in values} + return frozenset(values) + + +def operands(event): + return event[1:3] if event[0] in ('ADD', 'COPY') else event[1:2] + + +def inspect(word, spans): + """Check the entire typed tape without evaluating or changing any scalar.""" + public = word['public'] + charts = list(word['initial']) + [None] * word['owned_fields'] + require(len(word['initial']) == len(word['final']) == public, + 'wrong public interface size') + paid, operations, clears, protected, labels = Counter(), Counter(), [], [], set() + active = peak = 0 + for clock, event in enumerate(word['program']): + op, addr = event[:2] + fields = operands(event) + require(all(type(r) is int and 0 <= r < len(charts) for r in fields), + f'clock {clock}: operand range') + owned = addr >= public + if any(r >= public for r in fields): + protected.append(event) + operations[op] += 1 + if op == 'MOVE': + source, target, flag = event[2:] + require(flag is owned and charts[addr] == source and source is not None, + f'clock {clock}: MOVE source chart or ownership') + require(spans[source] < spans[target] or (owned and spans[target] < spans[source]), + f'clock {clock}: MOVE must have the required strict nesting') + charts[addr] = target + paid[abs(len(word['frames'][target]) - len(word['frames'][source]))] += 1 + elif op == 'INIT': + require(owned and charts[addr] is None and 0 <= event[2] < len(spans), + f'clock {clock}: INIT requires a dead owned field and a chart') + charts[addr] = event[2] + labels.add(addr) + active += 1 + peak = max(peak, active) + elif op == 'CLEAR': + require(owned and charts[addr] is not None and charts[addr] == event[2], + f'clock {clock}: CLEAR requires a live owned field in its chart') + charts[addr] = None + active -= 1 + clears.append(clock) + else: + require(op in ('ADD', 'COPY', 'SCALE') and len(set(fields)) == len(fields), + f'clock {clock}: scalar operation or repeated operand') + require(all(charts[r] is not None and charts[r] == event[-1] for r in fields), + f'clock {clock}: scalar operands must share the declared chart') + require(Fraction(event[-2]) != 0, f'clock {clock}: scalar coefficient cannot vanish') + require(active == 0 and charts[public:] == [None] * word['owned_fields'], + 'every owned field must end dead') + require(charts[:public] == word['final'], 'wrong public end charts') + live = set(word['live']) + mains = live | {r + 112 for r in live} | set(word['hosted']['X2']) | set(word['hosted']['Y2']) + dims = [len(frame) for frame in word['frames']] + targets = Counter(dims[b] - dims[a] for r, (a, b) in enumerate(zip(word['initial'], word['final'])) + if r not in mains) + require(all(rank > 0 for rank in targets), 'productive helper ranks must be positive') + return {'paid': paid, 'targets': targets, 'operations': operations, 'clears': clears, + 'protected': protected, 'labels': sorted(labels), 'peak': peak, 'mains': mains} + + +def construct(word, role, first, second, spans): + tape = word['program'] + require(0 <= role < word['public'] and 0 <= first < second < len(tape), + 'role or MOVE clocks outside the source tape') + enter, leave = tape[first], tape[second] + require(enter[:2] == leave[:2] == ['MOVE', role] and enter[-1] is leave[-1] is False, + 'two public MOVE anchors must name the fixed role') + source, middle, target = enter[2], enter[3], leave[3] + require(leave[2] == middle and spans[source] < spans[middle] < spans[target], + 'anchors do not form a strictly nested path') + touched = [clock for clock in range(first + 1, second) if role in operands(tape[clock])] + require(not touched, f'role observed in open MOVE interval at {touched[:4]}') + direct = ['MOVE', role, source, target, False] + edited = tape[:first] + tape[first + 1:second] + [direct] + tape[second + 1:] + return dict(word, program=edited), direct, (source, middle, target) + + +def scalar_transcript(word): + return [event for event in word['program'] if event[0] != 'MOVE'] + + +def prove_scalar_order(before, after): + original = scalar_transcript(before) + require(original == scalar_transcript(after), 'normalized non-MOVE sequence differs') + return {'events': len(original), 'sha256': digest(canonical(original)), + 'invariant': 'Identical INIT, ADD, COPY, SCALE and CLEAR instructions in order imply ' + 'identical normalized symbolic rows after each scalar operation on arbitrary inputs.'} + + +def remap_certificates(certs, before, after, removed): + indexed = certs['clear_event_index'] + require(set(indexed) == {str(clock) for clock in before['clears']}, + 'source CLEAR certificate clocks do not cover the exact tape') + shifted = {str(clock - (clock > removed)): indexed[str(clock)] for clock in before['clears']} + require(set(shifted) == {str(clock) for clock in after['clears']}, + 'candidate CLEAR certificate clocks do not cover the exact tape') + return dict(certs, clear_event_index=shifted) + + +def must_reject(check, expected): + try: + check() + except ValueError as error: + require(expected in str(error), f'wrong rejecting control: {error}') + return str(error) + raise ValueError(f'negative control accepted: {expected}') + + +def structural_controls(word, candidate, role, first, second, spans): + source_program, new_program = word['program'], candidate['program'] + observer = ['SCALE', role, '-1', source_program[first][3]] + observed = dict(word, program=source_program[:second] + [observer] + source_program[second:]) + inspect(observed, spans) + replacement = second - 1 + direct = new_program[replacement] + wrong = new_program[:replacement] + [direct[:2] + source_program[first][3:4] + direct[3:]] + new_program[replacement + 1:] + omitted = new_program[:replacement] + new_program[replacement + 1:] + nearby = next(i for i in range(replacement + 1, len(new_program)) + if new_program[i][0] in ('ADD', 'SCALE') and role in operands(new_program[i])) + mutation = new_program[nearby][:] + mutation[-2] = str(-Fraction(mutation[-2])) + changed_scalar = dict(candidate, program=new_program[:nearby] + [mutation] + new_program[nearby + 1:]) + inspect(changed_scalar, spans) + return { + 'legal_intervening_scale': must_reject( + lambda: construct(observed, role, first, second + 1, spans), 'role observed in open MOVE interval'), + 'wrong_direct_source': must_reject(lambda: inspect(dict(candidate, program=wrong), spans), 'MOVE source chart'), + 'missing_direct_move': must_reject(lambda: inspect(dict(candidate, program=omitted), spans), 'operands must share'), + 'legal_changed_scalar': must_reject(lambda: prove_scalar_order(word, changed_scalar), 'normalized non-MOVE sequence differs'), + } + + +def verify_phase(source_check, frames, path): + # Pinned predecessor module reads a mode at import time. + original_argv = sys.argv + try: + sys.argv = [str(source_check)] + tools = runpy.run_path(str(source_check)) + finally: + sys.argv = original_argv + first, middle, last = path + dagger, tableau, column = (tools[name] for name in ('dagger', 'tableau', 'column')) + lower, frame, recipe_circuit = (tools[name] for name in ('lower', 'frame_op', 'recipe_circuit')) + checked = [] + circuits = [] + for a, b in ((first, middle), (middle, last), (first, last)): + rank = tools['pair_columns'](frames, a, b) + recipe = lower(frame(frames[a]).dag().then(frame(frames[b]))) + circuits.append(recipe_circuit(recipe)) + checked.append({'pair': [a, b], 'rank': rank, 'forward_columns': 512, + 'adjoint_columns': 512, 'wrong_phase_rejected': True, + 'recipe_sha256': digest(canonical(recipe))}) + via, direct = circuits[0] + circuits[1], circuits[2] + require(tableau(via) == tableau(direct) and tableau(dagger(via)) == tableau(dagger(direct)), + 'composed signed Pauli action differs') + wrong_phase = direct + (('phase', 1),) + require(tableau(wrong_phase) == tableau(via) and column(wrong_phase) != column(via) + and column(dagger(wrong_phase)) != column(dagger(via)), 'wrong-phase control did not reject') + for name, a, b in (('forward', via, direct), ('adjoint', dagger(via), dagger(direct))): + for index in range(512): + require(column(a, index) == column(b, index), f'{name} composed column {index} differs') + return {'checked_pairs': checked, 'composed_path': list(path), 'forward_columns': 512, + 'adjoint_columns': 512, 'signed_pauli_equal': True, 'absolute_phase_equal': True, + 'wrong_phase_same_pauli': True, 'wrong_phase_rejected_forward_and_adjoint': True} + + +def delta(new, old): + return {str(rank): new[rank] - old[rank] for rank in sorted(new.keys() | old.keys()) if new[rank] != old[rank]} + + +def compare_price(pricing_dir, old, before, after, calls, source_upper): + for filename, pin in PRICE_PINS.items(): + read_pinned(pricing_dir / filename, pin) + compare = runpy.run_path(str(pricing_dir / 'compare_recursive_invoices.py'))['compare_invoices'] + evaluate = runpy.run_path(str(pricing_dir / 'evaluate_recursive_power.py'))['evaluate'] + residuals = {} + new = dict(old) + for side in ('paid', 'targets'): + full = Counter({int(rank): count for rank, count in old[side].items()}) + residual = {rank: full[rank] - calls * before[side][rank] for rank in full.keys() | before[side].keys()} + require(all(count >= 0 for count in residual.values()), f'declared caller residual below zero for {side}') + residuals[side] = {str(rank): count for rank, count in sorted(residual.items()) if count} + new[side] = {str(rank): residual.get(rank, 0) + calls * after[side][rank] + for rank in sorted(residual.keys() | after[side].keys()) + if residual.get(rank, 0) + calls * after[side][rank]} + comparison = compare(old, new) + require(comparison['classification'] == 'uniformly_better' and not comparison['delta_targets'], + 'candidate must improve the fixed-target declared invoice') + require(not any(comparison['rank_mass']['delta'].values()), 'paid and target rank masses changed') + zero = dict(old, paid={}, targets={}) + scale = 10**13 + base_upper = Fraction(source_upper) + lo = base_upper * scale + require(lo.denominator == 1 and 0 < base_upper < 1 - Fraction(1, 10000), 'invalid source upper on the price grid') + lo = lo.numerator + hi = lo + scale // 10000 + + def point(invoice, bound): + return evaluate(zero, invoice, 1 - Fraction(bound, scale), bits=256) + + base_probe, separation_probe = point(old, lo), point(new, lo) + require(base_probe['classification'] == 'new_cost_higher', 'declared source upper must have negative moment') + require(separation_probe['classification'] == 'new_cost_lower', 'candidate does not separate from source upper') + high_probe = point(new, hi) + require(high_probe['classification'] == 'new_cost_higher', 'candidate higher endpoint is outside bounded search') + low_probe = separation_probe + while hi - lo > 1: + mid = (lo + hi) // 2 + probe = point(new, mid) + side = probe['classification'] + if side == 'new_cost_lower': + lo, low_probe = mid, probe + else: + require(side == 'new_cost_higher', 'directed price point unresolved') + hi, high_probe = mid, probe + + def as_decimal(tick): + return f'{tick // scale}.{tick % scale:013d}' + + report = {'comparison': comparison, 'source_upper': source_upper, 'bracket': [as_decimal(lo), as_decimal(hi)], + 'source_at_source_upper': base_probe, 'candidate_at_source_upper': separation_probe, + 'candidate_at_lower': low_probe, 'candidate_at_upper': high_probe, + 'native_calls': calls, 'declared_fixed_caller_residual': residuals, + 'scope': 'Literal native counts plus unchanged residual inferred from the pinned declared invoice.'} + return new, report + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + for name in ('word', 'invoice', 'certificates', 'source-check', 'pricing-dir', 'out'): + parser.add_argument('--' + name, type=Path, required=True) + for name in ('word-sha', 'word-gzip-sha', 'invoice-sha', 'certificates-sha', 'source-check-sha', 'source-head', 'base-upper'): + parser.add_argument('--' + name, required=True) + for name in ('source-pr', 'role', 'clears'): + parser.add_argument('--' + name, type=int, required=True) + parser.add_argument('--calls', type=int, default=17) + parser.add_argument('--anchors', type=int, nargs=2, required=True) + args = parser.parse_args() + require(not args.out.exists(), 'use a fresh output directory') + started = datetime.now(timezone.utc).isoformat() + raw = gzip.decompress(read_pinned(args.word, args.word_gzip_sha)) + require(digest(raw) == args.word_sha, 'decoded source word hash mismatch') + source = json.loads(raw) + old_invoice = json.loads(read_pinned(args.invoice, args.invoice_sha)) + certs = json.loads(read_pinned(args.certificates, args.certificates_sha)) + read_pinned(args.source_check, args.source_check_sha) + spans = [span(frame) for frame in source['frames']] + first, second = args.anchors + candidate, direct, path = construct(source, args.role, first, second, spans) + before, after = inspect(source, spans), inspect(candidate, spans) + require(args.role not in before['mains'], 'scope requires a nonmain role') + require(len(before['clears']) == len(after['clears']) == args.clears, 'wrong CLEAR denominator') + require(all(before[key] == after[key] for key in ('protected', 'peak', 'labels', 'targets')), + 'owned operations, bank inventory, peak or target ranks differ') + require(len(source['program']) == len(candidate['program']) + 1, 'MOVE count must fall exactly one') + normalized = prove_scalar_order(source, candidate) + candidate_certs = remap_certificates(certs, before, after, first) + controls = structural_controls(source, candidate, args.role, first, second, spans) + physical = verify_phase(args.source_check, source['frames'], path) + new_invoice, price = compare_price(args.pricing_dir, old_invoice, before, after, args.calls, args.base_upper) + native_delta = delta(after['paid'], before['paid']) + require(sum(native_delta.values()) == -1 and sum(int(rank) * n for rank, n in native_delta.items()) == 0, + 'native paid substitution must drop one MOVE and preserve rank mass') + + payload = canonical(candidate) + compressed = BytesIO() + with gzip.GzipFile(filename='', mode='wb', fileobj=compressed, compresslevel=9, mtime=0) as archive: + archive.write(payload) + archive = compressed.getvalue() + edits = {'source_pr': args.source_pr, 'source_head': args.source_head, 'source_word_sha256': args.word_sha, + 'base_events': len(source['program']), 'delete': [[clock, source['program'][clock]] for clock in args.anchors], + 'insert_before': [[second, [direct]]], 'append': []} + kept_neighbors = {side: next(([clock, source['program'][clock]] for clock in clocks + if args.role in operands(source['program'][clock])), None) + for side, clocks in (('before', range(first - 1, -1, -1)), + ('after', range(second + 1, len(source['program']))))} + result = { + 'status': 'PASS_SILENT_PUBLIC_MOVE_SUBSTITUTION', 'started_at': started, + 'finished_at': datetime.now(timezone.utc).isoformat(), 'role': args.role, + 'source': {'pr': args.source_pr, 'head': args.source_head, 'word_sha256': args.word_sha, + 'gzip_sha256': args.word_gzip_sha, 'events': len(source['program']), + 'invoice_sha256': args.invoice_sha, 'certificates_sha256': args.certificates_sha, + 'physical_checker_sha256': args.source_check_sha, 'price_checker_sha256': PRICE_PINS}, + 'candidate': {'word_sha256': digest(payload), 'gzip_sha256': digest(archive), 'events': len(candidate['program'])}, + 'cut': {'anchors': args.anchors, 'frames': list(path), 'dimensions': [len(source['frames'][c]) for c in path], + 'intervening_role_mentions': 0, 'neighbors': kept_neighbors, + 'CLEARs_in_open_interval': sum(first < clock < second for clock in before['clears'])}, + 'scalar_order': normalized, 'protected_events': len(before['protected']), + 'ordered_clears': args.clears, 'owned_peak': before['peak'], 'owned_labels': len(before['labels']), + 'CLEAR_certificates': 'same coefficients keyed by retained CLEAR clocks', + 'paid_native_before': dict(before['paid']), 'paid_native_after': dict(after['paid']), + 'paid_native_delta': native_delta, 'declared_signed_paid_delta': price['comparison']['delta_paid'], + 'signed_price_bracket_on_declared_residual': price['bracket'], + 'physical': physical, 'controls': controls, + } + args.out.mkdir(parents=True) + (args.out / 'WORD.json.gz').write_bytes(archive) + for filename, data in (('EDITS.json', edits), ('CLEAR-CERTIFICATES.json', candidate_certs), ('INVOICE.json', new_invoice), + ('PRICE.json', price), ('RESULT.json', result)): + (args.out / filename).write_bytes(canonical(data) + b'\n') + print(json.dumps({'status': result['status'], 'candidate': result['candidate'], 'native_delta': native_delta, + 'price_bracket_on_declared_residual': price['bracket']}, sort_keys=True)) + + +if __name__ == '__main__': + main() diff --git a/research/p104-role379-idle-stop/verify.py b/research/p104-role379-idle-stop/verify.py new file mode 100644 index 0000000000..e3eff0e802 --- /dev/null +++ b/research/p104-role379-idle-stop/verify.py @@ -0,0 +1,174 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Rebuild and check each pinned role-379 mutation in a private temporary directory.""" + +import argparse +import gzip +import hashlib +import json +from pathlib import Path, PurePosixPath +import subprocess +import sys +import tempfile + + +PACKAGE = Path(__file__).resolve().parent +CHECKERS = PACKAGE / "src" +PRICING = PACKAGE / "retained/pricing" +PARENTS = (7636, 7658) + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def read_json(path): + return json.loads(path.read_bytes()) + + +def digest(blob): + return hashlib.sha256(blob).hexdigest() + + +def git_blob(blob): + return hashlib.sha1(f"blob {len(blob)}\0".encode("ascii") + blob).hexdigest() + + +def pinned_sources(): + manifest = read_json(PACKAGE / "SOURCE-PINS.json") + require(manifest["schema_version"] == 1, "source pin schema") + pins = {} + for pin in manifest["files"]: + local = pin["local_path"] + name = PurePosixPath(local) + require(not name.is_absolute() and name.as_posix() == local and ".." not in name.parts + and local not in pins, f"invalid pinned path {local!r}") + path = PACKAGE / local + require(path.is_file() and path.resolve() == path, f"missing or aliased source {local}") + payload = path.read_bytes() + require(len(payload) == pin["bytes"] and digest(payload) == pin["sha256"] + and git_blob(payload) == pin["git_blob"], f"source bytes differ for {local}") + pins[local] = pin + return pins + + +def run_checker(work, filename, *args): + command = [ + sys.executable, "-I", "-B", "-W", "error", + "-X", f"pycache_prefix={work / 'bytecode-cache'}", + str(CHECKERS / filename), *map(str, args), + ] + subprocess.run(command, cwd=work, check=True) + + +def run_mutation(pr, work, evidence, pins): + expected = read_json(evidence / "mutation/RESULT.json") + expected_price = read_json(evidence / "mutation/PRICE.json") + source = expected["source"] + require(expected["role"] == 379 and source["pr"] == pr, "role and parent binding") + parent = f"retained/pr{pr}" + word = f"{parent}/data/word.json.gz" + invoice = f"{parent}/data/invoice-new.json" + certificates = f"{parent}/data/clear-certificates.json" + phase = next(local for local, pin in pins.items() + if pin["sha256"] == source["physical_checker_sha256"] and local.endswith("/check.py")) + require(all(pins[k]["commit"] == source["head"] and pins[k]["pull_request"] == pr + for k in (word, invoice, certificates)), "pinned parent head mismatch") + require(source["gzip_sha256"] == pins[word]["sha256"] + and source["invoice_sha256"] == pins[invoice]["sha256"] + and source["certificates_sha256"] == pins[certificates]["sha256"], "pinned parent digest mismatch") + first, second = expected["cut"]["anchors"] + witness_by_clock = read_json(PACKAGE / certificates)["clear_event_index"] + interval_witnesses = [terms for clock, terms in witness_by_clock.items() if first < int(clock) < second] + require(len(interval_witnesses) == expected["cut"]["CLEARs_in_open_interval"] + and all(str(expected["role"]) not in terms for terms in interval_witnesses), + "a CLEAR certificate observes the edited role during its hold") + + result_dir = work / "mutation" + run_checker( + work, "idle_direct.py", + "--word", PACKAGE / word, "--word-sha", source["word_sha256"], + "--word-gzip-sha", source["gzip_sha256"], "--source-pr", pr, "--source-head", source["head"], + "--role", expected["role"], "--anchors", *expected["cut"]["anchors"], "--clears", expected["ordered_clears"], + "--invoice", PACKAGE / invoice, "--invoice-sha", source["invoice_sha256"], + "--certificates", PACKAGE / certificates, "--certificates-sha", source["certificates_sha256"], + "--source-check", PACKAGE / phase, "--source-check-sha", source["physical_checker_sha256"], + "--pricing-dir", PRICING, "--base-upper", expected_price["source_upper"], + "--out", result_dir, + ) + actual = read_json(result_dir / "RESULT.json") + require(actual["status"] == "PASS_SILENT_PUBLIC_MOVE_SUBSTITUTION", "mutation checker did not pass") + candidate = result_dir / "WORD.json.gz" + raw = candidate.read_bytes() + candidate_word_sha = digest(gzip.decompress(raw)) + candidate_gzip_sha = digest(raw) + require(candidate_word_sha == actual["candidate"]["word_sha256"] + and candidate_gzip_sha == actual["candidate"]["gzip_sha256"], "generated candidate custody") + + for report in (actual, expected): + del report["started_at"], report["finished_at"], report["candidate"]["gzip_sha256"] + require(actual == expected, "generated mutation receipt differs") + for name in ("EDITS.json", "INVOICE.json", "PRICE.json", "CLEAR-CERTIFICATES.json"): + require(read_json(result_dir / name) == read_json(evidence / "mutation" / name), + f"generated {name} differs") + return candidate, candidate_word_sha, candidate_gzip_sha + + +def comparable_independent(report): + """Allow run times and generated gzip transport to vary across environments.""" + for key in ("started", "finished", "elapsed_seconds", "resource_usage"): + del report[key] + del report["limits"]["cpu"] + del report["candidate"]["gzip_sha256"] + del report["input_bytes_rechecked"]["candidate_gzip"] + return report + + +def run_independent(pr, work, evidence, candidate, candidate_word_sha, candidate_gzip_sha): + expected = read_json(evidence / "INDEPENDENT.json") + optional_claim = [] + if "claim" in expected["candidate"]["price"]: + optional_claim = ["--claim", expected["candidate"]["price"]["claim"]] + receipt = work / "INDEPENDENT.json" + run_checker( + work, "direct_replay.py", + "--source-pr", pr, "--data", PACKAGE / f"retained/pr{pr}/data", "--variant", "B", + "--candidate", candidate, "--candidate-gzip-sha", candidate_gzip_sha, + "--candidate-json-sha", candidate_word_sha, *optional_claim, "--out", receipt, + ) + actual = read_json(receipt) + require(actual["result"] == "PASS_PAIRED_EXACT_REPLAY_AND_CONDITIONAL_PRICE" + and actual["source"]["pr"] == pr and actual["candidate"]["variant"] == "B", + "independent checker did not pass the pinned comparison") + require(actual["candidate"]["literal_sha256"] == candidate_word_sha + and actual["candidate"]["gzip_sha256"] == candidate_gzip_sha + and actual["input_bytes_rechecked"]["candidate_gzip"] == candidate_gzip_sha, + "independent candidate custody") + generated_invoice = read_json(candidate.parent / "INVOICE.json") + require(actual["candidate"]["full_signed_invoice"] == generated_invoice, + "independent and mutation-derived signed invoices differ") + generated_price = read_json(candidate.parent / "PRICE.json") + require(actual["candidate"]["price"]["kappa"] == generated_price["bracket"], + "independent and mutation-derived price brackets differ") + require(comparable_independent(actual) == comparable_independent(expected), + "generated independent receipt differs") + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("parent", type=int, choices=PARENTS) + args = parser.parse_args() + require(sys.version_info[:2] == (3, 12) and sys.flags.isolated and sys.dont_write_bytecode and __debug__, + "use Python 3.12 with -I -B and assertions enabled") + pins = pinned_sources() + evidence = PACKAGE / f"evidence/pr{args.parent}" + with tempfile.TemporaryDirectory(prefix=f"p104-role379-pr{args.parent}-") as directory: + work = Path(directory) + generated = run_mutation(args.parent, work, evidence, pins) + run_independent(args.parent, work, evidence, *generated) + print(f"PASS_ROLE379_PINNED_MUTATION_PHASE_INVOICE_AND_INDEPENDENT_REPLAY PR#{args.parent}", flush=True) + + +if __name__ == "__main__": + main()