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-gaussian-rounded-partitions-installation/README.md b/research/p104-gaussian-rounded-partitions-installation/README.md new file mode 100644 index 0000000000..34fdaf61f0 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions-installation/README.md @@ -0,0 +1,11 @@ +# Installation and weighted receiver replay + +This companion runs two verification modes of [the Gaussian construction](../p104-gaussian-rounded-partitions/README.md). Both modes use its exact installation and receiver code, signed price and pinned archive. The remaining six modes run in that package. Run both bounded packages to reproduce the complete result. + +```sh +python3.12 -IB scripts/research_package.py --package research/p104-gaussian-rounded-partitions-installation +``` + +## Open next questions + +Compare the observed Linux and local wall times for the same installation and weighted-receiver checks before reducing either mode's timeout. The scientific coverage is shared with the primary construction. diff --git a/research/p104-gaussian-rounded-partitions-installation/SOURCES.json b/research/p104-gaussian-rounded-partitions-installation/SOURCES.json new file mode 100644 index 0000000000..e7eefb9540 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions-installation/SOURCES.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + } + ] +} diff --git a/research/p104-gaussian-rounded-partitions-installation/TASK.json b/research/p104-gaussian-rounded-partitions-installation/TASK.json new file mode 100644 index 0000000000..be1affb9f5 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions-installation/TASK.json @@ -0,0 +1,107 @@ +{ + "schema_version": 1, + "task_id": "scalar-to-moment", + "priority_revision": 8, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "original_card": { + "id": "scalar-to-moment", + "question": "Can a scalar/frame rewrite improve the complete signed moment through paid jobs, productive targets, or both?", + "starting_points": [ + "docs/research/current-priorities.md", + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "docs/research/recursive-invoice-preflight.md" + ], + "methods": [ + "Construct and independently check one source-bound instance of the stated first experiment.", + "Seek an exact counterexample or target-specific complete-budget obstruction to that same proposed change." + ], + "acceptance_gate": "Require a legal chronological rewrite and favorable complete signed target-minus-paid moment with all extra charges. Unchanged ADD counts or unchanged paid-call counts alone decide neither success nor failure. Compiler, native and outer admission remain separate obligations.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read revision 8, the selected review and live exact-source handoffs. Then follow this card's bounded first_experiment.", + "scope": "Source-bound orientation only, not a supplier replay or theorem proof." + }, + "first_experiment": "Construct one legal source-bound rewrite and compare complete before/after P and T. Charge restoration, source windows and owned helpers. A paid call need not disappear: a legal target split or rank redistribution may win. Stop if the signed moment is unchanged or the consumer repays the gain. Do not extend a scalar-only census on ADD counts.", + "bottleneck_link": "Judge the actual current supplier contract and complete signed target/paid bill; frozen-profile ceilings require an applicability proof.", + "allowed_variations": [ + "One exact source head, helper/cut region or quantified proposition and changed hypothesis; check live handoffs first. Different seeds are not different scopes." + ], + "scope_change_triggers": [ + "Changing source head, helper/cut domain, operation alphabet or caller boundary without recording the new scope.", + "Treating an archived proposal or local numerical pass as complete supplier admission." + ], + "overlap_terms": [ + "signed moment", + "target split", + "rank exchange", + "scalar rewrite" + ], + "existing_checks": [ + { + "scope": "PR #3998: consecutive A2 scalar contraction", + "evidence": "research/staged544-a2-graph-rewrite/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "389268a6b5e0373a3125d5c6fcd6995f4ea324f5", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4019: separated A2 sites with unchanged recursive histogram", + "evidence": "research/staged544-separated-a2/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "f408e09df300b575235f7f77f81948071397e16d", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4112: composition audit", + "evidence": "research/staged544-a2-composition-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "205b7380656ba4b6316a8a493b1a3c679b8f7a0e", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4152: A1858 contraction audit", + "evidence": "research/staged544-a1858-contraction-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "caaa14cde5962adc372fdca71f63d0f29e73c8b2", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "actual_scope": "Replay the complete fixed installations and weighted receivers of the linked Gaussian candidate.", + "scope_change_reason": "The full registered suite is grouped into separate jobs so the installation and weighted receiver fit their bounded Linux replay limits.", + "bottleneck_link": "Transport for both even column residues, retaining the 39/256 height debit after paying the integer fringe.", + "budget_minutes": 60, + "stop_rule": "Run both the installation and receiver modes with their original assertions and signed controls.", + "outcome": "completed", + "evidence": "research/p104-gaussian-rounded-partitions/verify.py install and receiver with the same pinned construction and signed dependencies.", + "author": "Campaign contributor", + "ai_assistance": "OpenAI Codex assisted the integer compiler change, directed pricing, accounting, and verification.", + "open_questions": [ + { + "question": "Can the paid partition improvement compose with a different numerical dilation or smaller installation?", + "why_it_matters": "The currently tested quarter-partition proof uses the original 1-to-8 native word and fixed carrier.", + "first_step": "Rebuild and compare the new configuration\u2019s paid spectrum and all smallest-band obligations.", + "blocked_by": "Combined transport, source action, phase movements, and resource bounds need exact independent verification." + } + ] +} diff --git a/research/p104-gaussian-rounded-partitions-installation/VERIFY.json b/research/p104-gaussian-rounded-partitions-installation/VERIFY.json new file mode 100644 index 0000000000..4f5fe79d09 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions-installation/VERIFY.json @@ -0,0 +1,45 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/p104-gaussian-rounded-partitions/RESULT.json", + "research/p104-gaussian-rounded-partitions/peer8054/RESULT.json", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/PEER-SOURCE.json", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/RESULT.json", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/peer8052.tar.gz", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/verify.py", + "research/p104-gaussian-rounded-partitions/peer8054/prepare.py", + "research/p104-gaussian-rounded-partitions/prepare.py", + "research/p104-gaussian-rounded-partitions/round370/price/receipt.json", + "research/p104-gaussian-rounded-partitions/round370/proof/verified.json", + "research/p104-gaussian-rounded-partitions/round370/prototype.json", + "research/p104-gaussian-rounded-partitions/round370/prototype.py", + "research/p104-gaussian-rounded-partitions/verify.py" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "research/p104-gaussian-rounded-partitions/verify.py", + "install" + ], + "timeout_seconds": 585, + "checks": "Generate and check all seven installations, receiver selections, binary chart/frame metadata, and fiscal scans." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "research/p104-gaussian-rounded-partitions/verify.py", + "receiver" + ], + "timeout_seconds": 600, + "checks": "Check public direct and quotient weighted five-exchange shuttles, nonzero eight-rank classes, and exact direct checks." + } + ] +} diff --git a/research/p104-gaussian-rounded-partitions/LICENSE b/research/p104-gaussian-rounded-partitions/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/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-gaussian-rounded-partitions/README.md b/research/p104-gaussian-rounded-partitions/README.md new file mode 100644 index 0000000000..bfeec9665c --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/README.md @@ -0,0 +1,24 @@ +# Integral unequal paid partitions in the retimed Gaussian supplier + +The #8054 signed supplier at f6f4ecd5dd717ce2b155dd564469e9693ac90f6d now uses ordered packet lengths `w // 4` and `w - w // 4` on its 1,006 base-copy split returns. At the production width 32,762 the two lengths are 8,190 and 24,572 and partition the same signed owner. The emitter, event generator and leaf ledger agree. The original chart and custody chronology applies. The unrounded proposal fails at this width. [Literal counterexample, all-size proof and replay](https://github.com/ToikY/integer-mult-bounds/blob/daf9e7ed764488c2ddaabe6f4f5b590485b26441/paired-768/r370/README.md) + +The 55-cell transport covers 105,216 productive and 564,142 paid positions. Every child prefix fits its parent. The revised fringe and inverse-power enclosures preserve the 39/256 Gaussian charge. At Gaussian dyadic `4286126377/2^40`, the proposed conditional κ is **0.0038982016137**, up exactly 0.0000000285882 over #8054. The distinct compact #8055 reports 0.0038982, a numerical difference of 0.0000000016137. + +## Replay + +Use CPython 3.12 and Git with assertions enabled. + +```sh +python3.12 -IB scripts/research_package.py --package research/p104-gaussian-rounded-partitions +python3.12 -IB scripts/research_package.py --package research/p104-gaussian-rounded-partitions-installation +``` + +The five inherited premises cover all-column action, uniform compilation, ownership and erasure, tape and precision services, and analytic recovery. Production-scale execution remains outside the measurement. The pinned source archives retain predecessor licenses. + +## Open next questions + +Test whether the rounded paid partition and same-band proof compose with the larger numerical dilation or lower carrier in #8055. Reprice the actual signed graph and check phases, ownership and restoration before combining. + +## Credit + +Ali Romman supplied the retimed Gaussian word and resource proof in [#8042](https://github.com/CrocSwap/integer-mult-bounds/pull/8042) and the separate compact supplier in [#8055](https://github.com/CrocSwap/integer-mult-bounds/pull/8055). SYLforge supplied the binary and signed installation in [#8052](https://github.com/CrocSwap/integer-mult-bounds/pull/8052). Clear1nsight supplied pricing and receiver work in [#8050](https://github.com/CrocSwap/integer-mult-bounds/pull/8050). [#8053](https://github.com/CrocSwap/integer-mult-bounds/pull/8053) and [#8054](https://github.com/CrocSwap/integer-mult-bounds/pull/8054) supplied the signed comparator and paid order. OpenAI Codex assisted the proofs, implementation and replay. diff --git a/research/p104-gaussian-rounded-partitions/RESULT.json b/research/p104-gaussian-rounded-partitions/RESULT.json new file mode 100644 index 0000000000..29a036bd30 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/RESULT.json @@ -0,0 +1,566 @@ +{ + "predecessor_comparison": { + "pr_8035": { + "head": "ea776471bf8ed143a0625cf2d7532f65d15eb5f9", + "model": "powered_6stage_retimed", + "kappa": "0.0038901152865907", + "binary_paid": 104904, + "binary_stages": 6 + }, + "pr_8042": { + "head": "dfd25d553a843a946ca0b94130a5ff8943e98fdd", + "model": "unpowered_7stage_retimed", + "kappa": "0.003890115286594445", + "binary_c": "4484997569314581/1152921504606846976", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 19000 + }, + "pr_8050": { + "head": "328b858e24709495843abc751fcbf5df35a89da8", + "model": "unpowered_7stage_dyadic_endpoint", + "kappa": "0.003890115286594461", + "binary_c": "287039844436133239/73786976294838206464", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 36000 + }, + "present_k7": { + "binary_c": "4391986206293/1125899906842624", + "binary_c_decimal": "0.003900867368050091", + "gaussian_c": "4286126377/1099511627776", + "gaussian_c_decimal": "0.003898209231010696", + "binary_paid": 104652, + "binary_dirty_clears": 3426, + "binary_moves": 2796, + "binary_stages": 2, + "log2_fixed_setup_and_install_le": 513, + "conservative_36k_kappa": "0.003893947", + "compact_1m_kappa": "0.003898026", + "extended_10m_kappa": "0.003898163", + "extended_kappa": "0.0038982016137" + } + }, + "baseline": { + "compact": { + "binary_H": [ + 260000, + 1600000 + ], + "numerical_H": 610000, + "kappa": "96998200889/25000000000000", + "A": 2471428, + "log2_S_le": 1638400002, + "old_installed_visits_log_gt": 11191922, + "log2_C_le": 30535241478 + }, + "high-rate": { + "binary_H": [ + 25000000, + 160000000, + 1000000000, + 6000000000, + 36000000000, + 224000000000 + ], + "numerical_H": 1600000, + "kappa": "389011519729/100000000000000", + "A": 267186701153, + "log2_S_le": 229376000000003, + "old_installed_visits_log_gt": 1567999985622, + "log2_C_le": 4377559200001478 + }, + "price-match": { + "binary_H": [ + 175000000, + 1120000000, + 7000000000, + 42000000000, + 252000000000, + 1568000000000 + ], + "numerical_H": 1600000, + "kappa": "389011527141/100000000000000", + "A": 1870297303584, + "log2_S_le": 1605632000000003, + "old_installed_visits_log_gt": 10975999985622, + "log2_C_le": 30642913440001478 + }, + "fixed-stock-stop": { + "binary_H": [ + 106811524, + 1708984375, + 27343750000, + 437500000000, + 7000000000000, + 112000000000000 + ], + "numerical_H": 1600000, + "kappa": "9725288215981/2500000000000000", + "A": 119466661575676, + "log2_S_le": 114688000000000003, + "old_installed_visits_log_gt": 783999999983102, + "log2_C_le": 1957341750160010694 + }, + "small-gap": { + "binary_H": [ + 6835937536, + 109375000000, + 1750000000000, + 28000000000000, + 448000000000000, + 7168000000000000 + ], + "numerical_H": 1600000, + "kappa": "38901152865907/10000000000000000", + "A": 7645866239991957, + "log2_S_le": 7340032000000000003, + "old_installed_visits_log_gt": 50175999999982031, + "log2_C_le": 125269872000160591302 + } + }, + "binary": { + "productive": 18906, + "paid": 104652, + "cells": 24, + "directed_margin": "55321779883482082595639/244544123725211460862213013703178693829", + "factor_upper_times_1000000": 1101878 + }, + "positive": { + "productive": 105216, + "paid": 564142, + "cells": 55, + "directed_margin": "5498264267739843687574143167969/141388160361736155313276417896403337712", + "factor_upper_times_1000000": 1111355 + }, + "profiles": { + "selected-price": { + "A_lower_in_this_price": 5936, + "kappa": "363005817/100000000000", + "binary_H": [ + 5610 + ], + "numerical_H": 1024, + "width_logs": [ + 516120, + 94208 + ], + "stage_rates": [ + "72601163401/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "160226261629341661/1342177280000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -6909, + "last_extent_bits_minus_b": -6908, + "minimum_width": 3541248, + "log2_axis_count": 6888, + "largest_axis_width": 5592406, + "private_clock_log2_upper": 5733779202, + "actual_dense_root_entry_log2": 11184812 + }, + "binary_cuts": [ + 5697 + ], + "public_exponent_A": 6913, + "first_public_offset": 4, + "initial_s": 6914, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 1443, + "retimed_all_size_margin_floor": 1385, + "absolute_log2_private_control_envelope": 5744642, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 91914289, + "log2_C_le": 92141171 + }, + "small": { + "A_lower_in_this_price": 16889, + "kappa": "19/5000", + "binary_H": [ + 18400 + ], + "numerical_H": 1600, + "width_logs": [ + 1692800, + 147200 + ], + "stage_rates": [ + "76000000001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "4018998481719261/1342177280000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -20341, + "last_extent_bits_minus_b": -20340, + "minimum_width": 10418432, + "log2_axis_count": 20319, + "largest_axis_width": 11184811, + "private_clock_log2_upper": 11474169722, + "actual_dense_root_entry_log2": 22369622 + }, + "binary_cuts": [ + 18539 + ], + "public_exponent_A": 20345, + "first_public_offset": 4, + "initial_s": 20346, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 8151, + "retimed_all_size_margin_floor": 7892, + "absolute_log2_private_control_envelope": 18841602, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 301465649, + "log2_C_le": 301819251 + }, + "compact": { + "A_lower_in_this_price": 82389, + "kappa": "96998200889/25000000000000", + "binary_H": [ + 9100, + 144000 + ], + "numerical_H": 8500, + "width_logs": [ + 837200, + 13248000, + 782000 + ], + "stage_rates": [ + "1867384696541679599/500000000000000000000", + "387992803561/100000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "40888235034690657/114085068800000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -161988, + "last_extent_bits_minus_b": -161987, + "minimum_width": 82941696, + "log2_axis_count": 161963, + "largest_axis_width": 89478486, + "private_clock_log2_upper": 91792081097, + "actual_dense_root_entry_log2": 178956972 + }, + "binary_cuts": [ + 9201, + 153265 + ], + "public_exponent_A": 161992, + "first_public_offset": 2, + "initial_s": 161993, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 78958, + "retimed_all_size_margin_floor": 76498, + "absolute_log2_private_control_envelope": 147456002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 2508390457, + "log2_C_le": 2510262059 + }, + "conservative-36k": { + "A_lower_in_this_price": 260801, + "kappa": "3893947/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 36000, + "width_logs": [ + 5520000, + 88320000, + 3312000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77878940001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "122648672677783/4026531840000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -1056614, + "last_extent_bits_minus_b": -1056613, + "minimum_width": 540990208, + "log2_axis_count": 1056586, + "largest_axis_width": 715827883, + "private_clock_log2_upper": 734090855275, + "actual_dense_root_entry_log2": 1431655766 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 1056618, + "first_public_offset": 2, + "initial_s": 1056619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 526259, + "retimed_all_size_margin_floor": 509832, + "absolute_log2_private_control_envelope": 983040002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16719601659 + }, + "compact-1m": { + "A_lower_in_this_price": 1379604, + "kappa": "1949013/500000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 1000000, + "width_logs": [ + 5520000, + 88320000, + 92000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77960520000001/20000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000000", + "ordinary_margin": "1/100000000000000000", + "positive_margin": "5182022435127017/167772160000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -2020614, + "last_extent_bits_minus_b": -2020613, + "minimum_width": 1034558208, + "log2_axis_count": 2020585, + "largest_axis_width": 1431655766, + "private_clock_log2_upper": 1468086707467, + "actual_dense_root_entry_log2": 2863311532 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 2020618, + "first_public_offset": 2, + "initial_s": 2020619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 1008259, + "retimed_all_size_margin_floor": 976770, + "absolute_log2_private_control_envelope": 1024000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16931681659 + }, + "extended-10m": { + "A_lower_in_this_price": 3871218, + "kappa": "3898163/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 10000000, + "width_logs": [ + 5520000, + 88320000, + 920000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779632600000001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "26001862613383821/838860800000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -11020635, + "last_extent_bits_minus_b": -11020634, + "minimum_width": 5642568960, + "log2_axis_count": 11020604, + "largest_axis_width": 5726623062, + "private_clock_log2_upper": 5875358240096, + "actual_dense_root_entry_log2": 11453246124 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 11020639, + "first_public_offset": 4, + "initial_s": 11020640, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 5508258, + "retimed_all_size_margin_floor": 5336155, + "absolute_log2_private_control_envelope": 10240000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 18911681659 + }, + "extended": { + "A_lower_in_this_price": 20583967, + "kappa": "38982016137/10000000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 20000000, + "width_logs": [ + 5520000, + 88320000, + 1840000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779640322740001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "103340423821/838860800000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -21020642, + "last_extent_bits_minus_b": -21020641, + "minimum_width": 10762572544, + "log2_axis_count": 21020610, + "largest_axis_width": 11453246123, + "private_clock_log2_upper": 11749670261735, + "actual_dense_root_entry_log2": 22906492246 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 21020646, + "first_public_offset": 2, + "initial_s": 21020647, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 10508257, + "retimed_all_size_margin_floor": 10179908, + "absolute_log2_private_control_envelope": 20480000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 21111681659 + } + }, + "prefix": { + "small_stop_tail_factor_log2": 1591, + "private_prefix_log2": 126082079, + "controls_prefix_log2": 5081414, + "private_prefix_after_input_log2": 84484466, + "early_log2_C_bound": 84500000, + "tail_log2_fixed_factor_including_b_to_n": 1434, + "tail_unit": "(1 + B + Z) * n * (1 + log2(n))^(1-kappa)" + }, + "first_controller_shape": { + "first_b": 18508, + "first_L": 18496, + "first_P": 606385061, + "first_side_bit_length": 18496, + "host_list": "OverflowError" + }, + "first_numerical_placement": { + "root_tag": [ + "root", + "rotated", + 0, + 4080, + 1 + ], + "per_target_probability": "1/624", + "placements": { + "1024": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1600": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "8500": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "36000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "10000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "20000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + } + } + } +} diff --git a/research/p104-gaussian-rounded-partitions/SOURCES.json b/research/p104-gaussian-rounded-partitions/SOURCES.json new file mode 100644 index 0000000000..e7eefb9540 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/SOURCES.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + } + ] +} diff --git a/research/p104-gaussian-rounded-partitions/TASK.json b/research/p104-gaussian-rounded-partitions/TASK.json new file mode 100644 index 0000000000..c78fb2f926 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/TASK.json @@ -0,0 +1,107 @@ +{ + "schema_version": 1, + "task_id": "scalar-to-moment", + "priority_revision": 8, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "original_card": { + "id": "scalar-to-moment", + "question": "Can a scalar/frame rewrite improve the complete signed moment through paid jobs, productive targets, or both?", + "starting_points": [ + "docs/research/current-priorities.md", + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "docs/research/recursive-invoice-preflight.md" + ], + "methods": [ + "Construct and independently check one source-bound instance of the stated first experiment.", + "Seek an exact counterexample or target-specific complete-budget obstruction to that same proposed change." + ], + "acceptance_gate": "Require a legal chronological rewrite and favorable complete signed target-minus-paid moment with all extra charges. Unchanged ADD counts or unchanged paid-call counts alone decide neither success nor failure. Compiler, native and outer admission remain separate obligations.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read revision 8, the selected review and live exact-source handoffs. Then follow this card's bounded first_experiment.", + "scope": "Source-bound orientation only, not a supplier replay or theorem proof." + }, + "first_experiment": "Construct one legal source-bound rewrite and compare complete before/after P and T. Charge restoration, source windows and owned helpers. A paid call need not disappear: a legal target split or rank redistribution may win. Stop if the signed moment is unchanged or the consumer repays the gain. Do not extend a scalar-only census on ADD counts.", + "bottleneck_link": "Judge the actual current supplier contract and complete signed target/paid bill; frozen-profile ceilings require an applicability proof.", + "allowed_variations": [ + "One exact source head, helper/cut region or quantified proposition and changed hypothesis; check live handoffs first. Different seeds are not different scopes." + ], + "scope_change_triggers": [ + "Changing source head, helper/cut domain, operation alphabet or caller boundary without recording the new scope.", + "Treating an archived proposal or local numerical pass as complete supplier admission." + ], + "overlap_terms": [ + "signed moment", + "target split", + "rank exchange", + "scalar rewrite" + ], + "existing_checks": [ + { + "scope": "PR #3998: consecutive A2 scalar contraction", + "evidence": "research/staged544-a2-graph-rewrite/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "389268a6b5e0373a3125d5c6fcd6995f4ea324f5", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4019: separated A2 sites with unchanged recursive histogram", + "evidence": "research/staged544-separated-a2/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "f408e09df300b575235f7f77f81948071397e16d", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4112: composition audit", + "evidence": "research/staged544-a2-composition-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "205b7380656ba4b6316a8a493b1a3c679b8f7a0e", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4152: A1858 contraction audit", + "evidence": "research/staged544-a1858-contraction-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "caaa14cde5962adc372fdca71f63d0f29e73c8b2", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "actual_scope": "Test one parity-rounded quarter/three-quarter Gaussian paid partition on the exact #8054 signed supplier.", + "scope_change_reason": "Full raw price passes at a higher rate, but unrounded quarter ranks are illegal on production bands with two columns modulo four.", + "bottleneck_link": "Transport for both even column residues, retaining the 39/256 height debit after paying the integer fringe.", + "budget_minutes": 60, + "stop_rule": "Test one 1006-split construction. Require exact paid sizes, unchanged assigned owner and restoration, complete signed invoice and all eight registered modes.", + "outcome": "completed", + "evidence": "Round 370 proofs and prototype receipts, RESULT.json, the full registered scientific and verification companion suites.", + "author": "Campaign contributor", + "ai_assistance": "OpenAI Codex assisted the integer compiler change, directed pricing, accounting, and verification.", + "open_questions": [ + { + "question": "Can the paid partition improvement compose with a different numerical dilation or smaller installation?", + "why_it_matters": "The currently tested quarter-partition proof uses the original 1-to-8 native word and fixed carrier.", + "first_step": "Rebuild and compare the new configuration\u2019s paid spectrum and all smallest-band obligations.", + "blocked_by": "Combined transport, source action, phase movements, and resource bounds need exact independent verification." + } + ] +} diff --git a/research/p104-gaussian-rounded-partitions/VERIFY.json b/research/p104-gaussian-rounded-partitions/VERIFY.json new file mode 100644 index 0000000000..cd08f5cf84 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/VERIFY.json @@ -0,0 +1,87 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/p104-gaussian-rounded-partitions/peer8054/RESULT.json", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/PEER-SOURCE.json", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/RESULT.json", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/peer8052.tar.gz", + "research/p104-gaussian-rounded-partitions/peer8054/peer8053/verify.py", + "research/p104-gaussian-rounded-partitions/peer8054/prepare.py", + "research/p104-gaussian-rounded-partitions/round370/price/receipt.json", + "research/p104-gaussian-rounded-partitions/round370/proof/verified.json", + "research/p104-gaussian-rounded-partitions/round370/prototype.json", + "research/p104-gaussian-rounded-partitions/round370/prototype.py", + "research/p104-gaussian-rounded-partitions/RESULT.json" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "binary" + ], + "timeout_seconds": 70, + "checks": "Replay the constructive k7 binary graph on all 630 registers and 36 LOCAL calls, verify all 636 frames and 2353 delta charts, run mod-3 and mod-9 sparse weighted checks, certify BINARY_C, verify K7-STACK-LEDGER.json, and confirm PR #8027 fails BINARY_C." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "cost" + ], + "timeout_seconds": 55, + "checks": "Verify RESULT.json across binary/numerical tariffs, all seven installed profiles, entrance bounds, signed outer budgets, and fast placement receipts." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "schedule" + ], + "timeout_seconds": 75, + "checks": "Check chronology, precision floors, streamed cross-parent loans, and reentrant returns across all profiles." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "physical" + ], + "timeout_seconds": 585, + "checks": "Run the literal unpowered binary constant-address emitter, two-scale Gaussian positive word replay, and extended stop exponent bounds." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "slabs" + ], + "timeout_seconds": 45, + "checks": "Verify Gaussian historical stage fences, arena heads, scratch slots, and restoring ordinary shuttles." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "product" + ], + "timeout_seconds": 240, + "checks": "Run physical_product(EXTENDED) at numerical_H=20000000 and verify product -345550037539, coefficients prefix, and restored owners." + } + ] +} diff --git a/research/p104-gaussian-rounded-partitions/peer8054/RESULT.json b/research/p104-gaussian-rounded-partitions/peer8054/RESULT.json new file mode 100644 index 0000000000..aa779b074c --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/peer8054/RESULT.json @@ -0,0 +1,566 @@ +{ + "predecessor_comparison": { + "pr_8035": { + "head": "ea776471bf8ed143a0625cf2d7532f65d15eb5f9", + "model": "powered_6stage_retimed", + "kappa": "0.0038901152865907", + "binary_paid": 104904, + "binary_stages": 6 + }, + "pr_8042": { + "head": "dfd25d553a843a946ca0b94130a5ff8943e98fdd", + "model": "unpowered_7stage_retimed", + "kappa": "0.003890115286594445", + "binary_c": "4484997569314581/1152921504606846976", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 19000 + }, + "pr_8050": { + "head": "328b858e24709495843abc751fcbf5df35a89da8", + "model": "unpowered_7stage_dyadic_endpoint", + "kappa": "0.003890115286594461", + "binary_c": "287039844436133239/73786976294838206464", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 36000 + }, + "present_k7": { + "binary_c": "4391986206293/1125899906842624", + "binary_c_decimal": "0.003900867368050091", + "gaussian_c": "133940467/34359738368", + "gaussian_c_decimal": "0.003898180642863736", + "binary_paid": 104652, + "binary_dirty_clears": 3426, + "binary_moves": 2796, + "binary_stages": 2, + "log2_fixed_setup_and_install_le": 513, + "conservative_36k_kappa": "0.003893947", + "compact_1m_kappa": "0.003898026", + "extended_10m_kappa": "0.003898163", + "extended_kappa": "0.0038981730255" + } + }, + "baseline": { + "compact": { + "binary_H": [ + 260000, + 1600000 + ], + "numerical_H": 610000, + "kappa": "96998200889/25000000000000", + "A": 2471428, + "log2_S_le": 1638400002, + "old_installed_visits_log_gt": 11191922, + "log2_C_le": 30535241478 + }, + "high-rate": { + "binary_H": [ + 25000000, + 160000000, + 1000000000, + 6000000000, + 36000000000, + 224000000000 + ], + "numerical_H": 1600000, + "kappa": "389011519729/100000000000000", + "A": 267186701153, + "log2_S_le": 229376000000003, + "old_installed_visits_log_gt": 1567999985622, + "log2_C_le": 4377559200001478 + }, + "price-match": { + "binary_H": [ + 175000000, + 1120000000, + 7000000000, + 42000000000, + 252000000000, + 1568000000000 + ], + "numerical_H": 1600000, + "kappa": "389011527141/100000000000000", + "A": 1870297303584, + "log2_S_le": 1605632000000003, + "old_installed_visits_log_gt": 10975999985622, + "log2_C_le": 30642913440001478 + }, + "fixed-stock-stop": { + "binary_H": [ + 106811524, + 1708984375, + 27343750000, + 437500000000, + 7000000000000, + 112000000000000 + ], + "numerical_H": 1600000, + "kappa": "9725288215981/2500000000000000", + "A": 119466661575676, + "log2_S_le": 114688000000000003, + "old_installed_visits_log_gt": 783999999983102, + "log2_C_le": 1957341750160010694 + }, + "small-gap": { + "binary_H": [ + 6835937536, + 109375000000, + 1750000000000, + 28000000000000, + 448000000000000, + 7168000000000000 + ], + "numerical_H": 1600000, + "kappa": "38901152865907/10000000000000000", + "A": 7645866239991957, + "log2_S_le": 7340032000000000003, + "old_installed_visits_log_gt": 50175999999982031, + "log2_C_le": 125269872000160591302 + } + }, + "binary": { + "productive": 18906, + "paid": 104652, + "cells": 24, + "directed_margin": "55321779883482082595639/244544123725211460862213013703178693829", + "factor_upper_times_1000000": 1101878 + }, + "positive": { + "productive": 105216, + "paid": 564142, + "cells": 54, + "directed_margin": "586574259055969407924873136933/1425664155128971698708398104004076624002", + "factor_upper_times_1000000": 1111354 + }, + "profiles": { + "selected-price": { + "A_lower_in_this_price": 5936, + "kappa": "363005817/100000000000", + "binary_H": [ + 5610 + ], + "numerical_H": 1024, + "width_logs": [ + 516120, + 94208 + ], + "stage_rates": [ + "72601163401/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "5005871602125423/41943040000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -6909, + "last_extent_bits_minus_b": -6908, + "minimum_width": 3541248, + "log2_axis_count": 6888, + "largest_axis_width": 5592406, + "private_clock_log2_upper": 5733779202, + "actual_dense_root_entry_log2": 11184812 + }, + "binary_cuts": [ + 5697 + ], + "public_exponent_A": 6913, + "first_public_offset": 4, + "initial_s": 6914, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 1443, + "retimed_all_size_margin_floor": 1385, + "absolute_log2_private_control_envelope": 5744642, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 91914289, + "log2_C_le": 92141171 + }, + "small": { + "A_lower_in_this_price": 16889, + "kappa": "19/5000", + "binary_H": [ + 18400 + ], + "numerical_H": 1600, + "width_logs": [ + 1692800, + 147200 + ], + "stage_rates": [ + "76000000001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "124394628762223/41943040000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -20341, + "last_extent_bits_minus_b": -20340, + "minimum_width": 10418432, + "log2_axis_count": 20319, + "largest_axis_width": 11184811, + "private_clock_log2_upper": 11474169722, + "actual_dense_root_entry_log2": 22369622 + }, + "binary_cuts": [ + 18539 + ], + "public_exponent_A": 20345, + "first_public_offset": 4, + "initial_s": 20346, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 8151, + "retimed_all_size_margin_floor": 7892, + "absolute_log2_private_control_envelope": 18841602, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 301465649, + "log2_C_le": 301819251 + }, + "compact": { + "A_lower_in_this_price": 82402, + "kappa": "96998200889/25000000000000", + "binary_H": [ + 9100, + 144000 + ], + "numerical_H": 8500, + "width_logs": [ + 837200, + 13248000, + 782000 + ], + "stage_rates": [ + "1867384696541679599/500000000000000000000", + "387992803561/100000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "1175836072556251/3565158400000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -161988, + "last_extent_bits_minus_b": -161987, + "minimum_width": 82941696, + "log2_axis_count": 161963, + "largest_axis_width": 89478486, + "private_clock_log2_upper": 91792081097, + "actual_dense_root_entry_log2": 178956972 + }, + "binary_cuts": [ + 9201, + 153265 + ], + "public_exponent_A": 161992, + "first_public_offset": 2, + "initial_s": 161993, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 78958, + "retimed_all_size_margin_floor": 76498, + "absolute_log2_private_control_envelope": 147456002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 2508390457, + "log2_C_le": 2510262059 + }, + "conservative-36k": { + "A_lower_in_this_price": 261043, + "kappa": "3893947/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 36000, + "width_logs": [ + 5520000, + 88320000, + 3312000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77878940001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "235549646669/125829120000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -1056614, + "last_extent_bits_minus_b": -1056613, + "minimum_width": 540990208, + "log2_axis_count": 1056586, + "largest_axis_width": 715827883, + "private_clock_log2_upper": 734090855275, + "actual_dense_root_entry_log2": 1431655766 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 1056618, + "first_public_offset": 2, + "initial_s": 1056619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 526259, + "retimed_all_size_margin_floor": 509832, + "absolute_log2_private_control_envelope": 983040002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16719601659 + }, + "compact-1m": { + "A_lower_in_this_price": 1533307, + "kappa": "1949013/500000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 1000000, + "width_logs": [ + 5520000, + 88320000, + 92000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77960520000001/20000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000000", + "ordinary_margin": "1/100000000000000000", + "positive_margin": "12053977159731/5242880000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -2020614, + "last_extent_bits_minus_b": -2020613, + "minimum_width": 1034558208, + "log2_axis_count": 2020585, + "largest_axis_width": 1431655766, + "private_clock_log2_upper": 1468086707467, + "actual_dense_root_entry_log2": 2863311532 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 2020618, + "first_public_offset": 2, + "initial_s": 2020619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 1008259, + "retimed_all_size_margin_floor": 976770, + "absolute_log2_private_control_envelope": 1024000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16931681659 + }, + "extended-10m": { + "A_lower_in_this_price": 9210812, + "kappa": "3898163/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 10000000, + "width_logs": [ + 5520000, + 88320000, + 920000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779632600000001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "63137086978303/26214400000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -11020635, + "last_extent_bits_minus_b": -11020634, + "minimum_width": 5642568960, + "log2_axis_count": 11020604, + "largest_axis_width": 5726623062, + "private_clock_log2_upper": 5875358240096, + "actual_dense_root_entry_log2": 11453246124 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 11020639, + "first_public_offset": 4, + "initial_s": 11020640, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 5508258, + "retimed_all_size_margin_floor": 5336155, + "absolute_log2_private_control_envelope": 10240000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 18911681659 + }, + "extended": { + "A_lower_in_this_price": 20577628, + "kappa": "7796346051/2000000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 20000000, + "width_logs": [ + 5520000, + 88320000, + 1840000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779634605100001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "4619778303/26214400000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -21020642, + "last_extent_bits_minus_b": -21020641, + "minimum_width": 10762572544, + "log2_axis_count": 21020610, + "largest_axis_width": 11453246123, + "private_clock_log2_upper": 11749670261735, + "actual_dense_root_entry_log2": 22906492246 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 21020646, + "first_public_offset": 2, + "initial_s": 21020647, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 10508257, + "retimed_all_size_margin_floor": 10179908, + "absolute_log2_private_control_envelope": 20480000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 21111681659 + } + }, + "prefix": { + "small_stop_tail_factor_log2": 1591, + "private_prefix_log2": 126082079, + "controls_prefix_log2": 5081414, + "private_prefix_after_input_log2": 84484466, + "early_log2_C_bound": 84500000, + "tail_log2_fixed_factor_including_b_to_n": 1434, + "tail_unit": "(1 + B + Z) * n * (1 + log2(n))^(1-kappa)" + }, + "first_controller_shape": { + "first_b": 18508, + "first_L": 18496, + "first_P": 606385061, + "first_side_bit_length": 18496, + "host_list": "OverflowError" + }, + "first_numerical_placement": { + "root_tag": [ + "root", + "rotated", + 0, + 4080, + 1 + ], + "per_target_probability": "1/624", + "placements": { + "1024": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1600": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "8500": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "36000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "10000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "20000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + } + } + } +} diff --git a/research/p104-gaussian-rounded-partitions/peer8054/peer8053/PEER-SOURCE.json b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/PEER-SOURCE.json new file mode 100644 index 0000000000..b58332f598 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/PEER-SOURCE.json @@ -0,0 +1,55 @@ +{ + "archive_sha256": "37bf1d8c53553806ec7723b865a3e779be40d3b19a0466575adb9c5388c0198c", + "files_sha256": { + "K7-STACK-LEDGER.json": "a0c0d5b241e6861a5c49a287617e48fba56b09824f5ef4fcb7f03152edf37e8e", + "LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "NOTICE.md": "9c5ae9750012d305d917e625d14a33cc880e810e801e73364725bcdc24bffdb5", + "README.md": "9453d549e7a0b79986697c0da8d39981c675115c38a4b6714b28787e024c25fb", + "RESULT.json": "73516f60cc9ede03c93f18d0514b237e895316e545053e04e6776aae8d7f87ad", + "SOURCES.json": "6ca768ed86e019c6836f785719c3c015feb5bfdf5d55f405821e77dcb1bfba5a", + "TASK.json": "bcdac764f6414b947d0d57073bcc2b11aead859ff62f36894aa68d4eabf38772", + "VERIFY.json": "c273d2df34e13bdb352416a0143d4664a673c0218ae0ab1790b551084c4b8334", + "activation.py": "6e7f89d40a4d10ecd40a50e5b96334dfc64db90841ece7e3ef12eeca5ee5093b", + "bootstrap.py": "e7609488216e31baf99d3a9b6acaba0e45b1a4c97288d563c43bb414fd0eb183", + "check_binary_k7.py": "5eeb8f818725249cbabf215c323c3f8351b1c4ed3c127119341e6ed09f490dd6", + "check_binary_word.py": "638e571b311c5d876ac4a2bc4206bbf65c99b278f621df26e74a9e28e43b673e", + "check_chronology.py": "2723b25f86e181916ed361eebc44210d67bd0319d44c9b0f964ab01c1b83cb6d", + "check_complete.py": "6557212ffe9a9ab59b61fbca645553f147a09c12865fb5aef747b20389fba207", + "check_extended_stop.py": "29ef08908b49d6e2b41a01aa82d8baebc1c87d0632c72a71a82c096dd3a70215", + "check_five.py": "0c050daa030c7c4431b8c815fd052a63636350b6674e5f11647cff282e19e953", + "check_installation.py": "0f4ea154df1722e05402e34a97ea3a6827f028f09f0ba0d98ab5d1ad58c77cc2", + "check_nonzero_eight.py": "d3e72c1d434aecb299fcf39c127fd8ec8548ccc8659b92d7e7987114faf0d0d1", + "check_positive_word.py": "a88de880627489764668f6a3ec34f4861f61bd49cc74d3547d3ef18ee017dbe4", + "check_precision.py": "e1f1d7f26fda7f6fb5cd4caaeefbb9d9029541de76f4c7512badca0a16d4495c", + "check_reentry.py": "4504e7028f7193a4e6b5b1099219d5a20a3fec2178c8286f48b5a22d96bef686", + "check_scans.py": "bbacfa49243ed94fe5065dda55c9fe5cd61a05db67c7f26d4aefa5a9897a5bf9", + "check_stage_fences.py": "81bb9889facc2926bb3ebf31e18aaf4f108ed910478410902ddf8d99a07b1413", + "check_stage_inventory.py": "98e397218a2820cfe1b201eef302fa249b775cee912e0f83131a398af50320de", + "check_streamed.py": "edee7277378c59b13c9c300300cfddd8348e44c393512e06adc4f22d592b6e60", + "direct_exact.py": "52b5174ca33ba48746489184277ad1ae7661d13adc4ce69d99879038334f65ba", + "direct_recursive.py": "6cceadc2d532b451244fe054847c7b5c8dbca0678f1a2090a8473592c1e4a426", + "fiscal_scans.py": "bacc9db2bad0254081309c11269da09b1719479aac8542d34c7e463a8e6aa428", + "five_exchange.py": "cf56446080a3b31b654e58d91d3d62dc8790f0f06e3d458775d2723d607ae8fe", + "installations.py": "dfd94b6ea6abf014bb8319b809ac476f480bb62f3a5d947da15805cb57498fb4", + "low_inventory_scan.py": "f0ca0decb531c10f22ecde3a68e244ba1324fbe3d10f603081b8f352cea4af7c", + "machine.patch": "c1f53687f856898641d2c81f0deeaecfbf8daa7a7b66d2a9fda2bb7e85447431", + "normal_five.py": "53715e4178b92666b1392cb341b7362c697a8e454c41346a92b9519835b1f2c2", + "ordinary_clock.py": "91dcf0ef72dddbde998b80f3d8b30c8036de9ce97e06e2bbd9c4159bf292020d", + "outer_budget.py": "ca4438db28a447ed5c43d87d43f0ac10a0cb2b4e183342ac93139d517b9d4d02", + "outer_clock.py": "63363c3da673365f3ac5e1b7e318c6938005f1e9c9896799504cc598efbf96fa", + "predecessor/LAST-TICK-RECEIPT.json": "057e381fa486590b6190aceeac59aafe2102626a011a9f3fd7b871e6719512d5", + "predecessor/OVERLAY.json": "73aaf56a8a199cf3b7fc6c87316ca50298f47561e4b7c227edec6230f12a8403", + "predecessor/SOURCES.json": "3634f7a15b8ca6f1832e48bdd4e83bd764509f804196d956149a9a82e7512a64", + "predecessor/predecessor-8030.tar.gz": "769d5a05cc1373fa22ed5956af636992fcd19d7e5c1753a32033a73c358cd31c", + "raw_binary_stage.py": "0c805a525322acf4eb03f083c2c763f3046c3d488e1f993beb484a3e2c2ff4a9", + "receiver.patch": "7d0a2fe72a6be825414a4e9129d8cc5e601e296f6a097329d388cfb4cf07b884", + "retimed_supplier.py": "4bd969e3f1cfdcdf26c36e5fa7ab64c8e72904f516a51af6b2a29524e1cf8eb2", + "strong-bit-k7.json.gz": "9e7392c52bcf29c0cc58c54c619f95c28f476394c33e8e0a5aa30c9557d31362", + "transport.py": "98bdb540233794338b426d1b0d0e72cff7fcbbd08be702af0d81e237dbecaae9", + "true_high.py": "079f69d910edceec53165daa54522b3385756fe7e459136f97b7d624cb13983b", + "unpowered_price.py": "c273f2bcd46a114595ee669021aa6cd7223488f87cee0fe10bd762bc92177424", + "verify.py": "ac2c24698000291b493f5828fdbd778a5996eee88923e4a8faf555a5b4c2c73d" + }, + "head": "baaec65bf8e4c7e92be110a00d5b06522177931f", + "package": "research/p104-k7-retimed-binary/" +} diff --git a/research/p104-gaussian-rounded-partitions/peer8054/peer8053/RESULT.json b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/RESULT.json new file mode 100644 index 0000000000..94ed20cb53 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/RESULT.json @@ -0,0 +1,566 @@ +{ + "predecessor_comparison": { + "pr_8035": { + "head": "ea776471bf8ed143a0625cf2d7532f65d15eb5f9", + "model": "powered_6stage_retimed", + "kappa": "0.0038901152865907", + "binary_paid": 104904, + "binary_stages": 6 + }, + "pr_8042": { + "head": "dfd25d553a843a946ca0b94130a5ff8943e98fdd", + "model": "unpowered_7stage_retimed", + "kappa": "0.003890115286594445", + "binary_c": "4484997569314581/1152921504606846976", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 19000 + }, + "pr_8050": { + "head": "328b858e24709495843abc751fcbf5df35a89da8", + "model": "unpowered_7stage_dyadic_endpoint", + "kappa": "0.003890115286594461", + "binary_c": "287039844436133239/73786976294838206464", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 36000 + }, + "present_k7": { + "binary_c": "4391986206293/1125899906842624", + "binary_c_decimal": "0.003900867368050091", + "gaussian_c": "1071523491/274877906944", + "gaussian_c_decimal": "0.003898179751558928", + "binary_paid": 104652, + "binary_dirty_clears": 3426, + "binary_moves": 2796, + "binary_stages": 2, + "log2_fixed_setup_and_install_le": 513, + "conservative_36k_kappa": "0.003893947", + "compact_1m_kappa": "0.003898026", + "extended_10m_kappa": "0.003898163", + "extended_kappa": "0.0038981721342" + } + }, + "baseline": { + "compact": { + "binary_H": [ + 260000, + 1600000 + ], + "numerical_H": 610000, + "kappa": "96998200889/25000000000000", + "A": 2471428, + "log2_S_le": 1638400002, + "old_installed_visits_log_gt": 11191922, + "log2_C_le": 30535241478 + }, + "high-rate": { + "binary_H": [ + 25000000, + 160000000, + 1000000000, + 6000000000, + 36000000000, + 224000000000 + ], + "numerical_H": 1600000, + "kappa": "389011519729/100000000000000", + "A": 267186701153, + "log2_S_le": 229376000000003, + "old_installed_visits_log_gt": 1567999985622, + "log2_C_le": 4377559200001478 + }, + "price-match": { + "binary_H": [ + 175000000, + 1120000000, + 7000000000, + 42000000000, + 252000000000, + 1568000000000 + ], + "numerical_H": 1600000, + "kappa": "389011527141/100000000000000", + "A": 1870297303584, + "log2_S_le": 1605632000000003, + "old_installed_visits_log_gt": 10975999985622, + "log2_C_le": 30642913440001478 + }, + "fixed-stock-stop": { + "binary_H": [ + 106811524, + 1708984375, + 27343750000, + 437500000000, + 7000000000000, + 112000000000000 + ], + "numerical_H": 1600000, + "kappa": "9725288215981/2500000000000000", + "A": 119466661575676, + "log2_S_le": 114688000000000003, + "old_installed_visits_log_gt": 783999999983102, + "log2_C_le": 1957341750160010694 + }, + "small-gap": { + "binary_H": [ + 6835937536, + 109375000000, + 1750000000000, + 28000000000000, + 448000000000000, + 7168000000000000 + ], + "numerical_H": 1600000, + "kappa": "38901152865907/10000000000000000", + "A": 7645866239991957, + "log2_S_le": 7340032000000000003, + "old_installed_visits_log_gt": 50175999999982031, + "log2_C_le": 125269872000160591302 + } + }, + "binary": { + "productive": 18906, + "paid": 104652, + "cells": 24, + "directed_margin": "55321779883482082595639/244544123725211460862213013703178693829", + "factor_upper_times_1000000": 1101878 + }, + "positive": { + "productive": 105216, + "paid": 564144, + "cells": 54, + "directed_margin": "581301517505308420437811839033/712832080757285114692213031302131209278", + "factor_upper_times_1000000": 1111354 + }, + "profiles": { + "selected-price": { + "A_lower_in_this_price": 5936, + "kappa": "363005817/100000000000", + "binary_H": [ + 5610 + ], + "numerical_H": 1024, + "width_logs": [ + 516120, + 94208 + ], + "stage_rates": [ + "72601163401/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "40046673744737759/335544320000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -6909, + "last_extent_bits_minus_b": -6908, + "minimum_width": 3541248, + "log2_axis_count": 6888, + "largest_axis_width": 5592406, + "private_clock_log2_upper": 5733779202, + "actual_dense_root_entry_log2": 11184812 + }, + "binary_cuts": [ + 5697 + ], + "public_exponent_A": 6913, + "first_public_offset": 4, + "initial_s": 6914, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 1443, + "retimed_all_size_margin_floor": 1385, + "absolute_log2_private_control_envelope": 5744642, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 91914289, + "log2_C_le": 92141171 + }, + "small": { + "A_lower_in_this_price": 16889, + "kappa": "19/5000", + "binary_H": [ + 18400 + ], + "numerical_H": 1600, + "width_logs": [ + 1692800, + 147200 + ], + "stage_rates": [ + "76000000001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "994857957832159/335544320000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -20341, + "last_extent_bits_minus_b": -20340, + "minimum_width": 10418432, + "log2_axis_count": 20319, + "largest_axis_width": 11184811, + "private_clock_log2_upper": 11474169722, + "actual_dense_root_entry_log2": 22369622 + }, + "binary_cuts": [ + 18539 + ], + "public_exponent_A": 20345, + "first_public_offset": 4, + "initial_s": 20346, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 8151, + "retimed_all_size_margin_floor": 7892, + "absolute_log2_private_control_envelope": 18841602, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 301465649, + "log2_C_le": 301819251 + }, + "compact": { + "A_lower_in_this_price": 82402, + "kappa": "96998200889/25000000000000", + "binary_H": [ + 9100, + 144000 + ], + "numerical_H": 8500, + "width_logs": [ + 837200, + 13248000, + 782000 + ], + "stage_rates": [ + "1867384696541679599/500000000000000000000", + "387992803561/100000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "9381267437871883/28521267200000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -161988, + "last_extent_bits_minus_b": -161987, + "minimum_width": 82941696, + "log2_axis_count": 161963, + "largest_axis_width": 89478486, + "private_clock_log2_upper": 91792081097, + "actual_dense_root_entry_log2": 178956972 + }, + "binary_cuts": [ + 9201, + 153265 + ], + "public_exponent_A": 161992, + "first_public_offset": 2, + "initial_s": 161993, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 78958, + "retimed_all_size_margin_floor": 76498, + "absolute_log2_private_control_envelope": 147456002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 2508390457, + "log2_C_le": 2510262059 + }, + "conservative-36k": { + "A_lower_in_this_price": 261050, + "kappa": "3893947/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 36000, + "width_logs": [ + 5520000, + 88320000, + 3312000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77878940001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "987180376477/1006632960000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -1056614, + "last_extent_bits_minus_b": -1056613, + "minimum_width": 540990208, + "log2_axis_count": 1056586, + "largest_axis_width": 715827883, + "private_clock_log2_upper": 734090855275, + "actual_dense_root_entry_log2": 1431655766 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 1056618, + "first_public_offset": 2, + "initial_s": 1056619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 526259, + "retimed_all_size_margin_floor": 509832, + "absolute_log2_private_control_envelope": 983040002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16719601659 + }, + "compact-1m": { + "A_lower_in_this_price": 1539018, + "kappa": "1949013/500000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 1000000, + "width_logs": [ + 5520000, + 88320000, + 92000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77960520000001/20000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000000", + "ordinary_margin": "1/100000000000000000", + "positive_margin": "59047784074723/41943040000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -2020614, + "last_extent_bits_minus_b": -2020613, + "minimum_width": 1034558208, + "log2_axis_count": 2020585, + "largest_axis_width": 1431655766, + "private_clock_log2_upper": 1468086707467, + "actual_dense_root_entry_log2": 2863311532 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 2020618, + "first_public_offset": 2, + "initial_s": 2020619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 1008259, + "retimed_all_size_margin_floor": 976770, + "absolute_log2_private_control_envelope": 1024000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16931681659 + }, + "extended-10m": { + "A_lower_in_this_price": 9670249, + "kappa": "3898163/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 10000000, + "width_logs": [ + 5520000, + 88320000, + 920000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779632600000001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "318176529810799/209715200000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -11020635, + "last_extent_bits_minus_b": -11020634, + "minimum_width": 5642568960, + "log2_axis_count": 11020604, + "largest_axis_width": 5726623062, + "private_clock_log2_upper": 5875358240096, + "actual_dense_root_entry_log2": 11453246124 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 11020639, + "first_public_offset": 4, + "initial_s": 11020640, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 5508258, + "retimed_all_size_margin_floor": 5336155, + "absolute_log2_private_control_envelope": 10240000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 18911681659 + }, + "extended": { + "A_lower_in_this_price": 20577448, + "kappa": "19490860671/5000000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 20000000, + "width_logs": [ + 5520000, + 88320000, + 1840000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779634426840001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "35949970799/209715200000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -21020642, + "last_extent_bits_minus_b": -21020641, + "minimum_width": 10762572544, + "log2_axis_count": 21020610, + "largest_axis_width": 11453246123, + "private_clock_log2_upper": 11749670261735, + "actual_dense_root_entry_log2": 22906492246 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 21020646, + "first_public_offset": 2, + "initial_s": 21020647, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 10508257, + "retimed_all_size_margin_floor": 10179908, + "absolute_log2_private_control_envelope": 20480000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 21111681659 + } + }, + "prefix": { + "small_stop_tail_factor_log2": 1591, + "private_prefix_log2": 126082079, + "controls_prefix_log2": 5081414, + "private_prefix_after_input_log2": 84484466, + "early_log2_C_bound": 84500000, + "tail_log2_fixed_factor_including_b_to_n": 1434, + "tail_unit": "(1 + B + Z) * n * (1 + log2(n))^(1-kappa)" + }, + "first_controller_shape": { + "first_b": 18508, + "first_L": 18496, + "first_P": 606385061, + "first_side_bit_length": 18496, + "host_list": "OverflowError" + }, + "first_numerical_placement": { + "root_tag": [ + "root", + "rotated", + 0, + 4080, + 1 + ], + "per_target_probability": "1/624", + "placements": { + "1024": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1600": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "8500": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "36000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "10000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "20000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + } + } + } +} diff --git a/research/p104-gaussian-rounded-partitions/peer8054/peer8053/peer8052.tar.gz b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/peer8052.tar.gz new file mode 100644 index 0000000000..304d0845d6 Binary files /dev/null and b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/peer8052.tar.gz differ diff --git a/research/p104-gaussian-rounded-partitions/peer8054/peer8053/verify.py b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/verify.py new file mode 100644 index 0000000000..d17169bcb3 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/peer8054/peer8053/verify.py @@ -0,0 +1,82 @@ +"""Replay a fixed-carrier price edit by restoring the exact registered peer package.""" + +from argparse import ArgumentParser +from hashlib import sha256 +import json +from pathlib import Path +import subprocess +import sys +import tarfile +from tempfile import TemporaryDirectory + +HERE = Path(__file__).resolve().parent +EXPECTED_HEAD = "baaec65bf8e4c7e92be110a00d5b06522177931f" +REPLACEMENTS = { + "installations.py": ( + ("Q(2092819, 2**29)", "Q(1071523491, 2**38)"), + ('Q(".003898171")', 'Q(".0038981721342")'), + ), + "check_complete.py": ( + ('"gaussian_c_decimal": "0.003898179158568382"', '"gaussian_c_decimal": "0.003898179751558928"'), + ('"extended_kappa": "0.003898171"', '"extended_kappa": "0.0038981721342"'), + ), + "check_extended_stop.py": ( + ("F(2092819,2**29)", "F(1071523491,2**38)"), + ), +} +MODES = ("binary", "cost", "schedule", "install", "physical", "receiver", "slabs", "product") + + +def restore(work: Path) -> None: + source = json.loads((HERE / "PEER-SOURCE.json").read_bytes()) + if source["head"] != EXPECTED_HEAD: + raise ValueError("Unexpected peer commit") + archive = HERE / "peer8052.tar.gz" + if sha256(archive.read_bytes()).hexdigest() != source["archive_sha256"]: + raise ValueError("Peer archive differs") + files = source["files_sha256"] + seen = set() + with tarfile.open(archive) as bundle: + for entry in bundle: + path = Path(entry.name) + if path.is_absolute() or ".." in path.parts or str(path) != entry.name: + raise ValueError("Unexpected archive path") + if not entry.isfile() or entry.name in seen or entry.name not in files: + raise ValueError(f"Unexpected or repeated peer file {entry.name}") + content = bundle.extractfile(entry).read() + if sha256(content).hexdigest() != files[entry.name]: + raise ValueError(f"Source differs at {entry.name}") + target = work / path + target.parent.mkdir(parents=True, exist_ok=True) + target.write_bytes(content) + seen.add(entry.name) + if seen != files.keys(): + raise ValueError("Peer archive is missing a file") + + +def edit_installation(work: Path) -> None: + for name, replacements in REPLACEMENTS.items(): + path = work / name + text = path.read_text() + for old, new in replacements: + if text.count(old) != 1: + raise ValueError(f"Expected one change point in {name}") + text = text.replace(old, new) + path.write_text(text) + (work / "RESULT.json").write_bytes((HERE / "RESULT.json").read_bytes()) + + +def main() -> None: + parser = ArgumentParser(description=__doc__) + parser.add_argument("mode", choices=MODES) + args = parser.parse_args() + with TemporaryDirectory(prefix="p104-fixed-carrier-") as temporary: + work = Path(temporary) + restore(work) + edit_installation(work) + subprocess.run([sys.executable, "-IB", str(work / "verify.py"), args.mode], check=True) + print("PASS_GAUSSIAN_FIXED_CARRIER", args.mode, flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/p104-gaussian-rounded-partitions/peer8054/prepare.py b/research/p104-gaussian-rounded-partitions/peer8054/prepare.py new file mode 100644 index 0000000000..9ed21dff57 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/peer8054/prepare.py @@ -0,0 +1,93 @@ +"""Materialize the #8053 fixed-carrier peer and unsplit exactly two paid returns.""" + +import argparse +from fractions import Fraction +from hashlib import sha256 +import json +from pathlib import Path +import runpy +import sys +import tempfile + +PEER_HEAD = "e25494616bf149217644ce08d949181ea3600e13" +PINS = { + "PEER-SOURCE.json": "91e965d76ef4d72aa68422c382c8be25fce47b16d610783a5e3872f82953cffc", + "RESULT.json": "3d85ccaf415b33702951ceb14b78fa1f7f0964ba3f201bf07b9e8a6e96882220", + "verify.py": "513229ad495efab7a738644d291eb19f84bc751d6a606e84183229d4549549ab", +} +EDITS = { + "installations.py": ( + ("Q(1071523491, 2**38)", "Q(133940467, 2**35)"), + ('Q(".0038981721342")', 'Q(".0038981730255")'), + ), + "retimed_supplier.py": ( + ("SMALL_SPLITS = 1008", "SMALL_SPLITS = 1006"), + ), + "unpowered_price.py": ( + ("paid[1] -= 1008", "paid[1] -= 1006"), + ("paid[F(1, 2)] = 2016", "paid[F(1, 2)] = 2012"), + ), + "check_complete.py": ( + ('"gaussian_c_decimal": "0.003898179751558928"', '"gaussian_c_decimal": "0.003898180642863736"'), + ('"extended_kappa": "0.0038981721342"', '"extended_kappa": "0.0038981730255"'), + ), + "check_installation.py": ( + ("105216, 564144, 54", "105216, 564142, 54"), + ), + "check_extended_stop.py": ( + ("105216,564144,54", "105216,564142,54"), + ("F(1071523491,2**38)", "F(133940467,2**35)"), + ), + "check_nonzero_eight.py": ( + ("SMALL_SPLITS == 1008", "SMALL_SPLITS == 1006"), + ), +} + + +def materialize(source: Path, work: Path) -> None: + for name, digest in PINS.items(): + if sha256((source / name).read_bytes()).hexdigest() != digest: + raise ValueError(f"#8053 differs at {name}") + predecessor = runpy.run_path(str(source / "verify.py")) + work.mkdir() + predecessor["restore"](work) + predecessor["edit_installation"](work) + for name, edits in EDITS.items(): + path = work / name + code = path.read_text() + for search, replacement in edits: + if code.count(search) != 1: + raise ValueError(f"Expected one change point in {name}") + code = code.replace(search, replacement) + path.write_text(code) + + +def verify_price(work: Path) -> None: + sys.path.insert(0, str(work)) + from bootstrap import install + + with tempfile.TemporaryDirectory() as temp: + receiver = Path(temp) / "tree" + install(receiver) + sys.path.insert(0, str(receiver)) + from upstream import install as sources + + sources() + from check_complete import all_results + + result = all_results() + assert result["positive"]["paid"] == 564142 + trial = Fraction(result["profiles"]["extended"]["kappa"]) + assert trial == Fraction(".0038981730255") + (work / "RESULT.json").write_text(json.dumps(result, indent=2) + "\n") + print("PASS_TWO_UNSPLIT_RETURNS", trial, result["profiles"]["extended"]["signed_gate"]) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--source", required=True, type=Path) + parser.add_argument("--out", required=True, type=Path) + args = parser.parse_args() + source, out = args.source.resolve(), args.out.resolve() + materialize(source, out) + verify_price(out) diff --git a/research/p104-gaussian-rounded-partitions/prepare.py b/research/p104-gaussian-rounded-partitions/prepare.py new file mode 100644 index 0000000000..6f9f9a2b84 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/prepare.py @@ -0,0 +1,190 @@ +"""Install the parity-rounded Gaussian target from exact #8054 sources.""" +from argparse import ArgumentParser +from fractions import Fraction +from hashlib import sha256 +from pathlib import Path +import json +import runpy +import subprocess +import sys +import tempfile + +HEAD = "f6f4ecd5dd717ce2b155dd564469e9693ac90f6d" +PINS = { + "prepare.py": "775c7ff81f05b7df6d9ad3aa244bbcc539c383be96e1d07855881c53417f9844", + "RESULT.json": "1315e92c43f0c23a8584beb64217411572a1a2aa1178969ca220ce53073ea8c5", +} +CAMPAIGN_PINS = { + "prototype.py": "f86a898583ffec816871cd94f8580daa3201d0892185cc0484a1cb77211eceb8", + "prototype.json": "c9157f73ac7c36aa128dff44f5138d9c31c09a8d89951ffdc3cd9660c40cb237", + "receipt.json": "38e1e56e529d6371186e8420fc6e5bf03df7bd6fa7cca2ec41dd2cda0d687aad", + "verified.json": "18cc056fcf09bf52df1a8d4c24df09da97bc119412a13cb5eb10977a75dd3bac", +} +OLD = { + "installations.py": "983fdc1fd09ec8727d8c573ba171d52a0fc0200437f9233f249a2aa5e7be9503", + "retimed_supplier.py": "bdc5bf5e5228fe1179951a074508f59a90f6d2634f5af8e2d5a097329e484755", + "unpowered_price.py": "04cac4d63621c55111d870597f3a84d53786177aea5c2f831b16cbe6a6de188b", + "check_complete.py": "a73bb6819014f7e61b73ab95bf28ec74d1f1607c0a58ad60315d391ab82557c1", + "check_installation.py": "dc7552b8585c7ac48d69ca64ddc17747ffda53b1bb00a2c64cacc38a6214a956", + "check_extended_stop.py": "3d8f1f1181124991e468f69a839f8148910bbe5b1cbd2c1c6a7ac7c80b2c0525", + "check_positive_word.py": "a88de880627489764668f6a3ec34f4861f61bd49cc74d3547d3ef18ee017dbe4", + "check_nonzero_eight.py": "adb442191016a90d9d84fda978850c1d40518e62821f41238285b9f42158b34e", + "transport.py": "98bdb540233794338b426d1b0d0e72cff7fcbbd08be702af0d81e237dbecaae9", +} +EDIT = { + "installations.py": ( + ("Q(133940467, 2**35)", "Q(4286126377, 2**40)"), + ('Q(".0038981730255")', 'Q(".0038982016137")'), + ), + "retimed_supplier.py": ( + ("from transport import Recipe","from transport import Recipe, paid_axis_count"), + ("yield job.select(range(width // 2))\n yield job.select(range(width // 2, width))", + "first = paid_axis_count(F(1, 4), width)\n yield job.select(range(first))\n yield job.select(range(first, width))"), + ("slots.extend((F(1, 2), F(1, 2)))", "slots.extend((F(1, 4), F(3, 4)))"), + ('raise ValueError("Each split needs a positive even column count")', + 'raise ValueError("The native word needs a positive even column count")\n if columns < 4:\n raise ValueError("Each quarter split needs at least four columns")'), + ), + "unpowered_price.py": ( + ("paid[F(1, 2)] = 2012", "paid[F(1, 4)] = 1006\n paid[F(3, 4)] = 1006"), + (" if r == F(1, 2):\n low, high = power_interval(2, t)\n return (UNIT * UNIT // high, -(-UNIT * UNIT // low))\n return power_interval(int(r), t)", + " rank = F(r)\n x, y = power_interval(rank.numerator, t)\n if rank.denominator == 1:\n return x, y\n a, b = power_interval(rank.denominator, t)\n return UNIT * x // b, -(-UNIT * y // a)"), + ), + "check_complete.py": ( + ("assert max(max(targets), max(paid)) <= 1032 and min(paid) >= Q(1, 2)", + "assert max(max(targets), max(paid)) <= 1032"), + ("if ambient == 134:\n assert (factor", "if ambient == 134:\n assert min(paid) >= Q(1, 2)\n assert (factor"), + ("assert ambient == 1224 and cells[448, 1032] == 1\n assert factor**256 < 2**39", + "assert ambient == 1224 and cells[448, 1032] == 1\n assert min(paid) == Q(1, 4) and c.denominator <= 2**40\n assert (Q(100, 99)**250 > 4 and c < Q(1, 250)\n and Q(99, 100)*Q(2, 9) > Q(19, 100))\n assert Q(10) * Q(106, 100) / (Q(996, 1000)*Q(99, 100)*Q(19, 100)) < 64\n for r, k in cells:\n error = Q(-1, 2) if r == Q(1, 4) else Q(1, 2) if r == Q(3, 4) else Q(0)\n assert 8*k - 10*r + min(0, error) >= 0\n assert 10*k - 8*r + max(0, error) < 10*k and error <= 8*r\n assert factor**256 < 2**39"), + ('"gaussian_c_decimal": "0.003898180642863736"', '"gaussian_c_decimal": "0.003898209231010696"'), + ('"extended_kappa": "0.0038981730255"', '"extended_kappa": "0.0038982016137"'), + ('(binary["cells"], positive["cells"]) == (24, 54)', '(binary["cells"], positive["cells"]) == (24, 55)'), + ), + "check_installation.py": ( + ("105216, 564142, 54", "105216, 564142, 55"), + ), + "check_extended_stop.py": ( + ("105216,564142,54", "105216,564142,55"), + ("F(133940467,2**35)", "F(4286126377,2**40)"), + ), + "check_positive_word.py": ( + ("both halves of every split", "both packets of every split"), + ("from strong_complex import artifacts, word", "from strong_complex import artifacts, word\nfrom transport import paid_axis_count"), + ("inputs = [Job(i, range(2 * k))", "columns = 6\n inputs = [Job(i, range(columns * k))"), + ("slots=2448", "slots=columns * 1224"), + ("Raw(w, machine).native(inputs, 2)", "Raw(w, machine).native(inputs, columns)"), + ("len(request.axes) == 2 * grade", "len(request.axes) == paid_axis_count(grade, columns)"), + ("2*sum(sizes) == 13440384", "columns*sum(sizes) == 40321152"), + ("len(fields), 2*sum(sizes)", "len(fields), columns*sum(sizes)"), + ("complete two-column raw path", "complete six-column raw path"), + ), + "check_nonzero_eight.py": ( + ("An exact tensor representation makes the 16-column", "An exact tensor representation makes the 48-column"), + ("from periodic import Job", "from periodic import Job\nfrom transport import paid_axis_count"), + ("jobs = [Job(i, range(2 * k))", "columns = 6\n jobs = [Job(i, range(columns * k))"), + ("enumerate((2, 16))", "enumerate((columns, 8 * columns))"), + ("slots=2 * 1224", "slots=columns * 1224"), + ("Raw(w, physical).native(jobs, 2)", "Raw(w, physical).native(jobs, columns)"), + ("nonzero = {2: 0, 16: 0}", "nonzero = {columns: 0, 8*columns: 0}"), + ("len(j.axes) == 2 * g", "len(j.axes) == paid_axis_count(g, columns)"), + ('"independent columns", 2, 16', '"independent columns", columns, 8*columns'), + ("2 * sum(sizes)", "columns * sum(sizes)"), + ("2**18,\n 2**144", "2**54,\n 2**432"), + ), +} + + +def digest(path): + return sha256(path.read_bytes()).hexdigest() + + +def replace(path, edits): + text = path.read_text() + for old, new in edits: + if text.count(old) != 1: + raise ValueError(f"Expected one occurrence of {old!r} in {path.name}") + text = text.replace(old, new) + path.write_text(text) + + +def materialize(source, proof, work): + for name, pin in PINS.items(): + if digest(source / name) != pin: + raise ValueError(f"#8054 differs at {name}") + evidence = {"prototype.py": proof / "prototype.py", "prototype.json": proof / "prototype.json", + "receipt.json": proof / "price" / "receipt.json", "verified.json": proof / "proof" / "verified.json"} + for name, path in evidence.items(): + if digest(path) != CAMPAIGN_PINS[name]: + raise ValueError(f"Round 370 differs at {name}") + result = json.loads(evidence["receipt.json"].read_text()) + assert result["comparator"] == HEAD and Fraction(result["kappa"]) == Fraction(".0038982016137") + + runpy.run_path(str(source / "prepare.py"))["materialize"](source / "peer8053", work) + for name, sha in OLD.items(): + if digest(work / name) != sha: + raise ValueError(f"Materialized #8054 differs at {name}") + prototype = runpy.run_path(str(evidence["prototype.py"])) + with tempfile.TemporaryDirectory(prefix="transport-edit-") as temp: + edited = Path(temp) / "transport.py" + prototype["patch"](work / "transport.py", edited) + assert digest(edited) == json.loads(evidence["prototype.json"].read_bytes())["patched"] + (work / "transport.py").write_bytes(edited.read_bytes()) + + for name, edits in EDIT.items(): + replace(work / name, edits) + + +def install(work, tree): + sys.path.insert(0, str(work)) + runpy.run_path(str(work / "bootstrap.py"))["install"](tree) + sys.path.insert(0, str(tree)) + from upstream import install as dependencies + dependencies() + + +def generate(work): + with tempfile.TemporaryDirectory(prefix="quarter-candidate-") as temp: + install(work, Path(temp) / "tree") + from check_complete import all_results, ranks, certify + from collections import Counter + result = all_results() + assert Fraction(result["profiles"]["extended"]["kappa"]) == Fraction(".0038982016137") + positive = result["positive"] + assert (positive["productive"], positive["paid"], positive["cells"]) == (105216, 564142, 55) + targets, paid = ranks() + previous = Counter(paid) + del previous[Fraction(1, 4)], previous[Fraction(3, 4)] + previous[Fraction(1, 2)] = 2012 + assert certify(Fraction(4286126377, 2**40), (targets, previous))[0] < 0 + (work / "RESULT.json").write_text(json.dumps(result, indent=2) + "\n") + print("PASS_PARITY_ROUNDED_GAUSSIAN_PRICE", result["profiles"]["extended"]["kappa"]) + + +def focused(work, mode): + with tempfile.TemporaryDirectory(prefix="quarter-check-") as temp: + install(work, Path(temp) / "tree") + files = {"positive": "check_positive_word.py", "nonzero": "check_nonzero_eight.py"} + runpy.run_path(str(work / files[mode]), run_name="__main__") + + +if __name__ == "__main__": + parser = ArgumentParser(description=__doc__) + parser.add_argument("--source", type=Path) + parser.add_argument("--proof", type=Path) + parser.add_argument("--work", type=Path, required=True) + parser.add_argument("--run", choices=("cost", "positive", "nonzero")) + parser.add_argument("--child", action="store_true") + a = parser.parse_args() + work = a.work.resolve() + if a.child: + if a.run in ("positive", "nonzero"): + focused(work, a.run) + else: + materialize(a.source.resolve(), a.proof.resolve(), work) + generate(work) + else: + proc = subprocess.run([sys.executable, "-IB", __file__, "--child", *sys.argv[1:]], timeout=60) + if proc.returncode: + raise SystemExit(proc.returncode) + if a.run == "cost": + proc = subprocess.run([sys.executable, "-IB", str(work / "verify.py"), "cost"], timeout=60) + raise SystemExit(proc.returncode) diff --git a/research/p104-gaussian-rounded-partitions/round370/price/receipt.json b/research/p104-gaussian-rounded-partitions/round370/price/receipt.json new file mode 100644 index 0000000000..7246f192c1 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/round370/price/receipt.json @@ -0,0 +1,31 @@ +{ + "candidate_c": "4286126377/1099511627776", + "cells": 55, + "clock_factor_outward_times_1000000": 1111355, + "comparator": "f6f4ecd5dd717ce2b155dd564469e9693ac90f6d", + "delta_vs_8054": "142941/5000000000000", + "delta_vs_old_raw_less_same_debits": "759369404288078353/26843545600000000000000000", + "fringe_coefficient_upper": "26500000/468369", + "gaussian_debit_preserved": "39/(256*H)", + "kappa": "38982016137/10000000000000", + "minimum_interior_residual_lower": "1/2", + "model": "even band grid, floor(w/4) and w-floor(w/4)", + "paid": 564142, + "productive": 105216, + "quarter_crossing_upper": "2194512630857/562949953421312", + "reciprocal_mass_enclosure_error_at_min_H_bits_upper": -38087, + "signed": { + "functional": 4, + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "103340423821/838860800000000000000000", + "smallest_margin": "1/10000000000000000000", + "strict": 54 + }, + "source_pins": { + "outer_budget": "ca4438db28a447ed5c43d87d43f0ac10a0cb2b4e183342ac93139d517b9d4d02", + "quarter": "dbde66c13af0f44c4ba55690ee7a4324111c29961211f740eea2c3b1f513a037", + "split": "d26a1f9ea8fd78900f45bf83c29ee2b700d015c231a82eab1cad54283b4aec66", + "transfer": "7164831a5dd9f5c6231bf4c3f4b2061d91cbfab559071a0a5d68966e3f7ac55c" + }, + "work_remaining": "literal parity-aware scheduler, complete installed and independent signed replay" +} diff --git a/research/p104-gaussian-rounded-partitions/round370/proof/verified.json b/research/p104-gaussian-rounded-partitions/round370/proof/verified.json new file mode 100644 index 0000000000..13f23801aa --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/round370/proof/verified.json @@ -0,0 +1,30 @@ +{ + "actual_exponent_root_depth": 40, + "analytic_test_trial": "4286126377/1099511627776", + "certified_root_depth_limit": 46, + "fixed_profile_debit": "39/256", + "fixed_profile_signed_trial_for_future_replay": "38982016137/10000000000000", + "fringe_coefficient_upper": "9275000/156123", + "literal_leaf_count_pair_is_nominal": true, + "max_virtual_ratio": 4128, + "predecessor_head": "f6f4ecd5dd717ce2b155dd564469e9693ac90f6d", + "price_slack_vs_positive_cap": "103340423821/838860800000000000000000", + "psi_over_P_lower": "124/625", + "round369_price_receipt_sha256": "dbde66c13af0f44c4ba55690ee7a4324111c29961211f740eea2c3b1f513a037", + "rounded_column_examples": [ + [ + 32768, + 32760, + 8190, + 24570 + ], + [ + 32770, + 32762, + 8190, + 24572 + ] + ], + "status": "ANALYTIC_INTERFACE_CHECK_ONLY", + "worst_case_grid_mass_error_log2_less_than": -35803 +} diff --git a/research/p104-gaussian-rounded-partitions/round370/prototype.json b/research/p104-gaussian-rounded-partitions/round370/prototype.json new file mode 100644 index 0000000000..2a16ca898b --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/round370/prototype.json @@ -0,0 +1,29 @@ +{ + "cases": [ + { + "band": 32768, + "columns": 32760, + "corrupted_size_rejected": true, + "leaves": 32760, + "packet_lengths": [ + 8190, + 24570 + ], + "preserved_signed_axes_and_owner": true + }, + { + "band": 32770, + "columns": 32762, + "corrupted_size_rejected": true, + "leaves": 32762, + "packet_lengths": [ + 8190, + 24572 + ], + "preserved_signed_axes_and_owner": true + } + ], + "patched": "adb17a573d7fb3c32c64a510e71ca2df0858782818f8e5430cba17e6cab1559c", + "scope": "single-owner event, decode, and leaf ledger fixture", + "source": "98bdb540233794338b426d1b0d0e72cff7fcbbd08be702af0d81e237dbecaae9" +} diff --git a/research/p104-gaussian-rounded-partitions/round370/prototype.py b/research/p104-gaussian-rounded-partitions/round370/prototype.py new file mode 100644 index 0000000000..26c9f26968 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/round370/prototype.py @@ -0,0 +1,149 @@ +"""Check rounded packet sizes in the authenticated event and leaf ledgers.""" +from argparse import ArgumentParser +from collections import defaultdict +from fractions import Fraction as Q +from hashlib import sha256 +import json +from pathlib import Path +import runpy +from tempfile import TemporaryDirectory + +WRAPPER = "775c7ff81f05b7df6d9ad3aa244bbcc539c383be96e1d07855881c53417f9844" +TRANSPORT = "98bdb540233794338b426d1b0d0e72cff7fcbbd08be702af0d81e237dbecaae9" + +HELPER = ''' +def paid_axis_count(rank, columns): + if rank in (F(1, 4), F(3, 4)): + if columns < 4 or columns % 2: + raise ValueError("Expected at least four even columns") + first = columns // 4 + return first if rank == F(1, 4) else columns - first + return rank * columns + + +''' + + +def digest(path): + return sha256(path.read_bytes()).hexdigest() + + +def patch(source, destination): + assert digest(source) == TRANSPORT + code = source.read_text() + for old, new in ( + ("class Plan:", HELPER + "class Plan:"), + ("size = self.paid[j] * (e - 8)", "size = paid_axis_count(self.paid[j], e - 8)"), + ("self.ticks * self.count[e] * self.paid[j] * (e - 8)", + "self.ticks * self.count[e] * paid_axis_count(self.paid[j], e - 8)"), + ): + assert code.count(old) == 1 + code = code.replace(old, new) + destination.write_text(code) + + +def fixture(plan_class, band): + plan = plan_class.__new__(plan_class) + plan.bands = range(band, band + 2, 2) + plan.count = {band: 1} + plan.delay = {band: 1} + plan.targets = (1,) + plan.paid = (Q(1, 4), Q(3, 4)) + plan.ticks = 1 + plan.send = defaultdict(list) + plan.receive = defaultdict(list) + plan.sources = defaultdict(list) + return plan + + +class Packet: + def __init__(self, owner, axes): + self.owner, self.axes = owner, tuple(axes) + + def select(self, indices): + return Packet(self.owner, (self.axes[i] for i in indices)) + + +class Machine: + def __init__(self): + self.live = set() + self.signed_axes = [] + + def zero(self, source): + assert not self.live + self.live.add(1) + return Packet(1, source.axes) + + def retire_zero(self, source): + self.live.remove(source.owner) + + def native(self, ports, columns): + job, = ports + assert len(job.axes) == columns and job.owner in self.live + half = columns // 4 + yield job.select(range(half)) + yield job.select(range(half, columns)) + + def leaf(self, job): + assert job.owner in self.live and len(job.axes) == 1 + self.signed_axes.extend(job.axes) + + +def test(old, new, band): + width = band - 8 + plan = fixture(new, band) + records = list(plan.events()) + first = width // 4 + count = [row[3] for row in records if row[0] == 1] + assert count == [first, width - first] + assert plan.leaves_per_epoch == sum(count) == width + axes = tuple((-1)**i * (i + 1) for i in range(width)) + rows = (Packet(0, axes),) + observed = Machine() + plan.decode(rows, 0, 0, observed, records) + assert not observed.live and tuple(observed.signed_axes) == axes + i = next(i for i, row in enumerate(records) if row[0] == 1) + op, ident, serial, size, selected = records[i] + records[i] = (op, ident, serial, size + 1, selected) + try: + plan.decode(rows, 0, 0, Machine(), records) + except ArithmeticError as exc: + assert "wrong rank" in str(exc) + else: + raise AssertionError("Paid size corruption accepted") + try: + list(fixture(old, band).events()) + except ArithmeticError: + assert width % 4 == 2 + else: + assert width % 4 == 0 + return {"band": band, "columns": width, "packet_lengths": count, "leaves": width, + "preserved_signed_axes_and_owner": True, "corrupted_size_rejected": True} + + +def main(): + parser = ArgumentParser(description=__doc__) + parser.add_argument("--unsplit-package", required=True, type=Path) + parser.add_argument("--out", required=True, type=Path) + args = parser.parse_args() + package = args.unsplit_package.resolve() + wrapper = package / "prepare.py" + assert digest(wrapper) == WRAPPER + with TemporaryDirectory() as work: + root = Path(work) + compiled = root / "source" + runpy.run_path(str(wrapper))["materialize"](package / "peer8053", compiled) + source, edited = compiled / "transport.py", root / "transport.py" + patch(source, edited) + old = runpy.run_path(str(source))["Plan"] + new = runpy.run_path(str(edited))["Plan"] + result = {"source": TRANSPORT, "patched": digest(edited), + "scope": "single-owner event, decode, and leaf ledger fixture", + "cases": [test(old, new, band) for band in (32768, 32770)]} + with args.out.open("x") as file: + json.dump(result, file, sort_keys=True, indent=2) + file.write("\n") + + +if __name__ == "__main__": + main() diff --git a/research/p104-gaussian-rounded-partitions/verify.py b/research/p104-gaussian-rounded-partitions/verify.py new file mode 100644 index 0000000000..7f9311d1f9 --- /dev/null +++ b/research/p104-gaussian-rounded-partitions/verify.py @@ -0,0 +1,27 @@ +"""Materialize and verify the parity-rounded Gaussian construction.""" +from argparse import ArgumentParser +from pathlib import Path +import runpy +import subprocess +import sys +from tempfile import TemporaryDirectory + +HERE = Path(__file__).resolve().parent +MODES = ("binary", "cost", "schedule", "install", "physical", "receiver", "slabs", "product") + + +def main(): + parser = ArgumentParser(description=__doc__) + parser.add_argument("mode", choices=MODES) + mode = parser.parse_args().mode + prepare = runpy.run_path(str(HERE / "prepare.py")) + with TemporaryDirectory(prefix="p104-rounded-partitions-") as temporary: + work = Path(temporary) / "native" + prepare["materialize"](HERE / "peer8054", HERE / "round370", work) + (work / "RESULT.json").write_bytes((HERE / "RESULT.json").read_bytes()) + subprocess.run([sys.executable, "-IB", str(work / "verify.py"), mode], check=True) + print("PASS_GAUSSIAN_ROUNDED_PARTITIONS", mode, flush=True) + + +if __name__ == "__main__": + main()