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-paired-source-complements/PROOF.md b/research/p104-paired-source-complements/PROOF.md new file mode 100644 index 0000000000..032eb82f7a --- /dev/null +++ b/research/p104-paired-source-complements/PROOF.md @@ -0,0 +1,82 @@ +# Source complements weighted by the actual integer flow + +This extends [#8029's coordinate-moment proof](https://github.com/ToikY/integer-mult-bounds/blob/c3837013dd7e2c50f6c3065c8f99d52a33b617bb/research/p104-paired-delayed-cover/weighted/moment/PROOF.md) at the same physical binary carrier. It uses the primary [integer flow](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md) and its [ambient-cap generalization](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/research/p104-shared-native-helper-splits/retained/compiler/PROOF.md). The upper and lower bounds below refer to physical, signed rank histograms at [#8027](https://github.com/CrocSwap/integer-mult-bounds/pull/8027). All logarithms are natural except where a base is written. + +## Strict separation closer to the raw crossing + +Write `v=768`, `J=15^v`, `K=16^v`, `m=134^v`, `H=299610000000000`, `C=0.003890115286593`, and `t=1−C`. Let `P_s` and `T_s` be the one-letter paid and productive masses at exponent `s`, using the complete rank multiplicities. A raw paid tuple has product rank `R`. Each `R>J` is split as `floor(R/J)` disjoint full slabs of rank `J` plus at most one remainder, by the inherited `credited_trim.py` contract. Productive tuples less than `K` become owned zero specializations. Retain the paid operations and all ordinary allocation, restoration and routing charges. The rank `K` is actually attained by 512 factors of rank 8 and 256 of rank 64. Both ranks occur in the authenticated productive law. + +With `u=1/5`, put `α=P_t/T_t`, `γ=P_(t+u)/(15^u T_t)`, `δ=16^u T_(t−u)/T_t`, and `ρ=γ/α`. The normalized full paid mass plus discarded productive mass is bounded above by `α^v+2γ^v+δ^v<1`. The independent predecessor engine also certifies the trial using `1/(1+v(1−α))` in place of `α^v`. Let `Q` be the completed paid `t`-mass and `W` the retained productive `t`-mass. Then `P_t^v≤Q233`. +- For `0.35≤q≤0.59`, at least `0.99` of the eligible completed mass has `r≥J^0.24`. The directed proof uses the anchor `[0.28,0.35]` for `log(R)/log(J)` under the raw tilt `0.45`. +- For `0.59≤q≤0.82`, at least `0.99` has `r≥J^0.47`. The corresponding anchor is `[0.49,0.59]` under raw tilt `0.8`. In both middle regions the factor from the good mass alone is at least `0.99 (K/J^0.35)^C>210`. +- For `q≥0.82`, the prefix contains all unsplit tuples below `J^0.82`. Their `r^C`-weighted mass is the raw rank mass at exponent `t+C=1`. A fresh `+0.1` Chernoff tilt bounds the discarded fraction under that law by `(P_1.1/(15^0.082 P_1))^v`. The denominator is bounded by the entire completed `Q`, including all uplift. Since `k/U>1`, the group's capacity is at least `(P_1/P_t)^v (1−(P_1.1/(15^0.082 P_1))^v)/(1+2ρ^v)>210`. + +For the middle-region calculation, let `[a,b]` be the anchor, `lJ)≤ρ^v`, the ratio of **all** eligible split remainder mass to the anchor is at most `ρ^v J^(t(q_1−1))/M`. The sum of these two ratios is strictly below `0.01` in each region. This argument uses the paid label's actual split geometry, including its full `t`-weight at a truncated source. + +For `G>0`, take a lower root capacity `a_0`, a deeper capacity 210, and the upper bound `σ` on `S_0/S`. The capacity per unit total source mass is at least `210−max(0,210−a_0)σ`. Multiplying by `η` and then using `S≥E` gives a certified budget in units of exit `t`-mass. At `G=0` apply the root capacity by itself. + +## Exit moments and the all-size induction + +One raw letter has log contribution `Y=log(r)/log(J)` under the actual paid `t`-law. The exponential generating polynomial of its first `p` moments has coefficient `E[Y^j]/j!`. Raising that polynomial to power `v` gives the raw tuple coefficients through degree `p`. The verifier uses positive truncated convolution and checks against `A B'=v B A'` for `B=A^v`. Every degree `1≤j≤p` of the completed log-rank moment is at most the raw moment plus `2ρ^v`. Indeed, if `R>J`, its original normalized log exceeds 1 and every child's log is at most 1, so the moment numerator grows at most by the **positive** split uplift. The completed denominator grows weakly. The zeroth moment is exactly 1. + +For the average of `g+1` completed labels, power the resulting upper moment polynomial to `g+1` and rescale its degree-`p` coefficient. The checker computes a separate directed norm `ℓ_g` for each `0≤g≤10`. For more labels the norm of the average is no greater than `ℓ_10`: the full average is the mean of its subaverages with eleven entries, and Jensen's inequality bounds its `p`th moment by the common eleven-entry moment. All independence here concerns weighted products of exact finite paid labels or raw tensor coordinates. + +Put `a=h log 2/log J`, `b=(h log 2+log m)/log J`, and `β=log K/log J`. Minkowski's inequality at height `G` bounds the exit cost divided by `A(n)E` by + +``` +[(a+(G+1) ℓ_G)/(b+β(G+f))]^p. +``` + +Use `p=23,h=1300`. For `G=0,...,9`, cover `[0,1)` by 32 equal rational cells. In each cell use its lower endpoint in the exit denominator and its upper endpoint for both the lower root capacity and upper root share. All 320 strict comparisons pass. The smallest relative margin occurs in height 7, last cell, where the exit bound is below `1.386e−6` and the complement budget exceeds `1.420e−6`. For `G≥10` use `f=0` in the exit denominator, `ℓ_10` in the numerator, `f=1` in the root factor, and the uniform root-share upper at height 10. The fractional-linear expression attains its supremum at height 10 or infinity. Both strict comparisons pass. The infinite-height exit upper is below `5.582e−5`, with complement capacity greater than `9.235e−5`. Without the averaged source estimate the old per-source `η` is below `4.399e−7`, and fails the corresponding infinite-height test. + +The ordinary base follows from `(1+log_2(m)/h)^p>m^C` by the concavity of `log(1+x/h)` on `0≤x≤log_2(m)`. The base at rank one is equality. Zero complements are covered by `F(0)=0`. Every recursive rank is smaller than `n`, and the weighted source budget dominates the normalized sum of exit costs. Strong integer induction proves the required uniform majorant for every top rank. + +## Terminal debit and complete signed price + +At the fixed binary `H`, exact integer arithmetic gives `h^23·2^868≤(H+h)^232H·23` and `log 2>1/2`. The original same-prime fallback satisfies the #8029 bound with separate debit `1/(H·2^38)` for the same stock and fixed physical catalogue. Both suppliers use the same literal operators, setup and precision controls as the paired construction. None of the shape or tensor parameters is enlarged to obtain the higher trial. + +The covered BIT value is `C−869/H−1/(H·2^38)`. Each of the four restored ordinary stages funds `(249·covered+previous)/250` and charges one additional tick after flooring to `10^−15`. The outer gate deducts eight signed ticks at `10^−14`, with seven ticks from claim to test. These are evaluated as exact fractions and separately by the signed supplier engine. The signed replay prices all 36 BIT and 48 rational calls, checks both source crossings and rejects corrupted paid ranks and invalid BIT caps. This is a higher conditional complete application for the pinned construction with the same five premises. The raw fixed-word BIT upper endpoint still bounds the scope of a proof-only extension based on a strictly separated trial of this raw law. diff --git a/research/p104-paired-source-complements/README.md b/research/p104-paired-source-complements/README.md new file mode 100644 index 0000000000..2e43c60c41 --- /dev/null +++ b/research/p104-paired-source-complements/README.md @@ -0,0 +1,32 @@ +# A higher conditional κ at the #8029 carrier + +The same paired 768-factor supplier gives **conditional κ ≥ 0.00389011528360**, an increase of **0.00000000001219** over [#8029](https://github.com/CrocSwap/integer-mult-bounds/pull/8029) at `c3837013dd7e2c50f6c3065c8f99d52a33b617bb`. [#8030](https://github.com/CrocSwap/integer-mult-bounds/pull/8030) at `6285dd829114705862e8d91facaedc1f31d3cfcb` reports the earlier value on a different physical installation with substantially smaller resource exponents. This package uses #8029's fixed binary carrier `N=2^299610000000000` and its same-prime delayed cover. + +| Quantity | #8029 | This certificate | +| --- | ---: | ---: | +| Strict separated BIT trial | `0.003890115276594` | `0.003890115286593` | +| Logarithmic power and base shift | `40`, `1024` | `23`, `1300` | +| Uniform debit numerator over the same H | `1524` | `869` | +| Four-stage ordinary BIT cap | `0.003890115271496` | `0.003890115283681` | +| Tested complete signed rate | `0.00389011527148` | `0.00389011528367` | +| Conditional κ | `0.00389011527141` | **`0.00389011528360`** | + +The actual integer-flow source ranks give stronger aggregate capacity to pay the recursive exits. A root source sees the entire productive law and a deeper source group sees exactly a truncated paid law. Charging its eligible split remainders still yields a factor of at least 210 in each deeper group. The weighted root share falls with height. The proof combines these facts with the literal paid log moments and checks the finite height cells and the infinite tail. [Proof](PROOF.md) + +The fixed histogram's raw BIT crossing is in `[0.003890115286594, 0.003890115286595]`. The signed claim is higher by exactly `4177787/1997400000000000000` than the directed upper endpoint minus #8029's own `1524/H` debit, even if its compiler trial and all later losses are forgiven. This comparison is to that proof's debit. The raw upper endpoint is `0.000000000002995` above the new signed claim. The rational raw crossing remains `[0.00389848144654, 0.00389848144655]`. + +## Replay + +```sh +python3.12 -IB scripts/research_package.py --package research/p104-paired-source-complements +``` + +The offline package binds all 50 files to the exact #8029 package Git tree. Its original unpacker separately authenticates the 30-file [#8027 package](https://github.com/CrocSwap/integer-mult-bounds/pull/8027) at `fb9b6a7b0d27da1cf98430893a3016bf811e2aa4`. The paired application authenticates its 134-file compiled proof closure. Replay recomputes the full signed 36-call BIT and 48-call rational invoices, the four ordinary stock stages and the signed outer application. It reconstructs the source operators, ownership and erasure fixtures, conversion and precision controls, and 54 strict and four functional checks. The independently evaluated paid-moment recurrences agree at every used order. Controls reject one less terminal debit unit, the discarded uniform per-source bound at infinity, an extra paid rank-one call on either side, a BIT cap equal to the signed test, and one below the effective requirement. [Complete deterministic receipt](RESULT.json) + +The result assumes the inherited native action on every column, owned storage and erasure, compiler transfer, precision and tape services, and analytic recovery. The fixed finite compiler and stock witness are priced symbolically from their source. Its production dimensions are beyond execution. The theorem and receipts evaluate the specified application under these premises. + +## Open next questions + +Can a paid change to the literal BIT word clear the current raw upper crossing? The first check is a changed signed rank that survives both exact price engines. A complete upgrade also needs the changed operator, owner/erasure and precision controls and the rebuilt outer application. The source-complement proof also suggests testing whether the compact #8030 installation's different paid profile admits the same capacity inequality. + +Ali Romman supplied the paired native circuits and the composed application. ToikY supplied #8029's same-carrier weighted-moment predecessor. Jacob Alan Sussman supplied the integer flow, DreamingOfClouds the ambient-cap and delayed-cover arguments, and zxv the shifted logarithm and weighted-exit compiler estimates. Clear1nsight contributed the source-capacity proof, directed checker and replay. OpenAI Codex materially assisted the mathematics, software and verification. Predecessor licensing and notices are preserved in the exact imported sources. New material is Apache-2.0. diff --git a/research/p104-paired-source-complements/RESULT.json b/research/p104-paired-source-complements/RESULT.json new file mode 100644 index 0000000000..b64d48e215 --- /dev/null +++ b/research/p104-paired-source-complements/RESULT.json @@ -0,0 +1,471 @@ +{ + "binary": { + "bootstrap_stages": [ + { + "claim": "0.003889964742556", + "envelope": [ + "0.003889964742557792", + "0.003889964742557793" + ], + "previous": "12039/3125000", + "slack": [ + "0.000000000000001792", + "0.000000000000001793" + ] + }, + { + "claim": "0.003890114681527", + "envelope": [ + "0.003890114681528016", + "0.003890114681528017" + ], + "previous": "972491185639/250000000000000", + "slack": [ + "0.000000000000001016", + "0.000000000000001017" + ] + }, + { + "claim": "0.003890115281282", + "envelope": [ + "0.003890115281283900", + "0.003890115281283901" + ], + "previous": "3890114681527/1000000000000000", + "slack": [ + "0.000000000000001900", + "0.000000000000001901" + ] + }, + { + "claim": "0.003890115283681", + "envelope": [ + "0.003890115283682920", + "0.003890115283682921" + ], + "previous": "1945057640641/500000000000000", + "slack": [ + "0.000000000000001920", + "0.000000000000001921" + ] + } + ], + "independent_rational_compiler": { + "H": 299610000000000, + "N": "2^299610000000000", + "ambient_base": 134, + "cutoff": 15, + "eta": [ + "0.000000439896785545615421702503741114418", + "0.000000439896785545615421702503741114419" + ], + "logarithm_power": 623, + "lost_low_targets": "charged owned zero specializations", + "maximum_productive_rank": "127^768", + "normalized_separation_slack": [ + "0.000000000001519859", + "0.000000000001519860" + ], + "paid_offset": "1/5", + "preceding_grid_failed": true, + "previous_power_failed": true, + "product_exponent": 768, + "productive_floor": 16, + "ratio_intervals": [ + [ + "0.999999999999998021016254952626113586366", + "0.999999999999998021016254952626113586367" + ], + [ + "0.875582868482030091371273680957801577564", + "0.875582868482030091371273680957801577565" + ], + [ + "0.943722116648673579100977749248926771528", + "0.943722116648673579100977749248926771529" + ] + ], + "target_offset": "1/5", + "theta": "42/43", + "trial": "3890115286593/1000000000000000", + "upper_ratios": [ + "9999999999999980210163/10000000000000000000000", + "8755828684820300913713/10000000000000000000000", + "943722116648673579101/1000000000000000000000" + ], + "working_ambient": "134^768" + }, + "literal_word": "b096d6df2a0c4688296b13ab0cfd50fec1c7dec732819c624ddd7a745a144b69", + "native": { + "calls": 36, + "instructions": { + "ADD": 29301, + "CLEAR": 3433, + "INIT": 3433, + "MOVE": 2803, + "SWAP": 630 + }, + "ordinary": { + "caller_bank_transits": 3507600, + "native_bank_transits_per_call": 2576851200, + "native_banks_and_scratch": 4067, + "ordinary_records": 896869203600, + "owned_backing": 6994188, + "raw_ordinary_allowance": 1000000000000, + "raw_owned_allowance": 10000000, + "route_groups": 555624, + "route_records": 804099052800 + }, + "paid": { + "1": 1348, + "2": 1247, + "3": 55, + "4": 42, + "5": 29, + "6": 81, + "7": 1 + }, + "paid_all": { + "1": 48972, + "14": 444, + "2": 44892, + "21": 444, + "28": 444, + "3": 1980, + "35": 444, + "4": 1512, + "42": 444, + "49": 444, + "5": 1044, + "56": 444, + "6": 2916, + "7": 480 + }, + "productive": { + "4": 17, + "8": 391 + }, + "productive_all": { + "127": 222, + "15": 444, + "22": 444, + "29": 444, + "36": 444, + "4": 612, + "43": 444, + "50": 444, + "57": 444, + "64": 444, + "8": 14520 + }, + "public": 630 + }, + "new_margin": [ + "0.000000000561223378623406056174829452453", + "0.000000000561223378623406056174829452454" + ], + "original_cutoff_prime": "odd q > 2^45*N^5 avoiding the frozen finite catalogue witnesses", + "original_stock": { + "W": "B*|GL_N(F_q)|*q^(N^2*(w-1))", + "atom_width": "w=ceil(e^(1/250))", + "backend_levels": 4, + "coarse_child_size": "at most floor(n/N)", + "depth": "2+ceil(log_N(n))", + "high_digits": "O_fixed(w log e)", + "minimum_cost_gaps": [ + "203/125000000000000000", + "221/125000000000000000", + "337/250000000000000000", + "17/12500000000000000" + ], + "n": "max(1,ceil(e/w))", + "reserve": "W(w)^depth*S_old, including restored outer spectators", + "threshold_rule": "Freeze each level at 2^j, with j>4*d/delta and C*(j+1)^d<=2^(delta*j) for fixed counted C,d. Smaller widths use its predecessor." + } + }, + "caller": "156fdf3a4a129b39225fd6ca51011de27974d7f104e8b04907c17ed5344bc858", + "comparison": { + "head": "c3837013dd7e2c50f6c3065c8f99d52a33b617bb", + "pr": 8029 + }, + "native_calls": { + "BIT": 36, + "rational": 48 + }, + "outcome": "PASS_FIXED_CARRIER_CONDITIONAL_GAIN", + "outer": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "paired_source": { + "archive": "d85d011ca74e8592c21c1e4db91a1a9021af26dcebc4dfdc2af7251f9c1bf968", + "files": 134, + "head": "fb9b6a7b0d27da1cf98430893a3016bf811e2aa4", + "pr": 8027 + }, + "premises": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ], + "price": { + "C": "0.003890115286593", + "H": 299610000000000, + "absolute_gain": "1219/100000000000000", + "cap": "0.003890115283681", + "claim": "0.00389011528360", + "covered": "333723952556637021576799897/85787676770304000000000000000", + "distance_to_raw_BIT_upper": "599/200000000000000", + "flow": { + "child": { + "factor": 210, + "large_cut_factor": [ + "225.772639062374720451723018576322521211421146687842810539824438850836064568625850418862712", + "225.772639062374720451723018576322521211421146687842810539824438850836064568625850418877916" + ], + "middle_cut_factors": [ + { + "anchor": [ + "7/25", + "7/20" + ], + "anchor_raw_lower": "3.67714742985189176868983205327728809559416474303160863391732847665576409275352589861782991E-95", + "anchor_tilt_mass": [ + "0.829019951829027185598278115727048090265577497249660182978937092095251565535805070759086501", + "0.829019951829027185598278115727048090265577497249660182978937092095251565535805070759086609" + ], + "bad_cut": "6/25", + "bad_upper": "2.24256539272941640561232816115193186671038016263651500737715501013502221651703832069604417E-20", + "mean": [ + "0.315842025925470947042312583032243456759700001982269085939095609193433845693196408139971866", + "0.315842025925470947042312583032243456759700001982269085939095609193433845693196408139971925" + ], + "raw_bad_upper": "2.24256539272941640561232816115193186671038016263651500737715501013502221651703832069604416E-20", + "split_bad_upper": "1.70522918426458273343999364178885941004427753435368991147126870416785589477898710467581222E-319", + "tilt": "9/20", + "upper_cut": "59/100", + "variance": [ + "0.000199493910842283218732055260742362960447795109576389986201046286932577152831178992721792481", + "0.000199493910842283218732055260742362960447795109576389986201046286932577152831178992721792604" + ] + }, + { + "anchor": [ + "49/100", + "59/100" + ], + "anchor_raw_lower": "1.23941243298887541254683467307896284385803887435560670574118336393985826957149528899216152E-18", + "anchor_tilt_mass": [ + "0.360444590996316394903718775238868906656657961908718471720891756111314365534730348524866283", + "0.360444590996316394903718775238868906656657961908718471720891756111314365534730348524866768" + ], + "bad_cut": "47/100", + "bad_upper": "0.000795212403220233969626587768135153758574702426577800222382165427385045273040423579505656880", + "mean": [ + "0.513242600877195429737533996396618554341100426355036909768070245775546664554179109721282082", + "0.513242600877195429737533996396618554341100426355036909768070245775546664554179109721282170" + ], + "raw_bad_upper": "0.000795212403220233969626587768135153758574702426577800222382165427385045273040423579505656879", + "split_bad_upper": "4.37206775840428941061214133563333630665144172442374021434662866257633640881468900395553798E-189", + "tilt": "4/5", + "upper_cut": "41/50", + "variance": [ + "0.000345499660864268522852365047733330785128833122233163616165025298838135301180775712615228749", + "0.000345499660864268522852365047733330785128833122233163616165025298838135301180775712615229007" + ] + } + ], + "small_cut_factor": [ + "233.154628949877007992903422588226713159222026053479772600174965149379034729015571311938100", + "233.154628949877007992903422588226713159222026053479772600174965149379034729015571311938139" + ], + "upper_rank_mass_tail": [ + "2.97101311360731664647428715315274082839149489376116404995721641792685069740517022971521832E-10", + "2.97101311360731664647428715315274082839149489376116404995721641792685069740517022971540984E-10" + ] + }, + "eta": [ + "4.39896785545615421702503741114418804489321201435765364051243259996002124011559722234755523E-7", + "4.39896785545615421702503741114418804489321201435765364051243259996002124011559722234755614E-7" + ], + "finite_shape_cells": 320, + "moments": { + "completed_average_moment_upper": [ + "0.000117915855670936858011214251239192929840911061584474829281036552435716117076557701237027338", + "0.000105357220294482245398717960937080563144955055885077979410031324440424610117704629280228084", + "0.000101432876094092249831294904174602580471793489212092951153038215815606233628035794791813861", + "0.0000995178615993325412963830200757306941013388514691900676966325253718058332451659910177292472", + "0.0000983837010318608571365281756123571620124173394925299565599043346287131127217403811484658502", + "0.0000976337252206142166194208674607534509781809397119525745025564852414345272506673175650190579", + "0.0000971010139023529224017903599629875851519783412521318083547722932079420244781882147796957188", + "0.0000967031065927113039713733238162887596340345851681988181437052457663912129869989910558580173", + "0.0000963945838937828527265875839027948945399123059320772117711256807611374385961753837827855904", + "0.0000961483696108858648820515924266477472710402821818677964528993350110211586435569455244751830", + "0.0000959473200805134559202674006811260364869098197623610508081243410180686649806368995131034777" + ], + "norm_uppers": [ + "33741843/50000000", + "33577037/50000000", + "33521667/50000000", + "33493899/50000000", + "66954423/100000000", + "66932151/100000000", + "66916231/100000000", + "13380857/20000000", + "6689499/10000000", + "522559/781250", + "13376293/20000000" + ], + "raw_23_convolution": [ + "4.56118595550710938077895577151156527227839059846871573526471758824631337586138420650476252E-27", + "4.56118595550710938077895577151156527227839059846871573526471758824631337586138420650478042E-27" + ], + "raw_23_derivative": [ + "4.56118595550710938077895577151156527227839059846871573526471758824631337586138420650476025E-27", + "4.56118595550710938077895577151156527227839059846871573526471758824631337586138420650478197E-27" + ] + }, + "root_factor": [ + "3.23887689288050515209665913701315542277383382766972212122071033015992564029071456040951096", + "3.23887689288050515209665913701315542277383382766972212122071033015992564029071456040975647" + ], + "root_fraction_from_height_10_upper": "0.000232141349148965363468232904684157817645354906183729527520359141787907757245684970100396749", + "root_ray_ratio": [ + "1.00000000000151985951619753963512879612540104648016433935249179585838683733403911697575150", + "1.00000000000151985951619753963512879612540104648016433935249179585838683733403911697585901" + ], + "root_tail_factor": [ + "0.0515004594750364811534367310263307194627805070117836332575799819440736673542226634828977027", + "0.0515004594750364811534367310263307194627805070117836332575799819440736673542226634829027454" + ], + "tail_capacity_lower": "0.0000923572099774833431978808459057938260469073449504931589416196056949814553133209618767213886", + "tail_height_10_upper": "0.0000196131826859989340986846807545809056836698588362208169946478218193144752997425172721721406", + "tail_infinite_upper": "0.0000558176861287873848610796303053333321766910367060043780642912047129634958975111411649487633", + "worst_finite_cell": [ + 7, + 31, + "0.00000138589504618312475719880190221658893231852340479534768681105560170522739863894170502329294", + "0.00000142086661731233781209908708379957273850050748063752212588551572978708686055733790281826033" + ], + "worst_finite_margin_ratio_upper": "9753871541/10000000000" + }, + "h": 1300, + "p": 23, + "percent_gain": "121900/389011527141", + "predecessor_claim": "0.00389011527141", + "predecessor_shape_upper": "7770116263284853/1997400000000000000", + "raw_crossings": { + "BIT": [ + "0.003890115286594", + "0.003890115286595" + ], + "rational": [ + "0.00389848144654", + "0.00389848144655" + ] + }, + "same_cover_debit": "1/82356169699491840000000000", + "stages": [ + { + "admitted": "0.003889964742556", + "bound": "27809253165202226375514391451/7148973064192000000000000000000", + "previous": "12039/3125000", + "slack": "12814633359639451/7148973064192000000000000000000" + }, + { + "admitted": "0.003890114681527", + "bound": "27810325074861630437843010459/7148973064192000000000000000000", + "previous": "972491185639/250000000000000", + "slack": "7267030261826459/7148973064192000000000000000000" + }, + { + "admitted": "0.003890115281282", + "bound": "27810329362500290244504716187/7148973064192000000000000000000", + "previous": "3890114681527/1000000000000000", + "slack": "13586722450572187/7148973064192000000000000000000" + }, + { + "admitted": "0.003890115283681", + "bound": "27810329379650819604962608027/7148973064192000000000000000000", + "previous": "1945057640641/500000000000000", + "slack": "13729701911856027/7148973064192000000000000000000" + } + ], + "strict": { + "alpha": [ + "0.999999999999998021016254952626113586366494855642724243693625061457505770550170676020484259", + "0.999999999999998021016254952626113586366494855642724243693625061457505770550170676020484378" + ], + "discarded_target_ratio": [ + "0.943722116648673579100977749248926771528531276462992185944166902988313217317484368774154997", + "0.943722116648673579100977749248926771528531276462992185944166902988313217317484368774155102" + ], + "gamma": [ + "0.875582868482030091371273680957801577564752772815725999577395485314048864722524635942124871", + "0.875582868482030091371273680957801577564752772815725999577395485314048864722524635942124992" + ], + "normalized_strict_gap": [ + "1.519859468299783877171928461895837967800319774806218618817557010267980731832327E-12", + "1.519859468299783877171928461895837967800319774806218618817557010267980731924488E-12" + ], + "positive_split_uplift_upper": "9.66768135813766716866328701973233520078565886004039364550039795164908211281395770165387022E-45" + }, + "strict_separation": "4177787/1997400000000000000", + "terminal_debit_numerator": 869, + "tested": "0.00389011528367", + "trial": "3890115286593/1000000000000000", + "v": 768 + }, + "rational_H": "15216900000000000000", + "rational_invoice": { + "P": { + "1": 183312, + "16": 1248, + "2": 38016, + "24": 1248, + "3": 23040, + "32": 1248, + "4": 10848, + "40": 1248, + "48": 1248, + "5": 15072, + "56": 1248, + "6": 1968, + "7": 480, + "8": 1344 + }, + "T": { + "1": 1008, + "129": 624, + "17": 1248, + "2": 432, + "25": 1248, + "3": 480, + "33": 1248, + "4": 11568, + "41": 1248, + "49": 1248, + "5": 1584, + "57": 1248, + "6": 48, + "65": 1248, + "7": 672, + "8": 1584, + "9": 25872 + } + }, + "rational_layout": "0ce3f9e383fc4bfdd22612b9e34fc9759d97204215937b82d23aec2cedd9b8ee", + "rational_word": "38d2b3a2311a9ba5fee091cc7aa204c7ed95651aec95d75184b2391df090cbfb", + "rejected_controls": [ + "terminal debit minus one", + "uniform per-source worst case at infinity", + "one additional paid BIT rank one", + "one additional paid rational rank one", + "supplied BIT cap equals signed tested point", + "BIT cap below effective requirement" + ] +} diff --git a/research/p104-paired-source-complements/SOURCES.json b/research/p104-paired-source-complements/SOURCES.json new file mode 100644 index 0000000000..1841abb3a0 --- /dev/null +++ b/research/p104-paired-source-complements/SOURCES.json @@ -0,0 +1,353 @@ +{ + "schema_version": 1, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "files": [ + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + }, + { + "path": "research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md", + "usage": "input", + "git_blob": "4badb40f0919c515823cb07e44c6470d4d6469ca", + "sha256": "4cb32f6b8e388ecf6ed41b5bbdeeb4539cb40c8424f194974afea58f7e0921e8" + }, + { + "path": "research/p104-shared-native-helper-splits/retained/compiler/PROOF.md", + "usage": "input", + "git_blob": "f5ef0d2e8289adfb6c5e73c4b58970da462d7df2", + "sha256": "95cc9e31bc030ec94b04decddcca2d28ee98cfec0ca7803b54666b2b76a5c9ab" + }, + { + "path": "research/net-tax-rank-compiler/WEIGHTED-EXITS.md", + "usage": "input", + "git_blob": "c0f6469d31d070e3ab73664b35633305f21fc5d6", + "sha256": "28e0308f315a583282291fa01998d53a874b4b7e3073cacc3ddbb38c5a7f66c7" + }, + { + "path": "research/net-tax-rank-compiler/SHIFTED-LOG.md", + "usage": "input", + "git_blob": "48a70bcebaa0b31c717de0408846e1238f56a7c3", + "sha256": "04eba2e0a2a6cdd4ee512254142cbe45e647a73b66ad67b2c1c0a62e0883238a" + }, + { + "path": "research/p104-shared-native-helper-splits/retained/compiler/bit-audit/retained/DELAYED-COVER-BRIDGE.md", + "usage": "input", + "git_blob": "a58774e237c9362869a60a22bda35be09fb85872", + "sha256": "9731b93026717f5fa15851e3633cbb4bdc76eba2bffb9d6b4a3b69f7dd502443" + } + ], + "offline_predecessor": { + "repository": "CrocSwap/integer-mult-bounds", + "pr": 8029, + "head": "c3837013dd7e2c50f6c3065c8f99d52a33b617bb", + "path": "research/p104-paired-delayed-cover", + "tree": "0c8d9b28bde3ebe6887d10faed33553bb735ca05", + "archive": "predecessor-8029.tar.gz", + "archive_sha256": "0384c7eff13aa6ba7ea547ea0cff33cc9bf94d3b95c23904a3978e4e15610e91", + "files": { + "PROOF.md": { + "mode": "100644", + "git_blob": "c1714f1b0f266ebf3f3edf70aff1b55f96e83fd3", + "sha256": "195f9f7bd22990b71debad05ca3cf2da71048d88705f9664a8fe907be17665c3", + "size": 6040 + }, + "README.md": { + "mode": "100644", + "git_blob": "223f5129f09cfda2f367e7feccfc148c6efad564", + "sha256": "5a02eee3c6eae0cd30d4e7abb63ff7110c72d1a62f9a87b4b090453bc302e557", + "size": 9054 + }, + "SOURCES.json": { + "mode": "100644", + "git_blob": "87b8f29db2935d365c887a5b27fefd5c953d13aa", + "sha256": "7c17222f6168f6ae28e74c639d9affb70b547b1060ad1b6ecc465ad9b75a6bad", + "size": 9009 + }, + "TASK.json": { + "mode": "100644", + "git_blob": "3a200251e19e47d715b2a7c6a6c7d24b9b7e70a7", + "sha256": "52e96f0a0729733712ac3abcb0c589cbbacfd4ca72b6649106aec18a1406f400", + "size": 5626 + }, + "VERIFY.json": { + "mode": "100644", + "git_blob": "7a0c86e970d230bbc16ff364691efdaf66b51a7a", + "sha256": "4b1329270a0988f37cdf394c62cfaebcab95a0c7a9c5b3b26003e0dd7eac2a28", + "size": 775 + }, + "application/RESULT.json": { + "mode": "100644", + "git_blob": "081499a6b3ee6fe90649cf059a7377c79ebe29ec", + "sha256": "419d4bdfb95c4484d0ddc81f34c89ee45bdefc0955a85dd496c1043396260e37", + "size": 1563 + }, + "application/replay.py": { + "mode": "100644", + "git_blob": "284e3b4624c893f71905626a0989ff7e65ee7da9", + "sha256": "d6dd8f406e4e09377b2539a744ada909d3ab44baefdec17d0af450d6e867f051", + "size": 15472 + }, + "independent/ACCEPT.json": { + "mode": "100644", + "git_blob": "39e40fd521dd8e3dbed001ee61378c1dc25d68de", + "sha256": "babc9a23a60da353403b4d6f0a3a346c0523a42645618890a592929747fb019a", + "size": 1613 + }, + "independent/PRICE.json": { + "mode": "100644", + "git_blob": "cafd8b24b02a26ea1ef03fb1aaa982e374dec224", + "sha256": "5c723ea9c6b085b6e0aa792f34cfa64daed551a9bf2f629efc54d219008596d2", + "size": 4268 + }, + "independent/PROOF.md": { + "mode": "100644", + "git_blob": "7a04070e748e4c5b0cb0322bb817a891536742ca", + "sha256": "3c21824184ca0073b0a04228a6f2bbc40ecd5c27f625fc501d247cf22f1a396a", + "size": 6729 + }, + "independent/accept.py": { + "mode": "100644", + "git_blob": "9e4b37ca10021346d5c96e3e62911d24e058ced6", + "sha256": "e035308debb5b873af0709abaf8f5374b0d6c1e02ea43ce3e79876ca15ffcd22", + "size": 8379 + }, + "independent/price.py": { + "mode": "100644", + "git_blob": "42982492722eb99ad08cbe677e2e5e250d970956", + "sha256": "965cd78a97eb9c3514897858132c6ea66675a0799eafa8c4ad6490941bf23889", + "size": 6289 + }, + "normalized/PROOF.md": { + "mode": "100644", + "git_blob": "e73d90b94d1a5c7569de243b95584cdd09f5e84d", + "sha256": "512a000ecb693b983c019d6b18103c9e485bc00c32ba01105b342de28b8cbdc6", + "size": 4999 + }, + "normalized/application/RESULT.json": { + "mode": "100644", + "git_blob": "6d665a00b2b3d608dd9dc2f7758bd2e1e5804e8a", + "sha256": "9b00a17913efb76995b01c7b75f5b00aab394a0531e26490ab02a5940adcac3c", + "size": 1837 + }, + "normalized/application/replay.py": { + "mode": "100644", + "git_blob": "ef230597076392577a768675d672fa4b9ca426cf", + "sha256": "0f4ad0cc66acbbea9169c68e62ef7a2582bef2d23abb87d40b6319e55fe5cfef", + "size": 8730 + }, + "normalized/independent/ACCEPT.json": { + "mode": "100644", + "git_blob": "ccff04c6843e85895ce30485e14094461d70bde1", + "sha256": "35481cf9a929a3dd137a9e63134b7e97ee7c5408d4e675a3e8ad67b16d9a7b71", + "size": 2142 + }, + "normalized/independent/PRICE.json": { + "mode": "100644", + "git_blob": "a1526acbf98df8c813b5e6bd3753413fda0d353b", + "sha256": "523d6dc93a7cd34bf6183a66d03b624ab2f0dfcf18b7e95032b7d0ab695fa24f", + "size": 5795 + }, + "normalized/independent/PROOF.md": { + "mode": "100644", + "git_blob": "485c8c9f3094f490a58728979799b12158a341b5", + "sha256": "9ddf0acb2ebf2c16acca3cc386debdc6bc4d974ea5ce84324129d6c26cea1f6e", + "size": 6490 + }, + "normalized/independent/accept.py": { + "mode": "100644", + "git_blob": "b59a4bbab4eb3e3da103bc88717566957526c58c", + "sha256": "6efeab5b8c070c0813d2ac05479be40d77d37b769c059937d7c7bc4873ad21dc", + "size": 8787 + }, + "normalized/independent/price.py": { + "mode": "100644", + "git_blob": "0b3d652f96718f68f515d3a238f1f5427bc6a93d", + "sha256": "bda85389c988e251acbbe295c31a685b8dbff45ea81cad77b64a711d26a3dfb1", + "size": 6601 + }, + "normalized/primary/PRICE.json": { + "mode": "100644", + "git_blob": "0198c55dc44df68d756cc365227d15dae0fca889", + "sha256": "ef3f829625b03c09f1cdff2440ef92b9869b4cb4d0821bf9c0fd5910c9d6ad3c", + "size": 3910 + }, + "normalized/primary/price.py": { + "mode": "100644", + "git_blob": "82a374dbbfa77c399a4458fb516aa6381628761b", + "sha256": "3b43cc7e355eaf5df6743b392c48c8dfedb55da9642c373f50c81cd97537c39c", + "size": 6416 + }, + "peer-8027.tar.gz": { + "mode": "100644", + "git_blob": "df2437e62939ffae24b3e722811d4f58e9db7a0f", + "sha256": "8d376948e23de166f8f015cfc7d5ba28d0ce6732ae865ff129905c2a29fa3fa0", + "size": 2756720 + }, + "primary/PRICE.json": { + "mode": "100644", + "git_blob": "4e00992b4c541bb2662a764836a16ddc94def2a7", + "sha256": "228b7c47572c9b1c7568db2f59248af454296a1e3ad094da585073bbd594f5cb", + "size": 5629 + }, + "primary/price.py": { + "mode": "100644", + "git_blob": "ebbc0d424272c7ce85adcfb5c801e5b258219c95", + "sha256": "fcdafc3a397263b125a02f89aeefe4613a2fe9565dd9f3cbbc6f81785afd63b6", + "size": 8589 + }, + "verify.py": { + "mode": "100644", + "git_blob": "fb9943fbd608609421755cdc063059557468150a", + "sha256": "100b3f5500a03d098b73d604577979d785fdce2806c5106d74e4d0cf631fc25e", + "size": 8631 + }, + "weighted/PROOF.md": { + "mode": "100644", + "git_blob": "8ab1c40664e6d725ef679b5783ad0e12de968d9a", + "sha256": "c70d925bb6caa04f620761c3149e79083a906ead5dcc7a1e204cdcd1d365fb16", + "size": 7722 + }, + "weighted/application/RESULT.json": { + "mode": "100644", + "git_blob": "05e511c9954ee1f09f9a9f8c4ca0f5fbae795b5e", + "sha256": "65473eba091d40551586a3e078bb6c4155813ba64e7207e0698765a2e738da0d", + "size": 1850 + }, + "weighted/application/replay.py": { + "mode": "100644", + "git_blob": "f348fe663445960f76a51d16ab61083cde291408", + "sha256": "ef56afecf3cbd7f972ac066e3f2b55a72b0259d7465028c23e8f808d02a67926", + "size": 10811 + }, + "weighted/controls/FINITE.json": { + "mode": "100644", + "git_blob": "22e50963d5c11338031c8343a69cbdcb8fda23cb", + "sha256": "922f50e004b2844054c2be938df676412f7ce6c1963af96f9e231cc1fd016987", + "size": 4376 + }, + "weighted/controls/law.py": { + "mode": "100644", + "git_blob": "36c5b34532a106776589739800c00fef9de44150", + "sha256": "e0961b875a7f4db9e53f4f2910cad969ea4bb86f0f453ec6ca13a2cb1d0e7559", + "size": 8264 + }, + "weighted/controls/mean.py": { + "mode": "100644", + "git_blob": "795270039fb9751e83fd8726d6a2f78804d83b52", + "sha256": "947b6ab05661f8f32df1240e7470cb853e631b0245e1e9aa8a762b333c217dbc", + "size": 5647 + }, + "weighted/independent/ACCEPT.json": { + "mode": "100644", + "git_blob": "8c776ce409e1e105e5f401db4fd23a91a9b28bc0", + "sha256": "32d40619c37fdcf91f63930e3ebdf1ec0e19210f91e4f1a74617fcc1b3ada10c", + "size": 3735 + }, + "weighted/independent/PRICE.json": { + "mode": "100644", + "git_blob": "06b7bf0a312c9d7f33331b3b87c26dbed11009e5", + "sha256": "0f43bebea0a8a4a258e14ea7495ed9d2bdbfe8f952dafd423d7e1651b4807332", + "size": 4207 + }, + "weighted/independent/PROOF.md": { + "mode": "100644", + "git_blob": "5cf44c3560348e9eec6fbf695c7c093016ce42b5", + "sha256": "85ecdacd9af9dc5b0c662cb914b92b1ca2196f50e925fe2d44ddf169723285e8", + "size": 5952 + }, + "weighted/independent/accept.py": { + "mode": "100644", + "git_blob": "53f12b3b23847e2886aec12be3548dab407d33a6", + "sha256": "1e6518e266b01d5124eaa71fee4344a28ea07d6655a50376d7779699e2218073", + "size": 11536 + }, + "weighted/independent/price.py": { + "mode": "100644", + "git_blob": "a8d9ce6cf53d32afea5a3a7ec9ba56b2456b81e6", + "sha256": "9341b4dea42f8dd17668e44ff2b8dfc096ff42cb0b87c09b086b6be9ecb6b761", + "size": 5951 + }, + "weighted/moment/PROOF.md": { + "mode": "100644", + "git_blob": "7e04077af9cb67e1528da8b025b55a758d74aab4", + "sha256": "0a52b9fc6411c1bbedf32808d233a4061f9a5ba37d11ad3d86401269db61cad1", + "size": 7356 + }, + "weighted/moment/application/RESULT.json": { + "mode": "100644", + "git_blob": "ac9d77bb8804b00464cca10457726902b18b8df6", + "sha256": "0fed060d852e6e37c1ff4ffe514d5765c9efdd6e0a3a24f6bc59cbbdcc7b0d79", + "size": 1889 + }, + "weighted/moment/application/replay.py": { + "mode": "100644", + "git_blob": "fa3d22182173da718b492c2eaa7cf142db128f8c", + "sha256": "0512195735079878a01674ed7fc92fc11e033570945df66e4a3f30419b0a0061", + "size": 10684 + }, + "weighted/moment/independent/ACCEPT.json": { + "mode": "100644", + "git_blob": "cd60835b3df86d2b95b29c3fd180537630422b97", + "sha256": "0b179d16461707f2ec6b0ea02149b1dfef0f667a051da475fa400713a01f6377", + "size": 3058 + }, + "weighted/moment/independent/PRICE.json": { + "mode": "100644", + "git_blob": "21bfa1936b28e57fcb517ff199f75b3b89ad2a91", + "sha256": "5c9d36bad5d7fca162d135e9d8658ab408a6d89edd262be167747cc164c12229", + "size": 4131 + }, + "weighted/moment/independent/PROOF.md": { + "mode": "100644", + "git_blob": "989eaee891f054a60173cf14ab7c013329783d3f", + "sha256": "e4982f93bf1240f2550054dda591924ef78567fb52658da31a1344f85c31d075", + "size": 6260 + }, + "weighted/moment/independent/accept.py": { + "mode": "100644", + "git_blob": "8c35e86d5f74c08cee04bbee46681169af8e9a86", + "sha256": "fb8479dbbd7276b28946b731d3fe79b8914949c5851f569ebe72ef204631b481", + "size": 6781 + }, + "weighted/moment/independent/price.py": { + "mode": "100644", + "git_blob": "29feebac70fca01dfd4649dcf13fcd70c964e9a3", + "sha256": "2118d4914a5793cd804b6c31a4ad7ae91743cc7c331ffe19fb0ac62a23d679bc", + "size": 6161 + }, + "weighted/moment/primary/PRICE.json": { + "mode": "100644", + "git_blob": "56386677f6d8984db3cc010ab9bea5e76547bd9e", + "sha256": "8c09bcccce796c9b01efed5d9363af8fe6b8719f588eb6de5148933411a8850d", + "size": 10134 + }, + "weighted/moment/primary/price.py": { + "mode": "100644", + "git_blob": "9de42dfbfccfb2ff87f0d7f1fd2fdfafa857539a", + "sha256": "6d1ede7fdee9867b18132b023126b96f002dc15f87682936c1e158c30b0c5cf7", + "size": 8973 + }, + "weighted/primary/PRICE.json": { + "mode": "100644", + "git_blob": "ac64f9fa0cc0f06f8037053947c851b976635393", + "sha256": "4acbb38393550df5b046f125328a67bc344fe592a107556145ac315acf083a34", + "size": 5532 + }, + "weighted/primary/price.py": { + "mode": "100644", + "git_blob": "a230b846c4197d604542a9aad6eed4003fde82a0", + "sha256": "dd1790feeed03c6dd6b3df5c32f60416f814fe67cc2b6cac75d301c2c3702a5a", + "size": 9528 + }, + "weighted/verify.py": { + "mode": "100644", + "git_blob": "e2dfc45aa3a134e6ce4a647b23293c3d5c74b547", + "sha256": "f9318133b05f4d5adedbc47de1c94c7ffe4d24d66051d539a8367afc91bdbd50", + "size": 6840 + } + } + } +} diff --git a/research/p104-paired-source-complements/TASK.json b/research/p104-paired-source-complements/TASK.json new file mode 100644 index 0000000000..c698ff4a7a --- /dev/null +++ b/research/p104-paired-source-complements/TASK.json @@ -0,0 +1,82 @@ +{ + "schema_version": 1, + "task_id": "uniform-transfer-audit", + "priority_revision": 8, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "original_card": { + "id": "uniform-transfer-audit", + "question": "Can one of the selected record's five inherited assumptions be proved at its actual caller?", + "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" + ], + "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": "Identify the proposition and what would change downstream; do not equate a finite replay with a universal proof.", + "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": "Choose one assumption ID (native_all_columns, owned_erasure, compiler, precision_tape, analytic_recovery), one quantified implication and exact dependency closure. Check current handoffs, including #5625 row reentry and #5707 root-prefix lowering, without treating their partial scope as the whole theorem. Prove or falsify that implication with a caller-bound argument; stop at the chosen obligation. Finite tests or root digits do not discharge an all-size statement.", + "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": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ], + "existing_checks": [ + { + "scope": "PR #4100: proposed unconditional construction and finite checks, without independent acceptance.", + "evidence": "research/unconditional-batched-crt/README.md", + "remaining": "Independent proof audit of one caller-bound all-size implication; all other premises remain explicit.", + "status": "author-checked", + "source_commit": "337d04939571a637aeab54a0f58f54fde811663a", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "scope_change_reason": "Apply the retained compiler audit to the fixed paired #8029 application and prove a weighted source-complement bound for its literal whole-job flow.", + "actual_scope": "Can the actual paid-label and source-rank distributions increase the signed saving at the fixed paired rank and prime?", + "bottleneck_link": "The four-stage ordinary BIT supplier binds the complete signed application. The fixed-carrier proof uses a conservative trial and a uniform earliest-source complement loss.", + "stop_rule": "Authenticate the paired source. Check a strictly higher product trial in two arithmetic engines, a source-bound power-23 weighted majorant at shift 1300, all 320 finite rank cells and the explicit infinite tail. Rebuild both native suppliers and the full signed application including the negative controls.", + "outcome": "completed", + "evidence": "Proof in README.md and PROOF.md, deterministic directed and signed replay in RESULT.json.", + "author": "Clear1nsight", + "ai_assistance": "OpenAI Codex materially assisted the proof, implementation, verification and write-up.", + "open_questions": [ + { + "question": "Can a physically changed paired word clear the raw BIT upper crossing at the present carrier?", + "why_it_matters": "The remaining gap for this fixed completed application is only a few trillionths, and improvements to a loss bound alone cannot outrun the raw price of this histogram.", + "first_step": "Price a changed literal paid rank in both supplier engines, then replay its dirty and inverse operator, source catalogue, ordinary stock and signed application.", + "blocked_by": "A checked lower paid invoice with all affected restoration and precision controls." + } + ] +} diff --git a/research/p104-paired-source-complements/VERIFY.json b/research/p104-paired-source-complements/VERIFY.json new file mode 100644 index 0000000000..4c056b4dd9 --- /dev/null +++ b/research/p104-paired-source-complements/VERIFY.json @@ -0,0 +1,25 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md", + "research/p104-shared-native-helper-splits/retained/compiler/PROOF.md", + "research/net-tax-rank-compiler/WEIGHTED-EXITS.md", + "research/net-tax-rank-compiler/SHIFTED-LOG.md", + "research/p104-shared-native-helper-splits/retained/compiler/bit-audit/retained/DELAYED-COVER-BRIDGE.md" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 420, + "checks": "Authenticate the complete #8029 tree and #8027 closure, evaluate all source and exit bounds, rebuild the actual 36-call BIT and 48-call rational programs, and independently check the four paid stock stages and signed outer application." + } + ] +} diff --git a/research/p104-paired-source-complements/certificate.py b/research/p104-paired-source-complements/certificate.py new file mode 100644 index 0000000000..306167ddd1 --- /dev/null +++ b/research/p104-paired-source-complements/certificate.py @@ -0,0 +1,273 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Certify the fixed-rank successor using only measured integer rank inventories.""" +from decimal import Decimal +from fractions import Fraction as F +from functools import cache +from math import factorial + +from interval import I + +V = 768 +H = 299_610_000_000_000 +P = 23 +SHIFT = 1300 +TRIAL = F('0.003890115286593') +T = 1 - TRIAL +OLD_TRIAL = F('0.003890115276594') +OLD_CLAIM = F('0.00389011527141') +OLD_CAP = F('0.003890115271496') +COVER = F(1, H * 2**38) +CHILD = 210 +ROOT = F('3.23') +DEPTH = 10 +BINS = 32 +SEED = F('.00385248') +TICK = F(1, 10**14) + + +def require(yes, name): + if not yes: + raise ValueError(name) + + +@cache +def ln(r): + return I.point(r).ln() + + +@cache +def power(r, exponent): + return (ln(r)*exponent).exp() + + +def real_power(log_r, exponent): + return (log_r*exponent).exp() + + +def total(hist, exponent): + return sum(count*power(rank, exponent) for rank, count in hist.items()) + + +def positive_hist(raw): + hist = {int(rank):int(count) for rank, count in raw.items()} + require(len(hist)==len(raw) and all(str(k) in raw and k>0 and n==raw[str(k)] and n>0 + for k,n in hist.items()), 'positive rank histogram') + return hist + + +def ceil_at(x, places): + return F(-(-(F(x)*10**places)//1), 10**places) + + +def decimal(q, places): + k = F(q)*10**places + require(k.denominator==1 and 0<=k<10**places, 'fixed-point output grid') + return f'0.{int(k):0{places}d}' + + +def four(covered, rational): + previous = SEED + stages = [] + for _ in range(4): + bound = (249*covered+previous)/250 + admitted = F(((bound*10**15)//1)-1, 10**15) + require(previous0, 'tilted anchor contains its mean') + anchor_alt = I.point(1)-var/(I.point(distance)**2) + require(anchor_alt.lo>0, 'tilted anchor has positive mass') + weight = T-tilted + anchor = (z_alt/z_t)**V * real_power(j,weight*left) * anchor_alt + raw_bad = real_power(j,weight*(low-left))/anchor_alt + # Each R>J has full slabs of size J and at most one sub-J remainder. + # For U<=J^upperCHILD, 'small and middle cutoff capacity') + # On eligible raw ranks use exponent t+C=1 in the numerator. Exact one-letter + # rank mass and a fresh positive tilt pay the whole high tail. + z1 = sum(r*n for r,n in paid.items()) + tail = (total(paid,F('1.1'))/(power(15,F('.082'))*z1))**V + hight = (I.point(z1)/z)**V * (I.point(1)-tail)/(I.point(1)+2*rho**V) + require(hight.lo>CHILD, 'large cutoff capacity with the full split denominator') + return {'factor':CHILD,'small_cut_factor':low.bounds(),'middle_cut_factors':[a,b], + 'upper_rank_mass_tail':tail.bounds(),'large_cut_factor':hight.bounds()} + + +def convolve(a,b): + return [sum(a[i]*b[d-i] for i in range(d+1)) for d in range(len(a))] + + +def poly_power(poly,n): + result = [I.point(1)]+[I.point(0)]*(len(poly)-1) + while n: + if n&1: + result=convolve(result,poly) + n//=2 + if n: + poly=convolve(poly,poly) + return result + + +def derivative_coefficients(poly,n): + # If B=A^n and A(0)=1, A B'=n B A'. Here n=768>P, so + # all coefficients of this independent recurrence are nonnegative. + require(len(poly)<=n, 'positive derivative certificate') + out = [I.point(1)] + for d in range(1,len(poly)): + out.append(sum(poly[i]*out[d-i]*((n+1)*i-d) for i in range(1,d+1))/d) + return out + + +def paid_norms(paid,z,rho,j): + x = [ln(r)/j for r in paid] + weights = [n*power(r,T)/z for r,n in paid.items()] + letters = [I.point(1)]+[sum(w*xi**a for w,xi in zip(weights,x,strict=True))/factorial(a) + for a in range(1,P+1)] + raw = poly_power(letters,V) + other = derivative_coefficients(letters,V) + require(all(max(a.lo,b.lo)<=min(a.hi,b.hi) for a,b in zip(raw,other,strict=True)), + 'independent raw moment evaluations overlap at every degree') + eps = 2*rho**V + completed = [I.point(1)]+[I.point(min(a.hi,b.hi)) + I.point(eps.hi)/factorial(i) + for i,(a,b) in enumerate(zip(raw[1:],other[1:],strict=True),1)] + bounds, exact, iterated = [], [], [I.point(1)]+[I.point(0)]*P + for q in range(1,DEPTH+2): + iterated = convolve(iterated,completed) + doubled = poly_power(completed,q) + a,b = iterated[P],doubled[P] + require(max(a.lo,b.lo)<=min(a.hi,b.hi), 'independent completed moment powering agrees') + moment = I.point(min(a.hi,b.hi)) * F(factorial(P),q**P) + norm = ceil_at((moment.ln()*F(1,P)).exp().hi,8) + require(F(moment.hi)I.point(ROOT).hi, 'completed target mass improves root complements') + ratio = (z_t/z_p)**V + u = F(1,100) + decay = (power(16,u)*total(targets,T-u)/z_t)**V + require((ratio*decay).hi<1, 'root-source fraction bound decreases with successive heights') + h = ln(2)*SHIFT + eta = real_power(m,-TRIAL)*T + a, b, beta = h/j,(h+m)/j,k/j + norms, moment = paid_norms(paid,z_p,rho,j) + worst = (F(0), None) + + def root_fraction(g,f): + return min(Decimal(1), (ratio**(g+1)*decay**g*real_power(k,u*f)).hi) + + def budget(g,lower,upper): + cost = ((a+norms[g]*(g+1))/(b+beta*(g+lower)))**P + root = real_power(k,TRIAL*(1-upper))*ROOT + if g==0: + available = root + else: + # S>=E and S_root/S<=min(1,S_root/E). If the root bound is better + # than the child bound, ignore this extra root credit. + discount = max(Decimal(0),(I.point(CHILD)-root).hi) + available = I.point(CHILD)-I.point(root_fraction(g,upper))*discount + total_capacity = eta*available + return cost,total_capacity + + for g in range(DEPTH): + for cell in range(BINS): + lower,upper=F(cell,BINS),F(cell+1,BINS) + cost,capacity=budget(g,lower,upper) + require(cost.hiworst[0]: + worst=ratio_hi, [g,cell,str(cost.hi),str(capacity.lo)] + root_tail = root_fraction(DEPTH,F(1)) + large_capacity = eta*(I.point(CHILD)-I.point(root_tail)*(I.point(CHILD)-ROOT)) + at_depth = ((a+norms[-1]*(DEPTH+1))/(b+beta*DEPTH))**P + limit = (I.point(norms[-1])/beta)**P + require(max(at_depth.hi,limit.hi)eta.hi, 'uniform per-source-capacity negative control at infinite height') + require(((I.point(1)+m/h)**P).lo>real_power(m,TRIAL).hi, 'all ordinary base ranks by logarithm concavity') + return {'root_factor':root_unit.bounds(),'root_ray_ratio':ratio.bounds(),'root_tail_factor':decay.bounds(), + 'root_fraction_from_height_10_upper':str(root_tail),'eta':eta.bounds(), + 'finite_shape_cells':DEPTH*BINS,'worst_finite_cell':worst[1], + 'worst_finite_margin_ratio_upper':str(ceil_at(worst[0],10)), + 'tail_capacity_lower':str(large_capacity.lo),'tail_height_10_upper':str(at_depth.hi), + 'tail_infinite_upper':str(limit.hi),'child':child,'moments':moment} + + +def certify(paid_json,targets_json,binary_raw,rational_raw): + paid,targets=positive_hist(paid_json),positive_hist(targets_json) + require(sum(paid.values())==104904 and sum(targets.values())==18906 and max(paid)==56 and max(targets)==127, + 'complete literal paired inventories') + require(8**512*64**256==16**V and targets[8]>0 and targets[64]>0, 'attained retained productive floor') + require(tuple(map(F,binary_raw))==(F('.003890115286594'),F('.003890115286595')) and TRIAL2*H*P, + 'adjacent terminal and derivative tail controls') + covered=TRIAL-F(debit,H)-COVER + cap,claim,rows=four(covered,F(rational_raw[0])) + old_cap,old_claim,_=four(OLD_TRIAL-F(1524,H)-COVER,F(rational_raw[0])) + require(old_cap==OLD_CAP and old_claim==OLD_CLAIM, 'complete #8029 fixed predecessor price') + shape_upper=F(binary_raw[1])-F(1524,H) + require(OLD_CLAIM0>engine.moment(bad,TRIAL)[1], 'directed trial and one-added-BIT-call control') + independent=engine.compiler(paid,productive,TRIAL) + require((independent['H'],independent['product_exponent'],independent['cutoff'],independent['productive_floor'], + independent['ambient_base'])==(H,768,15,16,134), 'independent rational finite compiler and fixed dimensions') + require(F(orig['delayed_cover_debit'])==COVER and old['cover_prime_condition']== + 'odd q > 2^45*N^5 avoiding the frozen finite catalogue witnesses', 'original same-prime fallback and stock') + require(F(cert['strict']['normalized_strict_gap'][0])>0 and + F(old['tested_saving'])==F('.003890115276594'), 'revised separated strictness at the original word') + cap, rows=engine.bootstrap(SEED,F(cert['covered']),[stage['admitted'] for stage in cert['stages']]) + require(cap==F(cert['cap']) and len(rows)==4, 'complete paid BIT cap') + for original,candidate in zip(rows,cert['stages'],strict=True): + edge=F(candidate['bound']) + require(original['claim']==candidate['admitted'] and F(original['previous'])==F(candidate['previous']) and + F(original['envelope'][0])<=edge<=F(original['envelope'][1]) and F(candidate['slack'])>0, + 'independent four-stage price and margins') + return cap, {'independent_rational_compiler':independent,'new_margin':engine.decimal_interval(margin), + 'bootstrap_stages':rows,'original_stock':old['stock'],'original_cutoff_prime':old['cover_prime_condition'], + 'literal_word':base['binary_word'],'native':native} + + +def replay(work): + previous=restore_tree(work/'predecessor') + old_verify=module('p104_verified_predecessor',previous/'verify.py') + old_verify.unpack(work/'peer-export') + adapter=module('p104_verified_adapter',previous/'application/replay.py') + require(adapter.HEAD==PAIRED,'paired immutable source head') + old_primary=read(previous/'primary/PRICE.json',adapter.PRIMARY) + old_independent=read(previous/'independent/PRICE.json',adapter.INDEPENDENT) + old=read(previous/'weighted/moment/application/RESULT.json',PREVIOUS_REPLAY) + old_accept=read(previous/'weighted/moment/independent/ACCEPT.json',PREVIOUS_ACCEPT) + require(old_accept['replay_sha256']==PREVIOUS_REPLAY and old_accept['cap']==old['cap'] and + F(old['cap'])==OLD_CAP and F(old['claim'])==OLD_CLAIM and old_accept['claim']==old['claim'], + 'sealed complete comparative application and independent check') + peer=adapter.peer_copy(work/'peer-code',work/'peer-export') + base=peer.read('APPLICATION.json') + require(adapter.certify(old_primary,old_independent,base)==F('.003890115176583'),'predecessor cover control') + native=base['binary_native'] + certificate=certify(native['paid_all'],native['productive_all'],base['binary_raw'],base['rational_raw']) + print('PASS_SOURCE_COMPLEMENTS_AND_PAID_MOMENTS',certificate['terminal_debit_numerator'],certificate['cap'],flush=True) + package=peer.source_tree(work,base) + original=adapter.normalize(adapter.binary(peer,work,package,base,old_primary)) + cap,bit=repriced_bit(sys.modules['binary_price'],original,base,certificate) + print('PASS_LITERAL_36_CALL_BIT_STOCK_AND_NEAR_CROSSING_TRIAL',certificate['C'],flush=True) + old_app=dict(base,binary_ordinary=old['cap'],claim=old['claim'],outer=old['outer']) + app=dict(base,binary_ordinary=certificate['cap'],claim=certificate['claim']) + word,layout,physical=peer.rational_application(work,package,app,cap) + physical=adapter.normalize(physical) + invoice={'T':physical['application']['invoice']['targets'],'P':physical['application']['invoice']['paid']} + require(invoice==old_accept['invoice'] and physical['caller']==old['caller'] and + physical['caller_census']['calls']==base['rational_calls']==48 and + old['source_archive']==base['source_archive'] and old['source_count']==base['source_count']==134, + 'unchanged signed rational invoice, route and source closure') + outer=adapter.outer_prices(peer,work,old_app,app,physical) + app.update(H=outer['H'],outer=outer['outer']) + require(old['premises']==app['premises'] and len(app['premises'])==5, 'five named inherited contracts') + peer.audit(work,package,app,cap,word,layout,physical) + independent=runpy.run_path(str(previous/'weighted/independent/accept.py')) + gate=independent['signed_gate'](work/'peer-export',base,invoice,old_app,app,physical) + require(outer['outer']==gate and gate['BIT_just_below_effective_rejected'] and + F(certificate['tested'])==F(app['claim'])+7*TICK