diff --git a/research/p104-a2-paid-rank-exchange/CLAIM.json b/research/p104-a2-paid-rank-exchange/CLAIM.json new file mode 100644 index 0000000000..d18c1e25d9 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/CLAIM.json @@ -0,0 +1,35 @@ +{ + "status": "LOCAL-ONLY author-checked conditional improvement; ready for independent scientific review", + "kappa": "155229/50000000", + "decimal": "0.00310458", + "previous_pr": 5627, + "previous_kappa": "155220273/50000000000", + "gain": "8727/50000000000", + "gain_decimal": "0.00000017454", + "raw_crossing": [ + "77614664639/25000000000000", + "310458658557/100000000000000" + ], + "raw_headroom": [ + "164639/25000000000000", + "658557/100000000000000" + ], + "local_paid_delta": { + "2": 1, + "3": -1, + "5": -1, + "6": 1 + }, + "target_delta": {}, + "full_local_invocations": 18, + "complete_paid_calls": 66546, + "complete_productive_targets": 12958, + "rank_mass_surplus": 760, + "scope": "One literal A2 rewrite on the exact PR5627 word under the unchanged five framework assumptions and helper-endpoint contract. Complete uniform word and rounded multiplier are not materialized. No formal-kernel or independent human verification.", + "publication": { + "published": false, + "selected": false, + "hosted_ci": "not run" + }, + "reproduce": "python3.12 -B scripts/research_package.py --package research/p104-a2-paid-rank-exchange" +} diff --git a/research/p104-a2-paid-rank-exchange/INDEPENDENT-AUDIT.json b/research/p104-a2-paid-rank-exchange/INDEPENDENT-AUDIT.json new file mode 100644 index 0000000000..226ea3e649 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/INDEPENDENT-AUDIT.json @@ -0,0 +1,66 @@ +{ + "status": "PASS_INDEPENDENT_A2_IDENTITY_AND_PRICE_AUDIT", + "source_sha256": "162e6f13a6e3805517946309bd6247eaa45b337ab9c39621806b254b415075ec", + "candidate_sha256": "b2ab778bdd5d68c62df0b51c12dc33fde93ad89213639a8e7da23e4b9cf6c3dc", + "old_gates": [ + [ + "ADD", + 388, + 715, + "-4", + 825 + ], + [ + "ADD", + 340, + 388, + "1", + 825 + ] + ], + "new_gates": [ + [ + "ADD", + 340, + 715, + "-4", + 396 + ], + [ + "ADD", + 340, + 388, + "1", + 825 + ], + [ + "ADD", + 388, + 715, + "-4", + 127 + ] + ], + "old_itinerary_dimensions": [ + 1, + 6, + 9 + ], + "new_itinerary_dimensions": [ + 1, + 3, + 9 + ], + "paid_delta": { + "2": 1, + "5": -1, + "3": -1, + "6": 1 + }, + "controls": { + "omitted_direct_shear": true, + "omitted_last_shear": true, + "wrong_direct_sign": true + }, + "scope": "Exact three-column scalar identity; only scalar motif replacement; unchanged physical boundaries/owned instructions; strict source frame chain; complete paid-profile delta. Native, physical caller and outer replays supplied separately by root." +} diff --git a/research/p104-a2-paid-rank-exchange/INDEPENDENT-AUDIT.md b/research/p104-a2-paid-rank-exchange/INDEPENDENT-AUDIT.md new file mode 100644 index 0000000000..f690208abf --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/INDEPENDENT-AUDIT.md @@ -0,0 +1,74 @@ +# Independent scoped audit of the P104 A2 exchange + +Prepared for zxv with substantial OpenAI Codex assistance; Apache-2.0. +The transport sidequest supplied the construction. Ali Romman's PR5627 and the +credited P104 scalar/native/helper/controller/compiler lineage remain the source. +The elementary three-shear identity is not claimed as a new general theorem. + +The exact source is PR5627 commit +`ed4dc88a09a7d201971f6603b8c2074e95dd9c32`. The candidate byte hash is recorded +in `INDEPENDENT-AUDIT.json` and was read independently from the proposed word. + +## Exact scalar identity + +Write A=register715, B=register388, C=register340. The old adjacent scalar gates +are B←B−4A, C←C+B, so the final triple is (A,B−4A,C+B−4A). The proposed triple +C←C−4A, C←C+B, B←B−4A has the same final values for every input. The audit checks +all three basis columns over exact rationals. Omitting the direct or final shear, +or flipping the direct coefficient's sign, is rejected. + +After deleting MOVE instructions, the candidate's entire scalar program is exactly +the source program with this two-to-three replacement. All other scalar gates +and their order are unchanged. In particular, all COPY, INIT and CLEAR instructions +and their complete sequence are unchanged. Every initial/final frame, main port, +public/owned inventory and frame table is unchanged. + +## Why different scalar charts do not create a hidden operator assumption + +For every legal chart f, let Φ_f be the actual native chart operator, with its +full phase. Use z_r for a register's value in the common reference coordinates. +The physical field in chart f is Φ_f z_r. At a coframed scalar gate, + + Φ_f z_r + q Φ_f z_s = Φ_f (z_r+q z_s). + +At a paid change a→b, the supplied native map is Φ_b Φ_a⁻¹, so it sends +Φ_a z_r to Φ_b z_r. These two exact identities prove the frame invariant by +induction through the chronological program. The proof never commutes physical +Gaussians through one another, discards a phase, or identifies tensors of sums +with sums of tensors. Owned operations retain their existing checked contracts. + +The root's fresh native replay checks the actual new maps and full phases; +its physical caller and exact price replay are separate evidence. Under those +passed checks and the retained all-column native hypothesis, the invariant +applies at every lifted width. Since both programs have the same scalar endpoint +map and the same endpoint charts, they have the same physical endpoint map. +There is no additional native alphabet, input source, owned-zero rule, address +projection, or normalization assumption in this edit. + +## Exact paid change + +The altered source715 itinerary goes through the strict nested chart chain +598⊂396⊂825⊂127, whose dimensions are1,3,6,9. Previously its contacts required +rank5 then rank3; now they require rank2 then rank6. The independent complete-word +histogram check gives exactly + + Δpaid = H2 + H6 − H3 − H5. + +Every productive target is retained. The rank mass is unchanged:2+6=3+5=8. +For 0 6^t−5^t, + +hence H2+H6= 64: what is left (for the swarm)", + "kind": "discussion-comment", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/3156#discussioncomment-19030442", + "updated_at": "2026-10-19T11:23:36Z", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "act committed bytes/source history and official read-only Git-free exports pass:4012 has16 files, SHA256 f9fd5a7423d8db18dee7512ec59feef1658053da6edba82081cf19e759843ace;4009 has11 including manifest, SHA2569ae5a9d96e1441ea9350ddc339c52ebd57851f5d494c8dd03440322f9fb289cb. Original31170e0 evidence remains preserved. Separate same-team agents reviewed both proofs and the capacity corollary; no independent human or formal-kernel acceptance claimed. Feedback empty at10:46UTC.\r\n\r\nMain20ecf289/revisio" + }, + { + "number": 1740, + "title": "CLAIM: four-register S4 sharing for distinct noncommuting 3-cycles (seed a27baaa7)", + "kind": "discussion-comment", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/1740#discussioncomment-18928637", + "updated_at": "2026-10-14T16:23:21Z", + "matched_terms": [ + "340", + "a2" + ], + "score": 4, + "excerpt": " heads were read back unchanged. Base `94e50883325b387add6891258a986f797b09cacc`; selected-record SHA256 `10b9e340fd8e354a37a0c4813c90e5de1dd42044b5f6aca4a3fc5a42b685fa32`; recorded selector seed `4a495b25dc2389c1fc0b8e95157a0276`, priority revision 3.\n\nRegistered CPython3.12.12 replay passes, including 5,912 permutations, all 576 S4 target pairs and 3,456 omitted-call rejections. The separate no-import checker uses complete Cayley BFS and full formal dirty operators; independent AI-assisted pro" + }, + { + "number": 2023, + "title": "CLAIM: four-role heterogeneous S3 target through six calls (seed 849388c4)", + "kind": "discussion-comment", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/2023#discussioncomment-18930516", + "updated_at": "2026-10-14T17:34:43Z", + "matched_terms": [ + "388", + "a2" + ], + "score": 4, + "excerpt": "are equivalent by idempotent-alphabet conjugation.\n\nPackage `research/bit-s3-four-role-mixed-seed849388/`, exact base `b5d138e63a10da21cc625088d1d953f962f05a8f`, local commit `284019ef`. The final verifier passed on CPython 3.14.7 with 23,040 independent generic factor-basis checks, 240 involution checks, the three-call positive control, 12 direct target replays, eight omission controls and a wrong-target control. Source and package metadata pins pass. Python 3.12 is unavailable locally, so the " + }, + { + "kind": "local-ledger", + "title": "docs/research/pr-ledger.md", + "path": "docs/research/pr-ledger.md", + "sha256": "5c70e3daa28cfc67411ab795e31aa0487cf98ff72a85bbfe1f399e8911c21aac", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "-audit/DISPOSITIONS.json) |\n| [#274](https://github.com/CrocSwap/integer-mult-bounds/pull/274) | shea256 | incorporated | [record 1](../../research/community-reconciliation-next100-audit/DISPOSITIONS.json) |\n| [#275](https://github.com/CrocSwap/integer-mult-bounds/pull/275) | lydakis | partially reviewed | [record 1](../../docs/research/pr-intake-decisions.json) \u00b7 [record 2](../../research/community-efficient1800-audit/DISPOSITIONS.json) \u00b7 [record 3](../../research/community-efficient1900-audit/" + }, + { + "kind": "local-readme", + "title": "research/community-efficient2400-audit/README.md", + "path": "research/community-efficient2400-audit/README.md", + "sha256": "0569ca993ed72af85bc20904fe4b1a2e13632fc70dbfedfb34502133a471abf8", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "| Default-tree archive | [Exact author commit](https://github.com/CrocSwap/integer-mult-bounds/tree/a2d91edcf402f0fa95512c8228ab1259dd65ad45) |\n| [#2951](https://github.com/CrocSwap/integer-mult-bounds/pull/2951) / petalas | Default-tree archive | [Exact author commit](https://github.com/CrocSwap/integer-mult-bounds/tree/d7a9287d6564bae5c7b19e2e3e655c2b578f8b72) |\n| [#2852](https://github.com/CrocSwap/integer-mult-bounds/pull/2852) / dataisfire | held_intake_errors | [Exact author commit](https:" + }, + { + "kind": "local-readme", + "title": "research/community-efficient2500-audit/README.md", + "path": "research/community-efficient2500-audit/README.md", + "sha256": "a0752cfbd9836821e515aa3584673e06db95102e1dba8a478085a2019eb2e1bb", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "w | [Exact author commit](https://github.com/CrocSwap/integer-mult-bounds/tree/5816f94741709e8082e06a2cc9a114ff87411f3d) |\n| [#2295](https://github.com/CrocSwap/integer-mult-bounds/pull/2295) / bitplane | Source archive + reviewed manual workflow | [Exact author commit](https://github.com/CrocSwap/integer-mult-bounds/tree/1bd441f45179a6d042d01a8237ad7faaf4e23a18) |\n| [#2289](https://github.com/CrocSwap/integer-mult-bounds/pull/2289) / bitplane | Source archive + reviewed manual workflow | [Exact" + }, + { + "kind": "local-readme", + "title": "research/community-efficient2600-audit/README.md", + "path": "research/community-efficient2600-audit/README.md", + "sha256": "3e244cb39516d4d60f7c18ba6c78397ecd23dddf48b96c94e2c54c5ebcbad2a4", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "| [Exact author commit](https://github.com/CrocSwap/integer-mult-bounds/tree/4e392e90e3fca8f395e35d6a23644920160a9f0f) |\n| [#1048](https://github.com/CrocSwap/integer-mult-bounds/pull/1048) / flemhhh | held_shared_or_existing_obligation | [Exact author commit](https://github.com/CrocSwap/integer-mult-bounds/tree/07730cd8302c378607259a9ad0efb73e0b57a2f2) |\n| [#897](https://github.com/CrocSwap/integer-mult-bounds/pull/897) / DaysSky | held_shared_or_existing_obligation | [Exact author commit](http" + }, + { + "kind": "local-readme", + "title": "research/fine-endpoint300-t74-k554/README.md", + "path": "research/fine-endpoint300-t74-k554/README.md", + "sha256": "ce5b1991ece5711aad916dd84d693e78a07bb7a4bff707a903c3a33e184f25b8", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "nditional **\u03ba = 0.0016797549561255445213356709939207025769983114385025802954603275201628645482603256388263056561328446322744513169085862209720704481201654121427713006366929567157349625273906229277148454180995537563371124755588139767841405530386745578819565618798006892541712197674874836946756930569827889227573192555649999999997996640490086748910957328658012158594**\n\nThis is **6.5613284483e-91** above PR1839 (jeremykothe2, `836ef6a1`), the current leader. It uses the identical construction: the pi" + }, + { + "kind": "local-readme", + "title": "research/gauge44-barch-t16/README.md", + "path": "research/gauge44-barch-t16/README.md", + "sha256": "42a87c4b8ba75d360412acb1330c3c5d72e37369b1999e4bc4d5dcab9f0cfb14", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "d +3.1404\u00b710\u207b\u2077 over #858 (0.001661642255531641).\n- **Complex lower endpoint** b = 1664722996771957673401/10\u00b2\u2074 (binding). The bit endpoint is unchanged at 1733427039589844234749/10\u00b2\u2074.\n- **Finite reserves:** prefix 72 + 37 + 144 + 144 + 4 = **401 < 512** bits; physical row coefficient **16469 < 20161**; 73\u00b2 > 2\u00b748\u00b2.\n- **Evidence.** `verify_t16.py` passes on the U8 locals (`PASS_GAUGE44_T16_STRICT_GLOBAL_REPLAY`). `RESULT.json` is that replay's `REPLAY.json`. It runs restore-parent; bind8 (this pac" + }, + { + "kind": "local-readme", + "title": "research/gauge44-barch/README.md", + "path": "research/gauge44-barch/README.md", + "sha256": "7a6f17e83af95089f5a83ae8d4cbfed12677b6df54ee45a3203d2f8181f5633a", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "mo (0.00165861362787227) and +0.1585% over research/gauge44-promo-p6 (0.001659319032684569) and +0.1388% over research/gauge44-promo-p6sw (0.001659645685315104, the same exchange on three promotion groups) and +0.0189% over research/gauge44-frames-x (0.001661634653669567, the X4 word before the rewrite) and +0.0449% over [#741](https://github.com/CrocSwap/integer-mult-bounds/pull/741) (chafreaky, \u03ba 0.001661202643272239; the same word without the joint exchange) and +0.0969% over [#685](https://g" + }, + { + "kind": "local-readme", + "title": "research/gauge44-ends7-t16/README.md", + "path": "research/gauge44-ends7-t16/README.md", + "sha256": "ea821ea8ba8933cecb9b70ff5c579e31dac52a72fec0e191e192321a3a22876e", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "ormalises only that field (canonical `d1bf3c6f\u2026`, programs `683f8323\u2026`/`2d184e4d\u2026`, Clifford `e3bfdfa2\u2026`, pinned in `CHAIN-PINS-k8.json`). For this package, `data/SPEC.json` and a fresh `verify_global.py` replay on locals rebuilt by the two drivers are the binding record.\n- **Independent price.** `independent/GAUGE44-INDEPENDENT-PRICE.json` is regenerated on this package's `data/PLAN.json` with the ported `independent/price_profile.py`: `PASS_FROZEN_PROFILE_TWO_EXACT_ENGINE_AND_OUTER47_CROSSCHEC" + }, + { + "kind": "local-readme", + "title": "research/gauge44-frames-x/README.md", + "path": "research/gauge44-frames-x/README.md", + "sha256": "a086b31dcbfe273006a9a90b56a9703f3679114c9f988f8868f3c5f1ff783f3d", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "running it reproduces the receipt except `elapsed_seconds` and, across zlib versions, `compressed_sha256`.\n- **Historical #645 files (PR543-based, 492 helpers).** These are #645's files, retained unchanged and **not** updated for this package: `LOCAL-VALIDATION.json`, `CONSTRUCTION.md`, `hosting/`, `evidence/` (except `evidence/layers/`), the rest of `independent/`, `construction/reproduce.py` and its inputs, and `code/prepare_global.py`. They describe #645's word, owner map, PR543 supplier and " + }, + { + "kind": "local-readme", + "title": "research/gauge44-leaver/README.md", + "path": "research/gauge44-leaver/README.md", + "sha256": "28acc0bdb972bdc8c2c48cbf8e1ef663d79b7ab134c23d542fec31680a6af6dc", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "rch/gauge44-layered and +0.4854% over research/gauge44-notri-layered (0.001656193765416678) and +0.3388% over research/gauge44-promo (0.00165861362787227) and +0.2962% over research/gauge44-promo-p6 (0.001659319032684569) and +0.2764% over research/gauge44-promo-p6sw (0.001659645685315104, the same exchange on three promotion groups) and +0.1564% over research/gauge44-frames-x (0.001661634653669567) and +0.1375% over research/gauge44-barch (0.001661948695165034) and +0.1825% over [#741](https://" + }, + { + "kind": "local-readme", + "title": "research/gauge44-leaver8/README.md", + "path": "research/gauge44-leaver8/README.md", + "sha256": "0c09f0685e5db77177187c12afea9c45465787c44d6ae0d7d28c0c7de8f1b2a0", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "ormalises only that field (canonical `d1bf3c6f\u2026`, programs `683f8323\u2026`/`2d184e4d\u2026`, Clifford `e3bfdfa2\u2026`, pinned in `CHAIN-PINS-k8.json`). For this package, `data/SPEC.json` and a fresh `verify_global.py` replay on locals rebuilt by the two drivers are the binding record.\n- **Independent price.** `independent/GAUGE44-INDEPENDENT-PRICE.json` is regenerated on this package's `data/PLAN.json` with the ported `independent/price_profile.py`: `PASS_FROZEN_PROFILE_TWO_EXACT_ENGINE_AND_OUTER47_CROSSCHEC" + }, + { + "kind": "local-readme", + "title": "research/gauge44-slots-arcflow/README.md", + "path": "research/gauge44-slots-arcflow/README.md", + "sha256": "b16061522d8cd37cf470613965cf123a629cb0cc72fb4dcdf23a87d95a235227", + "matched_terms": [ + "715", + "388", + "340", + "a2" + ], + "score": 4, + "excerpt": "ormalises only that field (canonical `d1bf3c6f\u2026`, programs `683f8323\u2026`/`2d184e4d\u2026`, Clifford `e3bfdfa2\u2026`, pinned in `CHAIN-PINS-k8.json`). For this package, `data/SPEC.json` and a fresh `verify_global.py` replay on locals rebuilt by the two drivers are the binding record.\n- **Independent price.** `independent/GAUGE44-INDEPENDENT-PRICE.json` is regenerated on this package's `data/PLAN.json` with the ported `independent/price_profile.py`: `PASS_FROZEN_PROFILE_TWO_EXACT_ENGINE_AND_OUTER47_CROSSCHEC" + } + ] +} diff --git a/research/p104-a2-paid-rank-exchange/PR-DRAFT.md b/research/p104-a2-paid-rank-exchange/PR-DRAFT.md new file mode 100644 index 0000000000..f3261cc407 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/PR-DRAFT.md @@ -0,0 +1,31 @@ +Conditional κ = 0.00310458 (+1.7454e-7, +0.0056223% over #5627): paid A2 rank exchange + +The exact [PR #5627](https://github.com/CrocSwap/integer-mult-bounds/pull/5627) word admits a paid A2 rank exchange that raises **conditional κ from 0.00310440546 to 0.00310458**: **+1.7454e-7, +0.0056223%**. A two-to-three scalar rewrite changes source 715's legal frame itinerary from paid ranks 5 and 3 to ranks 2 and 6. The extra ordinary ADD is charged; all 743 arbitrary inputs, 12,958 complete productive targets, endpoint frames and owned COPY/INIT/CLEAR instructions are retained. + +The local paid change is `H2 + H6 − H3 − H5`, repeated across 18 local invocations. Strict concavity makes this a strict moment gain for every exponent in `(0,1)`. Two exact rational moment engines enclose the unique raw crossing in **(0.00310458658556, 0.00310458658557)**, leaving about **6.58556e-9** above the claim. Complete paid calls and rank-mass surplus remain 66,546 and 760. + +## Significance for researchers + +This answers whether an A2 scalar rewrite can improve the recursive bill when its frame itinerary changes. The earlier [#3998](https://github.com/CrocSwap/integer-mult-bounds/pull/3998), [#4019](https://github.com/CrocSwap/integer-mult-bounds/pull/4019), [#4112](https://github.com/CrocSwap/integer-mult-bounds/pull/4112) and [#4152](https://github.com/CrocSwap/integer-mult-bounds/pull/4152) results concern frozen paid profiles. Here the complete paid profile changes while productive credits stay fixed. The useful search target is a scalar identity together with a legal, fully charged frame path. The elementary A2 identity retains its predecessor attribution. + +## Validation and scope + +```sh +python3.12 -B scripts/research_package.py --package research/p104-a2-paid-rank-exchange +python3.12 -B scripts/check_research_commit.py --package research/p104-a2-paid-rank-exchange +``` + +The registered quick, isolated optimized full and separate scoped algebra audit pass. Coverage includes 752 dense transpose columns, all 2,916 signed native maps with exact global phases, the complete physical caller, two rational moment engines, compiler completion and ordinary allowances, BIT stock, all 54 strict and four functional outer predicates, and rejection controls. Publication evidence and the refreshed overlap check are recorded in `research/p104-a2-paid-rank-exchange/PUBLICATION.md`. + +The 41-file committed-byte check passes. The optional full source-history preflight declines this shallow checkout; the declared provenance base passes a direct ancestor check. + +The exact predecessor remains head `ed4dc88a09a7d201971f6603b8c2074e95dd9c32`; its scientific inputs and authenticated framework export are retained unchanged. The same five framework assumptions and helper-endpoint contract remain. The huge uniform word and complete rounded multiplier are not materialized. This is an author-checked conditional contribution; selected-frontier promotion, formal verification, independent human acceptance and hosted CI success are separate obligations. + +## Credit + +Credit [Ali Romman](https://github.com/aliromman) for [#5627](https://github.com/CrocSwap/integer-mult-bounds/pull/5627), [flyingviper](https://github.com/flyingviper) for the relays, [Scratch-net](https://github.com/Scratch-net) for the prepared prefix, [Pierre-Loic Doulcet](https://github.com/hexapode) for the commuting cascade, and [Joel Pulikkan](https://github.com/GamingPuzzled), [DreamingOfClouds](https://github.com/DreamingOfClouds), [THU New Media Research Center](https://github.com/thu-nmrc), [David Arias](https://github.com/DavidAriasC), [Gareth Davidson](https://github.com/bitplane), [Cinna Davis](https://github.com/1337isnot1337), [Jacob Alan Sussman](https://github.com/jacobalansussman), [Cao Yifan](https://github.com/intqwq) and [zxv](https://github.com/zxv) for the retained helper, native, geometry, BIT, compiler and analytic lineage. The prior A2 mechanism and boundary discipline retain [Chris R](https://github.com/Clear1nsight) and [ToikY](https://github.com/ToikY)'s credit. New construction and checks used substantial OpenAI Codex assistance and complementary subagent research during the original investigation. Apache-2.0; source notices are retained. + +## Open next questions + +- Independently inspect the three literal gates, nested frame chain and new paid native maps, then reproduce the full verifier before scientific admission. The separate agent audit covers local algebra and frame induction; it does not replace independent human review. +- Test a different compatible noncommuting scalar motif on the emitted word. Any combined gain requires one reconstructed word and complete invoice; local headline gains cannot be assumed additive. No further positive candidate is claimed. diff --git a/research/p104-a2-paid-rank-exchange/PRICING-EDITS.json b/research/p104-a2-paid-rank-exchange/PRICING-EDITS.json new file mode 100644 index 0000000000..7ff9332f19 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/PRICING-EDITS.json @@ -0,0 +1,14 @@ +[ + [ + "KAPPA, TESTED = Q('.00310440546'), Q('.003104405465')", + "KAPPA, TESTED = Q('.00310458'), Q('.0031045805')" + ], + [ + "PREVIOUS = Q('.00308595')", + "PREVIOUS = Q('.00310440546')" + ], + [ + "'kappa_decimal':'.00310440546'", + "'kappa_decimal':'.00310458'" + ] +] diff --git a/research/p104-a2-paid-rank-exchange/PUBLICATION-OVERLAP.json b/research/p104-a2-paid-rank-exchange/PUBLICATION-OVERLAP.json new file mode 100644 index 0000000000..8dc71a5607 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/PUBLICATION-OVERLAP.json @@ -0,0 +1,355 @@ +{ + "status": "POSSIBLE_OVERLAP_NOT_A_NOVELTY_CERTIFICATE", + "searched_at": "2026-10-26T01:58:45.535820+00:00", + "terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "R439", + "3998", + "4019", + "4112", + "4152", + "staged544-a2-graph-rewrite", + "staged544-separated-a2", + "staged544-a2-composition-audit", + "staged544-a1858-contraction-audit", + "staged544-a2-graph-rewrite", + "staged544-separated-a2", + "staged544-a2-composition-audit", + "staged544-a1858-contraction-audit" + ], + "coverage": { + "local": { + "head": "f626db5c3a3d781d8f7695038776c621651f75e1", + "records": 5863, + "head_records": 5860, + "complete_head_inventory": true, + "unsearched_head_paths": [] + }, + "open_prs": { + "fetched_at": "2026-10-26T01:57:26.195145+00:00", + "complete_pagination": true, + "records": 335 + }, + "discussions": { + "fetched_at": "2026-10-26T01:58:40.509737+00:00", + "complete_pagination": true, + "records": 4924 + } + }, + "local_records": 5863, + "warnings": [], + "reference_terms": [ + "3998", + "4019", + "4112", + "4152" + ], + "limits": "Remote PR scope is open PRs including drafts. Closed work is searched through local READMEs, TASK metadata and ledger only. Local coverage compares searched working-tree notes with regular note paths at coverage.local.head; it does not certify HEAD contents or historical coverage. No code diffs or arbitrary package files are searched. Recheck relevant heads before submission.", + "matches_total": 1135, + "matches": [ + { + "kind": "local-task", + "title": "research/p104-a2-paid-rank-exchange/TASK.json", + "path": "research/p104-a2-paid-rank-exchange/TASK.json", + "sha256": "c6255665e9fa7ef59daffa43bd3dfa12476f25efa6e871a6f89610004a121cb6", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439", + "3998", + "4019", + "4112", + "4152", + "staged544-a2-graph-rewrite", + "staged544-separated-a2", + "staged544-a2-composition-audit", + "staged544-a1858-contraction-audit" + ], + "score": 12, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 7,\n \"base_commit\": \"f626db5c3a3d781d8f7695038776c621651f75e1\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can a changed frame itinerary remove a paid transition beyond the already covered scalar A2 contractions?\",\n \"starting_points\": [\n \"docs/research/research-family-status.md\",\n \"certificates/selected-result.json\",\n \"research/staged544-a2-graph-rewrite/README.md\",\n \"" + }, + { + "kind": "local-task", + "title": "research/staged-compensation-forests/TASK.json", + "path": "research/staged-compensation-forests/TASK.json", + "sha256": "e8f051415f5005051ef7b959f1fb4212e34f4d149a048cbd40c77ee8779435d2", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439", + "3998", + "4019", + "4112", + "4152", + "staged544-a2-graph-rewrite", + "staged544-separated-a2", + "staged544-a2-composition-audit", + "staged544-a1858-contraction-audit" + ], + "score": 12, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 7,\n \"base_commit\": \"12fa8c5c844be21bfefb38a19503fbd867a11244\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can a changed frame itinerary remove a paid transition beyond the already covered scalar A2 contractions?\",\n \"starting_points\": [\n \"docs/research/research-family-status.md\",\n \"certificates/selected-result.json\",\n \"research/staged544-a2-graph-rewrite/README.md\",\n \"" + }, + { + "kind": "local-task", + "title": "research/staged544-separated-a2/TASK.json", + "path": "research/staged544-separated-a2/TASK.json", + "sha256": "2cf3bd01da44d7fb3732e3072ab55e4323ce0e95fc0031c5d88358705ed8ae93", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439", + "3998", + "staged544-separated-a2" + ], + "score": 8, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 6,\n \"base_commit\": \"20ecf2891d80b5acf18d980b2164fb44ea7faa90\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary a" + }, + { + "kind": "local-task", + "title": "research/staged544-a2-graph-rewrite/TASK.json", + "path": "research/staged544-a2-graph-rewrite/TASK.json", + "sha256": "a0fdbd910ce782e1cd8ca271f32f9521a5b226ea371209e02e1ff79eca77ac96", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439", + "staged544-a2-graph-rewrite" + ], + "score": 7, + "excerpt": "{\n \"task_id\": \"scalar-to-moment\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary and exact child histogram.\",\n \"Prove a scoped obstruction showing why that scalar gain cannot change the p" + }, + { + "number": 2223, + "title": "Cycle 39 claim: R439 frame 509 source-22 paid-climb cut", + "kind": "discussion", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/2223", + "updated_at": "2026-10-15T00:38:13Z", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "*\n\n**Assignment pins.** `incumbent-optimization`, OS seed `5ffa1b4c0c1d31ab3d7c4bd324631b22`, task `scalar-to-moment` (scope key `9dbfd943f23ef75bae31`), priority revision 4, catalogue SHA-256 `d46eb6d5b3e279428753d770653663fbdf1063e55c255ea073d768f344927ef7`, exact base `0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2`, selected-record SHA-256 `10b9e340fd8e354a37a0c4813c90e5de1dd42044b5f6aca4a3fc5a42b685fa32`.\n\n**Question / changed scope.** In the exact 11-wire PR1015 B-section block at frame 509, can" + }, + { + "kind": "local-readme", + "title": "research/r439-frame508-inverse-cut-seed3b/README.md", + "path": "research/r439-frame508-inverse-cut-seed3b/README.md", + "sha256": "39331ecd51179c63aec5eb388d5e7f7594ebad8b1e4b5adff324bb286ec2122e", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "# R439 frame 508: inverse-column cut forces the exceptional source to rank four\n\n**Scoped exact obstruction; no new selected \u03ba.** For the pinned 11-wire linear map at R439 frame 508, register 19 must visit the full rank-four block frame in any monotone same-wire implementation whose operation frames stay inside that block frame. The result allows arbitrary ADD sequences, arbitrary proper intermediate frames, and arbitrary circuit length. It closes the source-19 exception left by the predecessor'" + }, + { + "kind": "local-readme", + "title": "research/staged544-a1858-contraction-audit/README.md", + "path": "research/staged544-a1858-contraction-audit/README.md", + "sha256": "2205ee04f76fe750a93f24d0b3263a290e9096531b927fe2525586326fd18155", + "matched_terms": [ + "3998", + "4019", + "4112", + "staged544-a1858-contraction-audit" + ], + "score": 6, + "excerpt": "efined**. This is not the #2979\nrank-7 group audit and not the separated seven-block contraction in PR #4019\n(upstream #4112). Discussion #1166 comment 19035159 asks for an independent\nchallenge of the consecutive A1858 contraction and its cleanup in\n[PR #3998](https://github.com/CrocSwap/integer-mult-bounds/pull/3998), head\n`389268a6b5e0373a3125d5c6fcd6995f4ea324f5`.\n\nOn all four frozen words vendored from that head, zero-based `A[1858:1861]` is\n\n```\n457 <- 457 - 475\n456 <- 456 + 457\n456 <- 456" + }, + { + "kind": "local-task", + "title": "research/r439-b509-inverse-footprint-seed19/TASK.json", + "path": "research/r439-b509-inverse-footprint-seed19/TASK.json", + "sha256": "c6098287988a3b87fdd6e521c3e502160a72a5dc56a1816b5e48a2d1ff063d06", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 2,\n \"base_commit\": \"ef5f39403610d231a0c27e8a6b4f08c10209bcd6\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary a" + }, + { + "kind": "local-task", + "title": "research/r439-bblock-frame-barrier/TASK.json", + "path": "research/r439-bblock-frame-barrier/TASK.json", + "sha256": "f55a20d2d0a1cc7859f367005c3b7e27644ca9aa465d95a634bfb41ba002a43b", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 2,\n \"base_commit\": \"bce54fb3f895cbe5cd4c0eb477c3afeed100190f\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary a" + }, + { + "kind": "local-task", + "title": "research/r439-dirty-workspace-frame-bound/TASK.json", + "path": "research/r439-dirty-workspace-frame-bound/TASK.json", + "sha256": "890664557680b9d9c14c5b29018a1abcd08e42081458722b0cd06667db50abe0", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 3,\n \"base_commit\": \"0b1cccf86e2f5132ed286a26ef0a681a495740ea\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary a" + }, + { + "kind": "local-task", + "title": "research/r439-donor466-enlarged-seam/TASK.json", + "path": "research/r439-donor466-enlarged-seam/TASK.json", + "sha256": "f28786fa3fa9ffb0cb742a50c3e097bf2bd0f1207ca41f9dcbcac6eb747edfda", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 4,\n \"base_commit\": \"0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary a" + }, + { + "kind": "local-task", + "title": "research/r439-frame508-inverse-cut-seed3b/TASK.json", + "path": "research/r439-frame508-inverse-cut-seed3b/TASK.json", + "sha256": "1abf0316a6b89b7b7cb82c640e7cf66afbd46d2b0bf9212c7def190223729801", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"scope_key\": \"9dbfd943f23ef75bae31\",\n \"seed\": \"3b2676afb1d8667edc131585f741d4b0\",\n \"track\": \"incumbent-optimization\",\n \"priority_revision\": 3,\n \"catalog_sha256\": \"6686ad58f1fbdbc87134a78901b60fd53a20d3984355e91defbbebc9e9fa8075\",\n \"base_commit\": \"0b1cccf86e2f5132ed286a26ef0a681a495740ea\",\n \"selected_record_sha256\": \"10b9e340fd8e354a37a0c4813c90e5de1dd42044b5f6aca4a3fc5a42b685fa32\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\"" + }, + { + "kind": "local-task", + "title": "research/r439-scalar-histogram/TASK.json", + "path": "research/r439-scalar-histogram/TASK.json", + "sha256": "9988beb2ff777a12c399b7bb5fe9521a4214bbbb318b782c9c75927c95702114", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439" + ], + "score": 6, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 6,\n \"base_commit\": \"20ecf2891d80b5acf18d980b2164fb44ea7faa90\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary a" + }, + { + "kind": "local-task", + "title": "research/staged544-a1858-contraction-audit/TASK.json", + "path": "research/staged544-a1858-contraction-audit/TASK.json", + "sha256": "95ac752ceb5be3d92918d56533f6bbbd70b97a9f1fcee4c81f994d351c4d02b9", + "matched_terms": [ + "3998", + "4019", + "4112", + "staged544-a1858-contraction-audit" + ], + "score": 6, + "excerpt": "pe\": \"Independently derive the cleanup edit of the consecutive A1858 contraction on the four frozen PR3998 words, without importing that package and without replaying its frame bill.\",\n \"scope_change_reason\": \"The card's #2979 rank-7 reconstruction is a different object. Comment 19035159 asks for one source-bound check of the PR3998 A1858 contraction and cleanup. Upstream #4112 already accepted the separated PR4019 blocks, so this package does not repeat that audit.\",\n \"bottleneck_link\": \"A sc" + }, + { + "kind": "local-task", + "title": "research/staged544-a2-cone-composition/TASK.json", + "path": "research/staged544-a2-cone-composition/TASK.json", + "sha256": "7b11ef5972bd54d7df7105326561d7ae942a6673391445f8494485fada5ae214", + "matched_terms": [ + "scalar-to-moment", + "scalar simplification", + "paid profile", + "r439", + "3998", + "4019" + ], + "score": 6, + "excerpt": "{\n \"schema_version\": 1,\n \"task_id\": \"scalar-to-moment\",\n \"priority_revision\": 6,\n \"base_commit\": \"20ecf2891d80b5acf18d980b2164fb44ea7faa90\",\n \"original_card\": {\n \"id\": \"scalar-to-moment\",\n \"question\": \"Can one known scalar simplification be converted into an actual paid-profile improvement?\",\n \"starting_points\": [\n \"research/r439-bsection-stars-seed01/README.md\",\n \"certificates/selected-result.json\"\n ],\n \"methods\": [\n \"Derive the changed legal frame itinerary a" + }, + { + "number": 1166, + "title": "Handoffs and requests for independent checks", + "kind": "discussion-comment", + "url": "https://github.com/CrocSwap/integer-mult-bounds/discussions/1166#discussioncomment-19057496", + "updated_at": "2026-10-20T03:31:44Z", + "matched_terms": [ + "3998", + "4019", + "4112", + "4152", + "staged544-a1858-contraction-audit" + ], + "score": 5, + "excerpt": "source-bound A1858 contraction and its cleanup (comment 19035159). This is the consecutive block in PR #3998. It is not the separated PR #4019 contraction accepted in #4112.\n\nOrdered eligible list. Chronological open #1166 next tasks, comment-id order, after dropping tasks performed by a later DONE, an open PR, or this account\u2019s round through #4149:\n\n1. Largest physical child rank on one support alphabet (comment 19021222).\n2. T488 ownership/output invoice, question 1 (comment 19022532; question" + }, + { + "kind": "local-readme", + "title": "research/p104-a2-paid-rank-exchange/README.md", + "path": "research/p104-a2-paid-rank-exchange/README.md", + "sha256": "8618db96c83e1e0dbfc1527adad0e8c54b31912df80fb030d4d52ce39b9c9358", + "matched_terms": [ + "paid profile", + "3998", + "4019", + "4112", + "4152" + ], + "score": 5, + "excerpt": " emitted\nPR5627 word is changed by one two-to-three scalar rewrite and a legal frame\nitinerary. Its paid profile changes, every productive target is retained, and\nthe complete native/caller/compiler/outer calculation supports the higher \u03ba.\nThis is not a selected-frontier promotion, formal multiplication theorem,\nindependent human review or global optimum claim.\n\n| Quantity | PR5627 | This construction |\n|---|---:|---:|\n| Claimed conditional \u03ba | 0.00310440546 | **0.00310458** |\n| Increase | \u2014 | *" + }, + { + "kind": "local-readme", + "title": "research/r439-donor466-enlarged-seam/README.md", + "path": "research/r439-donor466-enlarged-seam/README.md", + "sha256": "b59b4d69b2d56a3c95553beba54314b048903e83d62a10ddec242ac2dededd7f", + "matched_terms": [ + "scalar-to-moment", + "paid profile", + "r439" + ], + "score": 5, + "excerpt": "# R439 B508: moving the left boundary does not remove the eleven-wire floor\n\n**Scoped proof and exact finite certificate; no new supplier or kappa.**\nIn the retained PR1062 word, enlarge the interval from the isolated B508 block\nto **A[1991:2075], the nine COPY/scatter/ERASE observations, and B[0:195]**.\nThe left cut precedes helper 466's rank-one-to-rank-four promotion. Nevertheless,\nall eleven B508 wires must contain the complete rational frame F508 by the\nright cut. Their exact minimum contri" + }, + { + "kind": "local-readme", + "title": "research/staged544-a2-composition-audit/README.md", + "path": "research/staged544-a2-composition-audit/README.md", + "sha256": "7dbbe8ec43f9b72b1f384244384000d55dbcc02c87c026e4dce6b78bd5da64db", + "matched_terms": [ + "3998", + "4019", + "staged544-a2-composition-audit" + ], + "score": 5, + "excerpt": "iscussioncomment-19036786):\nindependently accept the composition and projected-cleanup argument in\n[PR #4019](https://github.com/CrocSwap/integer-mult-bounds/pull/4019), head\n`f408e09df300b575235f7f77f81948071397e16d`.\n\nThe two rational identities, for distinct registers `x, y, z` and nonzero rationals `a, b`, are\n\n```text\n[S(a), T(b), U(-ab)] = [T(b), S(a)]\n[U(ab), T(b), S(a)] = [S(a), T(b)]\n```\n\nwith `S(a): y += a*z`, `T(b): x += b*y`, and `U(c): x += c*z`. Both sides of the first identity en" + }, + { + "kind": "local-readme", + "title": "research/staged544-separated-a2/README.md", + "path": "research/staged544-separated-a2/README.md", + "sha256": "69b1e9054227f707a63c952f213d7894fda0c77ef47a0c30223ee70a1df4eb23", + "matched_terms": [ + "paid profile", + "3998", + "staged544-separated-a2" + ], + "score": 5, + "excerpt": "# Seven separated A2 contractions with an unchanged paid profile\n\nOn each exact PR3734 provider, seven separated three-ADD blocks contract to\ntwo ADDs without crossing a native event. Beyond PR3998's credited consecutive\nA1858 contraction, this removes **seven forward and five inverse-cleanup ADDs**.\nAgainst the original PR3734 words the combined saving is eight forward and six\ncleanup ADDs. The entire recursive histogram remains\n`{1:2440,2:725,3:224,4:102,5:20,8:8}`: 3,519 children and rank mas" + } + ] +} diff --git a/research/p104-a2-paid-rank-exchange/PUBLICATION-REPLAY.log b/research/p104-a2-paid-rank-exchange/PUBLICATION-REPLAY.log new file mode 100644 index 0000000000..3079bd89f0 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/PUBLICATION-REPLAY.log @@ -0,0 +1,13 @@ +CHECK Source hashes, full candidate regeneration, exact arbitrary-input/frame replay and unchanged productive targets. +PASS exact source foundation bindings 12 and all arbitrary-input/frame rows +PASS_P104_A2_QUICK +CHECK Dense transpose, every signed native map/global phase, full caller, two exact moment engines, complete compiler/BIT stock/58 outer conditions and rejection controls. +PASS exact source foundation bindings 12 and all arbitrary-input/frame rows +PASS all dense transpose columns 752 +PASS all signed native maps and exact phases 2916 +PASS complete physical caller +PASS two exact moment engines, compiler, BIT stock and58 outer predicates ['77614664639/25000000000000', '310458658557/100000000000000'] +PASS_P104_A2_KAPPA_00310458 +CHECK Separately implemented three-column A2 identity, complete scalar-word delta, fixed boundaries and exact child-profile change. +PASS_INDEPENDENT_A2_IDENTITY_AND_PRICE_AUDIT +PASS_REGISTERED_RESEARCH_PACKAGE research/p104-a2-paid-rank-exchange outcome=completed diff --git a/research/p104-a2-paid-rank-exchange/PUBLICATION.md b/research/p104-a2-paid-rank-exchange/PUBLICATION.md new file mode 100644 index 0000000000..9f51c88b8a --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/PUBLICATION.md @@ -0,0 +1,46 @@ +# Publication checkpoint — October 25, 2026 (America/Detroit) + +The package is prepared on canonical main `df0137efd35e11b4445734bf612bdd4c7ebc330c`, which selects conditional κ = 0.00310045. Priority revision remains 7. Current AGENTS.md, CONTRIBUTING.md, autoresearch.md, priorities, selected result, package guide and invoice preflight guidance were read. The scientific predecessor remains [PR #5627](https://github.com/CrocSwap/integer-mult-bounds/pull/5627), head `ed4dc88a09a7d201971f6603b8c2074e95dd9c32`, confirmed unchanged before publication. + +The original research checkout's protected Git/network limitations are historical. Publication uses a separate sparse worktree with GitHub access and current canonical ancestry. Every original constructor, verifier, retained input, word, scientific receipt, source manifest and historical replay log is preserved byte for byte. README.md and PR-DRAFT.md are updated for publication; this record, a fresh replay log, refreshed overlap report and derived invoice comparison are added. Historical publication booleans and unrun-obligation lists describe the original session, not this later checkpoint. + +## Fresh validation + +Environment: Python 3.12.8, macOS 26.5.1, arm64; standard library only. Run from the publication worktree root: + +```sh +python3.12 -B scripts/research_package.py --package research/p104-a2-paid-rank-exchange +``` + +All three registered commands pass: quick source/interface replay, isolated optimized full replay and the separately implemented scoped algebra audit. [PUBLICATION-REPLAY.log](PUBLICATION-REPLAY.log) records the result. Coverage is 12 exact foundation bindings, 752 dense transpose columns, 2,916 signed native maps with full phases, complete physical caller, two exact rational moment engines, compiler completion, ordinary allowances, BIT stock, 54 strict plus four functional outer predicates and malformed-input controls. The saved RESULT.json and INDEPENDENT-AUDIT.json match the recomputed results. + +The current signed-invoice preflight also reports `uniformly_better`: + +```sh +python3.12 -B scripts/compare_recursive_invoices.py \ + research/p104-a2-paid-rank-exchange/publication-invoices/source.json \ + research/p104-a2-paid-rank-exchange/publication-invoices/candidate.json +``` + +The two inputs are direct copies of `paid` and `targets` from the retained PR5627 and candidate RESULT.json `complete_cost` objects, under the same explicitly declared mixed-target accounting contract. [COMPARISON.json](publication-invoices/COMPARISON.json) gives Δpaid = 18(H2 + H6 − H3 − H5), Δtargets = 0, unchanged rank mass, and a strictly negative cost change for every power 0 < t < 1. This arithmetic screen does not supply physical legality; the full replay supplies the separately scoped native/caller evidence. + +The 41-file committed-byte check passes: + +```sh +python3.12 -B scripts/check_research_commit.py \ + --package research/p104-a2-paid-rank-exchange +``` + +The original provenance base `f626db5c3a3d781d8f7695038776c621651f75e1` is retained. The pending PR5627 scientific dependency is a self-contained authenticated archive/input closure rather than an undeclared foreign Git object. The optional `--check-source-history` mode was attempted and declined because this repository is shallow. A direct `git merge-base --is-ancestor f626db5c3a3d781d8f7695038776c621651f75e1 HEAD` check passes, but this is not the full-history preflight. The byte pass is separate from the mathematical replay and hosted CI. + +## Refreshed overlap + +The fresh [PUBLICATION-OVERLAP.json](PUBLICATION-OVERLAP.json), searched at 2026-10-26 01:58 UTC, covers 335 open PRs and 4,924 Discussion records with complete remote pagination and no refresh warnings. Local coverage is explicitly the original main `f626db5c` working-tree inventory: 5,863 records, with no omitted HEAD note paths. The report retains 20 ranked excerpts from 1,135 possible matches; no absence-of-matches or global novelty claim follows. Closed work is represented only through local notes and the ledger, and arbitrary code diffs are outside this search. + +Relevant current bodies were read. [PR #5633](https://github.com/CrocSwap/integer-mult-bounds/pull/5633) independently audits the unchanged PR5627 interface and invoice, not this new A2 word. [PR #5639](https://github.com/CrocSwap/integer-mult-bounds/pull/5639) and [PR #5641](https://github.com/CrocSwap/integer-mult-bounds/pull/5641) concern ordinary BIT components and explicitly do not claim a complete multiplication κ increase. [PR #5640](https://github.com/CrocSwap/integer-mult-bounds/pull/5640) supplies a distinct borrowed-space shear tariff with physical/caller obligations still separate. The A2 predecessor investigations and their credit remain recorded in README.md and PR-DRAFT.md. + +## Remaining obligations + +Hosted CI, independent human scientific review and proof-kernel verification remain separate. The same five framework assumptions and helper-endpoint contract remain; the enormous uniform word and complete rounded multiplier are algorithm-defined rather than materialized. This publication does not change the selected result or resolve others' PRs. Open next questions remain in README.md and TASK.json. + +Prepared for [zxv](https://github.com/zxv) with substantial OpenAI Codex assistance; all retained source credit and Apache-2.0 notices remain. diff --git a/research/p104-a2-paid-rank-exchange/README.md b/research/p104-a2-paid-rank-exchange/README.md new file mode 100644 index 0000000000..c881246e18 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/README.md @@ -0,0 +1,163 @@ +# Conditional κ = 0.00310458 from a paid A2 rank exchange + +**Author-checked conditional construction.** The exact emitted +PR5627 word is changed by one two-to-three scalar rewrite and a legal frame +itinerary. Its paid profile changes, every productive target is retained, and +the complete native/caller/compiler/outer calculation supports the higher κ. +This is not a selected-frontier promotion, formal multiplication theorem, +independent human review or global optimum claim. + +| Quantity | PR5627 | This construction | +|---|---:|---:| +| Claimed conditional κ | 0.00310440546 | **0.00310458** | +| Increase | — | **0.00000017454**, about **0.00562%** | +| Raw crossing | (0.00310440547057, 0.00310440547058) | **(0.00310458658556, 0.00310458658557)** | +| Tested saving | 0.003104405465 | 0.0031045805 | +| Complete paid calls | 66,546 | 66,546 | +| Complete productive targets | 12,958 | 12,958 | +| Rank-mass surplus | 760 | 760 | +| Public inputs / owned roles / peak owned | 743 / 9 / 2 | 743 / 9 / 2 | +| Local ordinary scalar allowance | 220,154 | 220,166 | + +The raw ceiling is strictly above the claimed κ by between +6.58556×10⁻⁹ and 6.58557×10⁻⁹. The changed signed moment has a rigorously +negative derivative throughout [0, 0.0034], so this is the unique raw funding +ceiling for this fixed invoice under the retained BIT cap. The gain is a +physical paid-profile change, not a refinement of the predecessor's root. + +## Mechanism and proof + +At source events 14975 and 14977, write A=715, B=388 and C=340. Replace + +``` +B -= 4 A at frame 825 +C += B at frame 825 +``` + +by + +``` +C -= 4 A at frame 396 +C += B at frame 825 +B -= 4 A at frame 127 +``` + +Both give `(A, B−4A, C+B−4A)` on arbitrary inputs. The extra ordinary ADD moves +one dependency earlier and another later. Source A can visit dimension three +instead of dimension six before its full-dimensional final contact. Its old +paid itinerary has ranks 5 and 3; the new itinerary has ranks 2 and 6. The +frames form the actual nested chain 598⊂396⊂825⊂127, with dimensions 1,3,6,9. +No new frame, register, input, COPY, INIT or CLEAR is introduced. + +The complete local change is + +\[ +\Delta P=H_2+H_6-H_3-H_5,\qquad \Delta T=0. +\] + +For every 0 6^t−5^t`. Thus the paid moment falls strictly, although one ADD is +added and rank mass is unchanged. The complete caller invokes the local word +18 times, so its paid change is 18 times this expression. The correction's +ordinary cost is included in the revised allowance shown above. + +This changes the local debt in zxv's +[PR5554 price-frontier theorem](https://github.com/CrocSwap/integer-mult-bounds/pull/5554). +It does not contradict that theorem's fixed-provider ceiling. Earlier A2 +contractions in PR3998/4019 and their PR4112/4152 audits retained their paid +profiles; those frozen-word exclusions are not claims about this changed P104 +word and itinerary. The elementary A2 identity itself is credited prior work. + +[INDEPENDENT-AUDIT.md](INDEPENDENT-AUDIT.md) gives the separate agent's +three-column proof and all-column frame-induction argument. Actual native +maps include their full phases. The argument does not commute Gaussians or +treat tensor powers of sums as sums of tensor powers. + +## Verification + +Python 3.12 and the standard library suffice. From the repository root: + +```sh +python3.12 -B scripts/research_package.py --package research/p104-a2-paid-rank-exchange +``` + +For a standalone exported directory, run `python3.12 -I -O -B verify.py` from +any working directory. `--quick` checks the exact source, regenerated word and +full rational scalar/frame interface without the native replay. `audit.py` +independently checks the scalar identity, entire scalar-program delta, +unchanged boundaries/owned instructions, nesting and complete paid histogram. + +The full verifier checks all 752 arbitrary-input rows and dense transpose +columns; 2,916 distinct signed native maps with exact global phases; the full +physical caller; both exact rational moment engines; compiler completion, +precision/ordinary allowances and BIT stock; all 54 strict and four functional +outer predicates. Controls reject an omitted new shear, wrong contact frame, +undercharged child and missing central translation. + +`RESULT.json` and `REPLAY.log` retain the complete successful source-bound +calculation. `PRICING-EDITS.json` binds the price adaptation to three literal +claim/comparison edits; no mathematical predicate is weakened. The historical +`previous_open_pr5601` output-key spelling is inherited; its value in this +package is the explicitly declared PR5627 comparison, 0.00310440546. + +The historical hosted nine-stage packing cap does not apply to this mixed-target +productive-helper construction: independent helper targets and the complete +caller replace that coverage law. The replacement bound is the unique complete- +invoice raw crossing above, proved on [0, 0.0034]. The claimed κ realizes about +99.9997879% of that fixed-invoice ceiling; this is not a ceiling on changed words. + +## Sources, scope and attribution + +The exact scientific predecessor is +[PR5627](https://github.com/CrocSwap/integer-mult-bounds/pull/5627), head +`ed4dc88a09a7d201971f6603b8c2074e95dd9c32`. Its word, checker, invoice and +source manifest are retained unchanged. The PR5612 authenticated archive +reader supplies the unchanged framework closure. All 12 PR5627-declared +foundation files present in that closure match its recorded SHA256 values +before use. `SOURCES.json` additionally authenticates every retained input +byte. There is no foreign-branch object-cache dependency. + +During the original research session, canonical Git fetch failed because +that checkout's `.git/FETCH_HEAD` was +protected. Exact source files were instead downloaded from their pinned +GitHub pages. Local task provenance remains main `f626db5c`, priority 7; it is +not represented as a refreshed canonical checkout. The live open-PR list was +checked through PR5635, including PR5633's narrower source-interface/invoice +audit. The older broad overlap cache has incomplete freshness, and no absence +of matches is asserted as proof of novelty. The submission-time browser check +subsequently synchronized the publication fork to canonical main +`09062e91a942f205a529779b74c13c412afdb483`, read current `autoresearch.md`, +priorities (still revision 7) and `CONTRIBUTING.md`, and checked the live PR +list through PR5639. PR5639 explicitly does not claim a new best whole +multiplication κ. The scientific source pins and earlier replay evidence +above remain frozen; shell Git refresh and committed-byte publication +preflight remain unavailable. No source frontier, frozen package +or others' PR was changed. The later publication checkout resolves the Git +refresh and committed-byte limitations; see [PUBLICATION.md](PUBLICATION.md) +for the fresh replay, source-history scope and overlap coverage. Historical +`CLAIM.json`, `TASK.json`, `VALIDATION.json` and their logs retain the original +session's status and limitations. Publication/CI/maintainer acceptance remain +separate. + +The same five framework assumptions remain: native all-column realization, +owned erasure, uniform compiler closure, precision/fixed-tape execution and +analytic recovery, together with the inherited helper-endpoint contract. +The enormous uniform word and complete rounded multiplier are not materialized. + +Prepared for **zxv**, with substantial OpenAI Codex assistance and complementary +subagent searches. Ali Romman supplies the PR5627 helper/basis composition and +checker; flyingviper supplies the relays; Scratch-net the prepared prefix; +Pierre-Loic Doulcet/hexapode the commuting cascade; Joel Pulikkan/GamingPuzzled, +DreamingOfClouds and thu-nmrc the predecessor handoffs and contacts. Retain +David Arias, Gareth Davidson, Cinna Davis, Jacob Alan Sussman, Cao Yifan, zxv +and all native, geometry, BIT, compiler and analytic source notices. Chris R / +Clear1nsight's PR3998, ToikY's PR4019 and the scoped audits retain credit for +the A2 mechanism and boundary discipline. Apache-2.0. + +## Open next questions + +1. Independently review the three literal gates, source chart chain and new + paid maps before scientific admission; use the isolated replay above. +2. Test a different noncommuting scalar motif on the emitted word. A combined + gain needs a reconstructed common word and complete invoice; local headline + gains are not assumed additive. No further positive candidate is claimed. diff --git a/research/p104-a2-paid-rank-exchange/REGISTERED-REPLAY.log b/research/p104-a2-paid-rank-exchange/REGISTERED-REPLAY.log new file mode 100644 index 0000000000..3079bd89f0 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/REGISTERED-REPLAY.log @@ -0,0 +1,13 @@ +CHECK Source hashes, full candidate regeneration, exact arbitrary-input/frame replay and unchanged productive targets. +PASS exact source foundation bindings 12 and all arbitrary-input/frame rows +PASS_P104_A2_QUICK +CHECK Dense transpose, every signed native map/global phase, full caller, two exact moment engines, complete compiler/BIT stock/58 outer conditions and rejection controls. +PASS exact source foundation bindings 12 and all arbitrary-input/frame rows +PASS all dense transpose columns 752 +PASS all signed native maps and exact phases 2916 +PASS complete physical caller +PASS two exact moment engines, compiler, BIT stock and58 outer predicates ['77614664639/25000000000000', '310458658557/100000000000000'] +PASS_P104_A2_KAPPA_00310458 +CHECK Separately implemented three-column A2 identity, complete scalar-word delta, fixed boundaries and exact child-profile change. +PASS_INDEPENDENT_A2_IDENTITY_AND_PRICE_AUDIT +PASS_REGISTERED_RESEARCH_PACKAGE research/p104-a2-paid-rank-exchange outcome=completed diff --git a/research/p104-a2-paid-rank-exchange/REPLAY.log b/research/p104-a2-paid-rank-exchange/REPLAY.log new file mode 100644 index 0000000000..18694175a1 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/REPLAY.log @@ -0,0 +1,6 @@ +PASS exact source foundation bindings 12 and all arbitrary-input/frame rows +PASS all dense transpose columns 752 +PASS all signed native maps and exact phases 2916 +PASS complete physical caller +PASS two exact moment engines, compiler, BIT stock and58 outer predicates ['77614664639/25000000000000', '310458658557/100000000000000'] +PASS_P104_A2_KAPPA_00310458 diff --git a/research/p104-a2-paid-rank-exchange/RESULT.json b/research/p104-a2-paid-rank-exchange/RESULT.json new file mode 100644 index 0000000000..b20672f0a1 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/RESULT.json @@ -0,0 +1,342 @@ +{ + "complete_cost": { + "compiler": { + "H": 707182000000000, + "N": "2^707182000000000", + "eta": { + "lower": "0.000000134111266725226492278714", + "upper": "0.000000134111266725226492278715" + }, + "gap": "1/14000000000", + "integer_test_exponent": 50513, + "logarithm_power": 1024, + "theta": "63/64", + "uniform_saving": "21732063/7000000000", + "word_materialized": false + }, + "full_forward_calls": 18, + "gain": "8727/50000000000", + "kappa": "155229/50000000", + "kappa_decimal": ".00310458", + "margin_at_previous": { + "lower": "0.044045194632554451118597166502", + "upper": "0.044045194632554451118597166503" + }, + "negative_controls": { + "old_BIT": "Rejected by outer inequalities", + "old_cutoff": "Rejected by completion-tail ratio greater than one" + }, + "nonrecursive": { + "fixed_scalar_growth_bound": "At most 2^(16*26000) before native factors; a declared constant, not an attained norm.", + "local_paid_rank_mass": 5986, + "local_routes": 5175000, + "local_scalar": 220166, + "peak_owned_fields": 2, + "raw_budget": 1000000000, + "raw_scalar_upper": 184647552, + "tensor_native_growth_bound": "Each rank-r Gaussian has row l1 norm at most 2^(rf); use local_paid_rank_mass for the whole word." + }, + "ordinary_BIT": { + "admitted": "17/5000", + "after_cover": "69/20000", + "atom": "1/250", + "before_cover": "3459/1000000", + "ordinary_saving": "8590884599/2500000000000", + "prime_rule": "odd q > 2^26*N^5 avoiding all fixed denominators and rank witnesses" + }, + "outer": { + "functional_checks": { + "actual_new_BIT_stock_sublinear": "3485999999253/3500000000000", + "fixed_halo_explicit_metadata_branch": "269500000001/3500000000", + "new_BIT_row_stock_sublinear_in_active_group": "13957999997009/14000000000000", + "new_semantic_group_guard": "3/14000000000" + }, + "margins": { + "boundary_algebraic_matrix": "608497735956535877/196000000000000000000", + "fused_gaussian": "608497735869607631/196000000000000000000", + "global_coordinate_router": "10866031/3500000000", + "group_bit_router": "152124437467401907/49000000000000000000", + "group_scans": "6999999999/7000000000", + "main_transform": "608497721956535877/196000000000000000000", + "microbox_face_corrections": "269500000001/3500000000", + "polynomial_products": "13999999999/14000000000", + "sparse_union_movement": "80233497735956535877/196000000000000000000" + }, + "parameters": { + "a": "10866031/3500000000", + "b": "347713/112000000", + "beta": "13999999997/14000000000", + "bit_saving": "17/5000", + "cap_xi": "178233497721956535877/196000000000000000000", + "complex_uniform_saving": "21732063/7000000000", + "d": "1/14000000000", + "epsilon": "13999999999/14000000000", + "kappa": "155229/50000000", + "lambda_": "3987581679/4000000000", + "lambda_prime": "13956535877/14000000000", + "layout": "1/14000000000", + "q": "43464123/14000000000", + "r0": "1/140000000000", + "stop": "1/14000000000", + "tested_saving": "6209161/2000000000" + }, + "strict_checks": { + "actual_bit_above_effective": "1033969/3500000000", + "actual_logarithmic_gamma_guard": "1/14000000000", + "actual_logarithmic_group_guard": "17766502299043464123/98000000000000000000", + "alpha_logarithm_absorption": "1/140000000000", + "boundary_algebraic_matrix_above_kappa": "55956535877/196000000000000000000", + "cap_above_band": "80233497721956535877/196000000000000000000", + "cap_below_cell": "17766502264043464123/196000000000000000000", + "cap_below_phase_cell_power": "213766502278043464123/196000000000000000000", + "complex_above_effective": "1/14000000000", + "complex_below_one_over_32": "3152287/112000000", + "complex_endpoint": "1/7000000000", + "epsilon_below_one": "1/14000000000", + "epsilon_positive": "13999999999/14000000000", + "fine_prime_halo_umbrella": "7/2", + "fused_gaussian_above_kappa": "55869607631/196000000000000000000", + "gaussian_above_main": "6956535877/98000000000000000000", + "global_coordinate_router_above_kappa": "1/3500000000", + "global_gamma_power_slack": "9/140000000000", + "group_below_dimension": "1/7000000000", + "group_bit_router_above_kappa": "17467401907/49000000000000000000", + "group_gauge_power_slack": "17766502298343464123/98000000000000000000", + "group_key_fits_record": "1/7000000000", + "group_positive": "13999999997/14000000000", + "group_scans_above_kappa": "6978267939/7000000000", + "halo_covers_generic_inverse_radius": "5", + "improvement_over_user_baseline": "686804790400418148631/500000000000000000000000", + "lambda_above_internal": "1/28000000000", + "lambda_above_sigma": "3/28000000000", + "lambda_above_tau": "1/28000000000", + "lambda_prime_above_lambda": "1/28000000000", + "lambda_prime_above_leaf": "223652287/1568000000000000000", + "leaf_saving_above_effective": "111652287/1568000000000000000", + "main_transform_above_kappa": "41956535877/196000000000000000000", + "membership_arithmetic_fits_record": "1/14000000000", + "microbox_face_corrections_above_kappa": "269489133971/3500000000", + "microbox_halo_volume": "1106000000003/14000000000", + "new_complex_uniform_saving_above_b": "1/14000000000", + "new_semantic_guard_with_C1_one": "1/14000000000", + "polynomial_products_above_kappa": "13956535879/14000000000", + "positive_layout_slack": "1/14000000000", + "q_below_effective": "1/14000000000", + "q_below_internal": "1/14000000000", + "q_below_leaf": "223652287/1568000000000000000", + "q_positive": "43464123/14000000000", + "short_record_fallback": "111652287/112000000", + "source_axis_superpolynomial": "1/14000000000", + "sparse_union_movement_above_kappa": "79625000055956535877/196000000000000000000", + "stop_below_one": "13999999999/14000000000", + "stop_positive": "1/14000000000", + "strassen_integer_power_gap": "1951441519231", + "support_router_span": "3/14000000000", + "theta_positive_polynomial_power": "2", + "union_header_fits_record": "3/14000000000", + "union_tag_work_per_visit_fits_record": "3/14000000000" + } + }, + "paid": { + "1": 41160, + "16": 416, + "2": 8226, + "24": 416, + "3": 8874, + "32": 416, + "4": 1638, + "40": 416, + "48": 416, + "5": 2916, + "56": 416, + "6": 342, + "64": 416, + "7": 270, + "72": 208 + }, + "paid_calls": 66546, + "previous_open_pr5601": "155220273/50000000000", + "productive_fields": 12958, + "query_shears": 15, + "rank_mass_surplus": 760, + "raw_ceiling": { + "derivative_upper": "-740652532917121353648727598109847061213602736923586290417876337/3138550867693340381917894711603833208051177722232017256448", + "interval": [ + "0", + "17/5000" + ] + }, + "raw_headroom": [ + "164639/25000000000000", + "658557/100000000000000" + ], + "raw_root_interval": [ + "77614664639/25000000000000", + "310458658557/100000000000000" + ], + "relative_gain_percent": "290900/51740091", + "strictification": { + "alpha": { + "lower": "0.999999993807112591662250764905", + "upper": "0.999999993807112591662250764906" + }, + "cutoff": 17, + "delta": { + "lower": "0.967529933442697782667099686380", + "upper": "0.967529933442697782667099686381" + }, + "floor": 18, + "gamma": { + "lower": "0.968063886259541319614126023064", + "upper": "0.968063886259541319614126023065" + }, + "normalized_paid_upper": "1048576000976562501/1048576001073741824", + "power": 1024, + "reserve": "1/1000000000000", + "tail_block": 128, + "tail_decay": "39/40", + "tail_offset": "1/5", + "tested": "6209161/2000000000" + }, + "targets": { + "1": 36, + "145": 208, + "17": 416, + "2": 72, + "25": 416, + "33": 416, + "4": 1638, + "41": 416, + "49": 416, + "5": 108, + "57": 416, + "65": 416, + "7": 90, + "73": 208, + "8": 288, + "9": 7398 + }, + "whole_idle_jobs": 3120 + }, + "controls": { + "missing_A2_correction": "All public and owned rows", + "missing_central_translation": "Rejected by the complete Laurent endpoint", + "undercharged_child": "Complete rank surplus", + "wrong_new_contact_frame": "Scalar destination and coefficient" + }, + "local": { + "endpoint_coefficients": 565504, + "helpers": { + "1": 2, + "2": 4, + "4": 91, + "5": 6, + "7": 5, + "8": 16, + "9": 411 + }, + "owned_fields": 9, + "owned_lifetimes": 11, + "paid": { + "1": 2200, + "2": 457, + "3": 493, + "4": 91, + "5": 162, + "6": 19, + "7": 15 + }, + "paid_rank_mass": 5986, + "peak_owned_fields": 2, + "public_inputs": 743, + "real_scalar_allowance": 220166 + }, + "native": { + "distinct_maps": 2916, + "helper_normalizers": 1070, + "helpers": { + "1": 2, + "2": 4, + "4": 91, + "5": 6, + "7": 5, + "8": 16, + "9": 411 + }, + "main_adapters": 208, + "proof": "Every signed Pauli image and exact global phase; frame induction at every positive tensor width", + "recipe_payload_sha256": "e2b50e4067abb6ce5255be46754c1a3996d179cd95f949a86249762539138ef3", + "wrong_phase_rejected": true + }, + "physical": { + "central_square_columns": 53248, + "full_calls": 18, + "main_targets": { + "145": 208, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208 + }, + "new_paid_jobs": 0, + "physical_contacts": 7488, + "ports": 104, + "route_payload_sha256": "7f4f0ca768ffbc4f93dcff575592c4c67411f46b4289e45b73f715a2ad47b142", + "tensor_rule": "Factorwise native maps; scalar signs stay outside the tensor power.", + "whole_idle_jobs": { + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 416, + "72": 208 + }, + "wrapper_sites": [ + 1, + 3, + 5, + 7, + 9, + 11, + 13, + 15, + 17, + 19, + 21, + 23, + 25, + 27, + 29, + 31 + ] + }, + "source_foundation_matches": [ + "research/p104-productive-controller/caller.py", + "research/p104-productive-controller/CONTROLLER.json", + "research/joint-helper-lattice/CONTROLLER.json", + "research/p104-native-channel/vendor/clifford_exact.py", + "research/p104-native-channel/vendor/native_verify.py", + "research/pr4359-p7-padding/native_inventory.py", + "research/kappa-0023-productive-jobs/dependencies/kappa-next-regime/direct-decoder/sources/DATA-PHASES.json", + "research/higher-moment-strictification/verify.py", + "research/kappa-rebuild/architecture/mixed_target_probe.py", + "research/pr4359-p7-padding/dependencies/compiler-refill/endpoint.py", + "research/query-thinned-controllers/RESULT.json", + "research/p104-productive-controller/local.py" + ], + "source_head": "ed4dc88a09a7d201971f6603b8c2074e95dd9c32", + "source_pr": 5627, + "status": "PASS_P104_A2_KAPPA_00310458", + "transpose": { + "arithmetic": "Dense integer rows with binary denominators; reverse chronology", + "coefficients": 565504, + "columns": 752 + }, + "wall_seconds": "156.498" +} diff --git a/research/p104-a2-paid-rank-exchange/SOURCES.json b/research/p104-a2-paid-rank-exchange/SOURCES.json new file mode 100644 index 0000000000..40857a52ba --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/SOURCES.json @@ -0,0 +1,102 @@ +{ + "schema_version": 1, + "base_commit": "f626db5c3a3d781d8f7695038776c621651f75e1", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "ed33caef5c5827693e9572d252a66f99cbb73d40", + "sha256": "5732707cc1e460b090b53f2463162749ad860de878a18f7408938671d295a9d9" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "64bfc5af6709ed9811171e0a2108f05e1219cb65", + "sha256": "352a6184713b8843d96fd2c2071eb7aeaa655906b7c51d45ad444912666c8a96" + } + ], + "source_pr": 5627, + "source_head": "ed4dc88a09a7d201971f6603b8c2074e95dd9c32", + "comparison_kappa": "0.00310440546", + "retained_inputs": [ + { + "local_path": "inputs/pr5612/SOURCES.json", + "size": 5008, + "sha256": "20a101adf25437cfa63110f0b8cb63b31001af0d4a6d7488ceffd27e63f4b0b4", + "git_blob": "4e7fa4ba58f8316ef9aba90d53d197172f65dbb6" + }, + { + "local_path": "inputs/pr5612/inputs/pr5601-CHANGES.json", + "size": 637, + "sha256": "cc9c3088d509e56362b552cd79875bce45531c2183f3ac0b83a6d75e0d462467", + "git_blob": "a46098f911d6483fcba9e3c89ac2d24e24cb1a74" + }, + { + "local_path": "inputs/pr5612/inputs/pr5601-construct.py", + "size": 2507, + "sha256": "40aa1dd9aa9faca1a4faae7f923e90f216dc74267a92922e02d495222f07abdc", + "git_blob": "2506f4bdc82be48ea3e97e3eabc1f96cd0f61329" + }, + { + "local_path": "inputs/pr5612/inputs/pr5606-construct.py", + "size": 1522, + "sha256": "037d5f00f1c92b6f59020f90f11345251b429ba2bb2c39a65966b5e73094756a", + "git_blob": "e2c1473be00e78b91b4139493e31e47b591ac0df" + }, + { + "local_path": "inputs/pr5612/inputs/pr5606-prepared.py", + "size": 5872, + "sha256": "166d3362f5a776d422412efc5e905fb3ace13caa1e715b870b175295e145a4eb", + "git_blob": "6eae5764287d6325ad372400480a0447a12568a7" + }, + { + "local_path": "inputs/pr5612/inputs/pr5606-pricing.py", + "size": 9765, + "sha256": "c7e2a95c1a285982e0db9a9b881154ecda1ee76031cf216909e30b4939dd841a", + "git_blob": "02efc04ddec40b9cec9f785b00fd20841be6009d" + }, + { + "local_path": "inputs/pr5612/inputs/pr5608-source.tar.gz", + "size": 1030364, + "sha256": "dbded26ad3b6f7800c6e3b76aaee4df3e86dcb2278bb882d97fe3007f76e0712", + "git_blob": "404e95f089c10ea0589934ea45160d8604468b68" + }, + { + "local_path": "inputs/pr5612/sources.py", + "size": 2664, + "sha256": "a4524e1597f794fb071351d2fd192c0df296c89b08f1cc73c80adb218283c6d8", + "git_blob": "fce090a6b72958277da8716a16aceec5e8b3e04c" + }, + { + "local_path": "inputs/pr5627-RESULT.json", + "size": 15990, + "sha256": "f24925b2f549dce6ff404bd9d35fb0a19e5ebc5fa5cbf67996fd4064e450137b", + "git_blob": "1e90afdd0372980c68c1a444a6c0fe5f1e7da7c2" + }, + { + "local_path": "inputs/pr5627-SOURCES.json", + "size": 10676, + "sha256": "3f530d4409fa3b55211bb1ae7a616369cf6e9cd85f8eec7a74293c3dcd2b04af", + "git_blob": "bb8cb5eca312aa302fe442885e028d04a822f6e4" + }, + { + "local_path": "inputs/pr5627-WORD.json.gz", + "size": 107885, + "sha256": "162e6f13a6e3805517946309bd6247eaa45b337ab9c39621806b254b415075ec", + "git_blob": "b60955f312f76d08ee4f86ac2ad664e3ab4e46ea" + }, + { + "local_path": "inputs/pr5627-local.py", + "size": 9392, + "sha256": "716d01a342467f87b14d67853d8de30740f9f2fa881afe271db0df5ef8b19697", + "git_blob": "e72cb02dba9b68d3bd5934371b5d25a44589c482" + }, + { + "local_path": "inputs/pr5627-pricing.py", + "size": 10146, + "sha256": "2e783d890833dd8c12320964965c91c38a82a3b3943acb6e5cd1a6246a20bb00", + "git_blob": "430934914b1cc653e8ea1da91e90f5da9192d41f" + } + ], + "source_routing": "Exact-commit GitHub Download raw file; retained bytes bound here. Foreign Git objects are not available in this checkout." +} diff --git a/research/p104-a2-paid-rank-exchange/TASK.json b/research/p104-a2-paid-rank-exchange/TASK.json new file mode 100644 index 0000000000..86176b9c8d --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/TASK.json @@ -0,0 +1,118 @@ +{ + "schema_version": 1, + "task_id": "scalar-to-moment", + "priority_revision": 7, + "base_commit": "f626db5c3a3d781d8f7695038776c621651f75e1", + "original_card": { + "id": "scalar-to-moment", + "question": "Can a changed frame itinerary remove a paid transition beyond the already covered scalar A2 contractions?", + "starting_points": [ + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "research/staged544-a2-graph-rewrite/README.md", + "research/staged544-separated-a2/README.md", + "research/staged544-a2-composition-audit/README.md", + "research/staged544-a1858-contraction-audit/README.md" + ], + "methods": [ + "Derive the changed legal frame itinerary and exact child histogram.", + "Prove a scoped obstruction showing why that scalar gain cannot change the paid contract." + ], + "acceptance_gate": "An unchanged histogram is not a kappa gain; record any separate runtime or proof benefit explicitly.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read the A2 and separated-A2 constructions and their composition/contraction audits. Scalar contractions can preserve the complete recursive histogram; fewer ADDs alone do not justify further scans.", + "scope": "Source-binding orientation only; no scientific replay, theorem acceptance or supplier admission. Budget any heavy replay separately." + }, + "first_experiment": "Identify an actual paid transition to remove and construct a legal replacement frame itinerary, charging restoration, source windows and changed helpers. Compare complete before/after histograms. Stop if only scalar count changes; report that benefit honestly, without expanding the same scalar-only census.", + "bottleneck_link": "A legal change to the histogram, not addition count alone, is the bridge to an exponent gain.", + "allowed_variations": [ + "One existing scalar simplification and one proposed frame-path change." + ], + "scope_change_triggers": [ + "Submitting only another scalar count as completion of a paid-profile task." + ], + "overlap_terms": [ + "scalar simplification", + "paid profile", + "R439", + "3998", + "4019", + "4112", + "4152", + "staged544-a2-graph-rewrite", + "staged544-separated-a2", + "staged544-a2-composition-audit", + "staged544-a1858-contraction-audit" + ], + "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_status": "refined", + "actual_scope": "Apply one literal two-to-three A2 graph rewrite to PR5627 and reassemble legal native frame paths to replace H3+H5 by H2+H6, retaining every productive target and checking the full conditional kappa.", + "scope_change_reason": "The user assigned the next kappa improvement; this is an actual paid-profile change on the newer P104 word rather than another scalar-only contraction on the older staged544 word.", + "bottleneck_link": "The exact local paid moment drops at every exponent between zero and one; the full eighteen-call supplier and outer transfer certify a higher conditional kappa.", + "budget_minutes": 60, + "stop_rule": "Stop at one exact paid-profile improvement, full source-bound replay, explicit raw ceiling and headroom; do not claim a global optimum or selected promotion.", + "outcome": "completed", + "evidence": "RESULT.json, REPLAY.log, INDEPENDENT-AUDIT.md and verify.py. Full native, physical caller, both exact moment engines, compiler and 58 outer predicates pass.", + "author": "zxv, with substantial OpenAI Codex assistance", + "ai_assistance": "Substantial OpenAI Codex assistance. The main agent ran the source and complete candidate replays; five subagents explored complementary mechanisms, and a separate native-factor agent audited the successful A2 identity and frame implication.", + "open_questions": [ + { + "question": "Does another compatible noncommuting shear rewrite improve this emitted word?", + "why_it_matters": "The positive step escapes fixed-graph commuting retiming screens.", + "first_step": "Screen a bounded different scalar motif, construct the combined word, and compare its fully charged moment.", + "blocked_by": "No further positive candidate is claimed." + }, + { + "question": "Can an independent reviewer reproduce the new native maps and all-column frame invariant?", + "why_it_matters": "Agent cross-checks do not replace independent scientific acceptance.", + "first_step": "Run the isolated verifier and audit.py, then inspect the frame induction in INDEPENDENT-AUDIT.md.", + "blocked_by": "The same five inherited framework hypotheses remain." + } + ], + "source_comparison": { + "pr": 5627, + "head": "ed4dc88a09a7d201971f6603b8c2074e95dd9c32", + "kappa": "0.00310440546" + }, + "refresh_limitation": "Canonical fetch was attempted but .git/FETCH_HEAD is protected. Source commits were instead read and downloaded through exact-commit GitHub pages. The current live open-PR list was checked through PR5635; cached broad overlap is older." +} diff --git a/research/p104-a2-paid-rank-exchange/VALIDATION.json b/research/p104-a2-paid-rank-exchange/VALIDATION.json new file mode 100644 index 0000000000..2ced9bd72f --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/VALIDATION.json @@ -0,0 +1,30 @@ +{ + "status": "PASS", + "python": "3.12.8 (main, Dec 7 2024, 10:11:37) [Clang 15.0.0 (clang-1500.3.9.4)]", + "platform": "macOS-26.5.1-arm64-arm-64bit", + "registered_replay": "PASS_REGISTERED_RESEARCH_PACKAGE research/p104-a2-paid-rank-exchange outcome=completed", + "source_bound_full_replay_log": "REPLAY.log", + "isolated_optimized_full_replay_log": "OPTIMIZED-REPLAY.log", + "registered_replay_log": "REGISTERED-REPLAY.log", + "source_foundation_matches": [ + "research/p104-productive-controller/caller.py", + "research/p104-productive-controller/CONTROLLER.json", + "research/joint-helper-lattice/CONTROLLER.json", + "research/p104-native-channel/vendor/clifford_exact.py", + "research/p104-native-channel/vendor/native_verify.py", + "research/pr4359-p7-padding/native_inventory.py", + "research/kappa-0023-productive-jobs/dependencies/kappa-next-regime/direct-decoder/sources/DATA-PHASES.json", + "research/higher-moment-strictification/verify.py", + "research/kappa-rebuild/architecture/mixed_target_probe.py", + "research/pr4359-p7-padding/dependencies/compiler-refill/endpoint.py", + "research/query-thinned-controllers/RESULT.json", + "research/p104-productive-controller/local.py" + ], + "scope": "Actual cold source-export reader and complete candidate native/caller/moment/compiler/outer replay; independent agent scalar/frame/paid-delta audit. No historical suites or Lean replay.", + "not_run": [ + "Hosted CI", + "Publication committed-byte preflight (checkout .git is protected and package is not committed)", + "Independent human or proof-kernel audit" + ], + "source_files_unchanged_during_registered_replay": true +} diff --git a/research/p104-a2-paid-rank-exchange/VERIFY.json b/research/p104-a2-paid-rank-exchange/VERIFY.json new file mode 100644 index 0000000000..f17d47c258 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/VERIFY.json @@ -0,0 +1,41 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [], + "commands": [ + { + "argv": [ + "{python}", + "-B", + "{package}/verify.py", + "--quick" + ], + "timeout_seconds": 60, + "checks": "Source hashes, full candidate regeneration, exact arbitrary-input/frame replay and unchanged productive targets." + }, + { + "argv": [ + "{python}", + "-I", + "-O", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 600, + "checks": "Dense transpose, every signed native map/global phase, full caller, two exact moment engines, complete compiler/BIT stock/58 outer conditions and rejection controls." + }, + { + "argv": [ + "{python}", + "-I", + "-O", + "-B", + "{package}/audit.py" + ], + "timeout_seconds": 60, + "checks": "Separately implemented three-column A2 identity, complete scalar-word delta, fixed boundaries and exact child-profile change." + } + ] +} diff --git a/research/p104-a2-paid-rank-exchange/WORD.json.gz b/research/p104-a2-paid-rank-exchange/WORD.json.gz new file mode 100644 index 0000000000..7cf851189d Binary files /dev/null and b/research/p104-a2-paid-rank-exchange/WORD.json.gz differ diff --git a/research/p104-a2-paid-rank-exchange/audit.py b/research/p104-a2-paid-rank-exchange/audit.py new file mode 100644 index 0000000000..ab7f44cb5b --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/audit.py @@ -0,0 +1,52 @@ +"""Independent scoped audit of the proposed P104 A2 paid exchange. + +Prepared for zxv with substantial OpenAI Codex assistance. Apache-2.0. +The transport agent supplies the construction; all source P104 credit remains. +This checks the exact local rewrite and invoice, not the full inherited theorem. +""" +from fractions import Fraction as Q +from collections import Counter +from pathlib import Path +from hashlib import sha256 +import gzip,json +HERE=Path(__file__).resolve().parent +SOURCE=HERE/'inputs/pr5627-WORD.json.gz' +CANDIDATE=HERE/'WORD.json.gz' +def need(ok,why): + if not ok:raise ValueError(why) +def read(p):return json.loads(gzip.decompress(p.read_bytes())) +def add(row,other,q): + for k,v in other.items(): + z=row.get(k,0)+q*v + if z:row[k]=z + else:row.pop(k,None) +def matrix(events): + rows={r:{r:Q(1)} for r in (340,388,715)} + for e in events:add(rows[e[1]],rows[e[2]],Q(e[-2])) + return rows +def span(b): + s={0} + for v in b:s|={x^v for x in tuple(s)} + return s +w,v=read(SOURCE),read(CANDIDATE) +old=[['ADD',388,715,'-4',825],['ADD',340,388,'1',825]] +new=[['ADD',340,715,'-4',396],['ADD',340,388,'1',825],['ADD',388,715,'-4',127]] +a=[e for e in w['program'] if e[0]!='MOVE'];b=[e for e in v['program'] if e[0]!='MOVE'];matches=[i for i in range(len(a)-1) if a[i:i+2]==old] +need(len(matches)==1,'Unique adjacent scalar motif');k=matches[0] +need(b==a[:k]+new+a[k+2:],'Only the exact three-register scalar rewrite') +need(matrix(old)==matrix(new),'All three arbitrary-input columns') +need(all(w[k]==v[k] for k in ('public','owned_fields','initial','final','ports','live','frames')),'Every boundary and physical inventory retained') +chain=[598,396,825,127] +need(all(span(w['frames'][a]) 0, 'Independent productive inputs') + return {'paid':dict(paid), 'helpers':dict(helpers), 'public_inputs':749, 'owned_lifetimes':lifetimes, + 'peak_owned_fields':peak, 'real_scalar_allowance':scalar, 'endpoint_coefficients':758*758} + + +def reverse_columns(w): + """Check the transpose with dense dyadic rows and the reverse chronology.""" + n = 758 + rows = [[int(i == j) for j in range(n)] for i in range(n)] + exponents = [0]*n + for e in reversed(w['program']): + op,r = e[:2] + if op == 'MOVE': + continue + if op in ('INIT','CLEAR'): + rows[r] = [0]*n + exponents[r] = 0 + continue + q = Q(e[-2]) + qe = q.denominator.bit_length()-1 + if op == 'SCALE': + rows[r] = [q.numerator*x for x in rows[r]] + exponents[r] += qe + else: + s = e[2] + level = max(exponents[s], exponents[r]+qe) + a, b = 1 << (level-exponents[s]), q.numerator << (level-exponents[r]-qe) + rows[s] = [a*x+b*y for x,y in zip(rows[s],rows[r])] + exponents[s] = level + if op == 'COPY': + rows[r] = [0]*n + exponents[r] = 0 + r = s + while exponents[r] and not any(x & 1 for x in rows[r]): + rows[r] = [x//2 for x in rows[r]] + exponents[r] -= 1 + for r,row in enumerate(rows): + expected = [0]*n + if r < 750 and r != 573: + expected[r] = 1 << exponents[r] + if r in w['live']: + expected[r+112] = 1 << exponents[r] + need(row == expected, 'Independent dense transpose columns') + return {'columns':n, 'coefficients':n*n, 'arithmetic':'Dense integer rows with binary denominators; reverse chronology'} diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5612/inputs/pr5606-pricing.py b/research/p104-a2-paid-rank-exchange/inputs/pr5612/inputs/pr5606-pricing.py new file mode 100644 index 0000000000..02efc04dde --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/inputs/pr5612/inputs/pr5606-pricing.py @@ -0,0 +1,169 @@ +"""Complete mixed-target price, compiler and outer transfer. + +The interval and compiler bounds follow zxv and Cao Yifan. The productive +recursion is by Jacob Alan Sussman. The controller is by Cinna Davis. +Adapted from Ali Romman's PR5544/5545 for the two coupled contact changes. +Successor choices were prepared for thu-nmrc with OpenAI Codex assistance. +Helper-subspace targets were added by Ali Romman with OpenAI Codex assistance. +Ali Romman's complete caller/price proof and all predecessor credit are retained. +Apache-2.0. +""" +from collections import Counter +from fractions import Fraction as Q +import local as L + +KAPPA, TESTED = Q('.00309871'), Q('.0030987101') +PREVIOUS = Q('.00309839') + + +def encode(x): + if isinstance(x,Q): + return str(x) + if isinstance(x,dict): + return {str(k):encode(v) for k,v in x.items()} + if isinstance(x,(list,tuple)): + return [encode(v) for v in x] + return x + + +def assemble(local, native, word, physical): + paid, targets = Counter(), Counter() + counts = Counter() + L.need(local['helpers'] == native['helpers'], 'Every productive helper has a native target') + for e in word['physical_events']: + counts[e[0]] += 1 + if e[0] == 'LOCAL': + L.need(e[3] is False, 'Every source invocation is forward') + paid.update(local['paid']) + targets.update(local['helpers']) + elif e[0] == 'QUERY_SHEAR': + paid[1] += 104 + elif e[0] == 'IDLE': + paid[8*len(e[2])] += 208 + main = Counter() + idle = Counter({8*len(e[2]):0 for e in word['physical_events'] if e[0] == 'IDLE'}) + for e in word['physical_events']: + if e[0] == 'IDLE': + idle[8*len(e[2])] += 208 + L.need(idle == physical['whole_idle_jobs'], 'Every whole idle has a native Gaussian and full rank') + for term in word['diagonal']: + main[1+8*sum(term[1:])] += 104 + L.need(main == physical['main_targets'], 'Every main target has its full native phase') + targets.update(main) + L.need(counts['LOCAL'] == 18 and counts['QUERY_SHEAR'] == counts['IDLE'] == 15, 'Complete call census') + # Recount by the two path lengths, without using emitted main diagonals. + second_t = Counter({r:18*n for r,n in local['helpers'].items()}) + second_p = Counter({r:18*n for r,n in local['paid'].items()}) + second_t[145] += 208 + second_p[1] += 15*104 + for length in (7,8): + for j in range(1,length+1): + second_t[1+8*(j+1)] += 208 + second_p[8*(j+1)] += 208 + L.need((targets,paid) == (second_t,second_p), 'Independent full invoice') + L.need(max(targets) == 145 and max(paid) == 72, 'Maximum recursive ranks') + L.need(sum(targets.values()) == 13066 and sum(paid.values()) == 66816, 'Complete field and call counts') + L.need(sum(r*n for r,n in targets.items())-sum(r*n for r,n in paid.items()) == 760, 'Complete rank surplus') + return targets,paid,counts + + +def run(local,native,word,physical): + T,P,counts = assemble(local,native,word,physical) + E = L.load(L.ROOT/'research/higher-moment-strictification/verify.py','p104_productive_intervals') + other = L.load(L.ROOT/'research/kappa-rebuild/architecture/mixed_target_probe.py','p104_productive_second_intervals') + def margin(k): + a,b = E.moment(T,1-k), E.moment(P,1-k) + return a[0]-b[1],a[1]-b[0] + lo,hi,grid = 0,10**12,10**14 + while hi-lo > 1: + m=(lo+hi)//2 + if margin(Q(m,grid))[0] > 0: + lo=m + else: + hi=m + lower,upper = Q(lo,grid),Q(hi,grid) + signed = Counter(T) + signed.subtract(P) + cap = Q('.0034') + derivative_upper = Q(0) + for rank, count in signed.items(): + logarithm = E.log_bounds(rank) + low = E.mul(E.power(rank, 1-cap), logarithm)[0] + high = rank*logarithm[1] + derivative_upper -= count*(low if count >= 0 else high) + L.need(derivative_upper < 0, 'Unique raw crossing below the retained BIT cap') + L.need(margin(lower)[0] > 0 and margin(upper)[1] < 0, 'Strict rational crossing enclosure') + L.need(PREVIOUS < KAPPA < TESTED < lower and margin(PREVIOUS)[0] > 0, 'Changed complete bill improves selected kappa') + t,u,v,c,b = 1-TESTED,Q(1,5),1024,17,18 + target,paid = E.moment(T,t),E.moment(P,t) + tl,th = other.moment(T,TESTED) + pl,ph = other.moment(P,TESTED) + L.need(tl > ph and max(tl,target[0]) <= min(th,target[1]) and max(pl,paid[0]) <= min(ph,paid[1]), 'Two exact moment engines') + alpha = E.divide(paid,target) + gamma = E.divide(E.moment(P,t+u),E.mul(E.power(c,u),target)) + delta = E.divide((Q(sum(T.values())*b),)*2,E.mul(E.power(c,TESTED),target)) + reserve,decay = Q(1,10**10),Q(39,40) + L.need(alpha[1] < 1-reserve and gamma[1] < decay and delta[1] < decay, 'All three charged tail ratios') + L.need(decay**128 < Q(1,16), 'Both tail decay blocks') + normalized = 1/(1+v*reserve)+Q(4,2**32) + L.need(normalized < 1 and c**64 < b**63, 'Full completion, splitting and rounding charges') + theta,power = Q(63,64),1024 + eta = E.scale(E.power(145,-v*TESTED),t) + L.need(2*(c**v)**64 <= (145**v)**63 and eta[0] > theta**power, 'Shifted exits and complement capacity') + L.need(E.power(145,v*TESTED)[1] < 2**power, 'Compiler initial range') + gap = (TESTED-KAPPA)/7 + L.need(gap.numerator == 1, 'Exact compiler integer grid') + step = gap.denominator + def wins(j): + return (step*j+1)**power < 2**j + left,right=1,2 + while not wins(right): + left,right=right,2*right + while right-left > 1: + m=(left+right)//2 + if wins(m): + right=m + else: + left=m + H=step*right + L.need(H > 8*v and wins(right) and not wins(right-1), 'Finite uniform threshold with predecessor rejection') + local_routes = (sum(local['paid'].values())+native['helper_normalizers']+native['main_adapters']+4*104+4*local['owned_lifetimes'])*1000 + L.need(local['real_scalar_allowance']+local_routes < 10**7, 'Every local scalar, route and owned operation is funded') + boundary = sum(len(word['boundaries'][side+'_program']) for side in ('left','right')) + raw = 18*10**7 + 15*1664 + 32*104*(len(word['physical_events'])+boundary) + raw += 32*104*(26+1000) + L.need(raw < 10**9, 'Complete nonrecursive raw bound') + bit = L.read(L.ROOT/'research/query-thinned-controllers/RESULT.json')['ordinary_BIT'] + atom = Q(bit['atom']) + ordinary=(1-atom)*Q(bit['after_cover'])+atom*Q('.0000384599') + admitted=Q(bit['admitted']) + L.need(atom > ordinary > admitted > TESTED and atom < 1-ordinary, 'Retained BIT admission and stock') + outer_module=L.load(L.ROOT/'research/pr4359-p7-padding/dependencies/compiler-refill/endpoint.py','p104_productive_outer') + params={'kappa':KAPPA,'tested_saving':TESTED,'complex_uniform_saving':KAPPA+6*gap, + 'b':KAPPA+5*gap,'a':KAPPA+4*gap,'q':KAPPA+3*gap,'bit_saving':admitted, + 'epsilon':1-gap,'beta':1-3*gap,'r0':gap/10,'stop':gap,'layout':gap,'d':gap} + outer=outer_module.ledger(params) + outer['functional_checks']['actual_new_BIT_stock_sublinear']=params['beta']*(1-atom) + L.need(len(outer['strict_checks']) == 54 and len(outer['functional_checks']) == 4, 'Complete outer predicate inventory') + L.need(all(x > 0 for key in ('strict_checks','functional_checks') for x in outer[key].values()), 'All outer inequalities strict') + wrong_cutoff = E.divide((Q(sum(T.values())*21),)*2,E.mul(E.power(20,TESTED),target)) + L.need(wrong_cutoff[0] > 1, 'Old cutoff fails with this helper inventory') + bad=outer_module.ledger(dict(params,bit_saving=Q('.0027'))) + L.need(any(x <= 0 for x in bad['strict_checks'].values()), 'Insufficient BIT contract rejected') + return encode({'kappa':KAPPA,'kappa_decimal':'.00309871','previous_open_pr5599':PREVIOUS,'gain':KAPPA-PREVIOUS, + 'relative_gain_percent':100*(KAPPA/PREVIOUS-1),'raw_root_interval':[lower,upper], + 'raw_headroom':[lower-KAPPA,upper-KAPPA], + 'raw_ceiling':{'interval':[Q(0),cap],'derivative_upper':derivative_upper},'margin_at_previous':E.display(margin(PREVIOUS)), + 'targets':T,'paid':P,'productive_fields':sum(T.values()),'paid_calls':sum(P.values()), + 'rank_mass_surplus':760,'full_forward_calls':18,'query_shears':15,'whole_idle_jobs':3120, + 'strictification':{'tested':TESTED,'power':v,'cutoff':c,'floor':b,'tail_offset':u,'reserve':reserve,'tail_decay':decay,'tail_block':128, + 'alpha':E.display(alpha),'gamma':E.display(gamma),'delta':E.display(delta),'normalized_paid_upper':normalized}, + 'compiler':{'theta':theta,'logarithm_power':power,'eta':E.display(eta),'gap':gap,'H':H,'N':'2^'+str(H), + 'integer_test_exponent':right,'uniform_saving':params['complex_uniform_saving'],'word_materialized':False}, + 'nonrecursive':{'local_scalar':local['real_scalar_allowance'],'local_routes':local_routes, + 'raw_scalar_upper':raw,'raw_budget':10**9,'peak_owned_fields':local['peak_owned_fields'], + 'fixed_scalar_growth_bound':'At most 2^(16*26000) before native factors; a declared constant, not an attained norm.', + 'local_paid_rank_mass':sum(r*n for r,n in local['paid'].items()), + 'tensor_native_growth_bound':'Each rank-r Gaussian has row l1 norm at most 2^(rf); use local_paid_rank_mass for the whole word.'}, + 'ordinary_BIT':bit,'outer':outer, + 'negative_controls':{'old_cutoff':'Rejected by completion-tail ratio greater than one','old_BIT':'Rejected by outer inequalities'}}) diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5612/inputs/pr5608-source.tar.gz b/research/p104-a2-paid-rank-exchange/inputs/pr5612/inputs/pr5608-source.tar.gz new file mode 100644 index 0000000000..404e95f089 Binary files /dev/null and b/research/p104-a2-paid-rank-exchange/inputs/pr5612/inputs/pr5608-source.tar.gz differ diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5612/sources.py b/research/p104-a2-paid-rank-exchange/inputs/pr5612/sources.py new file mode 100644 index 0000000000..fce090a6b7 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/inputs/pr5612/sources.py @@ -0,0 +1,42 @@ +"""Authenticate the official PR5608 export before importing its source closure. + +Prepared for flyingviper with substantial OpenAI Codex assistance. Apache-2.0. +Source-export format and payload checks follow the retained repository exporter. +""" +from contextlib import contextmanager +from hashlib import sha256,sha1 +from pathlib import Path,PurePosixPath +import gzip,importlib.util,io,json,sys,tarfile,tempfile +HERE=Path(__file__).resolve().parent +def need(ok,why): + if not ok:raise ValueError(why) +def read(path): + raw=Path(path).read_bytes();return json.loads(gzip.decompress(raw) if str(path).endswith('.gz') else raw) +def load(path,name): + spec=importlib.util.spec_from_file_location(name,path);m=importlib.util.module_from_spec(spec);sys.modules[name]=m;spec.loader.exec_module(m);return m +@contextmanager +def sources(): + pins=read(HERE/'SOURCES.json') + for p in pins['external_inputs']: + raw=(HERE/p['local_path']).read_bytes() + need(sha256(raw).hexdigest()==p['sha256'],'Pinned source SHA256 '+p['local_path']) + need(sha1(('blob '+str(len(raw))+'\0').encode()+raw).hexdigest()==p['git_blob'],'Pinned source blob '+p['local_path']) + pin=pins['source_export'];raw=(HERE/pin['local_path']).read_bytes() + need(sha256(raw).hexdigest()==pin['sha256'],'Exact published export archive') + with tempfile.TemporaryDirectory(prefix='p104-composed-source-') as directory: + root=Path(directory) + with tarfile.open(fileobj=io.BytesIO(gzip.decompress(raw))) as bundle: + names=[] + for m in bundle.getmembers(): + p=PurePosixPath(m.name) + need(m.isfile() and not p.is_absolute() and '..' not in p.parts and '\\' not in m.name and ':' not in m.name,'Regular relative source file') + need(m.name not in names,'Unique export path');names.append(m.name) + target=root.joinpath(*p.parts);target.parent.mkdir(parents=True,exist_ok=True);target.write_bytes(bundle.extractfile(m).read()) + manifest=read(root/'.research-export.json') + need(manifest['commit']==pin['commit'] and len(manifest['files'])==pin['files'],'Exact published source inventory') + need(set(names)=={'.research-export.json'}|{r['path'] for r in manifest['files']},'No omitted or extra source payload') + for r in manifest['files']: + b=(root/r['path']).read_bytes();need(len(b)==r['size'] and sha256(b).hexdigest()==r['sha256'],'Authenticated source payload '+r['path']) + package=root/pin['package'] + common=load(package/'common.py','retained_source_common') + with common.closure() as framework:yield package,framework diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5627-RESULT.json b/research/p104-a2-paid-rank-exchange/inputs/pr5627-RESULT.json new file mode 100644 index 0000000000..1e90afdd03 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/inputs/pr5627-RESULT.json @@ -0,0 +1,597 @@ +{ + "authenticated_inputs": 18, + "boundaries": [ + { + "cut": 11382, + "events": 25181, + "helper": 652, + "helpers": { + "4": 85, + "5": 4, + "8": 14, + "9": 424 + }, + "paid": { + "1": 2202, + "2": 456, + "3": 494, + "4": 91, + "5": 167, + "6": 18, + "7": 15 + }, + "reverse": true + }, + { + "cut": 11167, + "events": 25178, + "helper": 341, + "helpers": { + "4": 86, + "5": 4, + "8": 14, + "9": 423 + }, + "paid": { + "1": 2202, + "2": 456, + "3": 494, + "4": 91, + "5": 166, + "6": 18, + "7": 15 + }, + "reverse": false + }, + { + "cut": 11400, + "events": 25180, + "helper": 596, + "helpers": { + "4": 87, + "5": 4, + "8": 14, + "9": 422 + }, + "paid": { + "1": 2202, + "2": 456, + "3": 494, + "4": 91, + "5": 165, + "6": 18, + "7": 15 + }, + "reverse": true + }, + { + "cut": 11471, + "events": 25182, + "helper": 668, + "helpers": { + "4": 88, + "5": 4, + "8": 14, + "9": 421 + }, + "paid": { + "1": 2202, + "2": 456, + "3": 494, + "4": 91, + "5": 164, + "6": 18, + "7": 15 + }, + "reverse": true + }, + { + "cut": 11515, + "events": 25184, + "helper": 684, + "helpers": { + "4": 89, + "5": 4, + "8": 14, + "9": 420 + }, + "paid": { + "1": 2202, + "2": 456, + "3": 494, + "4": 91, + "5": 163, + "6": 18, + "7": 15 + }, + "reverse": true + } + ], + "complete_cost": { + "compiler": { + "H": 80511200000000000, + "N": "2^80511200000000000", + "eta": { + "lower": "0.000000134230972128213080564458", + "upper": "0.000000134230972128213080564459" + }, + "gap": "1/1400000000000", + "integer_test_exponent": 57508, + "logarithm_power": 1024, + "theta": "63/64", + "uniform_saving": "86923353/28000000000", + "word_materialized": false + }, + "full_forward_calls": 18, + "gain": "922773/50000000000", + "kappa": "155220273/50000000000", + "kappa_decimal": ".00310440546", + "margin_at_previous": { + "lower": "4.488346782018422611631558671661", + "upper": "4.488346782018422611631558671662" + }, + "negative_controls": { + "old_BIT": "Rejected by outer inequalities", + "old_cutoff": "Rejected by completion-tail ratio greater than one" + }, + "nonrecursive": { + "fixed_scalar_growth_bound": "At most 2^(16*26000) before native factors; a declared constant, not an attained norm.", + "local_paid_rank_mass": 5986, + "local_routes": 5175000, + "local_scalar": 220154, + "peak_owned_fields": 2, + "raw_budget": 1000000000, + "raw_scalar_upper": 184647552, + "tensor_native_growth_bound": "Each rank-r Gaussian has row l1 norm at most 2^(rf); use local_paid_rank_mass for the whole word." + }, + "ordinary_BIT": { + "admitted": "17/5000", + "after_cover": "69/20000", + "atom": "1/250", + "before_cover": "3459/1000000", + "ordinary_saving": "8590884599/2500000000000", + "prime_rule": "odd q > 2^26*N^5 avoiding all fixed denominators and rank witnesses" + }, + "outer": { + "functional_checks": { + "actual_new_BIT_stock_sublinear": "348599999999253/350000000000000", + "fixed_halo_explicit_metadata_branch": "26950000000001/350000000000", + "new_BIT_row_stock_sublinear_in_active_group": "1395799999997009/1400000000000000", + "new_semantic_group_guard": "3/1400000000000" + }, + "margins": { + "boundary_algebraic_matrix": "6084634707195653832353/1960000000000000000000000", + "fused_gaussian": "6084634707186961497059/1960000000000000000000000", + "global_coordinate_router": "135817739/43750000000", + "group_bit_router": "190144834643342546783/61250000000000000000000", + "group_scans": "699999999999/700000000000", + "main_transform": "6084634705795653832353/1960000000000000000000000", + "microbox_face_corrections": "26950000000001/350000000000", + "polynomial_products": "1399999999999/1400000000000", + "sparse_union_movement": "802334634707195653832353/1960000000000000000000000" + }, + "parameters": { + "a": "135817739/43750000000", + "b": "4346167649/1400000000000", + "beta": "1399999999997/1400000000000", + "bit_saving": "17/5000", + "cap_xi": "1782334634705795653832353/1960000000000000000000000", + "complex_uniform_saving": "86923353/28000000000", + "d": "1/1400000000000", + "epsilon": "1399999999999/1400000000000", + "kappa": "155220273/50000000000", + "lambda_": "79751647563/80000000000", + "lambda_prime": "1395653832353/1400000000000", + "layout": "1/1400000000000", + "q": "4346167647/1400000000000", + "r0": "1/14000000000000", + "stop": "1/1400000000000", + "tested_saving": "620881093/200000000000" + }, + "strict_checks": { + "actual_bit_above_effective": "12932261/43750000000", + "actual_logarithmic_gamma_guard": "1/1400000000000", + "actual_logarithmic_group_guard": "177665365296304346167647/980000000000000000000000", + "alpha_logarithm_absorption": "1/14000000000000", + "boundary_algebraic_matrix_above_kappa": "5595653832353/1960000000000000000000000", + "cap_above_band": "802334634705795653832353/1960000000000000000000000", + "cap_below_cell": "177665365292804346167647/1960000000000000000000000", + "cap_below_phase_cell_power": "2137665365294204346167647/1960000000000000000000000", + "complex_above_effective": "1/1400000000000", + "complex_below_one_over_32": "39403832351/1400000000000", + "complex_endpoint": "1/700000000000", + "epsilon_below_one": "1/1400000000000", + "epsilon_positive": "1399999999999/1400000000000", + "fine_prime_halo_umbrella": "7/2", + "fused_gaussian_above_kappa": "5586961497059/1960000000000000000000000", + "gaussian_above_main": "695653832353/980000000000000000000000", + "global_coordinate_router_above_kappa": "1/350000000000", + "global_gamma_power_slack": "9/14000000000000", + "group_below_dimension": "1/700000000000", + "group_bit_router_above_kappa": "218342546783/61250000000000000000000", + "group_gauge_power_slack": "177665365296234346167647/980000000000000000000000", + "group_key_fits_record": "1/700000000000", + "group_positive": "1399999999997/1400000000000", + "group_scans_above_kappa": "697826916177/700000000000", + "halo_covers_generic_inverse_radius": "5", + "improvement_over_user_baseline": "686717520400418148631/500000000000000000000000", + "lambda_above_internal": "1/2800000000000", + "lambda_above_sigma": "3/2800000000000", + "lambda_above_tau": "1/2800000000000", + "lambda_prime_above_lambda": "1/2800000000000", + "lambda_prime_above_leaf": "2795653832351/1960000000000000000000000", + "leaf_saving_above_effective": "1395653832351/1960000000000000000000000", + "main_transform_above_kappa": "4195653832353/1960000000000000000000000", + "membership_arithmetic_fits_record": "1/1400000000000", + "microbox_face_corrections_above_kappa": "2694891345809/35000000000", + "microbox_halo_volume": "110600000000003/1400000000000", + "new_complex_uniform_saving_above_b": "1/1400000000000", + "new_semantic_guard_with_C1_one": "1/1400000000000", + "polynomial_products_above_kappa": "279130766471/280000000000", + "positive_layout_slack": "1/1400000000000", + "q_below_effective": "1/1400000000000", + "q_below_internal": "1/1400000000000", + "q_below_leaf": "2795653832351/1960000000000000000000000", + "q_positive": "4346167647/1400000000000", + "short_record_fallback": "1395653832351/1400000000000", + "source_axis_superpolynomial": "1/1400000000000", + "sparse_union_movement_above_kappa": "796250000005595653832353/1960000000000000000000000", + "stop_below_one": "1399999999999/1400000000000", + "stop_positive": "1/1400000000000", + "strassen_integer_power_gap": "1951441519231", + "support_router_span": "3/1400000000000", + "theta_positive_polynomial_power": "2", + "union_header_fits_record": "3/1400000000000", + "union_tag_work_per_visit_fits_record": "3/1400000000000" + } + }, + "paid": { + "1": 41160, + "16": 416, + "2": 8208, + "24": 416, + "3": 8892, + "32": 416, + "4": 1638, + "40": 416, + "48": 416, + "5": 2934, + "56": 416, + "6": 324, + "64": 416, + "7": 270, + "72": 208 + }, + "paid_calls": 66546, + "previous_open_pr5601": "61719/20000000", + "productive_fields": 12958, + "query_shears": 15, + "rank_mass_surplus": 760, + "raw_ceiling": { + "derivative_upper": "-740697379185468431509527785786174826824653618646482726012475981/3138550867693340381917894711603833208051177722232017256448", + "interval": [ + "0", + "17/5000" + ] + }, + "raw_headroom": [ + "1057/100000000000000", + "529/50000000000000" + ], + "raw_root_interval": [ + "310440547057/100000000000000", + "155220273529/50000000000000" + ], + "relative_gain_percent": "307591/514325", + "strictification": { + "alpha": { + "lower": "0.999999999994326766581078689953", + "upper": "0.999999999994326766581078689954" + }, + "cutoff": 17, + "delta": { + "lower": "0.967529831449501193014279307231", + "upper": "0.967529831449501193014279307232" + }, + "floor": 18, + "gamma": { + "lower": "0.968053457228490967558213760766", + "upper": "0.968053457228490967558213760767" + }, + "normalized_paid_upper": "1048576000976562501/1048576001073741824", + "power": 1024, + "reserve": "1/1000000000000", + "tail_block": 128, + "tail_decay": "39/40", + "tail_offset": "1/5", + "tested": "620881093/200000000000" + }, + "targets": { + "1": 36, + "145": 208, + "17": 416, + "2": 72, + "25": 416, + "33": 416, + "4": 1638, + "41": 416, + "49": 416, + "5": 108, + "57": 416, + "65": 416, + "7": 90, + "73": 208, + "8": 288, + "9": 7398 + }, + "whole_idle_jobs": 3120 + }, + "limits": [ + "The five selected framework assumptions and helper-endpoint contract remain.", + "No complete rounded multiplier or enormous uniform compiler word is materialized.", + "No independent human or proof-kernel acceptance or global optimality is claimed." + ], + "local": { + "endpoint_coefficients": 565504, + "helpers": { + "1": 2, + "2": 4, + "4": 91, + "5": 6, + "7": 5, + "8": 16, + "9": 411 + }, + "owned_fields": 9, + "owned_lifetimes": 11, + "paid": { + "1": 2200, + "2": 456, + "3": 494, + "4": 91, + "5": 163, + "6": 18, + "7": 15 + }, + "paid_rank_mass": 5986, + "peak_owned_fields": 2, + "public_inputs": 743, + "real_scalar_allowance": 220154 + }, + "local_helper_delta": { + "1": 2, + "2": 5, + "4": 2, + "5": 2, + "7": 5, + "8": 2, + "9": -9 + }, + "native": { + "distinct_maps": 2916, + "helper_normalizers": 1070, + "helpers": { + "1": 2, + "2": 4, + "4": 91, + "5": 6, + "7": 5, + "8": 16, + "9": 411 + }, + "main_adapters": 208, + "proof": "Every signed Pauli image and exact global phase; frame induction at every positive tensor width", + "recipe_payload_sha256": "39dc742c360be94a585dd25e3fc37d5a3ef2f505e2bd6c152ad184fbad820133", + "wrong_phase_rejected": true + }, + "negative_controls": { + "contaminated_prefix": "Exact prefix functional; no other input", + "contaminated_suffix": "Exact suffix direction; no other output", + "extra_helper_credit": "Every productive helper has a native target", + "false_preparation_identity": "Exact current-value preparation identity", + "missing_central_translation": "Rejected by the complete Laurent endpoint", + "missing_input_basis": "All public and owned rows", + "missing_output_basis": "All public and owned rows", + "unearned_whole_target": "All public and owned exits", + "unpaid_gaussian": "Complete field and call counts", + "unremoved_prepared_target": "Every productive helper has a native target", + "wrong_boundary_event": "Exact boundary event anchor" + }, + "physical_caller": { + "central_square_columns": 53248, + "full_calls": 18, + "main_targets": { + "145": 208, + "17": 416, + "25": 416, + "33": 416, + "41": 416, + "49": 416, + "57": 416, + "65": 416, + "73": 208 + }, + "new_paid_jobs": 0, + "physical_contacts": 7488, + "ports": 104, + "route_payload_sha256": "7f4f0ca768ffbc4f93dcff575592c4c67411f46b4289e45b73f715a2ad47b142", + "tensor_rule": "Factorwise native maps; scalar signs stay outside the tensor power.", + "whole_idle_jobs": { + "16": 416, + "24": 416, + "32": 416, + "40": 416, + "48": 416, + "56": 416, + "64": 416, + "72": 208 + }, + "wrapper_sites": [ + 1, + 3, + 5, + 7, + 9, + 11, + 13, + 15, + 17, + 19, + 21, + 23, + 25, + 27, + 29, + 31 + ] + }, + "preparation": { + "debited_target_rank": 2, + "new_owned_role": 751, + "old_helper": 573, + "sites": [ + { + "event": 13651, + "rank": 1 + }, + { + "event": 13676, + "rank": 1 + } + ] + }, + "published_source_delta": { + "PR5565": { + "helpers": { + "8": -1, + "9": 1 + }, + "paid": { + "1": -8, + "3": -1, + "4": -2, + "5": 4 + } + }, + "PR5601": { + "helpers": { + "4": 1, + "5": -1 + }, + "paid": { + "2": -2, + "3": 2, + "4": -2, + "5": 1 + } + } + }, + "relay": { + "delayed_paid_delta": { + "4": 1, + "5": -1, + "6": -1, + "7": 1 + }, + "frame_edits": 21, + "relay_edits": 13 + }, + "separate_columns": { + "arithmetic": "Dense integer rows with binary denominators; reverse chronology", + "coefficients": 565504, + "columns": 752 + }, + "splits": [ + { + "cut_after": 12520, + "events": 25220, + "pivot": 259, + "public": 736, + "ranks": [ + 4, + 5 + ] + }, + { + "cut_after": 12442, + "events": 25252, + "pivot": 432, + "public": 737, + "ranks": [ + 4, + 5 + ] + }, + { + "cut_after": 13913, + "events": 25266, + "pivot": 722, + "public": 738, + "ranks": [ + 2, + 7 + ] + }, + { + "cut_after": 13629, + "events": 25284, + "pivot": 14, + "public": 739, + "ranks": [ + 2, + 7 + ] + }, + { + "cut_after": 13630, + "events": 25302, + "pivot": 76, + "public": 740, + "ranks": [ + 2, + 7 + ] + }, + { + "cut_after": 13630, + "events": 25334, + "pivot": 345, + "public": 741, + "ranks": [ + 2, + 7 + ] + }, + { + "cut_after": 13618, + "events": 25384, + "pivot": 573, + "public": 742, + "ranks": [ + 2, + 7 + ] + }, + { + "cut_after": 12071, + "events": 25410, + "pivot": 405, + "public": 743, + "ranks": [ + 8, + 1 + ] + }, + { + "cut_after": 12603, + "events": 25440, + "pivot": 225, + "public": 744, + "ranks": [ + 8, + 1 + ] + } + ], + "status": "PASS_P104_HELPER_SUBSPACE_KAPPA_00310440546" +} diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5627-SOURCES.json b/research/p104-a2-paid-rank-exchange/inputs/pr5627-SOURCES.json new file mode 100644 index 0000000000..bb8cb5eca3 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/inputs/pr5627-SOURCES.json @@ -0,0 +1,223 @@ +{ + "schema_version": 1, + "base_commit": "5e0052ca0aa3036a3afa8b0438927377c8d97d53", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "fc3d4ba105e1f097d0d7d051a308281e86ab1446", + "sha256": "66974efdced4083c00025f97d95d83909a226cdf801edb9301c195c6641f6903" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "f126dd2e2dad2b669e75d1d0d0bd05c600725602", + "sha256": "f7a48bfa2659b88378282a8eee7d9fe52cdf505594124c4d1686b58510fffd72" + }, + { + "path": "research/p104-productive-controller/caller.py", + "usage": "input", + "git_blob": "6ac5e735691555ecafe2afbcff71edd923178113", + "sha256": "300d40043953e4f6aecfde8f2d1004b8ad6dc5a79ec3c7666c9908c2466c91c8" + }, + { + "path": "research/p104-productive-controller/CONTROLLER.json", + "usage": "input", + "git_blob": "cc539db709cf7a6c42872c4380902736ad453af3", + "sha256": "a84f6bbd547379597464e56c420cc665f96bc43a9a1351eed4b7cd0fce3cc4b9" + }, + { + "path": "research/joint-helper-lattice/CONTROLLER.json", + "usage": "input", + "git_blob": "49a2f0675819f9deeea27ed77be2c2b6ff2e87e5", + "sha256": "1f5d6aa267e4e66048818714b5d3b5eae17a58abe91d15deeaa34574f7391a5f" + }, + { + "path": "research/p104-native-channel/vendor/clifford_exact.py", + "usage": "input", + "git_blob": "166841a037f069249f6f7f6dedb89248812f59e2", + "sha256": "2982ead07721e83358dc67c6f49c2b4c16a236a6bebdfd72f58221be1f5d0962" + }, + { + "path": "research/p104-native-channel/vendor/native_verify.py", + "usage": "input", + "git_blob": "2c209dfa9cfade3bc20ac5fc9d876b433a147f8c", + "sha256": "3049471905b47b385c88378a1a3be7a18b8858aadd035b8a6da2f4a03b470f38" + }, + { + "path": "research/pr4359-p7-padding/native_inventory.py", + "usage": "input", + "git_blob": "8d2d96e3998254c2333c43fe47cdfd074cbd811e", + "sha256": "65539acaf45bdfe8c5aee6830f9c9b3d1107c442a60842ef803fdd7688de8f32" + }, + { + "path": "research/kappa-0023-productive-jobs/dependencies/kappa-next-regime/direct-decoder/sources/DATA-PHASES.json", + "usage": "input", + "git_blob": "d9a4f84211182ca200c081ea061d724c8a2cfb70", + "sha256": "c5916ff312678f12aba403847643fbbc29f643acec60bdf836fa56cd3e8251fa" + }, + { + "path": "research/higher-moment-strictification/verify.py", + "usage": "input", + "git_blob": "4b24a5096154736ce060474eb8c72dc64c303699", + "sha256": "0ce7e7137422d5ffeda22085c81fa88471bbe963100fdad62e659f1e3bf89326" + }, + { + "path": "research/kappa-rebuild/architecture/mixed_target_probe.py", + "usage": "input", + "git_blob": "4fc05ab08138218ba9f09e5c89b649afae7c914e", + "sha256": "011c3c9d0cf81103dc84d709a0e36793eb7c5ae3f23c85eac27650ef13afa04a" + }, + { + "path": "research/pr4359-p7-padding/dependencies/compiler-refill/endpoint.py", + "usage": "input", + "git_blob": "340e1f0ffb8a1a9c38fbbd9119580b6d23e01b59", + "sha256": "d097e55f06c3f244f2074ffd7c1a0a5f3c4b4b6a6accf9619d1dde5c0ae85e15" + }, + { + "path": "research/query-thinned-controllers/RESULT.json", + "usage": "input", + "git_blob": "e0695152c98d727edfd0d2034b58a1c7e8682c0c", + "sha256": "6ebfc8c0f09166f4834e9d7427410cb31aefff2cd4d4ce588c8e52c9c70e9a0f" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5580-WORD.json.gz", + "usage": "input", + "git_blob": "9434855e7dad0d0236d23210b3e71a2b83a9ae64", + "sha256": "b2a98c4bd0dbe86c09e9d15ee060dcf1aab09dbef90aa1e2127676f4039f406b", + "pin": "head:29fe88ba218b5d2192d8e31f07a01d1141afdacd:research/p104-helper-subspace-splits/inputs/PR5580-WORD.json.gz" + }, + { + "path": "research/p104-productive-controller/local.py", + "usage": "provenance", + "git_blob": "dbb3d56a4f5b733bb0c32a91249d1f6a7e1ab5d2", + "sha256": "878734dfd64c4b9d362d0ae476cc5c2a19fe93e48b7378763b23f3e0dd0a5a71" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5565-WORD.json.gz", + "usage": "input", + "git_blob": "4ebe6fcb7adf319bf6b247cf23d89eb1ca4cd914", + "sha256": "3d62828f53e654e3db218bf4611a47aed4a677d48043713dc004db0f8a32990d", + "pin": "head:bf64e66656843a64e798b8374cd9f53add3f6f46:research/p104-helper-subspace-splits/inputs/PR5565-WORD.json.gz" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5601-WORD.json.gz", + "usage": "input", + "git_blob": "3c9a5ce8969f40f03724a73d34f984dd17efde96", + "sha256": "ac81682679d1eb628a2a0a330b55a7a79722531ca163cd565a3eba5d87589979", + "pin": "head:55914a0de83df255bd7e7071d79ad04b81ca1070:research/p104-helper-subspace-splits/inputs/PR5601-WORD.json.gz" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5602-construct.py", + "usage": "input", + "git_blob": "ef5936ca89d6502d7f6af1ce6903d8500c117401", + "sha256": "2360066b0a1390c60a86d9788ada1504478e7e48bbfe3fcdf27a5563379fc001", + "pin": "head:0bccb2ff858db877119217f7d98409ee6a24ccce:research/p104-helper-subspace-splits/inputs/PR5602-construct.py" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5602-WITNESS.json", + "usage": "input", + "git_blob": "8073b3c9772a4a7c94e07d613c2f5c45b1c650fc", + "sha256": "e4dfc526453eb9d232772ffdb587fff1923e247341405aee031318b0fb9cb638", + "pin": "head:0bccb2ff858db877119217f7d98409ee6a24ccce:research/p104-helper-subspace-splits/inputs/PR5602-WITNESS.json" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5605-construct.py", + "usage": "input", + "git_blob": "31f9b76c9b3d9c410aec1d0945d967ed985154c3", + "sha256": "5831eb6f88cd6ed8200f32d2794dd9535ea06aa0d3ae6dd111a58bc01b611cbd", + "pin": "head:4ae31ae93e86d6ab7ddd75e42fee86cf21cdb8c8:research/p104-helper-subspace-splits/inputs/PR5605-construct.py" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5606-construct.py", + "usage": "provenance", + "git_blob": "e2c1473be00e78b91b4139493e31e47b591ac0df", + "sha256": "037d5f00f1c92b6f59020f90f11345251b429ba2bb2c39a65966b5e73094756a", + "pin": "head:4ae31ae93e86d6ab7ddd75e42fee86cf21cdb8c8:research/p104-helper-subspace-splits/inputs/PR5606-construct.py" + }, + { + "path": "research/p104-helper-subspace-splits/inputs/PR5612-delayed.py", + "usage": "input", + "git_blob": "afd1bd8e084a31071d3ae6002e7183f6e3c8e891", + "sha256": "fcb8b97785ae05db6f60c38d8d75ee4fe856ea41a1327b772eff7a6ee388b3c8", + "pin": "head:a692fd471ee7c47fa30ae755b80e51ef7e022689:research/p104-helper-subspace-splits/inputs/PR5612-delayed.py" + } + ], + "external_inputs": [ + { + "local_path": "inputs/PR5580-WORD.json.gz", + "source_repository": "aliromman/integer-mult-bounds", + "source_commit": "6efa248cf456d6101d757e9d09ba29711d18a13a", + "source_path": "research/p104-event-contact-step/WORD.json.gz", + "sha256": "b2a98c4bd0dbe86c09e9d15ee060dcf1aab09dbef90aa1e2127676f4039f406b", + "git_blob": "9434855e7dad0d0236d23210b3e71a2b83a9ae64" + }, + { + "local_path": "inputs/PR5565-WORD.json.gz", + "source_repository": "CrocSwap/integer-mult-bounds", + "source_commit": "9af814164b9dfc21f19ec737959d67cb71488c95", + "source_path": "research/p104-commuting-contact/WORD.json.gz", + "sha256": "3d62828f53e654e3db218bf4611a47aed4a677d48043713dc004db0f8a32990d", + "git_blob": "4ebe6fcb7adf319bf6b247cf23d89eb1ca4cd914" + }, + { + "local_path": "inputs/PR5601-WORD.json.gz", + "source_repository": "aliromman/integer-mult-bounds", + "source_commit": "8f7e870b22885a367b347dc12791da98fd53f83d", + "source_path": "research/p104-coupled-frame-step/WORD.json.gz", + "sha256": "ac81682679d1eb628a2a0a330b55a7a79722531ca163cd565a3eba5d87589979", + "git_blob": "3c9a5ce8969f40f03724a73d34f984dd17efde96" + }, + { + "local_path": "inputs/PR5602-construct.py", + "source_repository": "aliromman/integer-mult-bounds", + "source_commit": "6c224aa720203c4f4615e6538d8038a275387db8", + "source_path": "research/p104-coupled-helper-bases/construct.py", + "sha256": "2360066b0a1390c60a86d9788ada1504478e7e48bbfe3fcdf27a5563379fc001", + "git_blob": "ef5936ca89d6502d7f6af1ce6903d8500c117401" + }, + { + "local_path": "inputs/PR5602-WITNESS.json", + "source_repository": "aliromman/integer-mult-bounds", + "source_commit": "6c224aa720203c4f4615e6538d8038a275387db8", + "source_path": "research/p104-coupled-helper-bases/WITNESS.json", + "sha256": "e4dfc526453eb9d232772ffdb587fff1923e247341405aee031318b0fb9cb638", + "git_blob": "8073b3c9772a4a7c94e07d613c2f5c45b1c650fc" + }, + { + "local_path": "inputs/PR5605-construct.py", + "source_repository": "flyingviper/integer-mult-bounds", + "source_commit": "4a57d245ac3918ccc9947a867ece24573605e243", + "source_path": "research/p104-shared-residual-relay/construct.py", + "sha256": "5831eb6f88cd6ed8200f32d2794dd9535ea06aa0d3ae6dd111a58bc01b611cbd", + "git_blob": "31f9b76c9b3d9c410aec1d0945d967ed985154c3" + }, + { + "local_path": "inputs/PR5612-delayed.py", + "source_repository": "flyingviper/integer-mult-bounds", + "source_commit": "faa9f6dbe6b8cc4a996d3edeca71823056453e1a", + "source_path": "research/p104-delayed-shared-relay/delayed.py", + "sha256": "fcb8b97785ae05db6f60c38d8d75ee4fe856ea41a1327b772eff7a6ee388b3c8", + "git_blob": "afd1bd8e084a31071d3ae6002e7183f6e3c8e891" + } + ], + "code_derivation": [ + { + "source_repository": "GamingPuzzled/integer-mult-bounds", + "source_commit": "af9f091ac6f30c6eaacb9c27777bfbe2d0e5ffdf", + "source_path": "research/p104-priced-handoff/pricing.py", + "sha256": "a4df92b46234bb56a966df30d9c1d43251e1346e9a1ad06cf5ee30a79c7ae591", + "git_blob": "bb135338f1c57c48147cb214d14f542cdfe4e533", + "scope": "Pricing code attribution; this predecessor file is not executed." + }, + { + "local_path": "inputs/PR5606-construct.py", + "source_repository": "Scratch-net/integer-mult-bounds", + "source_commit": "cd7d89345c6c5d2114625e5ce912a52ecd5e1d27", + "source_path": "research/p104-prepared-split-reuse/construct.py", + "sha256": "037d5f00f1c92b6f59020f90f11345251b429ba2bb2c39a65966b5e73094756a", + "git_blob": "e2c1473be00e78b91b4139493e31e47b591ac0df", + "scope": "The fixed preparation identities are adapted to the final split word and explicit nine-role owned inventory; this predecessor constructor is not executed." + } + ] +} diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5627-WORD.json.gz b/research/p104-a2-paid-rank-exchange/inputs/pr5627-WORD.json.gz new file mode 100644 index 0000000000..b60955f312 Binary files /dev/null and b/research/p104-a2-paid-rank-exchange/inputs/pr5627-WORD.json.gz differ diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5627-local.py b/research/p104-a2-paid-rank-exchange/inputs/pr5627-local.py new file mode 100644 index 0000000000..e72cb02dba --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/inputs/pr5627-local.py @@ -0,0 +1,208 @@ +"""Check the complete P104 word with an independent helper inventory. + +Adapted from Ali Romman's PR5544/5545. David Arias supplied the word; +Cinna Davis supplied private reuse; Gareth Davidson supplied composition. +Prepared by Ali Romman with substantial OpenAI Codex assistance. Apache-2.0. +""" +from collections import Counter +from fractions import Fraction as Q +from functools import lru_cache +from hashlib import sha256 +from pathlib import Path +import gzip +import importlib.util +import json +import sys + +HERE = Path(__file__).resolve().parent +ROOT = HERE.parents[1] + +def need(ok, why): + if not ok: + raise ValueError(why) + +def read(path): + raw = path.read_bytes() + return json.loads(gzip.decompress(raw) if path.suffix == '.gz' else raw) + +def load(path, name): + spec = importlib.util.spec_from_file_location(name, path) + module = importlib.util.module_from_spec(spec) + sys.modules[name] = module + spec.loader.exec_module(module) + return module + +def add(dst, src, q): + for k, v in tuple(src.items()): + value = dst.get(k, 0) + q*v + if value: + dst[k] = value + else: + dst.pop(k, None) + +def span(basis): + out = {0} + for v in basis: + need(type(v) is int and 0 < v < 512 and v not in out, 'Independent binary basis') + out |= {x ^ v for x in tuple(out)} + return frozenset(out) + +def replay(w): + public = w['public'] + owned = w.get('owned_fields', 8) + need(type(owned) is int and 8 <= owned <= 9, 'Owned inventory bound') + need(type(public) is int and 735 <= public <= 750, 'Public inventory bound') + need(len(w['initial']) == len(w['final']) == public, 'Public boundary size') + need(len(w['program']) < 26000, 'Fixed operation bound') + frames = [span(x) for x in w['frames']] + rows = [{r:Q(1)} for r in range(public+owned)] + current = list(w['initial']) + [None]*owned + paid, scalar, live_owned, peak = Counter(), 0, set(), 0 + lifetimes = 0 + for e in w['program']: + op, r = e[:2] + need(0 <= r < public+owned, 'Role index') + if op == 'MOVE': + _, r, a, b, private = e + need(current[r] == a and (r in live_owned) == private, 'Transport source and ownership') + need(frames[b] < frames[a] if private else frames[a] < frames[b], 'Nested chronological transport') + paid[abs(len(w['frames'][b])-len(w['frames'][a]))] += 1 + current[r] = b + elif op == 'INIT': + need(r >= public and r not in live_owned, 'Owned initialization') + live_owned.add(r) + lifetimes += 1 + peak = max(peak, len(live_owned)) + rows[r] = {} + current[r] = e[2] + scalar += 2 + elif op == 'CLEAR': + need(r in live_owned and current[r] == e[2], 'Owned erasure at declared frame') + rows[r] = {} + current[r] = None + live_owned.remove(r) + scalar += 2 + else: + q, f = Q(e[-2]), e[-1] + need(q and current[r] == f, 'Scalar destination and coefficient') + n, d = abs(q.numerator), q.denominator + need(d & (d-1) == 0, 'Dyadic scalar coefficient') + need(abs(q)+1 < 2**16, 'Fixed scalar growth bound') + if op == 'SCALE': + need(n & (n-1) == 0, 'Dyadic unit SCALE') + rows[r] = {k:q*x for k,x in rows[r].items()} + scalar += 2*(abs(n.bit_length()-d.bit_length()) + int(q < 0)) + else: + s = e[2] + need(s != r and 0 <= s < public+owned and current[s] == f, 'Common scalar chart') + if op == 'COPY': + need(r in live_owned and not rows[r], 'COPY into cleared owned field') + rows[r] = {k:q*x for k,x in rows[s].items()} + else: + need(op == 'ADD', 'Scalar opcode') + add(rows[r], rows[s], q) + scalar += 2*(3+n.bit_length()-1+n.bit_count()+d.bit_length()-1) + need(not live_owned and 0 < peak <= 2 and current[:public] == w['final'], 'All public and owned exits') + live = set(w['live']) + for r,row in enumerate(rows): + expected = {r:Q(1)} if r < public else {} + if r-112 in live: + expected[r-112] = Q(1) + need(row == expected, 'All public and owned rows') + main = live | {r+112 for r in live} + helpers = Counter(len(w['frames'][w['final'][r]])-len(w['frames'][w['initial'][r]]) for r in range(public) if r not in main) + need(len(live) == len(w['ports']) == 104 and len(main) == 208 and min(helpers) > 0, 'Independent productive inputs') + return {'paid':dict(paid), 'helpers':dict(helpers), 'public_inputs':public, 'owned_fields':owned, 'owned_lifetimes':lifetimes, + 'peak_owned_fields':peak, 'real_scalar_allowance':scalar, 'endpoint_coefficients':(public+owned)*(public+owned), + 'paid_rank_mass':sum(r*count for r,count in paid.items())} + +def reverse_columns(w): + """Check the transpose with dense dyadic rows and the reverse chronology.""" + public = w['public'] + n = public+w.get('owned_fields', 8) + rows = [[int(i == j) for j in range(n)] for i in range(n)] + exponents = [0]*n + for e in reversed(w['program']): + op,r = e[:2] + if op == 'MOVE': + continue + if op in ('INIT','CLEAR'): + rows[r] = [0]*n + exponents[r] = 0 + continue + q = Q(e[-2]) + qe = q.denominator.bit_length()-1 + if op == 'SCALE': + rows[r] = [q.numerator*x for x in rows[r]] + exponents[r] += qe + else: + s = e[2] + level = max(exponents[s], exponents[r]+qe) + a, b = 1 << (level-exponents[s]), q.numerator << (level-exponents[r]-qe) + rows[s] = [a*x+b*y for x,y in zip(rows[s],rows[r])] + exponents[s] = level + if op == 'COPY': + rows[r] = [0]*n + exponents[r] = 0 + r = s + while exponents[r] and not any(x & 1 for x in rows[r]): + rows[r] = [x//2 for x in rows[r]] + exponents[r] -= 1 + for r,row in enumerate(rows): + expected = [0]*n + if r < public: + expected[r] = 1 << exponents[r] + if r in w['live']: + expected[r+112] = 1 << exponents[r] + need(row == expected, 'Independent dense transpose columns') + return {'columns':n, 'coefficients':n*n, 'arithmetic':'Dense integer rows with binary denominators; reverse chronology'} + +def native(w): + n = w['public'] + C = load(ROOT/'research/p104-native-channel/vendor/clifford_exact.py', 'p104_productive_clifford') + V = load(ROOT/'research/p104-native-channel/vendor/native_verify.py', 'p104_productive_gaussian') + @lru_cache(None) + def chart(i): + return C.canonical_frame(9, tuple(w['frames'][i])) + recipes = {} + def check(a,b): + if (a,b) not in recipes: + recipe,_ = C.lower_child(chart(a).adjoint().then(chart(b))) + expected = V.adjoint(V.frame(w['frames'][a],9)) + V.frame(w['frames'][b],9) + V.equal(V.recipe(recipe),expected,'Native chart change and exact global phase') + need(recipe['rank'] == abs(len(w['frames'][a])-len(w['frames'][b])), 'Native boundary rank') + recipes[a,b] = recipe + return recipes[a,b] + for e in w['program']: + if e[0] == 'MOVE': + check(e[2],e[3]) + main = set(w['live']) | {r+112 for r in w['live']} + helper_profile = Counter() + for r in range(n): + if r not in main: + helper_profile[check(w['initial'][r],w['final'][r])['rank']] += 1 + adapters = [] + for r,q in zip(w['live'],w['ports']): + need(w['frames'][w['initial'][r]] == [q], 'Literal central port') + need(span(w['frames'][w['final'][r+112]]) == frozenset(x for x in range(512) if not (x&q).bit_count()%2), 'Literal output hyperplane') + tests = [ + (C.cgate(9,q,1).adjoint().then(chart(w['initial'][r])), V.adjoint((('C',q,1),))+V.frame(w['frames'][w['initial'][r]],9)), + (chart(w['final'][r+112]).adjoint().then(C.cgate(9,q,-1).then(C.fourier(9))), V.adjoint(V.frame(w['frames'][w['final'][r+112]],9))+(('C',q,-1),)+V.fourier(9))] + for actual,expected in tests: + recipe,_ = C.lower_child(actual) + need(recipe['rank'] == 0, 'Free intrinsic main adapter') + V.equal(V.recipe(recipe),expected,'Main endpoint phase') + adapters.append(recipe) + bad = json.loads(json.dumps(next(iter(recipes.values())))) + bad['left']['phase'] = (bad['left']['phase']+1)%4 + a,b = next(iter(recipes)) + try: + V.equal(V.recipe(bad),V.adjoint(V.frame(w['frames'][a],9))+V.frame(w['frames'][b],9),'Wrong phase control') + except ValueError: + pass + else: + raise ValueError('Wrong native phase accepted') + payload = [[a,b,recipes[a,b]] for a,b in sorted(recipes)] + adapters + return {'distinct_maps':len(recipes),'main_adapters':len(adapters),'helper_normalizers':2*sum(helper_profile.values()), + 'helpers':dict(helper_profile),'recipe_payload_sha256':sha256(json.dumps(payload,sort_keys=True,separators=(',',':')).encode()).hexdigest(), + 'wrong_phase_rejected':True, 'proof':'Every signed Pauli image and exact global phase; frame induction at every positive tensor width'} diff --git a/research/p104-a2-paid-rank-exchange/inputs/pr5627-pricing.py b/research/p104-a2-paid-rank-exchange/inputs/pr5627-pricing.py new file mode 100644 index 0000000000..430934914b --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/inputs/pr5627-pricing.py @@ -0,0 +1,174 @@ +"""Complete mixed-target price, compiler and outer transfer. + +The interval and compiler bounds follow zxv and Cao Yifan. The productive +recursion is by Jacob Alan Sussman. The controller is by Cinna Davis. +Adapted from Ali Romman's PR5544/5545 for the two coupled contact changes. +Successor choices were prepared for thu-nmrc with OpenAI Codex assistance. +Helper-subspace targets were added by Ali Romman with OpenAI Codex assistance. +The source commuting-contact construction is by Pierre-Loic Doulcet (hexapode) in PR5565. +The source coupled-frame change is by Ali Romman with OpenAI Codex in PR5601. +Five fixed boundary relations are from Ali Romman's PR5602. +The shared and delayed relays are from flyingviper's PR5605 and PR5612. The preparation is from +Scratch-net's PR5606. Their costs and target debit are included. +Ali Romman's complete caller/price proof and all predecessor credit are retained. +Apache-2.0. +""" +from collections import Counter +from fractions import Fraction as Q +import local as L + +KAPPA, TESTED = Q('.00310440546'), Q('.003104405465') +PREVIOUS = Q('.00308595') + + +def encode(x): + if isinstance(x,Q): + return str(x) + if isinstance(x,dict): + return {str(k):encode(v) for k,v in x.items()} + if isinstance(x,(list,tuple)): + return [encode(v) for v in x] + return x + + +def assemble(local, native, word, physical): + paid, targets = Counter(), Counter() + counts = Counter() + L.need(local['helpers'] == native['helpers'], 'Every productive helper has a native target') + for e in word['physical_events']: + counts[e[0]] += 1 + if e[0] == 'LOCAL': + L.need(e[3] is False, 'Every source invocation is forward') + paid.update(local['paid']) + targets.update(local['helpers']) + elif e[0] == 'QUERY_SHEAR': + paid[1] += 104 + elif e[0] == 'IDLE': + paid[8*len(e[2])] += 208 + main = Counter() + idle = Counter({8*len(e[2]):0 for e in word['physical_events'] if e[0] == 'IDLE'}) + for e in word['physical_events']: + if e[0] == 'IDLE': + idle[8*len(e[2])] += 208 + L.need(idle == physical['whole_idle_jobs'], 'Every whole idle has a native Gaussian and full rank') + for term in word['diagonal']: + main[1+8*sum(term[1:])] += 104 + L.need(main == physical['main_targets'], 'Every main target has its full native phase') + targets.update(main) + L.need(counts['LOCAL'] == 18 and counts['QUERY_SHEAR'] == counts['IDLE'] == 15, 'Complete call census') + # Recount by the two path lengths, without using emitted main diagonals. + second_t = Counter({r:18*n for r,n in local['helpers'].items()}) + second_p = Counter({r:18*n for r,n in local['paid'].items()}) + second_t[145] += 208 + second_p[1] += 15*104 + for length in (7,8): + for j in range(1,length+1): + second_t[1+8*(j+1)] += 208 + second_p[8*(j+1)] += 208 + L.need((targets,paid) == (second_t,second_p), 'Independent full invoice') + L.need(max(targets) == 145 and max(paid) == 72, 'Maximum recursive ranks') + L.need(sum(targets.values()) == 12958 and sum(paid.values()) == 66546, 'Complete field and call counts') + L.need(sum(r*n for r,n in targets.items())-sum(r*n for r,n in paid.items()) == 760, 'Complete rank surplus') + return targets,paid,counts + + +def run(local,native,word,physical): + T,P,counts = assemble(local,native,word,physical) + E = L.load(L.ROOT/'research/higher-moment-strictification/verify.py','p104_productive_intervals') + other = L.load(L.ROOT/'research/kappa-rebuild/architecture/mixed_target_probe.py','p104_productive_second_intervals') + def margin(k): + a,b = E.moment(T,1-k), E.moment(P,1-k) + return a[0]-b[1],a[1]-b[0] + lo,hi,grid = 0,10**12,10**14 + while hi-lo > 1: + m=(lo+hi)//2 + if margin(Q(m,grid))[0] > 0: + lo=m + else: + hi=m + lower,upper = Q(lo,grid),Q(hi,grid) + signed = Counter(T) + signed.subtract(P) + cap = Q('.0034') + derivative_upper = Q(0) + for rank, count in signed.items(): + logarithm = E.log_bounds(rank) + low = E.mul(E.power(rank, 1-cap), logarithm)[0] + high = rank*logarithm[1] + derivative_upper -= count*(low if count >= 0 else high) + L.need(derivative_upper < 0, 'Unique raw crossing below the retained BIT cap') + L.need(margin(lower)[0] > 0 and margin(upper)[1] < 0, 'Strict rational crossing enclosure') + L.need(PREVIOUS < KAPPA < TESTED < lower and margin(PREVIOUS)[0] > 0, 'Changed complete bill improves the source claim') + t,u,v,c,b = 1-TESTED,Q(1,5),1024,17,18 + target,paid = E.moment(T,t),E.moment(P,t) + tl,th = other.moment(T,TESTED) + pl,ph = other.moment(P,TESTED) + L.need(tl > ph and max(tl,target[0]) <= min(th,target[1]) and max(pl,paid[0]) <= min(ph,paid[1]), 'Two exact moment engines') + alpha = E.divide(paid,target) + gamma = E.divide(E.moment(P,t+u),E.mul(E.power(c,u),target)) + delta = E.divide((Q(sum(T.values())*b),)*2,E.mul(E.power(c,TESTED),target)) + reserve,decay = Q(1,10**12),Q(39,40) + L.need(alpha[1] < 1-reserve and gamma[1] < decay and delta[1] < decay, 'All three charged tail ratios') + L.need(decay**128 < Q(1,16), 'Both tail decay blocks') + normalized = 1/(1+v*reserve)+Q(4,2**32) + L.need(normalized < 1 and c**64 < b**63, 'Full completion, splitting and rounding charges') + theta,power = Q(63,64),1024 + eta = E.scale(E.power(145,-v*TESTED),t) + L.need(2*(c**v)**64 <= (145**v)**63 and eta[0] > theta**power, 'Shifted exits and complement capacity') + L.need(E.power(145,v*TESTED)[1] < 2**power, 'Compiler initial range') + gap = (TESTED-KAPPA)/7 + L.need(gap.numerator == 1, 'Exact compiler integer grid') + step = gap.denominator + def wins(j): + return (step*j+1)**power < 2**j + left,right=1,2 + while not wins(right): + left,right=right,2*right + while right-left > 1: + m=(left+right)//2 + if wins(m): + right=m + else: + left=m + H=step*right + L.need(H > 8*v and wins(right) and not wins(right-1), 'Finite uniform threshold with predecessor rejection') + local_routes = (sum(local['paid'].values())+native['helper_normalizers']+native['main_adapters']+4*104+4*local['owned_lifetimes'])*1000 + L.need(local['real_scalar_allowance']+local_routes < 10**7, 'Every local scalar, route and owned operation is funded') + boundary = sum(len(word['boundaries'][side+'_program']) for side in ('left','right')) + raw = 18*10**7 + 15*1664 + 32*104*(len(word['physical_events'])+boundary) + raw += 32*104*(26+1000) + L.need(raw < 10**9, 'Complete nonrecursive raw bound') + bit = L.read(L.ROOT/'research/query-thinned-controllers/RESULT.json')['ordinary_BIT'] + atom = Q(bit['atom']) + ordinary=(1-atom)*Q(bit['after_cover'])+atom*Q('.0000384599') + admitted=Q(bit['admitted']) + L.need(atom > ordinary > admitted > TESTED and atom < 1-ordinary, 'Retained BIT admission and stock') + outer_module=L.load(L.ROOT/'research/pr4359-p7-padding/dependencies/compiler-refill/endpoint.py','p104_productive_outer') + params={'kappa':KAPPA,'tested_saving':TESTED,'complex_uniform_saving':KAPPA+6*gap, + 'b':KAPPA+5*gap,'a':KAPPA+4*gap,'q':KAPPA+3*gap,'bit_saving':admitted, + 'epsilon':1-gap,'beta':1-3*gap,'r0':gap/10,'stop':gap,'layout':gap,'d':gap} + outer=outer_module.ledger(params) + outer['functional_checks']['actual_new_BIT_stock_sublinear']=params['beta']*(1-atom) + L.need(len(outer['strict_checks']) == 54 and len(outer['functional_checks']) == 4, 'Complete outer predicate inventory') + L.need(all(x > 0 for key in ('strict_checks','functional_checks') for x in outer[key].values()), 'All outer inequalities strict') + wrong_cutoff = E.divide((Q(sum(T.values())*21),)*2,E.mul(E.power(20,TESTED),target)) + L.need(wrong_cutoff[0] > 1, 'Old cutoff fails with this helper inventory') + bad=outer_module.ledger(dict(params,bit_saving=Q('.0027'))) + L.need(any(x <= 0 for x in bad['strict_checks'].values()), 'Insufficient BIT contract rejected') + return encode({'kappa':KAPPA,'kappa_decimal':'.00310440546','previous_open_pr5601':PREVIOUS,'gain':KAPPA-PREVIOUS, + 'relative_gain_percent':100*(KAPPA/PREVIOUS-1),'raw_root_interval':[lower,upper], + 'raw_headroom':[lower-KAPPA,upper-KAPPA], + 'raw_ceiling':{'interval':[Q(0),cap],'derivative_upper':derivative_upper},'margin_at_previous':E.display(margin(PREVIOUS)), + 'targets':T,'paid':P,'productive_fields':sum(T.values()),'paid_calls':sum(P.values()), + 'rank_mass_surplus':760,'full_forward_calls':18,'query_shears':15,'whole_idle_jobs':3120, + 'strictification':{'tested':TESTED,'power':v,'cutoff':c,'floor':b,'tail_offset':u,'reserve':reserve,'tail_decay':decay,'tail_block':128, + 'alpha':E.display(alpha),'gamma':E.display(gamma),'delta':E.display(delta),'normalized_paid_upper':normalized}, + 'compiler':{'theta':theta,'logarithm_power':power,'eta':E.display(eta),'gap':gap,'H':H,'N':'2^'+str(H), + 'integer_test_exponent':right,'uniform_saving':params['complex_uniform_saving'],'word_materialized':False}, + 'nonrecursive':{'local_scalar':local['real_scalar_allowance'],'local_routes':local_routes, + 'raw_scalar_upper':raw,'raw_budget':10**9,'peak_owned_fields':local['peak_owned_fields'], + 'fixed_scalar_growth_bound':'At most 2^(16*26000) before native factors; a declared constant, not an attained norm.', + 'local_paid_rank_mass':local['paid_rank_mass'], + 'tensor_native_growth_bound':'Each rank-r Gaussian has row l1 norm at most 2^(rf); use local_paid_rank_mass for the whole word.'}, + 'ordinary_BIT':bit,'outer':outer, + 'negative_controls':{'old_cutoff':'Rejected by completion-tail ratio greater than one','old_BIT':'Rejected by outer inequalities'}}) diff --git a/research/p104-a2-paid-rank-exchange/pricing.py b/research/p104-a2-paid-rank-exchange/pricing.py new file mode 100644 index 0000000000..1e92330015 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/pricing.py @@ -0,0 +1,174 @@ +"""Complete mixed-target price, compiler and outer transfer. + +The interval and compiler bounds follow zxv and Cao Yifan. The productive +recursion is by Jacob Alan Sussman. The controller is by Cinna Davis. +Adapted from Ali Romman's PR5544/5545 for the two coupled contact changes. +Successor choices were prepared for thu-nmrc with OpenAI Codex assistance. +Helper-subspace targets were added by Ali Romman with OpenAI Codex assistance. +The source commuting-contact construction is by Pierre-Loic Doulcet (hexapode) in PR5565. +The source coupled-frame change is by Ali Romman with OpenAI Codex in PR5601. +Five fixed boundary relations are from Ali Romman's PR5602. +The shared and delayed relays are from flyingviper's PR5605 and PR5612. The preparation is from +Scratch-net's PR5606. Their costs and target debit are included. +Ali Romman's complete caller/price proof and all predecessor credit are retained. +Apache-2.0. +""" +from collections import Counter +from fractions import Fraction as Q +import local as L + +KAPPA, TESTED = Q('.00310458'), Q('.0031045805') +PREVIOUS = Q('.00310440546') + + +def encode(x): + if isinstance(x,Q): + return str(x) + if isinstance(x,dict): + return {str(k):encode(v) for k,v in x.items()} + if isinstance(x,(list,tuple)): + return [encode(v) for v in x] + return x + + +def assemble(local, native, word, physical): + paid, targets = Counter(), Counter() + counts = Counter() + L.need(local['helpers'] == native['helpers'], 'Every productive helper has a native target') + for e in word['physical_events']: + counts[e[0]] += 1 + if e[0] == 'LOCAL': + L.need(e[3] is False, 'Every source invocation is forward') + paid.update(local['paid']) + targets.update(local['helpers']) + elif e[0] == 'QUERY_SHEAR': + paid[1] += 104 + elif e[0] == 'IDLE': + paid[8*len(e[2])] += 208 + main = Counter() + idle = Counter({8*len(e[2]):0 for e in word['physical_events'] if e[0] == 'IDLE'}) + for e in word['physical_events']: + if e[0] == 'IDLE': + idle[8*len(e[2])] += 208 + L.need(idle == physical['whole_idle_jobs'], 'Every whole idle has a native Gaussian and full rank') + for term in word['diagonal']: + main[1+8*sum(term[1:])] += 104 + L.need(main == physical['main_targets'], 'Every main target has its full native phase') + targets.update(main) + L.need(counts['LOCAL'] == 18 and counts['QUERY_SHEAR'] == counts['IDLE'] == 15, 'Complete call census') + # Recount by the two path lengths, without using emitted main diagonals. + second_t = Counter({r:18*n for r,n in local['helpers'].items()}) + second_p = Counter({r:18*n for r,n in local['paid'].items()}) + second_t[145] += 208 + second_p[1] += 15*104 + for length in (7,8): + for j in range(1,length+1): + second_t[1+8*(j+1)] += 208 + second_p[8*(j+1)] += 208 + L.need((targets,paid) == (second_t,second_p), 'Independent full invoice') + L.need(max(targets) == 145 and max(paid) == 72, 'Maximum recursive ranks') + L.need(sum(targets.values()) == 12958 and sum(paid.values()) == 66546, 'Complete field and call counts') + L.need(sum(r*n for r,n in targets.items())-sum(r*n for r,n in paid.items()) == 760, 'Complete rank surplus') + return targets,paid,counts + + +def run(local,native,word,physical): + T,P,counts = assemble(local,native,word,physical) + E = L.load(L.ROOT/'research/higher-moment-strictification/verify.py','p104_productive_intervals') + other = L.load(L.ROOT/'research/kappa-rebuild/architecture/mixed_target_probe.py','p104_productive_second_intervals') + def margin(k): + a,b = E.moment(T,1-k), E.moment(P,1-k) + return a[0]-b[1],a[1]-b[0] + lo,hi,grid = 0,10**12,10**14 + while hi-lo > 1: + m=(lo+hi)//2 + if margin(Q(m,grid))[0] > 0: + lo=m + else: + hi=m + lower,upper = Q(lo,grid),Q(hi,grid) + signed = Counter(T) + signed.subtract(P) + cap = Q('.0034') + derivative_upper = Q(0) + for rank, count in signed.items(): + logarithm = E.log_bounds(rank) + low = E.mul(E.power(rank, 1-cap), logarithm)[0] + high = rank*logarithm[1] + derivative_upper -= count*(low if count >= 0 else high) + L.need(derivative_upper < 0, 'Unique raw crossing below the retained BIT cap') + L.need(margin(lower)[0] > 0 and margin(upper)[1] < 0, 'Strict rational crossing enclosure') + L.need(PREVIOUS < KAPPA < TESTED < lower and margin(PREVIOUS)[0] > 0, 'Changed complete bill improves the source claim') + t,u,v,c,b = 1-TESTED,Q(1,5),1024,17,18 + target,paid = E.moment(T,t),E.moment(P,t) + tl,th = other.moment(T,TESTED) + pl,ph = other.moment(P,TESTED) + L.need(tl > ph and max(tl,target[0]) <= min(th,target[1]) and max(pl,paid[0]) <= min(ph,paid[1]), 'Two exact moment engines') + alpha = E.divide(paid,target) + gamma = E.divide(E.moment(P,t+u),E.mul(E.power(c,u),target)) + delta = E.divide((Q(sum(T.values())*b),)*2,E.mul(E.power(c,TESTED),target)) + reserve,decay = Q(1,10**12),Q(39,40) + L.need(alpha[1] < 1-reserve and gamma[1] < decay and delta[1] < decay, 'All three charged tail ratios') + L.need(decay**128 < Q(1,16), 'Both tail decay blocks') + normalized = 1/(1+v*reserve)+Q(4,2**32) + L.need(normalized < 1 and c**64 < b**63, 'Full completion, splitting and rounding charges') + theta,power = Q(63,64),1024 + eta = E.scale(E.power(145,-v*TESTED),t) + L.need(2*(c**v)**64 <= (145**v)**63 and eta[0] > theta**power, 'Shifted exits and complement capacity') + L.need(E.power(145,v*TESTED)[1] < 2**power, 'Compiler initial range') + gap = (TESTED-KAPPA)/7 + L.need(gap.numerator == 1, 'Exact compiler integer grid') + step = gap.denominator + def wins(j): + return (step*j+1)**power < 2**j + left,right=1,2 + while not wins(right): + left,right=right,2*right + while right-left > 1: + m=(left+right)//2 + if wins(m): + right=m + else: + left=m + H=step*right + L.need(H > 8*v and wins(right) and not wins(right-1), 'Finite uniform threshold with predecessor rejection') + local_routes = (sum(local['paid'].values())+native['helper_normalizers']+native['main_adapters']+4*104+4*local['owned_lifetimes'])*1000 + L.need(local['real_scalar_allowance']+local_routes < 10**7, 'Every local scalar, route and owned operation is funded') + boundary = sum(len(word['boundaries'][side+'_program']) for side in ('left','right')) + raw = 18*10**7 + 15*1664 + 32*104*(len(word['physical_events'])+boundary) + raw += 32*104*(26+1000) + L.need(raw < 10**9, 'Complete nonrecursive raw bound') + bit = L.read(L.ROOT/'research/query-thinned-controllers/RESULT.json')['ordinary_BIT'] + atom = Q(bit['atom']) + ordinary=(1-atom)*Q(bit['after_cover'])+atom*Q('.0000384599') + admitted=Q(bit['admitted']) + L.need(atom > ordinary > admitted > TESTED and atom < 1-ordinary, 'Retained BIT admission and stock') + outer_module=L.load(L.ROOT/'research/pr4359-p7-padding/dependencies/compiler-refill/endpoint.py','p104_productive_outer') + params={'kappa':KAPPA,'tested_saving':TESTED,'complex_uniform_saving':KAPPA+6*gap, + 'b':KAPPA+5*gap,'a':KAPPA+4*gap,'q':KAPPA+3*gap,'bit_saving':admitted, + 'epsilon':1-gap,'beta':1-3*gap,'r0':gap/10,'stop':gap,'layout':gap,'d':gap} + outer=outer_module.ledger(params) + outer['functional_checks']['actual_new_BIT_stock_sublinear']=params['beta']*(1-atom) + L.need(len(outer['strict_checks']) == 54 and len(outer['functional_checks']) == 4, 'Complete outer predicate inventory') + L.need(all(x > 0 for key in ('strict_checks','functional_checks') for x in outer[key].values()), 'All outer inequalities strict') + wrong_cutoff = E.divide((Q(sum(T.values())*21),)*2,E.mul(E.power(20,TESTED),target)) + L.need(wrong_cutoff[0] > 1, 'Old cutoff fails with this helper inventory') + bad=outer_module.ledger(dict(params,bit_saving=Q('.0027'))) + L.need(any(x <= 0 for x in bad['strict_checks'].values()), 'Insufficient BIT contract rejected') + return encode({'kappa':KAPPA,'kappa_decimal':'.00310458','previous_open_pr5601':PREVIOUS,'gain':KAPPA-PREVIOUS, + 'relative_gain_percent':100*(KAPPA/PREVIOUS-1),'raw_root_interval':[lower,upper], + 'raw_headroom':[lower-KAPPA,upper-KAPPA], + 'raw_ceiling':{'interval':[Q(0),cap],'derivative_upper':derivative_upper},'margin_at_previous':E.display(margin(PREVIOUS)), + 'targets':T,'paid':P,'productive_fields':sum(T.values()),'paid_calls':sum(P.values()), + 'rank_mass_surplus':760,'full_forward_calls':18,'query_shears':15,'whole_idle_jobs':3120, + 'strictification':{'tested':TESTED,'power':v,'cutoff':c,'floor':b,'tail_offset':u,'reserve':reserve,'tail_decay':decay,'tail_block':128, + 'alpha':E.display(alpha),'gamma':E.display(gamma),'delta':E.display(delta),'normalized_paid_upper':normalized}, + 'compiler':{'theta':theta,'logarithm_power':power,'eta':E.display(eta),'gap':gap,'H':H,'N':'2^'+str(H), + 'integer_test_exponent':right,'uniform_saving':params['complex_uniform_saving'],'word_materialized':False}, + 'nonrecursive':{'local_scalar':local['real_scalar_allowance'],'local_routes':local_routes, + 'raw_scalar_upper':raw,'raw_budget':10**9,'peak_owned_fields':local['peak_owned_fields'], + 'fixed_scalar_growth_bound':'At most 2^(16*26000) before native factors; a declared constant, not an attained norm.', + 'local_paid_rank_mass':local['paid_rank_mass'], + 'tensor_native_growth_bound':'Each rank-r Gaussian has row l1 norm at most 2^(rf); use local_paid_rank_mass for the whole word.'}, + 'ordinary_BIT':bit,'outer':outer, + 'negative_controls':{'old_cutoff':'Rejected by completion-tail ratio greater than one','old_BIT':'Rejected by outer inequalities'}}) diff --git a/research/p104-a2-paid-rank-exchange/publication-invoices/COMPARISON.json b/research/p104-a2-paid-rank-exchange/publication-invoices/COMPARISON.json new file mode 100644 index 0000000000..5c14e66639 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/publication-invoices/COMPARISON.json @@ -0,0 +1,89 @@ +{ + "assurance": { + "contract": "Exact matching user declarations; mathematical applicability is not verified.", + "inconclusive": "Mixed hinge signs do not establish a power-moment crossing or failure.", + "input_binding": "SHA-256 identifies the exact input bytes read, when loaded by this CLI.", + "scope": "Histogram arithmetic only. Histogram correctness, circuit legality, ownership, phases, precision, supplier admission and compiler endpoints are not validated." + }, + "classification": "uniformly_better", + "contract": { + "ambient_rank": 145, + "boundary": "Complete PR5627-derived p16/a7 caller before the same mixed-target compiler", + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields" + }, + "delta_paid": { + "2": 18, + "3": -18, + "5": -18, + "6": 18 + }, + "delta_targets": {}, + "hinges": [ + { + "rank": 0, + "value": 0 + }, + { + "rank": 2, + "value": 0 + }, + { + "rank": 3, + "value": -18 + }, + { + "rank": 5, + "value": -18 + }, + { + "rank": 6, + "value": 0 + } + ], + "inputs": { + "new": { + "bytes": 815, + "path": "research/p104-a2-paid-rank-exchange/publication-invoices/candidate.json", + "sha256": "390d998edd31dbc76996b14e0f8e5e1ddeab479bd40703ce2d96bd66506dd547" + }, + "old": { + "bytes": 815, + "path": "research/p104-a2-paid-rank-exchange/publication-invoices/source.json", + "sha256": "477ec973ed0540d3192828bf60bf54b20a8022e45f3238ab2fbf337739f756e2" + } + }, + "method_credit": "Classical concave order/majorization; mightyOil's t16-moment-order-audit and its retained predecessors. No new theorem claim.", + "power_moment": { + "exponent": "0 < t < 1", + "new_minus_old_sign": "strictly_negative", + "tariff": "r^t" + }, + "quantity": "(new paid - new targets) - (old paid - old targets)", + "rank_mass": { + "delta": { + "paid": 0, + "paid_minus_targets": 0, + "targets": 0 + }, + "new": { + "paid": 240764, + "paid_minus_targets": -760, + "targets": 241524 + }, + "old": { + "paid": 240764, + "paid_minus_targets": -760, + "targets": 241524 + } + }, + "schema": "integer-mult-recursive-invoice-comparison/v1", + "signed_net_delta": { + "2": 18, + "3": -18, + "5": -18, + "6": 18 + }, + "tariff_class": "increasing concave f on nonnegative ranks, with f(0)=0", + "uniform_order": "weak; some concave tariffs can give equality" +} diff --git a/research/p104-a2-paid-rank-exchange/publication-invoices/candidate.json b/research/p104-a2-paid-rank-exchange/publication-invoices/candidate.json new file mode 100644 index 0000000000..1bff83b0b2 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/publication-invoices/candidate.json @@ -0,0 +1,44 @@ +{ + "schema": "integer-mult-recursive-invoice/v1", + "contract": { + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields", + "ambient_rank": 145, + "boundary": "Complete PR5627-derived p16/a7 caller before the same mixed-target compiler" + }, + "paid": { + "1": 41160, + "16": 416, + "2": 8226, + "24": 416, + "3": 8874, + "32": 416, + "4": 1638, + "40": 416, + "48": 416, + "5": 2916, + "56": 416, + "6": 342, + "64": 416, + "7": 270, + "72": 208 + }, + "targets": { + "1": 36, + "145": 208, + "17": 416, + "2": 72, + "25": 416, + "33": 416, + "4": 1638, + "41": 416, + "49": 416, + "5": 108, + "57": 416, + "65": 416, + "7": 90, + "73": 208, + "8": 288, + "9": 7398 + } +} diff --git a/research/p104-a2-paid-rank-exchange/publication-invoices/source.json b/research/p104-a2-paid-rank-exchange/publication-invoices/source.json new file mode 100644 index 0000000000..d421d354b5 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/publication-invoices/source.json @@ -0,0 +1,44 @@ +{ + "schema": "integer-mult-recursive-invoice/v1", + "contract": { + "model": "mixed-target-unnormalized-power-v1", + "rank_semantics": "H_r costs r^(1-C); debit surrendered productive fields", + "ambient_rank": 145, + "boundary": "Complete PR5627-derived p16/a7 caller before the same mixed-target compiler" + }, + "paid": { + "1": 41160, + "16": 416, + "2": 8208, + "24": 416, + "3": 8892, + "32": 416, + "4": 1638, + "40": 416, + "48": 416, + "5": 2934, + "56": 416, + "6": 324, + "64": 416, + "7": 270, + "72": 208 + }, + "targets": { + "1": 36, + "145": 208, + "17": 416, + "2": 72, + "25": 416, + "33": 416, + "4": 1638, + "41": 416, + "49": 416, + "5": 108, + "57": 416, + "65": 416, + "7": 90, + "73": 208, + "8": 288, + "9": 7398 + } +} diff --git a/research/p104-a2-paid-rank-exchange/verify.py b/research/p104-a2-paid-rank-exchange/verify.py new file mode 100644 index 0000000000..4731427a95 --- /dev/null +++ b/research/p104-a2-paid-rank-exchange/verify.py @@ -0,0 +1,69 @@ +"""Complete conditional A2 replay; zxv with substantial OpenAI Codex assistance. Apache-2.0.""" +from pathlib import Path +from collections import Counter +from copy import deepcopy +from hashlib import sha256 +import sys,json,gzip,time +sys.dont_write_bytecode=True +HERE=Path(__file__).resolve().parent +sys.path.insert(0,str(HERE)) +sys.path.insert(0,str(HERE/'inputs/pr5612')) +from sources import sources,load,need,read +L=load(HERE/'inputs/pr5627-local.py','local') +manifest=read(HERE/'SOURCES.json') +for item in manifest['retained_inputs']: + raw=(HERE/item['local_path']).read_bytes() + need(len(raw)==item['size'] and sha256(raw).hexdigest()==item['sha256'],'Retained source '+item['local_path']) +quick='--quick' in sys.argv +with sources() as (prior,framework): + L.ROOT=framework + bindings=[] + manifest=read(HERE/'inputs/pr5627-SOURCES.json') + for row in manifest['files']: + path=framework/row['path'] + if path.is_file(): + need(sha256(path.read_bytes()).hexdigest()==row['sha256'],'Latest declared foundation equals authenticated framework: '+row['path']) + bindings.append(row['path']) + source=read(HERE/'inputs/pr5627-WORD.json.gz') + from construct import construct + payload,construction=construct() + word=json.loads(payload) + before=L.replay(source);local=L.replay(word) + delta=Counter(local['paid']);delta.subtract(before['paid']) + need({r:c for r,c in delta.items() if c}=={2:1,3:-1,5:-1,6:1},'Exact full paid-rank exchange') + need(local['helpers']==before['helpers'],'All productive targets retained') + print('PASS exact source foundation bindings',len(bindings),'and all arbitrary-input/frame rows',flush=True) + if quick: + print('PASS_P104_A2_QUICK',flush=True) + raise SystemExit(0) + original=(HERE/'inputs/pr5627-pricing.py').read_text() + for before,after in read(HERE/'PRICING-EDITS.json'): + need(original.count(before)==1,'Unique declared pricing edit');original=original.replace(before,after) + need(original==(HERE/'pricing.py').read_text(),'Only declared pricing edits') + transpose=L.reverse_columns(word) + print('PASS all dense transpose columns',transpose['columns'],flush=True) + native=L.native(word) + print('PASS all signed native maps and exact phases',native['distinct_maps'],flush=True) + C=load(framework/'research/p104-productive-controller/caller.py','new_a2_caller') + caller=C.construct();need(caller==read(framework/'research/p104-productive-controller/CONTROLLER.json'),'Unchanged complete caller') + physical=C.physical(caller,word) + print('PASS complete physical caller',flush=True) + P=load(HERE/'pricing.py','a2_new_price') + price=P.run(local,native,caller,physical) + print('PASS two exact moment engines, compiler, BIT stock and58 outer predicates',price['raw_root_interval'],flush=True) + controls=C.controls(caller) + def reject(f): + try:f() + except ValueError as e:return str(e) + raise ValueError('Malformed control accepted') + bad=deepcopy(word);gate=['ADD',340,715,'-4',396];need(bad['program'].count(gate)==1,'Unique new A2 correction');bad['program'].remove(gate) + controls['missing_A2_correction']=reject(lambda:L.replay(bad)) + bad=deepcopy(word);index=bad['program'].index(gate);bad['program'][index][-1]=825 + controls['wrong_new_contact_frame']=reject(lambda:L.replay(bad)) + bad=deepcopy(local);bad['paid'][2]+=1;bad['paid'][3]-=1 + controls['undercharged_child']=reject(lambda:P.assemble(bad,native,caller,physical)) + result=P.encode({'status':'PASS_P104_A2_KAPPA_00310458','source_pr':5627,'source_head':'ed4dc88a09a7d201971f6603b8c2074e95dd9c32','source_foundation_matches':bindings,'local':local,'transpose':transpose,'native':native,'physical':physical,'complete_cost':price,'controls':controls}) +expected=read(HERE/'RESULT.json') +for key in ('local','transpose','native','physical','complete_cost','controls'): + need(result[key]==expected[key],'Exact saved complete receipt '+key) +print(result['status'],flush=True)