diff --git a/docs/ci-verification.md b/docs/ci-verification.md index 63ba3e9aa8..52b62d0481 100644 --- a/docs/ci-verification.md +++ b/docs/ci-verification.md @@ -1,8 +1,25 @@ # CI verification -## Current selected-family replay: #6030 +## Current selected-family replay: #7000 with #7001 The [selected record](../certificates/selected-result.json) binds conditional +κ = 0.00363005817 to the [application review](research/pr-intake-evidence/pr7000-application/PROOF-REVIEW.md), +[validation receipts](research/pr-intake-evidence/pr7000-application/VALIDATION.json), +and [explicit source closure](../certificates/frontier7000-source.json). +`make frontier7000-verify` follows that exact-source selected replay. The review +reuses eleven authenticated preceding executions and records seven fresh serial +application, scalar and complete native-catalogue executions. The earlier +monolithic timeout is retained separately and is not completed coverage. +Consult the receipts for exact commands, source heads and limits. + +The five inherited framework assumptions remain. No complete uniform word, +literal multiplier execution, independent human proof or formal-kernel proof +is asserted. Routine research submissions do not need to rerun this +selected-family replay. The sections below preserve historical checkpoints. + +## Historical selected-family replay: #6030 + +The [historical checkpoint](../certificates/checkpoints/frontier6030.json) binds conditional κ = 0.003125804 to the [proof review](research/pr-intake-evidence/pr6030-audit/PROOF-REVIEW.md), [validation receipts](research/pr-intake-evidence/pr6030-audit/VALIDATION.json), and [explicit source closure](../certificates/frontier6030-source.json). diff --git a/research/bit-451-carrier-cover/LICENSE b/research/bit-451-carrier-cover/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/bit-451-carrier-cover/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/research/bit-451-carrier-cover/MAJORANT.json b/research/bit-451-carrier-cover/MAJORANT.json new file mode 100644 index 0000000000..458d4b583d --- /dev/null +++ b/research/bit-451-carrier-cover/MAJORANT.json @@ -0,0 +1,75 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/PROOF.md": "95cc9e31bc030ec94b04decddcca2d28ee98cfec0ca7803b54666b2b76a5c9ab", + "inputs/cache/parent/qualify_complex.py": "236988674f4efe96134de83a224f9c5f4508f6049237415bc24a18669cf5ad67", + "inputs/7786/research/p104-iterated-returns/continuation/audit_expanded.py": "0316153c1822724e1a3d08066aec9601a891073b0209954eaf302ffa014bf5ac" + }, + "theta": "173/200", + "p": "237/4", + "H": 1202400000000000, + "H_times_uniform_loss": 2969, + "directed_ambient": [ + "1054724691559536589878889205580158361725691/200000000000000000000000000000000000000", + "659202932224710368674305753487598976078557/125000000000000000000000000000000000000" + ], + "directed_eta": [ + "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "2361090244509610722852395715003919/12500000000000000000000000000000000000" + ], + "uniform_loss": "2969/1202400000000000", + "cover_loss": "1/21152844499805798400000000000", + "covered_rate": "17098232203827662372017099909/4406842604126208000000000000000", + "ordinary_steps": [ + { + "previous": "12039/3125000", + "rate": "3879818251504056702593/1000000000000000000000000", + "recursive_gap": "10387824050967/5738076307456000000000000000000000000" + }, + { + "previous": "3879818251504056702593/1000000000000000000000000", + "rate": "969981901127518232351/250000000000000000000000", + "recursive_gap": "848039016235579/717259538432000000000000000000000000000" + }, + { + "previous": "969981901127518232351/250000000000000000000000", + "rate": "3879928041922096994311/1000000000000000000000000", + "recursive_gap": "1023050343612987/717259538432000000000000000000000000000" + }, + { + "previous": "3879928041922096994311/1000000000000000000000000", + "rate": "3879928043671745090571/1000000000000000000000000", + "recursive_gap": "756229795316283/717259538432000000000000000000000000000" + }, + { + "previous": "3879928043671745090571/1000000000000000000000000", + "rate": "969982010919685920739/250000000000000000000000", + "recursive_gap": "784920176853563/717259538432000000000000000000000000000" + }, + { + "previous": "969982010919685920739/250000000000000000000000", + "rate": "155197121747150867093/40000000000000000000000", + "recursive_gap": "1172240327606843/717259538432000000000000000000000000000" + }, + { + "previous": "155197121747150867093/40000000000000000000000", + "rate": "3879928043678771789303/1000000000000000000000000", + "recursive_gap": "31855853178739/28690381537280000000000000000000000000" + } + ], + "cap": "387992804367877/100000000000000000", + "candidate_grid_claim": "387992804359/100000000000000", + "candidate_tested": "193996402183/50000000000000", + "old_fixed_loss_complete_upper": "10258939322048654912318865283/2644105562475724800000000000000", + "old_cover_forgiven_upper": "775985608717/200000000000000", + "separation_even_forgiving_cover": "1/200000000000000", + "price_delta_vs_8026": "3/100000000000000", + "exact_relative_percent_vs_8026": "75/96998201089", + "verification": "Independent component and grid bound; verify_majorant.py replays and binds the complete application", + "controls": [ + "p=60 original passes", + "p=59 complement fails on old and new theta", + "2968 instead of 2969 rejected", + "p=60 fails at 2969" + ] +} diff --git a/research/bit-451-carrier-cover/MAJORANT.md b/research/bit-451-carrier-cover/MAJORANT.md new file mode 100644 index 0000000000..03448e959d --- /dev/null +++ b/research/bit-451-carrier-cover/MAJORANT.md @@ -0,0 +1,32 @@ +# Independent fixed-word uniform bound + +The exact #7863 supplier under the #8026 cover analysis has ambient A=134^451, maximum paid cutoff r=11^451, minimum retained rank k=16^451 and carrier N=2^H for H=1202400000000000. Freeze the original word, all integer replication choices, routes and scalar/physical premises. The ambient-cap compiler lemma gives L(N)=P_N/B_N ≤ N^t (1+H)^p, where t=1−0.003879928046148. The original strictification theorem allows any real p>0. The exponent is used in strong induction on the already determined selector and normalized count. [Original source and proof of fixed-word dependence](https://github.com/CrocSwap/integer-mult-bounds/blob/7c49fe32c55de02c2c873655c804b16e4c3fef0a/research/higher-moment-strictification/README.md#L186-L259) · [Ambient generalization](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/research/p104-shared-native-helper-splits/retained/compiler/PROOF.md#L225-L289) + +Take θ̄=173/200, p=237/4, e=2969/H. Integer comparisons give r^2002p and ln 2>1/2. No smaller carrier, cutoff, or physical word is introduced. + +Use #8026's fixed q/cylinder cover with unchanged d=1/(H·2^44). Its charged bad-class multiplier bound and freshness conditions are identical. Bound the covered rate by C−e−d. From the same completed seed, seven strictly interior rational stage estimates give the final admissible ordinary service 0.00387992804367877. As in #8026 the improved rate changes only the analytical thresholds. Original dispatch, all nested bank loans and restoring operations, separate ordinary/precision/tape bills and recovery hypotheses remain those of the baseline. The frozen seven-stage physical transfer remains an assumption. + +The pinned outer compiler returns at most the lesser signed/ordinary grid predecessor minus eight ticks, for tick 10^−14. Its auditor requires the tested point, exactly seven ticks above the public claim, to be strictly below the ordinary cap. The independently replayed application gives 0.00387992804359, tested at 0.00387992804366 with BIT headroom 0.00000000000001877. Even allow #8026 its native raw upper 0.003879928046155, grant zero cover loss and ignore every strict seven-stage debit. Its previous fixed uniform loss 3006/H then implies an upper bound of 0.003879928043585 on a complete claim under those outer rules. The proposed point clears this generous ceiling by 5·10^−15. This is a comparison of certified complete bounds for specified proofs. The exact physical leaf count and optimal crossing remain unknown. + +The exact change over #8026 is +0.00000000000003, or (75/96998201089)% = +0.0000000007732102158388% when rounded. [Predecessor #8026](https://github.com/CrocSwap/integer-mult-bounds/pull/8026) + +## Replay + +From the repository root, CPython 3.12 runs the package's complete verifier: + +```sh +python3.12 -I -B research/bit-451-carrier-cover/verify_majorant.py +``` + +The runner rebuilds the predecessor and checks the complete application. The independent component calculation can also run against the extracted, authenticated #7863 producer directory: + +```sh +python3.12 -I -B research/bit-451-carrier-cover/majorant_audit.py "$producer" majorant-receipt.json +cmp research/bit-451-carrier-cover/MAJORANT.json majorant-receipt.json +``` + +Passing `--outer` with a fresh complete-consumer results directory also checks the installed cap, tested point, complete claim, and hashes of the application and audit against its run receipt. Both modes return the same deterministic component receipt. The checker exercises the original passing p=60 instance. Lowering p to 59 or lowering the loss numerator to 2968 makes the corresponding test fail. The predecessor p=60 fails at the proposed loss. + +## Provenance + +zxv established the arbitrary-positive-power argument used here in #4433, extending #4411. zxv's #4480 separately studied normalized logarithmic majorants and the paid exit law. This application uses the ambient-cap adaptation of #4433's bound, fixes every physical choice and N, and changes the two parameters of that bound to prove the lower loss. Jacob Alan Sussman's integral flow supplies the normalized paid/productive count to which the induction applies. DreamingOfClouds supplied the ambient-cap source construction, and the retained compiler proof credits its chronological product and specialization predecessors. Clear1nsight supplied the #7863 fixed binary schedule and signed rational consumer, independently reviewed in #7973. #8026 supplies the charged delayed-cover proof, seven-stage stock contract and comparator. The source proofs credit the original column, compiler and recovery contributions. OpenAI Codex materially assisted the new estimates, proofs and replay. [#4433](https://github.com/CrocSwap/integer-mult-bounds/pull/4433) · [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [Finite precompilation](https://github.com/CrocSwap/integer-mult-bounds/blob/7c49fe32c55de02c2c873655c804b16e4c3fef0a/research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md#L137-L201) · [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) diff --git a/research/bit-451-carrier-cover/PROOF.md b/research/bit-451-carrier-cover/PROOF.md new file mode 100644 index 0000000000..3ef15b3ae2 --- /dev/null +++ b/research/bit-451-carrier-cover/PROOF.md @@ -0,0 +1,31 @@ +# Reusing the frozen 451-factor cover + +The #7863 producer at `b3e4412fe01f07dc58305616fabf96345f49a781` and #7973 replay at `ac3df5d5c8889f464f575e32dfea43714abf08ca` fix the 451-factor physical compiler transfer as an explicit premise. Assume exactly its opaque externally completed supplier, its fresh covered word, weighted recurrence and fully restored stock, including the nested seed, together with the recorded precision, tape and recovery hypotheses. Their physical realization remains conditional. This argument changes the estimate applied to those same objects. + +**Where the loss enters.** In #7863's `replay_451.py` (lines 166–186) the cover loss sets a sufficient surcharge budget, the displayed multiplier and the exponent input to the ordinary induction. The finite catalogue, q criterion, GL family, width splitting and raw tensor are fixed independently. The inherited delayed-cover bridge §7 supplies the stronger original inequality, for a uniform word with productive count B, rank-one paid count P and ambient N: + +``` +μ(τ) ≤ (P/B) N^(−τ) (1 + (2N³/q)·32N²). +``` + +It includes every bad-class fallback invocation. The next paragraph specializes a conservative estimate using d/4. That sufficient recipe is unnecessary once the actual H and q are retained. Let C₀=C−e with C=0.003879928046148 and e=1/400000000000, and let d=1/(H·2^44), H=1202400000000000. The unchanged uniform supplier gives P/B2^52N^5 bounds the extra factor by 1+2^−46. Since ∫₁² dx/x > 7/12 > 1/2 and exp(x)≥1+x, N^d=2^(2^−44)>1+2^−45. Thus the complete normalized moment is strictly below (1+2^−46)/(1+2^−45)<1. The allowed q still avoids the original catalogue. The common weight remains independent of fresh child roles and cover coordinates; its existing restrictions still apply. The old shortcut would require 2^−46 < d/4, which fails here. Also floor(Hd)=0. The gain specifically uses the true real power N^d. + +**Fixed algorithm, improved time bound.** Section 8 of the bridge and the retained BIT audit §3 give the three volume-normalized root terms at input width L, + +``` +L^(1−ρ), L^((1−ρ)(1−C₀+d)+ρ(1−b_previous)), L^ρ log L. +``` + +The middle exponent is evaluated with the just-proved covered rate. The dispatch rule still uses ρ=1/250, w=ceil(L^ρ), the same reduced child width and the same completed previous algorithm for the ordinary atom exchanges. None of the three root costs imposes an interface on the physical word depending on d. Every b_new must lie below ρ, 1−ρ and (1−ρ)(C₀−d)+ρ b_previous. The independent verifier gives seven strict rational steps from 0.00385248 and checks every gap, including the old seven-stage schedule as a correctness control. The final bound 0.003879928043647999999549 permits use of 0.00387992804364799 in the outer compiler. + +For a strict gap δ>0 and a fixed multiplicative constant A and log degree ℓ from that stage, A(1+log L)^ℓ≤L^δ for all sufficiently large L. Choose the next fixed proof threshold after freezing the preceding stage. If it exceeds the original dispatch threshold, the intervening bounded range already executes the old valid algorithm; its finite costs can be absorbed by increasing the asymptotic constant. No new backend, lookup or fallthrough is thereby assumed at those widths. Phase-specific constants can grow, including the constant for the slightly weaker per-level contraction, while remaining independent of L. The original W(w)^D·S_old reserve has the identical N,B,q, depth and nested seed. Borrowed rows return at exactly the same events. No additional precision, tape, route or historical-stock entitlement is invoked. These facts retain the existing opaque payload and recovery contracts; they do not construct the original conditional 451-factor physical supplier. + +**Separation.** The unchanged native crossing interval is [0.003879928046154,0.003879928046155]. Even its upper endpoint under the predecessor's fixed losses 2.5·10^−12 and 10^−13 gives an ordinary ceiling 0.003879928043555. Seven predecessor stages undercut their covered rate; the complete application also requires a strictly larger BIT input rate than its claimed rate. Thus the new outer claim 0.00387992804356 is strictly above that generous ceiling by 5·10^−15. The strict increase over #7863's certified 0.00387992804346 is 10^−13. This separates the previous charged proof recurrence. No movement in the underlying signed moment's crossing or the optimal rate of the physical algorithm is claimed. The comparison is conditional on the same successful 451-factor, seven-stage transfer as #7863. + +**Checks and source credit.** The original supplier, charged fallbacks and exact native census are from #7863/#7830, the independent reproducibility record from #7973, and the delayed-cover and stock argument from the retained BIT audit and bridge (hashes in `audit.py`). OpenAI Codex assisted the new bound and numerical audit. With CPython 3.12 use the #7863 producer-directory root and, for outer binding, the independently generated consumer directory containing its APPLICATION.json, AUDIT.json and receipt.json: + +```sh +python3.12 -I -B audit.py path/to/producer proof-receipt.json --consumer path/to/consumer-results +``` + +Omit the optional consumer argument to verify only the complete charged component. The checker authenticates source paths, verifies the exact new inequalities, rejects the zero-loss upper estimate and a rate equal to a stage envelope, and (in binding mode) compares the outer inputs, outputs, and artifact hashes. Executing the independent rational compiler and outer audit is a separate receipt. diff --git a/research/bit-451-carrier-cover/README.md b/research/bit-451-carrier-cover/README.md new file mode 100644 index 0000000000..9e13dac975 --- /dev/null +++ b/research/bit-451-carrier-cover/README.md @@ -0,0 +1,107 @@ +# Sharper bounds on the same 451-factor multiplier + +Under the same premises as #7863, the deterministic fixed-multitape multiplier for every pair of n-bit integers returns the exact product in time O(n (log n)^(1−κ)) with **κ = 0.00387992804544**. The improvement is in the proof of the ordinary BIT rate on the existing physical schedule. + +| Comparable complete result | Conditional κ | +|---|---:| +| #7863, independently reproduced against #7973 | 0.00387992804346 | +| Prior #8026 cover proof at 355f3218 | 0.00387992804356 | +| Cover and fractional majorant at 80fcb342 | 0.00387992804359 | +| Cover and normalized majorant at f1649c6d | 0.00387992804406 | +| Complete integer-scale endpoint at 2f82ecc8 | 0.00387992804422 | +| Weighted paid exits at a24daf62 | 0.00387992804459 | +| Minimum integer power for the fixed comparison law at 1ef5792e | 0.00387992804502 | +| Second moment of the actual paid jobs at 47f5718d | 0.00387992804505 | +| Paid ranks bounded on a sixteenth grid at 18718411 | 0.00387992804518 | +| Power 23 from the 451-factor paid tensor moments at cb73879f | 0.00387992804531 | +| Least integer power under the 3/4 mean bound at a5186a40 | 0.00387992804538 | +| Power 20 under the measured mean bound at c2a4868b | 0.00387992804541 | +| Power 19 with grouped source complements | **0.00387992804544** | + +The original finite compiler partitions unmatched inputs into root, partial-sibling and full-sibling groups. With each chronological paid occurrence counted separately, all three groups admit a source-capacity factor of **8/5**. All 20 power-19 coefficients clear the resulting capacity. At scale 1804 the uniform loss drops from 786/H to 747/H. Seven charged ordinary stages give cap 0.00387992804552674. The signed consumer tests 0.00387992804551. The gain over power 20 is **0.00000000000003** or approximately **0.000000000773210215470%**, exactly (100/129330934847)%. The gain over #7863 is **0.00000000000198** or approximately **0.0000000510318742466754%**, exactly (1100/21555155797)%. [Source multiplicities, proof and credits](tensor/SIBLING.md) · [Independent receipt](tensor/SIBLING.json) + +## Power 20 under the measured mean + +The original paid inventory bounds the full 451-factor mean below 749/1000, including the split surcharge. At scale 1804, this tighter bound admits power 20 at every integer height. Independent evaluations match all 21 moments and coefficient ratios. The uniform loss falls from 825/H to 786/H, and seven ordinary stages give cap 0.00387992804549430. The complete signed application tests 0.00387992804548. The gain over the power-21 proof is **0.00000000000003** or approximately **0.000000000773210215476%**, exactly (50/64665467423)%. The gain over the reproduced #7863 result is **0.00000000000195** or approximately **0.000000050258664030817%**, exactly (3250/64665467391)%. [Paid-mean proof and predecessor credits](tensor/MEAN.md) · [Independent receipt](tensor/MEAN.json) + +## Power 21 under the 3/4 mean bound + +At the fixed scale 1804 and mean bound 3/4, the power-20 limiting ratio is greater than 0.0001937619, above the capacity upper bound of 0.0001888873. This excludes powers up through 20 for this moment comparison. For power 21 all 22 coefficients pass at height zero, certifying every height. The uniform loss falls from 904/H to 825/H. The complete signed replay tests 0.00387992804545 against ordinary cap 0.00387992804546187. The gain over power 23 is 0.00000000000007, exactly (700/387992804531)% or approximately 0.00000000180415716948%. The cumulative gain over #7863 is 0.00000000000192, exactly (3200/64665467391)% or approximately 0.0000000494854538150%. zxv had already proved power 21 on a different 227-factor construction. [Independent minimum proof](tensor/MINIMUM.md) · [Exact receipt](tensor/MINIMUM.json) · [Earlier 227-factor benchmark](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/BENCHMARKS.json) + +## Tensor moments at power 23 + +The paid-rank support and mean bound the first 23 completed moments, including the full excess paid mass. At scale 1804, direct evaluation on 452 binomial atoms matches the independent Stirling expansion. All 24 coefficients pass at every height. The uniform loss falls from 1061/H to 904/H. Seven strict stages give ordinary cap 0.00387992804539617 and the signed consumer tests 0.00387992804538. The gain over the preceding grid proof is **0.00000000000013**, or **0.00000000335057760056911%**, exactly (650/193996402259)%. Over the independently reproduced external peer #7863, the gain is **0.00000000000185**, or **0.0000000476812966446209%**, exactly (9250/193996402173)%. [Proof and source credits](tensor/PROOF.md) · [Independent receipt](tensor/RESULT.json) + +## Paid ranks on a sixteenth grid + +One rational distribution bounds the paid log ranks on the original 451-factor word, including the positive cost of splitting paid jobs. Direct convolution and a separate coefficient proof agree that power 27 suffices at every integer height. The limiting ratio rules out powers up through 26 for this distribution. The uniform loss falls from 1218/H to 1061/H. All seven ordinary stages give a cap of 0.00387992804526559. The complete signed application tests 0.00387992804525. The exact gain over the preceding proof is 0.00000000000013, or (260/77598560901)%, approximately 0.00000000335057760068%. Over #7863 it is 0.00000000000172, or (8600/193996402173)%, approximately 0.0000000443307190426%. [Proof and source credits](grid/PROOF.md) · [Independent receipt](grid/RESULT.json) + +## Charged second moment + +The original 451-factor word bounds the second moment of the completed paid log ranks by 3/5, including the full split surcharge. This admits power 31 at height five and at every other integer height. All 32 coefficient bounds pass. The largest coefficient ratio occurs at index four and is below 0.000058149, against capacity greater than 0.0001888872. The uniform loss falls from 1257/H to 1218/H. The ordinary cap is 0.00387992804513502 and the complete signed consumer tests 0.00387992804512. The exact gain over power 32 is 0.00000000000003, or (50/64665467417)%, approximately 0.000000000773210215548%. The cumulative gain over #7863 is 0.00000000000159, or (2650/64665467391)%, approximately 0.0000000409801414405%. [Proof and source credits](weighted/SECOND.md) · [Independent receipt](weighted/SECOND.json) + +## Fixed mean comparison + +For the fixed weighted Bernoulli comparison, p=32 is the smallest admissible positive integer power. The actual height G=5 rules out p=31 for this upper estimate and monotonicity excludes every smaller integer power. All 33 coefficients pass at p=32. The resulting uniform loss is 1257/H and ordinary cap is 0.00387992804510259. The exact gain over p=45 is 0.00000000000043, or (4300/387992804459)%, approximately 0.0000000110826797574%. The total gain over #7863 is 0.00000000000156, or (2600/64665467391)%, approximately 0.0000000402069312247%. The exclusion applies to the Bernoulli comparison with these constants. [Minimum-power proof](weighted/MINIMUM.md) · [Independent receipt](weighted/MINIMUM.json) + +## Weighted paid exits + +The actual paid ranks support a tighter estimate of the leaf count. At p=45 and h=1804, the directed mean including split charges is at most 0.748475924225778. All 46 coefficient bounds hold at every recursion depth. This reduces the uniform charge from 2218/H to 1768/H and gives ordinary cap 0.00387992804467760. The complete consumer tests 0.00387992804466. The incremental gain is 0.00000000000037 over the integer-scale endpoint, exactly (1850/193996402211)% or approximately 0.00000000953625932706%. The cumulative increase over #7863 is 0.00000000000113, exactly (5650/193996402173)% or approximately 0.0000000291242514640%. [Weighted proof and source attribution](weighted/PROOF.md) · [Independent coefficients and receipt](weighted/RESULT.json) + +## Fixed integer-scale endpoint + +At fixed p=60 and θ=13/15, the shift and base guards admit exactly the positive integer scales 1 through 9012. Scale 9012 attains the minimum integer carrier loss numerator, 2218. It gives the ordinary cap 0.00387992804430335, tested at 0.00387992804429. The complete rate rises by 0.00000000000016 over the normalized proof, exactly (800/193996402203)% or approximately 0.00000000412378781728%. The cumulative increase over #7863 is 0.00000000000076, exactly (3800/193996402173)% or approximately 0.0000000195879921351%. [Endpoint proof](normalized/ENDPOINT.md) · [Exact receipt](normalized/ENDPOINT.json) + +## Normalized majorant + +The normalized majorant reduces the uniform charge to 2406/H and supports ordinary cap 0.003879928044147. The outer compiler tests 0.00387992804413. This adds 0.00000000000047 over the fractional proof, exactly (4700/387992804359)% or approximately 0.0000000121136267147%. The total over #7863 is 0.00000000000060, exactly (1000/64665467391)% or approximately 0.0000000154642043172%. The complete proof and independent receipt identify the same integer flow at every rank. [Normalized proof](normalized/PROOF.md) · [Receipt](normalized/RESULT.json) + +## Fractional majorant + +The fractional majorant increases the complete rate by 0.00000000000013 over #7863, exactly (650/193996402173)% or approximately 0.00000000335057760205%. The increment over the prior #8026 head is 0.00000000000003, exactly (75/96998201089)% or approximately 0.000000000773210215839%. The new argument applies the existing real-power leaf-count induction to the same physical schedule. It reduces the uniform loss from 3006/H to 2969/H. The ordinary cap is 0.00387992804367877 and the full outer compiler tests 0.00387992804366. [Fixed-word proof](MAJORANT.md) · [Independent exact receipt](MAJORANT.json) + +## Original cover proof + +The original uniform carrier has N = 2^H with H = 1202400000000000. The retained delayed-cover theorem charges the full fallback by a factor below 1 + 2^−46. Taking d = 1/(H·2^44) gives N^d > 1 + 2^−45. The complete normalized moment is therefore strictly below one after this smaller loss. Evaluating all seven ordinary stages supports the installed BIT cap 0.00387992804364799. The 48-call rational application tests 0.00387992804363 and certifies its original complete rate of 0.00387992804356. [Proof and strict stage checks](PROOF.md) · [Machine-readable receipt](RESULT.json) · [Delayed-cover theorem, §7](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/research/p104-shared-native-helper-splits/retained/compiler/bit-audit/retained/DELAYED-COVER-BRIDGE.md#7-moment-and-row-stock-consequences) + +The native signed crossing is still enclosed by [0.003879928046154, 0.003879928046155]. Giving the predecessor its upper endpoint and deducting only its two fixed losses yields a ceiling of 0.003879928043555 on the old proof. The new complete claim exceeds even this ceiling by 0.000000000000005. Both proofs use the original paid and productive positions, ordinary word, full fallback work, selected prime and excluded catalogue, stock recursion, restored ownership, 451-factor compiler and precision obligations. Improved asymptotic estimates may require larger fixed proof thresholds. The explicit physical realization of #7863's seven stages and nested seed remains conditional. Main selects #7000 separately. + +## Replay + +Use CPython 3.12 from a clean repository checkout. The package uses the standard library and authenticates a vendored copy of the public #7863 archive. It writes generated files in a temporary directory. + +```sh +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The first scientific marker is `PASS_ORIGINAL_451_SUPPLIER_AND_ACTUAL_CARRIER_COVER`. It requires byte-identical regeneration of the predecessor's complete BIT receipt, including the native signed census and all 36 caller uses. The original cover marker, `PASS_COMPLETE_SIGNED_APPLICATION`, requires the expanded rational audit, 54 strict conditions, four functional checks and agreement with an independent arithmetic proof and separately regenerated application and audit. Controls cover a missing CLEAR, an extra paid term, an insufficient BIT cap, a non-strict ordinary stage and an insufficient cover bound. + +The second registered command emits `PASS_COMPLETE_FRACTIONAL_MAJORANT` after reconstructing the supplier, replaying the full application and checking the independent fractional-majorant certificate. Its application SHA-256 is `2d46b81b9f009ec80a21ae1545f975cdf68abcfe4ea2f3f3a6becaf43e107ebf` and its expanded audit SHA-256 is `df50d7caf1239edaad65ed5394e483e9f5b1e804495435d4386c8068cb0d8d97`. + +The h=1024 scientific marker is `PASS_COMPLETE_NORMALIZED_MAJORANT`. The normalized application and expanded audit hashes are `cac0e76c9eb370729f35974088b70a57c48238153f99fca69cb113593bc6163b` and `e68fc5f619a25881fb1d6f064f45a4cf8f161545d63c0dd7f550c1f7d48d3aaa`. + +The pointwise endpoint marker is `PASS_COMPLETE_INTEGER_SCALE_ENDPOINT`. The endpoint application SHA-256 is `d8afd25d84dd2721549686ee5a03ce5bddcf2a7957037d700e43e23b04f56f7e` and the expanded audit SHA-256 is `af789e7e42411cfbadf411488de43626e6e23a44ccfb7d2027d488066db3691d`. + +The third registered command reproduces all three weighted proofs. Look for `PASS_COMPLETE_WEIGHTED_EXITS`, `PASS_COMPLETE_WEIGHTED_MINIMUM` and `PASS_COMPLETE_SECOND_MOMENT`. The last application SHA-256 is `038a693200287638feae8d6888d4834577e3eb4b2d95cd75ea607605f1c989a0` and the expanded audit SHA-256 is `bf063d3cee7cdde73575265d2e73f430f71dd98abf611bd63cddcbc8ed0e78e1`. + +The fourth registered command reconstructs the grid weights, checks the boundary powers and reruns the complete signed application and its invoice controls. Its final marker is `PASS_COMPLETE_DYADIC_GRID`. The application and audit SHA-256 values are `9300f140d1ad01f3e0177402b5f361619191229a22e353a2e36de5a597895db2` and `a0d962f26dc7a623a8636b1e8670690227e627588b2d34b952edcff164ff9326`. + +The archived source has SHA-256 `5f9d9c378a1bddccb2e42ac6453716fa950f19bd71f6181a9606f5eb68b022b3`. The verifier checks all 202 entries in its source manifest. The regenerated application and audit hashes are `e0a28d730e5a63070221a170c3e5e10abdf4ed552d67fbd47d1f4ec157b736ad` and `51963b588680e3150b97b156a461c9002368c40752b73bc4a6b03f94aca97c0b`. [Exact predecessor archive](https://github.com/CrocSwap/integer-mult-bounds/blob/b3e4412fe01f07dc58305616fabf96345f49a781/research/p104-bit-451-factor-schedule/replay.tar.gz) + +The fifth command emits `PASS_COMPLETE_TENSOR_MOMENTS` after the independent power-23 replay. Its application SHA-256 is `4b1b348ef8fcb0fb3ea4d9c0224925b1448516c9f8aceb2181ca82713c3159c9`. Its expanded audit SHA-256 is `6a2addc5684f3370f640bfcd84316f90d399fed1909b050e123b21204090a8c6`. + +It then reconstructs the 20/21 boundary and emits `PASS_COMPLETE_TENSOR_MINIMUM` after replaying the power-21 application. Its application and audit SHA-256 values are `43a9c277ebd2578286cf9d3147db662684bbdad070ac69613622389c5e721073` and `3e206ace6bd05b3c39c0ec153888282ed70537ce7378d58fe741ceac87eb54c0`. + +The same command retests power 20 with the tighter source mean and verifies the complete signed consumer. The final marker is `PASS_COMPLETE_TENSOR_MEAN`. The application SHA-256 is `fd110bf3a3d6ed204f3b312bcd72aedc444806b3821515fd4220b3ba327037f1` and the expanded audit SHA-256 is `001afbe125635833bafb8c5f1b313700d25370b5bf4dfc68983f53220197cacd`. + +The final tensor check distinguishes equal-rank paid labels, authenticates the finite compiler and reproduces the power-19 application. Look for `PASS_COMPLETE_SIBLING_CAPACITY`. The application SHA-256 is `8d5a5fa30f79b5f39fabc2bb320f38ac291761c0012de5d22540a142b1d767af` and the expanded audit SHA-256 is `e8dbc8054ecd54bb6d089346cf84220499d8683fd2043b0650817ad0bd0dd806`. The controls include an insufficient source multiplier and the working power-20 predecessor. [Finite Pascal identity](https://github.com/CrocSwap/integer-mult-bounds/blob/7c49fe32c55de02c2c873655c804b16e4c3fef0a/research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md#L94-L176) + +## Credit and overlap + +Clear1nsight supplied the exact 451-factor word and schedule, the #7830 compiler lineage and the #7973 consumer audit. Ali Romman supplied the earlier dual-supplier construction and paired caller. The retained delayed-cover and ambient-cap authors supplied the fallback inequality and stock lemma. Dugongue and Rohan Arun supplied the #7831 and #7835 cutoff schedules used in the predecessor lineage. Cinna Davis supplied earlier balanced CRT and outer proof work. The inherited source notices accompany the archived inputs. This contribution specializes the existing multiplier inequality to the actual carrier, proves the improved seven-stage rate on the same algorithm and independently replays the resulting application. OpenAI Codex materially assisted the reasoning, implementation and replay. [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) · [#7830](https://github.com/CrocSwap/integer-mult-bounds/pull/7830) + +The nearest six-stage threshold calculation assumes a different raw invoice, larger carrier and stronger prime criterion. The 480-factor physical realization and the ternary receiver concern other contracts. [#7975](https://github.com/CrocSwap/integer-mult-bounds/pull/7975) · [#7846](https://github.com/CrocSwap/integer-mult-bounds/pull/7846) · [#7945](https://github.com/CrocSwap/integer-mult-bounds/pull/7945) + +## Open next questions + +Can a sharper source-capacity estimate admit power 18? At the frozen paid mean, first price the necessary whole-word root and nonroot contributions. Test a nonroot multiplier of 5/2 and bound the root contribution separately in rank bands before attempting a power-18 construction. The signed price, all heights and independent replay remain open. [Current source proof](tensor/SIBLING.md) diff --git a/research/bit-451-carrier-cover/RESULT.json b/research/bit-451-carrier-cover/RESULT.json new file mode 100644 index 0000000000..e11a18afb1 --- /dev/null +++ b/research/bit-451-carrier-cover/RESULT.json @@ -0,0 +1,111 @@ +{ + "C": "969982011537/250000000000000", + "H": 1202400000000000, + "H_times_d": "1/17592186044416", + "charge_upper": "1/70368744177664", + "condition": "Same #7863 opaque physically completed supplier, compiled uniform word, q, cover bound, restored original and nested stock, precision and analytic recovery", + "contraction_slack": "1/70368744177666", + "controls": [ + "same old seven-stage chain", + "old d/4 shortcut unavailable", + "zero-loss upper fails", + "envelope equality rejected" + ], + "covered": "51294696611076167813774179727/13220527812378624000000000000000", + "head_7863": "b3e4412fe01f07dc58305616fabf96345f49a781", + "log_two_lower": "7/12", + "multiplier_upper": "70368744177665/70368744177666", + "new_cover_loss": "1/21152844499805798400000000000", + "normalization_lower": "35184372088833/35184372088832", + "old_cover_loss": "1/10000000000000", + "old_fixed_loss_component_ceiling": "775985608711/200000000000000", + "old_native_crossing": [ + "1939964023077/500000000000000", + "775985609231/200000000000000" + ], + "old_published": "193996402173/50000000000000", + "ordinary_cap": "387992804364799/100000000000000000", + "outer": { + "bit_headroom": "1799/100000000000000000", + "claim": "96998201089/25000000000000", + "consumer_hashes": { + "APPLICATION.json": "e0a28d730e5a63070221a170c3e5e10abdf4ed552d67fbd47d1f4ec157b736ad", + "AUDIT.json": "51963b588680e3150b97b156a461c9002368c40752b73bc4a6b03f94aca97c0b", + "adapter/SOURCE-LOCK.json": "b46b919292e1a1907345056b6925f5f1400d45650e2f0f610779a07163bb64ee", + "adapter/binary/FINITE.json": "12aa9d9547d4444545c4139e4d318e99594a4769af1492ee633e4d95290645ea", + "adapter/binary/WORD.json.gz": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9" + }, + "delta": "1/10000000000000", + "over_fixed_loss_upper": "1/200000000000000", + "percentage": "500/193996402173", + "tested": "387992804363/100000000000000" + }, + "provenance": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "PROOF.md": "85e4a9a88411e1d763e5d6360b1093f8987c267be853c42322aa5e812dc13698", + "consumer-replay/CONSUMER.json": "580ba8c262de41c99142c7ed9b7c412821e12dd3a491fde1ee974bda45af1d54", + "inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/bit-audit/PROOF.md": "ab5a2a5da1aab0193e286de8e16bc62840be760679c1f9e70218ce13225f69cf", + "inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/bit-audit/retained/DELAYED-COVER-BRIDGE.md": "9731b93026717f5fa15851e3633cbb4bdc76eba2bffb9d6b4a3b69f7dd502443", + "replay_451.py": "4168fb987bbb75f4d0eee051c8a1c28382dbc53ee062aa794db867a10b0d0643" + }, + "q_lower_bound": "2^52*N^5", + "seven_strict_stages": [ + { + "adapter_gap": "496060090874263296000001/500000000000000000000000", + "claim": "1939909125736703999999/500000000000000000000000", + "envelope": "4274437091714866062339096917341/1101710651031552000000000000000000", + "linear_gap": "60090874263296000001/500000000000000000000000", + "previous": "12039/3125000", + "recursive_gap": "34427647297861/17214228922368000000000000000000000000" + }, + { + "adapter_gap": "496060036197760349184001/500000000000000000000000", + "claim": "1939963802239650815999/500000000000000000000000", + "envelope": "8348745248215198032798055647524718257/2151778615296000000000000000000000000000", + "linear_gap": "60036197760349184001/500000000000000000000000", + "previous": "1939909125736703999999/500000000000000000000000", + "recursive_gap": "4286241683310257/2151778615296000000000000000000000000000" + }, + { + "adapter_gap": "496060035979054337396737/500000000000000000000000", + "claim": "1939964020945662603263/500000000000000000000000", + "envelope": "8348746189429036433817223744305006257/2151778615296000000000000000000000000000", + "linear_gap": "60035979054337396737/500000000000000000000000", + "previous": "1939963802239650815999/500000000000000000000000", + "recursive_gap": "4286241683310257/2151778615296000000000000000000000000000" + }, + { + "adapter_gap": "39684802878254361067967/40000000000000000000000", + "claim": "155197121745638932033/40000000000000000000000", + "envelope": "8348746193193891787421300416692127409/2151778615296000000000000000000000000000", + "linear_gap": "4802878254361067967/40000000000000000000000", + "previous": "1939964020945662603263/500000000000000000000000", + "recursive_gap": "2375462272927409/2151778615296000000000000000000000000000" + }, + { + "adapter_gap": "496060035978176014053399/500000000000000000000000", + "claim": "1939964021823985946601/500000000000000000000000", + "envelope": "333949847728358048353428974659972697/86071144611840000000000000000000000000", + "linear_gap": "60035978176014053399/500000000000000000000000", + "previous": "155197121745638932033/40000000000000000000000", + "recursive_gap": "111888435261017/86071144611840000000000000000000000000" + }, + { + "adapter_gap": "992120071956352000112429/1000000000000000000000000", + "claim": "3879928043647999887571/1000000000000000000000000", + "envelope": "8348746193209011446521380375304111793/2151778615296000000000000000000000000000", + "linear_gap": "120071956352000112429/1000000000000000000000000", + "previous": "1939964021823985946601/500000000000000000000000", + "recursive_gap": "3890314418095793/2151778615296000000000000000000000000000" + }, + { + "adapter_gap": "992120071956352000000451/1000000000000000000000000", + "claim": "3879928043647999999549/1000000000000000000000000", + "envelope": "8348746193209011687472118626925184689/2151778615296000000000000000000000000000", + "linear_gap": "120071956352000000451/1000000000000000000000000", + "previous": "3879928043647999887571/1000000000000000000000000", + "recursive_gap": "2762782423680689/2151778615296000000000000000000000000000" + } + ], + "uniform_loss": "1/400000000000" +} diff --git a/research/bit-451-carrier-cover/SOURCES.json b/research/bit-451-carrier-cover/SOURCES.json new file mode 100644 index 0000000000..eca8748bbf --- /dev/null +++ b/research/bit-451-carrier-cover/SOURCES.json @@ -0,0 +1,36 @@ +{ + "schema_version": 1, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + }, + { + "path": "LICENSE", + "usage": "provenance", + "git_blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + { + "path": "research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md", + "usage": "input", + "git_blob": "4badb40f0919c515823cb07e44c6470d4d6469ca", + "sha256": "4cb32f6b8e388ecf6ed41b5bbdeeb4539cb40c8424f194974afea58f7e0921e8" + }, + { + "path": "research/kappa-rebuild/architecture/sources/Sussman-563b4e6/research/record-track/programs/theorem-1g/tree_flow.py", + "usage": "input", + "git_blob": "31a9c1ae4d116b12e8db7d8e06f723f10425068d", + "sha256": "750782f6d1cc0a9fff8a768899f3f4c62a7efdf0696d8b5a5d640b1836f5ab72" + } + ] +} diff --git a/research/bit-451-carrier-cover/TASK.json b/research/bit-451-carrier-cover/TASK.json new file mode 100644 index 0000000000..1945a528fb --- /dev/null +++ b/research/bit-451-carrier-cover/TASK.json @@ -0,0 +1,83 @@ +{ + "schema_version": 1, + "task_id": "uniform-transfer-audit", + "priority_revision": 8, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "original_card": { + "id": "uniform-transfer-audit", + "question": "Can one of the selected record's five inherited assumptions be proved at its actual caller?", + "starting_points": [ + "docs/research/current-priorities.md", + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md" + ], + "methods": [ + "Construct and independently check one source-bound instance of the stated first experiment.", + "Seek an exact counterexample or target-specific complete-budget obstruction to that same proposed change." + ], + "acceptance_gate": "Identify the proposition and what would change downstream; do not equate a finite replay with a universal proof.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read revision 8, the selected review and live exact-source handoffs. Then follow this card's bounded first_experiment.", + "scope": "Source-bound orientation only, not a supplier replay or theorem proof." + }, + "first_experiment": "Choose one assumption ID (native_all_columns, owned_erasure, compiler, precision_tape, analytic_recovery), one quantified implication and exact dependency closure. Check current handoffs, including #5625 row reentry and #5707 root-prefix lowering, without treating their partial scope as the whole theorem. Prove or falsify that implication with a caller-bound argument; stop at the chosen obligation. Finite tests or root digits do not discharge an all-size statement.", + "bottleneck_link": "Judge the actual current supplier contract and complete signed target/paid bill; frozen-profile ceilings require an applicability proof.", + "allowed_variations": [ + "One exact source head, helper/cut region or quantified proposition and changed hypothesis; check live handoffs first. Different seeds are not different scopes." + ], + "scope_change_triggers": [ + "Changing source head, helper/cut domain, operation alphabet or caller boundary without recording the new scope.", + "Treating an archived proposal or local numerical pass as complete supplier admission." + ], + "overlap_terms": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ], + "existing_checks": [ + { + "scope": "PR #4100: proposed unconditional construction and finite checks, without independent acceptance.", + "evidence": "research/unconditional-batched-crt/README.md", + "remaining": "Independent proof audit of one caller-bound all-size implication; all other premises remain explicit.", + "status": "author-checked", + "source_commit": "337d04939571a637aeab54a0f58f54fde811663a", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "actual_scope": "Bound charged fallback and normalized leaf counts on the frozen 451-factor carrier, including its actual paid-exit distribution. Replay the complete signed application for each qualified cap. Decide the smallest integer power admitted by the fixed Bernoulli comparison, then verify its complete bound. Test whether the charged second moment reopens the excluded power 31 on the actual paid word. Construct one rational distribution dominating the completed paid log ranks on a sixteenth grid and verify its minimum admissible power. Bound the first 23 moments of the completed paid tensor using the source support and mean, then verify the power-23 contraction and complete application. Decide the minimum positive integer power for the fixed 3/4 tensor moment estimate. Test whether the exact paid mean admits power 20 on the same tensor by replacing 3/4 with 749/1000. Prove a uniform source-weight multiplier from root, partial and complete sibling groups, test power 19 and replay its complete signed invoice.", + "scope_change_reason": "Use the strongest reproduced comparable open supplier and the same prime, catalogue and seven-stage algorithms.", + "bottleneck_link": "The cover surcharge and uniform compiler loss reduce the ordinary BIT rate below the frozen native crossing.", + "budget_minutes": 60, + "stop_rule": "Each weighted test has a 60-second arithmetic limit. The fixed-law search permits six powers and 1,024 explicit heights. The higher-moment test permits one p,h pair. Advance each claim only after checking all heights, all seven stages, the complete signed application and strict separation. The single-grid screen permits six powers, 1,024 explicit heights and 60 seconds. Independently replay one winning power and the boundary control. The tensor test covers one power, 24 coefficients and 60 seconds of discovery. For its boundary, test one limiting control and one positive power, with at most 64 explicit heights in 60 seconds. For the tighter mean, allow one power-20 test at h=1804, at most 21 coefficients and 60 seconds. Check the completed mean, limiting ratio and full price first. For the sibling estimate, freeze the multiplier 8/5, p=19 and h=1804. Bound all three source cases and 20 coefficients in 60 seconds before signed verification.", + "outcome": "completed", + "evidence": "The registered package includes the original cover, fractional and normalized proofs, the integer endpoint and weighted/PROOF.md with the corresponding independent signed replays. weighted/MINIMUM.md and weighted/MINIMUM.json settle the power threshold and complete comparison. weighted/SECOND.md and weighted/SECOND.json bind the paid second moment, all 32 coefficients, the earlier failing height, the outer audit and the new complete rate. grid/PROOF.md and grid/RESULT.json establish domination, the fixed-law boundary and the complete power-27 result. tensor/PROOF.md and tensor/RESULT.json establish the 451-factor moment bounds, all 24 contractions and the complete signed power-23 result. tensor/MINIMUM.md and tensor/MINIMUM.json give the independent 20/21 boundary and complete replay. tensor/MEAN.md and tensor/MEAN.json certify both mean bounds, all 21 coefficients and the complete power-20 result against the earlier power-21 ceiling. tensor/SIBLING.md and tensor/SIBLING.json bind the finite compiler multiplicities, literal attained target minimum, all 20 coefficients, power-20 control and full power-19 signed invoice.", + "author": "Campaign contributor", + "ai_assistance": "OpenAI Codex materially assisted the proof, independent audit, implementation and execution.", + "open_questions": [ + { + "question": "Do sharper root and nonroot source estimates admit power 18 on the same word?", + "why_it_matters": "The leading coefficient constrains the capacity required at the next smaller power.", + "first_step": "Price the necessary whole-word root and nonroot capacity before constructing any new case. Test a nonroot multiplier of 5/2 and bound the root contribution by rank bands.", + "blocked_by": "All positive source multiplicities, all-height contraction, complete price and independent replay must clear the previous signed comparison." + } + ] +} diff --git a/research/bit-451-carrier-cover/VERIFY.json b/research/bit-451-carrier-cover/VERIFY.json new file mode 100644 index 0000000000..47f6c525c0 --- /dev/null +++ b/research/bit-451-carrier-cover/VERIFY.json @@ -0,0 +1,62 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md", + "research/kappa-rebuild/architecture/sources/Sussman-563b4e6/research/record-track/programs/theorem-1g/tree_flow.py" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 110, + "checks": "Rebuild the complete #7863 BIT supplier, check the sharper charged cover and seven ordinary stages, and replay the 48-call rational application, expanded audit and corruption controls." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify_majorant.py" + ], + "timeout_seconds": 290, + "checks": "Rebuild the original supplier and independently replay the fractional, normalized and maximal-integer-scale applications with strict endpoint and corruption controls." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/weighted/verify.py" + ], + "timeout_seconds": 290, + "checks": "Rebuild the signed supplier and replay the weighted power-45 result, the exact minimum power of the Bernoulli comparison, and the distinct second-moment proof at its previously excluded power." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/grid/verify.py" + ], + "timeout_seconds": 110, + "checks": "Authenticate the original 451-factor supplier, reconstruct the complete paid grid law, decide the power boundary and replay the signed consumer and invoice controls." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/tensor/verify.py" + ], + "timeout_seconds": 400, + "checks": "Reconstruct the 451-fold paid moments and the 20/21 boundary for mean 3/4. Certify the tightened paid mean and all 21 power-20 coefficients. Replay all three complete signed applications and their invoice controls. Reconstruct the disjoint sibling source counts and all three directed capacities, compare every power-19 coefficient, and replay the fourth complete tensor application and negative controls." + } + ] +} diff --git a/research/bit-451-carrier-cover/audit.py b/research/bit-451-carrier-cover/audit.py new file mode 100644 index 0000000000..b6010e8bc7 --- /dev/null +++ b/research/bit-451-carrier-cover/audit.py @@ -0,0 +1,130 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Exact proof audit for reusing the completed #7863 binary service and cover unchanged.""" +from argparse import ArgumentParser +from fractions import Fraction as Q +from hashlib import sha256 +import json +from pathlib import Path +from time import monotonic + +BRIDGE = 'inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/bit-audit/' +PINS = { + 'BIT-451.json':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749', + 'consumer-replay/CONSUMER.json':'580ba8c262de41c99142c7ed9b7c412821e12dd3a491fde1ee974bda45af1d54', + 'PROOF.md':'85e4a9a88411e1d763e5d6360b1093f8987c267be853c42322aa5e812dc13698', + BRIDGE+'retained/DELAYED-COVER-BRIDGE.md':'9731b93026717f5fa15851e3633cbb4bdc76eba2bffb9d6b4a3b69f7dd502443', + BRIDGE+'PROOF.md':'ab5a2a5da1aab0193e286de8e16bc62840be760679c1f9e70218ce13225f69cf', + 'replay_451.py':'4168fb987bbb75f4d0eee051c8a1c28382dbc53ee062aa794db867a10b0d0643', +} +CAP = Q('0.00387992804364799') + + +def require(test,msg): + if not test: + raise ValueError(msg) + + +def stage(previous,rate,rho,claim): + envelope = rate-rho*(rate-previous) + require(previous < claim < envelope < rate < rho and rho < 1-envelope,'ordinary stage inequalities') + return dict(previous=str(previous),claim=str(claim),envelope=str(envelope), + recursive_gap=str(envelope-claim),linear_gap=str(rho-claim), + adapter_gap=str(1-rho-claim)) + + +def run(root): + for path, pin in PINS.items(): + require(sha256((root/path).read_bytes()).hexdigest()==pin,'pin mismatch: '+path) + binary=json.loads((root/'BIT-451.json').read_bytes()) + old=json.loads((root/'consumer-replay/CONSUMER.json').read_bytes()) + phase=binary['cover_and_stock'] + H=binary['uniform']['H'] + C=Q(binary['separation']['trial']) + E=Q(binary['uniform']['uniform_loss']) + old_loss=Q(phase['loss']);rho=Q(phase['rho']);seed=Q(phase['seed']) + require((C,E,old_loss,H,rho,seed)==(Q('.003879928046148'),Q(1,400000000000),Q(1,10**13),1202400000000000,Q(1,250),Q('.00385248')),'fixed source parameters') + require(phase['q_condition']=='odd prime q > 2^52*N^5 avoiding frozen finite catalogue witnesses','covered prime contract') + require(binary['partition']['factors']==451 and binary['partition']['cutoff']=='11^451' and binary['partition']['productive_floor']=='16^451','same physical recipe') + base=Q(phase['covered']) + require(base==C-E-old_loss,'old losses') + prev=seed + for record in phase['stages']: + require(Q(record['previous'])==prev,'old stage input') + proof=stage(prev,base,rho,Q(record['claim'])) + require(Q(proof['recursive_gap'])==Q(record['strict_gap_exact']),'old seven-stage control') + prev=Q(record['claim']) + require(len(phase['stages'])==7 and prev==Q(old['binary_ordinary'])==Q('.00387992804354799998'),'old final ordinary') + # The source's full single-factor fallback bound is 2N^3/q * 32N^2. + bad=Q(64,2**52) + require(bad==Q(phase['bad_surcharge_upper'])==Q(1,2**46) and badloss/4 and H*loss<1,'old sufficient shortcuts cannot certify this loss') + # Integral of 1/t over [1,3/2] and [3/2,2] lower-bounded by right endpoint rectangles. + log2_lower=Q(1,2)/Q(3,2)+Q(1,2)/2 + require(log2_lower==Q(7,12)>Q(1,2),'logarithmic lower bound') + # exp(x) >= 1+x. Normalize by the actual N=2^H, not the old floor(log_N). + raise_lower=1+H*loss*Q(1,2) + require(1+H*loss*log2_lower>raise_lower==1+Q(1,2**45),'denominator') + multiplier=(1+bad)/raise_lower + require(01,'full cover multiplier and zero-loss control') + rate=C-E-loss + prev=seed;steps=[] + for j in range(7): + env=(1-rho)*rate+rho*prev + # Seven strict analytical rates; weaken the last to the supplied service cap. + scale=10**24 + claim=Q((env.numerator*scale//env.denominator)-1,scale) + steps.append(stage(prev,rate,rho,claim)) + prev=claim + require(prev>CAP>Q(old['binary_ordinary']),'strict ordinary advancement') + try: + stage(prev,rate,rho,(1-rho)*rate+rho*prev) + except ValueError as exc: + require(str(exc)=='ordinary stage inequalities','stage control') + else: + raise ValueError('equal envelope was accepted') + lower,upper=map(Q,binary['raw_crossing']) + require(lower==Q('.003879928046154') and upper==Q('.003879928046155'),'untouched native crossing') + ceiling=upper-E-old_loss + require(ceiling==Q('.003879928043555') and CAP>ceiling,'old fixed-loss proof ceiling') + return dict(provenance=PINS,head_7863='b3e4412fe01f07dc58305616fabf96345f49a781', + C=str(C), uniform_loss=str(E), old_cover_loss=str(old_loss),new_cover_loss=str(loss), + H=H,q_lower_bound='2^52*N^5',log_two_lower=str(log2_lower),H_times_d=str(H*loss), + charge_upper=str(bad),normalization_lower=str(raise_lower),multiplier_upper=str(multiplier), + contraction_slack=str(1-multiplier),covered=str(rate),seven_strict_stages=steps, + ordinary_cap=str(CAP),old_fixed_loss_component_ceiling=str(ceiling), + old_native_crossing=[str(lower),str(upper)],old_published=str(Q(old['claim'])), + condition='Same #7863 opaque physically completed supplier, compiled uniform word, q, cover bound, restored original and nested stock, precision and analytic recovery', + controls=['same old seven-stage chain','old d/4 shortcut unavailable','zero-loss upper fails','envelope equality rejected']) + + +def consumer(result,compiled): + app=json.loads((compiled/'APPLICATION.json').read_bytes()) + audit=json.loads((compiled/'AUDIT.json').read_bytes()) + receipt=json.loads((compiled/'receipt.json').read_bytes()) + require(all(Q(x)==CAP for x in (receipt['cap'],app['binary_ordinary'],audit['outer']['pinned_binary_cap'])),'ordinary binding') + for key in ('APPLICATION.json','AUDIT.json'): + require(receipt['output_sha256'][key]==sha256((compiled/key).read_bytes()).hexdigest(),'consumer output pin') + new=Q(app['application']['claim']); old=Q(result['old_published']) + tested=Q(audit['outer']['finite_compiler']['tested']) + require(Q(receipt['claim'])==new==Q('.00387992804356') and Q(receipt['tested'])==tested==Q('.00387992804363'),'outer points') + require(CAP>tested>new>Q(result['old_fixed_loss_component_ceiling']),'separation from old fixed-loss recurrence') + require(new-old==Q(1,10**13),'campaign comparison arithmetic') + result['outer']=dict(claim=str(new),tested=str(tested),bit_headroom=str(CAP-tested), + delta=str(new-old),percentage=str(100*(new-old)/old), + over_fixed_loss_upper=str(new-Q(result['old_fixed_loss_component_ceiling'])), + consumer_hashes=receipt['output_sha256']) + + +if __name__=='__main__': + start=monotonic() + p=ArgumentParser(description=__doc__);p.add_argument('producer_root',type=Path);p.add_argument('out',type=Path) + p.add_argument('--consumer',type=Path) + args=p.parse_args() + data=run(args.producer_root) + if args.consumer: + consumer(data,args.consumer) + data['seconds']=monotonic()-start + args.out.write_text(json.dumps(data,indent=2)+'\n') + print('PASS',data['ordinary_cap'],data.get('outer',{}).get('claim'),data['seconds']) diff --git a/research/bit-451-carrier-cover/grid/PROOF.md b/research/bit-451-carrier-cover/grid/PROOF.md new file mode 100644 index 0000000000..c2261bf552 --- /dev/null +++ b/research/bit-451-carrier-cover/grid/PROOF.md @@ -0,0 +1,26 @@ +# A discrete dominating law on the fixed 451-factor supplier + +For the original #7863/#8026 construction, the rational law below certifies power 27 at every compiler height. This gives conditional κ = **0.00387992804518**. Power 26 fails at large heights for this same law and envelope. The new comparison uses the actual paid rank inventory, second moment and post-split excess. The earlier proof used coordinatewise upper moments that need not belong to a single probability distribution. [Previous complete proof](https://github.com/CrocSwap/integer-mult-bounds/tree/47f5718d033560b984fe49289c9de5023aaf6b08/research/bit-451-carrier-cover/weighted) · [Positive paid-tensor moment and clipping proof](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/LOG-MOMENTS.md) + +**Probability and rounding.** Under the actual one-factor t-tilted paid law with t=1−0.003879928046148, let Y=ln(r)/ln(11). The verifier sums all 14 actual rank multiplicities. It divides a directed *lower* first-moment numerator by an *upper* paid denominator to produce m₋, and divides upper first and second numerators by a lower denominator to obtain m₊,s₂. Every logarithm, product and exponential used to form the weights is bracketed before passing to exact rational arithmetic. For the 451-factor average, independence gives variance at most v=(s₂−m₋²)/451, using m₋>0. Outward diagnostic bounds give mean in [0.748475924225776889,0.748475924225776890] and variance ≤0.000876148850949818. + +At z=i/16, 1≤i≤15, apply the one-sided variance bound to the raw law. If z≤m₊, use tail bound u=1. Otherwise use u=v/(v+(z−m₊)²); replacing the true variance and mean by these upper bounds only increases the right side. For z<1 every old paid rank above the split cutoff has full raw mass in the tail. Its subdivided paid tail has mass at most its full split moment. The excess over the original tail therefore is at most the paid uplift. All retained original tuples below the cutoff are unchanged, and specializing discarded productive outputs introduces no paid completion and removes no original paid job. If the actual paid excess over raw paid mass is x, then the post-split tail is bounded by (u+x)/(1+x). The rational upper ε=U_hi/α_lo^451 on x is authenticated by the producer. The monotonicity for 0≤u≤1 permits replacing x by ε. + +For Q=65536, form a lower bound on Q times the completed CDF by flooring Q·(1−(u+ε)/(1+ε)). A prefix maximum preserves validity and monotonicity. Set the CDF at zero to zero, and at one to Q. Between successive grid points use the lower of the two grid CDFs; right-continuity and monotonicity of the true CDF guarantee validity there. Successive differences then define an actual probability distribution Z that stochastically dominates the completed paid log rank. Its masses at i/16 for i=12,13,14,15,16 are 173, 53821, 8141, 1832 and 1569 divided by 65536; all earlier masses are zero. Its mean is 868307/1048576. No samples are drawn. Independent copies of the dominated paid rank can be coupled coordinatewise with independent copies of Z. The monotone test therefore bounds the complete weighted exits at every height of the unchanged lockstep compiler. [Exact exit path multiplicities](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md#L15-L62) + +**Independent all-height check.** For G≥0, the envelope ratio uses E[(7/6+ΣZ_i)^p]/(319/100+23G/20)^p with G+1 copies. For p=27 the independent verifier starts from the integer moment sequence of the deterministic value 56 and convolves it with the integer moment sequence of 3i under the grid masses, accounting for the common factors 48^p and Q^(G+1). This constructs the exact numerator polynomial at G=0,…,27. The denominator there is known exactly. Both are polynomials of degree at most 27 by the finite multinomial moment expansion for independent draws. Forward differences at zero equal j! times their falling-factorial coefficients. The denominator differences are strictly positive, and all ratios are bounded by their largest value, at j=27. That value is less than 0.000140974256, below η_lower=0.000188887219560768857828191657200313519. The falling factorials are nonnegative at every integer height, so this slack is uniform. + +For p=26 the limit as G tends to infinity is (E[Z]/(23/20))^26: it is the ratio of the leading coefficients of the degree-26 polynomials. This exceeds 0.0001957781688, above even the directed η upper. Hence sufficiently large integer heights fail. Each realization of (7/6+ΣZ_i)/(319/100+23G/20) is strictly less than one, since Z_i≤1, 13/6<319/100 and 1<23/20. Thus every smaller positive integer power fails on this law, and higher positive powers inherit the passing contraction. This determines the minimum integer power for this specific dominating law, not for the actual paid distribution or alternative grids. [Fixed-law decision](https://github.com/CrocSwap/integer-mult-bounds/blob/1e485bcc54c97ed721a3b741d3667630a64aab88/research/complete-all-height-exits/README.md) + +**Complete costs.** At h=1804 the verified normalized-log endpoint inequality covers the ordinary base, including unit and separately defined zero rank. At the fixed carrier N=2^H the strict integer test admits minimum loss budget 1061 for p=27. The tail derivative is positive since (1061/H)·(H+h)>54. The same d=1/(H·2^44) handles the entire cover charge for the original prime and stock. Seven strictly interior stages give ordinary cap 0.00387992804526559. The complete consumer tests 0.00387992804525. Its claim gains 0.00000000000013 over the preceding certified 0.00387992804505, or (260/77598560901)%. Even allowing the predecessor its native raw upper endpoint and waiving every cover and stage loss, its 1218/H uniform charge and seven outer ticks yield complete ceiling 388768790116217/100200000000000000. The new complete result exceeds it by 10819/100200000000000000. All 451 factors, cutoff, physical action, original prime, signed callers, compiler, restored nested seed, precision/tape and recovery assumptions remain those of #7863. No change to the native crossing or unconditional realization follows. + +**Credit and replay.** Clear1nsight supplied the #7863 original paid data and #7973 independent review; Jacob Alan Sussman supplied the integer flow. zxv's #4480 supplies the weighted-exit and raw-tensor methodology, Ali Romman's #5351 the all-height comparison, and the preceding #8026 results the paid-excess accounting, prior moment gains, charged cover and seven-stage propagation. Here a directed Cantelli calculation, monotone dyadic CDF, limiting failure and complete exact replay establish the source-specific new bound. OpenAI Codex assisted the computation, proof and independent audit. + +From the published checkout with CPython 3.12, run: + +```sh +python3.12 -IB research/bit-451-carrier-cover/grid/verify.py +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The independent command takes `grid/audit.py PRODUCER_ROOT SECOND_RESULT OUT --power 27 --shift 0 --failed-height -1 [--outer CONSUMER_DIR]`. The -1 option checks rejection at the limit. The optional outer binding verifies the cap, tested and published rates, and both output hashes without changing the deterministic receipt. diff --git a/research/bit-451-carrier-cover/grid/RESULT.json b/research/bit-451-carrier-cover/grid/RESULT.json new file mode 100644 index 0000000000..513857a037 --- /dev/null +++ b/research/bit-451-carrier-cover/grid/RESULT.json @@ -0,0 +1,129 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "SECOND.json": "e6919418a22bd2679320b0178860b506357dd882415b2431b96ffa879976eed6" + }, + "integer_masses": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 173, + 53821, + 8141, + 1832, + 1569 + ], + "denominator": 65536, + "mean_lower": "748475924225776889/1000000000000000000", + "mean_upper": "74847592422577689/100000000000000000", + "second_upper": "955359340923998623/1000000000000000000", + "tensor_variance_upper": "438074425474909/500000000000000000", + "epsilon_upper": "1/1000000000000000", + "cdf_numerators": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 173, + 53994, + 62135, + 63967, + 65536 + ], + "p_minimum": 27, + "h": 1804, + "shift": 0, + "failed_power": 26, + "failed_height": -1, + "failed_ratio": "37907572062580218368921602657195016940227109695502962741743959765684621546018633692460191092790045094692119319135050495372730423152523961646952382150629533827304840087890625/193625123244542599100437475458826130805653214647359282873049712892762134297426540559627700678263668244780519157291862242557723705142184872971076940629842346273306804387561078784", + "eta_lower": "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "eta_upper": "2361090244509610722852395715003919/12500000000000000000000000000000000000", + "comparison_mean": "868307/1048576", + "worst_upper": "164577050874714208356316050192305167871588904691865455346977362361311583403794008827995155736036228430184150248200991452428047177681493117828901410440333393144927918910980224609375/1167426279079799627267456876033605896380094594911899092537873110540885449465085410114650011231863274112274121521289712521400194228098236960822989851062796016493803995375574663045316608", + "prefix_ratios": [], + "shifted_ratios": [ + "1395044233580006847528537889203949328943780970301581114937305994061489400337450206279754638671875/360347917415430775589383631353914026425360265505989088281618950896375782566456307193241351734146629632", + "1293331377343742494584897588741657855789500071719052627960619453506563303335497039370238780975341796875/118709242000198708661420428023532679986161548888291980049414628333143937898139988143057256587465940201897984", + "5675143618658212525966610673142427799129707046215288962067603189450581393504791094528627581894397735595703125/294907200932242531715445708379604666046280288500986344842656951555659612552748308438427124343206653638838851731456", + "29884376748218778134760691685738092444877532070895295194091317085792669995427122131559372064657509326934814453125/1078769524494935430025437432279293386743405997907539253638373735026906836501099843168056017627488001490574674554257408", + "22233278139036308583478560936343707990419236235727448919569428115889055436225686133155932111549191176891326904296875/621039509258029806758818575836756662018185179344613095052664740208212210255988991871174209293608288625460357528717099008", + "9031082504975231763051323728457656186967453102141066479053344017684102040745801766547312894317656173370778560638427734375/208070360193999905743707780728664489951371731759515537957658903237358542791121115250923248989921823932221477527226965297201152", + "46630429190753564003815805965805524543115297121835482923678360350224308101971430767861074856028835711185820400714874267578125/923223025558856881668626065534295426955909856664596967239108984693256574756232008083275265232257446968697457668529124091071823872", + "18664500921725719190109966964399398163187080955806740459133657762043897542982108181209711163444211479145451448857784271240234375/326586705161547680258944501048550965023074276854287279281943104904648603368416201777336989767218587586873292421371654316320278708224", + "144694151022101945710560698739773965480437600890567641635990879395787509218012253323210069948487635400624640169553458690643310546875/2283051822771950438832585651790581260211943456453907336498617685346229319609719972622234733545133991533008558644795290051274502068764672", + "2808916140547722896827426749108116359492240144603573794763400057690223009446137139026617457947505591361021970442379824817180633544921875/40569560365932981684652216447291019467599440550446594759267942706353335947836932303165762588981116636147455721749164112208503419457960411136", + "6254309315151976665458513679325643623928933422813593199184865477326960717582832669266416474277070173580290202153264544904232025146484375/83646275067201264952219641312955960874182299905110498531057894687315419206745870381197841144021598663343415962847357469370871737381359190016", + "4444073084538459448315134375355983142764702426281137928287781947450119163375892885891172498784761264467123877466292469762265682220458984375/55539903845061235266136094173862375067535599392052292605989467693400461022481013186502571700062288507366389108614825875063327245786998011592704", + "51740667105011116388852635829589118070823020769730048716343712633623735274839216200290383039355944458982391127725577462115325033664703369140625/608689663940747632375339924762903450133264211847850571697929842612023228192645427727914794009929061627055851637942373809599163061224118180598775808", + "49860451309944978315679541860406495486197657030301581117685358658577845102909126558665820839264932374412757426971731410958454944193363189697265625/555483661704434468646185951201187438621672425874270295101715747099472647881174395420005159817889360428486067081287516615929362972398318586814846205952", + "585484770467628148623118539218232398483369694638020934729937802524021526454298123946925839973802955892006056926935281522246441454626619815826416015625/6208074247511346330456408052215981494964223953701414538616618072772345420681179834681238950927116787302868236680299288931071804167622079385284997820710912", + "21988443761848727150431883988426641481323869005445613191503863189592859569895006148756608867505500113058875347693922213717994964099489152431488037109375/222842420389885056759898477913420587602468027203699704525477879580691153798850165183668720879171322451831268600291044445110057015481058414462459338779787264", + "20390938468268448992301494730919178972814756874677575039424188997966327848379823696894944639568199088004331088583461132484110482982941903173923492431640625/198230377973427744306822382437717372506045965792782417317361036498740800785307750344109257962772421933150997182731113087077842304940859977190053479300819058688", + "66531673921842507511705572099994038146892270528897814893508268889697386655350159760424195591682424582258478125995560242422620617130960454232990741729736328125/622362100113842942635495043823652325103122286451658873493269607862626240034211066043132063991787268930951898998034251005130030621548788931697149129905610063609856", + "6509431662051302344296894597505763981426125085868400256838280863259434070914343536842406130646946484916229854657538673155356096303623847779817879199981689453125/58751121101072748397602524671233205541181886854580386557287163673048846570091643188861951174618598597713913926075334998912698037014118440191224338431484486953730048", + "799920034975690765872336541553740686163559764155865953702036877659512372742671159811456007096134009658661257356941789217137502639528110010433010756969451904296875/6982490362220653373076354077802885112684248922955720285778191834029479173749270384053529649445061071293312412825831484492566007891076156771846888609025213600312066048", + "722748858899635154688265857286823521834902426466110596842669415635783262986080655762257160404955748514389248931559228083378669931101101841814233921468257904052734375/6114401426290111592040504424027140004086651893576754085386291335800328185413881197562717247160811155061193614350706035084517032047043264499894862672340889876594367135744", + "8447958446206127890078804605586533235976489893569592877746152820955594089207271116466134720486307444757523829293637331342477944406164436242444451549090445041656494140625/69395631347766656338039545016533328553831249159842557965637402535723383697865794477151841993047317699809236015558622952119569487656163312939834012180627537440923692111495168", + "54123194100899226046320943677324859887770061068578915537092350403584148871918353029690223548139332646057725198642826885198776882728031899895675715035758912563323974609375/432417297328975067468232670423629373122200834461257074719975329941525665165882882788975495003695352522819500957697826236815530948512436957563500947104611483238854187489951744", + "36984442957085631907200484462145568942190349685398620259180912533320084387078911176617114582220346300245984903408255485420281438671805837753132154321658425033092498779296875/287826186918012917768011791652787178067252679190910523403784003805633853501888614809472148152562481207453681557403326131742441149249340588045190640115566728424034089428114735104", + "17409535982081441070275372810595697263129648059537168377574006308370127900663253311094789863078659896143672185008417176035002861587790473961051216063377763144671916961669921875/132153714556466704689305712724692577973363444097342331204104722769764887052706762433981620917966265051407374528764928975696331889352476905973744809574779458546812004590283804114944", + "63629099168768032793390671553903613536319440774815792288439771574380773639641108161515093481112326675409566243026628057964925642942967758263416915153340859474055469036102294921875/471697722534320382157879742350157729684584990836638615469472057692935126683552060197892630564718517027374336323696238134846775797918059946523793927550649617948878942234204501845213184", + "38110878147456134239921943174910837873251492980509795838156906366435304549255988508265868693481831840799506186833298581362125170642110840122621268541316718663287200033664703369140625/276223209163142155286500013885864490786977164587415428764830672502760809390825860949735885266252171205173729100819939806150428564752635023512987424760162431380838319253646839838809260032", + "164577050874714208356316050192305167871588904691865455346977362361311583403794008827995155736036228430184150248200991452428047177681493117828901410440333393144927918910980224609375/1167426279079799627267456876033605896380094594911899092537873110540885449465085410114650011231863274112274121521289712521400194228098236960822989851062796016493803995375574663045316608" + ], + "uniform_J": 1061, + "uniform_loss": "1061/1202400000000000", + "stages": [ + [ + "3879818253084535744509/1000000000000000000000000", + "11349896725271/5738076307456000000000000000000000000" + ], + [ + "15155967211315913623/3906250000000000000000", + "727298895610427/717259538432000000000000000000000000000" + ], + [ + "3879928043508923240059/1000000000000000000000000", + "1384308632814139/717259538432000000000000000000000000000" + ], + [ + "387992804525857143747/100000000000000000000000", + "870750803296827/717259538432000000000000000000000000000" + ], + [ + "3879928045265570030259/1000000000000000000000000", + "266533189209407/143451907686400000000000000000000000000" + ], + [ + "3879928045265598024631/1000000000000000000000000", + "727298895610427/717259538432000000000000000000000000000" + ], + [ + "121247751414549941769/31250000000000000000000", + "1077321550365243/717259538432000000000000000000000000000" + ] + ], + "cap": "387992804526559/100000000000000000", + "candidate_grid_claim": "193996402259/50000000000000", + "candidate_tested": "15519712181/4000000000000", + "old_cover_forgiven_upper": "388768790116217/100200000000000000", + "separation": "10819/100200000000000000", + "absolute_gain": "13/100000000000000", + "exact_relative_percent": "260/77598560901" +} diff --git a/research/bit-451-carrier-cover/grid/audit.py b/research/bit-451-carrier-cover/grid/audit.py new file mode 100644 index 0000000000..b26d064d54 --- /dev/null +++ b/research/bit-451-carrier-cover/grid/audit.py @@ -0,0 +1,152 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Construct the actual dyadic comparison distribution, then test two supplied powers.""" +from argparse import ArgumentParser +from decimal import Decimal as D, localcontext +from fractions import Fraction as F +from hashlib import sha256 +from math import comb +from pathlib import Path +import json +import signal + +PRIOR='e6919418a22bd2679320b0178860b506357dd882415b2431b96ffa879976eed6' +BIT='538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749' +Q=65536 + + +def require(flag,msg): + if not flag: + raise ValueError(msg) + + +def checked(path,digest): + raw=path.read_bytes() + require(sha256(raw).hexdigest()==digest,path.name) + return json.loads(raw) + + +def round_out(q,digits,down): + unit=10**digits + return F((q*unit).__floor__() if down else -(-q*unit).__floor__(),unit) + + +def distribution(bit): + lo=[F(0)]*3;hi=[F(0)]*3 + with localcontext() as ctx: + ctx.prec=72 + t=1-D('0.003879928046148') + ref=D(11).ln() + for key,n in bit['native']['paid'].items(): + if key=='1': + lo[0]+=n;hi[0]+=n + continue + l=D(key).ln() + ymin=F(l.next_minus())/F(ref.next_plus());ymax=F(l.next_plus())/F(ref.next_minus()) + weight_lo=F((t*l.next_minus()).next_minus().exp().next_minus()) + weight_hi=F((t*l.next_plus()).next_plus().exp().next_plus()) + for j in range(3): + lo[j]+=n*weight_lo*ymin**j + hi[j]+=n*weight_hi*ymax**j + mean_l=lo[1]/hi[0];mean_h=hi[1]/lo[0] + e2=hi[2]/lo[0];var=(e2-mean_l**2)/451 + require(00,'directed tensor bounds') + sep=bit['separation'] + eps=F(sep['paid_uplift_upper'][1])/F(sep['three_engine_intervals']['source_1']['alpha'][0])**451 + require(0=0,'positive probability law') + return mass,dict(mean_lower=str(round_out(mean_l,18,True)),mean_upper=str(round_out(mean_h,18,False)), + second_upper=str(round_out(e2,18,False)),tensor_variance_upper=str(round_out(var,18,False)), + epsilon_upper='1/1000000000000000',cdf_numerators=cut) + + +def rows(mass,p,ng): + # Exact integer raw moments of T=56+3*sum(integer bin). T/48 = 7/6+sum Z. + powers=[sum(m*(3*i)**k for i,m in enumerate(mass,1)) for k in range(p+1)] + work=[56**k for k in range(p+1)] + factors=[[comb(i,k)*powers[k] for k in range(i+1)] for i in range(p+1)] + for g in range(ng+1): + work=[sum(weight*work[i-k] for k,weight in enumerate(factors[i])) for i in range(p+1)] + yield F(work[p],48**p*Q**(g+1)),F((319+115*g)**p,100**p) + + +def newton(v): + out=[] + while v: + out.append(v[0]);v=[y-x for x,y in zip(v,v[1:])] + return out + + +def evaluate(src,old,p,K,g_bad): + require(1

=0 and g_bad>=-1 and K+p+2+max(g_bad,0)<=1024,'case limits') + mass,env=distribution(src) + lower,upper=map(F,src['uniform']['eta']) + mean=F(sum(k*m for k,m in enumerate(mass,1)),16*Q) + small=p-1 + if g_bad<0: + bad=(mean/F(23,20))**small + else: + g5=list(rows(mass,small,g_bad))[-1];bad=g5[0]/g5[1] + require(bad>upper,'the adjacent lower integer fails the capacity') + obs=list(rows(mass,p,K+p)) + prefix=[x/y for x,y in obs[:K]] + ns,ds=zip(*obs[K:]) + n,d=newton(list(ns)),newton(list(ds)) + require(all(a>=0 and b>0 for a,b in zip(n,d)),'tail differences') + tail=[x/y for x,y in zip(n,d)] + largest=max(prefix+tail) + require(largestF(src['uniform']['ambient_power'][1]),'base') + J=(((H+h)**p)//h**p).bit_length() + require((h**p<<(J-1))<=(H+h)**p<(h**p<2*p,'strict carrier and tail') + rate=F(src['separation']['trial'])-F(J,H)-F(1,H*2**44) + require(F(src['cover_and_stock']['bad_surcharge_upper'])tested>claim>ceiling>old_claim,'complete separation') + return dict(pins={'BIT-451.json':BIT,'SECOND.json':PRIOR},integer_masses=mass,denominator=Q,**env, + p_minimum=p,h=h,shift=K,failed_power=small,failed_height=g_bad,failed_ratio=str(bad), + eta_lower=str(lower),eta_upper=str(upper),comparison_mean=str(mean),worst_upper=str(largest), + prefix_ratios=list(map(str,prefix)),shifted_ratios=list(map(str,tail)),uniform_J=J, + uniform_loss=str(F(J,H)),stages=stages,cap=str(cap),candidate_grid_claim=str(claim), + candidate_tested=str(tested),old_cover_forgiven_upper=str(ceiling),separation=str(claim-ceiling), + absolute_gain=str(claim-old_claim),exact_relative_percent=str(100*(claim-old_claim)/old_claim)) + + +def bind(data,r): + rec=json.loads((r/'receipt.json').read_bytes());app=json.loads((r/'APPLICATION.json').read_bytes());audit=json.loads((r/'AUDIT.json').read_bytes()) + require(F(rec['cap'])==F(app['binary_ordinary'])==F(audit['outer']['pinned_binary_cap'])==F(data['cap']),'cap') + require(F(rec['tested'])==F(audit['outer']['finite_compiler']['tested'])==F(data['candidate_tested']),'tested') + require(F(rec['claim'])==F(app['application']['claim'])==F(data['candidate_grid_claim']),'claim') + for key in ('APPLICATION.json','AUDIT.json'): + require(sha256((r/key).read_bytes()).hexdigest()==rec['output_sha256'][key],key) + + +if __name__=='__main__': + signal.alarm(60);cli=ArgumentParser(description=__doc__) + for k in ('root','prior','out'):cli.add_argument(k,type=Path) + cli.add_argument('--power',type=int,required=True);cli.add_argument('--shift',type=int,required=True) + cli.add_argument('--failed-height',type=int,required=True);cli.add_argument('--outer',type=Path) + args=cli.parse_args() + result=evaluate(checked(args.root/'BIT-451.json',BIT),checked(args.prior,PRIOR),args.power,args.shift,args.failed_height) + if args.outer:bind(result,args.outer) + args.out.write_text(json.dumps(result,indent=2)+'\n') + print('PASS_451_DYADIC_LAW',result['p_minimum'],result['uniform_J'],result['candidate_grid_claim']) diff --git a/research/bit-451-carrier-cover/grid/screen.py b/research/bit-451-carrier-cover/grid/screen.py new file mode 100644 index 0000000000..3469782d4a --- /dev/null +++ b/research/bit-451-carrier-cover/grid/screen.py @@ -0,0 +1,270 @@ +"""Price one rational grid law on the frozen 451-factor word. Requires CPython 3.12.""" +import argparse +from contextlib import contextmanager +from decimal import Decimal, localcontext +from fractions import Fraction as F +from hashlib import sha256 +import json +from math import comb, factorial +from pathlib import Path +import signal +import sys +import tarfile +from time import monotonic + +PIN = "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749" +A, B, SLOPE = F(7, 6), F(319, 100), F(23, 20) +H_SHIFT, FACTORS, GRID, MASS = 1804, 451, 16, 2**16 +PREVIOUS_CLAIM = F("0.00387992804505") +PREVIOUS_LOSS = 1218 +CASE_CAP, HEIGHT_CAP, SECONDS = 6, 1024, 60 + +def source(path): + if path.suffix == ".json": + data = path.read_bytes() + else: + with tarfile.open(path, "r:*") as archive: + with archive.extractfile("package-sanitized/BIT-451.json") as stream: + data = stream.read() + if sha256(data).hexdigest() != PIN: + raise ValueError("wrong BIT-451.json bytes") + return json.loads(data) + +def grid(data): + paid = data["native"]["paid"] + if len(paid) != 14 or sum(paid.values()) != 107460 or max(map(int, paid)) != 56: + raise ValueError("unexpected paid profile") + t = 1 - F(data["separation"]["trial"]) + if t != 1 - F("0.003879928046148"): + raise ValueError("wrong paid tilt") + mass_lo = mass_hi = first_lo = first_hi = second_hi = F(0) + with localcontext() as ctx: + ctx.prec = 80 + base = Decimal(11).ln() + for label, count in paid.items(): + rank = int(label) + if rank == 1: + mass_lo += count + mass_hi += count + continue + log_r = Decimal(rank).ln() + low, high = log_r.next_minus(), log_r.next_plus() + exp_lo = ((low * t.numerator).next_minus() / t.denominator).next_minus() + exp_hi = ((high * t.numerator).next_plus() / t.denominator).next_plus() + w_lo = count * F(exp_lo.exp().next_minus()) + w_hi = count * F(exp_hi.exp().next_plus()) + y_lo, y_hi = F(low)/F(base.next_plus()), F(high)/F(base.next_minus()) + mass_lo += w_lo + mass_hi += w_hi + first_lo += w_lo*y_lo + first_hi += w_hi*y_hi + second_hi += w_hi*y_hi**2 + low, high = first_lo/mass_hi, first_hi/mass_lo + variance = (second_hi/mass_lo-low**2)/FACTORS + sep = data["separation"] + raw_lo = F(sep["three_engine_intervals"]["source_1"]["alpha"][0])**FACTORS + exact_eps = F(sep["paid_uplift_upper"][1])/raw_lo + epsilon = F(-(-exact_eps*2**48 // 1), 2**48) + if not (0 <= low <= high < 1 and variance >= 0 and epsilon >= exact_eps >= 0): + raise ValueError("invalid moment interval") + cdf = [0] + for cut in range(1, GRID): + z = F(cut, GRID) + raw_tail = F(1) if z <= high else variance/(variance+(z-high)**2) + final_tail = (raw_tail+epsilon)/(1+epsilon) + cdf.append(max(cdf[-1], (1-final_tail)*MASS//1)) + cdf.append(MASS) + weights = [r-l for l, r in zip(cdf, cdf[1:])] + if len(weights) != GRID or min(weights) < 0 or sum(weights) != MASS: + raise ValueError("invalid rational grid law") + return weights, {"cuts": list(range(1, GRID)), "cut_denominator": GRID, + "strict_tail": "Pr(X>z)", "mass_denominator": MASS, "weights": weights, + "cdf_floor_units": cdf, "full_excess_upper": str(epsilon), + "mean_lower": str(low), "mean_upper": str(high), "variance_upper": str(variance)} + +def coefficients(p, weights): + mu = [sum(n*i**k for i, n in enumerate(weights, 1))*F(1, MASS*GRID**k) + for k in range(p+1)] + shift = [sum(comb(i,k)*A**(i-k)*mu[k] for k in range(i+1)) for i in range(p+1)] + bell = [[F(0)]*(p+1) for _ in range(p+1)] + stir = [[0]*(p+1) for _ in range(p+1)] + bell[0][0] = stir[0][0] = 1 + for n in range(1, p+1): + for j in range(1, n+1): + bell[n][j] = sum(comb(n-1,i-1)*mu[i]*bell[n-i][j-1] for i in range(1,n-j+2)) + stir[n][j] = j*stir[n-1][j]+stir[n-1][j-1] + numer, denom = [], [] + for j in range(p+1): + numer.append(factorial(j)*sum(comb(p,i)*shift[p-i]*bell[i][j] for i in range(j,p+1))) + denom.append(factorial(j)*sum(comb(p,i)*B**(p-i)*SLOPE**i*stir[i][j] for i in range(j,p+1))) + return numer, denom + +def loss_at(p, horizon): + return (((horizon+H_SHIFT)**p)//(H_SHIFT**p)).bit_length() + +def price(data, p): + horizon = data["uniform"]["H"] + loss = loss_at(p, horizon) + if F(loss,horizon)*(horizon+H_SHIFT) <= 2*p: + return {"status":"terminal conversion unresolved", "loss":loss} + cover = F(data["separation"]["trial"])-F(loss,horizon)-F(1,horizon*2**44) + stock = data["cover_and_stock"] + rate, rho = F(stock["seed"]), F(stock["rho"]) + for _ in range(7): + bound = (1-rho)*cover+rho*rate + step = F(int(bound*10**24)-1,10**24) + if not (rate < step < bound < cover and step < min(rho,1-rho)): + return {"status":"stage price unresolved", "loss":loss} + rate = step + tick = F(1,10**14) + cap = F(int(rate*10**17),10**17) + claim = (cap//tick-8)*tick + old_ceiling = F(data["raw_crossing"][1])-F(PREVIOUS_LOSS,horizon)-7*tick + return {"status":"priced comparison only", "loss":loss,"ordinary_cap":str(cap), + "candidate_grid_claim":str(claim), "old_relaxed_ceiling":str(old_ceiling), + "directed_separation":str(claim-old_ceiling), "claim_minus_predecessor":str(claim-PREVIOUS_CLAIM)} + +@contextmanager +def checkpoint_update(): + mask = signal.pthread_sigmask(signal.SIG_BLOCK, {signal.SIGALRM}) + try: + yield + finally: + signal.pthread_sigmask(signal.SIG_SETMASK, mask) + +def record_decision(state, ok, reason, facts, visited_height=False): + with checkpoint_update(): + state["pending_decision"] = [ok, reason, facts] + if visited_height: + state["heights_used"] += 1 + return state["pending_decision"] + +def decide(data, p, weights, state): + eta = F(data["uniform"]["eta"][0]) + mean = F(sum(i*n for i,n in enumerate(weights,1)),GRID*MASS) + if F(H_SHIFT+(134**451).bit_length()-1,H_SHIFT)**p <= F(data["uniform"]["ambient_power"][1]): + return record_decision(state,False,"fixed conservative base guard",{}) + limit = (mean/SLOPE)**p + if limit >= eta: + return record_decision(state,False,"fixed-law limit reaches directed eta lower threshold",{"limit":str(limit)}) + numer, denom = coefficients(p, weights) + start = state["next_height"] + for g in range(HEIGHT_CAP): + if g >= start: + if state["heights_used"] >= HEIGHT_CAP: + raise TimeoutError("cumulative height limit") + ratio = numer[0]/denom[0] + if ratio >= eta: + return record_decision(state,False,"fixed-law ratio reaches directed eta lower threshold", + {"height":g,"ratio":str(ratio)},visited_height=True) + if all(n <= eta*d for n,d in zip(numer,denom)): + return record_decision(state,True,"shifted differences, strict value and strict limit", + {"height":g,"ratio":str(ratio),"limit":str(limit)},visited_height=True) + with checkpoint_update(): + state["heights_used"] += 1 + state["next_height"] = g+1 + numer = [x+y for x,y in zip(numer,numer[1:]+[0])] + denom = [x+y for x,y in zip(denom,denom[1:]+[0])] + raise TimeoutError("cumulative height limit") + +def screening(data, state): + horizon = data["uniform"]["H"] + tick = F(1,10**14) + # Necessary floor for this fixed conservative base guard. Directed logs avoid + # spending any of the six candidate decisions on a separate guard-only search. + base = F(H_SHIFT+(134**FACTORS).bit_length()-1,H_SHIFT) + ambient = F(data["uniform"]["ambient_power"][1]) + with localcontext() as ctx: + ctx.prec = 80 + ambient_down = (Decimal(ambient.numerator)/ambient.denominator).next_minus() + base_up = (Decimal(base.numerator)/base.denominator).next_plus() + lower_log_ratio = F(ambient_down.ln().next_minus())/F(base_up.ln().next_plus()) + min_power = max(1, lower_log_ratio//1+1) + min_loss = loss_at(min_power,horizon) + cover = F(data["separation"]["trial"])-F(min_loss,horizon)-F(1,horizon*2**44) + stock = data["cover_and_stock"] + rate, rho = F(stock["seed"]), F(stock["rho"]) + for _ in range(7): + rate = (1-rho)*cover+rho*rate + upper = rate-7*tick + old_ceiling = F(data["raw_crossing"][1])-F(PREVIOUS_LOSS,horizon)-7*tick + state["optimistic_preprice"] = {"necessary_power_floor":min_power,"minimum_loss_units":min_loss, + "seven_unrounded_stages_less_consumer_reserve":str(upper), + "old_claim":str(PREVIOUS_CLAIM),"old_relaxed_ceiling":str(old_ceiling), + "headroom_over_old_ceiling":str(upper-old_ceiling)} + if min_power>30: + return "fixed base guard excludes the entire candidate range" + if upper <= old_ceiling: + return "optimistic fully charged bound cannot clear the required predecessor ceiling" + weights, moments = grid(data) + state["grid"] = moments + while state["high"]-state["low"] > 1: + if state["current_power"] is None: + if len(state["history"]) >= CASE_CAP: + raise TimeoutError("six distinct powers") + p = 30 if not state["history"] else (state["high"]+state["low"])//2 + with checkpoint_update(): + state["current_power"] = p + state["next_height"] = 0 + p = state["current_power"] + ok, kind, facts = state.get("pending_decision") or decide(data,p,weights,state) + entry = {"power":p,"pass":ok,"reason":kind,**facts} + if ok: + entry["price"] = price(data,p) + with checkpoint_update(): + state["history"].append(entry) + if ok: + state["high"] = p + else: + state["low"] = p + state["current_power"] = None + state["pending_decision"] = None + state["next_height"] = 0 + if state["high"] == 31: + return "all powers 1 through 30 fail the frozen sufficient comparison tests" + return "minimum admissible integer in this grid law; independent proof and consumer outstanding" + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--bit-source",type=Path,required=True,help="pinned BIT-451.json or source7863.tar.gz") + parser.add_argument("--out",type=Path,required=True,help="new, writable receipt path") + parser.add_argument("--resume",type=Path,help="previous capped receipt; another allocation must be authorized") + args = parser.parse_args() + if sys.version_info[:2] != (3,12) or sys.implementation.name != "cpython": + parser.error("requires CPython 3.12") + if args.out.exists(): + parser.error("output already exists; choose a new path") + data = source(args.bit_source) + key = {"source_sha256":PIN,"script_sha256":sha256(Path(__file__).read_bytes()).hexdigest(), + "h":H_SHIFT,"seconds_per_allocation":SECONDS,"power_cap":CASE_CAP,"height_cap":HEIGHT_CAP} + state = dict(identity=key,low=0,high=31,history=[],heights_used=0,current_power=None,next_height=0) + if args.resume: + previous=args.resume.read_bytes() + state=json.loads(previous) + if state["identity"]!=key or state["status"]!="CAPPED" or (state["heights_used"] >= HEIGHT_CAP and not state.get("pending_decision")): + parser.error("resume requires a matching wall-clock capped receipt with remaining height budget") + if len(state["history"]) >= CASE_CAP and state["current_power"] is None: + parser.error("power scope exhausted") + state["resumed_from_sha256"] = sha256(previous).hexdigest() + def deadline(*_): + raise TimeoutError("60-second allocation expired") + signal.signal(signal.SIGALRM,deadline) + signal.alarm(SECONDS) + start=monotonic() + try: + state["decision"]=screening(data,state) + state["status"]="SCREEN_COMPLETE" + except TimeoutError as exc: + state.update(status="CAPPED",decision=str(exc)) + finally: + signal.alarm(0) + state["elapsed_seconds_this_allocation"]=monotonic()-start + state["negative_scope"]="Frozen upper base requirement, lower eta threshold, and dominating grid law only. Physical supplier and exact eta remain open." + with args.out.open("x") as out: + json.dump(state,out,indent=2) + out.write("\n") + print(state["status"],state["decision"],"see",args.out) + return 2 if state["status"]=="CAPPED" else 0 + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/research/bit-451-carrier-cover/grid/verify.py b/research/bit-451-carrier-cover/grid/verify.py new file mode 100644 index 0000000000..73dd333008 --- /dev/null +++ b/research/bit-451-carrier-cover/grid/verify.py @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Rebuild the fixed 451-factor supplier and replay its quantized paid-log bound.""" +from fractions import Fraction as Q +import json +import os +from pathlib import Path +import runpy +import subprocess +import sys +import tempfile + +HERE = Path(__file__).resolve().parent +PACKAGE = HERE.parent +PRIOR = PACKAGE/"weighted/SECOND.json" +SCREEN = HERE/"screen.py" +CAP = "0.00387992804526559" +CLAIM = "0.00387992804518" +WEIGHTS = [0]*11 + [173,53821,8141,1832,1569] +HASHES = { + "APPLICATION.json": "9300f140d1ad01f3e0177402b5f361619191229a22e353a2e36de5a597895db2", + "AUDIT.json": "a0d962f26dc7a623a8636b1e8670690227e627588b2d34b952edcff164ff9326", + "adapter/binary/FINITE.json": "21751e8364eb1e2cd0e67786bc25c7c01289bfc18cb272954d0821ad169bcf29", +} + + +def component(base, prior, search, result, coefficients, seven_stages, check): + grid = search["grid"] + check(search["status"] == "SCREEN_COMPLETE" and (search["low"],search["high"]) == (26,27) + and [entry["power"] for entry in search["history"]] == [30,15,22,26,28,27], + "exhaustive decision for the frozen integer grid") + check(grid["weights"] == WEIGHTS == result["integer_masses"] and + grid["mass_denominator"] == result["denominator"] == 65536 and + grid["cut_denominator"] == 16 and grid["cdf_floor_units"] == result["cdf_numerators"], + "complete dyadic masses match independent source derivation") + p, h = result["p_minimum"],result["h"] + check((p,h,result["shift"],result["failed_power"],result["failed_height"]) == (27,1804,0,26,-1), + "fixed power and limiting obstruction") + eta_low, eta_high = map(Q,base["uniform"]["eta"]) + mean = Q(sum(k*n for k,n in enumerate(WEIGHTS,1)),16*65536) + limit = (mean/Q(23,20))**26 + check(limit == Q(result["failed_ratio"]) > eta_high and 0 < mean/Q(23,20) < 1 and + Q(7,6)+1 < Q(319,100) and 1 < Q(23,20), + "preceding and smaller powers fail the frozen dominating law") + top, bottom = coefficients(p,WEIGHTS) + check(all(n>=0 and d>0 for n,d in zip(top,bottom)),"nonnegative Bell coefficients") + ratios = [n/d for n,d in zip(top,bottom)] + check(len(top) == len(bottom) == p+1 and not result["prefix_ratios"] and + ratios == list(map(Q,result["shifted_ratios"])) and + max(ratios) == Q(result["worst_upper"]) < eta_low, "28 Bell and independent Newton ratios") + H = base["uniform"]["H"] + check(Q(h+(134**451).bit_length()-1,h)**p > Q(base["uniform"]["ambient_power"][1]), + "ordinary base ranks") + J = 1061 + check((h**p << (J-1)) <= (H+h)**p < (h**p << J) and + result["uniform_J"] == J and Q(result["uniform_loss"]) == Q(J,H) and + Q(J,H)*(H+h)>2*p, "least carrier debit and complete tail") + seven_stages(base,Q(J,H),CAP,check) + price = search["history"][-1]["price"] + ceiling = Q(base["raw_crossing"][1]) - Q(1218,H) - Q(7,10**14) + old, claim = Q(prior["candidate_grid_claim"]),Q(CLAIM) + check(Q(prior["uniform_loss"]) == Q(1218,H) and claim > ceiling > old and + Q(CAP) == Q(price["ordinary_cap"]) == Q(result["cap"]) and + claim == Q(price["candidate_grid_claim"]) == Q(result["candidate_grid_claim"]) and + ceiling == Q(price["old_relaxed_ceiling"]) == Q(result["old_cover_forgiven_upper"]) and + claim-ceiling == Q(result["separation"]), "strict separation from prior complete envelope") + check(claim-old == Q(result["absolute_gain"]) == Q(13,10**14) and + 100*(claim-old)/old == Q(result["exact_relative_percent"]), "exact previous gain") + return {"installed":CAP,"old_fixed_loss_ceiling":str(ceiling)} + + +def main(): + if sys.version_info[:2] != (3,12) or not __debug__: + raise RuntimeError("use CPython 3.12 with assertions") + for name in ("OPENBLAS_NUM_THREADS","OMP_NUM_THREADS","MKL_NUM_THREADS","VECLIB_MAXIMUM_THREADS"): + os.environ[name] = "1" + legacy = runpy.run_path(str(PACKAGE/"verify.py")) + check, digest = legacy["check"],legacy["digest"] + check(digest(PRIOR) == "e6919418a22bd2679320b0178860b506357dd882415b2431b96ffa879976eed6", + "exact predecessor at #8026 47f5718d") + check(digest(SCREEN) == "5d6e9892ec68b7d150677c9b74e8e6b04a116d144accc3af589a3c224bee4b8c", "frozen primary screen") + prior = json.loads(PRIOR.read_bytes()) + expected = json.loads((HERE/"RESULT.json").read_bytes()) + seven_stages = runpy.run_path(str(PACKAGE/"verify_majorant.py"))["seven_stage_bound"] + coefficients = runpy.run_path(str(SCREEN))["coefficients"] + with tempfile.TemporaryDirectory() as temporary: + work = Path(temporary) + source = legacy["extract"](work) + subprocess.run([sys.executable,"-IB",source/"replay_451.py"],cwd=source,check=True) + rebuilt = source/"replay/BIT-451.json" + check(digest(rebuilt) == legacy["BASE_RECEIPT"] == digest(source/"BIT-451.json"),"complete signed BIT control") + base = json.loads(rebuilt.read_bytes()) + legacy["supplier"](base) + screen = work/"primary.json" + subprocess.run([sys.executable,"-IB",SCREEN,"--bit-source",rebuilt,"--out",screen],check=True) + bound = component(base,prior,json.loads(screen.read_bytes()),expected,coefficients,seven_stages,check) + outer = work/"consumer" + full = legacy["consumer"](source,outer,bound,cap=CAP,expected_claim=CLAIM,expected_hashes=HASHES) + report = work/"independent.json" + subprocess.run([sys.executable,"-IB",HERE/"audit.py",source,PRIOR,report, + "--power","27","--shift","0","--failed-height","-1","--outer",outer],check=True) + check(json.loads(report.read_bytes()) == expected and Q(full["tested"]) == Q(expected["candidate_tested"]) + and Q(full["delta"]) == Q(172,10**14), "independent all-height proof and complete signed application") + print("PASS_COMPLETE_DYADIC_GRID",f"claim={full['claim']}",f"delta_vs_second={expected['absolute_gain']}", + f"delta_vs_7863={full['delta']}",flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/bit-451-carrier-cover/majorant_audit.py b/research/bit-451-carrier-cover/majorant_audit.py new file mode 100644 index 0000000000..2c510ddb60 --- /dev/null +++ b/research/bit-451-carrier-cover/majorant_audit.py @@ -0,0 +1,124 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Rational cross multiplication and integer powers on one frozen compiler estimate.""" +from argparse import ArgumentParser +from fractions import Fraction as Q +from hashlib import sha256 +import json +from pathlib import Path +import signal + +PINS = { + 'BIT-451.json': '538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749', + 'inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/PROOF.md': + '95cc9e31bc030ec94b04decddcca2d28ee98cfec0ca7803b54666b2b76a5c9ab', + 'inputs/cache/parent/qualify_complex.py': + '236988674f4efe96134de83a224f9c5f4508f6049237415bc24a18669cf5ad67', + 'inputs/7786/research/p104-iterated-returns/continuation/audit_expanded.py': + '0316153c1822724e1a3d08066aec9601a891073b0209954eaf302ffa014bf5ac', +} +CAP = Q('.00387992804367877') +OLD_CLAIM = Q('.00387992804356') +TICK = Q(1,10**14) + + +def need(flag, what): + if not flag: + raise ValueError(what) + + +def verify(root): + for path,digest in PINS.items(): + need(sha256((root/path).read_bytes()).hexdigest()==digest, path) + item=json.loads((root/'BIT-451.json').read_text()) + uniform=item['uniform'] + count=item['partition']['factors'] + H=uniform['H'] + C=Q(item['separation']['trial']) + need((count,H,C)==(451,1202400000000000,Q('.003879928046148')),'source') + need(item['partition']['cutoff']=='11^451' and item['partition']['productive_floor']=='16^451' + and item['partition']['working_ambient']=='134^451','stock parameters') + paid=11**count; floor=16**count; ambient=134**count + t=1-C; theta_bar=Q(173,200); p=Q(237,4); E=Q(2969,H) + # The certified test uses the *actual* finite ambient and maximum paid cutoff. + need(paid**200 < floor**173,'strict true exit ratio') + need((1<<27)*paid**200 <= ambient**173,'shifted exit inequality') + elo,ehi=map(Q,uniform['eta']); alo,ahi=map(Q,uniform['ambient_power']) + need(02*p,'eventual tail monotonicity') + # Old source control and three single-coordinate perturbations. + need(Q(13,15)**60=ehi,'old p=59 complement must fail') + need(theta_bar**236 >= ehi**4,'lowering new p to 59 must fail') + need((H+1)**237 >= 2**(4*2968),'reducing new carrier exponent by one must fail') + need((H+1)**60 >= 2**2969,'old p does not establish the new loss') + phase=item['cover_and_stock'];rho=Q(phase['rho']); seed=Q(phase['seed']) + need(phase['q_condition']=='odd prime q > 2^52*N^5 avoiding frozen finite catalogue witnesses','same q contract') + d=1/Q(H*2**44);bad=Q(phase['bad_surcharge_upper']) + log_lower=Q(1,2)*Q(2,3)+Q(1,2)*Q(1,2) + need(log_lower>Q(1,2) and 1+H*d*log_lower > 1+Q(1,2**45) > 1+bad,'same full fallback') + base=C-E-d; previous=seed; steps=[] + for _ in range(7): + envelope=(1-rho)*base+rho*previous + scaling=10**24; rate=Q((envelope*scaling).__floor__()-1,scaling) + need(previousCAP,'strict ordinary service endpoint') + rawlo,rawhi=map(Q,item['raw_crossing']) + need((rawlo,rawhi)==(Q('.003879928046154'),Q('.003879928046155')),'old crossing') + old_e=Q(uniform['uniform_loss']);old_fixed=rawhi-old_e-d-7*TICK + # This control forgives the whole old cover loss and stage rounding. + generous=rawhi-old_e-7*TICK + # Actual equality of the rank-selected outer branch is bound separately by + # the replay. Here assume the signed rational branch is not the bottleneck. + grid=(CAP//TICK-8)*TICK; tested=grid+7*TICK + need(CAP>tested>grid>generous>=old_fixed>OLD_CLAIM,'target separation') + return dict(pins=PINS,theta=str(theta_bar),p=str(p),H=H,H_times_uniform_loss=2969, + directed_ambient=list(map(str,(alo,ahi))),directed_eta=list(map(str,(elo,ehi))), + uniform_loss=str(E),cover_loss=str(d),covered_rate=str(base),ordinary_steps=steps, + cap=str(CAP),candidate_grid_claim=str(grid),candidate_tested=str(tested), + old_fixed_loss_complete_upper=str(old_fixed),old_cover_forgiven_upper=str(generous), + separation_even_forgiving_cover=str(grid-generous),price_delta_vs_8026=str(grid-OLD_CLAIM), + exact_relative_percent_vs_8026=str(100*(grid-OLD_CLAIM)/OLD_CLAIM), + verification='Independent component and grid bound; verify_majorant.py replays and binds the complete application', + controls=['p=60 original passes','p=59 complement fails on old and new theta', + '2968 instead of 2969 rejected','p=60 fails at 2969']) + + +def bind_outer(directory, result): + """Authenticate the installed ordinary input, grid result and both output bytes.""" + app = json.loads((directory / 'APPLICATION.json').read_bytes()) + audit = json.loads((directory / 'AUDIT.json').read_bytes()) + summary = json.loads((directory / 'receipt.json').read_bytes()) + need(Q(app['binary_ordinary']) == Q(audit['outer']['pinned_binary_cap']) == Q(summary['cap']) == CAP, + 'installed cap') + need(Q(audit['outer']['finite_compiler']['tested']) == Q(summary['tested']) == Q(result['candidate_tested']), + 'tested point') + need(Q(app['application']['claim']) == Q(summary['claim']) == Q(result['candidate_grid_claim']), + 'outer claim') + for path in ('APPLICATION.json', 'AUDIT.json'): + need(sha256((directory / path).read_bytes()).hexdigest() == summary['output_sha256'][path], path) + + +def main(): + signal.alarm(60) + parser = ArgumentParser(description=__doc__) + parser.add_argument('producer', type=Path) + parser.add_argument('out', type=Path) + parser.add_argument('--outer', type=Path) + args = parser.parse_args() + result = verify(args.producer) + if args.outer: + bind_outer(args.outer, result) + args.out.write_text(json.dumps(result, indent=2) + '\n') + print('PASS_451_MAJORANT_COMPONENT', result['candidate_grid_claim'], result['price_delta_vs_8026']) + + +if __name__ == '__main__': + main() diff --git a/research/bit-451-carrier-cover/normalized/ENDPOINT.json b/research/bit-451-carrier-cover/normalized/ENDPOINT.json new file mode 100644 index 0000000000..cb346b2668 --- /dev/null +++ b/research/bit-451-carrier-cover/normalized/ENDPOINT.json @@ -0,0 +1,77 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "RESULT.json": "bb3f7384b8c17a396256c32d78cf8efa6a0270bb82988fa694a950f17b7f0bed" + }, + "predecessor": "f1649c6ddc1e2e1b6bf4b63118512ba08332fa38", + "fixed_power": 60, + "theta": "13/15", + "H": 1202400000000000, + "integer_h_interval": [ + 1, + 9012 + ], + "shift_midpoint_log_floor": 18025, + "shift_boundaries": [ + [ + 9012, + true + ], + [ + 9013, + false + ] + ], + "floor_log2_ambient": 3186, + "base_guard_count": 1, + "uniform_integer_J_minimum": 2218, + "uniform_J_rejected": 2217, + "uniform_loss": "1109/601200000000000", + "charged_cover_loss": "1/21152844499805798400000000000", + "covered": "51294696619740319440649059727/13220527812378624000000000000000", + "stages": [ + [ + "12039/3125000", + "3879818252126142530937/1000000000000000000000000", + "19343722154309/17214228922368000000000000000000000000" + ], + [ + "3879818252126142530937/1000000000000000000000000", + "193996380256732355053/50000000000000000000000", + "4027495673530033/2151778615296000000000000000000000000000" + ], + [ + "193996380256732355053/50000000000000000000000", + "3879928042546681119341/1000000000000000000000000", + "586878427391933/430355723059200000000000000000000000000" + ], + [ + "3879928042546681119341/1000000000000000000000000", + "1939964022148164627707/500000000000000000000000", + "3201212685256369/2151778615296000000000000000000000000000" + ], + [ + "1939964022148164627707/500000000000000000000000", + "1939964022151663923979/500000000000000000000000", + "3829532040922801/2151778615296000000000000000000000000000" + ], + [ + "1939964022151663923979/500000000000000000000000", + "484991005537919480291/125000000000000000000000", + "4208245077214897/2151778615296000000000000000000000000000" + ], + [ + "484991005537919480291/125000000000000000000000", + "1939964022151677977153/500000000000000000000000", + "3089320197260977/2151778615296000000000000000000000000000" + ] + ], + "cap": "77598560886067/20000000000000000", + "candidate_tested": "387992804429/100000000000000", + "candidate_grid_claim": "193996402211/50000000000000", + "previous_claim": "193996402203/50000000000000", + "absolute_gain": "1/6250000000000", + "exact_relative_percent": "800/193996402203", + "old_cover_forgiven_upper": "388768790017217/100200000000000000", + "separation": "13627/100200000000000000" +} diff --git a/research/bit-451-carrier-cover/normalized/ENDPOINT.md b/research/bit-451-carrier-cover/normalized/ENDPOINT.md new file mode 100644 index 0000000000..9c48d86b2e --- /dev/null +++ b/research/bit-451-carrier-cover/normalized/ENDPOINT.md @@ -0,0 +1,23 @@ +# Optimal integer scale for the frozen normalized estimate + +At fixed logarithm power 60 and exit parameter 13/15, the #4480 sufficient guards on #8026's 451-factor compiler admit exactly the integer scales **1 through 9012**. The strict final carrier inequality admits an integer exponent budget of 2218 at scale 9012. No admitted scale has a smaller integer budget. This optimum is specific to the given guards, physical carrier, power, exit parameter and integer budgets. There may be other scales attaining 2218. [Original normalized theorem](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/SHIFTED-LOG.md) · [Exact predecessor](https://github.com/CrocSwap/integer-mult-bounds/tree/f1649c6ddc1e2e1b6bf4b63118512ba08332fa38/research/bit-451-carrier-cover/normalized) + +Write A=134^451, r=11^451, k=16^451, H=1202400000000000, N=2^H, t=1−0.003879928046148. Keep the original tensor, capped jobs, batch replication, carrier, stage count, cover, prime, stock, precision and all nested-seed premises. The scale h changes only the function used to prove an upper bound for the old normalized count of paid leaves L(n). + +**Exact endpoint for the shift.** The shift is 2^(2h)r^15≤A^13. Set Q=floor(A^13/r^15). Exact integer division gives floor(log₂Q)=18025, so the largest admissible h is floor(18025/2)=9012. The adjacent endpoints satisfy 2^18024≤Q<2^18026. This proves the inclusive shift at 9012 and disproves it at 9013; monotonicity classifies every other positive integer scale without enumeration. The separate exit condition r^15120, h≥1 and ln 2>1/2. The resulting uniform loss therefore applies at the fixed carrier and along the large-width tail. + +**Complete comparison.** With the unchanged actual-carrier cover loss d=1/(H·2^44), the covered exponent saving is C−2218/H−d. All seven stages retain the same seed and ρ=1/250. The receipt verifies strict slack for all three charged ordinary-work terms at each stage. Truncating the seventh stage to 17 fractional decimal places supplies 0.00387992804430335. The full application passes at tested 0.00387992804429 and claims 0.00387992804422, a gain of 0.00000000000016 over the predecessor's 0.00387992804406. Even forgiving all predecessor cover and seven-stage loss, its fixed 2406/H uniform charge and the compiler's seven outer ticks imply a complete upper bound 0.003879928046155−2406/H−7·10^−14. The new claim exceeds this upper bound by exactly 13627/100200000000000000. The physical algorithm and its unknown optimal rate remain unchanged. The new bound improves the charged proof on that algorithm by reducing the previously sufficient uniform-loss budget. + +**Checks and credit.** The independent procedure directly derives both endpoints with integer division and bit lengths. The primary implementation and the independent procedure agree on the optimum, ordinary cap, tested point and claim. The prior #8026 result and the exact #4480 theorem are authenticated next to the checker. zxv supplied #4480 and the earlier #4411/#4433 majorants. Jacob Alan Sussman supplied the finite integer flow. DreamingOfClouds' source construction, Clear1nsight's #7863 supplier and #7973 audit, and the charged cover, seven-stage continuation and complete consumer of #8026 are reused. The contribution here is the exact optimal positive-integer scale and complete certified rate on that fixed instance. OpenAI Codex assisted the endpoint proof and independent verification. [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) + +From the repository root with CPython 3.12, run the complete registered package: + +```sh +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The endpoint calculation alone uses `normalized/endpoint.py PRODUCER_ROOT OUT.json [--outer CONSUMER_DIR]`. It returns the same deterministic ENDPOINT.json with or without the additional application and audit binding check. diff --git a/research/bit-451-carrier-cover/normalized/PROOF.md b/research/bit-451-carrier-cover/normalized/PROOF.md new file mode 100644 index 0000000000..6406f2d618 --- /dev/null +++ b/research/bit-451-carrier-cover/normalized/PROOF.md @@ -0,0 +1,25 @@ +# A normalized bound on the existing 451-factor compiler + +On the same 451-factor physical transfer and recovered-input contracts as #7863 and #8026, the changed uniform-rate proof supports an ordinary BIT cap of 0.00387992804414700. The independently replayed complete application gives conditional κ = 0.00387992804406. The exact increase over #8026 at head `80fcb342be8d0583f8a3f96298a6204318fa848a`, κ = 0.00387992804359, is 0.00000000000047, or exactly (4700/387992804359)%. The native operators, signed occurrence histogram and raw crossing stay fixed. [#8026](https://github.com/CrocSwap/integer-mult-bounds/pull/8026) · [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) + +**Scope of the source lemma.** Keep the exact 451 factors, lexicographic paid slabs J=11^451, retained productive minimum k=16^451, actual ambient A=134^451, N=2^H with H=1202400000000000, and the predecessor's choices of integer batching, matching, ownership and routing. In the ambient-cap compiler §6, the source truncation is A·ρ_s·c(a)≤n, independently of the cost majorant. For n≥A each source rank s satisfies n/A2^2048, f(A)>3^60>8192>A^(1−t), where the last comparison uses the archived directed upper endpoint. The function x↦log(1+x/h) is concave and vanishes at x=0. Consequently its chord from zero to x=log₂A proves the base inequality F(n)≥n at every integer 1≤n≤A, with equality at n=1. This proof does not take log(0). + +Check the two exact all-exit inequalities J^151/A, concavity gives 1−(1−y)^t≥ty≥ηy^t. Monotonicity of f bounds the positive source complement F(n−s) by (n−s)^t f(n); use F(0)=0 if n=s. Summing over sources leaves headroom ηf(n)Σ_s w_s s^t sufficient for the complete exit bill. Strong induction on integer n therefore proves the upper bound for all n. + +**Rate on the fixed carrier.** The integer comparison (H+h)^600, using ln 2>1/2 and (H+h)·2406/H>120. The cap thus covers the entire required large-width tail. Cutting 2406 to 2405 fails. Setting h=1 at the proposed loss fails. Raising h to 16384 at the same θ̄ fails the all-paid-exits shift guard. + +**Complete continuation.** #8026's full bad-class surcharge remains below 2^−46 for the same fixed q>2^52N^5. Its chosen d=1/(H·2^44) gives N^d>1+2^−45. Thus the actual carrier pays the original full fallback with a strict normalized moment. The stock and precision requirements are the original source-bound 451-factor transfer assumption, including restoration across all seven ordinary stages and the nested seed. Only the proved upper estimate on the same normalized leaf count changed. The seven strict rows in RESULT.json charge the original atom-width exponent ρ=1/250, the complete covered recursive term and the linear/logarithmic terms. Any higher analytical threshold absorbs its bounded smaller widths into the fixed big-O constant, retaining the same runtime dispatch. + +The complete consumer tested 0.00387992804413 with installed BIT cap 0.00387992804414700. Its pinned expanded audit requires the tested rate to exceed the published claim by seven 10^−14 ticks. Even giving #8026 the native upper 0.003879928046155, waiving its entire cover debit and all stage rounding, its previous loss 2969/H leaves a complete-claim ceiling of 1166306369910901/300600000000000000. The new claim exceeds it by exactly 26707/60120000000000000. This is separation from that charged predecessor analysis, with no asserted change to the unknown optimal crossing of the same physical algorithm. + +**Clean replay.** From the repository root with CPython 3.12: + +```sh +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The independent component entry point is `normalized/audit.py PRODUCER_ROOT OUT.json [--outer CONSUMER_DIR]`. The optional check binds the supplied application and audit hashes, BIT cap, tested rate and published claim to the consumer receipt. It returns the same deterministic component receipt in either mode. The archived original theorem has Git blob `48a70bcebaa0b31c717de0408846e1238f56a7c3` and SHA-256 `04eba2e0a2a6cdd4ee512254142cbe45e647a73b66ad67b2c1c0a62e0883238a`. + +**Credit.** zxv's #4480 supplies the normalized scale, base argument, paid-exit shift and complement proof, extending #4411 and #4433. Jacob Alan Sussman supplied the integer lockstep construction. The ambient-cap source credits DreamingOfClouds' construction and the chronological product and specialization predecessors. Clear1nsight supplied the 451-factor supplier and the signed rational consumer, independently reviewed in #7973. #8026 supplied the sharper charged cover estimate, prior uniform result, stock argument and comparator. This contribution instantiates the published normalized majorant on that fixed schedule and independently verifies the resulting complete conditional rate. OpenAI Codex assisted the proof and verification. [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#4433](https://github.com/CrocSwap/integer-mult-bounds/pull/4433) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) diff --git a/research/bit-451-carrier-cover/normalized/RESULT.json b/research/bit-451-carrier-cover/normalized/RESULT.json new file mode 100644 index 0000000000..459b273800 --- /dev/null +++ b/research/bit-451-carrier-cover/normalized/RESULT.json @@ -0,0 +1,74 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/PROOF.md": "95cc9e31bc030ec94b04decddcca2d28ee98cfec0ca7803b54666b2b76a5c9ab", + "inputs/7786/research/p104-iterated-returns/continuation/audit_expanded.py": "0316153c1822724e1a3d08066aec9601a891073b0209954eaf302ffa014bf5ac", + "inputs/cache/parent/qualify_complex.py": "236988674f4efe96134de83a224f9c5f4508f6049237415bc24a18669cf5ad67" + }, + "theorem_sha256": "04eba2e0a2a6cdd4ee512254142cbe45e647a73b66ad67b2c1c0a62e0883238a", + "h": 1024, + "p": 60, + "theta": "13/15", + "H": 1202400000000000, + "H_times_e": 2406, + "log_factor_at_rank_one": "1", + "separately_defined_rank_zero": "0", + "uniform_loss": "401/200400000000000", + "shift_inequality_bit_lengths": [ + 25452, + 41429 + ], + "charged_cover_loss": "1/21152844499805798400000000000", + "covered": "51294696617673237580430179727/13220527812378624000000000000000", + "stages": [ + { + "previous": "12039/3125000", + "rate": "1939909125985206994011/500000000000000000000000", + "slack": "33603013577029/17214228922368000000000000000000000000" + }, + { + "previous": "1939909125985206994011/500000000000000000000000", + "rate": "155197104199131825759/40000000000000000000000", + "slack": "2237954599978673/2151778615296000000000000000000000000000" + }, + { + "previous": "155197104199131825759/40000000000000000000000", + "rate": "1939964021195163585299/500000000000000000000000", + "slack": "159407953423961/86071144611840000000000000000000000000" + }, + { + "previous": "1939964021195163585299/500000000000000000000000", + "rate": "775985608827995059341/200000000000000000000000", + "slack": "2892095299028657/2151778615296000000000000000000000000000" + }, + { + "previous": "775985608827995059341/200000000000000000000000", + "rate": "3879928044146973889209/1000000000000000000000000", + "slack": "762611309275069/430355723059200000000000000000000000000" + }, + { + "previous": "3879928044146973889209/1000000000000000000000000", + "rate": "3879928044147001883579/1000000000000000000000000", + "slack": "3847485004220081/2151778615296000000000000000000000000000" + }, + { + "previous": "3879928044147001883579/1000000000000000000000000", + "rate": "3879928044147001995557/1000000000000000000000000", + "slack": "2728560124266161/2151778615296000000000000000000000000000" + } + ], + "cap": "3879928044147/1000000000000000", + "candidate_grid_claim": "193996402203/50000000000000", + "candidate_tested": "387992804413/100000000000000", + "old_cover_forgiven_upper": "1166306369910901/300600000000000000", + "old_fixed_loss_upper": "3419646440710006257591429761/881368520825241600000000000000", + "claim_minus_old_generous_upper": "26707/60120000000000000", + "predecessor_published": "387992804359/100000000000000", + "absolute_gain": "47/100000000000000", + "exact_relative_percent": "4700/387992804359", + "controls": [ + "J=2405 rejected", + "unnormalized h=1 fails J=2406", + "h=16384 violates paid-exit shift" + ] +} diff --git a/research/bit-451-carrier-cover/normalized/SHIFTED-LOG.md b/research/bit-451-carrier-cover/normalized/SHIFTED-LOG.md new file mode 100644 index 0000000000..48a70bceba --- /dev/null +++ b/research/bit-451-carrier-cover/normalized/SHIFTED-LOG.md @@ -0,0 +1,134 @@ +# A normalized logarithmic majorant + +This extends the logarithmic majorant in PR4411 and PR4433 without changing +their finite integer compiler, its source complements, or its native +hypotheses. The new parameter normalizes the logarithm by a scale adapted to +the fixed mixed unit. All logarithms in the theorem are base two. + +Assume the separated finite compiler has ordinary base `L(n)=n` for +`0<=n=m`, + +``` +L(n) = sum_s w_s L(n-s) + sum_e x_e L(e), +sum_s w_s = 1, +n/m < s <= n, +sum_e x_e e^t <= sum_s w_s s^t, +1 <= e <= r_max*(n/m)^theta < n, +theta = log(r_max)/log(k_min) < 1. +``` + +Here the normalized nonnegative weights arise from whole integer batches; +the moment inequality follows from the strict mixed-unit superpotential. +These are the inherited compiler premises, not a replacement native proof. + +Choose `0=1, +F(0) := 0. +``` + +The scale and power may be real. Integer `h` and `p`, and rational +`theta_bar`, make the shift guard and final-rank checks particularly simple +exact arithmetic. The separate check `r_max^b<=k_min^a` implies the required +`theta<=theta_bar`. + +## Base range + +Put `x=log(n)` and `M=log(m)`. For positive `x`, the function +`log(1+x/h)/x` decreases: its derivative has the sign of +`x/(h+x)-ln(1+x/h)`, which is nonpositive because +`ln(1+u)>=u/(1+u)` for `u>=0`. Therefore the base guard implies + +``` +p*log(1+x/h) >= (1-t)*x for 0<=x<=M. +``` + +Exponentiation proves `F(n)>=n` throughout the ordinary base range. At +`n=1`, both sides are one. This single endpoint guard covers every integer +base rank; checking a sample of them is unnecessary. + +## Exit contraction + +Because `n/m>=1` and `theta<=theta_bar`, + +``` +log(e) <= log(r_max) + theta_bar*(log(n)-log(m)). +``` + +The shift guard is exactly + +``` +(1-theta_bar)*h + log(r_max)-theta_bar*log(m) <= 0. +``` + +Consequently `h+log(e)<=theta_bar*(h+log(n))`. Writing +`A(n)=(1+log(n)/h)^p` gives + +``` +A(e) <= theta_bar^p*A(n), +sum_e x_e F(e) <= theta_bar^p*A(n)*sum_s w_s s^t. +``` + +The factor `h` cancels in this ratio. Increasing it is therefore available +up to the explicit shift guard, rather than forcing the original value one. + +## Complements and induction + +The factor `A` increases on positive ranks. For `y=s/n>1/m`, concavity gives + +``` +1-(1-y)^t >= t*y >= t*m^(t-1)*y^t = eta*y^t. +``` + +Treating a zero-rank complement as zero, this implies + +``` +F(n)-sum_s w_s F(n-s) >= eta*A(n)*sum_s w_s s^t. +``` + +The strict capacity guard pays the exit bound. All recursive ranks are +smaller than `n`, so strong induction proves the assertion. The argument +uses monotonicity of `A`; it does not require that `A` be concave or that +`p<=1`. + +## Specified uniform rank + +For a desired exponent `z>t` and `N=2^H`, the sufficient final condition is + +``` +(1+H/h)^p < 2^((z-t)*H). +``` + +For positive integers `h,p,H`, and an integer `J=(z-t)*H`, this is exactly + +``` +(h+H)^p < h^p*2^J. +``` + +Thus normalized logarithms preserve a finite exact integer final-rank +certificate. This bounds normalized paid rank-one leaves. Actual productive +width, scalar records, owned banks, precision constants, physical costs and +recovery thresholds still come from the newly compiled finite word and the +inherited native and outer arguments. + +As a diagnostic using PR4453's unchanged `v=675`, `p=160` and +`theta_bar=15/16`, one may take `h=40*v=27000`: the shift condition reduces +to `2^40*18^16<=153^15`. The endpoint base condition also remains strict. +This changes the final sufficient-rank inequality itself. A standalone +numerical diagnostic is not a new certified rank or an independent native +admission; the package's exact verifier supplies its instantiated values. + +Prepared with substantial OpenAI Codex assistance. The finite integer +lockstep compiler is Jacob Alan Sussman's construction, retained through +PR4359; the logarithmic-majorant predecessors are zxv's PR4411 and PR4433. +New material is Apache-2.0. diff --git a/research/bit-451-carrier-cover/normalized/audit.py b/research/bit-451-carrier-cover/normalized/audit.py new file mode 100644 index 0000000000..7f0b8498b9 --- /dev/null +++ b/research/bit-451-carrier-cover/normalized/audit.py @@ -0,0 +1,123 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""One exact normalized logarithmic majorant for the unchanged #7863/#8026 supplier.""" +from argparse import ArgumentParser +from fractions import Fraction +from hashlib import sha256 +import json +from pathlib import Path +import signal + + +F = Fraction +PINS = { + 'BIT-451.json':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749', + 'inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/PROOF.md': + '95cc9e31bc030ec94b04decddcca2d28ee98cfec0ca7803b54666b2b76a5c9ab', + 'inputs/7786/research/p104-iterated-returns/continuation/audit_expanded.py': + '0316153c1822724e1a3d08066aec9601a891073b0209954eaf302ffa014bf5ac', + 'inputs/cache/parent/qualify_complex.py':'236988674f4efe96134de83a224f9c5f4508f6049237415bc24a18669cf5ad67', +} +THEOREM_SHA = '04eba2e0a2a6cdd4ee512254142cbe45e647a73b66ad67b2c1c0a62e0883238a' +BASE = F('.00387992804359') +CAP = F('.003879928044147') + + +def require(flag, why): + if not flag: + raise ValueError(why) + + +def verify(root): + for key,digest in PINS.items(): + require(sha256((root/key).read_bytes()).hexdigest()==digest,key) + theorem=Path(__file__).with_name('SHIFTED-LOG.md') + require(sha256(theorem.read_bytes()).hexdigest()==THEOREM_SHA,'original normalized-majorant theorem') + data=json.loads((root/'BIT-451.json').read_bytes()) + v=data['partition']['factors'] + H=data['uniform']['H'] + C=F(data['separation']['trial']) + phase=data['cover_and_stock'] + require((H,C,v)==(1202400000000000,F('.003879928046148'),451),'source parameters') + require([data['partition'][key] for key in ('working_ambient','cutoff','productive_floor')]== + ['134^451','11^451','16^451'],'same paid geometry') + A,r,k=134**v,11**v,16**v + h,p,a,b,j=1024,60,13,15,2406 + t=1-C + require(r**b2^(2h), (1+log2(A)/h)^p > 3^p. + # The concavity of log2(1+x/h), with value 0 at x=0, interpolates + # from this proved endpoint to every intermediate base rank. + require(A>2**(2*h) and amax < 8192 < 3**p,'endpoint implies all ordinary base ranks') + require((h+H)**p < h**p*2**j,'uniform loss on fixed carrier') + require(F(j,H)*(H+h)>2*p,'eventual tail via ln(2)>1/2') + # Two different perturbations: one fails the complete leaf normalization; + # another fails the all-exit shift while keeping r,k and theta fixed. + require((h+H)**p >= h**p*2**(j-1),'undercharging the uniform loss must fail') + require((H+1)**p >= 2**j,'unnormalized estimate cannot justify this charge') + require((1<<(16384*(b-a)))*r**b>A**a,'excessive normalization fails the shifted exit') + require(phase['q_condition']=='odd prime q > 2^52*N^5 avoiding frozen finite catalogue witnesses','same prime') + d=F(1,H*2**44) + bad=F(phase['bad_surcharge_upper']) + require(F(1,2)/F(3,2)+F(1,2)/2>F(1,2) and H*d/2==F(1,2**45)>bad==F(1,2**46),'actual carrier cover margin') + rho=F(phase['rho']);prev=F(phase['seed']) + require((rho,prev)==(F(1,250),F('.00385248')),'fixed backend structure') + e=F(j,H) + covered=C-e-d + stages=[] + for _ in range(7): + ceiling=covered-rho*(covered-prev) + scale=10**24 + rate=F((ceiling*scale).__floor__()-1,scale) + require(prev < rate < ceiling < covered < rho < 1-ceiling,'all ordinary gaps') + stages.append(dict(previous=str(prev),rate=str(rate),slack=str(ceiling-rate))) + prev=rate + require(prev>CAP,'last stage supports chosen ordinary cap') + tick=F(1,10**14) + claim=(CAP//tick-8)*tick + tested=claim+7*tick + raw=tuple(map(F,data['raw_crossing'])) + require(raw==(F('.003879928046154'),F('.003879928046155')),'raw crossing controls') + # Give the old proof its raw upper and forgive all old cover and bootstrap loss. + old_e=F(2969,H) + old_upper=raw[1]-old_e-7*tick + require(CAP>tested>claim>old_upper>BASE,'strict separation from previous charged proof') + return dict(pins=PINS,theorem_sha256=THEOREM_SHA,h=h,p=p,theta=str(F(a,b)),H=H,H_times_e=j, + log_factor_at_rank_one='1',separately_defined_rank_zero='0',uniform_loss=str(e), + shift_inequality_bit_lengths=[((1<<(h*(b-a)))*r**b).bit_length(),(A**a).bit_length()], + charged_cover_loss=str(d),covered=str(covered),stages=stages,cap=str(CAP), + candidate_grid_claim=str(claim),candidate_tested=str(tested),old_cover_forgiven_upper=str(old_upper), + old_fixed_loss_upper=str(old_upper-d),claim_minus_old_generous_upper=str(claim-old_upper), + predecessor_published=str(BASE),absolute_gain=str(claim-BASE),exact_relative_percent=str(100*(claim-BASE)/BASE), + controls=['J=2405 rejected','unnormalized h=1 fails J=2406','h=16384 violates paid-exit shift']) + + +def bind_outer(outcome,directory): + app=json.loads((directory/'APPLICATION.json').read_bytes()) + audit=json.loads((directory/'AUDIT.json').read_bytes()) + receipt=json.loads((directory/'receipt.json').read_bytes()) + require(F(receipt['cap'])==F(app['binary_ordinary'])==F(audit['outer']['pinned_binary_cap'])==CAP,'cap') + require(F(receipt['tested'])==F(audit['outer']['finite_compiler']['tested'])==F(outcome['candidate_tested']),'tested') + require(F(receipt['claim'])==F(app['application']['claim'])==F(outcome['candidate_grid_claim']),'claim') + for key in ('APPLICATION.json','AUDIT.json'): + require(sha256((directory/key).read_bytes()).hexdigest()==receipt['output_sha256'][key],key) + + +if __name__=='__main__': + signal.alarm(60) + cli=ArgumentParser(description=__doc__) + cli.add_argument('producer',type=Path) + cli.add_argument('out',type=Path) + cli.add_argument('--outer',type=Path) + args=cli.parse_args() + result=verify(args.producer) + if args.outer: + bind_outer(result,args.outer) + args.out.write_text(json.dumps(result,indent=2)+'\n') + print('PASS_NORMALIZED_451_MAJORANT',result['candidate_grid_claim'],result['absolute_gain']) diff --git a/research/bit-451-carrier-cover/normalized/endpoint.py b/research/bit-451-carrier-cover/normalized/endpoint.py new file mode 100644 index 0000000000..39b22217f6 --- /dev/null +++ b/research/bit-451-carrier-cover/normalized/endpoint.py @@ -0,0 +1,115 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Exact extremal integer h for one frozen normalized logarithmic bound.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +import json +from pathlib import Path +import signal + +OLD = 'bb3f7384b8c17a396256c32d78cf8efa6a0270bb82988fa694a950f17b7f0bed' +BIT = '538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749' +TICK = F(1,10**14) + + +def ensure(ok, message): + if not ok: + raise ValueError(message) + + +def pinned_json(path, expected): + raw = path.read_bytes() + ensure(sha256(raw).hexdigest() == expected, path.name) + return json.loads(raw) + + +def evaluate(producer): + bit = pinned_json(producer / 'BIT-451.json', BIT) + old = pinned_json(Path(__file__).with_name('RESULT.json'), OLD) + theorem = Path(__file__).with_name('SHIFTED-LOG.md') + ensure(sha256(theorem.read_bytes()).hexdigest() == '04eba2e0a2a6cdd4ee512254142cbe45e647a73b66ad67b2c1c0a62e0883238a', 'theorem pin') + h0, p, theta, H = old['h'], old['p'], F(old['theta']), old['H'] + C = F(bit['separation']['trial']) + v = bit['partition']['factors'] + require_stock = (v, H, h0, p, theta, C) + ensure(require_stock == (451,1202400000000000,1024,60,F(13,15),F('.003879928046148')), 'frozen geometry') + A, r, k = 134**v,11**v,16**v + a,b = theta.numerator,theta.denominator + ensure(r**b < k**a and theta**p < F(bit['uniform']['eta'][0]), 'old exit and capacity conditions') + + # 2^((b-a)*h) <= A^a/r^b. Both sides can be compared after flooring the ratio. + quotient = A**a // r**b + floor_log = quotient.bit_length()-1 + h = floor_log//(b-a) + shift = 1 << ((b-a)*h) + ensure(shift <= quotient < shift << (b-a), 'two adjacent scale endpoints') + # log2(A) >= floor_log_A; this one rational lower endpoint suffices even + # at the least favorable h. The base endpoint decreases as h increases. + floor_log_A = A.bit_length()-1 + ambient_upper = F(bit['uniform']['ambient_power'][1]) + ensure(ambient_upper < (1+F(floor_log_A,h))**p, 'all base ranks for every permitted scale') + # Strict loss inequality (1+H/h)^p < 2^J; exact integer division handles + # equality to a power of two by returning the next larger integer. + numerator = (h+H)**p + denominator = h**p + J = (numerator//denominator).bit_length() + ensure((denominator << (J-1)) <= numerator < (denominator << J), 'minimum integral uniform budget') + e = F(J,H) + ensure(e*(H+1)>2*p, 'uniform tail throughout the permitted scale range') + d = F(old['charged_cover_loss']) + ensure(d==F(1,H*2**44) and F(bit['cover_and_stock']['bad_surcharge_upper'])tested>claim>generous>old_rate,'separation of complete fixed-loss analyses') + return dict(pins={'BIT-451.json':BIT,'RESULT.json':OLD}, + predecessor='f1649c6ddc1e2e1b6bf4b63118512ba08332fa38', + fixed_power=p,theta=str(theta),H=H,integer_h_interval=[1,h], + shift_midpoint_log_floor=floor_log, + shift_boundaries=[[h,True],[h+1,False]],floor_log2_ambient=floor_log_A, + base_guard_count=1,uniform_integer_J_minimum=J,uniform_J_rejected=J-1, + uniform_loss=str(e),charged_cover_loss=str(d),covered=str(rate),stages=steps, + cap=str(cap),candidate_tested=str(tested),candidate_grid_claim=str(claim), + previous_claim=str(old_rate),absolute_gain=str(claim-old_rate), + exact_relative_percent=str(100*(claim-old_rate)/old_rate), + old_cover_forgiven_upper=str(generous),separation=str(claim-generous)) + + +def bind(result, directory): + receipt=json.loads((directory/'receipt.json').read_bytes()) + app=json.loads((directory/'APPLICATION.json').read_bytes()) + audit=json.loads((directory/'AUDIT.json').read_bytes()) + ensure(F(receipt['cap'])==F(app['binary_ordinary'])==F(audit['outer']['pinned_binary_cap'])==F(result['cap']),'cap binding') + ensure(F(receipt['claim'])==F(app['application']['claim'])==F(result['candidate_grid_claim']),'claim binding') + ensure(F(receipt['tested'])==F(audit['outer']['finite_compiler']['tested'])==F(result['candidate_tested']),'tested binding') + for name in ('APPLICATION.json','AUDIT.json'): + ensure(sha256((directory/name).read_bytes()).hexdigest()==receipt['output_sha256'][name],name) + + +if __name__=='__main__': + signal.alarm(60) + parser=ArgumentParser(description=__doc__) + parser.add_argument('producer',type=Path) + parser.add_argument('out',type=Path) + parser.add_argument('--outer',type=Path) + args=parser.parse_args() + result=evaluate(args.producer) + if args.outer: + bind(result,args.outer) + args.out.write_text(json.dumps(result,indent=2)+'\n') + print('PASS_451_INTEGER_SCALE_ENDPOINT',result['integer_h_interval'],result['uniform_integer_J_minimum'],result['candidate_grid_claim']) diff --git a/research/bit-451-carrier-cover/source7863.tar.gz b/research/bit-451-carrier-cover/source7863.tar.gz new file mode 100644 index 0000000000..43577b8765 Binary files /dev/null and b/research/bit-451-carrier-cover/source7863.tar.gz differ diff --git a/research/bit-451-carrier-cover/tensor/MEAN.json b/research/bit-451-carrier-cover/tensor/MEAN.json new file mode 100644 index 0000000000..8b5e4e6087 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/MEAN.json @@ -0,0 +1,104 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "grid/RESULT.json": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818", + "tensor/MINIMUM.json": "2c7692f263da6ccaacb7054471aff9d8a693371e8dcb3b83390d70a7bcff4d10", + "tensor/audit.py": "d8bed723957dcd30cc6462562b8e9d5ee33a36891c73916a986459969895993e" + }, + "p": 20, + "h": 1804, + "atoms": 452, + "mean": "749/1000", + "raw_mean_upper": "74847592422577689/100000000000000000", + "completed_mean_upper": "74847592422577789/100000000000000100", + "epsilon_upper": "1/1000000000000000", + "moments": [ + "1", + "749/1000", + "253948450000000451/451000000000000451", + "86417037485450203401/203401000000000203401", + "2683091781650982739441/8339441000000008339441", + "10116198815247781746242001/41371966801000041371966801", + "17398922691385430311157694559/93293785136255093293785136255", + "150151284983482256606510307872193/1051887427411276176887427411275125", + "500126870624786599070693150481063977/4561550286177745728617593870048859375", + "1130009697801549859776794793374325011025291/13372184663930061603442476430048231257812500", + "197075013678973914112042361547378922131546082439/3015427641716228891576278434975876148636718750000", + "6270409391381529328824775464142310349405419936366241/123632533310365384554627415834010922094105468750000000", + "605550451655876150625473088279239323375068247968741793889/15333524943818066819387665248813204612721430761718750000000", + "213365467520269525420054110137916640356782080656978978171848679/6915419749661948135543837027214755280337365273535156250000000000", + "3428584557915391533586328657800566436002952337749043515087206995459/141766104868069936778648659057902483246915988107470703125000000000000", + "1471420144031329658779257749089610627280903253215257518212288895234707/77362407463479810401372346011027853854135982510302734375000000000000000", + "1189993392716892774872822025874352486193946529536611933120851005229567053004017/79297260614743306329463268727850163235991386966881033337402343750000000000000000", + "84963874830048468774554653922352629039072220198824764835594321789599529158903424571/7152612907449846230917586839252084723886423104412669207033691406250000000000000000000", + "15214442992735659969158726468821807735109129810313786503062156915532759588278202152242943/1612914210629940325071915832251345105236388410045056906186097412109375000000000000000000000", + "5466235939385492380145867832351671160875730668691080964988296974445476468803488381719706179931/727424308994103086607434040345356642461611172930320664689929932861328125000000000000000000000000", + "9471673407577717893785095273350297854132248873012327343899913216709996322303601291532583419924451/1577251746905483134903619000941133873798974225921031825842107690963745117187500000000000000000000000" + ], + "coefficients": [ + "4619214328401846877148929490636968299271169020851626049604795941772330518029957252382659756858850093452084807290642497536/111581719889037807598090497843124502799833727485820667142517284085536258465707673713465807937246230162572271374815037634815051", + "9376319149339273486492833178549873053837102910813704035882816642135388119279303381082553819646712620861424607948892250778296479997427712/144792593248087609155286021844688802312436170655176715659145559800791525902350415091273853486672427976109048261788387349918715756155924135775", + "1056701901521659465791735787443930125988127117838836697535325189552734740728679536366006921671746638413099656371086743622698920826793563885077514829824/12748495431990958542182363263503681233663016748039516891265524642538631118772318538288711116380951816908782709894964312042982860201813783400947237296844575", + "114261616299112438625691254128629147228263563831905162132013033526113489541932882291966457565370751172931150288428546897472353916494920483474880047626369350664192/1175524590719747023642049070729266505208609671638612393384366992267894342242490127844115488019399830305964671555445030785816748983436415403621479228044957112703415375", + "15999047127084335483680240915676552854702641467045149973443399240182055938738669119024688259605597261832474938426036574911089657913770535713593412045005544244821576279375872/146964444519046818316459765557206990680580532990016909680563692079102583937671313197963805481836795770114686014508165064131757043368368551510012562371849723278690361792180257375", + "8931662021437304827003292276496016226016867398816938554669167562397268398175007507118463554729930066023108093815068822406075378929318279911589655115925060106813214415244087304496592896/75280549949961717928529110632710129074301676593662292074236950020590379337664630384191285741392708401753859487354485426264053845821756679655688718196218875422931964318153568206672873765625", + "133107369634509996400449810362323269275278093899977851430681125604723598299555297779481858612358015179708819704980379033797253973200207875931824162220294456532676332768152377848533869821927792896/1047733528664625827174651533550975934892054973299519222005878713600979738208538169136626826684541374044462238787759437400567302345063517293025551454507750558796400928908740746893315990745151984765625", + "887940292047454759000210292329565534882589252339905039300612528409976641082215727563829582238818226664133514115913097986882717783515809612558163035546362133811807508153501181992963632935132750161983716416/6607210541174905507568395760257048131111781588626821183919593202256486630931363337753225739970635464538724194752032068454884331956918570683294455650190449767857197050965863072625655290251521883126110948046875", + "54874249832677937201680736264202806194782364643095750871882813011340231584559096799248220854271660590997973412251921036559169852626668731127377675757286862436409906373873991299924906912629325543858112243427471414801216/389418332156602840793037590715517756107955328707903821263796938910678255894383920022441566759182026710047059056735849261256862566959204572879212544346816640805022068925907076187548214560761102085136306919158995733435546875", + "189155306424148084550461583810069413942843079437519609920981775617103849475478934853708588980106482015920623605495591131909755409740573496926056108479800483456119137807371116992415966588360884002096533030088401792699797036983593384/1288717321518362395740453536515326267905439770372704387879905253200477207001055402911571311583609594186032442938367041720217175488795962603652658540803843235980129412969031624641485932779226583262116313970836540696345255188480185546875", + "10272075983860172564951886999197935712677907425330183620640835065447065724385102274971419449716473858627340831340693394383795362534073553197397048170018497041537545122049694391036471273675595638165412605173551410235513639216638698/67533458406328093833455766683974796854586137523735456166331441100874767609841851398767588249634324191909255478537234704021565966229642009588983039705102002473248954452490341496998662500113884402832088575038809159854557195836669921875", + "58288383162484035637666266655932965557301095306870537090910837211561501527925089655225852430418160049571156040639586559893230966154456987980434801797580354157734204001468469454941850067222214652592604750175813/371309491900102068617827041066809647472246839906886971452595585369040579137622997566798647374553865202706224028682327644058293121570290944954251754168920949407037149464669492825253751934420030338139902026367187500", + "31545581614320154458674739225908687396574237628174091338755637222983233850074247438949605057911128405905923632564514880962295164686078683469008973724179394505883385644222987760915376239471/195354019799740500186292146866359310712607186808446388567458249297744269494166296504954184021603087215155689947129479678694028261859336103934527544732786917444939543707622302997536669921875000", + "92414866573624526431422382430323810841951291804038021369978915603888461999958534102746711434020972202470495623632053906357301253728790221217833167172307499054924647787/557879603447361478012836767951653396655098042198110279256644944098969044428811632813197877879044418649428995962082639629494695679636904241194323779686195797009765625000000", + "730073827371988056499950465374372147983909210103991208982824602531678180884036290457989444417080623226915550679748310930028681880092826839656943701117/4305983977478224376414740199646147372675081918057078891812735377165454098740744811558567571478984208445405241363089735042074866206282139536132812500000000", + "2194803889075290856086542907177660836696890203888149799855016619413868821205172563590380628390745073861437439866974190233909541388782453/12672130198257631215246425899520058217698118460525940020721274518316352894419455397232731368821091819727302428975961074208984375000000000000", + "4471823915390469168426914192085933160501817963141907413172872733209506719854282171675590614256205561894623551325800451471/25316763121955945144832947913126186841320857249651872801692753516989755091810474557472540956416963667098999023437500000000000", + "125923555834298597373183082539797234244313797368732269151179578385221122755817820552080375016437718234105737/700042671785599625966637580812642556096029093092370799991916877595125740790710561813125610351562500000000000000", + "681533646890564142446172793269407507366430933047188027416120568487289980117929819356743477/3725153710674666093176026597393448990840704046503762321865578815650939941406250000000000000000", + "7217112977202699711042618497393347451826827373123556506618738269951462803979/38827515861222488976876264877059965775372962645530700683593750000000000000000000", + "3087708931184287588523673574487142814283685641882450610001/16366537392946113042105628976821899414062500000000000000000000" + ], + "worst_upper": "3087708931184287588523673574487142814283685641882450610001/16366537392946113042105628976821899414062500000000000000000000", + "worst_index": 20, + "eta_lower": "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "prior_rejected_limit": "332525673007965087890625/1716155831334586342923895201", + "uniform_J": 786, + "uniform_loss": "131/200400000000000", + "cap": "0.00387992804549430", + "stages": [ + [ + "3879818253312330155687/1000000000000000000000000", + "27933656746309/17214228922368000000000000000000000000" + ], + [ + "387992760632557947631/100000000000000000000000", + "2949458882234033/2151778615296000000000000000000000000000" + ], + [ + "484991005467204059199/125000000000000000000000", + "801626792191933/430355723059200000000000000000000000000" + ], + [ + "3879928045487280685581/1000000000000000000000000", + "4283561623717553/2151778615296000000000000000000000000000" + ], + [ + "3879928045494279278429/1000000000000000000000000", + "4188883364644529/2151778615296000000000000000000000000000" + ], + [ + "3879928045494307272801/1000000000000000000000000", + "2880601966544561/2151778615296000000000000000000000000000" + ], + [ + "1939964022747153692389/500000000000000000000000", + "3930669930809009/2151778615296000000000000000000000000000" + ] + ], + "candidate_tested": "96998201137/25000000000000", + "candidate_grid_claim": "387992804541/100000000000000", + "old_cover_forgiven_upper": "388768790148967/100200000000000000", + "separation": "223/20040000000000000", + "absolute_gain": "3/100000000000000", + "exact_relative_percent": "50/64665467423" +} diff --git a/research/bit-451-carrier-cover/tensor/MEAN.md b/research/bit-451-carrier-cover/tensor/MEAN.md new file mode 100644 index 0000000000..d2dd681cee --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/MEAN.md @@ -0,0 +1,22 @@ +# The measured paid mean admits power 20 + +Using the full one-factor paid inventory tightens the mean bound for the original 451-factor supplier from 3/4 to **749/1000**. At scale 1804 this makes power 20 feasible at every integer compiler height. The unchanged signed application certifies conditional κ = **0.00387992804541**, an absolute increase of **0.00000000000003** over the preceding complete result. [Pinned predecessor](https://github.com/CrocSwap/integer-mult-bounds/tree/a5186a40219228f5af40a65ea605aee79ce68522/research/bit-451-carrier-cover/tensor) · [Original supplier](https://github.com/CrocSwap/integer-mult-bounds/blob/b3e4412fe01f07dc58305616fabf96345f49a781/research/p104-bit-451-factor-schedule/PROOF.md) + +**Paid mean and admissible chord.** Under the original t-weighted paid one-factor law, define Y=log₁₁(r). Its support is in [0,2] since the actual largest rank is 56. The grid replay sums the entire original paid inventory and its first log moment with directed arithmetic. The resulting mean upper bound is m=0.74847592422577689. The raw tensor average T of 451 independent coordinates has the same upper mean. The original split charges every additional paid piece. If x is the actual relative increase over the pre-split paid denominator, the producer's directed numerator and denominator bounds give 0≤x≤U_high/α_low^451<ε=10⁻¹⁵. Capping raw logs at one, each old split tuple contributes one before splitting and has new log ranks at most one. Its incremental paid moment numerator is consequently at most the increase of its paid weight. Below-cutoff tuples are unchanged, and productive discards add no paid recursive completion. Dividing by the actual complete denominator therefore bounds the new mean by (m+x)/(1+x)≤(m+ε)/(1+ε)=74847592422577789/100000000000000100 <749/1000. This calculation covers both the raw and completed means; they play different roles below. [Measured mean and directed producer replay](https://github.com/CrocSwap/integer-mult-bounds/tree/a5186a40219228f5af40a65ea605aee79ce68522/research/bit-451-carrier-cover/grid) + +For a nondecreasing convex function f and fixed value s of the other coordinates, f(s+y) is at most (1−y/2)f(s)+(y/2)f(s+2). With the raw mean bound, this permits replacing each independent raw coordinate by twice a Bernoulli variable of success probability 749/2000. Iterating independently gives bᵢ=E[(2K/451)ⁱ] as an upper bound for E[Tⁱ], with K distributed as Binomial(451,749/2000). The independent audit computes the 452 integer binomial masses directly. For each i≥2, the clipped moment is bounded by cᵢ=min(1,bᵢ). Applying the same paid excess bound gives μᵢ=(cᵢ+ε)/(1+ε). Use μ₀=1 and the proved μ₁=749/1000. The moment vector bounds each coordinate separately. It need not itself represent a distribution. [Weighted paid moment theorem](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/LOG-MOMENTS.md) + +**All heights.** For integer height G≥0 the positive weighted exit law gives G+1 independent copies of the completed rank. All coefficients in the expansion of (7/6+ΣX)²⁰ are nonnegative, so substituting μ bounds its expected value by a polynomial C(G). It has degree at most 20: a term of total degree 20 involves at most 20 distinct factors, and selecting those factors gives binomial coefficients in G+1. The denominator D(G)=(319/100+23G/20)²⁰ has degree 20. Computing both polynomials at G=0,…,20 determines their full sequences of forward differences at zero. All 21 denominator differences are positive and all numerator differences nonnegative. Their greatest ratio is at index 20, where it equals (749/1150)²⁰ < 0.000188659877. This is strictly below η_lower=0.000188887219560768857828191657200313519. The Newton basis binom(G,j) is nonnegative at every nonnegative integer G, proving the contraction for all those heights. Under the previous 3/4 envelope, power 20's limiting ratio was (15/23)²⁰>0.0001937619340, which exceeds even the directed η upper. The new mean admits the power previously excluded. This test covers the single power and fixed scale specified above. [Paid path multiplicities](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md) · [All-height method](https://github.com/CrocSwap/integer-mult-bounds/blob/1e485bcc54c97ed721a3b741d3667630a64aab88/research/complete-all-height-exits/README.md) + +**Complete cost.** The normalized base guard at the ambient endpoint covers positive ranks including one, with zero handled by the inherited zero case. At H=1202400000000000, h=1804, 2^785 h²⁰≤(H+h)²⁰<2^786 h²⁰. The derivative condition (786/H)(H+h)>40 extends the carrier bound to its tail. Charge the resulting 786/H and existing complete cover allowance 1/(H·2⁴⁴). Seven strict ordinary stages give the cap 0.00387992804549430. The complete signed consumer tests 0.00387992804548, admitting 0.00387992804541. The exact relative improvement over 0.00387992804538 is (50/64665467423)%. The old 825/H uniform charge and seven outer ticks give its proof a complete upper ceiling of 388768790148967/100200000000000000 even if all other losses are waived and the native raw upper endpoint is granted. The new certified claim exceeds that ceiling by 223/20040000000000000. The stock, physical word, setup, recovery, signed caller, routing, ownership, precision and tape premises all come from the same construction. + +Clear1nsight supplied the original #7863 word and #7973 audit, Jacob Alan Sussman the finite compiler, zxv the tensor and charged-path results in #4480, and Ali Romman the #5351 all-height framework. The preceding #8026 analyses supplied the exact paid mean, split accounting, binomial/height certificates and signed consumer. Here we use a tighter source-supported Bernoulli parameter, check every coefficient and carry the resulting strict decrease in uniform cost through the application. OpenAI Codex assisted the derivation and independent verification. [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) · [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#5351](https://github.com/CrocSwap/integer-mult-bounds/pull/5351) + +From the clean checkout with CPython 3.12, run + +```sh +python3.12 -IB research/bit-451-carrier-cover/tensor/verify.py +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The independent command takes `mean_audit.py PRODUCER_ROOT GRID_RESULT MINIMUM_RESULT OUT [--outer CONSUMER_DIR]`. Its previously published arithmetic helper is authenticated by hash and may be located explicitly through `--tensor-audit PATH`. Actual consumer binding checks the application, signed audit, literal finite-supplier word and cap, and both source-level negative controls. Both command modes emit identical deterministic evidence. diff --git a/research/bit-451-carrier-cover/tensor/MINIMUM.json b/research/bit-451-carrier-cover/tensor/MINIMUM.json new file mode 100644 index 0000000000..33c67ac56e --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/MINIMUM.json @@ -0,0 +1,107 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "grid/RESULT.json": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818", + "tensor/audit.py": "d8bed723957dcd30cc6462562b8e9d5ee33a36891c73916a986459969895993e", + "tensor/RESULT.json": "288e194853bb736973600eb51da2983414679a185629c30f769d701f4c55e811" + }, + "p": 21, + "h": 1804, + "atoms": 452, + "moments": [ + "1", + "3/4", + "254625000000000451/451000000000000451", + "86761593750000203401/203401000000000203401", + "2282350701923083979527/7056450076923083979527", + "10183123080750041371966801/41371966801000041371966801", + "85545084456187955091634811/455091634811000455091634811", + "1212286817936478680724419290201/8415099419290209415099419290201", + "420481161727879105662963099880651/3795209838099884446209838099880651", + "146348679456996152168844014296173601/1711639636983047885240636983046173601", + "51111524932431317039158668025699294051/771949476279354596243527279353824294051", + "1628286627645268295918709826065389806091/31649928527453538445984618453506796056091", + "6297817348774004877858496074814988671767451/157015295424697004230529692147847215234267451", + "2221804143092555730472295701191750564795245401/70813898236538348907968891158679094070654620401", + "786426745582875417462135619585070764366210363351/31937068104678795357493969912564271425865233800851", + "279277139064532551822250277284697158383549301605676/14403617715210136706229780430566486413065220444183801", + "7653882410009917584880946356762914935481287384670952/499694737658443973423817767245037336330185724640530327", + "142257691259354655773356366591104833240865220501406681929/11718840987565828064735374277430615611615515614269717228804", + "102020087511034232686957352567159775735959417530971219678083/10570394570784376914391307598242415281677195084071284940381208", + "146792399316636460872897029444928194479453650369598551246527357/19068991805695015953561918907229317168145659931664598032447699232", + "3310611671874961171729250127980294523639245631759994765449600227/537507206523028262191026589197526377677105789323795857039619522102", + "1743074594525006910026819435568713848415221173956801766665943608287/352604727479106539997313442513577303756181397796410082217990406498912" + ], + "epsilon_upper": "1/1000000000000000", + "coefficients": [ + "111273082786370745143230882289832074436672540119492894039395651889797665150967639439938171625137329101562500000000000000000000/4378131943286176456726276863870676116357075965361145516670950675664186173418971993495257906033730332888848211933617631677238156087", + "77221405928362589740053647458085405798663707482667199988142174832597277078640382955198782041501866966898775100708007812500000000000000000000/1890451740513890417721530696092602201829972728175958648121394939712517152641750422245556631143691012345266366899502099058773898023488652638953197", + "33936515987902341083495448750098041171119628781833027613999655809775340182350598686746617017167923717065291483357076885700225830078125000000000000000000/640146578282044056162036790594856248659501530590945166490873596652732450972918732518760140696377441691221117299677208488061291914349907151828927025577984251", + "1277834727486177999826859808774176245666361449655244618634904997016570542246490858764768718648014146164239745958809120861938274386596679687500000000000000000000000/20387629875358301534216585701626179112138958760765769589881831094888551325362692312832117282079771082225186306320156975056794608219675679237966909458123000576206590649", + "62390609099251100582831375528916537860728542728486453024430498865533061171910970037429456015297595002223691329499399254710522820683219737156910896301269531250000000000000000/884081497720897526726097656491424451968464643626004721619185920848440156999122679574812105149885999998722933963036541636196871891401869657267715555581730814829258868440313480817", + "571560717928019687785733570882674054580147519500677823373750175724136576319722231957022464038126896848831248847185349203617832260028305036844328446272902488708496093750000000000000000/7403839720448230505762825057201671851852358899284278215426338244468198536057656995121631834059037470349792737967279311154417566496256551303457011241372015087017069527253937302351150930547", + "40095077564214039497037712951664660174302992064554054359010620754742250912121957353099831292348119402582728083184333769867515280902861828022122933443176538885665118694305419921875000000000000/483722894186728047294346965662613816725027029603927708873607459172425185280229387025764614743625767909499060893020407418394235660823454069186635630017052112223271054685821693521985949824734760261", + "5004075921487921048123707332526909778258536878686745836612718494774857044460186008951148530524045293971699272506282890052839962116031785619100377962494467832631135678504159126281738281250000000000000000/56951240039029471506636521726651615550860725856181595783861504569881330843527403531982582171597159503972122196396749765936818609107944073953704917727185014825842577280761769512290140056839605861314620470823", + "539529444835861636957398622831414619825624870070299825273036162934134041852771977070104299846189631403182192210974760217767057360075670771596440820386910543445354684818100057992115860402584075927734375000000000/5846344799860230090249398244700331337272736471061755089859436024300846474729028763927881919429152865444160855434897094857954501143839888414575158889583880361341446223020776781479540048558863468793612001879820452569", + "2528513048920220159460170589114022356665167387523803164805989877994989290770185959007314419821608168798128694807650186566684063428215095260582705974408969767144497792885776810827842585606957617619419097900390625000000000000/26268597188635725561749327049696660153527923906552669229121999627805294486960476829004053193257247135977919553222966179389599977251081767783098528552859902513146936515257069585613110717602873669711430528878929543581271100787313", + "28859481546286894146220479575866825889005893417758070235930439757835270674575573383628759791425970083120361418893314226288233608024920288163959239216286948365291189526711138821990725669325851796674728393554687500000000000/288996238122672687415679624957041557349459209576116437079981382825238372279209865872237768998257854211036394699573686760563516492375666637823795518258487119545135059915971233097506679578118024427185276929646811165318685191693", + "242347731736944114315952440721081927218369387643210049803701567642590969675252488136873302969141174667488559910442637373192815499668697018163665154363999761204475797791970260780745965099885787963867187500000000000000/2349208878942641069019072561198391245936493252844686764902868908897216094053187130595982894643661205953186648547424349773864378002208045985568571567008185530887789854941928431669653276944463723547137979999171182194994269", + "77487841841258314756363308716833780739682386432761291791880691167023166743166325797021034204312331492015764013644858584130236180835593531298855175044952690190406443286039052486419677734375000000000/729609280435456739327657719087852255242705374475892076773477137681477318791486058236931586332731518296194960089591024639367812998048296417452732941128670651464887297691081904235551052829217934059373669", + "3923035459816576043901150845337094429136895907290648215377373960477383212855391867066744494374681794618765542978431865517932911333934658960346698602102755184173583984375000000000/35981948363032903555633019568347356837830746583833191208133414265557118749116481133398036508366619085939828908801411588577635995912005781001550814441095134012057165273960660515871509", + "21222002955687199010533671687042515333783031783876072691725121930772221372691382001744023200662734446941444220538106817171383078587521857023239135742187500000/190057123220517338057626293824543544110602886396714978317731844812285913814475463503120545225334762527390006409867602208478955219586483960976718515781894919191999", + "4942763703798510708457193930685615883341084666611819308067888716638121300835928229820502267442046795958843490361786779403686523437500000000/43308685315932015980717178697925359984396617248870713898512363682573968209096910048257819597619872906630659376623076350848892912823991757725927", + "159160893011048843284672947324431558178238680650552413467626361130668935384587060261032747781178609347343444824218750000/1366770880247524471297742062295482790893222290724469143840282201941675720851262641450607311206770273942856342865386623632543", + "894736675326999129863535158321929824744749734869906770402240137945534563190492866780281066894531250000/7541447272245810531997319089764549348581120153563509435641772592700927415042280964910411368692974884361907", + "92074110665663369403631854961967966590423526331571566985918395574808120727539062500/762712044591120221947825739880808296914663928720324235463692089988806939524718725704991", + "22493318113149900596026110919109923053415590172576904296875000000/183330885476028943617298237867851580037047649605631721285810514338097", + "141636539370467891514124049928188323974609375/1136985845219959946313441344630128327596124671319", + "4987885095119476318359375/39471584120695485887249589623" + ], + "worst_index": 21, + "worst_upper": "4987885095119476318359375/39471584120695485887249589623", + "eta_lower": "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "uniform_J": 825, + "uniform_loss": "11/16032000000000", + "stages": [ + [ + "1939909126640012383233/500000000000000000000000", + "18347289741637/17214228922368000000000000000000000000" + ], + [ + "3879927606293144865531/1000000000000000000000000", + "4152547941320369/2151778615296000000000000000000000000000" + ], + [ + "484991005463149668241/125000000000000000000000", + "2560231766001329/2151778615296000000000000000000000000000" + ], + [ + "3879928045454845555849/1000000000000000000000000", + "3825477591795377/2151778615296000000000000000000000000000" + ], + [ + "3879928045461844148689/1000000000000000000000000", + "3145515549361841/2151778615296000000000000000000000000000" + ], + [ + "193996402273093607153/50000000000000000000000", + "3920155850868401/2151778615296000000000000000000000000000" + ], + [ + "1939964022730936127519/500000000000000000000000", + "561967617075133/430355723059200000000000000000000000000" + ] + ], + "cap": "387992804546187/100000000000000000", + "candidate_tested": "77598560909/20000000000000", + "candidate_grid_claim": "193996402269/50000000000000", + "old_cover_forgiven_upper": "1166306370427151/300600000000000000", + "separation": "14077/300600000000000000", + "absolute_gain": "7/100000000000000", + "exact_relative_percent": "700/387992804531", + "rejected_power": 20, + "rejected_limit": "332525673007965087890625/1716155831334586342923895201", + "eta_upper": "2361090244509610722852395715003919/12500000000000000000000000000000000000", + "limiting_base": "15/23", + "fixed_envelope_minimum_power": 21 +} diff --git a/research/bit-451-carrier-cover/tensor/MINIMUM.md b/research/bit-451-carrier-cover/tensor/MINIMUM.md new file mode 100644 index 0000000000..0e522ccede --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/MINIMUM.md @@ -0,0 +1,22 @@ +# The minimum integer power for the fixed 451-factor moment envelope + +Power 21 suffices at every nonnegative integer exit height for the #8026 tensor proof, and the limiting height ratio rules out every integer power from 1 through 20 for that same formal envelope. The unchanged 451-factor construction and signed consumer certify conditional κ = **0.00387992804538**, an absolute gain of **0.00000000000007** over the previous power-23 proof. [Exact predecessor and replay](https://github.com/CrocSwap/integer-mult-bounds/tree/cb73879faab75dfc9c6ebc8ba69a258e388ab26e/research/bit-451-carrier-cover/tensor) + +**Common source and moments.** Use the original #7863 word, h=1804 and the preceding tensor certificate's paid one-factor law with 0≤Y=log₁₁(r)≤2 and E[Y]≤3/4. Conditional on all other coordinates, the chord joining the endpoints of any increasing convex function upper-bounds its expectation by the combination assigning probability 3/8 to 2 and 5/8 to 0. Iterating through 451 independent coordinates bounds the raw i-th tensor moment by bᵢ=E[(2K/451)ⁱ] with K distributed as Binomial(451,3/8). The independent verifier reconstructs these values from all 452 atoms. Put cᵢ=min(1,bᵢ). Clipping is bounded both by the untruncated moment and by one. For actual relative paid split excess x, the completed moment is ≤(cᵢ+x)/(1+x), since each split tuple had clipped value one and its new ranks are at most one after normalization. The original all-path denominator charges the entire uplift. Its directed bound allows ε=10⁻¹⁵ in place of x. The sharper measured raw mean and this same uplift allow μ₁=3/4; take μ₀=1 and μᵢ=(cᵢ+ε)/(1+ε) for i≥2. The independent verifier authenticates the original paid source and both preceding receipts, rebuilds the moments, and checks that all 22 required entries exactly match the earlier envelope. This is a sequence of bounds on moments, without a distribution assumption on the sequence itself. [Paid split source](https://github.com/CrocSwap/integer-mult-bounds/blob/b3e4412fe01f07dc58305616fabf96345f49a781/research/p104-bit-451-factor-schedule/PROOF.md) · [Original weighted moment theorem](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/LOG-MOMENTS.md) + +**Limiting obstruction.** At height G, expand the p-th power of 7/6 plus G+1 independent completed log ranks and substitute the upper moments μ. Every multinomial coefficient is nonnegative. The resulting numerator polynomial Cₚ(G) has leading term μ₁ᵖGᵖ: only choosing p distinct draws to first degree contributes degree p, and the p! coefficient cancels the binomial leading factor 1/p!. The denominator Dₚ(G)=(319/100+23G/20)ᵖ has leading term (23/20)ᵖGᵖ. Thus the limiting ratio is (15/23)ᵖ. For p=20 it exceeds 0.0001937619340, strictly above the rigorous η upper endpoint 0.00018888721956076885782819165720031352. All sufficiently large integer G violate this envelope bound. Since 0<15/23<1, the same limiting obstruction holds for each smaller positive integer. This conclusion concerns the frozen bounds used in the proof. A tighter bound on actual moments or an altered envelope could yield a different minimum. + +**All-height positive certificate.** For p=21, convolving the moment vector for the shift with the 22 source-derived μ entries G+1 times produces C₂₁(G). Both C₂₁ and D₂₁ have degree at most 21. Evaluate each at exactly G=0 through 21 and take successive forward differences. These are the coefficients on binom(G,j). Every denominator difference is strictly positive and each numerator difference is nonnegative. The maximum coefficient ratio is attained at j=21 and equals (15/23)²¹, less than 0.000126366479 and strictly below η_lower=0.000188887219560768857828191657200313519. Since every binom(G,j) is nonnegative at integer G≥0, contraction holds at all heights of the unchanged complete weighted-exit graph. The p=20 limit together with this all-height certificate establishes the minimum claimed above. [Paid-path multiplicities](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md) · [All-height comparison](https://github.com/CrocSwap/integer-mult-bounds/blob/1e485bcc54c97ed721a3b741d3667630a64aab88/research/complete-all-height-exits/README.md) + +**Complete costs.** The ambient endpoint at rank 134^451 passes the pinned normalized base guard including unit rank and the separate zero case. At H=1202400000000000 the exact carrier test gives 2^824 h²¹≤(H+h)²¹<2^825 h²¹ and (825/H)(H+h)>42. Use loss 825/H and the same full cover loss 1/(H·2⁴⁴). Seven strictly interior seed stages imply ordinary cap 0.00387992804546187; the complete consumer tests 0.00387992804545 and certifies 0.00387992804538. The exact relative gain over 0.00387992804531 is (700/387992804531)%. Even granting the original raw upper endpoint and waiving all prior cover and seven-stage losses, the prior proof's 904/H uniform charge and seven outer ticks impose complete ceiling 1166306370427151/300600000000000000. The certified new claim exceeds that bound by 14077/300600000000000000. The physical word, compiler, caller, accounting, ownership, precision, tape, restoration, prime and stock premises are inherited unchanged. + +Clear1nsight supplied the #7863 original work and #7973 audit, Jacob Alan Sussman the finite compiler, zxv the #4480 weighted-exit and tensor arguments, and Ali Romman the #5351 all-height framework. The pinned #8026 predecessor supplied the paid moment envelope and complete propagation. Here the degree-21 coefficient proof, degree-20 limiting obstruction and signed comparison close the positive-integer-power question on that specific envelope. OpenAI Codex assisted the proof and independent verification. [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) · [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#5351](https://github.com/CrocSwap/integer-mult-bounds/pull/5351) + +From the clean checkout with CPython 3.12, run + +```sh +python3.12 -IB research/bit-451-carrier-cover/tensor/verify.py +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +For the independent evidence, invoke `minimum_audit.py PRODUCER_ROOT GRID_RESULT TENSOR_RESULT OUT [--outer CONSUMER_DIR]` with the pinned `audit.py` beside it. An explicitly located copy can be used via `--tensor-audit PATH`. The verifier authenticates that file before it evaluates the fixed cases. Both modes yield identical deterministic evidence. The outer mode additionally authenticates the charged application and signed audit against the full consumer receipt, including its ordinary cap, tested point and claim. diff --git a/research/bit-451-carrier-cover/tensor/PROOF.md b/research/bit-451-carrier-cover/tensor/PROOF.md new file mode 100644 index 0000000000..945b49e90c --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/PROOF.md @@ -0,0 +1,22 @@ +# A 451-factor binomial bound for the paid exit moments + +The original conditional supplier in #7863 admits the normalized majorant with scale 1804 and exponent 23. Its seven-stage ordinary cap is 0.00387992804539617, and the full signed consumer certifies κ = **0.00387992804531**. The comparison uses the same literal word, signed caller, physical stock, complete setup and recovery, precision, tape and physical compiler premises as the preceding #8026 dyadic proof. [Original 451-factor construction](https://github.com/CrocSwap/integer-mult-bounds/blob/b3e4412fe01f07dc58305616fabf96345f49a781/research/p104-bit-451-factor-schedule/PROOF.md) · [Weighted exit theorem](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md) + +**Product bound.** Let Y=log₁₁(r) under the normalized, paid, one-factor t-weighted law at the producer's trial t. All ranks are between 1 and 56<11², so 0≤Y≤2. The pinned grid receipt bounds its mean by 0.74847592422577689. For each fixed sum s of the other coordinates and any nondecreasing convex f, the chord inequality gives f(s+y)≤(1−y/2)f(s)+(y/2)f(s+2). Integration and the mean bound give an upper bound from replacing Y with twice a Bernoulli(3/8) variable. Independence allows this replacement one coordinate at a time, taking a new Bernoulli independent of all other coordinates. Thus for the raw tensor average T and every integer i≥1, E[Tⁱ]≤bᵢ, where bᵢ is the i-th moment of 2K/451 for K distributed as Binomial(451,3/8). The verifier computes bᵢ by summing all 452 exact binomial masses. The increasing convex order suffices here because the comparison has a larger mean. + +**Clipping and complete paid denominator.** Apply that convex bound to the untruncated power. The elementary inequalities min(1,T)ⁱ≤1 and min(1,T)ⁱ≤Tⁱ then give cᵢ=min(1,bᵢ) as an upper bound on the clipped raw moment. The clipped power itself need not be convex. For each old rank above the cutoff its clipped value is one, so the increment of its post-split paid moment numerator over the clipped reference is at most its total increase in paid weight. Below-cutoff tuples retain their ranks, and discarding productive outputs introduces no additional paid recursive completion. With actual relative paid uplift x≥0, division by the complete denominator bounds the post-split moment by (cᵢ+x)/(1+x). The verified bound U_high/α_low^451<ε=10⁻¹⁵ and cᵢ≤1 permit replacing x by ε. For i=1 the sharper measured raw mean gives (0.74847592422577689+ε)/(1+ε)<3/4. Use μ₀=1, μ₁=3/4 and μᵢ=(cᵢ+ε)/(1+ε) for i≥2. These are coordinatewise upper bounds. No assumption that the sequence is the moment sequence of a probability law is needed. [Paid tensor, clipping and Bell polynomial source](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/LOG-MOMENTS.md) + +**Every exit height.** At integer height G≥0 the paid-path product law has G+1 independent copies of the completed log rank X by the weighted-exit theorem. The multinomial expansion of E[(7/6+ΣX)²³] has nonnegative coefficients in the moments of its independent factors. Substitute μ and denote the resulting numerator by C(G). The denominator is D(G)=(319/100+23G/20)²³. Both are polynomials of degree at most 23 in G: expanding (1+(M(z)−1))^(G+1) through degree 23 uses at most 23 nonconstant factors of M(z)=Σμᵢzⁱ/i!. The verifier evaluates the numerator by integer convolution at G=0,…,23, separately evaluates the denominator and takes successive differences of each array. The Newton basis is binom(G,j), nonnegative on all nonnegative integer heights. All denominator coefficients are positive, all numerator coefficients nonnegative, and the largest ratio is at j=23. Its exact value is 1122274146401882171630859375/20880467999847912034355032910567 < 0.000053748 < η_lower=0.000188887219560768857828191657200313519. This single certificate covers every height including zero. Only p=23 was investigated in this proof. [All-height comparison](https://github.com/CrocSwap/integer-mult-bounds/blob/1e485bcc54c97ed721a3b741d3667630a64aab88/research/complete-all-height-exits/README.md) + +**Charged propagation.** At h=1804 the normalized-log ambient endpoint at rank 134^451 clears the inherited base guard, including unit rank and the separately defined zero case. At the fixed carrier H=1202400000000000, the exact inequalities 2^903 h²³≤(H+h)²³<2^904 h²³ and (904/H)(H+h)>46 give the all-size uniform loss 904/H. The same d=1/(H·2⁴⁴) covers the entire bad surcharge on the original prime and stock. Seven strictly interior seed stages give cap 0.00387992804539617. The consumer tests 0.00387992804538 and certifies 0.00387992804531. This exceeds the prior 0.00387992804518 by exactly 0.00000000000013, a relative gain of (650/193996402259)%. Even forgiving all prior stage and cover losses, using the old raw upper, the old 1061/H uniform loss and seven outer ticks gives the old proof a complete ceiling of 1166306370387901/300600000000000000. The new complete claim exceeds that ceiling by 6457/60120000000000000. The underlying raw crossing is unchanged. + +**Predecessors and replay.** Clear1nsight supplied the #7863 construction and #7973 independent audit, Jacob Alan Sussman the finite compiler, zxv the #4480 tensor and exit analysis, and Ali Romman the #5351 all-height framework. The preceding #8026 proofs supplied the source mean, complete split charge, cover, staged seed and signed application. The new step applies the 451-fold binomial comparison to every required moment and independently proves the resulting contraction and strict complete separation. OpenAI Codex assisted the derivation and verification. [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) · [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#5351](https://github.com/CrocSwap/integer-mult-bounds/pull/5351) · [#8026](https://github.com/CrocSwap/integer-mult-bounds/pull/8026) + +From a clean checkout with CPython 3.12, run + +```sh +python3.12 -IB research/bit-451-carrier-cover/tensor/verify.py +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The independent check takes `audit.py PRODUCER_ROOT GRID_RESULT OUT --power 23 [--outer CONSUMER_DIR]`. It authenticates both source inputs, recomputes the complete coefficient list and seven strict stages, and optionally binds the exact charged application, tested point, claim and signed audit to the outer receipt. Both modes return identical evidence. diff --git a/research/bit-451-carrier-cover/tensor/RESULT.json b/research/bit-451-carrier-cover/tensor/RESULT.json new file mode 100644 index 0000000000..6fc61024b7 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/RESULT.json @@ -0,0 +1,104 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "grid/RESULT.json": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818" + }, + "p": 23, + "h": 1804, + "atoms": 452, + "moments": [ + "1", + "3/4", + "254625000000000451/451000000000000451", + "86761593750000203401/203401000000000203401", + "2282350701923083979527/7056450076923083979527", + "10183123080750041371966801/41371966801000041371966801", + "85545084456187955091634811/455091634811000455091634811", + "1212286817936478680724419290201/8415099419290209415099419290201", + "420481161727879105662963099880651/3795209838099884446209838099880651", + "146348679456996152168844014296173601/1711639636983047885240636983046173601", + "51111524932431317039158668025699294051/771949476279354596243527279353824294051", + "1628286627645268295918709826065389806091/31649928527453538445984618453506796056091", + "6297817348774004877858496074814988671767451/157015295424697004230529692147847215234267451", + "2221804143092555730472295701191750564795245401/70813898236538348907968891158679094070654620401", + "786426745582875417462135619585070764366210363351/31937068104678795357493969912564271425865233800851", + "279277139064532551822250277284697158383549301605676/14403617715210136706229780430566486413065220444183801", + "7653882410009917584880946356762914935481287384670952/499694737658443973423817767245037336330185724640530327", + "142257691259354655773356366591104833240865220501406681929/11718840987565828064735374277430615611615515614269717228804", + "102020087511034232686957352567159775735959417530971219678083/10570394570784376914391307598242415281677195084071284940381208", + "146792399316636460872897029444928194479453650369598551246527357/19068991805695015953561918907229317168145659931664598032447699232", + "3310611671874961171729250127980294523639245631759994765449600227/537507206523028262191026589197526377677105789323795857039619522102", + "1743074594525006910026819435568713848415221173956801766665943608287/352604727479106539997313442513577303756181397796410082217990406498912", + "13924001301781236525591814953172291484757081993196884133188075245095489/3498544106047695089853343976619714007868831828935980835766900813282204864", + "20285409582158552653284762084911430690521468903189144457744828605189371531/6311373567310041942095432533821964070195372619400509427723489067161097574656" + ], + "epsilon_upper": "1/1000000000000000", + "coefficients": [ + "84316930492103217948199226619870803612118987902247686651170122173379213814409470764809582202602871060371398925781250000000000000000000000/8971364253767665154663697313578609308528588785689332760127154234192899463767233458147820462914394187913386707521143039049083408878566649027693", + "113405573343837025532080437225187214591731681847307805933647199512622668215398076564783048124422245699192647804406404495239257812500000000000000000000000/7175375008675395211729733972359159239525433433952029252322316604052408726590572290174018746563350931556223439613970024120784954427421854725228171475947613919", + "4859249692920777282001728190805132455502895183930246005024927030273470276849325751245394849036627239948607871556790753436601218581199645996093750000000000000000000/231604682808540141542520986452048660082669939570952211272717519622010148221117905711407404340077557216542465189713214977661664909293144872053733317655987014648062819621", + "14737040498949869268432192714732347959860555755665661007404170720043641933248596977760104439552307364207618193509735206378387779048194295581579208374023437500000000000000000000/586446312244121288848499351925010996767434143302680232090780313282624695887982845774976633342649369097849621861284153622677518015379359741330357836303688447746301230681774686743327", + "12058006924964716699371335826173453213407847635603885018470169559154122832291094004805144543800503850872875680711621655294338589715265171505359036750108003616333007812500000000000000000/422688249984921533419464841532292376063801624243139671113976776691763332527132022004121083416986630409809651940262913928005899100859012356493565327210360533333361245146929404431408788769231", + "124026944949837693703090890142430181549842113449894947683334151483051700940470394925003233762639981011017832540106317585116119632383611405352255639175246773935285043716430664062500000000000000000000/3952601351777196421918681281623787943302487978039959392903545531470808484148296484566506081003884565272966388574060956134375013736106426283856361896856143002844353687555335352606572246334807668414054123", + "713251533629291514694592609368687976570051924345247481761186559010541535376775953120342751431645302689150804273492966983173112427915496507337195773017110060183468193464793935418128967285156250000000000000/21086949864134462036640911327011195791012145983591253651505525697492833434394630091180078551550235368356840451427139575808210228371556861795356005134611383413805976101256994311168365182416649464250544764706279", + "83966386423067208935623425442606471199335692108113686255312469007807697713926988671379399449444635245163426217460953943000732523882758032224505604260868142313014824612294342069635559201240539550781250000000000000000/2334991113186992171692672611185127292704399595909941517522732890396276366935672468664309695701146157064498595098611578507458583178745387274002705115141692288642616193693415256528420347113344871719035871398585636800679409", + "161049955989567981523569095529597175327821696074363201899935850848015253955744225966062177280152858840606068236863614417207148121504794365492873806698655916774417354754277060897014602571709027591347694396972656250000000000000/4254631623998383848997120640455223081608788476111681648594807611112293729440646062802040378736444735862382558136928569700661006866195419028385358391326606049484043172403010808223848018518781618317082835924366036317265196590965749", + "397010102768695179956852933647200009894574109745054608408169665955534548845880965761494651993016671235327555871624559968305124271426535738720651382901040971698301695758399139093785451512118793608869488728761672973632812500000000000000/10037934389282407486915972228647670806578188805313336824910301743285868161233423114076997467363355615462608711989263093786150963508095954420847520537735393623537739972215595363442853601108617259487605642040971326538636502012659322273554021", + "6550814456826347935563281387160946322655570108442763310723903576818528832148062586220192390957819282527158499632654121624300850297128267646274155604218787902145560010243985129609419084981934735147990829445360225439324975013732910156250000000000/159426006681664623102791401971398064591091843079846700150225294313014111610311297633666473861057237496486848460429122971796228467687228827601795081346396733226257761304088931347660934500700072355521603945742142925486957010327281816874896485032008901", + "6072211597684135388315182314945341275014122968507101817294386523922765233855073461671044080460606164005438875668807304347883514878346135091921377797069859693881376593479553198239132142040129624929006529136848602229356765747070312500000000000/142886281548813439417153462871182647562006893109589602765830540267876092240783490634307422495531440985033933751831646819202336688834835568001879541395063932739927979103255034094367261958940142694578925169638770171157653708729407066877789743862779", + "14789486047967928723075992086094956458643697344700579431704056207484063630702700382571820734098775617279654186977285083638511149664341565444290435634790831222795981680302892968029035786862644943442409489772435575723648071289062500000000/337719930558959340954276424495680394603365373578467411026201060404899792169527610671542030036735200625815223492169353712361507485667869923163122095185780918197912638662712948524636543209086532980176901153809816351875552478978719463204158707", + "51582210040717123543469077505869713980057728212456352823826908082486865908415412203523933049845205544167460778632995677913861429207613060627806438025383533681970520554143981555913119940104246139526367187500000000000/1146466235627428505254687825490439878243011651761151374901177291376672831275253494963730315444428606337856253502008789870818366123805027655466392210961600295462219056895001490710492168613176950733487585505614720902031903", + "42061081121237205065766565123344498779478531266709643331321317966886653261138348435256546261697790816491049902280825758641942281646874779501809447435806077683557300785535230040550231933593750000000/912182104275970049243602281129306754125698979223673948963081437726601609817848099425022017477949349079405920175298643736492125328841729264770060202338713592787655410425367491594160924072529545152533073", + "222211015445906862695375783101505076410616278201248088184842972686476167023642176448973841170288721389308878108622747799329093568390155611580968681760410325527191162109375000000000/4712166670033178489994483507456761869286881738936420174327288378722658144028399473842668383194275138769119645838607430412958133990040601079134434796849191279361742366494585562880637849", + "6295875919434562638461090642209241347417617117473993753923219573088101650617993339860634429295509172164484550641433112154256188079461679279804229736328125000000/130781495738503634697709544354874550335347815115461096631420017465629475069639955050582385268203016041518335426432116164435851138682307626964146969108625652820558219", + "10693579724531316356299056549019573372988588014742878861644593265920413936570510946898007266435618335976867588837757372784614562988281250000000/217932763534152277368778858498221080203011712712859709907897695038537272460706674971219191622001084107303605381091550391683418326719350137186363109", + "1090802350499308035865701763014342607595129155600467841889065206436250309765725318436928264966949927259981632232666015625000/21839456150601733281067098428237758967304787132383624318571231609029923918915951418594412903049446703775791064619071671178423829", + "661670460701374855201297257167949229775497999440308606867610984495522487356523800018525123596191406250000/13030139977462122861113370822389464347975176197036057741722894668119420403827147730527004457069294266507607187", + "4421138769856233037257948364565413841184695461397894284932493976721167564392089843750/85725192247758989909961908497875890943249779545464980775939994271018197738420512211010839", + "70623460558845072091434525248364746349327538976669311523437500000/1349569915197788377766027344913964652720382182480001305235055543544697", + "347558604475200741463381603538990020751953125/6551019873343594952754913234138465735039890550064", + "1122274146401882171630859375/20880467999847912034355032910567" + ], + "worst_index": 23, + "worst_upper": "1122274146401882171630859375/20880467999847912034355032910567", + "eta_lower": "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "uniform_J": 904, + "uniform_loss": "113/150300000000000", + "stages": [ + [ + "3879818253214585644709/1000000000000000000000000", + "27177742502213/17214228922368000000000000000000000000" + ], + [ + "484990950778430498411/125000000000000000000000", + "3044326119868081/2151778615296000000000000000000000000000" + ], + [ + "1939964021819747710329/500000000000000000000000", + "3724288162301617/2151778615296000000000000000000000000000" + ], + [ + "484991005673642953299/125000000000000000000000", + "2605363282347697/2151778615296000000000000000000000000000" + ], + [ + "775985609079228443843/200000000000000000000000", + "2467649450968753/2151778615296000000000000000000000000000" + ], + [ + "1939964022698085106793/500000000000000000000000", + "619193761327037/430355723059200000000000000000000000000" + ], + [ + "3879928045396170325563/1000000000000000000000000", + "4137429656438449/2151778615296000000000000000000000000000" + ] + ], + "cap": "387992804539617/100000000000000000", + "candidate_tested": "193996402269/50000000000000", + "candidate_grid_claim": "387992804531/100000000000000", + "old_cover_forgiven_upper": "1166306370387901/300600000000000000", + "separation": "6457/60120000000000000", + "absolute_gain": "13/100000000000000", + "exact_relative_percent": "650/193996402259" +} diff --git a/research/bit-451-carrier-cover/tensor/SIBLING.json b/research/bit-451-carrier-cover/tensor/SIBLING.json new file mode 100644 index 0000000000..6dbbc966f4 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/SIBLING.json @@ -0,0 +1,80 @@ +{ + "p": 19, + "h": 1804, + "source_lower": { + "root": "931168363234716497/500000000000000000", + "partial": "77056264913503229/40000000000000000", + "full": "23296107543637264889/1000000000000000000" + }, + "capacity_multiplier": "8/5", + "eta_lower": "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "effective_capacity_lower": "188887219560768857828191657200313519/625000000000000000000000000000000000000", + "coefficients": [ + "17633031525141768931840206480819816884249827472724429249954962512304718165385903126540329069994292564783221905571840/258526205295645825016949442069114965234191585136062823685707794557401197074439649295460471997085844674836764405616770893", + "56560536344355689417981859762266899246081872773848384969409735019311122080056830158681216883759909969488122968162479941945920765952/542062041570360703616213931731585002578602267882994361380822858791636412888081556847366884997649020797429692020544896009376682690192503", + "212778238961308247073993771632160288582585306464281339476316615644388380871098544359125526473288615814534805774949442956365216749927621066752/1610913367195849701258975699983271680082629887329212942025536995877639989781684767934125138303249396459699884634488821650804572899397092386419045", + "1984361082391319891067289077597645087600817615637754310080292531318794357699420765699945928364112160697227699121849569198164694970202242738124513456837214208/12892989610967009878297734880300947243802046697572282950935418270766553660191284409697552170434821157750289708011946652483227009038586896869003957990699539176125", + "93714253825447507841724897910485685454389166482808315096407755269336082862720182410774521435615931724598327029438700022329782796893071031115712655304887175508573696/545847697740391511396179982402034028667486463783260419111847557710326386310881427894468897506494673712643026841598540242457962995015879070820138906048796701870667750625", + "1902004554117883364222670457931434884540185503536329703367097447819621825381195884699635508187202017582990667507073103793741870537804871799008944557773186754351589820637807872/10192829364215381921479801197943565939618158645592727947843622032591267636856253726832568500221687574300286383597228702539665923658021387708045168725963880534553581021699929056875", + "14020741177894423038367072176103359577967035731754511789921735085368397407800893701331801211001568938019517515540401249832284037590787204909874494629560865270069082858303201717001972704176/70307394235199396868591763695187042112455968912311422932638709510385942972186972798619706857421486355631464221648768731174977693545637189860733833327974548889726096407873063218405584300296875", + "460765899300104923324993676136426631445959644698503383062445831825320801021388276740393685369502582511232147369327389315889318335810762685962889569916048363454650141049490229882274170349026771512041472/2187405351148864775071984848475584207271546577590003596396681571700597587250795304941346546502239842971182694063523093705563617764433386570297819996273786254112118069066024558960371440575859836725145234375", + "286492188656648772162241672691385909114129701048437274351453431026818549675240432422578352956418987415023267750643740131241161505375941678760854174342360840073487263152024388316078121298945821863125626136278616564/1298563812144846228468325375815607707339080964685916066551171821809435439281606667327608732005492091572280392312717819330808644447358685673758150778813475370397109867425227945885529242685716837536607297705524068359375", + "7030431525080103831900424050757107304519737877698534052289474770919800731872416624653586267214464881738649533374376975904416485459000361964144583918772293020181406284088409246386062681470550050096910664900077218/30620342388237739961396784755808998611588423834932779379441718384140625571347260207995808627938018109785242574908704401470043450496404128297968506800514355727579365618589948815821145785436924700388883517525458984375", + "682564905599506618827892912581616958903705299233039663926152109463033495716272494955561631875972223144987595239303013339475528753541579281116105010839178734215820261067723933262240690975791317782938040625217/2870818599809648633096191332739974474367272435178448477049729336288287141677737443696985843860770689890264702001414847743490850969931520157518337593097535837906819166280442370627900530537401947344910627734375000", + "184103820240905295652493967759001427912174866169549840940859158279263387041082217199713569415862189044658767913267906229457746456667514511522426791187299531096432416684932505136611219421/750714096811363930716165592700666765982826451137058980389349802975227094486034533279759140858535538976900518837757536772069415028884779105838807603687025176041387815954409425100145507812500", + "7606289390974999913713797968229755538693829456715934105859043159608439424126336655161268185843520709199634600672645093208221424737674247579588013811125455837797156701/30166759500678165890408955826965129600590990882906175332244116058835027171076625952501505249689354822113757610721641276972840772437883619891824416734169039760468750000000", + "2788513823296445668851798124721753506864352035155373214322706235881005485062939379421899033451294982323972466750268365001506170884848332688034549393/10785109901308273935975754214255756720340439774209539322263711780226874515276757565429245763562659827067343283055992051015838249911586946679687500000000", + "2279201084347894312774208116240148206520528269413484643569524670579388801029151878486841896384938222698773827437639149434193674894697/8615811239410867160012555168632101883954261137260463521317432603285427833972214307587811554394977616323068491888859245703125000000000000", + "4927655336543169833643509805694624361971957730887825597683793176481600721348555397216133528611469663661660946430286279/18240453433935269269763450832573997661887346196044903520776189862431202563054557036925304411041246658782958984375000000000", + "20925374176787165635409106390527100201764679460436633356030081690686829328574751243061051523993967728859/75972114540423169177074420490242267824071416299814940774838289572093498946728105731201171875000000000000000", + "19162182586814629418333123174520823622565254548250243616334136020974279710715070771550279/68331617562418561848356503608913652602457637797739666878612556175231933593750000000000000000", + "9235784853400236550592123475762017958009649791381936994359807026513649271/32387658196550231837662962709137176706775087509155273437500000000000000000000", + "4122441830686632294424130273013541808122410736825701749/14231771646040098297483155632019042968750000000000000000000" + ], + "peak_index": 19, + "positive_control_p": 20, + "negative_control_unmodified_capacity": true, + "edge_control_counts": [ + 9, + 12, + 15, + 15, + 5, + 0 + ], + "uniform_J": 747, + "uniform_loss": "83/133600000000000", + "stages": [ + "3879818253344635544909/1000000000000000000000000", + "242495475397375880443/62500000000000000000000", + "3879928043770067601257/1000000000000000000000000", + "1939964022759857907657/500000000000000000000000", + "387992804552671440817/100000000000000000000000", + "3879928045526742402541/1000000000000000000000000", + "3879928045526742514519/1000000000000000000000000" + ], + "cap": "0.00387992804552674", + "candidate_grid_claim": "6062387571/1562500000000", + "candidate_tested": "387992804551/100000000000000", + "old_relaxed_ceiling": "388768790152217/100200000000000000", + "separation": "871/100200000000000000", + "absolute_gain": "3/100000000000000", + "exact_percent": "100/129330934847", + "pins": { + "bit": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "old": "41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e", + "flow": "4cb32f6b8e388ecf6ed41b5bbdeeb4539cb40c8424f194974afea58f7e0921e8", + "tensor": "d8bed723957dcd30cc6462562b8e9d5ee33a36891c73916a986459969895993e", + "producer": "85e4a9a88411e1d763e5d6360b1093f8987c267be853c42322aa5e812dc13698", + "ambient": "95cc9e31bc030ec94b04decddcca2d28ee98cfec0ca7803b54666b2b76a5c9ab", + "tree": "750782f6d1cc0a9fff8a768899f3f4c62a7efdf0696d8b5a5d640b1836f5ab72" + }, + "attained_target_floor": { + "tuple_counts": { + "2": 1, + "8": 299, + "64": 151 + }, + "two_adic_exponent": 1804 + } +} diff --git a/research/bit-451-carrier-cover/tensor/SIBLING.md b/research/bit-451-carrier-cover/tensor/SIBLING.md new file mode 100644 index 0000000000..52843efea0 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/SIBLING.md @@ -0,0 +1,31 @@ +# Grouped source complements for the 451-factor binary compiler + +At original h=1804, log power 19 is sufficient with a uniform source-capacity factor 8/5. The complete signed replay admits conditional κ=0.00387992804544, a gain of 0.00000000000003 over the p20 claim 0.00387992804541. This changes the source-complement proof for the same physical paid word. It retains the five #7863 premises, including transfer of the 451-factor physical, precision and nested-seed contracts. + +## Source jobs in the integer compiler + +Write δ=0.003879928046148, t=1−δ, v=451, ambient m=134^v, target floor K=16^v and slab cap J=11^v. All logarithms appearing implicitly in ranks correspond to this fixed original unit. The minimum target K is attained: 224 grade-4, two grade-8 and 225 grade-64 factors have product 2^(2·224+3·2+6·225)=16^451. A separate authenticated control constructs 151 grade-64, 299 grade-8 and one grade-2 target: 151+299+1=451 and 906+897+1=1804. Every grade has positive native multiplicity, so the product is an actual retained target of exactly K; the floor alone would not prove maximality. The retained cutoff keeps the source jobs with k≥K. Every paid position has r≤J0}W_k u(b−e_k) matches a parent paid job batch to correspondingly ranked child target slots. All parents have all paid children present because rK/J. The individual lower factor is at least (K/J)^δ, bounded below by 77056264913503229/40000000000000000. +- If J≤LL the full-family rule includes labels equal to J. Empty partial sets contribute zero on both sides. + +All three lower bounds exceed 8/5. The proof uses the *distribution of source multiplicities* solely for the complement inequality; it does not reallocate exit t-mass. The exit payment remains the complete positive paid path moment from #4480 and the R339 proof. The exact total paid-exit t-mass is bounded by the source t-mass after cancellation of the original strict mixed-unit surplus. The new factor multiplies only the source-side η=t m^(t−1). The algorithm, signed caller and restoration schedule remain those of the original physical construction. [Weighted exit law](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md) + +## Independent finite checks and complete price + +The independent checker tallies the 107,460 paid labels and 20,706 target roles by native rank. It encloses logs by a rational atanh series after dyadic reduction, evaluates exponentials by a positive rational Taylor series with controlled geometric remainder, and rounds each numerical lower guard down to 18 decimal places. A source-edge fixture covers partial, full, equal-boundary and absent batches, including three different paid occurrences of rank one. + +Using the original fully charged ε and q=749/1000, it reconstructs the 452 raw chord atoms and checks all 20 formal upper moments against R339. Univariate moment convolution at consecutive heights and integer Newton differences certify each coefficient ratio below (8/5)η_lower. The largest is j=19. The inherited base guard passes; restoring the old source capacity makes the leading ratio exceed η_upper. The previous power-20 certificate passes on the same independent engine. The least terminal debit is 747/H; one fewer fails the adjacent integer-power test. After cover 1/(H·2^44) and seven strictly priced stages the ordinary cap is 0.00387992804552674; the full tested point is 0.00387992804551. The exported κ=0.00387992804544 exceeds the old relaxed complete ceiling by exactly 871/100200000000000000, and improves the earlier displayed claim by (100/129330934847) percent. The complete consumer binds the unchanged binary word, new cap, tested point and claim in APPLICATION, AUDIT and the binary FINITE artifact; its low-cap and extra-rank-one tampering controls pass. Local scientific replay and independent binding succeeded. Hosted validity must be established on the published commit. + +For scientific reproduction, use the registered package with CPython 3.12 and the standard library. The checker accepts explicit roots to each hash-pinned compiler document, native invoice, predecessor and original tree source; its --help lists them. Its authenticated source closure is recorded by path/purpose in the receipt. The early live public complete comparator at R341 launch was #8026, while the earlier p20 source was already independently reproduced locally; refresh exact public status at submission. + +Jacob Alan Sussman supplied Theorem 1G's Pascal flow, zxv the finite compiler and weighted induction; DreamingOfClouds supplied the retained ambient application, Clear1nsight the complete 451-factor price and independent #7973 review, and earlier #8026 packages the actual paid mean, ordinary conversion, cover and consumer. This contribution changes the source capacity via literal sibling groups. OpenAI Codex assisted the proof and independent verifier. diff --git a/research/bit-451-carrier-cover/tensor/audit.py b/research/bit-451-carrier-cover/tensor/audit.py new file mode 100644 index 0000000000..885ff65a9a --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/audit.py @@ -0,0 +1,138 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Independent binomial atoms and integer binomial-basis coefficient audit.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +from math import comb, lcm +from pathlib import Path +import json +import signal + +BIT = '538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749' +GRID = '69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818' +V, H_SCALE = 451, 1804 + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def source(path, digest): + raw = path.read_bytes() + require(sha256(raw).hexdigest() == digest, path.name) + return json.loads(raw) + + +def paid_bounds(src, old, p): + require(max(map(int, src['native']['paid'])) < 11**2, 'raw support') + require(F(old['mean_upper']) < F(3, 4), 'raw mean') + separation = src['separation'] + uplift = F(separation['paid_uplift_upper'][1]) + alpha = F(separation['three_engine_intervals']['source_1']['alpha'][0]) + eps = F(1, 10**15) + require(0 <= uplift < eps*alpha**V, 'complete paid surplus') + atom_weights = [comb(V,k)*3**k*5**(V-k) for k in range(V+1)] + require(sum(atom_weights) == 8**V, 'unit probability') + require((F(old['mean_upper'])+eps)/(1+eps) < F(3,4), 'complete mean') + mu = [F(1)] + for i in range(1,p+1): + raw_moment = F(sum(w*(2*k)**i for k,w in enumerate(atom_weights)), 8**V*V**i) + clipped = min(F(1), raw_moment) + full = (clipped + eps)/(1+eps) + mu.append(min(full,F(3,4)) if i == 1 else full) + return mu + + +def differences(values): + first = [] + while values: + first.append(values[0]) + values = [b-a for a,b in zip(values,values[1:])] + return first + + +def ratios(mu,p): + # Partial sequence for 6*(7/6+sum X) in integer moment units. + Q = lcm(*(m.denominator for m in mu)) + mu = [int(m*Q) for m in mu] + v = [7**i for i in range(p+1)] + kernel = [[comb(i,k)*6**k*mu[k] for k in range(i+1)] for i in range(p+1)] + nums, dens = [], [] + for g in range(p+1): + v = [sum(coef*v[i-k] for k,coef in enumerate(row)) + for i,row in enumerate(kernel)] + nums.append(F(v[-1], 6**p*Q**(g+1))) + dens.append(F((319+115*g)**p,100**p)) + top,bottom = differences(nums),differences(dens) + require(all(n >= 0 and d > 0 for n,d in zip(top,bottom)), 'Newton signs') + return [n/d for n,d in zip(top,bottom)] + + +def evaluate(src, old, p): + require(1 <= p <= 64, 'single integral power in audit domain') + require(old['p_minimum']==27 and old['h']==H_SCALE and old['uniform_J']==1061, 'prior') + mus = paid_bounds(src,old,p) + coeffs = ratios(mus,p) + eta = F(src['uniform']['eta'][0]) + worst = max(coeffs) + require(worst < eta, 'all-height coefficient capacity') + H,h = src['uniform']['H'],H_SCALE + guard = (1+F((134**V).bit_length()-1,h))**p + require(guard > F(src['uniform']['ambient_power'][1]),'normalized base') + J = ((H+h)**p//h**p).bit_length() + require((h**p << (J-1)) <= (H+h)**p < (h**p << J), 'minimum strict J') + require(F(J,H)*(H+h) > 2*p,'tail derivative') + rate = F(src['separation']['trial'])-F(J,H)-F(1,H*2**44) + require(F(src['cover_and_stock']['bad_surcharge_upper']) < F(1,2**45),'same cover') + rho = F(src['cover_and_stock']['rho']) + prev = F(src['cover_and_stock']['seed']) + stages = [] + for _ in range(7): + ceiling = rate-rho*(rate-prev) + value = F((ceiling*10**24).__floor__()-1,10**24) + require(prev < value < ceiling < rate < rho < 1-ceiling, 'strict ordinary stage') + stages.append([str(value),str(ceiling-value)]) + prev = value + cap = F((prev*10**17).__floor__(),10**17) + tick = F(1,10**14) + claim = (cap//tick-8)*tick + tested = claim+7*tick + old_claim = F(old['candidate_grid_claim']) + old_ceiling = F(src['raw_crossing'][1])-F(old['uniform_loss'])-7*tick + require(old_claim < old_ceiling < claim < tested < cap,'strict complete comparison') + return dict(pins={'BIT-451.json': BIT,'grid/RESULT.json': GRID}, + p=p,h=h,atoms=V+1,moments=list(map(str,mus)), + epsilon_upper='1/1000000000000000',coefficients=list(map(str,coeffs)), + worst_index=coeffs.index(worst),worst_upper=str(worst),eta_lower=str(eta), + uniform_J=J,uniform_loss=str(F(J,H)),stages=stages,cap=str(cap), + candidate_tested=str(tested),candidate_grid_claim=str(claim), + old_cover_forgiven_upper=str(old_ceiling),separation=str(claim-old_ceiling), + absolute_gain=str(claim-old_claim),exact_relative_percent=str(100*(claim-old_claim)/old_claim)) + + +def bind(result, root): + rec = json.loads((root/'receipt.json').read_bytes()) + data = {} + for key in ('APPLICATION.json','AUDIT.json'): + data[key] = source(root/key,rec['output_sha256'][key]) + app,audit = data['APPLICATION.json'],data['AUDIT.json']['outer'] + require(F(result['cap']) == F(rec['cap']) == F(app['binary_ordinary']) == F(audit['pinned_binary_cap']), 'outer cap') + require(F(result['candidate_tested']) == F(rec['tested']) == F(audit['finite_compiler']['tested']), 'outer tested') + require(F(result['candidate_grid_claim']) == F(rec['claim']) == F(app['application']['claim']), 'outer claim') + + +if __name__ == '__main__': + signal.alarm(60) + parser = ArgumentParser(description=__doc__) + for arg in ('root','prior','out'): + parser.add_argument(arg,type=Path) + parser.add_argument('--power',type=int,required=True) + parser.add_argument('--outer',type=Path) + args = parser.parse_args() + result = evaluate(source(args.root/'BIT-451.json',BIT),source(args.prior,GRID),args.power) + if args.outer: + bind(result,args.outer) + args.out.write_text(json.dumps(result,indent=2)+'\n') + print('PASS_BINOMIAL_TENSOR',result['p'],result['uniform_J'],result['candidate_grid_claim']) diff --git a/research/bit-451-carrier-cover/tensor/mean.py b/research/bit-451-carrier-cover/tensor/mean.py new file mode 100644 index 0000000000..38a908e9cb --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/mean.py @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Replay the power-20 ledger at the tightened source mean on the original paid word.""" +from fractions import Fraction as Q +import json +from pathlib import Path +import subprocess +import sys + +HERE = Path(__file__).resolve().parent +GRID = HERE.parent / "grid/RESULT.json" +PRIOR = HERE / "MINIMUM.json" +SCREEN = HERE / "mean_screen.py" +CAP = "0.00387992804549430" +CLAIM = "0.00387992804541" +HASHES = { + "APPLICATION.json": "fd110bf3a3d6ed204f3b312bcd72aedc444806b3821515fd4220b3ba327037f1", + "AUDIT.json": "001afbe125635833bafb8c5f1b313700d25370b5bf4dfc68983f53220197cacd", + "adapter/binary/FINITE.json": "fbac738cff45668dd51bf77f5786bf2dc5539910fe5aa5ee8865bed6e15c15b0", +} + + +def component(base, grid, prior, screen, proof, stages, check): + power, height, mean = 20, 1804, Q(749, 1000) + check((screen["p"], screen["h"], Q(screen["new_mean"]), screen["maximum_coefficients"]) + == (power, height, mean, power + 1), "frozen single power-20 test") + raw, eps = Q(grid["mean_upper"]), Q(grid["epsilon_upper"]) + complete = (raw + eps) / (1 + eps) + check((proof["p"], proof["h"], proof["atoms"], Q(proof["mean"])) == (power, height, 452, mean) + and 0 <= raw <= complete < mean and raw == Q(screen["raw_mean_upper"]) == Q(proof["raw_mean_upper"]) + and eps == Q(screen["full_positive_surcharge_ratio_upper"]) == Q(proof["epsilon_upper"]) + and complete == Q(screen["complete_mean_upper"]) == Q(proof["completed_mean_upper"]), + "admitted paid and completed mean") + lower, upper = map(Q, base["uniform"]["eta"]) + beta = Q(23, 20) + check(prior["p"] == 21 and prior["uniform_J"] == 825 and prior["h"] == height + and (Q(3, 4)/beta)**power == Q(prior["rejected_limit"]) == Q(proof["prior_rejected_limit"]) > upper >= lower + and (mean/beta)**power == Q(screen["limiting_ratio"]) < lower, + "same old limiting control and strict new limiting test") + moments = list(map(Q, screen["moments"])) + rows = screen["coefficient_ratios"] + check(set(rows) == {str(j) for j in range(power + 1)} and len(moments) == power + 1 + and moments[:2] == [1, mean] and moments == list(map(Q, proof["moments"])), + "all 21 upper moments agreed with independent atom reconstruction") + ratios = [Q(rows[str(j)]) for j in range(power + 1)] + peak = max(ratios) + check(ratios == list(map(Q, proof["coefficients"])) and min(ratios) >= 0 + and ratios[-1] == (mean/beta)**power and peak == Q(proof["worst_upper"]) + and ratios.index(peak) == proof["worst_index"] and peak < Q(screen["uniform_lambda"]) < lower, + "all 21 rational coefficients and all-height contraction") + H, J = base["uniform"]["H"], 786 + loss = Q(J, H) + check((height**power << (J-1)) <= (H+height)**power < (height**power << J) + and loss*(H+height) > 2*power and proof["uniform_J"] == J + and Q(proof["uniform_loss"]) == loss, "terminal and tail costs") + stages(base, loss, CAP, check) + cost, claim, old = screen["price"], Q(CLAIM), Q(prior["candidate_grid_claim"]) + ceiling = Q(base["raw_crossing"][1]) - Q(825, H) - Q(7, 10**14) + check(cost["passes"] and cost["J"] == J and Q(cost["cap"]) == Q(CAP) and proof["cap"] == CAP + and list(map(Q, cost["stages"])) == [Q(value) for value, margin in proof["stages"]] + and claim == Q(cost["claim"]) == Q(proof["candidate_grid_claim"]) + and Q(cost["tested"]) == Q(proof["candidate_tested"]) and claim > ceiling > old + and ceiling == Q(cost["old_relaxed_ceiling"]) == Q(proof["old_cover_forgiven_upper"]) + and claim-ceiling == Q(cost["separation"]) == Q(proof["separation"]) + and claim-old == Q(proof["absolute_gain"]) == Q(3, 10**14) + and Q(proof["exact_relative_percent"]) == 100*(claim-old)/old, + "new signed claim separates from the relaxed power-21 ceiling") + return {"installed": CAP, "old_fixed_loss_ceiling": str(ceiling)} + + +def run(source, work, legacy, stages, base): + check, digest = legacy["check"], legacy["digest"] + check(digest(SCREEN) == "6aa3a209952502b341e784c0f4d216d619835f177de695f5aa91d8fed0aa41ba" + and digest(PRIOR) == "2c7692f263da6ccaacb7054471aff9d8a693371e8dcb3b83390d70a7bcff4d10" + and digest(GRID) == "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818" + and digest(HERE / "MEAN.json") == "41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e", + "source-mean screen, power-21 parent and exact grid ledger") + rebuilt = source / "replay/BIT-451.json" + check(digest(rebuilt) == legacy["BASE_RECEIPT"] == digest(source / "BIT-451.json"), "signed BIT control") + primary = work / "mean-tensor-screen.json" + subprocess.run([sys.executable, "-IB", SCREEN, "--bit-source", rebuilt, "--round336-receipt", GRID, + "--round338-receipt", PRIOR, "--previous-screen", HERE / "minimum_screen.py", + "--out", primary], check=True) + proof = json.loads((HERE / "MEAN.json").read_bytes()) + bound = component(base, json.loads(GRID.read_bytes()), json.loads(PRIOR.read_bytes()), + json.loads(primary.read_bytes()), proof, stages, check) + outer = work / "mean-tensor-consumer" + full = legacy["consumer"](source, outer, bound, cap=CAP, expected_claim=CLAIM, expected_hashes=HASHES) + audited = work / "mean-tensor-audit.json" + subprocess.run([sys.executable, "-IB", HERE / "mean_audit.py", source, GRID, PRIOR, audited, + "--outer", outer], check=True) + check(audited.read_bytes() == (HERE / "MEAN.json").read_bytes() + and Q(full["tested"]) == Q(proof["candidate_tested"]) and Q(full["delta"]) == Q(195, 10**14), + "independent tightened-mean proof and complete signed consumer") + print("PASS_COMPLETE_TENSOR_MEAN", f"claim={full['claim']}", f"delta_vs_p21={proof['absolute_gain']}", + f"delta_vs_7863={full['delta']}", flush=True) + return full diff --git a/research/bit-451-carrier-cover/tensor/mean_audit.py b/research/bit-451-carrier-cover/tensor/mean_audit.py new file mode 100644 index 0000000000..4162593879 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/mean_audit.py @@ -0,0 +1,106 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""One fixed mean 749/1000, power 20, original 451-fold paid tensor.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +from math import comb +from pathlib import Path +import json +import signal + +TENSOR_AUDIT = 'd8bed723957dcd30cc6462562b8e9d5ee33a36891c73916a986459969895993e' +MINIMUM = '2c7692f263da6ccaacb7054471aff9d8a693371e8dcb3b83390d70a7bcff4d10' + + +def evaluate(base, bit, grid, old): + require = base['require'] + h, v, p = 1804,451,20 + mean, eps = F(749,1000),F(1,10**15) + require(old['fixed_envelope_minimum_power']==21 and old['uniform_J']==825,'predecessor') + require(max(map(int,bit['native']['paid'])) < 11**2,'bounded original ranks') + raw_mean = F(grid['mean_upper']) + u = F(bit['separation']['paid_uplift_upper'][1]) + a = F(bit['separation']['three_engine_intervals']['source_1']['alpha'][0]) + require(0 <= u < eps*a**v and raw_mean < (raw_mean+eps)/(1+eps) < mean, 'complete mean and split') + # Chord endpoints have raw probability mean/2 of the value two. + prob = mean/2 + l,den = prob.numerator,prob.denominator + masses = [comb(v,k)*l**k*(den-l)**(v-k) for k in range(v+1)] + total = den**v + require(sum(masses)==total,'452-atom unit mass') + mu = [F(1),mean] + for i in range(2,p+1): + moment = F(sum(m*(2*k)**i for k,m in enumerate(masses)),total*v**i) + mu.append((min(1,moment)+eps)/(1+eps)) + coefficients = base['ratios'](mu,p) + lower,upper = map(F,bit['uniform']['eta']) + maximum = max(coefficients) + require(len(coefficients)==p+1 and maximum < lower < upper < F(old['rejected_limit']), 'contraction and old failing control') + require(coefficients[-1]==(mean/F(23,20))**p,'leading ratio') + H = bit['uniform']['H'] + require((1+F((134**v).bit_length()-1,h))**p > F(bit['uniform']['ambient_power'][1]),'ordinary base') + J = ((h+H)**p//h**p).bit_length() + require((h**p << (J-1)) <= (H+h)**p < (h**p << J) and F(J,H)*(h+H)>2*p,'strict carrier and derivative') + rate = F(bit['separation']['trial'])-F(J,H)-F(1,H*2**44) + stock = bit['cover_and_stock'] + require(F(stock['bad_surcharge_upper']) < F(1,2**45),'charged cover') + value, rho = F(stock['seed']), F(stock['rho']) + stages = [] + for _ in range(7): + bound = rate-rho*(rate-value) + new = F((bound*10**24).__floor__()-1,10**24) + require(value < new < bound < rate < rho < 1-bound,'strict stage') + stages.append([str(new),str(bound-new)]) + value = new + units = (value*10**17).__floor__() + cap = F(units,10**17) + tick = F(1,10**14) + claim = (cap//tick-8)*tick + tested = claim + 7*tick + old_claim = F(old['candidate_grid_claim']) + ceiling = F(bit['raw_crossing'][1])-F(old['uniform_loss'])-7*tick + require(old_claim < ceiling < claim < tested < cap,'complete strict comparison') + return dict(pins={'BIT-451.json':base['BIT'],'grid/RESULT.json':base['GRID'], + 'tensor/MINIMUM.json':MINIMUM,'tensor/audit.py':TENSOR_AUDIT}, + p=p,h=h,atoms=v+1,mean=str(mean),raw_mean_upper=str(raw_mean), + completed_mean_upper=str((raw_mean+eps)/(1+eps)),epsilon_upper=str(eps), + moments=list(map(str,mu)),coefficients=list(map(str,coefficients)), + worst_upper=str(maximum),worst_index=coefficients.index(maximum),eta_lower=str(lower), + prior_rejected_limit=old['rejected_limit'],uniform_J=J,uniform_loss=str(F(J,H)), + cap=f'{units//10**17}.{units%10**17:017d}',stages=stages,candidate_tested=str(tested), + candidate_grid_claim=str(claim),old_cover_forgiven_upper=str(ceiling), + separation=str(claim-ceiling),absolute_gain=str(claim-old_claim), + exact_relative_percent=str(100*(claim-old_claim)/old_claim)) + + +def main(): + signal.alarm(60) + parser = ArgumentParser(description=__doc__) + for name in ('root','grid','minimum','out'): + parser.add_argument(name,type=Path) + parser.add_argument('--tensor-audit',type=Path,default=Path(__file__).with_name('audit.py')) + parser.add_argument('--outer',type=Path) + args = parser.parse_args() + code = args.tensor_audit.read_bytes() + if sha256(code).hexdigest()!=TENSOR_AUDIT: + raise ValueError('tensor/audit.py') + base = {'__name__':'pinned_tensor_audit'} + exec(compile(code,'tensor/audit.py','exec'),base) + source,require = base['source'],base['require'] + bit = source(args.root/'BIT-451.json',base['BIT']) + result = evaluate(base,bit,source(args.grid,base['GRID']),source(args.minimum,MINIMUM)) + if args.outer: + base['bind'](result,args.outer) + r = json.loads((args.outer/'receipt.json').read_bytes()) + key = 'adapter/binary/FINITE.json' + finite = source(args.outer/key,r['output_sha256'][key]) + require(finite['ordinary_admitted']==r['cap']==result['cap'] and + finite['word_sha256']==bit['native']['candidate_canonical_sha256'],'actual finite supply') + require({'low_cap_rejected','extra_rank_1_charge_rejected'}.issubset(r['controls']), 'signed consumer negative controls') + args.out.write_text(json.dumps(result,indent=2)+'\n') + print('PASS_COMPLETE_MEAN',result['mean'],result['p'],result['cap'],result['candidate_grid_claim']) + + +if __name__=='__main__': + main() diff --git a/research/bit-451-carrier-cover/tensor/mean_screen.py b/research/bit-451-carrier-cover/tensor/mean_screen.py new file mode 100644 index 0000000000..8e945f3d56 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/mean_screen.py @@ -0,0 +1,129 @@ +"""Prospective R339: one tighter raw/complete mean and exactly one p20 test.""" +import argparse +from fractions import Fraction as F +from hashlib import sha256 +import json +from math import comb +from pathlib import Path +import signal +import sys +from time import monotonic +from types import ModuleType + +P, V, H_SHIFT = 20, 451, 1804 +Q = F(749,1000) +HELPER = "2df053c036c3bf8c3f4f6deccdcdfa3d4821b3c801c6410fe0e377dba6149d23" +BIT = "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749" +R336 = "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818" +R338 = "2c7692f263da6ccaacb7054471aff9d8a693371e8dcb3b83390d70a7bcff4d10" + +def predecessor(path): + raw = path.read_bytes() + if sha256(raw).hexdigest() != HELPER: + raise ValueError("previous screen bytes differ") + module = ModuleType("pinned_minimum") + exec(compile(raw,str(path),"exec"),module.__dict__) + if (module.P,module.H_SHIFT,module.BETA)!=(21,H_SHIFT,F(23,20)): + raise ValueError("previous screen constants differ") + # Both borrowed functions use P as their only variable degree; retain the + # rest of the immutable source and specialize its private module to p=20. + module.P=P + return module + +def screen(args, out): + helper=predecessor(args.previous_screen) + bit=helper.read(args.bit_source,BIT,True) + grid=helper.read(args.round336_receipt,R336) + old=helper.read(args.round338_receipt,R338) + if (old["p"],old["h"],old["uniform_J"],old["pins"]["BIT-451.json"],old["pins"]["grid/RESULT.json"])!=(21,H_SHIFT,825,BIT,R336): + raise ValueError("incorrect predecessor") + paid=bit["native"]["paid"] + if len(paid)!=14 or sum(paid.values())!=107460 or max(map(int,paid))>=11**2: + raise ValueError("raw source support differs") + section=bit["separation"] + if F(section["trial"])!=F("0.003879928046148"): + raise ValueError("wrong source paid tilt") + raw_hi=F(grid["mean_upper"]) + eps=F(grid["epsilon_upper"]) + raw_mass=F(section["three_engine_intervals"]["source_1"]["alpha"][0])**V + if not (eps==F(old["epsilon_upper"]) and 0<=F(section["paid_uplift_upper"][1])<=eps*raw_mass): + raise ValueError("full paid surcharge mismatch") + complete_hi=(raw_hi+eps)/(1+eps) + out.update(raw_mean_upper=str(raw_hi),complete_mean_upper=str(complete_hi), + full_positive_surcharge_ratio_upper=str(eps)) + if not (0<=raw_hi=eta_hi: + return "fixed p20 upper-moment envelope fails at its limiting ratio" + if limit>=eta_lo: + return "p20 limit does not clear directed lower eta; unresolved inside enclosure" + if F(H_SHIFT+(134**V).bit_length()-1,H_SHIFT)**P<=F(bit["uniform"]["ambient_power"][1]): + return "fixed sufficient base guard fails" + out["price"]=helper.price(bit,old) + if not out["price"]["passes"]: + return "fully charged projected p20 price does not clear required p21 ceiling" + # One genuine rational comparison on *raw* factors: 2 times Bernoulli(Q/2). + # After true clipping and completion, only separate moment upper bounds remain. + probability=Q/2 + weights=[comb(V,k)*probability.numerator**k*(probability.denominator-probability.numerator)**(V-k) + for k in range(V+1)] + weight=probability.denominator**V + if sum(weights)!=weight: + raise ValueError("raw factor law mass mismatch") + mu=[F(1),Q] + for k in range(2,P+1): + raw_moment=F(sum(w*(2*i)**k for i,w in enumerate(weights)),weight*V**k) + mu.append((min(F(1),raw_moment)+eps)/(1+eps)) + out["moments"]=[str(x) for x in mu] + ns,ds=helper.newton(mu) + if len(ns)!=P+1 or any(d<=0 for d in ds) or ns[-1]/ds[-1]!=limit: + raise ValueError("inconsistent coefficient sequence") + out["coefficient_ratios"]={} + for j in [P,0]+list(range(1,P)): + out["coefficient_ratios"][str(j)]=str(ns[j]/ds[j]) + if ns[j]>=eta_lo*ds[j]: + return "fixed coefficient test fails; formal all-height and actual law unresolved" + peak=max(n/d for n,d in zip(ns,ds)) + out["uniform_lambda"]=str((peak+eta_lo)/2) + return "all-height component and projected price pass; independent and complete replay required" + +def main(): + parser=argparse.ArgumentParser(description=__doc__) + parser.add_argument("--bit-source",type=Path,required=True) + parser.add_argument("--round336-receipt",type=Path,required=True) + parser.add_argument("--round338-receipt",type=Path,required=True) + parser.add_argument("--previous-screen",type=Path,default=Path(__file__).resolve().parents[1]/"round337"/"next_minimum.py") + parser.add_argument("--out",type=Path,required=True) + args=parser.parse_args() + if sys.version_info[:2]!=(3,12) or sys.implementation.name!="cpython": + parser.error("requires CPython 3.12") + if args.out.exists(): + parser.error("provide a new receipt path") + out={"p":P,"h":H_SHIFT,"new_mean":str(Q),"maximum_coefficients":P+1,"cap_seconds":60, + "input_sha256":{"BIT-451.json":BIT,"round336/independent/receipt.json":R336, + "round338/independent/receipt.json":R338,"round337/next_minimum.py":HELPER}} + def stop(*_): + raise TimeoutError + signal.signal(signal.SIGALRM,stop) + start=monotonic() + signal.alarm(60) + try: + out["decision"]=screen(args,out) + except TimeoutError: + out["decision"]="CAPPED; unvisited inequalities unresolved" + finally: + signal.alarm(0) + out["runner_seconds"]=monotonic()-start + with args.out.open("x") as stream: + json.dump(out,stream,indent=2) + stream.write("\n") + print(out["decision"]) + return 2 if out["decision"].startswith("CAPPED") else 0 + +if __name__=="__main__": + raise SystemExit(main()) diff --git a/research/bit-451-carrier-cover/tensor/minimum.py b/research/bit-451-carrier-cover/tensor/minimum.py new file mode 100644 index 0000000000..a7573dc50e --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/minimum.py @@ -0,0 +1,90 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Verify the minimum integer power for the frozen paid tensor moment envelope.""" +from fractions import Fraction as Q +import json +from pathlib import Path +import runpy +import subprocess +import sys + +HERE = Path(__file__).resolve().parent +PRIOR = HERE/"RESULT.json" +SCREEN = HERE/"minimum_screen.py" +CAP = "0.00387992804546187" +CLAIM = "0.00387992804538" +HASHES = { + "APPLICATION.json": "43a9c277ebd2578286cf9d3147db662684bbdad070ac69613622389c5e721073", + "AUDIT.json": "3e206ace6bd05b3c39c0ec153888282ed70537ce7378d58fe741ceac87eb54c0", + "adapter/binary/FINITE.json": "b3c2dd4a7d8fd5cb34710afd93dbde00b402ec634e71d32c4e817899d4ca0597", +} + + +def component(base, prior, screen, proof, stages, check): + p, h = 21,1804 + check((screen["candidate_p"],screen["limiting_control_p"],screen["h"],screen["shift"]) == (p,p-1,h,0) + and (proof["fixed_envelope_minimum_power"],proof["rejected_power"],proof["h"]) == (p,p-1,h) + and screen["sufficient_base_pass"] and screen["all_positive_p_through_20_excluded_for_this_envelope"], + "candidate and limiting control") + moments = list(map(Q,proof["moments"])) + check(prior["p"] == 23 and prior["h"] == h and prior["uniform_J"] == 904 and len(moments) == p+1 + and moments[:2] == [1,Q(3,4)] and moments == list(map(Q,prior["moments"][:p+1])), + "452-atom reconstruction matches the frozen power-23 moment prefix") + eta_low, eta_high = map(Q,base["uniform"]["eta"]) + q = moments[1]/Q(23,20) + check(0 < q < 1 and q == Q(proof["limiting_base"]) and + q**20 == Q(screen["limit_at_20"]) == Q(proof["rejected_limit"]) > eta_high == Q(proof["eta_upper"]) + and q**21 == Q(screen["limit_at_21"]) < eta_low == Q(proof["eta_lower"]), + "power-20 limit and all smaller positive integers") + ratios = list(map(Q,screen["initial_coefficient_ratios"])) + peak = max(ratios) + check(len(ratios) == p+1 and ratios == list(map(Q,proof["coefficients"])) and + min(ratios) >= 0 and peak == Q(proof["worst_upper"]) and + ratios.index(peak) == proof["worst_index"] and peak < Q(screen["uniform_lambda"]) < eta_low, + "22 signed outer coefficients and all-height strict contraction") + H = base["uniform"]["H"] + J = 825 + loss = Q(J,H) + check((h**p << (J-1)) <= (H+h)**p < (h**p << J) and loss*(H+h)>2*p + and J == proof["uniform_J"] and loss == Q(proof["uniform_loss"]), "full terminal and tail") + stages(base,loss,CAP,check) + cost = screen["price"] + claim, old = Q(CLAIM),Q(prior["candidate_grid_claim"]) + ceiling = Q(base["raw_crossing"][1]) - Q(904,H) - Q(7,10**14) + check(cost["passes"] and cost["J"] == J and Q(cost["cap"]) == Q(CAP) == Q(proof["cap"]) + and Q(cost["claim"]) == claim == Q(proof["candidate_grid_claim"]) + and Q(cost["tested"]) == Q(proof["candidate_tested"]) and claim > ceiling > old + and Q(cost["old_relaxed_ceiling"]) == ceiling == Q(proof["old_cover_forgiven_upper"]) + and Q(cost["separation"]) == claim-ceiling == Q(proof["separation"]), + "complete signed separation from power-23 envelope") + check(claim-old == Q(proof["absolute_gain"]) == Q(7,10**14) + and 100*(claim-old)/old == Q(proof["exact_relative_percent"]), "exact predecessor increase") + return {"installed":CAP,"old_fixed_loss_ceiling":str(ceiling)} + + +def run(source, work, legacy, stages, base): + check, digest = legacy["check"],legacy["digest"] + check(digest(PRIOR) == "288e194853bb736973600eb51da2983414679a185629c30f769d701f4c55e811" + and digest(SCREEN) == "2df053c036c3bf8c3f4f6deccdcdfa3d4821b3c801c6410fe0e377dba6149d23", + "frozen power-23 predecessor and minimum-power screen") + rebuilt = source/"replay/BIT-451.json" + check(digest(rebuilt) == legacy["BASE_RECEIPT"] == digest(source/"BIT-451.json"),"signed BIT control") + primary = work/"minimum-tensor-screen.json" + subprocess.run([sys.executable,"-IB",SCREEN,"--bit-source",rebuilt,"--round337-receipt",PRIOR, + "--out",primary],check=True) + proof = json.loads((HERE/"MINIMUM.json").read_bytes()) + bound = component(base,json.loads(PRIOR.read_bytes()),json.loads(primary.read_bytes()),proof,stages,check) + outer = work/"minimum-tensor-consumer" + full = legacy["consumer"](source,outer,bound,cap=CAP,expected_claim=CLAIM,expected_hashes=HASHES) + audited = work/"minimum-tensor-audit.json" + subprocess.run([sys.executable,"-IB",HERE/"minimum_audit.py",source,HERE.parent/"grid/RESULT.json",PRIOR, + audited,"--outer",outer],check=True) + check(json.loads(audited.read_bytes()) == proof and Q(full["tested"]) == Q(proof["candidate_tested"]) + and Q(full["delta"]) == Q(192,10**14), "independent minimum and signed consumer") + print("PASS_COMPLETE_TENSOR_MINIMUM",f"claim={full['claim']}",f"delta_vs_p23={proof['absolute_gain']}", + f"delta_vs_7863={full['delta']}",flush=True) + return full + + +if __name__ == "__main__": + # The package driver runs the power-23 positive control first. + runpy.run_path(str(HERE/"verify.py"),run_name="__main__") diff --git a/research/bit-451-carrier-cover/tensor/minimum_audit.py b/research/bit-451-carrier-cover/tensor/minimum_audit.py new file mode 100644 index 0000000000..366884742e --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/minimum_audit.py @@ -0,0 +1,59 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Independently price p=21 and reject p<=20 on the one fixed tensor envelope.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +from pathlib import Path +import json +import signal + +AUDIT = 'd8bed723957dcd30cc6462562b8e9d5ee33a36891c73916a986459969895993e' +TENSOR = '288e194853bb736973600eb51da2983414679a185629c30f769d701f4c55e811' + + +def main(): + signal.alarm(60) + cli = ArgumentParser(description=__doc__) + for key in ('root','grid','tensor','out'): + cli.add_argument(key,type=Path) + cli.add_argument('--outer',type=Path) + cli.add_argument('--tensor-audit',type=Path,default=Path(__file__).with_name('audit.py')) + args = cli.parse_args() + # Execute exactly the verified bytes, without resolving imports through the checkout. + code = args.tensor_audit.read_bytes() + if sha256(code).hexdigest() != AUDIT: + raise ValueError('tensor/audit.py source hash') + old_module = {'__name__': 'pinned_tensor_audit'} + exec(compile(code,'tensor/audit.py','exec'), old_module) + source, require = old_module['source'], old_module['require'] + bit = source(args.root/'BIT-451.json', old_module['BIT']) + grid = source(args.grid, old_module['GRID']) + prior = source(args.tensor, TENSOR) + require(prior['p']==23 and prior['h']==1804 and prior['uniform_J']==904,'R337 prior') + good = old_module['evaluate'](bit,grid,21) + require(good['moments']==prior['moments'][:22],'same formal envelope') + lower, upper = map(F,bit['uniform']['eta']) + leading_base = F(good['moments'][1])/F(23,20) + bad = leading_base**20 + require(0 < leading_base < 1 and bad > upper >= lower > F(good['worst_upper']), + 'p20 limit and p21 all-height capacity') + require(F(good['coefficients'][-1]) == leading_base**21, 'leading coefficient index') + tick = F(1,10**14) + claim = F(good['candidate_grid_claim']) + old_claim = F(prior['candidate_grid_claim']) + ceiling = F(bit['raw_crossing'][1])-F(prior['uniform_loss'])-7*tick + require(claim>ceiling>old_claim, 'strict previous-complete ceiling') + good.update(pins={**good['pins'],'tensor/audit.py':AUDIT,'tensor/RESULT.json':TENSOR}, + old_cover_forgiven_upper=str(ceiling),separation=str(claim-ceiling), + absolute_gain=str(claim-old_claim),exact_relative_percent=str(100*(claim-old_claim)/old_claim), + rejected_power=20,rejected_limit=str(bad),eta_upper=str(upper), + limiting_base=str(leading_base),fixed_envelope_minimum_power=21) + if args.outer: + old_module['bind'](good,args.outer) + args.out.write_text(json.dumps(good,indent=2)+'\n') + print('PASS_TENSOR_INTEGER_POWER',good['fixed_envelope_minimum_power'],good['uniform_J'],good['candidate_grid_claim']) + + +if __name__ == '__main__': + main() diff --git a/research/bit-451-carrier-cover/tensor/minimum_screen.py b/research/bit-451-carrier-cover/tensor/minimum_screen.py new file mode 100644 index 0000000000..b05db48ce9 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/minimum_screen.py @@ -0,0 +1,155 @@ +"""R338 prospective: control p20 by its limit, price and screen only p21.""" +import argparse +from fractions import Fraction as F +from hashlib import sha256 +import json +from math import comb, factorial +from pathlib import Path +import signal +import sys +import tarfile +from time import monotonic + +BIT = "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749" +OLD = "288e194853bb736973600eb51da2983414679a185629c30f769d701f4c55e811" +P, H_SHIFT, HEIGHTS = 21, 1804, 64 +A, B, BETA = F(7,6), F(319,100), F(23,20) + +def read(path, digest, archive=False): + if archive and path.suffix != ".json": + with tarfile.open(path,"r:*") as bundle: + with bundle.extractfile("package-sanitized/BIT-451.json") as stream: + blob=stream.read() + else: + blob=path.read_bytes() + if sha256(blob).hexdigest()!=digest: + raise ValueError("input fingerprint mismatch: "+path.name) + return json.loads(blob) + +def price(data, previous): + H=data["uniform"]["H"] + num, den = (H+H_SHIFT)**P,H_SHIFT**P + J=(num//den).bit_length() + if not (den<<(J-1)) <= num < (den<hi + out.update(eta_lower=str(lo),eta_upper=str(hi),limit_at_20=str(limit20), + all_positive_p_through_20_excluded_for_this_envelope=excluded) + limit21=q**P + out.update(limit_at_21=str(limit21), + sufficient_base_pass=F(H_SHIFT+(134**451).bit_length()-1,H_SHIFT)**P>F(data["uniform"]["ambient_power"][1])) + if not out["sufficient_base_pass"]: + return "fixed sufficient base guard fails at p21" + if limit21>=hi: + return "p21 formal envelope fails at its limit" + if limit21>=lo: + return "p21 limiting comparison unresolved inside eta enclosure" + out["price"]=price(data,prior) + if not out["price"]["passes"]: + return "p21 complete projected price fails the required old-ceiling separation" + ns,ds=newton(mu) + if not (all(n>=0 for n in ns) and all(d>0 for d in ds) and ns[-1]/ds[-1]==limit21): + raise ValueError("inconsistent Newton coefficients") + out["initial_coefficient_ratios"]=[str(n/d) for n,d in zip(ns,ds)] + # All differences are shifted together; these are the same 22 coefficients. + largest_prefix=F(0) + for g in range(HEIGHTS): + point=ns[0]/ds[0] + peak=max(n/d for n,d in zip(ns,ds)) + out["visited"].append({"g":g,"ratio":str(point),"largest_coefficient_ratio":str(peak)}) + if point>=hi: + return "p21 formal envelope fails at a finite height, including eta enclosure" + uniform=max(largest_prefix,peak) + if uniform=eps_required>=0 and F(sep["trial"])==F("0.003879928046148") + and 0 <= F(prior["mean_upper"]) < F(3,4) + and (F(prior["mean_upper"])+eps)/(1+eps) <= F(3,4)): + raise ValueError("raw support, full uplift, tilt or mean certificate mismatch") + if not (prior["p_minimum"]==27 and int(prior["uniform_J"])==1061 and int(prior["h"])==H0): + raise ValueError("wrong predecessor comparison") + receipt["base_guard"] = F(H0+(134**V).bit_length()-1,H0)**P > F(bit["uniform"]["ambient_power"][1]) + receipt["limiting_upper"] = str((F(3,4)/SLOPE)**P) + if not receipt["base_guard"] or F(receipt["limiting_upper"]) >= eta: + return "fixed sufficient base or limiting comparison fails" + # Price the invariant terminal, cover and seven-stage costs before building moments. + horizon = bit["uniform"]["H"] + loss = (((H0+horizon)**P)//(H0**P)).bit_length() + if F(loss,horizon)*(horizon+H0) <= 2*P: + return "terminal carrier conversion unresolved" + covered = F(sep["trial"])-F(loss,horizon)-F(1,horizon*2**44) + rho = F(bit["cover_and_stock"]["rho"]) + rate = F(bit["cover_and_stock"]["seed"]) + for _ in range(7): + upper = (1-rho)*covered+rho*rate + step = F(int(upper*10**24)-1,10**24) + if not (rate < step < upper < covered and step < min(rho,1-rho)): + return "ordinary stage could not be admitted" + rate=step + tick=F(1,10**14) + cap = F(int(rate*10**17),10**17) + claim = (cap//tick-8)*tick + ceiling = F(bit["raw_crossing"][1])-F(int(prior["uniform_J"]),horizon)-7*tick + receipt["prospective_price"] = {"loss":loss,"cap":str(cap),"claim":str(claim), + "old_relaxed_ceiling":str(ceiling),"separation":str(claim-ceiling)} + if claim <= ceiling or claim+7*tick >= cap: + return "single-case directed price fails required separation" + stir = [[0]*(P+1) for _ in range(P+1)] + stir[0][0] = 1 + fall = [1] + for n in range(1,P+1): + fall.append(fall[-1]*(V+1-n)) + for j in range(1,n+1): + stir[n][j] = j*stir[n-1][j]+stir[n-1][j-1] + mu = [F(1)] + for k in range(1,P+1): + m = F(2,V)**k * sum(stir[k][j]*fall[j]*F(3,8)**j for j in range(1,k+1)) + mu.append((min(1,m)+eps)/(1+eps)) + mu[1] = min(mu[1],F(3,4)) + receipt["moments"] = [str(x) for x in mu] + shift = [sum(comb(i,k)*A**(i-k)*mu[k] for k in range(i+1)) for i in range(P+1)] + bell = [[F(0)]*(P+1) for _ in range(P+1)] + bell[0][0]=1 + for n in range(1,P+1): + for j in range(1,n+1): + bell[n][j] = sum(comb(n-1,i-1)*mu[i]*bell[n-i][j-1] for i in range(1,n-j+2)) + receipt["ratios"] = {} + for j in [0,P]+list(range(1,P)): + num = sum(comb(P,i)*shift[P-i]*bell[i][j] for i in range(j,P+1)) + den = sum(comb(P,i)*B**(P-i)*SLOPE**i*stir[i][j] for i in range(j,P+1)) + receipt["ratios"][str(j)] = str(num/den) + if num >= eta*den: + return "single coefficient certificate fails; all-height and native feasibility unresolved" + return "all-height component and projected price pass; independent proof and complete consumer required" + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--bit-source",type=Path,required=True) + parser.add_argument("--round336-receipt",type=Path,required=True) + parser.add_argument("--out",type=Path,required=True) + args=parser.parse_args() + if sys.version_info[:2]!=(3,12) or sys.implementation.name!="cpython": + parser.error("CPython 3.12 required") + if args.out.exists(): + parser.error("provide a new output path") + receipt={"p":P,"h":H0,"cap_seconds":60,"max_coefficients":P+1, + "source_sha256":{"BIT-451.json":BIT_PIN,"round336/independent/receipt.json":PRIOR_PIN}} + def stop(*_): + raise TimeoutError("60-second cap") + signal.signal(signal.SIGALRM,stop) + start=monotonic() + signal.alarm(60) + try: + receipt["decision"]=screen(pinned(args.bit_source,BIT_PIN,True),pinned(args.round336_receipt,PRIOR_PIN),receipt) + except TimeoutError: + receipt["decision"]="CAPPED; unresolved" + finally: + signal.alarm(0) + receipt["elapsed_seconds"]=monotonic()-start + with args.out.open("x") as stream: + json.dump(receipt,stream,indent=2) + stream.write("\n") + print(receipt["decision"]) + return 2 if receipt["decision"].startswith("CAPPED") else 0 + +if __name__=="__main__": + raise SystemExit(main()) diff --git a/research/bit-451-carrier-cover/tensor/sibling.py b/research/bit-451-carrier-cover/tensor/sibling.py new file mode 100644 index 0000000000..7efd30d2e2 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/sibling.py @@ -0,0 +1,168 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Rebuild the source-capacity and complete signed power-19 certificate.""" +from decimal import Decimal, localcontext +from fractions import Fraction as F +import json +from pathlib import Path +import subprocess +import sys + +HERE = Path(__file__).resolve().parent +ARCHITECTURE = HERE.parents[2] / "research/kappa-rebuild/architecture" +NATIVE_PROOF = Path("inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/PROOF.md") +FLOW = ARCHITECTURE / "FINITE-PRECOMPILATION.md" +TREE = ARCHITECTURE / "sources/Sussman-563b4e6/research/record-track/programs/theorem-1g/tree_flow.py" +CAP = "0.00387992804552674" +CLAIM = "0.00387992804544" +V, P = 451, 19 +HASHES = { + "APPLICATION.json": "8d5a5fa30f79b5f39fabc2bb320f38ac291761c0012de5d22540a142b1d767af", + "AUDIT.json": "e8dbc8054ecd54bb6d089346cf84220499d8683fd2043b0650817ad0bd0dd806", + "adapter/SOURCE-LOCK.json": "b46b919292e1a1907345056b6925f5f1400d45650e2f0f610779a07163bb64ee", + "adapter/binary/WORD.json.gz": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9", + "adapter/binary/FINITE.json": "288ac59e27bf7703ffda5b8b3eb91a0f94da2e0d0227e066ae35a73f58c924b6", +} + + +def check(condition, message): + if not condition: + raise ValueError(message) + + +def logarithm(integer): + ans = Decimal(integer).ln() + return F(ans.next_minus()), F(ans.next_plus()) + + +def exp_bound(value, upper): + arg = Decimal(value.numerator)/Decimal(value.denominator) + if upper: + return F(arg.next_plus().exp().next_plus()) + return F(arg.next_minus().exp().next_minus()) + + +def fixed_lower(value): + return F((value*10**22).__floor__(),10**22) + + +def profile(data,t): + one = sum(int(k)*w for k,w in data.items()) + moment_hi = sum(w*(exp_bound(t*logarithm(int(k))[1],True) if int(k)>1 else 1) + for k,w in data.items()) + return one,moment_hi + + +def source_guards(bit): + sep = bit['separation'] + delta = F(sep['trial']) + t = 1-delta + check(0 < t < 1,'trial slope') + with localcontext() as ctx: + ctx.prec = 76 + targets, target_upper = profile(bit['native']['targets'],t) + paid, paid_upper = profile(bit['native']['paid'],t) + loss = F(sep['discarded_target_upper'][1]) + eps = F(1,10**15) + alpha = F(sep['three_engine_intervals']['source_1']['alpha'][0]) + check(0 < F(sep['paid_uplift_upper'][1]) < eps*alpha**V,'paid uplift') + root_guard = (F(targets)/target_upper)**V / exp_bound(V*delta*logarithm(16)[1],True)-loss + partial_guard = exp_bound(V*delta*(logarithm(16)[0]-logarithm(11)[1]),False) + full_guard = (F(paid)/paid_upper)**V/(1+eps) + return {k:fixed_lower(x) for k,x in [('root',root_guard),('partial',partial_guard),('full',full_guard)]} + + +def toy(): + # Includes a mixed full family and a partially admitted family. Pascal-label + # multiplicity is per paid label, including three distinct rank-one calls. + ranks = [1,1,1,4,6] + floor,J,k,m=10,6,12,7 + counts=[] + for L in (F(7,2),F(6),F(11),F(12)): + admitted=[r for r in ranks if r <= L and L < k] + counts.append(m*len(admitted)) + if L= F(floor,J) for r in admitted),'partial sibling root') + elif L 0 for rank in counts) and sum(counts.values()) == V + and {int(k):v for k,v in proof["attained_target_floor"]["tuple_counts"].items()} == counts + and proof["attained_target_floor"]["two_adic_exponent"] == 4*V and 64**151*8**299*2 == 16**V + and 64**150*8**300*2 < 16**V, "exact retained productive minimum and below-cutoff control") + guards = source_guards(base) + expected = {key:F(value) for key,value in proof["source_lower"].items()} + check({key:F((value*10**18).__floor__(),10**18) for key,value in guards.items()} == expected + and min(expected.values()) > F(8,5) == F(proof["capacity_multiplier"]), + "root, partial sibling and full sibling source lower bounds") + moments = list(map(F, old["moments"][:P+1])) + lo, hi = map(F,base["uniform"]["eta"]) + nums, dens = exact["newton"](moments) + check(len(dens) == P+1 and min(dens) > 0 and min(nums) >= 0, "all coefficient signs") + ratios = [n/d for n,d in zip(nums,dens,strict=True)] + peak = max(ratios) + check(ratios == list(map(F,proof["coefficients"])) and ratios.index(peak) == proof["peak_index"] + and ratios[-1] == (F(749,1000)/F(23,20))**P and hi < peak < F(8,5)*lo + and F(8,5)*lo == F(proof["effective_capacity_lower"]) and proof["negative_control_unmodified_capacity"], + "power 19 fails the old capacity and clears every corrected coefficient") + h = 1804 + check((1+F((134**V).bit_length()-1,h))**P > F(base["uniform"]["ambient_power"][1]), "normalized base guard") + H = base["uniform"]["H"] + cost = exact["price"](base,old) + check(cost["J"] == proof["uniform_J"] == 747 and F(cost["J"],H) == F(proof["uniform_loss"]) + and cost["stages"] == proof["stages"] and F(cost["cap"]) == F(CAP) and proof["cap"] == CAP + and cost["passes"] and F(cost["claim"]) == F(CLAIM) == F(proof["candidate_grid_claim"]) + and F(cost["tested"]) == F(proof["candidate_tested"]), "strict terminal, tail and seven ordinary stages") + stages(base,F(747,H),CAP,check) + ceiling = F(base["raw_crossing"][1]) - F(old["uniform_loss"]) - F(7,10**14) + check(ceiling == F(cost["old_relaxed_ceiling"]) == F(proof["old_relaxed_ceiling"]) + and F(CLAIM)-ceiling == F(proof["separation"]) > 0 + and F(CLAIM)-F(old["candidate_grid_claim"]) == F(proof["absolute_gain"]) == F(3,10**14), + "strict separation from the old complete power-20 ceiling") + return {"installed":CAP,"old_fixed_loss_ceiling":str(ceiling)} + + +def run(source, work, legacy, stages, base): + digest = legacy["digest"] + checked = HERE / "SIBLING.json" + check(digest(checked) == "42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd" + and digest(HERE / "minimum_screen.py") == "2df053c036c3bf8c3f4f6deccdcdfa3d4821b3c801c6410fe0e377dba6149d23", + "independent receipt and primary coefficient and price implementation") + proof = json.loads(checked.read_bytes()) + sources = {"bit":source/"BIT-451.json","old":HERE/"MEAN.json","flow":FLOW,"tree":TREE, + "producer":source/"PROOF.md","ambient":source/NATIVE_PROOF,"tensor":HERE/"audit.py"} + check({key:digest(path) for key,path in sources.items()} == proof["pins"] + and digest(source/"replay/BIT-451.json") == proof["pins"]["bit"], "frozen source and original BIT replay") + bound = component(base,json.loads(sources["old"].read_bytes()),proof,stages) + outer = work/"sibling-tensor-consumer" + full = legacy["consumer"](source,outer,bound,cap=CAP,expected_claim=CLAIM,expected_hashes=HASHES) + audited = work/"sibling-independent.json" + args = [sys.executable,"-IB",HERE/"sibling_audit.py"] + for key,path in sources.items(): + args.extend(["--"+key,path]) + subprocess.run([*args,"--out",audited,"--outer",outer],check=True) + result = json.loads(audited.read_bytes()) + binding = result.pop("outer_binding") + check(result == proof and all(binding["output_sha256"][key] == value for key,value in HASHES.items()) + and set(binding["controls"]) == {"low_cap_rejected","extra_rank_1_charge_rejected"} + and F(full["tested"]) == F(proof["candidate_tested"]) and F(full["delta"]) == F(198,10**14), + "complete independent source complement and signed result") + print("PASS_COMPLETE_SIBLING_CAPACITY",f"claim={full['claim']}",f"delta_vs_p20={proof['absolute_gain']}", + f"delta_vs_7863={full['delta']}",flush=True) + return full diff --git a/research/bit-451-carrier-cover/tensor/sibling_audit.py b/research/bit-451-carrier-cover/tensor/sibling_audit.py new file mode 100644 index 0000000000..6e0cc4a7b2 --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/sibling_audit.py @@ -0,0 +1,155 @@ +"""R341: exact rational source complement and paid-recipient audit, CPython 3.12.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from functools import cache +from hashlib import sha256 +import json +from math import comb +from pathlib import Path +import signal +from time import monotonic + +PINS={'bit':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749','old':'41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e', + 'flow':'4cb32f6b8e388ecf6ed41b5bbdeeb4539cb40c8424f194974afea58f7e0921e8','tensor':'d8bed723957dcd30cc6462562b8e9d5ee33a36891c73916a986459969895993e', + 'producer':'85e4a9a88411e1d763e5d6360b1093f8987c267be853c42322aa5e812dc13698','ambient':'95cc9e31bc030ec94b04decddcca2d28ee98cfec0ca7803b54666b2b76a5c9ab', + 'tree':'750782f6d1cc0a9fff8a768899f3f4c62a7efdf0696d8b5a5d640b1836f5ab72'} +def require(x,msg): + if not x: raise ValueError(msg) + +def blob(path,key): + b=path.read_bytes() + require(sha256(b).hexdigest()==PINS[key],key) + return b + +def ln_series(z): + x=z; v=F(0) + for i in range(36): + v+=2*x/(2*i+1) + x*=z*z + return v,v+2*x/(73*(1-z*z)) + +@cache +def logint(n): + k=n.bit_length()-1 + a,b=ln_series(F(1,3)) + c,d=ln_series(F(n-2**k,n+2**k)) + return F((k*a+c)*2**80//1,2**80),F(-(-(k*b+d)*2**80//1),2**80) + +def exp(x): + require(0<=x<10,'Taylor range') + s=F(1); v=F(1) + for k in range(1,46): + v=v*x/k;s+=v + return s,s+v*x/46/(1-x/47) + +def tally(hist,delta): + one=sum(int(r)*n for r,n in hist.items()) + high=F(0) + for r,n in hist.items(): + v=int(r)/exp(delta*logint(int(r))[0])[0] + high+=n*F(-(-v*2**70//1),2**70) + return one,high + +def controls(): + # For an explicit source DAG, count child target slots against the literal + # rank-matched parent demand separately for each occurrence (incl aliases). + ranks=[1,1,1,4,6];target=[(10,2),(12,1)];signals=[] + for L in map(F,[3,4,6,9,10,12]): + declared=[(i,k,w) for i,r in enumerate(ranks) for k,w in target if r<=LL: continue + for k,w in target: + supplied=w if k<=L else 0 + if w-supplied: independent.append((i,k,w-supplied)) + require(declared==independent,'exact target/sibling multiplicity') + signals.append(sum(w for _,_,w in independent)) + require(signals==[9,12,15,15,5,0],'cut boundary rank fixture') + require(len(set(ranks))!=len(ranks),'duplicate labels matter') + return signals + +def arithmetic(bit,old,base): + v,h,p=451,1804,19 + require((old['p'],old['uniform_J'],old['h'])==(20,786,h),'predecessor control') + C=F(bit['separation']['trial']);eps=F(old['epsilon_upper']) + require(C==F('.003879928046148') and F(old['mean'])==F(749,1000),'slope') + s=bit['separation'];loss=F(s['discarded_target_upper'][1]);alpha=F(s['three_engine_intervals']['source_1']['alpha'][0]) + require(0multiplier,'all three source cases') + q=F(749,1000);prob=q/2 + weights=[comb(v,i)*749**i*1251**(v-i) for i in range(v+1)] + require(sum(weights)==2000**v and prob==F(749,2000),'atom law') + mus=[F(1),q] + for k in range(2,p+1): + m=F(sum(w*(2*i)**k for i,w in enumerate(weights)),2000**v*v**k) + mus.append((min(1,m)+eps)/(1+eps)) + require(mus==list(map(F,old['moments'][:p+1])),'independent paid-moment reconstruction') + coeff=base['ratios'](mus,p) + l,u=map(F,bit['uniform']['eta']) + require(len(coeff)==20 and max(coeff)u,'negative: removing source gain breaks capacity') + positive=base['ratios'](list(map(F,old['moments'])),20) + require(positive==list(map(F,old['coefficients'])) and max(positive)F(bit['uniform']['ambient_power'][1]),'unmodified base') + H=bit['uniform']['H']; high=(h+H)**p;den=h**p;J=0 + while (den<2*p,'terminal and adjacent control') + cover=C-F(J,H)-F(1,H*2**44);stock=bit['cover_and_stock'];rho=F(stock['rho']) + require(F(stock['bad_surcharge_upper'])0,'attained floor uses a present target') + minimum*=k**count + require(sum(tuple_counts.values())==451 and minimum==16**451,'attained minimum for root maximality') + result['attained_target_floor']={'tuple_counts':{str(k):v for k,v in tuple_counts.items()},'two_adic_exponent':1804} + if a.outer: + base['bind'](result,a.outer) + rec=json.loads((a.outer/'receipt.json').read_bytes()); k='adapter/binary/FINITE.json' + f=base['source'](a.outer/k,rec['output_sha256'][k]) + require(f['word_sha256']==bit['native']['candidate_canonical_sha256'] and f['ordinary_admitted']==rec['cap']==result['cap'],'actual signed supplier') + require({'low_cap_rejected','extra_rank_1_charge_rejected'}.issubset(rec['controls']),'signed negative controls') + result['outer_binding']={'output_sha256':rec['output_sha256'],'controls':rec['controls']} + with a.out.open('x') as out:json.dump(result,out,indent=2);out.write('\n') + print('PASS',result['source_lower'],result['cap'],result['candidate_grid_claim'],result['absolute_gain']) +if __name__=='__main__':main() diff --git a/research/bit-451-carrier-cover/tensor/verify.py b/research/bit-451-carrier-cover/tensor/verify.py new file mode 100644 index 0000000000..f70f7a13ac --- /dev/null +++ b/research/bit-451-carrier-cover/tensor/verify.py @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Verify one paid-tensor moment certificate and its complete signed consumer.""" +from fractions import Fraction as Q +import json +import os +from pathlib import Path +import runpy +import subprocess +import sys +import tempfile + +HERE = Path(__file__).resolve().parent +PACKAGE = HERE.parent +PRIOR = PACKAGE/"grid/RESULT.json" +SCREEN = HERE/"screen.py" +CAP = "0.00387992804539617" +CLAIM = "0.00387992804531" +HASHES = { + "APPLICATION.json": "4b1b348ef8fcb0fb3ea4d9c0224925b1448516c9f8aceb2181ca82713c3159c9", + "AUDIT.json": "6a2addc5684f3370f640bfcd84316f90d399fed1909b050e123b21204090a8c6", + "adapter/binary/FINITE.json": "3608f5f0eabbddb5e3a76b9be2e54d21500838872e845ec935471a6f9624cce4", +} + + +def component(base, prior, screen, proof, stages, check): + p, h = 23,1804 + check((screen["p"],screen["h"],screen["max_coefficients"]) == (p,h,p+1) + and (proof["p"],proof["h"],proof["atoms"]) == (p,h,452) + and screen["base_guard"] and screen["decision"].startswith("all-height component and projected price pass"), + "one finished power-23 screen and independent atom expansion") + eps = Q(proof["epsilon_upper"]) + check(eps == Q(prior["epsilon_upper"]) == Q(1,10**15), "full paid-completion allowance") + moments = list(map(Q,screen["moments"])) + check(len(moments) == p+1 and moments[1] == Q(3,4) and + moments == list(map(Q,proof["moments"])), "24 Stirling moments match the direct 452-atom expansion") + ratios = [Q(screen["ratios"][str(i)]) for i in range(p+1)] + audit_ratios = list(map(Q,proof["coefficients"])) + eta = Q(base["uniform"]["eta"][0]) + check(len(ratios) == len(screen["ratios"]) == len(audit_ratios) and eta == Q(proof["eta_lower"]) + and ratios == audit_ratios and all(0 <= ratio < eta for ratio in ratios), + "all 24 Bell and direct Newton coefficients") + check(audit_ratios.index(max(audit_ratios)) == proof["worst_index"] == 23 + and max(audit_ratios) == Q(proof["worst_upper"]), "worst coefficient") + H = base["uniform"]["H"] + J = 904 + loss = Q(J,H) + check((h**p << (J-1)) <= (h+H)**p < (h**p << J) and loss*(h+H) > 2*p + and proof["uniform_J"] == J and Q(proof["uniform_loss"]) == loss, "minimum loss and all widths") + stages(base,loss,CAP,check) + ceiling = Q(base["raw_crossing"][1]) - Q(1061,H) - Q(7,10**14) + cost = screen["prospective_price"] + claim, previous = Q(CLAIM),Q(prior["candidate_grid_claim"]) + check(Q(prior["uniform_loss"]) == Q(1061,H) and claim > ceiling > previous + and J == cost["loss"] and Q(CAP) == Q(cost["cap"]) == Q(proof["cap"]) + and claim == Q(cost["claim"]) == Q(proof["candidate_grid_claim"]) + and ceiling == Q(cost["old_relaxed_ceiling"]) == Q(proof["old_cover_forgiven_upper"]) + and claim-ceiling == Q(cost["separation"]) == Q(proof["separation"]), + "full comparison with prior grid price ceiling") + check(claim-previous == Q(proof["absolute_gain"]) == Q(13,10**14) + and 100*(claim-previous)/previous == Q(proof["exact_relative_percent"]), "increment over grid") + return {"installed": CAP,"old_fixed_loss_ceiling": str(ceiling)} + + +def run(source, work, legacy, stages, base): + check, digest = legacy["check"],legacy["digest"] + check(digest(PRIOR) == "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818", + "complete grid result at #8026 18718411") + check(digest(SCREEN) == "140849072beff7d547e8b4642dcb918b8d39c4a47e68151ccde065a80160fa66", + "sealed paid-tensor screen") + rebuilt = source/"replay/BIT-451.json" + check(digest(rebuilt) == legacy["BASE_RECEIPT"] == digest(source/"BIT-451.json"), "signed BIT control") + primary = work/"tensor-primary.json" + subprocess.run([sys.executable,"-IB",SCREEN,"--bit-source",rebuilt, + "--round336-receipt",PRIOR,"--out",primary],check=True) + proof = json.loads((HERE/"RESULT.json").read_bytes()) + bound = component(base,json.loads(PRIOR.read_bytes()),json.loads(primary.read_bytes()),proof,stages,check) + outer = work/"tensor-consumer" + full = legacy["consumer"](source,outer,bound,cap=CAP,expected_claim=CLAIM,expected_hashes=HASHES) + audited = work/"tensor-audit.json" + subprocess.run([sys.executable,"-IB",HERE/"audit.py",source,PRIOR,audited,"--power","23","--outer",outer], + check=True) + check(json.loads(audited.read_bytes()) == proof and Q(full["tested"]) == Q(proof["candidate_tested"]) + and Q(full["delta"]) == Q(185,10**14), "independent atom audit and complete signed application") + print("PASS_COMPLETE_TENSOR_MOMENTS",f"claim={full['claim']}",f"delta_vs_grid={proof['absolute_gain']}", + f"delta_vs_7863={full['delta']}",flush=True) + return full + + +def main(): + if sys.version_info[:2] != (3,12) or not __debug__: + raise RuntimeError("use CPython 3.12 with assertions") + for name in ("OPENBLAS_NUM_THREADS","OMP_NUM_THREADS","MKL_NUM_THREADS","VECLIB_MAXIMUM_THREADS"): + os.environ[name] = "1" + legacy = runpy.run_path(str(PACKAGE/"verify.py")) + stages = runpy.run_path(str(PACKAGE/"verify_majorant.py"))["seven_stage_bound"] + with tempfile.TemporaryDirectory() as directory: + work = Path(directory) + source = legacy["extract"](work) + subprocess.run([sys.executable,"-IB",source/"replay_451.py"],cwd=source,check=True) + rebuilt = source/"replay/BIT-451.json" + legacy["check"](legacy["digest"](rebuilt) == legacy["BASE_RECEIPT"], "original signed supplier reconstruction") + base = json.loads(rebuilt.read_bytes()) + legacy["supplier"](base) + run(source,work,legacy,stages,base) + runpy.run_path(str(HERE/"minimum.py"))["run"](source,work,legacy,stages,base) + runpy.run_path(str(HERE/"mean.py"))["run"](source,work,legacy,stages,base) + runpy.run_path(str(HERE/"sibling.py"))["run"](source,work,legacy,stages,base) + + +if __name__ == "__main__": + main() diff --git a/research/bit-451-carrier-cover/verify.py b/research/bit-451-carrier-cover/verify.py new file mode 100644 index 0000000000..fb49e33c7f --- /dev/null +++ b/research/bit-451-carrier-cover/verify.py @@ -0,0 +1,173 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Rebuild the credited binary supplier, sharpen its cover proof and run the rational consumer.""" +from fractions import Fraction as Q +from hashlib import sha256 +import importlib.util +import json +import os +from pathlib import Path, PurePosixPath +import subprocess +import sys +import tarfile +import tempfile + +HERE = Path(__file__).resolve().parent +ARCHIVE = "5f9d9c378a1bddccb2e42ac6453716fa950f19bd71f6181a9606f5eb68b022b3" +BASE_RECEIPT = "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749" +BRIDGE = "inputs/framework/research/p104-shared-native-helper-splits/retained/compiler/bit-audit/retained/DELAYED-COVER-BRIDGE.md" +CAP = "0.00387992804364799" + + +def digest(path): + return sha256(path.read_bytes()).hexdigest() + + +def check(condition, why): + if not condition: + raise ValueError(why) + + +def extract(work): + archive = HERE / "source7863.tar.gz" + check(digest(archive) == ARCHIVE, "predecessor archive") + with tarfile.open(archive) as tar: + members = tar.getmembers() + check(len({m.name for m in members}) == len(members), "duplicate archive path") + check(sum(m.size for m in members) < 2**29, "archive size") + for m in members: + p = PurePosixPath(m.name) + check(not p.is_absolute() and '..' not in p.parts and p.parts[0] == "package-sanitized" + and (m.isdir() or m.isfile()), "unexpected archive member") + tar.extractall(work, filter="data") + root = work / "package-sanitized" + seen = set() + for line in (root / "SHA256SUMS").read_text().splitlines(): + checksum, key = line.split(" ", 1) + check(key not in seen and digest(root / key) == checksum, key) + seen.add(key) + check(len(seen) == 202, "predecessor file census") + return root + + +def supplier(base): + check(base["raw_crossing"] == ["0.003879928046154","0.003879928046155"], "native raw interval") + H = base["uniform"]["H"] + old = base["cover_and_stock"] + check(H == 1202400000000000 and base["uniform"]["N"] == f"2^{H}", "physical carrier") + check(old["q_condition"] == "odd prime q > 2^52*N^5 avoiding frozen finite catalogue witnesses", + "physical prime contract") + check(base["native"]["native_calls"] == 36 and base["native"]["owned_nonzero_CLEAR"] == 3554 + and base["native"]["dual_nonzero_retirement"] == 3554, "signed binary program") + bad = Q(old["bad_surcharge_upper"]) + check(bad == Q(64,2**52), "full bad-class bound") + d = Q(1, H*2**44) + # For x>0, exp(x)>1+x; ln(2)=integral_1^2 1/t dt>1/2. + good_inverse_lower = 1 + H*d/2 + multiplier = (1+bad) / good_inverse_lower + check(multiplier < 1 and 1+bad > 1, "strict complete covered moment and zero-loss control") + uniform = Q(base["separation"]["trial"]) - Q(base["uniform"]["uniform_loss"]) + check(uniform - Q(old["loss"]) == Q(old["covered"]), "old cover control") + covered = uniform-d + previous = Q(old["seed"]) + rho = Q(old["rho"]) + stages = [] + for old_stage in old["stages"]: + bound = (1-rho)*covered+rho*previous + accepted = Q((bound*10**24).__floor__()-1,10**24) + check(previous < accepted < bound < covered and accepted < rho < 1-accepted, "strict ordinary stage") + check(accepted > Q(old_stage["claim"]), "old-stage control") + stages.append(str(accepted)) + previous = accepted + check(len(stages) == 7 and previous > Q(CAP), "final installed cap") + old_limit = Q(base["raw_crossing"][1])-Q(base["uniform"]["uniform_loss"])-Q(old["loss"]) + return dict(loss=str(d), complete_multiplier_upper=str(multiplier), covered=str(covered), + stages=stages,installed=CAP, old_fixed_loss_ceiling=str(old_limit)) + + +COVER_HASHES = { + "APPLICATION.json": "e0a28d730e5a63070221a170c3e5e10abdf4ed552d67fbd47d1f4ec157b736ad", + "AUDIT.json": "51963b588680e3150b97b156a461c9002368c40752b73bc4a6b03f94aca97c0b", +} + + +def consumer(root, result, component, *, cap=CAP, expected_claim="0.00387992804356", + expected_hashes=COVER_HASHES): + check(component["installed"] == cap, "supplier-consumer binding") + source = root/"source-7830/review/independent.py" + check(digest(source) == "a2366b60cb4cd535fbcbce2a834cdf2ed4b9daba3e7025c7403e6abcd598a7ca", "consumer verifier") + spec = importlib.util.spec_from_file_location("credited_review",source) + r = importlib.util.module_from_spec(spec) + sys.modules[spec.name] = r + spec.loader.exec_module(r) + inputs = root/"inputs" + check(r.authenticate(inputs,False) == (20,127), "consumer input lock") + r.ORDINARY = component["installed"] + result.mkdir() + app,audit = r.replay_application(inputs,result) + r.compare_fixed_application(inputs,app,audit) + r.rational_orientations(inputs,app) + paid,target,_ = r.native_rational(app) + r.directed_invoice(paid,target,r.RATIONAL_BRACKET,r.TARGET) + claim = app["application"]["claim"] + tested = audit["outer"]["finite_compiler"]["tested"] + checks = audit["outer"]["outer_checks"] + r.rational_outer(app,audit,paid,target,Q(cap),dict(claim=claim,sharp_outer=checks)) + check((checks["strict_count"],checks["functional_count"]) == (54,4), "complete outer conditions") + before = json.loads((root/"consumer-replay/CONSUMER.json").read_bytes()) + check(app["premises"] == before["premises"] == audit["premises"], "premises and consumer") + check(Q(claim) > Q(component["old_fixed_loss_ceiling"]), "separation from old finite envelope") + check(Q(tested)-Q(claim)==Q(7,10**14) and Q(tested) Q(237, 2), "carrier and tail") + cap = seven_stage_bound(base, loss, CAP, check) + ceiling = Q(base["raw_crossing"][1]) - Q(uniform["uniform_loss"]) - Q(7, 10**14) + check(Q(CLAIM) - ceiling == Q(5, 10**15), "separation from predecessor proof ceiling") + return {"installed": cap, "old_fixed_loss_ceiling": str(ceiling)} + + +def normalized_bound(base, check, *, scale, numerator, old_numerator, cap, claim): + uniform = base["uniform"] + carrier_log = uniform["H"] + power = 60 + paid, productive, ambient = 11**451, 16**451, 134**451 + check(paid**15 < productive**13, "normalized exit") + check(2**(2*scale)*paid**15 <= ambient**13, "normalized shift") + log_ambient_lower = ambient.bit_length() - 1 + check(Q(uniform["ambient_power"][1]) < Q(scale + log_ambient_lower, scale)**power, + "normalized base endpoint for all ranks") + check(Q(13, 15)**power < Q(uniform["eta"][0]), "normalized capacity") + loss = Q(numerator, carrier_log) + check((scale+carrier_log)**power < scale**power * 2**numerator and + (scale+carrier_log)*loss > 2*power, "normalized terminal and tail") + seven_stage_bound(base, loss, cap, check) + ceiling = Q(base["raw_crossing"][1]) - Q(old_numerator, carrier_log) - Q(7, 10**14) + check(Q(claim) > ceiling, "separation from predecessor majorant ceiling") + return {"installed": cap, "old_fixed_loss_ceiling": str(ceiling)} + + +def seven_stage_bound(base, loss, cap, check): + h = base["uniform"]["H"] + covered = Q(base["separation"]["trial"]) - loss - Q(1, h*2**44) + stock = base["cover_and_stock"] + rho, previous = Q(stock["rho"]), Q(stock["seed"]) + for _ in range(7): + upper = (1-rho)*covered + rho*previous + current = Q((upper*10**24).__floor__()-1, 10**24) + check(previous < current < upper and current < min(rho, 1-rho), "ordinary stage") + previous = current + check(Q(cap) < previous < covered, "seven-stage service") + return cap + + +def verify_application(source, work, legacy, component, claim, hashes, script, receipt): + check = legacy["check"] + out = work/"consumer" + work.mkdir() + full = legacy["consumer"](source, out, component, cap=component["installed"], + expected_claim=claim, expected_hashes=hashes) + subprocess.run([sys.executable, "-IB", script, source, work/"audit.json", + "--outer", out], check=True) + check(json.loads((work/"audit.json").read_bytes()) == json.loads(receipt.read_bytes()), + "independent bound on actual outer replay") + return full + + +def main(): + old = runpy.run_path(str(HERE / "verify.py")) + check, digest = old["check"], old["digest"] + check(sys.version_info[:2] == (3, 12) and __debug__, "use CPython 3.12 with assertions") + for key in ("OPENBLAS_NUM_THREADS", "OMP_NUM_THREADS", "MKL_NUM_THREADS", "VECLIB_MAXIMUM_THREADS"): + os.environ[key] = "1" + check(digest(HERE/"RESULT.json") == "b6dd0af1fa0d0a5b619eb199ca12116219debcd6127f5425ce4da8bf9f72fb71", + "prior #8026 complete result") + with tempfile.TemporaryDirectory() as tmp: + work = Path(tmp) + source = old["extract"](work) + subprocess.run([sys.executable, "-IB", source/"replay_451.py"], cwd=source, check=True) + rebuilt = source/"replay/BIT-451.json" + check(digest(rebuilt) == old["BASE_RECEIPT"] == digest(source/"BIT-451.json"), "supplier reconstruction") + base = json.loads(rebuilt.read_bytes()) + old["supplier"](base) + full = verify_application(source, work/"fractional", old, ordinary_bound(base, check), CLAIM, + HASHES, HERE/"majorant_audit.py", HERE/"MAJORANT.json") + change = Q(full["claim"]) - PRIOR + check(change == Q(3, 10**14), "gain over previous campaign proof") + print("PASS_COMPLETE_FRACTIONAL_MAJORANT", f"claim={full['claim']}", f"delta_vs_8026={change}", + f"delta_vs_7863={full['delta']}", flush=True) + check(digest(HERE/"MAJORANT.json") == "79a7363692faf04428b6cf08967426f9364bc87196e236e59b857a784a34f92f", + "fractional predecessor receipt") + check(digest(HERE/"normalized/SHIFTED-LOG.md") == + "04eba2e0a2a6cdd4ee512254142cbe45e647a73b66ad67b2c1c0a62e0883238a", "normalized theorem") + normalized_component = normalized_bound(base, check, scale=1024, numerator=2406, old_numerator=2969, + cap=NORMALIZED_CAP, claim=NORMALIZED_CLAIM) + normalized = verify_application(source, work/"normalized", old, normalized_component, + NORMALIZED_CLAIM, NORMALIZED_HASHES, HERE/"normalized/audit.py", + HERE/"normalized/RESULT.json") + increment = Q(normalized["claim"]) - Q(full["claim"]) + check(increment == Q(47, 10**14), "gain over complete fractional-majorant replay") + print("PASS_COMPLETE_NORMALIZED_MAJORANT", f"claim={normalized['claim']}", + f"delta_vs_fractional={increment}", f"delta_vs_7863={normalized['delta']}", flush=True) + check(digest(HERE/"normalized/RESULT.json") == + "bb3f7384b8c17a396256c32d78cf8efa6a0270bb82988fa694a950f17b7f0bed", "normalized predecessor") + # The exact shift inequality bounds the entire positive integer scale family. + maximum_scale = (((134**451)**13 // (11**451)**15).bit_length()-1)//2 + carrier_log = base["uniform"]["H"] + minimal_numerator = ((maximum_scale+carrier_log)**60 // maximum_scale**60).bit_length() + check((maximum_scale, minimal_numerator) == (9012, 2218), "integer family endpoints") + endpoint_component = normalized_bound(base, check, scale=maximum_scale, numerator=minimal_numerator, + old_numerator=2406, cap=ENDPOINT_CAP, claim=ENDPOINT_CLAIM) + endpoint = verify_application(source, work/"endpoint", old, endpoint_component, ENDPOINT_CLAIM, + ENDPOINT_HASHES, HERE/"normalized/endpoint.py", HERE/"normalized/ENDPOINT.json") + change = Q(endpoint["claim"]) - Q(normalized["claim"]) + check(change == Q(16, 10**14), "endpoint gain over the preceding complete application") + print("PASS_COMPLETE_INTEGER_SCALE_ENDPOINT", f"claim={endpoint['claim']}", + f"delta_vs_normalized={change}", f"delta_vs_7863={endpoint['delta']}", flush=True) + + +if __name__ == "__main__": + main() diff --git a/research/bit-451-carrier-cover/weighted/LOG-MOMENTS.md b/research/bit-451-carrier-cover/weighted/LOG-MOMENTS.md new file mode 100644 index 0000000000..b75cf923df --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/LOG-MOMENTS.md @@ -0,0 +1,284 @@ +# Retaining concentration of the paid tensor's log ranks + +The mean-only certificate in [WEIGHTED-EXITS.md](WEIGHTED-EXITS.md) replaces +one completed unit's log rank by a Bernoulli random variable. A tensor unit +has substantially more structure: before splitting, its normalized log rank +is an average of independent raw log ranks. The following finite rational +certificate retains that concentration, bounds the effect of every paid +completion, and uses the same inherited integer compiler. + +This is a bound on normalized paid rank-one leaves, conditional on the +source native and finite compiler contracts. No new native operation, +unpaid completion, overlapping-rank compiler or selected-frontier change +is asserted. All probability laws below describe finite weighted +inventories; they do not replace whole integer jobs by fractional inputs. + +## Raw tensor moments + +Fix `01`, a positive integer `v`, a positive support bound `L`, +and a raw paid inventory with positive `t`-moment `P_t`. Under its +probability law `P_r*r^t/P_t`, put + +``` +Y = ln(r)/ln(c), +0<=Y<=L, E[Y]<=q0, 0<=q0<=L. +``` + +For a chronological `v`-fold product, let `J=c^v`. The normalized raw +tensor log rank is exactly + +``` +X_raw = ln(R)/ln(J) = (Y_1+...+Y_v)/v, +``` + +with independent copies of the raw law. The raw product's paid `t`-moment +is `A_raw=P_t^v`. + +The convex chord bound replaces each `Y_i` by `L` times a Bernoulli random +variable of mean `q0/L`. For every positive integer `i`, this gives + +``` +E[X_raw^i] <= M_i, +M_i = (L/v)^i * sum_(j=0..i) S(i,j)*(q0/L)^j*(v)_j. (1) +``` + +Here `S(i,j)` are Stirling numbers of the second kind, and `(v)_j` are +integer falling factorials, zero for `j>v`. Equation (1) follows either by +expanding the binomial moment or by applying convex order one variable at +a time to the nonnegative convex function `x^i`. When `L,q0` are rational, +all `M_i` are rational. + +## Splitting, full paid completion and normalization + +Split every original paid rank above `J`, and also split every paid +completion into positive ranks at most `J`. Let the final paid `t`-moment +be `Q_t`. Define its actual excess by + +``` +E_actual = Q_t-A_raw >= 0, +x = E_actual/A_raw. +``` + +The excess contains the increase in original-paid moment from splitting +**plus the full paid moment of completion calls**. It does not subtract +productive target-completion credit. Suppose a proved paid bound gives + +``` +0<=x<=epsilon. +``` + +For the final completed paid law, put `X=ln(r)/ln(J)`, so `0<=X<=1`. +Its `i`-th moment has the rational upper bound + +``` +E[X^i] <= mu_i := min(1, (M_i+epsilon)/(1+epsilon)), (2) +mu_0 := 1. +``` + +The denominator in (2) needs a capped reference law. It is not justified +merely by overcounting an unnormalized numerator. For an original tensor +call `R>J`, use the reference value +`min(ln(R)/ln(J),1)^i=1`. If its split paid moment is `Q_R`, the split +weighted `i`-moment is at most `Q_R`, so its increase over this capped +reference is at most `Q_R-R^t`. For `R<=J`, the original call is unchanged. +Each full completion contributes at most its full paid moment, because +its final log ranks also lie in `[0,1]`. Thus, with + +``` +m_i = E[min(X_raw,1)^i] <= min(1,M_i), +``` + +the final weighted numerator is at most `A_raw*m_i+E_actual`. +Dividing by the actual total `A_raw+E_actual` gives +`E[X^i]<=(m_i+x)/(1+x)`. For `m_i<=1`, this expression increases with +`x`, since its derivative is `(1-m_i)/(1+x)^2>=0`. Substitution of +`x<=epsilon` and `m_i<=min(1,M_i)` proves (2). The cap is an auxiliary +proof device, not a change to the native program. + +A convenient paid excess bound from this package is + +``` +epsilon >= (splitting_coefficient*gamma_u^v + 2*delta^v)/alpha^v. +``` + +The second term is the predecessor's full completion bound. A sharper +proved full completion bound may replace it. The net completion tax used +to prove a superpotential cannot replace it. + +## Bell-polynomial exit certificate + +The separated compiler's exact exit law is proved in WEIGHTED-EXITS.md: +at height `G`, it consists of `G+1` independent copies of the completed +paid log law. Take a positive integer `p`, positive scale `a=h*ln(2)`, +and rational bounds + +``` +a/ln(J) <= A_bar, +(a+ln(m))/ln(J) >= B_under, +ln(k_min)/ln(J) >= beta > 0. +``` + +Require `B_under>0` as well. + +The ambient `m` and productive minimum `k_min` in these displays belong +to the **completed tensor unit**, not the raw unit. + +For `0<=k<=n<=p`, construct partial exponential Bell polynomials from +the upper moments in (2): + +``` +Bell(0,0) = 1, +Bell(n,0) = 0 for n>0, +Bell(0,k) = 0 for k>0, +Bell(n,k) = sum_(i=1..n-k+1) + binom(n-1,i-1)*mu_i*Bell(n-i,k-1). +``` + +They have nonnegative coefficients in the `mu_i`. Also set + +``` +Shift(r) = sum_(i=0..r) binom(r,i)*A_bar^(r-i)*mu_i. +``` + +For `0<=j<=p`, form + +``` +C_j = sum_(i=j..p) binom(p,i)*Shift(p-i)*Bell(i,j), +D_j = sum_(i=j..p) binom(p,i)*S(i,j)*B_under^(p-i)*beta^i. +``` + +All `D_j` are positive. If `C_j<=lambda*D_j` for every `j`, then + +``` +E[(a+ln(exit))^p] <= lambda*(a+ln(n))^p (3) +``` + +at every integer compiler rank `n>=m`. + +To prove (3), write `u=G`, separate one completed paid variable `X_0`, +and expand the moments of the other `u` independent variables. For their +actual moments, the standard finite identity is + +``` +E[(X_1+...+X_u)^i] + = sum_(j=0..i) (u)_j*Bell_actual(i,j). +``` + +It follows directly by grouping the indices in the expanded power by +their equality partition; each occupied index contributes its corresponding +moment. Replacing actual moments by the upper bounds `mu_i` preserves the +inequality because all coefficients are nonnegative. Expanding +`(A_bar+X_0+...+X_u)^p` therefore gives at most +`sum_j C_j*(u)_j`. Expanding `(B_under+beta*u)^p` gives exactly +`sum_j D_j*(u)_j`. + +The falling factorials are nonnegative for every integer `u>=0`. +Coefficient domination proves the desired polynomial comparison. +Finally, `ln(n)>=ln(m)+G*ln(k_min)` implies +`(a+ln(n))/ln(J)>=B_under+beta*u`, completing the proof. + +This general coefficient test also accepts other rigorously proved upper +log moments; the raw chord bound (1) is one reusable source of them. + +## Uniform-rank consequence + +As in WEIGHTED-EXITS.md, it is enough that + +``` +lambda < eta := t*m^(t-1), +m^(1-t) <= (1+ln(m)/a)^p. +``` + +The first inequality pays exits by source complements. The second covers +the entire ordinary base range by the monotone endpoint argument in +SHIFTED-LOG.md. Strong induction gives + +``` +L(n) <= n^t*(1+ln(n)/a)^p. +``` + +For `N=2^H` and desired exponent `z>t`, the final exact guard is + +``` +(h+H)^p < h^p*2^((z-t)*H). +``` + +Neither the pointwise maximum-exit contraction nor the Bernoulli +mean-only certificate is needed when (3) is used instead. + +## Balanced native4453 diagnostic + +The package's balanced construction uses the unchanged raw paid profile +and the exact parameters + +``` +C=90037/30000000, t=1-C, +v=260, c=20, b=21, u=171/1000, +m=153^260, J=20^260, k_min>=21^260. +``` + +A rational log-moment witness is + +``` +q0=431/500, L=3/2, epsilon=1/100000, +p=24, h=3900=15*v, +A_bar=139/40, +B_under=347/100+1679/1000=5149/1000, +beta=127/125. +``` + +The raw maximum 72 satisfies `72^2<20^3`, proving `Y<=3/2`. The raw +mean and full paid excess need their separate profile-bound interval +checks. The full paid relative excess is below +`0.0000014474915191, the required integer charge is nondecreasing in p, so 1257 is also the minimum over every admissible positive integer p for this envelope. Its tail has positive derivative because (1257/H)·(H+h)>64 and ln2>1/2. + +The actual covered rate retains d=1/(H·2^44) and C=0.003879928046148. Seven strictly interior ordinary stages from the unchanged completed seed at ρ=1/250 give the installed cap 0.00387992804510259. The complete replay at tested 0.00387992804509 supports conditional κ=0.00387992804502. Relative to the #8026 predecessor's 0.00387992804459, the gain is 0.00000000000043 or exactly (4300/387992804459)%. The native upper endpoint 0.003879928046155 minus the predecessor's 1768/H uniform loss and the consumer's seven ticks gives a generous complete upper, even after forgiving all predecessor cover loss and stage rounding. The new claim exceeds it by 121861/300600000000000000. The improvement is in the proved charged bound for the same algorithm. The original physical 451-factor transfer, stock, nested seed, precision, tape and analytic recovery remain required. + +**Credit and replay.** zxv supplied #4480's weighted-exit distribution and moment theorem, and Ali Romman supplied #5351's fixed-law comparison. Jacob Alan Sussman supplied the integer compiler. Clear1nsight's #7863 supplier, #7973 audit and the earlier #8026 results supply the original paid graph, independent replay, and charged cover. This test pins their literal data and determines the exact minimum integer power for the specified envelope. OpenAI Codex assisted with proof, implementation and replay. [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#5351](https://github.com/CrocSwap/integer-mult-bounds/pull/5351) · [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) + +From the published clean checkout, run the complete registered package with CPython 3.12: + +```sh +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The independent endpoint audit accepts `audit.py PRODUCER_ROOT PRIOR_WEIGHTED_RESULT OUT --power 32 --shift 0 --failed-height 5 [--outer CONSUMER_DIR]`. With outer binding, it verifies the cap, tested and published points, and both scientific artifact hashes. Its deterministic component receipt is the same in either mode. diff --git a/research/bit-451-carrier-cover/weighted/PROOF.md b/research/bit-451-carrier-cover/weighted/PROOF.md new file mode 100644 index 0000000000..f34e11a938 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/PROOF.md @@ -0,0 +1,28 @@ +# Actual weighted exits of the 451-factor word + +The fixed #7863 compiler satisfies zxv's #4480 weighted-exit law on its *post-split* paid positions. At p=45, h=1804 and q=3/4 the certificate improves the complete conditional bound on the original word. Only its analysis changes. The general weighted theorem, Bernoulli bound and coefficient method are zxv's. [Weighted theorem, immutable head](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md#L15-L62) + +**Multiplicity.** Write A=134^451, J=11^451, k=16^451. The minimum k is attained by 224 rank-four, two rank-eight and 225 rank-64 productive factors, since the base-two exponent is 2·224+3·2+6·225=4·451. After splitting, each actual recursive paid position, including repetitions of a rank, has one ordered label and rank at most JJ, the increase in the t-weighted log numerator is at most (D_R−R^t)ln J. With the inherited tilt u≥1−t, D_R≤(R/J+1)J^t≤2R J^(t−1)≤2R^(t+u)J^(−u). Thus #7863's *full* paid uplift upper bounds the aggregate positive splitting debit, and also its log-numerator charge. For a failed productive tuple below k, #7863 specializes both of its endpoints as an owned zero, retaining every interior job. It does not complete that target with another recursive paid job. Its loss is debited to the productive moment. The tagged zeros, slab adapters, routes and retirement remain in the separately charged physical stock and ordinary accounting. Another mechanism adding paid completions would require their full moment here. [Single cutoff, zero endpoints and strict separation](https://github.com/CrocSwap/integer-mult-bounds/blob/b3e4412fe01f07dc58305616fabf96345f49a781/research/p104-bit-451-factor-schedule/PROOF.md#L15-L40) · [Paid and target accounting](https://github.com/CrocSwap/integer-mult-bounds/blob/87fbf4f7b35b0f18ab12b5767775a9a424cf0b15/research/p104-mixed-rank-supplier/bit_certificate.py#L250-L295) + +Let P_t,T_t be the original one-factor moments, α=P_t/T_t. Before subdivision, the whole 451-fold paid denominator is P_t^451. Its raw mean of ln R/ln J equals (Σ P_r r^t ln r)/(P_t ln 11) by expansion of independent ordered labels. The final denominator is at least P_t^451. The published paid uplift U is normalized by T_t^451; hence U/α^451 bounds the additional paid mass relative to the raw paid denominator. Use the **upper** endpoint of U and the **lower** endpoint of α; an upper α would underestimate the correction. The independent calculation uses upward-rounded positive log numerators and downward-rounded denominators and finds combined mean ≤0.748475924225778<3/4. Replacing the exact mean by the larger rational q=3/4 in the increasing, convex Bernoulli comparison preserves the inequality. No Bernoulli sampling is performed. [Source endpoints and surcharge](https://github.com/CrocSwap/integer-mult-bounds/blob/b3e4412fe01f07dc58305616fabf96345f49a781/research/p104-bit-451-factor-schedule/replay_451.py#L102-L145) · [zxv's paid-mean bound](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md#L185-L225) + +**Coefficient and full-rate check.** Set the shift to a=1804 ln 2. The three rational logarithmic bounds 7/6, 319/100 and 23/20 follow by integer comparisons 2^24≤11^7, (16·134)^100≥11^319 and 16^20≥11^23. At each g from 0 to 45 the independent engine evaluates the exact numerator E[(7/6+Binomial(g+1,3/4))^45] by direct binomial summation, and the denominator (319/100+23g/20)^45. Both are polynomials of degree at most 45 by the finite-moment identity. Their forward differences at zero are j! times their falling-factorial coefficients. All denominator differences are positive. The maximum of the 46 ratios occurs at j=7 and is below 0.000010552, less than the pinned η lower bound 0.000188887219560768857828191657200313519. Both endpoints pass. Replacing q by one fails the leading coefficient. This gives a bound at every G, not merely the evaluated integer ranks. The #4480 normalized base/intermediate complement proof is unchanged. The integer comparison at fixed H gives minimum budget H·e=1768 at this h,p, with the large-width tail ensured by e(H+h)>2p. + +Keep #8026's actual-cover proof, q-adic prime, opaque stock, nested seed, ownership, precision and recovery premises exactly as before (its physical prime is distinct from the Bernoulli parameter q). Seven strict ordinary stages support 0.00387992804467760 after truncation. The consumer's published point is 0.00387992804459. This exceeds the old complete ceiling 0.003879928046155−2218/H−7·10^−14 even after granting all predecessor cover and stage loss. Exact separation is 105103/300600000000000000. The gain over #8026's 0.00387992804422 is 0.00000000000037, or (1850/193996402211)%. This improves the charged proof on the same physical word without changing the raw crossing. The original conditional 451-factor transfer is still required, including the complete old stage and branch costs. No actual astronomical stock is claimed constructed. + +Clear1nsight supplied #7863 and its #7973 independent supplier audit; Jacob Alan Sussman supplied the integer lockstep flow, and the ambient-cap compiler credits the prior construction and specialization authors. zxv's #4480 theorem source is Git blob `c0f6469d31d070e3ab73664b35633305f21fc5d6`, SHA-256 `28e0308f315a583282291fa01998d53a874b4b7e3073cacc3ddbb38c5a7f66c7`. #7863's retained BIT receipt hash is `538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749`; the predecessor endpoint receipt is `ff9cf4ca87fa4480daac4c93aa1fa5744f5eec97385c7bae203ca2d3d874d0d9`. OpenAI Codex assisted with this finite application and independent proof audit. + +## Clean replay + +From a clean repository checkout with CPython 3.12, run the complete weighted application, or the registered package that also checks the earlier proof stages: + +```sh +python3.12 -IB research/bit-451-carrier-cover/weighted/verify.py +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The independent audit accepts `audit.py PRODUCER_ROOT PRIOR_ENDPOINT_JSON WEIGHTED_EXITS_MD OUT.json [--outer CONSUMER_DIR]`. Its deterministic output is identical with and without the optional full application/audit binding check. diff --git a/research/bit-451-carrier-cover/weighted/RESULT.json b/research/bit-451-carrier-cover/weighted/RESULT.json new file mode 100644 index 0000000000..a87ceae85f --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/RESULT.json @@ -0,0 +1,106 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "ENDPOINT.json": "ff9cf4ca87fa4480daac4c93aa1fa5744f5eec97385c7bae203ca2d3d874d0d9", + "WEIGHTED-EXITS.md": "28e0308f315a583282291fa01998d53a874b4b7e3073cacc3ddbb38c5a7f66c7" + }, + "q": "3/4", + "p": 45, + "h": 1804, + "A_bar": "7/6", + "B_under": "319/100", + "beta": "23/20", + "mean_plus_tail_ceiling_15dp": "374237962112889/500000000000000", + "coefficients": 46, + "maximum_index": 7, + "maximum_ratio": "670710040140180390178294663010498985113548663419328216574437107055928208865225315093994140625000000000000000000000000000000000000/63564121216303240962669934787162560341903783409653933081402507444274609237008848367217066106806162182459196552380921425032358606384289", + "eta_lower": "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "all_ratios": [ + "2858658732946088387659230074430742892359183449493443163191841449588537216186523437500000000000000000000000000000000000000000000/138368489490426539266339753454454544061055223538487973803402699494378935674826758937336737664986893079244400307399424152465263433352557", + "27622292901684020940709402940195786232314498717105707111727497249376028776168823242187500000000000000000000000000000000000000000000/70969025978482944812176660225154305309408380865491917783988600051480032680005367384136257228071032478171590459652436945672872281886154011", + "165047074891717191819835712034263198112696320763717821444487299231695942580699920654296875000000000000000000000000000000000000000000/96087394563603703309119622458072982892449031217412480227757230026270551968913964430758195878012864222781997035088934454123073171179430123", + "615873010289030305973866928388494124705075182010719094416957887005992233753204345703125000000000000000000000000000000000000000000000000/155654611141830565046007232652494862552292449585620268856841253918799370961352253198803176877871025964349590718714332160940810834597269535973", + "1163623950354424271279281140066360001564643371251924874250865116209752159193158149719238281250000000000000000000000000000000000000000/180576567934258592562456770187962759560481925052615612683206874060440939778816700466514401685093737807534680355303213968287589024724619567", + "16705966929240394447373171857808912726626460627261990471324974976141675142571330070495605468750000000000000000000000000000000000000000/1955810766429787892248591668310327550567355071997995931936059878559052531648290540033174324140818487896333182305024901846681924106888181341", + "170410297155565419174009811046229623180686667767884371393602993549620805424638092517852783203125000000000000000000000000000000000/17169006469578898041050795007027923509083577632006773157026764357973688887150580241538311511171131747728731814047834954018573051268549", + "670710040140180390178294663010498985113548663419328216574437107055928208865225315093994140625000000000000000000000000000000000000/63564121216303240962669934787162560341903783409653933081402507444274609237008848367217066106806162182459196552380921425032358606384289", + "2275008974345922142917747643812140254056542848292970690101453286047217261511832475662231445312500000000000000000000000000000000000/215944303080888975822718057103917791059708795321699962600527015155908894133365606055140224454787494983991502406194426749633372775121057", + "1220784532126255758010580270921857983257188527155365981703428197135963273467496037483215332031250000000000000000000000000000000000/121505631689042018351202976414920029205701594789858148453062123287250954335483871348844855507257775350404276368503723381040750751368711", + "1545531940000771235635390324744471312833468568477028349114732463931431993842124938964843750000000000000000000000000000000000/166965281785311048443034328844713911710916384167227629617860630601003130753273970197682511125741035132792089462873153116014776259", + "322809553280105697587945722306573212227848330707840563093213859247043728828430175781250000000000000000000000000000000000000/38873678068801054091851276317398740169285852860938316214230787314637716210075018644178942025376180075707977025227647831646973073", + "31452807799166221468471375000278397877782938575935442088606919242010917514562606811523437500000000000000000000000000000000/4311736063073714144040038097680875010738130864857432406494324345645060297234846081129110826649521840604689205440050926312219519", + "3149874268476374726375184433169434569202324943330388199532876569719519466161727905273437500000000000000000000000000000000/499914669308777742674504062201325662453112932166441726017099789900687104145027320598320726978930174610848717674267777763966267", + "344009443993696470906854027966858934581651832470058057644735072244657203555107116699218750000000000000000000000000000/64085858677331920681742145877149035498625725128722070565187850308853690719711344600574479531706179519721957633137179804077", + "264129773782074769775680929115996435713562485171422323162460088497027754783630371093750000000000000000000000000000000/58418096873274771961008194360272274742082401598282460619290234132025936251542536800292638126326158094254696272140766693769", + "2036001691937533443200200820582736245704796513559460180431415210478007793426513671875000000000000000000000000000/539751603334134131748307909314362747988819124668130138203973741095450651000333748897657936267549727209732995416838141", + "267585565987723133914660854700000766180863538062667856820553424768149852752685546875000000000000000000000000000/85719335514041449112793180057587116413553593729805402561950356195244506624869482150188840163441243484167611755082427", + "255631870602504157969824645326071448979079739983824026694492204114794731140136718750000000000000000000000000/99641254477503396377037945370595526842377563699048346583709518155947892376000344867905978718619116875118566815433", + "1786844223496963306197149891253509316004010640767774020787328481674194335937500000000000000000000000000000/852542563058511336298714744746828272540418308775957393688903672361381597856210338229844700615334587543852738703", + "2783946692458253893524023940680406196587090632377226029348094016313552856445312500000000000000000000000/1634391807149669050688785408484266670999123047520194080369572889325123241321119473813432942202077891753595017", + "101393371286042544915678441105235538961370937462902475090231746435165405273437500000000000000000000000/73578862626004193871455713383572458076914135748576847595598060690499109306480462524991506614429169964085583", + "4947748318300884365105844530797975018912049272046260739443823695182800292968750000000000000000000/4456042919020044321406257946974922688402473288859309418164109245021629056899128273824422281623418740297", + "37906963850352112882825026960716176588769127420164295472204685211181640625000000000000000000000000/42521980670803191085723672729851197302780112830103215449014405818041052465966795118053358119035433583107", + "28840044810250061788876838473701162785828167045565351145341992378234863281250000000000000000000/40423301134834556666415964854847271675275614264939055518042240111841357837122892734073935681882926269", + "21311381656130933643182930735657370297900618538733397144824266433715820312500000000000000000000/37431383583362804671082655173844294933910526287598477595042698608472100174664922432980638181923467821", + "7013917891432312009532853315999427382503483840991975739598274230957031250000000000000000000/15477428202172283460029735931765021070958551776388338041325079178231667476396693331534331120013531", + "12112269412353972789963264158421729569415310834301635622978210449218750000000000000000000000/33658733579772292879723042093176778505554248357185677727723328644515039313605834873022686379962883", + "214602784167166363049858454486590406434629585419315844774246215820312500000000000000000/752611145479984162851057548134883353358111990409833423818650941738139155665449131297353283707", + "1304402183549763507920636930355865785938590306614059954881668090820312500000000000000000/5784408661721549225551969099974830121633435649783643335511608542016784597580421632706825405511", + "79554187473693892518294973937773654022009850450558587908744812011718750000000000000/446891125555409610710469352718730318720994198542003548473570920628126234701186121179463693", + "11191715559839321452879898698540458769912220304831862449645996093750000000000000000/79770796290158573640389758642284722435200865292390112298812352884226166146354219606096587", + "144616300341489971419890718636971398467494509532116353511810302734375000000000000/1309892876075363592631611298900641532370865966263369542074926594986237380649065951247043", + "19720421627524023718119577127449308949280748493038117885589599609375000000000000/227310828191789150770668478643858712784939888723621992695575375538871336866918840000753", + "79914989479139053220983401512417287904099794104695320129394531250000000000/1173784503752680507574613391541338707022056486273024993671706668572579958816794663", + "449574012127588694974019594151168348616920411586761474609375000000000000000/8424604854493776000971560029316061798719760172906636680705984409508086138418191269", + "61483133168637112043606729230165797162044327706098556518554687500000000/1471599847605877567492490726268578637361340681620421144798182673858879187964763", + "4768634225388782845666463356804456452664453536272048950195312500000000/145941550157444203043884738795876297018200891475446924057299488934721115799929", + "818798214988105744527536279369073213274532463401556015014648437500/32073803283434008001236277497372525022048117102674573311304139249982298891", + "361994223839084613136855805606728608836419880390167236328125000000/18166679825540372813207275125980955854201173513317332486096733966808159337", + "37069357809118592936431654294437976204790174961090087890625000/2385490412089584583727298001583985680614535354186474041435248619532627", + "8191725359539420179669407243494561043917201459407806396484375/676540392866944176005236419504691689672911420839815661369786414801744", + "305729306875923331456506545578122313600033521652221679687500/32430880096685591980376964685970080343944373273453314336270627732291", + "12362373968118957075364983211329672485589981079101562500000/1685608094167159948906550894344488621385313595495317890056725326357", + "1912572949887592725233815826868521980941295623779296875/335443355698143240698570621534949201906383948973753614170220087", + "83966617312138217205387036301544867455959320068359375/18956258430116202791319715713277227626159289499745290235663543" + ], + "uniform_J": 1768, + "uniform_loss": "221/150300000000000", + "covered_rate": "51294696624688121765641059727/13220527812378624000000000000000", + "stages": [ + [ + "775963650499779404391/200000000000000000000000", + "3745049372737/3442845784473600000000000000000000000" + ], + [ + "1939963802754446305021/500000000000000000000000", + "821022864500669/430355723059200000000000000000000000000" + ], + [ + "775985608584186518479/200000000000000000000000", + "2702154665330353/2151778615296000000000000000000000000000" + ], + [ + "969982011167645188081/250000000000000000000000", + "717737490966461/430355723059200000000000000000000000000" + ], + [ + "969982011169394836241/250000000000000000000000", + "2977582328088241/2151778615296000000000000000000000000000" + ], + [ + "1939964022338803669667/500000000000000000000000", + "4182578352654001/2151778615296000000000000000000000000000" + ], + [ + "242495502792350465707/62500000000000000000000", + "3063653472700081/2151778615296000000000000000000000000000" + ] + ], + "cap": "4849910055847/1250000000000000", + "candidate_grid_claim": "387992804459/100000000000000", + "candidate_tested": "193996402233/50000000000000", + "old_cover_forgiven_upper": "1166306370098651/300600000000000000", + "separation": "105103/300600000000000000", + "absolute_gain": "37/100000000000000", + "exact_relative_percent": "1850/193996402211" +} diff --git a/research/bit-451-carrier-cover/weighted/SECOND.json b/research/bit-451-carrier-cover/weighted/SECOND.json new file mode 100644 index 0000000000..6d915bba67 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/SECOND.json @@ -0,0 +1,96 @@ +{ + "pins": { + "BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "weighted/RESULT.json": "f2218a9eb212ef7f0ae1c993297df50c401bb6b24537318c2570cea54d6d2b92", + "minimum_result": "b8a72fc639fecfe4a815421413ff2d47aa7c65d96b35339285be67c557fbdac5", + "LOG-MOMENTS.md": "f4a067517ebf1db95b3179f30c4f0ec284666052469ed3502f0eb8cbbc4dc131" + }, + "h": 1804, + "p": 31, + "raw_M2": "2037/3608", + "paid_excess_upper": "1/1000000000000000", + "post_split_M2_upper": "254625000000000451/451000000000000451", + "moment_bounds": [ + "1", + "3/4", + "3/5 for every integer i>=2" + ], + "old_height_5": "6827687217645871723768715008083167511038627668733063356965029555567525676451623439788818359375/35674024375604018264754107113236442286809412869866491005028203627595242105774207923680594629102164", + "new_height_5": "1953368344659248955923315060497625489843101900146508216604690488793494296260178089141845703125/35674024375604018264754107113236442286809412869866491005028203627595242105774207923680594629102164", + "eta_lower": "188887219560768857828191657200313519/1000000000000000000000000000000000000000", + "peak_index": 4, + "maximum_ratio": "17128915551820872313178995404051686070053492113947868347167968750000000000000000000000000/294570062823643941505421959363565445812184368936077285383203843401495633118375763406771384713", + "all_ratios": [ + "86511259697154662212952228404833539389073848724365234375000000000000000000000000000000/23274340619651978074486289141099466641735602117197888200900605992985659827891242084647021663", + "1631341146801932090427482399709552360856160521507263183593750000000000000000000000000000000/79377400266500602997268856152092209656380017566173259782535079533336221095525382185280019132279", + "57976615429395092397238124164554255062437616288661956787109375000000000000000000000000000/1383466277656429078008944366929013421284971002699177305863301846743274373986029477785093278961", + "1223425495401890690424597272753334248259048983454704284667968750000000000000000000000000000/22194833438615273686476540862046895499355835703095427655825041538087269220626034187977534832339", + "17128915551820872313178995404051686070053492113947868347167968750000000000000000000000000/294570062823643941505421959363565445812184368936077285383203843401495633118375763406771384713", + "904110325456400940359766276379013916695243299007415771484375000000000000000000000000000/16586826753465338542892428332526549809984861159527702489668313067057015301761454067171575509", + "87160811522071936626686487711092772177154859341681003570556640625000000000000000000000/1820454279735602373150798758559947254805429702302758151806170303773260945732177175281771849", + "1899501605895446177117865689986710838807306034564971923828125000000000000000000000000/46812603922537525104197193658727671354106949091494888504304032470774825072840200253938923", + "980394215352011287131856244199173296389348566532135009765625000000000000000000000/29055385007757441103774408920351817572977824670746676218978239163447487220655311766719", + "226967189484358776558919063196437037056170678138732910156250000000000000000000000/8161166347120834406900747383001546410766686224848288320902552154193005857963632248401", + "429339965095927194224145243348048555758265554904937744140625000000000000000000/18780580122093635672369915686902861518570127038651866163311224571965857828023128513", + "3519011219777382553208757793021347547997498512268066406250000000000000000000/187020323838436457652646559458774481657903862335468004564417670777870829905876881", + "9480536025911691375380105469911178173835158348083496093750000000000000000/609815621045348845856355777768632381478349932588552211081349619133199415452199", + "414934624710840273777310665767530356512241363525390625000000000000000000/32126183827291562362933540786834152538070829099371710806865997248264642414209", + "25013918647739915283561215138238580392599105834960937500000000000000/2315896469202478231126831022087067577857121413062287757202034761765911733", + "6019754479294980729511797863966516655158996582031250000000000000000/661622318426586347805387403950137892972286932278739740655403644103629267", + "559855684549347501345887635766259522438049316406250000000000000/72483540112238091392046860967868637936445825776317840968145435718419", + "129430471601106576872536293951608362197875976562500000000000000/19581523933951087606102492220365631055440999925273061350561912595687", + "3531561241511486847841955945875265479087829589843750000000000/619250047528662975815242241238152056322960130974127917499061256003", + "1969864867886764266604936576502489805221557617187500000000000/397037081528105510238899391807819636852063882518591852503832691221", + "71462427551039015998648098980337381362915039062500000000/16419550797759678537889319498593241786772019146376946253671237", + "14458341062409272904967431367993354797363281250000000000/3755679997713190802577304788741068835934352301852729794424919", + "940076435897778176897714034654200077056884765625000/273799748553754933559152195315047843994209178319118322337", + "19604716936752110997377771982550621032714843750000000/6349889362656182858570088291430987973672298225789917591629", + "49486026423955867333028544858098030090332031250000/17680201661117215380029999596179449452428832750635592463", + "450508814157165163432639092206954956054687500000/176116622339395530966657346370778096444182504710740947", + "1599610932594665148987667635083198547363281250/678779056110397614213528296039811807595932289470217", + "5889060258410389516409486532211303710937500/2691119811162822106089341423841190780803915856289", + "168741012350003930465318262577056884765625/82388643249654283657085025348534714843737441332", + "17816656196989665403962135314941406250000/9222504204944380207787384560688943086731740241", + "266853557432430353946983814239501953125/145316848929113386021852248961444517456029756", + "2876265888493261300027370452880859375/1635170022196481349560959748587682926364327" + ], + "uniform_J": 1218, + "uniform_loss": "203/200400000000000", + "stages": [ + [ + "387981825295448584431/100000000000000000000000", + "4741481785409/3442845784473600000000000000000000000" + ], + [ + "3879927605966303787687/1000000000000000000000000", + "695970596710333/430355723059200000000000000000000000000" + ], + [ + "3879928043378351059461/1000000000000000000000000", + "2421177904826033/2151778615296000000000000000000000000000" + ], + [ + "969982011281999812137/250000000000000000000000", + "2627748651894449/2151778615296000000000000000000000000000" + ], + [ + "484991005641874730163/125000000000000000000000", + "3376567610017457/2151778615296000000000000000000000000000" + ], + [ + "155197121805401033427/40000000000000000000000", + "3428210296784561/2151778615296000000000000000000000000000" + ], + [ + "3879928045135025947653/1000000000000000000000000", + "92715701251673/86071144611840000000000000000000000000" + ] + ], + "cap": "193996402256751/50000000000000000", + "candidate_grid_claim": "77598560901/20000000000000", + "candidate_tested": "12124775141/3125000000000", + "old_cover_forgiven_upper": "388768790112967/100200000000000000", + "separation": "1043/100200000000000000", + "absolute_gain": "3/100000000000000", + "exact_relative_percent": "50/64665467417" +} diff --git a/research/bit-451-carrier-cover/weighted/SECOND.md b/research/bit-451-carrier-cover/weighted/SECOND.md new file mode 100644 index 0000000000..0fa04fec14 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/SECOND.md @@ -0,0 +1,25 @@ +# The previously rejected power 31 with a source-bound second moment + +At h=1804 and p=31 the fixed mean-only Bernoulli envelope on the previous 451-factor construction fails at compiler height five. A verified bound on the second moment of the *actual* separated paid law changes that decision. The applicable tensor concentration result is zxv's #4480. Its original theorem file is authenticated by Git blob `b75cf923df5793a32e7557ab7b64657246246e5d` and SHA-256 `f4a067517ebf1db95b3179f30c4f0ec284666052469ed3502f0eb8cbbc4dc131`. [Original tensor, clipping and Bell certificate](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/LOG-MOMENTS.md) · [Previous exact all-height analysis](https://github.com/CrocSwap/integer-mult-bounds/tree/1ef5792e7c64de7ced89cc719f7897868f96d076/research/bit-451-carrier-cover/weighted) + +**Raw tensor and complete paid bill.** For a raw paid rank r use Y=ln r/ln 11 under the actual normalized t-weighted inventory, t=1−0.003879928046148. The maximum rank 56<11² gives 0≤Y≤2, and the pinned prior proof upper-bounds both its raw mean and the completed mean by 3/4. For v=451, X_raw is an average of v independent raw log ranks. Since Y²≤2Y, expand the square and bound the diagonal by 2·(3/4)/v and the cross terms by (1−1/v)·(3/4)². The result is M₂=9/16+15/(16·451). + +Let P_t^451 be the raw paid denominator, Q_t the true post-split denominator, and x=(Q_t−P_t^451)/P_t^451. The pays for splitting and any paid completion must enter in full. Here discarding small productive outputs uses owned zero endpoints, leaving all interior paid calls in place. There is no extra recursive paid completion. The paid surplus in #7863 is relative to T_t^451, so x ≤ ε=U_high/α_low^451, where α=P_t/T_t. Both original source endpoint choices are essential. The verifier checks ε<10^−15. + +For a tuple R>11^451, use the reference log value one. Its post-split ranks have X=ln(rank)/ln(11^451) in [0,1]. If their paid moment is Q_R then their second-moment numerator is ≤Q_R; its increment over that capped reference is at most Q_R−R^t. Tuples already below the split threshold are unchanged. Hence the complete normalized second moment is ≤(m₂+x)/(1+x), where m₂=E[min(1,X_raw)²]≤M₂<1. The bound increases in x and m₂. Substituting the charged ε proves (M₂+ε)/(1+ε)<3/5. Since X∈[0,1], every higher power also has mean ≤3/5. This uses the actual excess in both numerator and denominator *before* substituting its upper bound. [#7863's billed source and productive discard](https://github.com/CrocSwap/integer-mult-bounds/blob/b3e4412fe01f07dc58305616fabf96345f49a781/research/p104-bit-451-factor-schedule/PROOF.md#L15-L40) · [Component proof of the complete paid exit law](https://github.com/CrocSwap/integer-mult-bounds/blob/1ef5792e7c64de7ced89cc719f7897868f96d076/research/bit-451-carrier-cover/weighted/PROOF.md) + +**Exact independent certificate.** Use the formal sequence μ₀=1, μ₁=3/4, μᵢ=3/5 for i≥2. It is a sequence of coordinatewise bounds; it need not be the moments of any probability distribution. At each compiler height G the existing word's actual log aggregate is formed from G+1 independent copies of X. The expansion of the 31st power in these actual moments has nonnegative multinomial coefficients, so termwise substitution is legitimate. Starting from the moment array for the deterministic shift 7/6, apply v'ᵢ=Σ_k binom(i,k)v_(i−k) μ_k once per copy. This computes the coefficients of exp((7/6)z)(Σ μ_i z^i/i!)^(G+1) through degree 31, multiplied by i!. For fixed degree this is polynomial in G of degree at most 31, as follows by expanding the formal series as 1 plus a series of zero constant term. The denominator polynomial is (319/100+23G/20)^31. The original source pins the conservative shifts and slope, paid-path multiplicities and ambient truncation. + +Evaluate both polynomials at G=0,…,31 and take forward differences at zero. Their jth differences are j! times their falling-factorial coefficients. The numerator's differences are nonnegative and the denominator's are positive. The largest of the 32 coefficient ratios occurs at j=4 and is <0.000058149, below the directed capacity lower 0.000188887219560768857828191657200313519. This proves contraction at every integer height since the falling factorials are nonnegative there. The old exact height-five ratio is >0.000191391, above the directed capacity upper; the new bound at that same height is <0.000054757. Both values are recorded as exact fractions. Only this p,h pair was tested; no optimality claim for the improved moment law follows. + +**All-size comparison.** The inherited base guard holds using log₂A≥floor(log₂A) and monotonicity of the normalized logarithmic majorant, with rank zero defined separately. The fixed H=1202400000000000 gives 2^1217 h^31≤(H+h)^31<2^1218 h^31 and the derivative test (1218/H)(H+h)>62. Carrying the unchanged incurred cover loss d=1/(H·2^44) and all seven strict ordinary stages yields the installed BIT service cap 0.00387992804513502. The complete rational consumer tests 0.00387992804512 and certifies conditional κ=0.00387992804505. The increase above the previous 0.00387992804502 is exactly 0.00000000000003. Even allowing the predecessor its native raw upper endpoint and forgiving all cover and stage loss, its prior 1257/H loss and seven outer ticks cap its complete proof at 388768790112967/100200000000000000. The new complete point clears this ceiling by exactly 1043/100200000000000000. The prior physical 451-factor word and nested seed remain conditional on the same stock, ownership, complete compiler, precision/tape and recovery obligations. The mechanism and raw crossing are unchanged. + +**Credit and replay.** zxv supplied the weighted path and tensor concentration proofs in #4480. Jacob Alan Sussman supplied the exact finite compiler. Clear1nsight supplied #7863 and #7973, and the preceding #8026 analyses supplied the actual paid mean, charged fallback and all-height counterexample. This work specializes the second-moment proof to their original 451-factor word, independently checks the formerly inconsistent height and all remaining heights, and propagates the improvement through the complete application. OpenAI Codex assisted proof and independent verification. [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) + +From a clean checkout with CPython 3.12: + +```sh +python3.12 -IB scripts/research_package.py --package research/bit-451-carrier-cover +``` + +The independent audit uses `weighted/second_audit.py PRODUCER_ROOT PRIOR_WEIGHTED_RESULT PRIOR_MINIMUM_RESULT OUT [--outer CONSUMER_DIR]`. Its deterministic receipt is identical with or without the actual complete application and audit binding. diff --git a/research/bit-451-carrier-cover/weighted/WEIGHTED-EXITS.md b/research/bit-451-carrier-cover/weighted/WEIGHTED-EXITS.md new file mode 100644 index 0000000000..c0f6469d31 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/WEIGHTED-EXITS.md @@ -0,0 +1,268 @@ +# A paid-log-moment compiler bound + +The largest paid rank need not determine the logarithmic power. The +separated integer compiler has an exact exit distribution: its exits are +the chronological paid word raised to the power `G+1`. This permits an +average logarithmic contraction, certified by a finite list of rational +polynomial coefficients. + +The construction, native premises, source complement recurrence and moment +cancellation are inherited from Jacob Alan Sussman's separated lockstep +compiler as retained in PR4359 and the logarithmic compiler of PR4411 and +PR4433. Only the bound on its normalized leaves changes here. There is no +new routing operation, fractional job, or independent productive credit. + +## Exact exits of the separated compiler + +Let the fixed mixed unit have ambient rank `m`, productive minimum `k_min`, +and a chronological paid inventory `P_r`, with + +``` +1 <= r_max < k_min <= m. +``` + +At top rank `n>=m`, put + +``` +G = floor(log_(k_min)(n/m)). +``` + +The inherited construction has one class for every paid-round path of +length `d<=G`, and degree `G-d` in that class. Separation consumes all +parent paid jobs, so there are no premature exits. At depth `G`, a path +has column multiplier `rho<=r_max^G0`; for `G=0`, +the single root has multiplier one and `m<=n`. Consequently the degree-zero +point is present in every depth-`G` class, with its exact integer weight +`u(0)=1`. + +Each such leaf unit issues its complete chronological paid word. Therefore +the complete exit multiset is exactly + +``` +{ r_1*...*r_(G+1) : each position chooses one actual paid call }, +``` + +including all multiplicities. The statement uses the compiler's complete +class construction, including child classes whose missing inputs are top +sources. A missing parent point does not omit the corresponding child +class. Chronological paths are not matched across different paid positions. + +For `0=r_max`, with `J>1`, and let + +``` +X = ln(r)/ln(J) in [0,1], +E[X] <= q, 0<=q<=1. +``` + +Take an integer power `p>=1` and a positive natural-log shift `a`. Choose +positive rational bounds `A_bar`, `B_under`, `beta` satisfying + +``` +a/ln(J) <= A_bar, +(a+ln(m))/ln(J) >= B_under, +ln(k_min)/ln(J) >= beta. +``` + +Let `S(i,j)` be the Stirling numbers of the second kind, with +`S(0,0)=1`, zero outside `0<=j<=i`, and + +``` +S(i+1,j) = j*S(i,j)+S(i,j-1). +``` + +For `0<=j<=p`, form the nonnegative numerator coefficients and positive +denominator coefficients + +``` +C_j = q^j * sum_(i=j..p) binom(p,i)*S(i,j) + * [q*(A_bar+1)^(p-i)+(1-q)*A_bar^(p-i)], +D_j = sum_(i=j..p) binom(p,i)*S(i,j) + * B_under^(p-i)*beta^i. +``` + +If every `C_j<=lambda*D_j`, then for every integer top rank `n>=m`, + +``` +E[(a+ln(exit))^p] <= lambda*(a+ln(n))^p. (1) +``` + +Here the expectation uses the exact `t`-weighted exit inventory above. +The certificate has only `p+1` rational comparisons; it does not enumerate +the product paid histogram or the compiler flow at unbounded ranks. + +### Proof by convex order + +For a convex function `f` on `[0,1]`, the chord inequality gives +`f(x)<=(1-x)f(0)+x*f(1)`. For an increasing convex function, taking the +expectation and using `E[X]<=q` bounds it by the Bernoulli-`q` expectation. +Applying this one variable at a time to +`(A_bar+x_1+...+x_(G+1))^p` proves + +``` +E[(a/ln(J)+sum X_i)^p] + <= E[(A_bar+Binomial(G+1,q))^p]. +``` + +Write `u=G` and split the binomial as `Binomial(u,q)+Z`, with `Z` an +independent Bernoulli-`q` variable. The identity + +``` +E[Binomial(u,q)^i] = sum_(j=0..i) S(i,j)*q^j*(u)_j +``` + +uses the falling factorial `(u)_j=u*(u-1)*...*(u-j+1)`, with `(u)_0=1`. +Expanding the previous display gives exactly `sum_j C_j*(u)_j`. +The same power-to-falling-factorial identity expands +`(B_under+beta*u)^p` as `sum_j D_j*(u)_j`. + +For every integer `u>=0`, all `(u)_j` are nonnegative (and vanish when +`j>u`). Coefficient domination therefore proves + +``` +E[(A_bar+Binomial(u+1,q))^p] + <= lambda*(B_under+beta*u)^p. +``` + +Finally `ln(n)>=ln(m)+G*ln(k_min)`, so +`(a+ln(n))/ln(J)>=B_under+beta*u`. Multiplication by `ln(J)^p` proves (1). +The coefficient condition is sufficient; its failure is not a theorem +about the compiler's true optimum. + +## Closing the source-complement induction + +Retain the exact compiler recurrence and moment inequality from +[SHIFTED-LOG.md](SHIFTED-LOG.md). Set + +``` +A(n) = (1+ln(n)/a)^p, +eta = t*m^(t-1). +``` + +If the finite coefficient certificate has `lambda= eta*A(n)*sum_s w_s*s^t. +``` + +It is enough to check the same endpoint base guard + +``` +m^(1-t) <= (1+ln(m)/a)^p. +``` + +The monotonicity argument in SHIFTED-LOG.md then covers every ordinary base +rank, and strong induction proves `L(n)<=n^t*A(n)`. The earlier pointwise +shift guard is not required when it is replaced by this averaged exit +certificate. The final sufficient-rank check remains + +``` +(h+H)^p < h^p*2^((z-t)*H), where a=h*ln(2), N=2^H. +``` + +This still requires the stated native compiler and strict mixed-unit +superpotential. It does not establish a compiler for overlapping ranks. + +## Bounding the paid log mean after splitting and completion + +The mean premise can be checked without emitting the completed histogram. +For a raw paid inventory with moment `P_t`, put + +``` +mu_raw = sum_r P_r*r^t*ln(r) / P_t, +A_raw = P_t^v, +J = c^v. +``` + +Suppose `E_split` bounds the **increase** in original-paid `t`-moment from +splitting, and `F_completion` bounds the **full paid `t`-moment** of all +split completion calls. Define `E=E_split+F_completion`. In particular, +`F_completion` must not subtract productive target-completion credit. A net +completion tax suitable for proving a superpotential cannot replace this +full paid charge in the mean bound. + +An original call `R>J` has split paid moment `Q_R>=R^t`, and every split +rank is at most `J`. Thus + +``` +sum_(split r) r^t*ln(r)-R^t*ln(R) + <= (Q_R-R^t)*ln(J). +``` + +Calls `R<=J` are unchanged. Every completion call also has split ranks at +most `J`, so its weighted log sum is at most its full paid moment times +`ln(J)`. The completed paid moment is at least `A_raw`, because splitting +increases a sublinear positive moment and completion adds nonnegative paid +calls. Consequently its normalized log mean obeys + +``` +E[X] <= mu_raw/ln(c) + E/A_raw. (2) +``` + +For example, certifying `mu_raw/ln(c)<=179/200` and +`E/A_raw<=1/200` gives `q=9/10`. Equation (2) is deliberately conservative; +the actual completed paid moment can give a sharper denominator. + +## A small rational specialization + +For a completed native4453 unit with + +``` +m=153^v, J=18^v, k_min>=22^v, h=4*v, +``` + +the integer comparisons + +``` +18^19 < 2^80, 2^4 < 18, +18^26 < 153^15, 18^16 < 22^15 +``` + +give `19/20<=a/ln(J)<=1`, +`(a+ln(m))/ln(J)>=19/20+26/15=161/60`, and +`ln(k_min)/ln(J)>=16/15`. Hence one may use + +``` +A_bar=1, B_under=161/60, beta=16/15, q=9/10. +``` + +At `p=60`, all 61 rational coefficient ratios are strictly below +`17/25000=0.00068`; the largest is at `j=16`, approximately +`0.0006795228122899847`. Thus any instance with `eta>3/4000=0.00075` passes +the exit guard, provided the paid-mean and base obligations also pass. +With the same bounds, `p=58` fails this coefficient guard. Setting `q=1` +also fails at `p=60`, so the certificate uses distribution information that +the largest-rank estimate omits. + +These are exact finite polynomial comparisons; displayed decimal values +are explanatory. The package verifier must bind the actual raw profile, +full completion bill, exponent, power, scale, all inequalities and final +rank before treating a concrete specialization as certified. This note +does not select a new frontier or independently admit a native supplier. + +Prepared with substantial OpenAI Codex assistance. New material is +Apache-2.0. The source compiler and prior logarithmic arguments retain the +attribution stated above and in the package provenance. diff --git a/research/bit-451-carrier-cover/weighted/audit.py b/research/bit-451-carrier-cover/weighted/audit.py new file mode 100644 index 0000000000..fe1ce7b555 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/audit.py @@ -0,0 +1,128 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Newton-difference replay for one fixed weighted-exit certificate.""" +from argparse import ArgumentParser +from decimal import Decimal as D, localcontext +from fractions import Fraction as F +from hashlib import sha256 +from math import comb +from pathlib import Path +import json +import signal + +PIN='538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749' +PRIOR='ff9cf4ca87fa4480daac4c93aa1fa5744f5eec97385c7bae203ca2d3d874d0d9' +LAW='28e0308f315a583282291fa01998d53a874b4b7e3073cacc3ddbb38c5a7f66c7' + + +def need(ok, item): + if not ok: + raise ValueError(item) + + +def digest(path): + return sha256(path.read_bytes()).hexdigest() + + +def mean_bound(data): + with localcontext() as ctx: + ctx.prec=64 + t=1-D('0.003879928046148') + numer=denom=F(0) + for grade, n in data['native']['paid'].items(): + if grade=='1': + denom+=n + continue + log=D(grade).ln() + lower=(t*log.next_minus()).next_minus().exp().next_minus() + upper=(t*log.next_plus()).next_plus().exp().next_plus() + numer+=n*F(upper)*F(log.next_plus()) + denom+=n*F(lower) + raw=numer/(denom*F(D(11).ln().next_minus())) + sep=data['separation'] + alpha=F(sep['three_engine_intervals']['source_1']['alpha'][0]) + extra=F(sep['paid_uplift_upper'][1])/alpha**451 + return raw,extra + + +def differences(values): + heads=[] + while values: + heads.append(values[0]) + values=[b-a for a,b in zip(values,values[1:])] + return heads + + +def run(data, prior): + h,p,H=1804,45,1202400000000000 + v=451 + need(data['uniform']['H']==H and data['partition']['cutoff']=='11^451','fixed carrier') + need(prior['H']==H and prior['uniform_integer_J_minimum']==2218,'previous budget') + raw, extra=mean_bound(data) + need(raw+extra=h ln2/ln J, Bunder<=(h ln2+ln A)/ln J and beta<=ln k/ln J. + need(h==4*v and 2**24 <= 11**7 and (16*134)**100 >= 11**319 and 16**20 >= 11**23,'log enclosures') + # E[(7/6+Binomial(g+1,3/4))^p] as a directly enumerated exact binomial. + num=[]; den=[] + for g in range(p+1): + n=g+1 + num.append(F(sum(comb(n,i)*3**i*(7+6*i)**p for i in range(n+1)),4**n*6**p)) + den.append((F(319,100)+F(23,20)*g)**p) + # kth forward difference is k! times the coefficient of the falling factorial (g)_k. + top,bottom=differences(num),differences(den) + need(all(d>0 for d in bottom) and all(c>=0 for c in top),'Newton coefficient signs') + eta=F(data['uniform']['eta'][0]) + for k in (0,p): + need(top[k]F(data['uniform']['ambient_power'][1]),'entire ordinary base interval') + num_final=(h+H)**p;den_final=h**p + J=(num_final//den_final).bit_length() + need((den_final<<(J-1))<=num_final<(den_final<2*p,'eventual tail') + C=F(data['separation']['trial']);d=F(prior['charged_cover_loss']) + need(H*d==F(1,2**44) and F(data['cover_and_stock']['bad_surcharge_upper'])tested>claim>u>F(prior['candidate_grid_claim']),'separation') + # Destroy the certificate by replacing its q bound by 1 at leading degree. + need(F(1,1)/F(23,20)**p>eta,'all paid ranks maximized fails leading term') + return dict(pins={'BIT-451.json':PIN,'ENDPOINT.json':PRIOR,'WEIGHTED-EXITS.md':LAW}, + q='3/4',p=p,h=h,A_bar='7/6',B_under='319/100',beta='23/20', + mean_plus_tail_ceiling_15dp=str(F(-(-(raw+extra)*10**15).__floor__(),10**15)), + coefficients=len(ratios),maximum_index=who,maximum_ratio=str(largest),eta_lower=str(eta), + all_ratios=[str(x) for x in ratios],uniform_J=J,uniform_loss=str(e),covered_rate=str(covered), + stages=stages,cap=str(cap),candidate_grid_claim=str(claim),candidate_tested=str(tested), + old_cover_forgiven_upper=str(u),separation=str(claim-u),absolute_gain=str(claim-F(prior['candidate_grid_claim'])), + exact_relative_percent=str(100*(claim-F(prior['candidate_grid_claim']))/F(prior['candidate_grid_claim']))) + + +if __name__=='__main__': + signal.alarm(60) + cli=ArgumentParser();cli.add_argument('producer',type=Path);cli.add_argument('previous',type=Path) + cli.add_argument('law',type=Path);cli.add_argument('out',type=Path);cli.add_argument('--outer',type=Path) + args=cli.parse_args() + path=args.producer/'BIT-451.json' + need(digest(path)==PIN and digest(args.previous)==PRIOR and digest(args.law)==LAW,'source integrity') + res=run(json.loads(path.read_bytes()),json.loads(args.previous.read_bytes())) + if args.outer: + receipt=json.loads((args.outer/'receipt.json').read_bytes()) + app=json.loads((args.outer/'APPLICATION.json').read_bytes());audit=json.loads((args.outer/'AUDIT.json').read_bytes()) + need(F(receipt['cap'])==F(app['binary_ordinary'])==F(audit['outer']['pinned_binary_cap'])==F(res['cap']),'outer cap') + need(F(receipt['claim'])==F(app['application']['claim'])==F(res['candidate_grid_claim']),'outer claim') + need(F(receipt['tested'])==F(audit['outer']['finite_compiler']['tested'])==F(res['candidate_tested']),'outer tested') + for key in ('APPLICATION.json','AUDIT.json'): + need(digest(args.outer/key)==receipt['output_sha256'][key],key) + args.out.write_text(json.dumps(res,indent=2)+'\n') + print('PASS',res['maximum_index'],res['uniform_J'],res['cap'],res['candidate_grid_claim']) diff --git a/research/bit-451-carrier-cover/weighted/minimum_audit.py b/research/bit-451-carrier-cover/weighted/minimum_audit.py new file mode 100644 index 0000000000..cbb30008a1 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/minimum_audit.py @@ -0,0 +1,119 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Direct binomial evaluation and shifted Newton certificates for two supplied powers.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +from pathlib import Path +import json +import signal + + +OLD='f2218a9eb212ef7f0ae1c993297df50c401bb6b24537318c2570cea54d6d2b92' +BIT='538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749' + + +def require(ok, msg): + if not ok: + raise ValueError(msg) + + +def checked(path, pin): + raw=path.read_bytes() + require(sha256(raw).hexdigest()==pin,path.name) + return json.loads(raw) + + +def height(g, power): + # A=7/6, B=319/100, beta=23/20, q=3/4. Every numerator term is integer. + n=g+1 + accumulator=0 + multiplicity=1 + for i in range(n+1): + accumulator+=multiplicity*(7+6*i)**power + if i=0 and bad_g>=0 and K+p+2<=1024 and bad_g<1024,'authorized height census') + decision=F(bit['uniform']['eta'][0]);eta_hi=F(bit['uniform']['eta'][1]) + require(old['p']==45 and old['coefficients']==46 + and F(old['maximum_ratio'])==max(map(F,old['all_ratios']))eta_hi,'maximizing every paid rank breaks the leading coefficient') + require(tuple(map(F,[old['A_bar'],old['B_under'],old['beta'],old['q']]))== + (F(7,6),F(319,100),F(23,20),F(3,4)),'retained law') + require(F(13,6)eta_hi,'adjacent lower exponent must fail even the upper etabound') + exact=[height(g,p) for g in range(K+p+1)] + prefix=[n/d for n,d in exact[:K]] + nums, dens=zip(*exact[K:]) + heads, bottoms=newton(list(nums)), newton(list(dens)) + require(all(z>0 for z in bottoms) and all(z>=0 for z in heads),'signed shifted coefficients') + tail=[a/b for a,b in zip(heads,bottoms)] + ratios=prefix+tail + bound=max(ratios) + require(boundF(bit['uniform']['ambient_power'][1]),'all ordinary base ranks') + J=(((H+h)**p)//(h**p)).bit_length() + require(h**p*2**(J-1)<=(H+h)**p3*h and F(J,H)*(H+h)>2*p,'large-width tail') + c=F(bit['separation']['trial']);d=F(1,H*2**44) + require(F(old['covered_rate'])==c-F(old['uniform_loss'])-d,'same complete cover debit') + covered=c-F(J,H)-d; rate=F(bit['cover_and_stock']['seed']);rho=F(bit['cover_and_stock']['rho']);stages=[] + for _ in range(7): + cap=covered-rho*(covered-rate) + step=F((cap*10**24).__floor__()-1,10**24) + require(ratetested>claim>generous>F(old['candidate_grid_claim']),'complete rate comparison') + return dict(pins={'BIT-451.json':BIT,'weighted/RESULT.json':OLD}, + parent_head='a24daf62b8e63eabefc62afbc5ad4c73b7216e60', + q=old['q'],normalization=old['h'],p_minimum=p,tail_shift=K,negative_height=bad_g, + failed_previous_power=p-1,negative_ratio=str(failure),eta_upper=str(eta_hi),eta_lower=str(decision), + controls=['hash-locked p=45 receipt accepted','q=1 leading coefficient rejected'], + heights_evaluated=K+p+2,prefix_ratios=list(map(str,prefix)),shifted_ratios=list(map(str,tail)), + uniform_contraction_bound=str(bound),uniform_J=J,uniform_loss=str(F(J,H)), + minimum_loss_at_this_power=J,stages=stages,cap=str(cap), + candidate_grid_claim=str(claim),candidate_tested=str(tested),old_cover_forgiven_upper=str(generous), + separation=str(claim-generous),absolute_gain=str(claim-F(old['candidate_grid_claim'])), + exact_relative_percent=str(100*(claim-F(old['candidate_grid_claim']))/F(old['candidate_grid_claim']))) + + +def bind(out, root): + r=json.loads((root/'receipt.json').read_bytes());a=json.loads((root/'APPLICATION.json').read_bytes());u=json.loads((root/'AUDIT.json').read_bytes()) + require(F(r['cap'])==F(a['binary_ordinary'])==F(u['outer']['pinned_binary_cap'])==F(out['cap']),'cap') + require(F(r['claim'])==F(a['application']['claim'])==F(out['candidate_grid_claim']),'claim') + require(F(r['tested'])==F(u['outer']['finite_compiler']['tested'])==F(out['candidate_tested']),'tested') + for path in ('APPLICATION.json','AUDIT.json'): + require(sha256((root/path).read_bytes()).hexdigest()==r['output_sha256'][path],path) + + +if __name__=='__main__': + signal.alarm(60) + parser=ArgumentParser(description=__doc__) + parser.add_argument('producer',type=Path);parser.add_argument('prior',type=Path);parser.add_argument('out',type=Path) + parser.add_argument('--power',type=int,required=True);parser.add_argument('--shift',type=int,required=True) + parser.add_argument('--failed-height',type=int,required=True);parser.add_argument('--outer',type=Path) + args=parser.parse_args() + result=audit(args.producer,args.prior,args.power,args.shift,args.failed_height) + if args.outer:bind(result,args.outer) + args.out.write_text(json.dumps(result,indent=2)+'\n') + print('PASS_451_ALL_HEIGHT',result['p_minimum'],result['uniform_J'],result['candidate_grid_claim']) diff --git a/research/bit-451-carrier-cover/weighted/second.py b/research/bit-451-carrier-cover/weighted/second.py new file mode 100644 index 0000000000..4570d5fdd4 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/second.py @@ -0,0 +1,114 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Bind the tensor second-moment compiler proof to its complete signed application.""" +from fractions import Fraction as Q +from math import comb +from pathlib import Path +import json +import subprocess +import sys + +HERE = Path(__file__).resolve().parent +CAP = "0.00387992804513502" +CLAIM = "0.00387992804505" +HASHES = { + "APPLICATION.json": "038a693200287638feae8d6888d4834577e3eb4b2d95cd75ea607605f1c989a0", + "AUDIT.json": "bf063d3cee7cdde73575265d2e73f430f71dd98abf611bd63cddcbc8ed0e78e1", + "adapter/binary/FINITE.json": "7996ddb19a9bf9269a072aee60d331caacda2f3350fbc6c2b8c052701d980e87", +} + + +def shifted_moments(moments, a, count): + power = len(moments)-1 + values = [a**i for i in range(power+1)] + for _ in range(count): + values = [sum(comb(i,j)*values[i-j]*moments[j] for j in range(i+1)) for i in range(power+1)] + return values + + +def coefficient_ratios(moments, a, b, beta): + power = len(moments)-1 + shifted = shifted_moments(moments,a,1) + bell = [[Q(0)]*(power+1) for _ in range(power+1)] + stirling = [[0]*(power+1) for _ in range(power+1)] + bell[0][0] = stirling[0][0] = 1 + for n in range(1,power+1): + for k in range(1,n+1): + bell[n][k] = sum(comb(n-1,j-1)*moments[j]*bell[n-j][k-1] for j in range(1,n-k+2)) + stirling[n][k] = k*stirling[n-1][k]+stirling[n-1][k-1] + ratios = [] + for k in range(power+1): + numerator = sum(comb(power,i)*shifted[power-i]*bell[i][k] for i in range(k,power+1)) + denominator = sum(comb(power,i)*b**(power-i)*beta**i*stirling[i][k] for i in range(k,power+1)) + if numerator < 0 or denominator <= 0: + raise ValueError("invalid coefficient signs") + ratios.append(numerator/denominator) + return ratios + + +def component(base, weighted, previous, proof, seven_stages, check): + count, h, p = base["partition"]["factors"], weighted["h"], 31 + H = base["uniform"]["H"] + mean = Q(weighted["q"]) + check(count == 451 and h == proof["h"] == 1804 and p == proof["p"] and + max(map(int,base["native"]["paid"])) == 56 < 11**2 and + Q(weighted["mean_plus_tail_ceiling_15dp"]) < mean == Q(3,4), "bounded tensor factors and paid mean") + raw = ((count-1)*mean**2+2*mean)/count + sep = base["separation"] + eps = Q(sep["paid_uplift_upper"][1])/Q(sep["three_engine_intervals"]["source_1"]["alpha"][0])**count + eps_cap = Q(proof["paid_excess_upper"]) + after = (raw+eps_cap)/(1+eps_cap) + check(raw == Q(proof["raw_M2"]) and 0 < eps < eps_cap == Q(1,10**15) and + (raw+eps)/(1+eps) < after == Q(proof["post_split_M2_upper"]) < Q(3,5), + "completed second-moment bound with every excess paid term") + a, b, beta = map(Q,(weighted["A_bar"],weighted["B_under"],weighted["beta"])) + moments = [Q(1),mean]+[Q(3,5)]*(p-1) + eta, eta_upper = map(Q,base["uniform"]["eta"]) + # Under the old envelope every positive moment used the Bernoulli mean. + old_at_five = shifted_moments([Q(1)]+[mean]*p,a,6)[p]/(b+5*beta)**p + at_five = shifted_moments(moments,a,6)[p]/(b+5*beta)**p + check(old_at_five == Q(previous["negative_ratio"]) == Q(proof["old_height_5"]) and + at_five == Q(proof["new_height_5"]) and at_five < eta < eta_upper < old_at_five, + "height-five control and repaired power") + ratios = coefficient_ratios(moments,a,b,beta) + peak = max(ratios) + check(len(ratios) == 32 and ratios == list(map(Q,proof["all_ratios"])) and + eta == Q(proof["eta_lower"]) and peak == Q(proof["maximum_ratio"]) < eta and + ratios.index(peak) == proof["peak_index"] == 4, "all Bell and direct-Newton coefficients") + ambient_floor = (134**451).bit_length()-1 + check(Q(h+ambient_floor,h)**p > Q(base["uniform"]["ambient_power"][1]), "all base ranks") + top, bottom = (H+h)**p,h**p + J = (top//bottom).bit_length() + loss = Q(J,H) + check(J == proof["uniform_J"] == 1218 and loss == Q(proof["uniform_loss"]) and + (bottom << (J-1)) <= top < (bottom << J) and (H+h)*loss > 2*p, "least integer loss and tail") + seven_stages(base,loss,CAP,check) + check(Q(previous["uniform_loss"]) == Q(1257,H), "fixed power-32 charge") + old_claim, claim = Q(previous["candidate_grid_claim"]),Q(CLAIM) + ceiling = Q(base["raw_crossing"][1]) - Q(previous["uniform_loss"]) - Q(7,10**14) + check(Q(CAP) == Q(proof["cap"]) and claim == Q(proof["candidate_grid_claim"]) and + claim > ceiling > old_claim and ceiling == Q(proof["old_cover_forgiven_upper"]) and + claim-ceiling == Q(proof["separation"]), "complete signed separation") + check(claim-old_claim == Q(proof["absolute_gain"]) == Q(3,10**14) and + 100*(claim-old_claim)/old_claim == Q(proof["exact_relative_percent"]), "exact predecessor gain") + return {"installed": CAP,"old_fixed_loss_ceiling": str(ceiling)} + + +def run(source, work, legacy, seven_stages, base): + check, digest = legacy["check"], legacy["digest"] + weighted, previous = HERE/"RESULT.json", HERE/"MINIMUM.json" + check(digest(weighted) == "f2218a9eb212ef7f0ae1c993297df50c401bb6b24537318c2570cea54d6d2b92" and + digest(previous) == "b8a72fc639fecfe4a815421413ff2d47aa7c65d96b35339285be67c557fbdac5" and + digest(HERE/"LOG-MOMENTS.md") == "f4a067517ebf1db95b3179f30c4f0ec284666052469ed3502f0eb8cbbc4dc131", + "pinned first moment, power-32 result and second-moment proof") + proof = json.loads((HERE/"SECOND.json").read_bytes()) + bound = component(base,json.loads(weighted.read_bytes()),json.loads(previous.read_bytes()),proof,seven_stages,check) + outer = work/"second-consumer" + full = legacy["consumer"](source,outer,bound,cap=CAP,expected_claim=CLAIM,expected_hashes=HASHES) + audit = work/"second.json" + subprocess.run([sys.executable,"-IB",HERE/"second_audit.py",source,weighted,previous,audit,"--outer",outer], + check=True) + check(json.loads(audit.read_bytes()) == proof and Q(full["tested"]) == Q(proof["candidate_tested"]) + and Q(full["delta"]) == Q(159,10**14), "independent second-moment audit with actual consumer") + print("PASS_COMPLETE_SECOND_MOMENT",f"claim={full['claim']}",f"delta_vs_power32={proof['absolute_gain']}", + f"delta_vs_7863={full['delta']}",flush=True) + return full diff --git a/research/bit-451-carrier-cover/weighted/second_audit.py b/research/bit-451-carrier-cover/weighted/second_audit.py new file mode 100644 index 0000000000..7f8f411533 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/second_audit.py @@ -0,0 +1,131 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""One tensor-second-moment decision by direct power-series convolution.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +from math import comb +from pathlib import Path +import json +import signal + + +PINS={ + 'BIT-451.json':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749', + 'weighted/RESULT.json':'f2218a9eb212ef7f0ae1c993297df50c401bb6b24537318c2570cea54d6d2b92', + 'minimum_result':'b8a72fc639fecfe4a815421413ff2d47aa7c65d96b35339285be67c557fbdac5', + 'LOG-MOMENTS.md':'f4a067517ebf1db95b3179f30c4f0ec284666052469ed3502f0eb8cbbc4dc131', +} + + +def check(test, reason): + if not test: + raise ValueError(reason) + + +def pinned_json(path, key): + raw=path.read_bytes() + check(sha256(raw).hexdigest()==PINS[key],key) + return json.loads(raw) + + +def differences(values): + out=[] + while values: + out.append(values[0]) + values=[y-x for x,y in zip(values,values[1:])] + return out + + +def bounded_tensor_mean(src,weighted): + v=451 + paid={int(k):n for k,n in src['native']['paid'].items()} + check(v==src['partition']['factors'] and max(paid)==56 and 56<11**2,'Y<=2') + check(F(weighted['mean_plus_tail_ceiling_15dp'])eta_hi,'previous height-five control') + # Coefficients of exp(Az) times the g+1-th power of the formal moment + # series, scaled by i!; no probability distribution for mu is assumed. + values=[A**i for i in range(p+1)] + numer=[];denom=[] + for g in range(p+1): + values=[sum(comb(i,k)*values[i-k]*mu[k] for k in range(i+1)) for i in range(p+1)] + numer.append(values[p]) + denom.append((B+g*beta)**p) + new_g5=numer[5]/denom[5] + check(new_g5=0 for x in ncoeff) and all(x>0 for x in dcoeff),'direct Newton differences') + ratios=[n/d for n,d in zip(ncoeff,dcoeff)] + maximum=max(ratios) + check(maximumF(src['uniform']['ambient_power'][1]),'complete base') + J=(((H+h)**p)//h**p).bit_length() + check(h**p*2**(J-1)<=(H+h)**p2*p,'integer uniform budget and tail') + d=F(1,H*2**44) + check(F(src['cover_and_stock']['bad_surcharge_upper'])tested>claim>old_upper>old_claim,'previous complete ceiling') + return dict(pins=PINS,h=h,p=p,raw_M2=str(M2),paid_excess_upper=str(eps_cap), + post_split_M2_upper=str(m2_cap),moment_bounds=['1','3/4','3/5 for every integer i>=2'], + old_height_5=str(old_g5),new_height_5=str(new_g5),eta_lower=str(eta_lo), + peak_index=ratios.index(maximum),maximum_ratio=str(maximum),all_ratios=list(map(str,ratios)), + uniform_J=J,uniform_loss=str(F(J,H)),stages=stages,cap=str(cap), + candidate_grid_claim=str(claim),candidate_tested=str(tested),old_cover_forgiven_upper=str(old_upper), + separation=str(claim-old_upper),absolute_gain=str(claim-old_claim), + exact_relative_percent=str(100*(claim-old_claim)/old_claim)) + + +def bind(result, directory): + r=json.loads((directory/'receipt.json').read_bytes());a=json.loads((directory/'APPLICATION.json').read_bytes()) + u=json.loads((directory/'AUDIT.json').read_bytes()) + check(F(r['cap'])==F(a['binary_ordinary'])==F(u['outer']['pinned_binary_cap'])==F(result['cap']),'cap') + check(F(r['claim'])==F(a['application']['claim'])==F(result['candidate_grid_claim']),'claim') + check(F(r['tested'])==F(u['outer']['finite_compiler']['tested'])==F(result['candidate_tested']),'tested') + for k in ('APPLICATION.json','AUDIT.json'): + check(sha256((directory/k).read_bytes()).hexdigest()==r['output_sha256'][k],k) + + +if __name__=='__main__': + signal.alarm(60) + parser=ArgumentParser(description=__doc__) + for k in ('root','weighted','minimum','out'):parser.add_argument(k,type=Path) + parser.add_argument('--outer',type=Path) + args=parser.parse_args() + check(sha256(Path(__file__).with_name('LOG-MOMENTS.md').read_bytes()).hexdigest()==PINS['LOG-MOMENTS.md'],'theorem') + result=verify(pinned_json(args.root/'BIT-451.json','BIT-451.json'),pinned_json(args.weighted,'weighted/RESULT.json'), + pinned_json(args.minimum,'minimum_result')) + if args.outer:bind(result,args.outer) + args.out.write_text(json.dumps(result,indent=2)+'\n') + print('PASS_451_SECOND_LOG_MOMENT',result['peak_index'],result['uniform_J'],result['candidate_grid_claim']) diff --git a/research/bit-451-carrier-cover/weighted/verify.py b/research/bit-451-carrier-cover/weighted/verify.py new file mode 100644 index 0000000000..3750024675 --- /dev/null +++ b/research/bit-451-carrier-cover/weighted/verify.py @@ -0,0 +1,189 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Rebuild the signed 451-factor application with its weighted-exit leaf bound.""" +from fractions import Fraction as Q +from math import comb +import json +import os +from pathlib import Path +import runpy +import subprocess +import sys +import tempfile + +HERE = Path(__file__).resolve().parent +PARENT = HERE.parent +PRIOR = PARENT / "normalized/ENDPOINT.json" +LAW = HERE / "WEIGHTED-EXITS.md" +CAP = "0.00387992804467760" +CLAIM = "0.00387992804459" +HASHES = { + "APPLICATION.json": "72f03c3fc0131547ce7287180bf6d4ead12611a5c85d57adfd22bf997f1792e8", + "AUDIT.json": "6baac0f0fca38d1b64a42950d0862f01916a5d81db94795bb395b6cec338bf55", + "adapter/binary/FINITE.json": "32c38a55b268278754fb257ae9f8c46ed08129df7d3f9275c90e62ab4b3fc1ef", +} + +MIN_CAP = "0.00387992804510259" +MIN_CLAIM = "0.00387992804502" +MIN_HASHES = { + "APPLICATION.json": "352b7a0f315109de8aeac4e5d2658e113e059223375dda89e854aedbe147512c", + "AUDIT.json": "1117059e87a68af9f12e5fc756bd067efe2bbac88a1e368be1a24eebba8f3660", + "adapter/binary/FINITE.json": "c0d0d59aab0cab2e0e014010b3c73ba25c9c6adfe8426a5195f3d27ce178387e", +} + + +def falling_ratios(p, q, a, b, beta): + # Stirling numbers convert the ordinary powers to falling factorials. + stirling = [[1]] + for n in range(1, p + 1): + previous = stirling[-1] + [0] + stirling.append([0] + [j*previous[j] + previous[j-1] for j in range(1, n+1)]) + ratios = [] + for j in range(p+1): + numerator = denominator = Q(0) + for i in range(j, p+1): + weight = comb(p,i) * stirling[i][j] + numerator += weight * (q*(a+1)**(p-i) + (1-q)*a**(p-i)) + denominator += weight * b**(p-i) * beta**i + if denominator <= 0 or numerator < 0: + raise ValueError("invalid falling-factorial coefficient sign") + ratios.append(q**j * numerator / denominator) + return ratios + + +def component(base, prior, proof, seven_stages, check): + p, h = 45, 1804 + q, a, b, beta = Q(3,4), Q(7,6), Q(319,100), Q(23,20) + check((proof["p"], proof["h"], Q(proof["q"]), Q(proof["A_bar"]), + Q(proof["B_under"]), Q(proof["beta"])) == (p,h,q,a,b,beta), "fixed coefficient input") + check(0 < Q(proof["mean_plus_tail_ceiling_15dp"]) < q, "audited paid-log mean and tail") + H = base["uniform"]["H"] + paid, productive, ambient = 11**451, 16**451, 134**451 + check((2**h)**a.denominator <= paid**a.numerator and + ((2**h)*ambient)**b.denominator >= paid**b.numerator and + productive**beta.denominator >= paid**beta.numerator, "logarithm enclosures") + ratios = falling_ratios(p,q,a,b,beta) + eta = Q(base["uniform"]["eta"][0]) + check(len(ratios) == proof["coefficients"] == 46 and + ratios == [Q(x) for x in proof["all_ratios"]], "all Stirling and Newton ratios agree") + largest = max(ratios) + check(Q(proof["eta_lower"]) == eta and largest < eta and + ratios.index(largest) == proof["maximum_index"] == 7 and largest == Q(proof["maximum_ratio"]), + "worst coefficient") + check(Q(h + ambient.bit_length() - 1,h)**p > Q(base["uniform"]["ambient_power"][1]), "all base ranks") + top, bottom = (H+h)**p, h**p + J = (top//bottom).bit_length() + loss = Q(J,H) + check(J == proof["uniform_J"] == 1768 and bottom << (J-1) <= top < bottom << J and + loss == Q(proof["uniform_loss"]) and loss*(H+h)>2*p, "least integer charge and entire tail") + check(Q(prior["uniform_loss"]) == Q(2218,H) and Q(prior["charged_cover_loss"]) == Q(1,H*2**44), + "inherited endpoint charge and physical cover") + seven_stages(base,loss,CAP,check) + ceiling = Q(base["raw_crossing"][1]) - Q(prior["uniform_loss"]) - Q(7,10**14) + claim, previous = Q(CLAIM), Q(prior["candidate_grid_claim"]) + check(claim > ceiling > previous and Q(proof["cap"]) == Q(CAP) and + Q(proof["candidate_grid_claim"]) == claim and Q(proof["old_cover_forgiven_upper"]) == ceiling and + Q(proof["separation"]) == claim - ceiling, "directed separation from previous method") + check(claim-previous == Q(proof["absolute_gain"]) == Q(37,10**14) and + 100*(claim-previous)/previous == Q(proof["exact_relative_percent"]), "prior and exact increase") + return {"installed": CAP, "old_fixed_loss_ceiling": str(ceiling)} + + + +def minimum_component(base, prior, proof, seven_stages, check): + p, h, g = 32, prior["h"], 5 + q, a, b, beta = map(Q, (prior["q"],prior["A_bar"],prior["B_under"],prior["beta"])) + eta_low, eta_high = map(Q,base["uniform"]["eta"]) + check((p,h,g) == (proof["p_minimum"],proof["normalization"],proof["negative_height"]) and + proof["tail_shift"] == 0 and proof["failed_previous_power"] == p-1, "fixed minimum-power test") + check(0 < q < 1 and 0 < a and a+1 < b and beta >= 1, + "every normalized realization lies between zero and one for every height") + ratios = falling_ratios(p,q,a,b,beta) + largest = max(ratios) + check(not proof["prefix_ratios"] and len(ratios) == 33 and ratios == list(map(Q,proof["shifted_ratios"])), + "33 unshifted Stirling and Newton coefficients agree") + check(eta_low == Q(proof["eta_lower"]) and largest == Q(proof["uniform_contraction_bound"]) and + ratios.index(largest) == 6 and largest < eta_low, "maximum contraction ratio") + # At this particular height a failing ratio at p-1 excludes all smaller + # nonnegative powers because every realized normalized base is in (0,1). + n = g+1 + failure = sum(comb(n,k)*q**k*(1-q)**(n-k)*((a+k)/(b+beta*g))**(p-1) for k in range(n+1)) + check(failure == Q(proof["negative_ratio"]) and + failure > eta_high == Q(proof["eta_upper"]), "preceding power fails at height five") + H = base["uniform"]["H"] + ambient = 134**451 + check(Q(h+ambient.bit_length()-1,h)**p > Q(base["uniform"]["ambient_power"][1]), "entire base interval") + top, bottom = (H+h)**p, h**p + J = (top//bottom).bit_length() + loss = Q(J,H) + check(J == proof["uniform_J"] == proof["minimum_loss_at_this_power"] == 1257 and + (bottom << (J-1)) <= top < (bottom << J) and loss == Q(proof["uniform_loss"]) and + (H+h)*loss > 2*p, "minimal integral charge and all widths above carrier") + check(Q(prior["uniform_loss"]) == Q(1768,H), "predecessor power-45 fixed loss") + seven_stages(base,loss,MIN_CAP,check) + ceiling = Q(base["raw_crossing"][1]) - Q(1768,H) - Q(7,10**14) + old, claim = Q(prior["candidate_grid_claim"]), Q(MIN_CLAIM) + check(Q(proof["cap"]) == Q(MIN_CAP) and Q(proof["candidate_grid_claim"]) == claim and + ceiling == Q(proof["old_cover_forgiven_upper"]) and claim > ceiling > old and + claim-ceiling == Q(proof["separation"]), "directed comparison with p=45") + check(claim-old == Q(proof["absolute_gain"]) == Q(43,10**14) and + 100*(claim-old)/old == Q(proof["exact_relative_percent"]), "exact prior improvement") + return {"installed": MIN_CAP, "old_fixed_loss_ceiling": str(ceiling)} + + +def main(): + if sys.version_info[:2] != (3,12) or not __debug__: + raise RuntimeError("use CPython 3.12 with assertions") + for name in ("OPENBLAS_NUM_THREADS","OMP_NUM_THREADS","MKL_NUM_THREADS","VECLIB_MAXIMUM_THREADS"): + os.environ[name] = "1" + old = runpy.run_path(str(PARENT/"verify.py")) + check, digest = old["check"], old["digest"] + check(digest(PRIOR) == "ff9cf4ca87fa4480daac4c93aa1fa5744f5eec97385c7bae203ca2d3d874d0d9", + "previous complete endpoint at #8026 2f82ecc8") + check(digest(LAW) == "28e0308f315a583282291fa01998d53a874b4b7e3073cacc3ddbb38c5a7f66c7", + "weighted-exit induction") + seven_stages = runpy.run_path(str(PARENT/"verify_majorant.py"))["seven_stage_bound"] + prior = json.loads(PRIOR.read_bytes()) + expected = json.loads((HERE/"RESULT.json").read_bytes()) + with tempfile.TemporaryDirectory() as tmp: + work = Path(tmp) + source = old["extract"](work) + subprocess.run([sys.executable,"-IB",source/"replay_451.py"],cwd=source,check=True) + rebuilt = source/"replay/BIT-451.json" + check(digest(rebuilt) == old["BASE_RECEIPT"] == digest(source/"BIT-451.json"), "original signed supplier") + base = json.loads(rebuilt.read_bytes()) + check(digest(source/old["BRIDGE"]) == "9731b93026717f5fa15851e3633cbb4bdc76eba2bffb9d6b4a3b69f7dd502443", + "delayed-cover source") + old["supplier"](base) + bound = component(base,prior,expected,seven_stages,check) + outer = work/"consumer" + full = old["consumer"](source,outer,bound,cap=CAP,expected_claim=CLAIM,expected_hashes=HASHES) + audited = work/"weighted.json" + subprocess.run([sys.executable,"-IB",HERE/"audit.py",source,PRIOR,LAW,audited,"--outer",outer],check=True) + check(json.loads(audited.read_bytes()) == expected, "recomputed independent arithmetic and signed outer receipt") + check(Q(full["tested"]) == Q(expected["candidate_tested"]) and + Q(full["delta"]) == Q(113,10**14), "signed consumer comparison with #7863") + print("PASS_COMPLETE_WEIGHTED_EXITS", f"claim={full['claim']}", + f"delta_vs_endpoint={expected['absolute_gain']}", f"delta_vs_7863={full['delta']}", flush=True) + + check(digest(HERE/"RESULT.json") == "f2218a9eb212ef7f0ae1c993297df50c401bb6b24537318c2570cea54d6d2b92", + "complete power-45 predecessor at #8026 a24daf62") + minimum = json.loads((HERE/"MINIMUM.json").read_bytes()) + min_bound = minimum_component(base,expected,minimum,seven_stages,check) + min_out = work/"minimum-consumer" + result = old["consumer"](source,min_out,min_bound,cap=MIN_CAP,expected_claim=MIN_CLAIM, + expected_hashes=MIN_HASHES) + min_audit = work/"minimum.json" + subprocess.run([sys.executable,"-IB",HERE/"minimum_audit.py",source,HERE/"RESULT.json",min_audit, + "--power","32","--shift","0","--failed-height","5","--outer",min_out],check=True) + check(json.loads(min_audit.read_bytes()) == minimum and + Q(result["tested"]) == Q(minimum["candidate_tested"]) and + Q(result["delta"]) == Q(156,10**14), "independent minimum-power result and signed consumer") + print("PASS_COMPLETE_WEIGHTED_MINIMUM", f"claim={result['claim']}", + f"delta_vs_power45={minimum['absolute_gain']}", f"delta_vs_7863={result['delta']}", flush=True) + + second = runpy.run_path(str(HERE/"second.py")) + second["run"](source, work, old, seven_stages, base) + + +if __name__ == "__main__": + main() diff --git a/research/bit-451-height-dependent-sources/CAPPED.json b/research/bit-451-height-dependent-sources/CAPPED.json new file mode 100644 index 0000000000..9de0fee1b8 --- /dev/null +++ b/research/bit-451-height-dependent-sources/CAPPED.json @@ -0,0 +1,96 @@ +{ + "case": { + "p": 18, + "h": 1804, + "B": "5/2", + "x_split": "7/8", + "height_cut": 32 + }, + "pins": { + "round321/benchmark/producer/BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "round336/independent/receipt.json": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818", + "round339/independent/receipt.json": "41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e", + "round341/independent/receipt-with-minimum.json": "42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd" + }, + "events": [ + { + "utc": "2026-11-21T16:44:26.910+00:00", + "stage": "single discovery start", + "elapsed": 7.687509059906006e-05 + }, + { + "utc": "2026-11-21T16:44:26.911+00:00", + "stage": "complete price and terminal limit", + "elapsed": 0.0010594585910439491 + }, + { + "utc": "2026-11-21T16:45:08.476+00:00", + "stage": "both nonroot branches", + "elapsed": 41.5601277500391 + }, + { + "utc": "2026-11-21T16:45:32.192+00:00", + "stage": "discovery closed", + "elapsed": 65.27467887569219 + } + ], + "discovery_budget_seconds": 45, + "total_budget_seconds": 60, + "price": { + "p": 18, + "h": 1804, + "J": 708, + "base": true, + "carrier": true, + "tail": true, + "covered": "51294696636342945020066659727/13220527812378624000000000000000", + "stages": [ + [ + "387981825337694093413/100000000000000000000000", + "5978432366657/3442845784473600000000000000000000000" + ], + [ + "3879927606390448697867/1000000000000000000000000", + "540733298763709/430355723059200000000000000000000000000" + ], + [ + "1939964021901251364461/500000000000000000000000", + "2591774005823153/2151778615296000000000000000000000000000" + ], + [ + "1939964022776075472523/500000000000000000000000", + "3065165301188273/2151778615296000000000000000000000000000" + ], + [ + "387992804555914953791/100000000000000000000000", + "4132447494375089/2151778615296000000000000000000000000000" + ], + [ + "1939964022779588766141/500000000000000000000000", + "592375985530813/430355723059200000000000000000000000000" + ], + [ + "3879928045559177644259/1000000000000000000000000", + "4011947891918513/2151778615296000000000000000000000000000" + ] + ], + "cap": "387992804555917/100000000000000000", + "tested": "193996402277/50000000000000", + "claim": "387992804547/100000000000000", + "old_ceiling": "129589596718489/33400000000000000", + "change": "3/100000000000000", + "separation": "209/33400000000000000", + "passed": true + }, + "terminal": { + "ratio": "5503927677819268750900040417908600544889733961049001/12375453605252259389115787506103515625000000000000000000", + "capacity": "188887219560768857828191657200313519/400000000000000000000000000000000000000" + }, + "nonroot": { + "band_distance": "148475924225776889/1000000000000000000", + "completed_fraction_lower": "21168951223748822475216075606518321000000000000000/22045100074698662520316150305158796216075606518321", + "partial_group_lower": "1710517419740277487590003/625000000000000000000000", + "admitted_band_group_lower": "54507550529695045020487983/5000000000000000000000000" + }, + "decision": "CAPPED_UNRESOLVED" +} diff --git a/research/bit-451-height-dependent-sources/LICENSE b/research/bit-451-height-dependent-sources/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/bit-451-height-dependent-sources/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/research/bit-451-height-dependent-sources/PROOF.md b/research/bit-451-height-dependent-sources/PROOF.md new file mode 100644 index 0000000000..222e49e169 --- /dev/null +++ b/research/bit-451-height-dependent-sources/PROOF.md @@ -0,0 +1,15 @@ +# A height-dependent complement bound for power 18 + +The independent component certifies all-size paid contraction at p=18, h=1804 on R341's unchanged 451-factor signed input. The strict carrier debit drops to 708/H. Seven ordinary stages give a cap of 0.00387992804555917. The independently checked signed test point is 0.00387992804554, and the claim is 0.00387992804547: 0.00000000000003 above the preceding complete claim, with separation 209/33400000000000000 above its relaxed ceiling. Independent binding matched this price to the fully replayed signed consumer under the five declared premises. Both this and the prior good R341 consumer passed 54 strict and four functional checks, with identical forward/adjoint signatures across 1,661,521 coefficients each way. The low-cap and extra-rank-one controls were authenticated. Hosted evaluation must be attributed to its actual published head. + +Write A=134^451, K=16^451, J=11^451, δ=0.003879928046148, t=1−δ, η=tA^(t−1), and B=5/2. For each top n≥A, let G be its maximal degree. Because K is attained by literal target tuples and retained, n=A·K^G·x with 1≤xB. For L≥9^451 every old raw label with rank in [4^451,9^451] is admitted and unchanged, since 9^451L and r≥1. The verified lower 1+f(4^(451δ)−1)>B applies without equating independent arrays, borrowing exit mass, or treating split descendants as independent. Equality at either rank endpoint is included. + +**Root and exit comparison.** In the root, total source t-mass is R_G=T_t Σ_admitted u(a)c(a)^t with retained-unit moments T. Inserting (K^(G+1)/c(a))^w≥1 at w=17/50 and extending to all degree-G indices gives R_G≤T_t K^(w(G+1)) T_(t−w)^G. Both retained target moments are bounded by their original v-fold raw moments. Every paid path of length G+1 actually exists, including root G=0; retained separation permits every parent to be served and the terminal multi-index has unit multiplicity. Therefore the complete exit t-mass before source normalization is exactly Q^(G+1) with Q the completed-unit paid t-moment. Positive paid subdivision bounds Q below by its unsplit value. The actual *total source* t-mass is at least this exit mass by internal cancellation of the strictly productive mixed-unit balance; the argument does not assume equality of exits and root sources. With α_lower for raw P_t/T_t, and λ_upper for 16^w T_(t−w)/T_t, the resulting root fraction is at most min(1,u_G), where u_G=K^w α_lower^(−451) [(λ_upper/α_lower)^451]^G. Rounding the prefactor and per-height multiplier upwards to dyadics, and checking the latter <1, yields a decreasing upper bound even when actual root counts fluctuate. + +**Two x regions.** For x≤K^(7/8), all retained root indices have c(a)≥K^G and hence n/(A c(a))≤K^(7/8). The R341 root lower gains an extra factor K^(δ/8), which the verifier compares to B after multiplying by b. Nonroots also have factor B, so normalized source capacity Bη suffices. For x>K^(7/8), the logarithmic denominator is bounded below by (319/100+(23/20)(G+7/8))^18, using the same lower constants as the original source proof. The complement factor is at least B−(B−b)min(1,u_G): substitute the root share upper into total source capacity B·source_mass−(B−b)·root_mass. G=0 with entirely root sources is included. No premise about root multiplicity monotonicity or statistical independence between root and exit mass is needed. + +**Finite verification of every height.** The independent algorithm lifts all 19 coordinatewise formal upper moments to integer numerators with a common denominator, multiplies one moment-convolution kernel per paid path level, and constructs C(G) at exactly G=0 through 50. This uses positive convolution, not probabilistic realizability of the upper sequence. Independent integer forward differences produce the 19 degree-18 Newton coefficients at shifts 0 and 32. The lower-x coefficients are all strictly below Bη times their corresponding positive denominator coefficient. For the upper-x range the 32 direct ratios for G=0,…,31 are all strictly below the height-specific capacity; beyond 31 the 19 translated coefficients all fit the conservative capacity at 32. Every later integer binomial basis term is nonnegative. These finitely many strict comparisons give a uniform margin; the tail's root-share upper only decreases. Omitting the upper-region denominator improvement fails at a finite height. The case did not modify or search over any threshold, height or physical H. + +The 60-second-capped independent arithmetic completed in 0.040 s on CPython 3.12. Source branches and terminal costs are inherited from the pinned #7863 schedule and R339/R341 artifacts. Credit Jacob Alan Sussman's exact Pascal flow, zxv's #4359/#4480 finite compiler and weighted exits, DreamingOfClouds's retained ambient/cover, Clear1nsight's #7863/#7973 supplier and replay, and prior #8026 paid moment, source-complement and signed consumer works. [Integer flow](https://github.com/CrocSwap/integer-mult-bounds/blob/e54523517d0f03e58352e647c403a5af3e525a57/research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md) · [Original weighted proof](https://github.com/CrocSwap/integer-mult-bounds/blob/4cf054a50c5718616594ec4ca2c9114278120a8b/research/net-tax-rank-compiler/WEIGHTED-EXITS.md) diff --git a/research/bit-451-height-dependent-sources/README.md b/research/bit-451-height-dependent-sources/README.md new file mode 100644 index 0000000000..8cb551270a --- /dev/null +++ b/research/bit-451-height-dependent-sources/README.md @@ -0,0 +1,40 @@ +# Height-dependent source capacity for the 451-factor multiplier + +The existing fixed-multitape algorithm returns the exact product of every pair of n-bit integers in time O(n (log n)^(1−κ)) with **conditional κ = 0.00387992804554**. This change improves the proof of its ordinary BIT cost. It preserves the finite supplier, caller, productive ownership and five inherited premises. [Small-remainder proof](small-remainders/PROOF.md) · [Independent power-16 certificate](small-remainders/RESULT.json) + +| Complete comparator | Previous κ | Exact increase | Percentage increase, rounded | Exact percentage | +|---|---:|---:|---:|---:| +| [Preceding #8026 power-17 proof](https://github.com/CrocSwap/integer-mult-bounds/blob/6dd295cb133c35e7ea14d744644ca77d8ffaa6ed/research/bit-451-height-dependent-sources/three-cells/RESULT.json) | 0.00387992804551 | 0.00000000000003 | 0.000000000773210215450% | (300/387992804551)% | +| [External #7863 supplier](https://github.com/CrocSwap/integer-mult-bounds/commit/b3e4412fe01f07dc58305616fabf96345f49a781) | 0.00387992804346 | 0.00000000000208 | 0.0000000536092416328711% | (10400/193996402173)% | + +Peer #8027 reports conditional κ ≥ 0.00389011507650 from paired P104 suppliers at `fb9b6a7b0d27da1cf98430893a3016bf811e2aa4`. That reported rate exceeds the original-word rates in this table. This package verifies the improvement over the power-17 predecessor on the fixed 451-factor supplier. The #8027 reproduction is a separate investigation. [Peer claim and construction](https://github.com/CrocSwap/integer-mult-bounds/pull/8027) · [Exact peer head](https://github.com/CrocSwap/integer-mult-bounds/commit/fb9b6a7b0d27da1cf98430893a3016bf811e2aa4) + +For the frozen slab split, each original paid tuple contributes at most one positive label of rank at most (7/5)^451. A full slab has rank 11^451 and lies above that threshold. This bounds the total small-label count by 107460^451, counting every chronological original label at its actual multiplicity. The complete raw paid cost of the admitted rank-at-most-five factor alphabet supplies a denominator lower bound. Together with the inherited high-range paid estimate, this admits a nonroot multiplier of six. Five input-size cells and two directed root tilts certify power 16 in 128 direct height comparisons and 85 Newton comparisons. The uniform loss falls to 629/H, giving cap 0.00387992804562487 and signed test 0.00387992804561. The reported claim exceeds the power-17 relaxed ceiling by 19/1800000000000000. Testing G=16 before the endpoints resolved no separate timing question. [Counting proof](small-remainders/PROOF.md) · [Independent receipt](small-remainders/RESULT.json) + +## Preceding three-cell bound + +At unchanged scale 1804, three input-size ranges separated by K^(5/6) and K^(11/12) admit p=17. A narrower paid band supports a nonroot multiplier of four. Each of the two upper size ranges has its own bound on the root share at every height. The independent verifier reconstructs all 452 comparison atoms, checks 64 direct heights and 54 Newton coefficients, and includes the full positive split surcharge. The uniform loss falls from 708/H to 668/H. Seven strict ordinary stages give cap 0.00387992804559244. The complete signed consumer tests 0.00387992804558. Its new claim clears the predecessor's relaxed complete ceiling by exactly 277/20040000000000000. [Three-cell proof and credit](three-cells/PROOF.md) · [Matched signed applications](three-cells/SIGNED.json) + +## Preceding two-cell bound + +At fixed p=18 and scale 1804, a rank band of unmodified paid siblings proves a factor of 5/2 for nonroot inputs. For root inputs the argument separates the two input-size ranges at x=K^(7/8), where K=16^451 and n=134^451 K^G x. The upper range bounds root weight relative to the total source mass by a decreasing geometric upper bound. The verifier checks 19 Newton coefficients in the first region, all 32 initial heights in the second region, and 19 translated coefficients for the tail from height 32. Dropping the improved denominator in the upper region fails at a finite height. The signed carrier loss falls from 747/H to 708/H. After all seven ordinary stages, the cap is 0.00387992804555917 and the complete application tests 0.00387992804554. The new claim exceeds the old relaxed ceiling by exactly 209/33400000000000000. [All-height inequalities](PROOF.md) · [Signed receipts](SIGNED.json) + +## Reproduction + +Run from the repository root on POSIX with CPython 3.12 and its standard library. + +```sh +python3.12 -IB scripts/research_package.py --package research/bit-451-height-dependent-sources +``` + +This command authenticates and unpacks the original 202-entry #7863 source manifest, regenerates the native 36-call supplier and first reproduces the known-good power-19 complete application. It runs two independent arithmetic implementations of the height-dependent proof, checks all 70 rows, and cold-replays the 48-call rational consumer for the new cap, including both signed orientations, all 54 strict and four functional checks, precision, tape, and the low-cap and extra-paid-call controls. For both calls it checks all five generated scientific file hashes. The original archive and scientific controls come from the pinned companion package. The power-18 marker is `PASS_COMPLETE_HEIGHT_DEPENDENT_SOURCE claim=0.00387992804547`. The same command reuses the native source and known-good power-18 application, compares both implementations on all 118 power-17 rows and cold-replays only the new signed caller. The power-17 marker is `PASS_COMPLETE_THREE_CELL_SOURCE claim=0.00387992804551`. The new signed application SHA-256 is `1a3b13e7a25be5329d24cbf013e2b6001192507d75671dad5421a96da62bc5d1` and its expanded audit SHA-256 is `531e7c8fc860ff0dba3ff49361b4559980ad30bf4de22615b86d260a076f8ae8`. [Exact prior files](SOURCES.json) · [Registered verification](VERIFY.json) + +The final power-16 replay shares the native reconstruction and uses the completed power-17 signed application as its positive control. The power-17 primary receipt is authenticated over every scientific field after removing run timestamps and supervisor diagnostics. Both signed applications are checked against all five original file hashes. The final marker is `PASS_COMPLETE_SMALL_REMAINDER_SOURCE claim=0.00387992804554`. The new application SHA-256 is `b6c7e6331429d2a90a3229cb2b29220dd9d0ffc75de067aab5b5fa0300216f23` and the expanded audit SHA-256 is `17ac71c0acef819791cfa002875a8f5e6c0f3c1461567eeac571bad6e88c97e7`. [Signed control and result](small-remainders/SIGNED.json) + +The original Round 342 primary run stopped after confirming the full projected price, limiting guard and both nonroot guards. Its 45-second discovery alarm was delivered after an expensive conversion of a decimal neighbour of zero into a rational. The run finished in 65.275 seconds and did not verify a finite height or a Newton coefficient. Round 343 made log(1) exactly zero, kept the case and prior completed values pinned, and reproduced all 70 rows under a 45-second supervisor deadline. The independent rational evaluator and signed replay had already completed. This same frozen case contributes one gain. [Original capped receipt](CAPPED.json) · [Corrected screen](screen.py) · [Independent proof](audit.py) + +The five premises cover native action on all columns, owned erasure, compiler closure, precision and tape, and analytic recovery. The physical seven-stage transfer still requires the original and nested stock to return at every stage. The selected record on main remains #7000. Clear1nsight supplied the #7863 schedule and #7973 consumer replay, Jacob Alan Sussman the finite Pascal compiler, DreamingOfClouds the ambient and cover argument, zxv the finite compiler and weighted induction, JoyboyBrian earlier paid rank and clipping bounds, and Ali Romman the paired caller and all-height framework. Earlier #8026 proofs supplied the paid variance, complete moments and source counts. OpenAI Codex materially assisted the proof, code and independent replay. [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) · [#4359](https://github.com/CrocSwap/integer-mult-bounds/pull/4359) · [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#5042](https://github.com/CrocSwap/integer-mult-bounds/pull/5042) · [#5070](https://github.com/CrocSwap/integer-mult-bounds/pull/5070) + +## Open next questions + +Could power 15 at h=1804 succeed with a source multiplier of nine? First price the entire seven-stage service and test the limiting ratio and all root and nonroot source ranges at the fixed carrier. Any surviving comparison still needs an independent all-height proof and complete signed replay. diff --git a/research/bit-451-height-dependent-sources/RESULT.json b/research/bit-451-height-dependent-sources/RESULT.json new file mode 100644 index 0000000000..588420aff5 --- /dev/null +++ b/research/bit-451-height-dependent-sources/RESULT.json @@ -0,0 +1,243 @@ +{ + "pins": { + "bit": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "grid": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818", + "mean": "41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e", + "old": "42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd", + "closure": "b7dd2e5829fa794e89b7cb7813ee45a0b4301feb508019f7b00062ba81f8b166" + }, + "p": 18, + "h": 1804, + "uniform_J": 708, + "uniform_loss": "59/100200000000000", + "cap": "0.00387992804555917", + "candidate_grid_claim": "387992804547/100000000000000", + "candidate_tested": "193996402277/50000000000000", + "old_relaxed_ceiling": "129589596718489/33400000000000000", + "separation": "209/33400000000000000", + "absolute_gain": "3/100000000000000", + "stages": [ + "387981825337694093413/100000000000000000000000", + "3879927606390448697867/1000000000000000000000000", + "1939964021901251364461/500000000000000000000000", + "1939964022776075472523/500000000000000000000000", + "387992804555914953791/100000000000000000000000", + "1939964022779588766141/500000000000000000000000", + "3879928045559177644259/1000000000000000000000000" + ], + "smallL_guard": "909467056638621895682199668554192449/332306998946228968225951765070086144", + "band_fraction": "21168951223748822475216075606518321000000000000000/22045100074698662520316150305158796216075606518321", + "band_guard": "1811324053643289356447047273755695715/166153499473114484112975882535043072", + "small_x_guard": "2269896169345630346698346314915270725/664613997892457936451903530140172288", + "multiplier": "5/2", + "root_lower": "931168363234716497/500000000000000000", + "left_ratios": [ + "67348314365126361045954050533746028312296024048774473902575805402378934754650912354800294436217841230747238400/598985200183606440620632756348054978798285442859042656133259642585503008696429041455445514083612741857376651457499", + "17238005293070293670049472700505692300712207352056712716627116943354345524933982319528397988318911462557152209225540432691200/102462790303580475652683901558995581915657037853368354245937328841333998411528454017365415928634739718448784056021164566286010297", + "28145411332345755826663377782956948743032024237575992533204952734187394959983691908488698020184173736106444890638652003230499909897551872/133625282877938612370029400324878366722309039782009121899157433265555784410510548051627661730888901357045841747652548433606513393147143035985", + "29552635406552840760138053012225350106321196633891766558151033689803456575612954363645743884128361589074452568130301998347647572232283018701684867072/121175390912633057381103409940406794143495963581190932310801172108212403579208852795008107079192403380204060998770257432642347346847674288193896053772775", + "342374752360240351766058640151761372484667081241538323912128072346773783041574433178972911839924744799144519042540486016734932802943021107058856793874838692864/1263554094139131769176032815764683302868824644482028653653855335041961724534555810950557823057046062032940242114755049207737072317407779012360656427377985473744375", + "30079832607387748310339168646299598760896678881175288970953833657266127308324484057848928024287574980091236484190247579587983656953330210957194933683433828676241951691264/102416518031662788371433404001540960336974520043931657119545223851849995944792185395948287539728588024987975913146788400240610902102100482427336813139874123899944158438863125", + "17718350187213261625624894368066708955061346423660076306777070490878733590775079527724955838569834672828308115762966654461369671540287560497202160138942847853459720970188541010024448/56560878587036427462480811779043467471412659297121277706030433818209948561877160940417636908931930200474866388814758821405419100610419899606898782151087433399226542287015577509275719125", + "324711615312999230716329092793277956527627314783108643778142874980956222134335272374709636781241737401705293632708796857671736700752787354356603098492886498930910364785370028265671656684056994824/982759174945572723412768115339592260041741981106425044085854522311842519084983879812358066349743252947214029989290999659448130785992367651578096274231836634566279454926251774762132064697122169609375", + "831066194579890371896771648156751582086050003815882775409397323089710153088797578012398703941483072972716802102127813323078100459988656386160445682541179827324478998297661928345291938510505526750037166219612/2404249215834293957409951885273319546915108046605361936815055500637938466174626224163578859756805477496161366475471828265214585129109759753412469509492657187751529411157587068110235461884383792711848425749609375", + "17457710598998022116334954541077730271069189422839355782404589215671039541014285371799174184152574016383603123105446079216742386626718719655430347731833850135353672616972827735934362352573173340141276581103/48573564164011030331521876468091287746365648120508239794951599970398647861539414697620216722744925088997547234784253145418243970230507550232853825830656230687236103698991942370903612220726524011662557978515625", + "11460467190057763357802539307858352332442744396977628605770261124792280292204777344652291126961693311779974189314526006868860470130024976513726839567968565612064279719748120251809142797/30815263214220792613582927033164760139935361025862886520699678005142857154186117321263419442437126383490050634584388948638383660475297946964130135103881496428724347064174006354666230468750", + "47026399721539836630615733950616099725529601623989398932160424321142170382271659118139895335947993771395499732528478896485706716478459982388370845394060343444039367/122663925595376032205030451016839765719307631268324178747118101190749175636544071028051499621768802564787026284900874381174820130492508421300608543173431976419531250000", + "1419683236548430253442732017668679986547074983311017138565866554874677619921715773660802744136476313833846908426437684562237528706200424489458571681/3603542091741414685568968235660361759536250348636757066301012790317149083605878448759955261550935776097063600074047676150327999646138512976562500000000", + "2334970495569332780576926176729943217146505556708082713732382135131508018522214428654188179574847095000657947903688818173597140653/5782306361021289684694297487719815559645000984118068330504286090039061485439104367960075939372002845587163375991610741210937500000000", + "488815250723620240847986640716751756432406155390493529945716920602675456392445593197485409374985203200773514014861/1183546211926153511032197702512924060378107555349463435607549397053337767893471492531534647086256808471679687500000000", + "13019262839263999680780575627685688047510863044502886913594593638278777770331394428647813175770711749/30877785927715772513750397388024886020561533574323366996357846389438136639412458984375000000000000000000", + "569008205204286450067823745041915670832949195849690266844606006714970114306631377731/1323987399868608316935256225436828467026174135634730944370877227783203125000000000000000", + "11796935715249802837685463072789808662144324189023878943054027810584979/26967181845628010774857126165561845482200180435180664062500000000000000000", + "5503927677819268750900040417908600544889733961049001/12375453605252259389115787506103515625000000000000000000" + ], + "finite": [ + { + "g": 0, + "ratio": "1213239373915256409973791392419998223706154327700944712802945516129548324288251884828589768424979739779917796376588022552985600/1500748573926460089814814411970054742782886521940191005461340212925630413245656614302710184414886983492488726496058746220229812210611", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 1, + "ratio": "42032154564358037316808763102860513644081077475963633306125254631468825217617876421883742599222093557464316415275916202744375867029510003097600/10673272961434451240481589813616206101255813697696595220720977554211855975248483073710237655646582903094175380125786914876582997024850563862889693481", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 2, + "ratio": "327558408829626789906656812899964538768894095508485029757169643102213843404962928018232117929802268027187380440450406923873408951306586500454714990398663557120/32355441432440528657425602919844434073936988144603795455848171070707047295710502134019437656261391960819673683354549371590640537950573568073759485991330758316785451", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 3, + "ratio": "6209997222000567966349152652817911675751699467685243668982256794143303919431301651115605090748825686614152447976655595372519547845638743330661299517243087071490157691535360/327198787585449776407306215158564293126883064652645658264945696685541543236257362836200169762274241751597645680038379550886171031498987044438554261245176504708067735036593044009", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 4, + "ratio": "1573304904720743424781350870276747293936112269341471300540299123006891607138913241665932065538427606653888555366854426262557591845858429221393793145434359211132419435644749363107856384000/52918098471952108926675006106483752630691566646896768403811322620884376664384276279757541972111389708257370085554991956520689602281596590528581071699820837853786733278401201362654206184601277", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 5, + "ratio": "23775361117042367033895923400331209934897425797162894280774743135624783505434008697073654981165293174564654804960441921144100152589876558316907444137799185800093549138680983126618417629299139152760012800/571041174513640710690776475793249887716397526201929636322009145248251358468838049655397759873749020262743585089203392502100619507273812506007193298042902607714093987306524259664613592897205221542287759864571", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 6, + "ratio": "410822996687199996827525670011243248393437724953317796820599846393178869538801181663926208360628341230558424228221210978298448939017982940023753260818323054359602248206893047047453537590674679260932056457388700467200/7592454036090055583299024885055250379053823628998971807807248384080978527366074530322426478236571205426670189935318912002035424805403399786953289705990246053170610621335389147537167634543287662896985301435270689574873809", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 7, + "ratio": "1902601753534273943735370663837914381779109639132623506160621815048135140221433200636621553158459797416436606626633884627686428777783538933630292956906755746536304823448029412646346739272357193442687399776546937341934745368521605120/28508312667580186452967829612465939597651025593188565426259149926019980103572847367738613925416103572297837593032420391168927126797703073240738365175095931267062812234949275053286847355198168050089711629834603049504632741369143524681973", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 8, + "ratio": "1033189051995066823385812393170675660225273502151962279774033254449264242516901540875881377278412282935820951009055293725754569229141447955295122535480070756377530657688647165231444121511068512777920140382625555318825039424023334089655785975971840/13038301997773311484368144284406676274386568221232129194014155389455484462295215770813582429203481221766606455782534511781858463453947409027502043201544561340190667890372386214617197907998165816618292892619484989517386754325927999619674631761927749583", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 9, + "ratio": "5250322040037597196899742949117294548950493270824792369487088804303250459565413686780053654444661661304003805439674625620545093964689170235522930824114742648116454801257306644322363758732693082879644080472280990010553117417426204258738590711808000/57417132720267603707524763078523980043134878508837926961794852552118171923815223737869447025070192121782750376796121138705868156717980824092442298827060034689122077938979637369467396797678106001777549992893169943453196869488029419096110477683013947423", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 10, + "ratio": "2119560371774060227859392169408078759950640724317339167644284021527865948411242686281624353291701593606791994322723195323546482611196053846911471461022752934837750007229900098600530650950935719850860918228174554613351355084376203584847539181977600/20533183798292547295602519848348892009985215381153997336995889532421819253061437133637322445759865893897707067950543182445838787115987942696955675250477834837638717500853693898669531428513387880769666485668993322642637749482933722808841465361432370733", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 11, + "ratio": "92366737753015717207762763561700821861085441542392647922302390048252023744781633505298592823798479320717559957682451020078254170484668324068651721415078371444437469888893757916839707220731980598478292169966073334109169650061288660514270928594534400/806456587733775337977968855409427182730748994618058361117883082823944362828527222863394665233464566490408627908907877168610014374367912239422504554464593769433675628864949330200561062395021405079322923793815323962335384299903304843622772054064865309503", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 12, + "ratio": "127615223088854857593038295071889250179254815499170541340158226476577645271659496874956710689418146325981226606340469144948673173293327917181525763493639439400143460747161896515560487916653477477740172829020926465028777873752131242664074281941467136/1018182478221777948084737675528820592489592946880922739531656270103292886869499218814933192171084324837556369740646886363616361745653904505732341556120459154761557804860646992879966162148786529454119765731423807114946635736058600610206184737152147696055", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 13, + "ratio": "88468556147983270366984832626674257146520582175811850938606142114094524236033853732897573524759967978883803692994258315450164965903451099914233972224391264548610561836654102496637784287197368107794570120517229521419645904606080600328919876219437056/652303043756534706069673668299831457415596203096312707672782722981792021757775646630710949252591685640794687068760292877516538485672598278743556977698398860664730677356737718231599181197908092242109352905070955238208371698161383836838208806599629423625", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 14, + "ratio": "575927362504062542766078152088175937995374057663721907114670551655060443682070273202850705024483446340202041495398670531401228831425876902560022104249139169047066566509777937890295702550793704274495707302879508593465195136851471098694152282285530939392/3960825863782236365986989314220203484229961897970990883559045943357497231663817100300953958345179052449860327507830465030905413991960866637844564517656460109338441052965642404512234771611959166379542033208861542080256406932881277418436696271234286278953125", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 15, + "ratio": "1445794958809191945927544142118117688931617883722148188870787737337981542768927493819877384263905204446240300514363778298616223092541653760410886800787410195636814450948646186159794571108255219524029983334465985956305539091013415832900360023866065308090368/9346174659806810536468547557286064975916745357506847286347920635771505288575077802449399516697321208228677550244268147817340944910664933369711292549628177117259673841592342180706038211544387695699941004323836659569962081180312385520878104566291129297365234375", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 16, + "ratio": "489118648116954530667664267343292153310827710141046460231414145852065695777308038966282182846365918616255189068447127729288047304575163713997787903436739218981251139516732900242031439889661542069189671636374741488681842539882069328942674910789526004971864064/2991396818392292666293407537849384810371387872733434500270186444900374942603140970311560892714330717743422660859785892989453764675434702727034124532932154651969969977596074463352146802312109460037005916841306698173372846660064277881495711835235800046174560546875", + "capacity_lower": "467584667015097661558504463590655/1329227995784915872903807060280344576" + }, + { + "g": 17, + "ratio": "157053190968779543450222591758328112533800861338984411068305470007150784529581975102528412726596580742114065568127658295419620925722381387263066643420033997686129280749907101956770840427523705890481695693192816677930515516394296433311595750642105799487191515136/913776542410231725962881962663684243677717991366953366109001735946285508813185943056682709866682772063234593905221034515595200813651663282009047010068013915390638815024187264409806424309687347432153473191080872267261703020021268712870790091199419401721527099609375", + "capacity_lower": "627685450714348484958954873637215/1329227995784915872903807060280344576" + }, + { + "g": 18, + "ratio": "384906289871113428764106854835424111012809268116644034401771827942730076542175352925582234426032099997771744974823375589422113335143425582144298938733070738469905814633388710770895501403290371126840889826526491571510442898249687648656317936937967563976772419584/2140623143935193091568980750505087069447337569928193490926638802545565827098166201696392238309264649244367671052630855193533550182835679023714309714227266472081762884061720386424732426793983675405544178762325806761159525242977754843343092283794854395620452880859375", + "capacity_lower": "156921362678841341482074981095605/332306998946228968225951765070086144" + }, + { + "g": 19, + "ratio": "180807932829272766305242840709973462789335332824512770302399375349002958387583293754910065220023495165596871452659804117645665094583292085403428449585373996657793334136452731249651419650168486060225299334839560703343647482759398713111126729258886455635809927168/965101615896283330825534822513765204737122384274523466153691067968024248789007343414567080082008225516880236996566731605492797213612654559400213951365296592792995518076701141588209325483618923931593514206737476040455799951032552608568709251078722959993719482421875", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 20, + "ratio": "58364795742292635067782105276874392132399051131990004599557218588071081828055529712819766821142405220321817984160160374869016295923757034541180511555876330505774333071032271347407593406716137639120896664103145759648650504337765325985435393606351681545115271168/300070818555853485823552205657952147332164629319100986755563206190218129699421384501231218945076930522063029704781773462079020508841207882355250045965459837051726640868458075058052020045405543129068133887220534420941267848238185033886248605753618512207598876953125", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 21, + "ratio": "21492704303581753627979358071623434701006703695672103247093919967971618226181794860288059536065376286168349550175102530076248469258947740766946558421905913413072114535361547595591050472835358812602828933761131915036787270550433647216601046832534528666638483456/106766493584074351867679630862342710768624782970286086094755006188432893121015321569518008332374605218858698255056954581345955722758610776131381978602355949557363471310409878784682615957211238549282611874061645368986161205981427697542671422953395241807110595703125", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 22, + "ratio": "122311823509481935942962180777912104472909511674794443599894877290323333107837237763351354187311589796992135402306320542273321464674397087164106226260725801987067606488162751631621714125260844132066373672293643364678039090119860426599856086581368560156307129106432/588674486922717286822683511358704040724321874447822436196531849909169534640125775307655948721413114419678356288306792520679123420444296800596325937436949122982374117446046079873591711252674866601058071931344377917272127520277238483950526644104674493309208465576171875", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 23, + "ratio": "250692143213692856958712693771951317085285911805971510517269884029416143443604873673755984089163403854327854031786390409253391536327462650032272247922617300601807385648377213857432125185425844662813938573729441135742607394821131703331990590240824012130926857289728/1171830602072987758680446273895503553679226648626858419031970357319561432289081414893370298999069342916768446417732017809859600879048560541488940388241279534383461507649692511186573006434824028660628163859611931292710038366576596158162332371578304075534093719482421875", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 24, + "ratio": "19994934053200850211083205944568354622433767296716470027006087111239865611138498065430599579747571028035579001246546481708707896979216052112846422968169454495130156897274828079444254400157521850237078419277650567873723801225061097951279762312253076394396146991104/90970160169915388079027387715065627334941607453792360424801333243732512848078305012966804503862684129478764600913699526184750939840115906663987887859076620473072989215815767975048827445524226973150938909538830536693907358244143649753032879235316523536292752685546875", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 25, + "ratio": "2989689242326483178822633037078140171652473042286913901650167335772320323054821367807498884693750089093264581555974129198721378725364735592636781379029623736917468732201860959436059341095086732542804836520716283330428409823389840626157812720796745760649066315776/13264691858502663188214129017674056226120680980968185193631781808582878169241702986247668461727798771607633179518314832342748188187432095567572342837398166649640974659194735279614674961447984977376906093921708683111753285339333968806337192597164757413819642333984375", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 26, + "ratio": "5675372895636525568809273177140454539858617882647640368355528390097433788520706184566752667327262344031955831758998236449079131705827236287784829643034766829121725479328126122737338779738580136962411801623146619308182580557686919487261750352733523726369216790528/24598490316440165171643571098962579250626896353686079251116003736952803624345572646055307921950743890819901152667950148453665527811642320800151371515180305474636358516555719589941857499454725223983773101037596748406616219553354503819763753137838551934919349365234375", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 27, + "ratio": "7527677260272449960823315495589699362863026820720965100301735946444157079194032191627057827050089135199761452105829037462831732016577234846636784691784748630931294522334351739792616804754348887524927136176177367702617064567594424408619686588791989351394790342656/31922274622063902214894456188052232394042504102050360299427838530602188754825436865720217164019585335757831004364530241341284217656654307429728094773597474418247742393668820919697013033193982677215860294335379590507915193125752719061654382147912991866026446533203125", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 28, + "ratio": "13693631809268979419763804840706493357837891303192868606120547660046790969421512787910346801852410808592207634313199990121050026757551490639554749141567627809845389003162124452163984728419394853250001655085259313951163647357653659209970364494024994226107196637184/56895881173289105413732127074386329097301305163754934536798501801210030150040412285233036964597260513031867501944535325142964055218978560057138456296680202477429839689999642108768426971861830296306627317399854790705633445746441028658948248416955129527766192626953125", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 29, + "ratio": "34209177523484475091448725099720157303624724557579021940769341536126141016786447775182110881745665417223968077797045071420121893727300965473352808339179278085102586551503541078050842649441093096783796041506191485803233199892448780215052891070398638760131920134144/139440062635567037259428608703542710291619705045754052950566514854466626624313576615394684014494598992295905217206979467589333778059732162044785009969659543171148583132248375479844649432699289595903423220905327991056964814779431100851990045112717488506726282958984375", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 30, + "ratio": "3526544756612684028529418298041472802734587285461210720424736171230663909875471906260199003352180685760921950791617629268615782456658945352934729986679997873162054357932922140059271993581879175689468873844425286877416342045352506124590642354701054114016719273984/14118230727299431428374117100190195449018372630859843469727301834682150517028816720490650271878508155165060544499723558889602279920553155975048253446693716591922432735412917035356440093994760467701907506542330356770755606894036010568431502085391470176970462646484375", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + }, + { + "g": 31, + "ratio": "103297041106031860639966225915459012731871060432424797546266676546743046108887667778960791918099180907287253911075802504890923013555239194600517091846255994487763247162938408188587759329282554937569442973008487567409325865074298937149716571438143452754881034584064/406596420713827402912428051578572077229202686982643973448493171453500827837299155597782473108914255597504225576682406432922110609682110739947549553790461310781169038590911955136670114736940351802980986982971935838252513978734141068980033855183523382236687415771484375", + "capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384" + } + ], + "u0_upper": "7783366898831531946069720713260782409710284437967707063377568980861025095124612427357422623767079054101339874268794493085724829263414812131380262902953473651625178101491275469889671860340598833020908605479862358880073671794992981/178405961588244985132285746181186892047843328", + "ug_multiplier_upper": "1078010027722616055003124433142109/356811923176489970264571492362373784095686656", + "tail_ratios": [ + "79619787180581125933731442027489328355699584580501371767895871941339460120201124948742430301290372859573769294501867885059961339297972754480841932574292161569163056979215185347057407335270732056316293865775717313882551211873983166062809020614997645904325759729664/308433160164516361428905806962772728172575774071320688667244443164786150976755069891373111062207636102509994310738010173080033002153875535018496778574557486229316136540112347788217317375043265799108821155304638248353117074515403472420215543314002012765361334228515625", + "1359115643145967510078352752119505840313083176098906026035086013748555237508298667175703166334438025210682237707439705488590722667897803005971560652896843189818742271327685350898270611051544035382213196972423647374559768004850193516797942037178362959391417696256/5068579450579696979077846927101029553092227231878394252967465603969224219746151517631490086915803600517864888063316265451618219168606901169279178181579433870189982462623715909532554639058703182909994478420825328422515677057816485317884195769108197209010711669921875", + "10982139822968804119088320674480540298568575015674052186921036386908923334210225776678167016740408718336075938939636299460146082174025244097243715372997324663802312345339971327184925988109493418415120686297520213434729079531461491629521788678309183648843169792/39475895499066924444977168529596364622803647858584276509278303953197871610864243564624000715048417887224501642312569493629489051440189934473470917033920709536064368261567452922524305607791265570936524876773312591380672688350463281646424620070467767388763427734375", + "3263135159462961357478317763716872583081202696120760664802804396520827563032890079807528276159269358097356469782990412989988238555405197674704250041830790775134273580655805916836782688745657369780269480948616978464370674396965855066220772083174645694464/11318502868049137988798509973436035918899233006476017795463287412021625418424517776801952073440944258565339355244545007889006370159024475097489608209392598868599928707501379741115743000905184947440587816350298007352580084988485439836619150801798248291015625", + "781868043598362853381404761708770813603408823920654765491747004267617536216605455190310569545411148185112119574682992396870954324195088329568247668063704225107225670515207926185271972883918480683554994758366809337939167858737559078784217211247525888/2619757576937178695182320624232502447659366741283400334045329521362810192204816415865206222032204801657813407257212688621500563259031411609487723493553975624191806562255033992075175473703639611358797341146983496959943769511803510307472373439788818359375", + "2012578633029006924221264791300614370797862891717751350601341060578192193255773609290548155134296471513833984775256365265856501421701163693963786813290479512868547704641431101594175968654896799441361811071183847694803397070268584296902930989056/6520675214022989049093341869689539860462263456375611675034074078745612039563937275951778629634834122794641350368966848121411886710653150073346169277816850695255286009076750808736827057228610694134721373964639831078169178608541822649288177490234375", + "34509100044296883186414905858646930393107117659077078778346108207278494066845860745665812153271266331958012367907949203312151978005725371225479696438362130997628435152954529166407644820554004069832137739310106860410534469971689970790859538432/108217991534018698634726618241176685021229890943009940760164074172323224887360500835979607055371096033679644638718595613658556114558464676768283527359512758645751605431413494606640970232578431770680152427383326108772769957367651523113250732421875", + "1077677750897778446321300163571620512288170764926677661749270551532453320030868814652545058824456792131246424700415508601200340394486073122208433402086389993059801712391860824723054964149781207964754148505479142998432708976266986687299584/3273954053090821389405366382994610059862832665067026910219933208300152194768391470167294790152535261896535747781381830886495825537846215057377304081743847845253170245304513978487900566204671056409785581447061434173606323818900585174560546875", + "359661799177307247253138489250432451965794669317921474744954225758622007004053991116760232051949411006730606999145854818593917871734200128782611875335647596929482290665424573474234893016794382306924302070502396703330933992173319749632/1059416904199315842473845498459575118522045802000396230305331219279211725660996362763521832012679471924648410513757519959461930623378073844934786592165876595083722134665499553668352162389471220501879499806076104540093720591068267822265625", + "10609658851572035260397013813643715067112374129477919011462195646910561881423791709248789818223900644223535762029456171182712370255915265268157819427069950422002864505613829900785171972767606399999155111186618290411309206214541312/30325989608799203218852348293377322413556923185680012939861733332293251569023099522978595408942451202440510415572234398006349030411648484886845405953073894542460858111625741572783296028452702481408973854997214152095854282379150390625", + "14124524047790138425280512227430109988449797067708241936250519466960929875428357296571374723234794761292508629884107190194777932987603865961373713450914504822992611938686446986350501379112246001363992164401152/39206925525883834521366634346648723267291295971283219580680076958940806396002407248310281345430537948221918299098582693246420869553271005083218290091273459404503518263526146860088869753574065141379833221435546875", + "66578071789257401048538207132249945850650621900271418969655770803019460524557400277776362027673490339797599424532503515017563218761289296457400035138225536504521997182761111896945068032/179603029968877437577776019101542486577023756220568620044529473044612754400394688402928789555732191740418299505405459586328271927653963971632248413341246238577968774530701339244842529296875", + "164810098302604440049116199134079099563198555983334011189912793724828813300912045254226758615757741557380962431424729587121258356199633195490080389310146653679049984/432377047286323095599330904641933575498408656144328027698173155936620084988056993768582177618707232101918486541518663719983026136671028280632627787627279758453369140625", + "30596692434390427952796073531085547678426465271082190226712043906857352999060729159512962333158845300203864277223083602877321001218024579318344/78115714247130476396142738596410592960352154122116930442301935261343123772098762770433179479549534080397083448591500851903467439115047454833984375", + "21924122474371932831149603028025516560836596547325464947697869104962443045684654968253945137627341763425985205805529791501/54506315609442339750479531427879686200283554709925690140471855261158142062366253578825947406854620496374554932117462158203125", + "19061195357976150326728091228477479056185017629335214938624817532710889220828384722345215475862048720587/46174125315848275139987841150404962375973793123691281136499592148586464786456866625696420669555664062500000", + "1137923999033471156593477512562691984167296853853994825804415936811971628422311099561307/2687432023193928425114707939225825046156470490302091077817370739281177520751953125000000000", + "45839514677944559714402732900908466970672303524501984491899967464520307/105604128907045209568296557410974303697505276584625244140625000000000000000", + "5503927677819268750900040417908600544889733961049001/12375453605252259389115787506103515625000000000000000000" + ], + "tail_capacity_lower": "9807585167427583842629734322051/20769187434139310514121985316880384", + "positive_control_no_x_slack_fails": true, + "decision": "PASS component; independent signed application required" +} diff --git a/research/bit-451-height-dependent-sources/SIGNED.json b/research/bit-451-height-dependent-sources/SIGNED.json new file mode 100644 index 0000000000..195200cf8f --- /dev/null +++ b/research/bit-451-height-dependent-sources/SIGNED.json @@ -0,0 +1,79 @@ +{ + "new_component_sha256": "f91280ef454af5d74559788e7f63fd442d8778937c52575160be2718354defcd", + "old_component_sha256": "42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd", + "signed": { + "cap": "0.00387992804555917", + "claim": "0.00387992804547", + "tested": "193996402277/50000000000000", + "output_sha256": { + "APPLICATION.json": "2d2c0331eef313b8ee278c3eb9d7b7be99c975e541dcd4dbfdbdf83297ce66b5", + "AUDIT.json": "fd03711448a6b7d0c3127ae11ef69186cae268057d8dd71cbe7cf958fe92a927", + "adapter/SOURCE-LOCK.json": "b46b919292e1a1907345056b6925f5f1400d45650e2f0f610779a07163bb64ee", + "adapter/binary/FINITE.json": "acf8b1c05e6568427ea72a67ec2766af222074c91b31515fc066c7e711d345bb", + "adapter/binary/WORD.json.gz": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9" + }, + "orientations": { + "adjoint_sha256": "8535965b7715f36da4fff7893afb330731dc4a672170d5357f6828a0d5eb01e3", + "checked_coefficients_each_way": 1661521, + "forward_sha256": "d95061b17905c2e2cd00051b708e7ba5ed5d8634726ee841df327548b3380f63", + "main_fields": 400, + "native_helpers": 889, + "native_paid": 5707 + }, + "checks": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "controls": [ + "extra_rank_1_charge_rejected", + "low_cap_rejected" + ], + "premises": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ] + }, + "known_good": { + "cap": "0.00387992804552674", + "claim": "0.00387992804544", + "tested": "387992804551/100000000000000", + "output_sha256": { + "APPLICATION.json": "8d5a5fa30f79b5f39fabc2bb320f38ac291761c0012de5d22540a142b1d767af", + "AUDIT.json": "e8dbc8054ecd54bb6d089346cf84220499d8683fd2043b0650817ad0bd0dd806", + "adapter/SOURCE-LOCK.json": "b46b919292e1a1907345056b6925f5f1400d45650e2f0f610779a07163bb64ee", + "adapter/binary/FINITE.json": "288ac59e27bf7703ffda5b8b3eb91a0f94da2e0d0227e066ae35a73f58c924b6", + "adapter/binary/WORD.json.gz": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9" + }, + "orientations": { + "adjoint_sha256": "8535965b7715f36da4fff7893afb330731dc4a672170d5357f6828a0d5eb01e3", + "checked_coefficients_each_way": 1661521, + "forward_sha256": "d95061b17905c2e2cd00051b708e7ba5ed5d8634726ee841df327548b3380f63", + "main_fields": 400, + "native_helpers": 889, + "native_paid": 5707 + }, + "checks": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "controls": [ + "extra_rank_1_charge_rejected", + "low_cap_rejected" + ], + "premises": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ] + }, + "comparison": "3/100000000000000" +} diff --git a/research/bit-451-height-dependent-sources/SOURCES.json b/research/bit-451-height-dependent-sources/SOURCES.json new file mode 100644 index 0000000000..cc56ef9d42 --- /dev/null +++ b/research/bit-451-height-dependent-sources/SOURCES.json @@ -0,0 +1,108 @@ +{ + "schema_version": 1, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + }, + { + "path": "LICENSE", + "usage": "provenance", + "git_blob": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + { + "path": "research/bit-451-carrier-cover/grid/RESULT.json", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/grid/RESULT.json", + "git_blob": "513857a0379d7785b58fd0dd8084072cceab87e0", + "sha256": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818" + }, + { + "path": "research/bit-451-carrier-cover/source7863.tar.gz", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/source7863.tar.gz", + "git_blob": "43577b87651ba39f339e30d0782c7bc9a77cf195", + "sha256": "5f9d9c378a1bddccb2e42ac6453716fa950f19bd71f6181a9606f5eb68b022b3" + }, + { + "path": "research/bit-451-carrier-cover/tensor/MEAN.json", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/tensor/MEAN.json", + "git_blob": "8b5e4e6087f6ae919fc733f6dc74b10c2a381f43", + "sha256": "41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e" + }, + { + "path": "research/bit-451-carrier-cover/tensor/SIBLING.json", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/tensor/SIBLING.json", + "git_blob": "6dbbc966f4506c0085ce1910ba75a7b3bd931c2d", + "sha256": "42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd" + }, + { + "path": "research/bit-451-carrier-cover/tensor/audit.py", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/tensor/audit.py", + "git_blob": "885ff65a9aa3c36f5b918da02cc5973e4644cf6b", + "sha256": "d8bed723957dcd30cc6462562b8e9d5ee33a36891c73916a986459969895993e" + }, + { + "path": "research/bit-451-carrier-cover/tensor/minimum_screen.py", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/tensor/minimum_screen.py", + "git_blob": "b05db48ce9864c18660d30c1e4419a6b0ef156a3", + "sha256": "2df053c036c3bf8c3f4f6deccdcdfa3d4821b3c801c6410fe0e377dba6149d23" + }, + { + "path": "research/bit-451-carrier-cover/tensor/sibling.py", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/tensor/sibling.py", + "git_blob": "7efd30d2e27b4eef857f92167da6798c78bee053", + "sha256": "9d911adbe14dea9a832dc5c8121f568240467a6b0782ecaad528e5a2d57a004f" + }, + { + "path": "research/bit-451-carrier-cover/tensor/sibling_audit.py", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/tensor/sibling_audit.py", + "git_blob": "6e0cc4a7b22dfe8cb771e1262f99679e27a8eade", + "sha256": "b7dd2e5829fa794e89b7cb7813ee45a0b4301feb508019f7b00062ba81f8b166" + }, + { + "path": "research/bit-451-carrier-cover/verify.py", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/verify.py", + "git_blob": "fb49e33c7fd79fda7007c493e0fd25c0f30fb019", + "sha256": "0ace528fee828f6016e80bc283867513d02ff485ec7a89682be60def1170da6a" + }, + { + "path": "research/bit-451-carrier-cover/verify_majorant.py", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/bit-451-carrier-cover/verify_majorant.py", + "git_blob": "05ebf4859cc50b9c1cfe21ff4949d34c9c553eae", + "sha256": "e17d5f97731eef62e24444ab38dd65c9c8195e022ecdd1d28da484600b46c019" + }, + { + "path": "research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md", + "git_blob": "4badb40f0919c515823cb07e44c6470d4d6469ca", + "sha256": "4cb32f6b8e388ecf6ed41b5bbdeeb4539cb40c8424f194974afea58f7e0921e8" + }, + { + "path": "research/kappa-rebuild/architecture/sources/Sussman-563b4e6/research/record-track/programs/theorem-1g/tree_flow.py", + "usage": "input", + "pin": "head:70c410a0b219d906a4162bd37e81fdb8ea0854b6:research/kappa-rebuild/architecture/sources/Sussman-563b4e6/research/record-track/programs/theorem-1g/tree_flow.py", + "git_blob": "31a9c1ae4d116b12e8db7d8e06f723f10425068d", + "sha256": "750782f6d1cc0a9fff8a768899f3f4c62a7efdf0696d8b5a5d640b1836f5ab72" + } + ] +} diff --git a/research/bit-451-height-dependent-sources/TASK.json b/research/bit-451-height-dependent-sources/TASK.json new file mode 100644 index 0000000000..5940f44ebf --- /dev/null +++ b/research/bit-451-height-dependent-sources/TASK.json @@ -0,0 +1,83 @@ +{ + "schema_version": 1, + "task_id": "uniform-transfer-audit", + "priority_revision": 8, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "original_card": { + "id": "uniform-transfer-audit", + "question": "Can one of the selected record's five inherited assumptions be proved at its actual caller?", + "starting_points": [ + "docs/research/current-priorities.md", + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md" + ], + "methods": [ + "Construct and independently check one source-bound instance of the stated first experiment.", + "Seek an exact counterexample or target-specific complete-budget obstruction to that same proposed change." + ], + "acceptance_gate": "Identify the proposition and what would change downstream; do not equate a finite replay with a universal proof.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read revision 8, the selected review and live exact-source handoffs. Then follow this card's bounded first_experiment.", + "scope": "Source-bound orientation only, not a supplier replay or theorem proof." + }, + "first_experiment": "Choose one assumption ID (native_all_columns, owned_erasure, compiler, precision_tape, analytic_recovery), one quantified implication and exact dependency closure. Check current handoffs, including #5625 row reentry and #5707 root-prefix lowering, without treating their partial scope as the whole theorem. Prove or falsify that implication with a caller-bound argument; stop at the chosen obligation. Finite tests or root digits do not discharge an all-size statement.", + "bottleneck_link": "Judge the actual current supplier contract and complete signed target/paid bill; frozen-profile ceilings require an applicability proof.", + "allowed_variations": [ + "One exact source head, helper/cut region or quantified proposition and changed hypothesis; check live handoffs first. Different seeds are not different scopes." + ], + "scope_change_triggers": [ + "Changing source head, helper/cut domain, operation alphabet or caller boundary without recording the new scope.", + "Treating an archived proposal or local numerical pass as complete supplier admission." + ], + "overlap_terms": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ], + "existing_checks": [ + { + "scope": "PR #4100: proposed unconditional construction and finite checks, without independent acceptance.", + "evidence": "research/unconditional-batched-crt/README.md", + "remaining": "Independent proof audit of one caller-bound all-size implication; all other premises remain explicit.", + "status": "author-checked", + "source_commit": "337d04939571a637aeab54a0f58f54fde811663a", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "actual_scope": "On the ordinary BIT supplier of the 451-factor signed multiplier, bound root and nonroot source capacities by height. Test one fixed power-18 construction, all integer heights, full price and signed application. On the same physical supplier and measured moments, prove a three-cell source estimate for power 17 and replay its complete signed application. Count positive small-remainder labels on the unchanged slab split and test the complete five-cell power-16 invoice.", + "scope_change_reason": "Refine the all-size ordinary transfer for the same fully charged physical supplier and caller.", + "bottleneck_link": "The uniform carrier loss in the ordinary BIT compiler determines the complete signed claim.", + "budget_minutes": 60, + "stop_rule": "Freeze p=18, h=1804, a 7/8 size split and G=32. Retire the fixed case on any failed cost, source or coefficient guard. On a timeout preserve the last completed stage and test only the same case on resumption. For power 17 allow one fixed case, two upper cells, 64 explicit height rows and 54 coefficients; reserve the last quarter of 60 seconds for verification. For power 16 allow one p,h case, four upper source cells, 128 direct heights and 85 coefficients.", + "outcome": "completed", + "evidence": "PROOF.md and RESULT.json establish the source normalization, 19 initial Newton comparisons, 32 direct heights, 19 translated tail comparisons, terminal debit and seven-stage cap. verify.py checks the prior positive control, negative controls and full signed replay. The original discovery cap is documented separately. three-cells/PROOF.md and three-cells/RESULT.json certify the 452-atom moment reconstruction, 118 row comparisons and strict complete price with a weakened-capacity control. three-cells/SIGNED.json binds the power-18 control and new signed application. small-remainders/PROOF.md and small-remainders/RESULT.json give the exact label-count envelope, prior capacity control, complete 213 comparisons and new signed price. small-remainders/SIGNED.json binds the preceding and current consumers.", + "author": "Campaign contributor", + "ai_assistance": "OpenAI Codex materially assisted the proof, independent audit, implementation and execution.", + "open_questions": [ + { + "question": "Can power 15 at h=1804 meet a source multiplier of nine?", + "why_it_matters": "The power and scale determine the uniform carrier debit after all source constraints pass.", + "first_step": "Price the complete change and check the limiting coefficient before the whole-word root and nonroot inequalities.", + "blocked_by": "A changed size or source bound needs a complete all-height proof, price and signed replay." + } + ] +} diff --git a/research/bit-451-height-dependent-sources/VERIFY.json b/research/bit-451-height-dependent-sources/VERIFY.json new file mode 100644 index 0000000000..5e55face90 --- /dev/null +++ b/research/bit-451-height-dependent-sources/VERIFY.json @@ -0,0 +1,32 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/bit-451-carrier-cover/grid/RESULT.json", + "research/bit-451-carrier-cover/source7863.tar.gz", + "research/bit-451-carrier-cover/tensor/MEAN.json", + "research/bit-451-carrier-cover/tensor/SIBLING.json", + "research/bit-451-carrier-cover/tensor/audit.py", + "research/bit-451-carrier-cover/tensor/minimum_screen.py", + "research/bit-451-carrier-cover/tensor/sibling.py", + "research/bit-451-carrier-cover/tensor/sibling_audit.py", + "research/bit-451-carrier-cover/verify.py", + "research/bit-451-carrier-cover/verify_majorant.py", + "research/kappa-rebuild/architecture/FINITE-PRECOMPILATION.md", + "research/kappa-rebuild/architecture/sources/Sussman-563b4e6/research/record-track/programs/theorem-1g/tree_flow.py" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 480, + "checks": "Regenerate the 451-factor signed supplier, reproduce its known-good power-19 source proof and caller, check the fixed power-18 root-share and nonroot bounds at 32 heights and throughout the translated tail, charge all seven stages, and replay the new complete signed application and controls. Reuse this source to reconstruct the three-cell power-17 proof, all 64 direct heights and 54 Newton rows, then cold-replay its complete signed application. Reuse the native source and power-17 control for one independently checked five-cell small-remainder proof and complete signed power-16 consumer." + } + ] +} diff --git a/research/bit-451-height-dependent-sources/audit.py b/research/bit-451-height-dependent-sources/audit.py new file mode 100644 index 0000000000..bbae3ab447 --- /dev/null +++ b/research/bit-451-height-dependent-sources/audit.py @@ -0,0 +1,110 @@ +"""Independent R342 height-dependent source check. No builder imports or outcomes.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +from math import comb,lcm +from pathlib import Path +from time import monotonic +import json,signal + +PINS={'bit':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749','grid':'69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818','mean':'41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e','old':'42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd','closure':'b7dd2e5829fa794e89b7cb7813ee45a0b4301feb508019f7b00062ba81f8b166'} +def must(x,why): + if not x:raise ValueError(why) +def up(x): + return F(-(-x*2**150//1),2**150) +def down(x): + return F(x*2**120//1,2**120) +def diffs(x): + result=[] + while x: + result.append(x[0]);x=[b-a for a,b in zip(x,x[1:])] + return result +def fnval(mus): + p=len(mus)-1 + d=lcm(*(v.denominator for v in mus)) + integral=[int(v*d) for v in mus] + kernel=[[comb(n,k)*6**k*integral[k] for k in range(n+1)] for n in range(p+1)] + acc=[7**k for k in range(p+1)];res=[] + for g in range(51): + acc=[sum(c*acc[n-k] for k,c in enumerate(row)) for n,row in enumerate(kernel)] + res.append(F(acc[p],6**p*d**(g+1))) + return res + +def verify(BIT,grid,mean,old,logs,o): + p=18;v=451;h=1804;B=F(5,2);q=F(749,1000);beta=F(23,20);shift=F(7,8) + C=F(BIT['separation']['trial']);eta=F(BIT['uniform']['eta'][0]) + H=BIT['uniform']['H']; J=0;d=h**p;n=(H+h)**p + while d<2*p,'terminal') + must(F(h+(134**v).bit_length()-1,h)**p>F(BIT['uniform']['ambient_power'][1]),'base') + source=BIT['cover_and_stock'];rate=F(source['seed']);rho=F(source['rho']) + covered=C-F(J,H)-F(1,H*2**44);st=[] + for _ in range(7): + lim=covered-rho*(covered-rate) + step=F(lim*10**24//1-1,10**24);must(rate=B*eta:return 'limit guard fails' + ell=logs['logint'];ex=logs['exp'] + def lowpower(n,d,e): + return down(ex(e*(ell(n)[0]-ell(d)[1]))[0]) + near=lowpower(16,9,v*C); bandgain=lowpower(4,1,v*C) + dist=min(F(grid['mean_lower'])-F(3,5),F(9,10)-F(grid['mean_upper'])) + eps=F(grid['epsilon_upper']); var=F(grid['tensor_variance_upper']) + must(11**3>=4**5 and 11**9<=9**10 and dist>0 and eps==F(mean['epsilon_upper']),'paid band') + fraction=(1-var/dist**2)/(1+eps) + nonroot=down(1+fraction*(bandgain-1)) + b=min(B,F(old['source_lower']['root'])) + initial=down(b*lowpower(16,1,v*C/8)) + o.update(smallL_guard=str(near),band_fraction=str(fraction),band_guard=str(nonroot),small_x_guard=str(initial), + multiplier=str(B),root_lower=str(b)) + if min(near,nonroot,initial)<=B:return 'nonroot or small-x guard fails' + al=F(BIT['separation']['three_engine_intervals']['source_1']['alpha'][0]) + lam=F(BIT['separation']['caps']['lambda']); w=F(17,50) + must(00,'Newton denominator positive') + return [x/y for x,y in zip(u,v)] + left=coeffs(0,0);o['left_ratios']=list(map(str,left)) + for j,r in enumerate(left): + if r>=B*eta:return 'first-region sufficient coefficient fails at j='+str(j) + o['finite']=[];o['u0_upper']=str(start);o['ug_multiplier_upper']=str(shrink) + for g in range(32): + r=values[g]/den(g,shift); c=capacity(g) + o['finite'].append({'g':g,'ratio':str(r),'capacity_lower':str(c)}) + if r>=c:return 'upper-x sufficient finite comparison fails at G='+str(g) + tail=coeffs(32,shift);o['tail_ratios']=list(map(str,tail));o['tail_capacity_lower']=str(capacity(32)) + for j,r in enumerate(tail): + if r>=capacity(32):return 'translated sufficient coefficient fails at j='+str(j) + o['positive_control_no_x_slack_fails']=max(values[g]/den(g,0)-capacity(g) for g in range(32))>0 + return 'PASS component; independent signed application required' + +def main(): + parser=ArgumentParser() + for x in [*PINS,'out']:parser.add_argument('--'+x,type=Path,required=True) + a=parser.parse_args();signal.alarm(60);start=monotonic() + data={} + for k,d in PINS.items(): + raw=getattr(a,k).read_bytes();must(sha256(raw).hexdigest()==d,k) + if k=='closure': + mod={'__name__':'pinned_previous_rational_implementation'};exec(compile(raw,'R341-independent.py','exec'),mod) + else:data[k]=json.loads(raw) + o={'pins':PINS};o['decision']=verify(data['bit'],data['grid'],data['mean'],data['old'],mod,o) + with a.out.open('x') as out:json.dump(o,out,indent=2);out.write('\n') + print(o['decision'],o['cap'],o['candidate_grid_claim'],'seconds',monotonic()-start) +if __name__=='__main__':main() diff --git a/research/bit-451-height-dependent-sources/original_screen.py b/research/bit-451-height-dependent-sources/original_screen.py new file mode 100644 index 0000000000..29bc71f40a --- /dev/null +++ b/research/bit-451-height-dependent-sources/original_screen.py @@ -0,0 +1,202 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""The single frozen 18th-power source/height partition. CPython 3.12.""" +from argparse import ArgumentParser +from datetime import datetime, timezone +from decimal import Decimal, localcontext +from fractions import Fraction as F +from hashlib import sha256 +from math import comb, lcm +from pathlib import Path +import json +import signal +import time + +PINS = { + 'round321/benchmark/producer/BIT-451.json':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749', + 'round336/independent/receipt.json':'69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818', + 'round339/independent/receipt.json':'41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e', + 'round341/independent/receipt-with-minimum.json':'42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd', +} +P, V, h, B, shift = 18, 451, 1804, F(5,2), 32 + + +class Rejected(Exception): + """Exact failure of a frozen sufficient condition.""" + + +def utc(): + return datetime.now(timezone.utc).isoformat(timespec='milliseconds') + + +def require(condition, message): + if not condition: + raise Rejected(message) + + +def down(x): + return F((x*10**25).__floor__(),10**25) + + +def up(x): + return F((x*10**25).__ceil__(),10**25) + + +def power_lower(a,b,e): + with localcontext() as ctx: + ctx.prec=80 + lower=F(Decimal(a).ln().next_minus())-F(Decimal(b).ln().next_plus()) + z=e*lower + v=(Decimal(z.numerator)/Decimal(z.denominator)).next_minus() + return down(F(v.exp().next_minus())) + + +def price(bit, old): + H=bit['uniform']['H'] + delta=F(bit['separation']['trial']) + J=((H+h)**P//h**P).bit_length() + base_ok=(1+F((134**V).bit_length()-1,h))**P>F(bit['uniform']['ambient_power'][1]) + carrier=(h**P << (J-1)) <= (h+H)**P < (h**P << J) + tail=F(J,H)*(H+h)>2*P + full=delta-F(J,H)-F(1,H*2**44) + rho=F(bit['cover_and_stock']['rho']) + value=F(bit['cover_and_stock']['seed']) + stages=[] + for _ in range(7): + bound=full-rho*(full-value) + new=F((bound*10**24).__floor__()-1,10**24) + require(valuetested>claim>old_ceiling>old_claim) + + +def heights(mu): + common=lcm(*(m.denominator for m in mu)) + coeff=[[comb(i,j)*6**j*int(mu[j]*common) for j in range(i+1)] for i in range(P+1)] + v=[7**j for j in range(P+1)] + for g in range(shift+P+1): + v=[sum(a*v[i-j] for j,a in enumerate(row)) for i,row in enumerate(coeff)] + yield F(v[-1],6**P*common**(g+1)) + + +def differences(seq): + result=[] + while seq: + result.append(seq[0]);seq=[b-a for a,b in zip(seq,seq[1:])] + return result + + +def newton(numer,offset,extra): + ns=differences(numer[offset:offset+P+1]) + ds=differences([(F(319,100)+F(23,20)*(g+extra))**P for g in range(offset,offset+P+1)]) + require(all(n>=0 and d>0 for n,d in zip(ns,ds)),'nonnegative Newton certificate') + return [a/b for a,b in zip(ns,ds)] + + +def discover(data, root, mark): + files=[] + for name,sha in PINS.items(): + raw=(root/name).read_bytes() + if sha256(raw).hexdigest()!=sha: + raise ValueError(name) + files.append(json.loads(raw)) + bit,grid,paid,old=files + require(old['p']==19 and old['uniform_J']==747 and F(old['candidate_grid_claim'])==F('0.00387992804544'), + 'frozen complete comparator') + check=price(bit,old);data['price']=check + eta=F(bit['uniform']['eta'][0]);delta=F(bit['separation']['trial']) + mu=list(map(F,paid['moments'][:P+1])) + require(len(mu)==19 and mu[0]==1 and mu[1]==F(749,1000),'R339 paid enclosure') + limit=(mu[1]/F(23,20))**P + data['terminal']={'ratio':str(limit),'capacity':str(B*eta)} + require(check['passed'] and limit0 and 11**3>=4**5 and 11**9<=9**10,'unchanged rank band') + fraction=(1-F(grid['tensor_variance_upper'])/d**2)/(1+eps) + small=power_lower(16,9,V*delta) + band=1+fraction*(power_lower(4,1,V*delta)-1) + data['nonroot']={'band_distance':str(d),'completed_fraction_lower':str(fraction), + 'partial_group_lower':str(small),'admitted_band_group_lower':str(down(band))} + require(fraction>0 and min(small,band)>B,'nonroot multiplier') + mark('both nonroot branches') + sep=bit['separation'];raw=sep['three_engine_intervals']['source_1'] + alpha,lam=F(raw['alpha'][0]),F(raw['lambda'][1]) + w=F(sep['target_tilt']) + require(w==F(17,50) and 0F(1,2),'Chernoff endpoints') + decay=up((lam/alpha)**V) + pref=2**(1+(4*V*w).__ceil__()) # alpha^(-451)<2, k0^w <= 2^ceil(4*451*w). + require(0B,'small x root bound') + # The unrounded majorant decays. Each recursively rounded value separately + # bounds it, and a rounded u_32 may be reused for all G>=32. + us=[F(pref)] + for _ in range(shift): + us.append(up(us[-1]*decay)) + caps=[eta*max(b,B-(B-b)*u) for u in us] + data['root']={'prior_b':str(b),'small_x_lower':str(root_low),'decay_upper':str(decay), + 'prefactor_upper':str(pref),'tail_root_fraction_upper':str(us[-1]), + 'tail_capacity_lower':str(caps[-1])} + mark('source bands and bounded root mass') + cs=list(heights(mu)) + low=newton(cs,0,0) + data['small_x']={'newton_ratios':list(map(str,low)),'capacity':str(B*eta)} + require(low[-1]==limit and max(low)45: + data['decision']='CAPPED_UNRESOLVED' + elif proc.returncode!=0 or data.get('decision')=='RUNNING': + data['decision']='CHILD_ERROR_UNRESOLVED' + elif data.get('decision')=='ADVANCE_ONE_SIGNED_REPLAY': + try: + data['independent_match']=verify(data,args.campaign_root) + data['decision']='PRIMARY_AND_INDEPENDENT_SIGNED_REPLAY_MATCH' + except (ValueError,KeyError) as e: + data.update(decision='MISMATCH_OR_UNRESOLVED',reason=str(e)) + data['supervisor']['receipt_utc']=utc() + data['supervisor']['total_wall_seconds']=time.monotonic()-start + if data['supervisor']['total_wall_seconds']>60: + data['decision']='CAPPED_UNRESOLVED' + args.out.write_text(json.dumps(data,indent=2)+'\n') + print(data['decision'],data.get('reason',''),round(elapsed,4)) + + +if __name__=='__main__': + main() diff --git a/research/bit-451-height-dependent-sources/screen.py b/research/bit-451-height-dependent-sources/screen.py new file mode 100644 index 0000000000..aa210e6a8d --- /dev/null +++ b/research/bit-451-height-dependent-sources/screen.py @@ -0,0 +1,89 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Run the pinned single R342 case with the exact endpoint log(1)=0.""" +from argparse import ArgumentParser +from datetime import datetime,timezone +from decimal import Decimal,localcontext +from fractions import Fraction as F +from hashlib import sha256 +from pathlib import Path +import json +import time + +PREV = '10cbcc0fe5c7f44c9a2852a13e6acdf87b52471d52b9685c579c05fc63aab2ea' +CAPPED = '3102b30dd179473189560b3181f072561c490a956571949b672b7c4c9954bcca' + + +def utc(): + return datetime.now(timezone.utc).isoformat(timespec='milliseconds') + + +def checked(path, pin): + raw = path.read_bytes() + if sha256(raw).hexdigest()!=pin: + raise ValueError('input hash: '+path.name) + return raw + + +def log_ends(integer): + if integer==1: + return F(0),F(0) + y = Decimal(integer).ln() + return F(y.next_minus()),F(y.next_plus()) + + +def power_lower(a,b,e): + if a==b or e==0: + return F(1) + with localcontext() as ctx: + ctx.prec=80 + z=e*(log_ends(a)[0]-log_ends(b)[1]) + argument=(Decimal(z.numerator)/Decimal(z.denominator)).next_minus() + result=F(argument.exp().next_minus()) + return F((result*10**25).__floor__(),10**25) + + +def main(): + parser=ArgumentParser(description=__doc__) + parser.add_argument('--campaign-root',type=Path,required=True) + parser.add_argument('--snapshot',type=Path,required=True) + args=parser.parse_args() + start=time.monotonic() + out={'pins':{'round342/screen.py':PREV,'round342/primary.json':CAPPED}, + 'case':{'p':18,'h':1804,'B':'5/2','x_split':'7/8','height_cut':32}, + 'decision':'RUNNING','events':[]} + def snapshot(label): + out['events'].append({'utc':utc(),'stage':label,'elapsed':time.monotonic()-start}) + tmp=args.snapshot.with_suffix('.pending') + tmp.write_text(json.dumps(out)+'\n') + tmp.replace(args.snapshot) + snapshot('child start') + try: + base={'__name__':'authenticated_r342'} + code=checked(args.campaign_root/'round342/screen.py',PREV) + old=json.loads(checked(args.campaign_root/'round342/primary.json',CAPPED)) + exec(compile(code,'round342/screen.py','exec'),base) + if log_ends(1)!=(0,0) or old['decision']!='CAPPED_UNRESOLVED': + raise ValueError('endpoint or predecessor control') + out['pins'].update(base['PINS']) + base['power_lower']=power_lower + def mark(label): + if label=='complete price and terminal limit': + if out['price']!=old['price'] or out['terminal']!=old['terminal']: + raise ValueError('R342 completed price/limit mismatch') + if label=='both nonroot branches' and out['nonroot']!=old['nonroot']: + raise ValueError('R342 completed nonroot mismatch') + snapshot(label) + base['discover'](out,args.campaign_root,mark) + out['decision']='ADVANCE_ONE_SIGNED_REPLAY' + except Exception as exc: + out['decision']='MISMATCH_OR_UNRESOLVED' + if 'base' in locals() and 'Rejected' in base and isinstance(exc,base['Rejected']): + out['decision']='RETIRE_FROZEN_CERTIFICATE' + out['reason']=str(exc) + snapshot('child finished') + print(out['decision']) + + +if __name__=='__main__': + main() diff --git a/research/bit-451-height-dependent-sources/small-remainders/PROOF.md b/research/bit-451-height-dependent-sources/small-remainders/PROOF.md new file mode 100644 index 0000000000..8bfbf080c5 --- /dev/null +++ b/research/bit-451-height-dependent-sources/small-remainders/PROOF.md @@ -0,0 +1,29 @@ +# A retained denominator and two root tilts at log power 16 + +The independent proof for the original 451-factor word yields p=16 and a strict terminal debit of 629/H. The ordinary cap is 0.00387992804562487 after the original paid cover and the seven ordinary stages. The full tested point is 0.00387992804561 and the conditional candidate κ is 0.00387992804554. It exceeds the local p17 complete predecessor by 0.00000000000003, or (300/387992804551) percent. Its strict separation from the predecessor's generous complete ceiling is 19/1800000000000000. + +## Counting actual paid arrivals in every nonroot source group + +Write v=451, t=1−0.003879928046148, δ=1−t, ambient A=134^v, minimum retained K=16^v and paid slab bound J=11^v. In the integer Pascal flow, fix the prefix before the last paid letter, its target multi-index a, and target rank k. Its fresh source slots are precisely one equal multiplicity W_k u(a) for every chronological paid occurrence r≤L(16/5)^(vδ)>6. For L≥7^v the authenticated p17 unsplit band proof gives an actual admitted, fully paid multiplier above six. For 5^v≤L<7^v, introduce d=(7/5)^v6. L=5^v belongs here and L=7^v belongs in the high band. Equality at d belongs to the nonsmall class. The checker verifies slab mass, boundary equality, empty remainder and at-most-one-small-remainder controls. All three nonroot cases exceed six with their own denominators. + +## Roots at each actual top rank + +For n=A K^G x, 1≤x0 for r in (2,8,64)) and 64**151*8**299*2==16**451 and 151+299+1==451,'literal retained minimum') + C=F(bit['separation']['trial']);H=bit['uniform']['H'];q=F(749,1000);eta=F(bit['uniform']['eta'][0]) + D=h**p;N=(h+H)**p; J=0 + while D<2*p and (1+F((134**v).bit_length()-1,h))**p>F(bit['uniform']['ambient_power'][1]),'base or terminal') + covered=C-F(J,H)-F(1,H*2**44);stock=bit['cover_and_stock'];rho=F(stock['rho']);rate=F(stock['seed']) + stages=[] + for _ in range(7): + ub=covered-rho*(covered-rate);candidate=F(ub*10**24//1-1,10**24) + must(rate=B*eta:return 'retire: frozen limiting comparison' + def gain(n,m,e):return dn(ex(e*(l(n)[0]-l(m)[1]))[0]) + # All native t-powers use r/exp(delta log r); separate lower and upper. + t=1-C;eps=F(grid['epsilon_upper']); paid=bit['native']['paid'] + must(eps==F(d['mean']['epsilon_upper']) and sum(paid.values())==107460,'full paid profile/normalization') + def raw_bounds(r,loss): + if r==1:return F(1),F(1) + loglo,loghi=l(r) + return dn(F(r)/ex(loss*loghi)[1]),up(F(r)/ex(loss*loglo)[0]) + subset_lo=sum(n*raw_bounds(int(r),C)[0] for r,n in paid.items() if int(r)<=5) + N0=sum(paid.values()) + per_small=up(ex(t*(l(7)[1]-l(5)[0]))[1]) + U=up((N0*per_small/subset_lo)**v) + low= gain(16,5,v*C);high=F(old['band_gain']) + mid=dn(gain(16,7,v*C)*(1+(1-U)*(gain(7,5,v*C)-1))) + b=F(d['sibling']['source_lower']['root']) + first=dn(b*gain(16,1,v*C/4)) + o.update(small_L=str(low),mid_L=str(mid),high_L_reused=str(high),small_mass_upper=str(U),admitted_five_mass_lower=str(subset_lo),small_x=str(first),root_lower=str(b)) + if min(low,mid,high,first)<=B or U>=1:return 'retire: nonroot/middle small-rank budget or small-x capacity' + # Each raw item produces at most one short positive remainder; equality at d + # belongs to the large class; a full slab is never short. + def slabs(n,cut): + full,rem=divmod(n,cut);return [cut]*full+([rem] if rem else []) + example=[slabs(n,9) for n in (1,2,3,8,9,10,18,19,20,21)] + must(all(max(s)<=9 and sum(r<3 for r in s)<=1 for s in example) and + [sum(s) for s in example]==[1,2,3,8,9,10,18,19,20,21] and sum(r<3 for r in example[-1])==0,'one positive small remainder with exact endpoints') + alpha=F(bit['separation']['three_engine_intervals']['source_1']['alpha'][0]) + tlo=sum(n*raw_bounds(int(r),C)[0] for r,n in bits.items()) + w2=F(17,100);num=sum(n*raw_bounds(int(r),C+w2)[1] for r,n in bits.items()) + lams={F(17,50):F(bit['separation']['caps']['lambda']),w2:up(ex(w2*l(16)[1])[1]*num/tlo)} + shrink={w:up((z/alpha)**v) for w,z in lams.items()} + must(all(00,'denominator coefficients') + return [x/y for x,y in zip(u,v)] + cells=[(F(3,4),F(5,6)),(F(5,6),F(11,12)),(F(11,12),F(23,24)),(F(23,24),F(1))] + upper={};bcell={};o['cells']={} + for lower,u in cells: + for w in lams: + z=4*v*w*u;i=z//1 + upper[u,w]=up(2**i*ex((z-i)*l(2)[1])[1]/alpha**v) + bcell[u]=min(B,dn(b*gain(16,1,v*C*(1-u)))) + o['cells'][str(u)]={'left':str(lower),'root_capacity':str(bcell[u]),'share_prefactors':{str(w):str(upper[u,w]) for w in lams},'rows':{}} + def shares(g,u):return {w:upper[u,w]*shrink[w]**g for w in lams} + def capacity(g,u):return dn(eta*(B-(B-bcell[u])*min(1,*shares(g,u).values()))) + def direct(g,cell): + lower,u=cell;rec=o['cells'][str(u)]['rows'];key=str(g) + if key in rec:return True + ratio=value(g)/den(g,lower);c=capacity(g,u);rec[key]=[str(ratio),str(c)] + if ratio>=c:o['obstruction']={'cell':list(map(str,cell)),'g':g,'ratio':str(ratio),'capacity_lower':str(c),'excess':str(ratio-c),'root_share_upper_by_tilt':{str(w):str(z) for w,z in shares(g,u).items()}} + return ratio=B*eta:return 'frozen low-x coefficient fails: '+str(j) + for cell in cells: + lower,u=cell + for g in range(32): + if not direct(g,cell):return 'frozen direct bound fails: cell '+str(cell)+' height '+str(g) + tail=coef(32,lower);c=capacity(32,u);o['cells'][str(u)].update(tail=list(map(str,tail)),tail_capacity=str(c)) + for j,r in enumerate(tail): + if r>=c:return 'frozen tail coefficient fails: cell '+str(cell)+' order '+str(j) + o['negative_control_old_capacity_fails']=lim>4*eta + must(o['negative_control_old_capacity_fails'],'old capacity must fail') + return 'PASS independent source and price; signed binding pending' + +def main(): + parser=ArgumentParser();parser.add_argument('root',type=Path);parser.add_argument('out',type=Path);a=parser.parse_args() + signal.alarm(45); start=monotonic();data={};o={'inputs':{p:x for p,x in PINS.values()}} + for k,(file,pin) in PINS.items(): + raw=(a.root/file).read_bytes();must(sha256(raw).hexdigest()==pin,file) + if k=='logs': + obj={'__name__':'pinned_rational_taylor'};exec(compile(raw,'R341/audit.py','exec'),obj);data[k]=obj + else:data[k]=json.loads(raw) + o['decision']=evaluate(data,o) + with a.out.open('x') as stream:json.dump(o,stream,indent=2);stream.write('\n') + print(o['decision'],o['cap'],o['candidate_grid_claim'],'seconds',monotonic()-start) +if __name__=='__main__':main() diff --git a/research/bit-451-height-dependent-sources/small-remainders/screen.py b/research/bit-451-height-dependent-sources/small-remainders/screen.py new file mode 100644 index 0000000000..c6adc70e0d --- /dev/null +++ b/research/bit-451-height-dependent-sources/small-remainders/screen.py @@ -0,0 +1,229 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""One immutable p16 h1804 B=6 five-cell screen, hard wall and atomic checkpoints.""" +from argparse import ArgumentParser +from datetime import datetime,timezone +from decimal import Decimal,localcontext +from fractions import Fraction as F +from hashlib import sha256 +from pathlib import Path +from tempfile import TemporaryDirectory +import json,os,signal,subprocess,sys,time + +P=16 +B=F(6) +DIRECTIONS=[('a',F(3,4),F(5,6)),('b',F(5,6),F(11,12)), + ('c',F(11,12),F(23,24)),('d',F(23,24),F(1))] +PINS={ + 'round321/benchmark/producer/BIT-451.json':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749', + 'round336/independent/receipt.json':'69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818', + 'round339/independent/receipt.json':'41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e', + 'round341/independent/receipt-with-minimum.json':'42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd', + 'round342/independent/receipt.json':'f91280ef454af5d74559788e7f63fd442d8778937c52575160be2718354defcd', + 'round342/independent/outer-verified.json':'148a6315592977093c90de293ca3a904da5cf8dd2fa7840d3a23538d1a87857b', + 'round344/primary/receipt.json':'0c76967a2ff454986969c82a0683baaabb6622cb2ea91d4864702571af0ccb8c', + 'round344/independent/receipt.json':'1fd90f20d38e5368a98deef7efe4bce880f95b6da8078d4aa37e78921173f1ac', + 'round344/independent/outer-verified.json':'0741754b7644e6d61ab4f36f3471e564aa6ec052a3a4245a2d19402aed1983ad', + 'round342/screen.py':'10cbcc0fe5c7f44c9a2852a13e6acdf87b52471d52b9685c579c05fc63aab2ea', + 'round343/screen.py':'bcb2134b4570246029b35d1eb585f04fdf2318b686910dac1c45fb3ee674554d', +} + + +def utc(): + return datetime.now(timezone.utc).isoformat(timespec='milliseconds') + + +class Fail(Exception): + pass + + +def need(flag,what): + if not flag: + raise Fail(what) + + +def upper_power_2(e): + if not e: + return F(1) + with localcontext() as ctx: + ctx.prec=80 + a=e*F(Decimal(2).ln().next_plus()) + d=(Decimal(a.numerator)/Decimal(a.denominator)).next_plus() + return F(d.exp().next_plus()) + + +def compute(root,data,mark): + inputs=[] + for path,pin in PINS.items(): + raw=(root/path).read_bytes() + if path == 'round344/primary/receipt.json': + # Replay clocks vary. Pin every scientific field of the original + # power-17 receipt (file SHA-256 94cddffb4dee71ab62572745d801d8c9b2757fa71e1be46ddd64927593683799). + previous = json.loads(raw) + del previous['events'], previous['supervisor'] + raw = json.dumps(previous,sort_keys=True,separators=(',',':')).encode() + + if sha256(raw).hexdigest()!=pin: raise ValueError('SHA-256 '+path) + if path.endswith('.py'): + env={'__name__':'pinned_arithmetic'} + exec(compile(raw,path,'exec'),env) + inputs.append(env) + else: + inputs.append(json.loads(raw)) + bit,grid,mom,source,p18,signed18,previous_primary,old,signed,math,end=inputs + math['P']=P + lower,up,down=end['power_lower'],math['up'],math['down'] + need(end['log_ends'](1)==(0,0) and old['uniform_J']==668 and old['p']==17 and + signed['new_component_sha256']==PINS['round344/independent/receipt.json'] and + F(old['candidate_grid_claim'])==F(signed['signed']['claim'])==F('0.00387992804551') and + previous_primary['decision']=='ADVANCE_ONE_COMPLETE_REPLAY' and + signed18['new_component_sha256']==PINS['round342/independent/receipt.json'] and p18['p']==18,'complete predecessor') + price=math['price'](bit,old) + data['price']=price + eta=F(bit['uniform']['eta'][0]);delta=F(bit['separation']['trial']) + mu=list(map(F,mom['moments'][:P+1])) + limit=(F(749,1150))**P + data['leading']={'ratio':str(limit),'capacity':str(B*eta)} + need(len(mu)==17 and mu[0]==1 and mu[1]==F(749,1000),'moment prefix') + need(price['passed'] and limitB,'three fixed nonroot guards') + b=F(source['source_lower']['root']);lowroot=down(b*lower(16,1,451*delta/4)) + data['low_root_lower']=str(lowroot) + need(lowroot>B,'low x root guard') + mark('three nonroot regimes and low root') + endpoints=bit['separation']['three_engine_intervals']['source_1'] + alpha=F(endpoints['alpha'][0]);w1=F(bit['separation']['target_tilt']);w2=F(17,100) + need(w1==F(17,50) and 0=capacity: raise Fail(f'{name} explicit G={g}') + def coeff(name,offset,l,capacity): + rs=math['newton'](cs,offset,l) + need(rs[-1]==limit,'fixed leading coefficient') + rows=data['newton'][name]={} + for j,r in enumerate(rs): + rows[str(j)]={'ratio':str(r),'capacity':str(capacity),'passes':r=capacity: raise Fail(f'{name} Newton j={j}') + for name,l,u in [DIRECTIONS[-1],*DIRECTIONS[:-1]]: point(name,l,16) + for name,l,u in DIRECTIONS: + for g in (0,31): point(name,l,g) + mark('12 cached endpoint and G16 decisions') + coeff('low',0,0,B*eta) + mark('17 low-x coefficients') + for name,l,u in DIRECTIONS: + for g in range(32): point(name,l,g) + mark(name+' all 32 explicit heights') + coeff(name,32,l,caps[name][-1]) + mark(name+' all 17 tail coefficients') + need(sum(map(len,data['explicit'].values()))==128 and sum(map(len,data['newton'].values()))==85,'coverage') + + +def worker(root,path): + begin=time.monotonic() + data={'case':{'p':16,'h':1804,'q':'749/1000','B':'6','x_cuts':['3/4','5/6','11/12','23/24'],'G_cut':32}, + 'pins':PINS,'decision':'RUNNING','events':[]} + def mark(label): + data['events'].append({'utc':utc(),'elapsed':time.monotonic()-begin,'stage':label}) + tmp=path.with_suffix('.writing') + tmp.write_text(json.dumps(data)+'\n');tmp.replace(path) + mark('single discovery start') + try: + compute(root,data,mark) + data['decision']='ADVANCE_ONE_COMPLETE_REPLAY' + except Fail as e: + data.update(decision='RETIRE_FROZEN_CERTIFICATE',reason=str(e)) + except Exception as e: + data.update(decision='INPUT_OR_ARITHMETIC_ERROR',reason=repr(e)) + mark('discovery close') + print(data['decision'],data.get('reason','')) + + +def main(): + cli=ArgumentParser(description=__doc__) + cli.add_argument('--campaign-root',required=True,type=Path) + cli.add_argument('--out',required=True,type=Path) + cli.add_argument('--child',action='store_true') + a=cli.parse_args() + if a.child: + worker(a.campaign_root,a.out) + return + if a.out.exists(): + raise SystemExit('Choose a fresh path; this receipt is sealed.') + with TemporaryDirectory() as scratch: + snapshot=Path(scratch)/'progress.json' + begin=time.monotonic();started=utc() + proc=subprocess.Popen([sys.executable,'-IB',str(Path(__file__).resolve()),'--campaign-root',str(a.campaign_root), + '--out',str(snapshot),'--child'],stdout=subprocess.PIPE,stderr=subprocess.STDOUT, + text=True,start_new_session=True) + killed=False + try: + stdout,_=proc.communicate(timeout=max(0,45-(time.monotonic()-begin))) + except subprocess.TimeoutExpired: + killed=True + try: os.killpg(proc.pid,signal.SIGKILL) + except ProcessLookupError: pass + stdout,_=proc.communicate() + wall=time.monotonic()-begin;verify=utc() + d=json.loads(snapshot.read_bytes()) if snapshot.is_file() else {'events':[]} + if killed or wall>45: d['decision']='CAPPED_UNRESOLVED' + elif proc.returncode!=0 or d.get('decision')=='RUNNING': d['decision']='CHILD_ERROR_UNRESOLVED' + n=sum(map(len,d.get('newton',{}).values()));e=sum(map(len,d.get('explicit',{}).values())) + d['coverage']={'direct_checked':e,'direct_unvisited':128-e,'coefficients_checked':n,'coefficients_unvisited':85-n} + if d.get('decision')=='ADVANCE_ONE_COMPLETE_REPLAY' and (n,e)!=(85,128): + d['decision']='INCOMPLETE_COVERAGE' + d['supervisor']={'started_utc':started,'reserve_started_utc':verify,'deadline_seconds':45,'reserve_seconds':15, + 'child_wall':wall,'killed':killed,'exit':proc.returncode,'child_output':stdout[-2048:]} + d['supervisor'].update(receipt_utc=utc(),total_wall=time.monotonic()-begin) + if d['supervisor']['total_wall']>60: d['decision']='CAPPED_UNRESOLVED' + a.out.write_text(json.dumps(d,indent=2)+'\n') + print(d['decision'],d.get('reason',''),d['coverage'],round(wall,4)) + + +if __name__=='__main__': + main() diff --git a/research/bit-451-height-dependent-sources/small-remainders/verify.py b/research/bit-451-height-dependent-sources/small-remainders/verify.py new file mode 100644 index 0000000000..1249a92935 --- /dev/null +++ b/research/bit-451-height-dependent-sources/small-remainders/verify.py @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Verify the directed small-remainder estimate and its complete signed price.""" +from fractions import Fraction as F +from hashlib import sha256 +import json +from pathlib import Path +from shutil import copyfile +import subprocess +import sys + +HERE = Path(__file__).resolve().parent +CAP = "0.00387992804562487" +CLAIM = "0.00387992804554" +CELLS = (("a","3/4","5/6"),("b","5/6","11/12"),("c","11/12","23/24"),("d","23/24","1")) + + +def check(ok, message): + if not ok: + raise ValueError(message) + + +def load(path): + return json.loads(path.read_bytes()) + + +def compare(screen, proof, coefficients): + check(screen["decision"] == "ADVANCE_ONE_COMPLETE_REPLAY" and proof["decision"].startswith("PASS") + and (proof["p"], proof["h"]) == (16,1804), "frozen positive power-16 comparison") + check(screen["coverage"] == {"direct_checked":128,"direct_unvisited":0,"coefficients_checked":85, + "coefficients_unvisited":0}, "128 exact heights and 85 coefficient indices") + n = screen["nonroot"] + check(n["raw_labels"] == 107460 and 0 <= F(n["low_share_upper"]) < 1 and 0 <= F(proof["small_mass_upper"]) < 1 + and min(F(n[key]) for key in ("pointwise_lower","middle_lower","old_high_lower")) > 6 + and min(F(proof[key]) for key in ("small_L","mid_L","high_L_reused")) > 6, + "all three nonroot regimes under the full original paid invoice") + check(F(proof["limiting_ratio"]) < F(proof["base_capacity"]) and proof["negative_control_old_capacity_fails"] + and min(F(proof["small_x"]),F(screen["low_root_lower"])) > 6, + "new root bound and insufficient old multiplier") + check(coefficients(screen["newton"]["low"],17) == list(map(F,proof["small_x_coefficient_ratios"])), + "low-cell comparison at every height") + for name,left,right in CELLS: + branch = proof["cells"][right] + height_rows = screen["explicit"][name] + check(left == branch["left"] == screen["cells"][name]["l"] and right == screen["cells"][name]["u"], + "input-size cell endpoints") + check(set(branch["rows"]) == {str(i) for i in range(32)} + and coefficients(height_rows,32) == [F(branch["rows"][str(i)][0]) for i in range(32)], + "all 32 first heights for "+name) + check(coefficients(screen["newton"][name],17) == list(map(F,branch["tail"])), + "all translated tail coefficients for "+name) + price = screen["price"] + check(price["passed"] and price["base"] and price["tail"] and price["carrier"] + and price["J"] == proof["uniform_J"] == 629 and F(proof["uniform_loss"]) == F(629,1202400000000000) + and [s[0] for s in price["stages"]] == proof["stages"] and len(proof["stages"]) == 7, + "terminal charge, carrier and seven ordinary stages") + check(CAP == proof["cap"] and F(price["cap"]) == F(CAP) + and F(price["claim"]) == F(proof["candidate_grid_claim"]) == F(CLAIM) + and F(price["tested"]) == F(proof["candidate_tested"]) == F("0.00387992804561"), + "full signed rate") + ceiling = F(proof["old_relaxed_ceiling"]) + check(ceiling == F(price["old_ceiling"]) and F(CLAIM)-ceiling == F(price["separation"]) + == F(proof["separation"]) == F(19,1800000000000000) + and F(price["change"]) == F(proof["absolute_gain"]) == F(3,10**14), "strict old ceiling separation") + + +def run(source, work, legacy, stages, base, known_good, signed_receipt, coefficients): + predecessor = HERE.parent/"three-cells" + for relative, path in { + "round344/primary/receipt.json": work/"three-cell-primary.json", + "round344/independent/receipt.json": work/"three-cell-independent.json", + "round344/independent/outer-verified.json": predecessor/"SIGNED.json", + }.items(): + dest = work/relative + dest.parent.mkdir(parents=True,exist_ok=True) + copyfile(path,dest) + primary = work/"small-remainder-primary.json" + subprocess.run([sys.executable,"-IB",HERE/"screen.py","--campaign-root",work,"--out",primary], + check=True,timeout=65) + independent = work/"small-remainder-independent.json" + subprocess.run([sys.executable,"-IB",HERE/"audit.py",work,independent],check=True,timeout=55) + check(independent.read_bytes() == (HERE/"RESULT.json").read_bytes(), "fresh independent scientific receipt") + proof = load(independent) + compare(load(primary),proof,coefficients) + signed = load(HERE/"SIGNED.json") + check(sha256(independent.read_bytes()).hexdigest() == signed["new_component_sha256"] + and signed["old_component_sha256"] == sha256((predecessor/"RESULT.json").read_bytes()).hexdigest(), + "signed binding to fresh p16 and prior p17 certificate") + signed_receipt(work/"three-cell-consumer",known_good,signed["known_good"],"0.00387992804551") + stages(base,F(proof["uniform_loss"]),CAP,check) + result = work/"small-remainder-consumer" + bound = {"installed":CAP, "old_fixed_loss_ceiling":proof["old_relaxed_ceiling"]} + new = legacy["consumer"](source,result,bound,cap=CAP,expected_claim=CLAIM, + expected_hashes=signed["signed"]["output_sha256"]) + signed_receipt(result,new,signed["signed"],CLAIM) + check(signed["known_good"]["orientations"] == signed["signed"]["orientations"] + and F(new["delta"]) == F(208,10**14), "same signed caller and exact peer comparison") + print("PASS_COMPLETE_SMALL_REMAINDER_SOURCE", f"claim={new['claim']}", f"delta_vs_p17={proof['absolute_gain']}", + f"delta_vs_7863={new['delta']}", flush=True) diff --git a/research/bit-451-height-dependent-sources/three-cells/POWER-18-PRIMARY.json b/research/bit-451-height-dependent-sources/three-cells/POWER-18-PRIMARY.json new file mode 100644 index 0000000000..e992ee0127 --- /dev/null +++ b/research/bit-451-height-dependent-sources/three-cells/POWER-18-PRIMARY.json @@ -0,0 +1,383 @@ +{ + "pins": { + "round342/screen.py": "10cbcc0fe5c7f44c9a2852a13e6acdf87b52471d52b9685c579c05fc63aab2ea", + "round342/primary.json": "3102b30dd179473189560b3181f072561c490a956571949b672b7c4c9954bcca", + "round321/benchmark/producer/BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "round336/independent/receipt.json": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818", + "round339/independent/receipt.json": "41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e", + "round341/independent/receipt-with-minimum.json": "42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd" + }, + "case": { + "p": 18, + "h": 1804, + "B": "5/2", + "x_split": "7/8", + "height_cut": 32 + }, + "decision": "PRIMARY_AND_INDEPENDENT_SIGNED_REPLAY_MATCH", + "events": [ + { + "utc": "2026-11-21T16:48:43.336+00:00", + "stage": "child start", + "elapsed": 5.420949310064316e-05 + }, + { + "utc": "2026-11-21T16:48:43.340+00:00", + "stage": "complete price and terminal limit", + "elapsed": 0.0038047926500439644 + }, + { + "utc": "2026-11-21T16:48:43.341+00:00", + "stage": "both nonroot branches", + "elapsed": 0.004336916841566563 + }, + { + "utc": "2026-11-21T16:48:43.342+00:00", + "stage": "source bands and bounded root mass", + "elapsed": 0.005766250193119049 + }, + { + "utc": "2026-11-21T16:48:43.369+00:00", + "stage": "all 19 small-x coefficients", + "elapsed": 0.032420167699456215 + }, + { + "utc": "2026-11-21T16:48:43.369+00:00", + "stage": "all 32 large-x heights", + "elapsed": 0.03299079183489084 + }, + { + "utc": "2026-11-21T16:48:43.370+00:00", + "stage": "all 19 large-x tail coefficients", + "elapsed": 0.03409054223448038 + }, + { + "utc": "2026-11-21T16:48:43.371+00:00", + "stage": "child finished", + "elapsed": 0.03435754217207432 + } + ], + "price": { + "p": 18, + "h": 1804, + "J": 708, + "base": true, + "carrier": true, + "tail": true, + "covered": "51294696636342945020066659727/13220527812378624000000000000000", + "stages": [ + [ + "387981825337694093413/100000000000000000000000", + "5978432366657/3442845784473600000000000000000000000" + ], + [ + "3879927606390448697867/1000000000000000000000000", + "540733298763709/430355723059200000000000000000000000000" + ], + [ + "1939964021901251364461/500000000000000000000000", + "2591774005823153/2151778615296000000000000000000000000000" + ], + [ + "1939964022776075472523/500000000000000000000000", + "3065165301188273/2151778615296000000000000000000000000000" + ], + [ + "387992804555914953791/100000000000000000000000", + "4132447494375089/2151778615296000000000000000000000000000" + ], + [ + "1939964022779588766141/500000000000000000000000", + "592375985530813/430355723059200000000000000000000000000" + ], + [ + "3879928045559177644259/1000000000000000000000000", + "4011947891918513/2151778615296000000000000000000000000000" + ] + ], + "cap": "387992804555917/100000000000000000", + "tested": "193996402277/50000000000000", + "claim": "387992804547/100000000000000", + "old_ceiling": "129589596718489/33400000000000000", + "change": "3/100000000000000", + "separation": "209/33400000000000000", + "passed": true + }, + "terminal": { + "ratio": "5503927677819268750900040417908600544889733961049001/12375453605252259389115787506103515625000000000000000000", + "capacity": "188887219560768857828191657200313519/400000000000000000000000000000000000000" + }, + "nonroot": { + "band_distance": "148475924225776889/1000000000000000000", + "completed_fraction_lower": "21168951223748822475216075606518321000000000000000/22045100074698662520316150305158796216075606518321", + "partial_group_lower": "1710517419740277487590003/625000000000000000000000", + "admitted_band_group_lower": "54507550529695045020487983/5000000000000000000000000" + }, + "root": { + "prior_b": "931168363234716497/500000000000000000", + "small_x_lower": "17076800793721209178697261/5000000000000000000000000", + "decay_upper": "3021227592749/1000000000000000000000000", + "prefactor_upper": "135971326161092377264534580877431968596375838138120172339057699379303311324378174141225600579898697131235668348479104259928724310439093053288837114564246362097620805333860664072122400768", + "tail_root_fraction_upper": "1/10000000000000000000000000", + "tail_capacity_lower": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "small_x": { + "newton_ratios": [ + "67348314365126361045954050533746028312296024048774473902575805402378934754650912354800294436217841230747238400/598985200183606440620632756348054978798285442859042656133259642585503008696429041455445514083612741857376651457499", + "17238005293070293670049472700505692300712207352056712716627116943354345524933982319528397988318911462557152209225540432691200/102462790303580475652683901558995581915657037853368354245937328841333998411528454017365415928634739718448784056021164566286010297", + "28145411332345755826663377782956948743032024237575992533204952734187394959983691908488698020184173736106444890638652003230499909897551872/133625282877938612370029400324878366722309039782009121899157433265555784410510548051627661730888901357045841747652548433606513393147143035985", + "29552635406552840760138053012225350106321196633891766558151033689803456575612954363645743884128361589074452568130301998347647572232283018701684867072/121175390912633057381103409940406794143495963581190932310801172108212403579208852795008107079192403380204060998770257432642347346847674288193896053772775", + "342374752360240351766058640151761372484667081241538323912128072346773783041574433178972911839924744799144519042540486016734932802943021107058856793874838692864/1263554094139131769176032815764683302868824644482028653653855335041961724534555810950557823057046062032940242114755049207737072317407779012360656427377985473744375", + "30079832607387748310339168646299598760896678881175288970953833657266127308324484057848928024287574980091236484190247579587983656953330210957194933683433828676241951691264/102416518031662788371433404001540960336974520043931657119545223851849995944792185395948287539728588024987975913146788400240610902102100482427336813139874123899944158438863125", + "17718350187213261625624894368066708955061346423660076306777070490878733590775079527724955838569834672828308115762966654461369671540287560497202160138942847853459720970188541010024448/56560878587036427462480811779043467471412659297121277706030433818209948561877160940417636908931930200474866388814758821405419100610419899606898782151087433399226542287015577509275719125", + "324711615312999230716329092793277956527627314783108643778142874980956222134335272374709636781241737401705293632708796857671736700752787354356603098492886498930910364785370028265671656684056994824/982759174945572723412768115339592260041741981106425044085854522311842519084983879812358066349743252947214029989290999659448130785992367651578096274231836634566279454926251774762132064697122169609375", + "831066194579890371896771648156751582086050003815882775409397323089710153088797578012398703941483072972716802102127813323078100459988656386160445682541179827324478998297661928345291938510505526750037166219612/2404249215834293957409951885273319546915108046605361936815055500637938466174626224163578859756805477496161366475471828265214585129109759753412469509492657187751529411157587068110235461884383792711848425749609375", + "17457710598998022116334954541077730271069189422839355782404589215671039541014285371799174184152574016383603123105446079216742386626718719655430347731833850135353672616972827735934362352573173340141276581103/48573564164011030331521876468091287746365648120508239794951599970398647861539414697620216722744925088997547234784253145418243970230507550232853825830656230687236103698991942370903612220726524011662557978515625", + "11460467190057763357802539307858352332442744396977628605770261124792280292204777344652291126961693311779974189314526006868860470130024976513726839567968565612064279719748120251809142797/30815263214220792613582927033164760139935361025862886520699678005142857154186117321263419442437126383490050634584388948638383660475297946964130135103881496428724347064174006354666230468750", + "47026399721539836630615733950616099725529601623989398932160424321142170382271659118139895335947993771395499732528478896485706716478459982388370845394060343444039367/122663925595376032205030451016839765719307631268324178747118101190749175636544071028051499621768802564787026284900874381174820130492508421300608543173431976419531250000", + "1419683236548430253442732017668679986547074983311017138565866554874677619921715773660802744136476313833846908426437684562237528706200424489458571681/3603542091741414685568968235660361759536250348636757066301012790317149083605878448759955261550935776097063600074047676150327999646138512976562500000000", + "2334970495569332780576926176729943217146505556708082713732382135131508018522214428654188179574847095000657947903688818173597140653/5782306361021289684694297487719815559645000984118068330504286090039061485439104367960075939372002845587163375991610741210937500000000", + "488815250723620240847986640716751756432406155390493529945716920602675456392445593197485409374985203200773514014861/1183546211926153511032197702512924060378107555349463435607549397053337767893471492531534647086256808471679687500000000", + "13019262839263999680780575627685688047510863044502886913594593638278777770331394428647813175770711749/30877785927715772513750397388024886020561533574323366996357846389438136639412458984375000000000000000000", + "569008205204286450067823745041915670832949195849690266844606006714970114306631377731/1323987399868608316935256225436828467026174135634730944370877227783203125000000000000000", + "11796935715249802837685463072789808662144324189023878943054027810584979/26967181845628010774857126165561845482200180435180664062500000000000000000", + "5503927677819268750900040417908600544889733961049001/12375453605252259389115787506103515625000000000000000000" + ], + "capacity": "188887219560768857828191657200313519/400000000000000000000000000000000000000" + }, + "large_x_prefix": [ + { + "G": 0, + "root_fraction_upper": "135971326161092377264534580877431968596375838138120172339057699379303311324378174141225600579898697131235668348479104259928724310439093053288837114564246362097620805333860664072122400768", + "ratio": "1213239373915256409973791392419998223706154327700944712802945516129548324288251884828589768424979739779917796376588022552985600/1500748573926460089814814411970054742782886521940191005461340212925630413245656614302710184414886983492488726496058746220229812210611", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 1, + "root_fraction_upper": "24485607291493788382240745386850204152074142567139868405342597349092164918498729594946559762986845920806203509585956133517757113620422844682374103845864842215989559879245674215149933850263552/59604644775390625", + "ratio": "42032154564358037316808763102860513644081077475963633306125254631468825217617876421883742599222093557464316415275916202744375867029510003097600/10673272961434451240481589813616206101255813697696595220720977554211855975248483073710237655646582903094175380125786914876582997024850563862889693481", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 2, + "root_fraction_upper": "6205606346036002126528868956048719372863577330369489543973441152766435988477287824047374374841588120884409502855566603161152202064871342518364816111619140920172240329109565032157114284589/5000000000000000000000000", + "ratio": "327558408829626789906656812899964538768894095508485029757169643102213843404962928018232117929802268027187380440450406923873408951306586500454714990398663557120/32355441432440528657425602919844434073936988144603795455848171070707047295710502134019437656261391960819673683354549371590640537950573568073759485991330758316785451", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 3, + "root_fraction_upper": "18748549122382268603220659667336749113640866692612820785654805394362350963311436594707057156636640066671758935196663329903006841157651673293155184704685147610963378423969986673/5000000000000000000000000", + "ratio": "6209997222000567966349152652817911675751699467685243668982256794143303919431301651115605090748825686614152447976655595372519547845638743330661299517243087071490157691535360/327198787585449776407306215158564293126883064652645658264945696685541543236257362836200169762274241751597645680038379550886171031498987044438554261245176504708067735036593044009", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 4, + "root_fraction_upper": "113287267865102715936539752470423203337097110233265291766676837226586850433443385601215496496374537395844562224251693282199727572735221162610662104128448745957289233/10000000000000000000000000", + "ratio": "1573304904720743424781350870276747293936112269341471300540299123006891607138913241665932065538427606653888555366854426262557591845858429221393793145434359211132419435644749363107856384000/52918098471952108926675006106483752630691566646896768403811322620884376664384276279757541972111389708257370085554991956520689602281596590528581071699820837853786733278401201362654206184601277", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 5, + "root_fraction_upper": "342266619581195422932573955404961020439411245919692391306130190309497899596609867122936862568136487222345946044557684402867377665998433038680331753177033/10000000000000000000000000", + "ratio": "23775361117042367033895923400331209934897425797162894280774743135624783505434008697073654981165293174564654804960441921144100152589876558316907444137799185800093549138680983126618417629299139152760012800/571041174513640710690776475793249887716397526201929636322009145248251358468838049655397759873749020262743585089203392502100619507273812506007193298042902607714093987306524259664613592897205221542287759864571", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 6, + "root_fraction_upper": "1034065355155632794174317361426543661234341024716791091960391050795557586469137327009131295739845645281641240088698051140944670938946691997059/10000000000000000000000000", + "ratio": "410822996687199996827525670011243248393437724953317796820599846393178869538801181663926208360628341230558424228221210978298448939017982940023753260818323054359602248206893047047453537590674679260932056457388700467200/7592454036090055583299024885055250379053823628998971807807248384080978527366074530322426478236571205426670189935318912002035424805403399786953289705990246053170610621335389147537167634543287662896985301435270689574873809", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 7, + "root_fraction_upper": "3124146783701992202991073432943073894222373084076444660243419341651745028311356181062498164569773057855083513917020368290083961091/10000000000000000000000000", + "ratio": "1902601753534273943735370663837914381779109639132623506160621815048135140221433200636621553158459797416436606626633884627686428777783538933630292956906755746536304823448029412646346739272357193442687399776546937341934745368521605120/28508312667580186452967829612465939597651025593188565426259149926019980103572847367738613925416103572297837593032420391168927126797703073240738365175095931267062812234949275053286847355198168050089711629834603049504632741369143524681973", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 8, + "root_fraction_upper": "294961202084953146563696504542065331743558915378201496398804406310845250668132733980342909714480196776023458438871109/312500000000000000000000", + "ratio": "1033189051995066823385812393170675660225273502151962279774033254449264242516901540875881377278412282935820951009055293725754569229141447955295122535480070756377530657688647165231444121511068512777920140382625555318825039424023334089655785975971840/13038301997773311484368144284406676274386568221232129194014155389455484462295215770813582429203481221766606455782534511781858463453947409027502043201544561340190667890372386214617197907998165816618292892619484989517386754325927999619674631761927749583", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 9, + "root_fraction_upper": "2851663752094317807318687269800479317863297910061251532396894172672669121560134860064766087047133605803063/1000000000000000000000000", + "ratio": "5250322040037597196899742949117294548950493270824792369487088804303250459565413686780053654444661661304003805439674625620545093964689170235522930824114742648116454801257306644322363758732693082879644080472280990010553117417426204258738590711808000/57417132720267603707524763078523980043134878508837926961794852552118171923815223737869447025070192121782750376796121138705868156717980824092442298827060034689122077938979637369467396797678106001777549992893169943453196869488029419096110477683013947423", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 10, + "root_fraction_upper": "21538813032673742240517003886055133037586232847681494185914139918369885174189276746293178048503/2500000000000000000000000", + "ratio": "2119560371774060227859392169408078759950640724317339167644284021527865948411242686281624353291701593606791994322723195323546482611196053846911471461022752934837750007229900098600530650950935719850860918228174554613351355084376203584847539181977600/20533183798292547295602519848348892009985215381153997336995889532421819253061437133637322445759865893897707067950543182445838787115987942696955675250477834837638717500853693898669531428513387880769666485668993322642637749482933722808841465361432370733", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 11, + "root_fraction_upper": "16268414062343919638104626355967056969260398600976037966296204102394353887247853283/625000000000000000000000", + "ratio": "92366737753015717207762763561700821861085441542392647922302390048252023744781633505298592823798479320717559957682451020078254170484668324068651721415078371444437469888893757916839707220731980598478292169966073334109169650061288660514270928594534400/806456587733775337977968855409427182730748994618058361117883082823944362828527222863394665233464566490408627908907877168610014374367912239422504554464593769433675628864949330200561062395021405079322923793815323962335384299903304843622772054064865309503", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 12, + "root_fraction_upper": "393204651643354402694143580307507611993477902049304340693957682526186177/5000000000000000000000000", + "ratio": "127615223088854857593038295071889250179254815499170541340158226476577645271659496874956710689418146325981226606340469144948673173293327917181525763493639439400143460747161896515560487916653477477740172829020926465028777873752131242664074281941467136/1018182478221777948084737675528820592489592946880922739531656270103292886869499218814933192171084324837556369740646886363616361745653904505732341556120459154761557804860646992879966162148786529454119765731423807114946635736058600610206184737152147696055", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 13, + "root_fraction_upper": "475184297256864299574039267701049353502019505238698626857953/2000000000000000000000000", + "ratio": "88468556147983270366984832626674257146520582175811850938606142114094524236033853732897573524759967978883803692994258315450164965903451099914233972224391264548610561836654102496637784287197368107794570120517229521419645904606080600328919876219437056/652303043756534706069673668299831457415596203096312707672782722981792021757775646630710949252591685640794687068760292877516538485672598278743556977698398860664730677356737718231599181197908092242109352905070955238208371698161383836838208806599629423625", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 14, + "root_fraction_upper": "1794549888141851714897790803563550157077686403403/2500000000000000000000000", + "ratio": "575927362504062542766078152088175937995374057663721907114670551655060443682070273202850705024483446340202041495398670531401228831425876902560022104249139169047066566509777937890295702550793704274495707302879508593465195136851471098694152282285530939392/3960825863782236365986989314220203484229961897970990883559045943357497231663817100300953958345179052449860327507830465030905413991960866637844564517656460109338441052965642404512234771611959166379542033208861542080256406932881277418436696271234286278953125", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 15, + "root_fraction_upper": "1355435909654698469309992492507123743/625000000000000000000000", + "ratio": "1445794958809191945927544142118117688931617883722148188870787737337981542768927493819877384263905204446240300514363778298616223092541653760410886800787410195636814450948646186159794571108255219524029983334465985956305539091013415832900360023866065308090368/9346174659806810536468547557286064975916745357506847286347920635771505288575077802449399516697321208228677550244268147817340944910664933369711292549628177117259673841592342180706038211544387695699941004323836659569962081180312385520878104566291129297365234375", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 16, + "root_fraction_upper": "65521285927225851268014139/10000000000000000000000000", + "ratio": "489118648116954530667664267343292153310827710141046460231414145852065695777308038966282182846365918616255189068447127729288047304575163713997787903436739218981251139516732900242031439889661542069189671636374741488681842539882069328942674910789526004971864064/2991396818392292666293407537849384810371387872733434500270186444900374942603140970311560892714330717743422660859785892989453764675434702727034124532932154651969969977596074463352146802312109460037005916841306698173372846660064277881495711835235800046174560546875", + "capacity": "175885803074357662868630505621597276196681813481422943/500000000000000000000000000000000000000000000000000000000" + }, + { + "G": 17, + "root_fraction_upper": "49488679238933/2500000000000000000000000", + "ratio": "157053190968779543450222591758328112533800861338984411068305470007150784529581975102528412726596580742114065568127658295419620925722381387263066643420033997686129280749907101956770840427523705890481695693192816677930515516394296433311595750642105799487191515136/913776542410231725962881962663684243677717991366953366109001735946285508813185943056682709866682772063234593905221034515595200813651663282009047010068013915390638815024187264409806424309687347432153473191080872267261703020021268712870790091199419401721527099609375", + "capacity": "590272561124422313027656949558879621123095826079914640331988038229919125039819/1250000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 18, + "root_fraction_upper": "599/10000000000000000000000000", + "ratio": "384906289871113428764106854835424111012809268116644034401771827942730076542175352925582234426032099997771744974823375589422113335143425582144298938733070738469905814633388710770895501403290371126840889826526491571510442898249687648656317936937967563976772419584/2140623143935193091568980750505087069447337569928193490926638802545565827098166201696392238309264649244367671052630855193533550182835679023714309714227266472081762884061720386424732426793983675405544178762325806761159525242977754843343092283794854395620452880859375", + "capacity": "2361090244509610722852359641294314402057759451169538602021090562406275372342857/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 19, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "180807932829272766305242840709973462789335332824512770302399375349002958387583293754910065220023495165596871452659804117645665094583292085403428449585373996657793334136452731249651419650168486060225299334839560703343647482759398713111126729258886455635809927168/965101615896283330825534822513765204737122384274523466153691067968024248789007343414567080082008225516880236996566731605492797213612654559400213951365296592792995518076701141588209325483618923931593514206737476040455799951032552608568709251078722959993719482421875", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 20, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "58364795742292635067782105276874392132399051131990004599557218588071081828055529712819766821142405220321817984160160374869016295923757034541180511555876330505774333071032271347407593406716137639120896664103145759648650504337765325985435393606351681545115271168/300070818555853485823552205657952147332164629319100986755563206190218129699421384501231218945076930522063029704781773462079020508841207882355250045965459837051726640868458075058052020045405543129068133887220534420941267848238185033886248605753618512207598876953125", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 21, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "21492704303581753627979358071623434701006703695672103247093919967971618226181794860288059536065376286168349550175102530076248469258947740766946558421905913413072114535361547595591050472835358812602828933761131915036787270550433647216601046832534528666638483456/106766493584074351867679630862342710768624782970286086094755006188432893121015321569518008332374605218858698255056954581345955722758610776131381978602355949557363471310409878784682615957211238549282611874061645368986161205981427697542671422953395241807110595703125", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 22, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "122311823509481935942962180777912104472909511674794443599894877290323333107837237763351354187311589796992135402306320542273321464674397087164106226260725801987067606488162751631621714125260844132066373672293643364678039090119860426599856086581368560156307129106432/588674486922717286822683511358704040724321874447822436196531849909169534640125775307655948721413114419678356288306792520679123420444296800596325937436949122982374117446046079873591711252674866601058071931344377917272127520277238483950526644104674493309208465576171875", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 23, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "250692143213692856958712693771951317085285911805971510517269884029416143443604873673755984089163403854327854031786390409253391536327462650032272247922617300601807385648377213857432125185425844662813938573729441135742607394821131703331990590240824012130926857289728/1171830602072987758680446273895503553679226648626858419031970357319561432289081414893370298999069342916768446417732017809859600879048560541488940388241279534383461507649692511186573006434824028660628163859611931292710038366576596158162332371578304075534093719482421875", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 24, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "19994934053200850211083205944568354622433767296716470027006087111239865611138498065430599579747571028035579001246546481708707896979216052112846422968169454495130156897274828079444254400157521850237078419277650567873723801225061097951279762312253076394396146991104/90970160169915388079027387715065627334941607453792360424801333243732512848078305012966804503862684129478764600913699526184750939840115906663987887859076620473072989215815767975048827445524226973150938909538830536693907358244143649753032879235316523536292752685546875", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 25, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "2989689242326483178822633037078140171652473042286913901650167335772320323054821367807498884693750089093264581555974129198721378725364735592636781379029623736917468732201860959436059341095086732542804836520716283330428409823389840626157812720796745760649066315776/13264691858502663188214129017674056226120680980968185193631781808582878169241702986247668461727798771607633179518314832342748188187432095567572342837398166649640974659194735279614674961447984977376906093921708683111753285339333968806337192597164757413819642333984375", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 26, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "5675372895636525568809273177140454539858617882647640368355528390097433788520706184566752667327262344031955831758998236449079131705827236287784829643034766829121725479328126122737338779738580136962411801623146619308182580557686919487261750352733523726369216790528/24598490316440165171643571098962579250626896353686079251116003736952803624345572646055307921950743890819901152667950148453665527811642320800151371515180305474636358516555719589941857499454725223983773101037596748406616219553354503819763753137838551934919349365234375", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 27, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "7527677260272449960823315495589699362863026820720965100301735946444157079194032191627057827050089135199761452105829037462831732016577234846636784691784748630931294522334351739792616804754348887524927136176177367702617064567594424408619686588791989351394790342656/31922274622063902214894456188052232394042504102050360299427838530602188754825436865720217164019585335757831004364530241341284217656654307429728094773597474418247742393668820919697013033193982677215860294335379590507915193125752719061654382147912991866026446533203125", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 28, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "13693631809268979419763804840706493357837891303192868606120547660046790969421512787910346801852410808592207634313199990121050026757551490639554749141567627809845389003162124452163984728419394853250001655085259313951163647357653659209970364494024994226107196637184/56895881173289105413732127074386329097301305163754934536798501801210030150040412285233036964597260513031867501944535325142964055218978560057138456296680202477429839689999642108768426971861830296306627317399854790705633445746441028658948248416955129527766192626953125", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 29, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "34209177523484475091448725099720157303624724557579021940769341536126141016786447775182110881745665417223968077797045071420121893727300965473352808339179278085102586551503541078050842649441093096783796041506191485803233199892448780215052891070398638760131920134144/139440062635567037259428608703542710291619705045754052950566514854466626624313576615394684014494598992295905217206979467589333778059732162044785009969659543171148583132248375479844649432699289595903423220905327991056964814779431100851990045112717488506726282958984375", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 30, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "3526544756612684028529418298041472802734587285461210720424736171230663909875471906260199003352180685760921950791617629268615782456658945352934729986679997873162054357932922140059271993581879175689468873844425286877416342045352506124590642354701054114016719273984/14118230727299431428374117100190195449018372630859843469727301834682150517028816720490650271878508155165060544499723558889602279920553155975048253446693716591922432735412917035356440093994760467701907506542330356770755606894036010568431502085391470176970462646484375", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "G": 31, + "root_fraction_upper": "1/10000000000000000000000000", + "ratio": "103297041106031860639966225915459012731871060432424797546266676546743046108887667778960791918099180907287253911075802504890923013555239194600517091846255994487763247162938408188587759329282554937569442973008487567409325865074298937149716571438143452754881034584064/406596420713827402912428051578572077229202686982643973448493171453500827837299155597782473108914255597504225576682406432922110609682110739947549553790461310781169038590911955136670114736940351802980986982971935838252513978734141068980033855183523382236687415771484375", + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + ], + "large_x_tail": { + "newton_ratios": [ + "79619787180581125933731442027489328355699584580501371767895871941339460120201124948742430301290372859573769294501867885059961339297972754480841932574292161569163056979215185347057407335270732056316293865775717313882551211873983166062809020614997645904325759729664/308433160164516361428905806962772728172575774071320688667244443164786150976755069891373111062207636102509994310738010173080033002153875535018496778574557486229316136540112347788217317375043265799108821155304638248353117074515403472420215543314002012765361334228515625", + "1359115643145967510078352752119505840313083176098906026035086013748555237508298667175703166334438025210682237707439705488590722667897803005971560652896843189818742271327685350898270611051544035382213196972423647374559768004850193516797942037178362959391417696256/5068579450579696979077846927101029553092227231878394252967465603969224219746151517631490086915803600517864888063316265451618219168606901169279178181579433870189982462623715909532554639058703182909994478420825328422515677057816485317884195769108197209010711669921875", + "10982139822968804119088320674480540298568575015674052186921036386908923334210225776678167016740408718336075938939636299460146082174025244097243715372997324663802312345339971327184925988109493418415120686297520213434729079531461491629521788678309183648843169792/39475895499066924444977168529596364622803647858584276509278303953197871610864243564624000715048417887224501642312569493629489051440189934473470917033920709536064368261567452922524305607791265570936524876773312591380672688350463281646424620070467767388763427734375", + "3263135159462961357478317763716872583081202696120760664802804396520827563032890079807528276159269358097356469782990412989988238555405197674704250041830790775134273580655805916836782688745657369780269480948616978464370674396965855066220772083174645694464/11318502868049137988798509973436035918899233006476017795463287412021625418424517776801952073440944258565339355244545007889006370159024475097489608209392598868599928707501379741115743000905184947440587816350298007352580084988485439836619150801798248291015625", + "781868043598362853381404761708770813603408823920654765491747004267617536216605455190310569545411148185112119574682992396870954324195088329568247668063704225107225670515207926185271972883918480683554994758366809337939167858737559078784217211247525888/2619757576937178695182320624232502447659366741283400334045329521362810192204816415865206222032204801657813407257212688621500563259031411609487723493553975624191806562255033992075175473703639611358797341146983496959943769511803510307472373439788818359375", + "2012578633029006924221264791300614370797862891717751350601341060578192193255773609290548155134296471513833984775256365265856501421701163693963786813290479512868547704641431101594175968654896799441361811071183847694803397070268584296902930989056/6520675214022989049093341869689539860462263456375611675034074078745612039563937275951778629634834122794641350368966848121411886710653150073346169277816850695255286009076750808736827057228610694134721373964639831078169178608541822649288177490234375", + "34509100044296883186414905858646930393107117659077078778346108207278494066845860745665812153271266331958012367907949203312151978005725371225479696438362130997628435152954529166407644820554004069832137739310106860410534469971689970790859538432/108217991534018698634726618241176685021229890943009940760164074172323224887360500835979607055371096033679644638718595613658556114558464676768283527359512758645751605431413494606640970232578431770680152427383326108772769957367651523113250732421875", + "1077677750897778446321300163571620512288170764926677661749270551532453320030868814652545058824456792131246424700415508601200340394486073122208433402086389993059801712391860824723054964149781207964754148505479142998432708976266986687299584/3273954053090821389405366382994610059862832665067026910219933208300152194768391470167294790152535261896535747781381830886495825537846215057377304081743847845253170245304513978487900566204671056409785581447061434173606323818900585174560546875", + "359661799177307247253138489250432451965794669317921474744954225758622007004053991116760232051949411006730606999145854818593917871734200128782611875335647596929482290665424573474234893016794382306924302070502396703330933992173319749632/1059416904199315842473845498459575118522045802000396230305331219279211725660996362763521832012679471924648410513757519959461930623378073844934786592165876595083722134665499553668352162389471220501879499806076104540093720591068267822265625", + "10609658851572035260397013813643715067112374129477919011462195646910561881423791709248789818223900644223535762029456171182712370255915265268157819427069950422002864505613829900785171972767606399999155111186618290411309206214541312/30325989608799203218852348293377322413556923185680012939861733332293251569023099522978595408942451202440510415572234398006349030411648484886845405953073894542460858111625741572783296028452702481408973854997214152095854282379150390625", + "14124524047790138425280512227430109988449797067708241936250519466960929875428357296571374723234794761292508629884107190194777932987603865961373713450914504822992611938686446986350501379112246001363992164401152/39206925525883834521366634346648723267291295971283219580680076958940806396002407248310281345430537948221918299098582693246420869553271005083218290091273459404503518263526146860088869753574065141379833221435546875", + "66578071789257401048538207132249945850650621900271418969655770803019460524557400277776362027673490339797599424532503515017563218761289296457400035138225536504521997182761111896945068032/179603029968877437577776019101542486577023756220568620044529473044612754400394688402928789555732191740418299505405459586328271927653963971632248413341246238577968774530701339244842529296875", + "164810098302604440049116199134079099563198555983334011189912793724828813300912045254226758615757741557380962431424729587121258356199633195490080389310146653679049984/432377047286323095599330904641933575498408656144328027698173155936620084988056993768582177618707232101918486541518663719983026136671028280632627787627279758453369140625", + "30596692434390427952796073531085547678426465271082190226712043906857352999060729159512962333158845300203864277223083602877321001218024579318344/78115714247130476396142738596410592960352154122116930442301935261343123772098762770433179479549534080397083448591500851903467439115047454833984375", + "21924122474371932831149603028025516560836596547325464947697869104962443045684654968253945137627341763425985205805529791501/54506315609442339750479531427879686200283554709925690140471855261158142062366253578825947406854620496374554932117462158203125", + "19061195357976150326728091228477479056185017629335214938624817532710889220828384722345215475862048720587/46174125315848275139987841150404962375973793123691281136499592148586464786456866625696420669555664062500000", + "1137923999033471156593477512562691984167296853853994825804415936811971628422311099561307/2687432023193928425114707939225825046156470490302091077817370739281177520751953125000000000", + "45839514677944559714402732900908466970672303524501984491899967464520307/105604128907045209568296557410974303697505276584625244140625000000000000000", + "5503927677819268750900040417908600544889733961049001/12375453605252259389115787506103515625000000000000000000" + ], + "capacity": "2361090244509610722852395654780697610896590583390934121205377446681813481422943/5000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "supervisor": { + "start_utc": "2026-11-21T16:48:43.317+00:00", + "verification_utc": "2026-11-21T16:48:43.374+00:00", + "deadline_seconds": 45, + "reserve_seconds": 15, + "child_exit": 0, + "killed": false, + "child_wall_seconds": 0.057224792428314686, + "child_output": "ADVANCE_ONE_SIGNED_REPLAY\n", + "screen_sha256": "bcb2134b4570246029b35d1eb585f04fdf2318b686910dac1c45fb3ee674554d", + "receipt_utc": "2026-11-21T16:48:43.375+00:00", + "total_wall_seconds": 0.058215958066284657 + }, + "independent_match": { + "round342/independent/receipt.json": "f91280ef454af5d74559788e7f63fd442d8778937c52575160be2718354defcd", + "round342/independent/outer-verified.json": "148a6315592977093c90de293ca3a904da5cf8dd2fa7840d3a23538d1a87857b" + } +} diff --git a/research/bit-451-height-dependent-sources/three-cells/PROOF.md b/research/bit-451-height-dependent-sources/three-cells/PROOF.md new file mode 100644 index 0000000000..aed998e270 --- /dev/null +++ b/research/bit-451-height-dependent-sources/three-cells/PROOF.md @@ -0,0 +1,17 @@ +# A cell-specific root-share certificate at log power 17 + +The p17 component at unchanged h=1804 admits ordinary cap 0.00387992804559244, tested point 0.00387992804558, complete candidate κ=0.00387992804551. The gain over the p18 comparator is 1/25000000000000, or (400/387992804547) percent. Even forgiving the predecessor's cover and stage losses, the separation is 277/20040000000000000. + +Let v=451, raw tilt t=1−δ with δ=0.003879928046148, A=134^v, K=16^v, J=11^v, and n=A·K^G·x with 1≤x(16/7)^(vδ)>4. For L≥7^v the original raw tuples with normalized log in [3/5,4/5] are admitted and wholly unsplit: 11³≥4⁵ and 11⁴≤7⁵, so all their ranks lie between 4^v and 7^v0. The completed admitted denominator is at most (1+ε) times full raw paid mass, with the positive ε=10⁻¹⁵ already charged. Thus at least f=(1−variance_upper/d²)/(1+ε) of admitted sibling t-weight receives gain ≥4^(vδ); other sources receive at least one. The verified lower 1+f(4^(vδ)−1)>4 applies without assuming independent split descendants or sharing a source between different k, indices, or paths. + +**Roots.** The R341 source multiplier b is a valid lower for every root group. If x≤K^u, n/(A c(a))≤K^u since every degree-G target index satisfies c(a)≥K^G. The root multiplier is consequently ≥b·K^{δ(1−u)}. On 1≤x≤K^(5/6) the independent bound exceeds four, so every source pays at least 4η with η=t A^(t−1). For the other two cells take (l,u)=(5/6,11/12) or (11/12,1), K^l(G+l)ln K. Both bounds for a high cell use the same range: its lower endpoint for the denominator, its upper endpoint for the root share. Outward dyadic bounds for probabilities, powers and capacities were independently constructed with rational Taylor series. + +There are 64 direct comparisons in the two high cells for G=0,…,31. Endpoint prechecks at G=0 and 31 are cached. For the low cell all 18 zero-shift numerator forward differences are below 4η times the positive denominator differences. For each high cell all 18 forward-difference ratios translated to G=32 are below its capacity at G=32. These 54 comparisons and the finite prefixes yield one strict uniform margin: integer binomial basis terms are nonnegative and each high-cell tail capacity is nondecreasing. The low cell includes x=K^(5/6), the middle includes x=K^(11/12), and the upper excludes x=K, which is the next degree. Thus each realizable endpoint is charged exactly once; the analytic cell bounds remain valid at their closed endpoints. Root-only height zero is included. The old 5/2 constant fails the p17 limiting-ratio control; the known-good p18 signed and scientific records agree exactly. + +The independently counted terminal minimum is 668/H; one lower integer loss fails its strict carrier inequality. The original base, monotone tail, actual cover debit, fixed stock, all seven strict stages and seven consumer ticks are charged. One supervised ≤45-second independent case took 0.046 seconds. An independent hash-bound comparison of both the R343 and new full consumers passed. All 54 strict and four functional checks, original forward/adjoint signatures across 1,661,521 coefficients each way, unchanged five premises, and underpriced-cap/extra-rank-one controls were authenticated. The absolute change from external #7863 at 0.00387992804346 is 0.00000000000205, exactly (10250/193996402173) percent. The full consumer ran for 26.702 seconds. Hosted verification must be attributed to the tested commit. + +Credit Jacob Alan Sussman's Pascal flow, zxv's integer compiler and #4480 signed paid exits, Clear1nsight #7863/#7973, DreamingOfClouds's retained ambient/cover transfer and R339/R341–343's paid moments and source-complement proofs. This source-specific refinement changes the unsplit paid band and the root-share charging in two upper top-rank cells. [#4480](https://github.com/CrocSwap/integer-mult-bounds/pull/4480) · [#7863](https://github.com/CrocSwap/integer-mult-bounds/pull/7863) · [#7973](https://github.com/CrocSwap/integer-mult-bounds/pull/7973) diff --git a/research/bit-451-height-dependent-sources/three-cells/RESULT.json b/research/bit-451-height-dependent-sources/three-cells/RESULT.json new file mode 100644 index 0000000000..e2da7ae43c --- /dev/null +++ b/research/bit-451-height-dependent-sources/three-cells/RESULT.json @@ -0,0 +1,374 @@ +{ + "inputs": { + "round321/benchmark/producer/BIT-451.json": "538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749", + "round336/independent/receipt.json": "69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818", + "round339/independent/receipt.json": "41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e", + "round341/independent/receipt-with-minimum.json": "42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd", + "round341/independent/audit.py": "b7dd2e5829fa794e89b7cb7813ee45a0b4301feb508019f7b00062ba81f8b166", + "round342/independent/receipt.json": "f91280ef454af5d74559788e7f63fd442d8778937c52575160be2718354defcd", + "round342/independent/outer-verified.json": "148a6315592977093c90de293ca3a904da5cf8dd2fa7840d3a23538d1a87857b", + "round343/primary.json": "846c6441860cf5e91cf958a7f4a77e7bdf5befa8c519b82a157142f34535c4e9" + }, + "p": 17, + "h": 1804, + "uniform_J": 668, + "uniform_loss": "1/1800000000000", + "cap": "0.00387992804559244", + "candidate_grid_claim": "387992804551/100000000000000", + "candidate_tested": "193996402279/50000000000000", + "absolute_gain": "1/25000000000000", + "separation": "277/20040000000000000", + "old_relaxed_ceiling": "388768790158717/100200000000000000", + "stages": [ + "775963650682014933333/200000000000000000000000", + "969981901605928741333/250000000000000000000000", + "1939964021917884763263/500000000000000000000000", + "3879928045585417744771/1000000000000000000000000", + "969982011398104084411/250000000000000000000000", + "242495502849527770751/62500000000000000000000", + "3879928045592444443993/1000000000000000000000000" + ], + "limiting_ratio": "7348368061173923565954660104016823157396173512749/10761264004567182077491989135742187500000000000000000", + "base_capacity": "188887219560768857828191657200313519/250000000000000000000000000000000000000", + "small_L": "2891366247484845180443282248899876417617/680564733841876926926749214863536422912", + "band_fraction": "17785815334380667721679240580721000000000000000/26547303843878874268983084459568721679240580721", + "band_gain": "10764140856681868754244176193906962452651/1361129467683753853853498429727072845824", + "small_x": "5690215455481750624463456287094847313875/1361129467683753853853498429727072845824", + "root_lower": "931168363234716497/500000000000000000", + "cells": { + "11/12": { + "left": "5/6", + "root_capacity": "3797896958036173685591915427177322436245/1361129467683753853853498429727072845824", + "share_prefactor": "6094682325928050326412448329346863425307816590705030739335952736691208865726197572100174290009794202232829944478588145154476941991399816352065928750889191088152167930676694090783597710512113375284328760810779/340282366920938463463374607431768211456", + "rows": { + "0": [ + "33734754351170356696397833716151400630180594941921301299737095987782164300792543380075534584854606749106176000/15821509356030480629517576109097667880540848376697435388242099067003027724838194406340324506643063909072023678097529", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "31": [ + "2426747336918344021628648011289679533085856348794603473606140792312657178630816122499569325340968597318502229476348569490147141312658492534405535643032012172364176815019575425155036043345083843059224451802772143152482075462321045504/5913947295968914663845568608271178476817492911913030186381791326044605683715101992639778972975807787657387100206608979977857290513965206331007126074024567610279782706681323703982984365677834704282604986603609629658802927160533447265625", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "1": [ + "839957918137078302744975640346517271270390196792306000052189502109190174965311253010447068452391868842383591205006762993254400/92123612406022042917546747621955207256905662309598557459707840277223303479870244342276569663079678365797696352049266062368424724769", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "2": [ + "730556835576621465354079891137425982139056252803049608189170366934714251202226679613704720662353330556849047337106842236479660367773328998400/33738025720203799359409091439783199429372135498108729174479030726930137866407696494172527822678014337530280044072777912166694839235622851828533587", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "3": [ + "11368595929031838305025034624944545757809311674382379972812389754456977956922030609173841255513332144892597551605115223659972700612156567653234503162265600/295423430808311337981848574088537219132603220601450134276211631261703779311426423848679587121891817737206553574075322539032447365007884547190546083507848377003", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "4": [ + "222314642046706930946327635704180278274720454696435492838996419580531895425293150510295652717701310459412718975532881267869851855769080397986200856416207705529814876160000/3832783375742563689817241151849165337185193677584348485681399898051336056530594968432256551733749624911261050014081558767534135542864134926060843592009988782998472414307630979", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "5": [ + "224389404377725078642290169715838341182438771548214625496123915319058402345375568546774579515848566378327459348449046422833347184948871848216330591380169030098268416512201344761724928000/2844109949607518347714526588279556555156204492560507800728885202577462013358677242360231981827337662694135561203517143542577781719798738921955736170809597408834538051603449862992794066303019", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "6": [ + "489461997275128654639047843752598159652796205499596752834584164077180136268342474429282278613056351632531518642278642333777897618202354321695795893508973136352741325371044137177740663806238497177600/4883704409712930300374179107135056305537619335211019039128033350386763492320159999333958345578434596298117514811615311764485387703696113329017466388401415418046553224390116750603389196614327125033060913", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "7": [ + "14214431248360211976209674004602896107269171732595347905577596855237673318593309260973741938951215385305641530984361867153566352029703506252662651863265400696278222253576840320808294718741051248188362622306667724800/117115976348457806731293579395774710520286332277920449045016151462419457940875896717459828492312457421057131863909677190839149976745839015293097203454010282195410897710129987427495757461769103130422620917381274097961057", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "8": [ + "76899295118487562372078344604267565467653847506073660769120599100942104560956191650248050033189102839560665879832731807429799878206841595738163486331205546337332886206836889367019932862191417692869159083804773580800/541710724841194194553451582401309135390674367022220725355098847643335094546787768640706361552876805170903516054166552881877727275945007421432208016036719623026192652546338150138467640694546145275397172208712698396128447", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "9": [ + "357096106708859173461526221914655392660014872345436254365786973072429101797034083502921687996513933489496221442267605908683019328719568318607703362889659028199279158304183192959184379123938512099218225598866391040000/2207572960413567038971734772331631744427592699259928248740068138646673580486164826129781938521524107406513345545816736312006064300628797815322888303348372444314097795867541216836132530227018824321684894004374047768806237", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "10": [ + "132722389375608663541600958414201974360924662143117634943950795469443448335964131595700106678850333884798566271833306016225520234616097365660349780201782757764730462659985137323774724771540346441046673308836167680000/734636530851063047773289004162259378218588034919759913624815188502415277475067304201401175035683935484546003448819360969079248013255424180223375990660145339594290560255772423332471864635898730805317338440763654484195857", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "11": [ + "5358693277363326633078029164263584713140378657694741223509653459237140627350933827593919661186563879190824413198129859910190898054956628451199723204482693294010036545581901852206437498624688962103093519111406336606208/26979444911767994207439737942981527700196311282655882132536908431858043920989755365820873557256945829318170537722981817512589058636073167078050151420317998934246606738000980740768876107332609687613296565925325774640733017", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "12": [ + "34483842322966693202256165800503366068885767639234089746742087414292701047830734480474773754150964173056683577955122499755593708317169001369259839278410405165000656864154374836794315708325150959208724865515757302185984/159924317622754052627956773113640855641845701564461013013415497206353507663349695375143385639897207461724946714786048808885654444624083714527437794242871655273659315057042660612688281041422430878971818320241466680652888475", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "13": [ + "693325737053881313387378355232527208701875388846674124575461407679029092298145491396694382866240814177954186974420527789521676746282651380932708106153037257376809446774666896025469264639175930406426983927413828747264/2992357608229684362690333701175491008337339186661701730407115761764305644686231060801758357142084609562846605652860762428183026818383695046239666903893166947162099972957208340044153338421146153164566584378836110355528125", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "14": [ + "4790943931313779684254509429755245770356404531362939769530367645075834794220584819953851988918419556470259460770310228664444975031360722214934544160828165128290968902010607357937689328498185950859318416512009600251489681408/19406274450249367160511284090400640122250156417400757637384608578205430556146035341761029159650637434243604682255633026032164778498565554961926052985774176550952728430034763661243573897654207674278343879069023605105211874609375", + "179343549145438722044886482949396373/340282366920938463463374607431768211456" + ], + "15": [ + "1620580323502228881563372668448435273857163596168239635651753853128038567338418282475831991340209800763648166989631431634896582478860091076107619434206091486241686973708405311103842057581233016988062084917153052375255265705984/6204310403642995581230278239529165503700294626166363172224439628508707164951777985539447388999393984352156862431145614701472676729338869879290741679408238613508767075189331775798831287126069306770727070129013531812569679150390625", + "514155496017987084329124261406079883/680564733841876926926749214863536422912" + ], + "16": [ + "518788512647313719063378987316022025116369430128500897100732005904117009964084698349232167516516124489096689284603943282796119714763308978739592990562276909932911432583261365596636564456519948747922933837673304350665834426761216/1888382622505794705406696931930399910264012792077735929032124482365219933738335860211565561285230894055661622370205388306002871288420345828428441016757901492026949984191315027197104106227387277701228501939942933095013747918701171875", + "514199921226027173549801470090132607/680564733841876926926749214863536422912" + ], + "17": [ + "1264683104320867618956231772671116883831542582960037536281091338897906456946529079816369020888312712957761402581316360783308330391925891908433239066504983685852353622040753939786205936294497769165215049866642490019777181006757888/4398930208354122825514925474811117226337892769001428780581759564455199832128110254932635521064731175810967747909028256552581516472969025677899956620282543034405185382127804704347253588555264594982760130258994921908118522271728515625", + "1028399842452054615536931628836884809/1361129467683753853853498429727072845824" + ], + "18": [ + "2949104583076623639759218872690728455676705649650631443147858931852886012933094254837237898894340566789813955311837528715467256890852859846613781190403274200064349831066534196990903082140088633334165149271509809229112996517543936/9844596051699028279420730971484765399545096566046721546265490808132094888399985721462215994737799986954646557276578845997605090007246263430189912781012176330279356617549443252892066829600371880230129181968133826070382114984130859375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "19": [ + "1321225323966938490503373435584691904577501921174811817540736374255992527615926335958513567579704569467937230041615427607543324462879047217498563930331213920193431468042700001345975617021400986834541514529862636824905018695221248/4248621405953419232997471375004496511457348404446078322495742298620277287136595271003504132620244897140823944669660826234890951961220473151349850700897129118085376078455095508624857157277885716244176372889758138801113737242431640625", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "20": [ + "5299187001951825130335993060058227018188601686111963999674294330160905538111358391684403069686187036495918202870839294986905583357059573361503802145341325347673272614343900219980162291329542430478282574105066520928784715350048768/16468485208815972244377852000456192358022820208698656379916421262154084180920190886442439170647194296192280247048868152736324876664596788179775886555871687152417032102348720903859805352336026539280017356658933982195391271680908203125", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "21": [ + "35219092906808045399156363178960573473515199627647356020764106071837012155699957262688499977865975853617457030087240629318043870782935977816035200149335620794640589808996569405001902864155768508901999460820610538779546761845604352/106079059048765760680405426586201264784882718854512373163719751422131453429622330202376286766517463215890564604058814005580994055340433230850695977586963820951627641307539628877926852193288309668413960380756394272420386513958740234375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "22": [ + "784829824569785001491727093080742070633073961580089783865115017272866987864575026466890761999452599982208837372414132268282503204938365012767466558977582312962269610740863415586015585986736078028781172192259652226597834757107122176/2296783211134674656922958607341853093434823881696019792911605255727249328745045065470611566775821824140220563226055697175589448413394836082026890682494347568806548114353314574953103755127752290024951735358743514847787285546307373046875", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "23": [ + "1545793870041917438010508102389285094831840057952354507450578865246221702946200793743867624444265192789104958248959813138179466412915586316930413865426078992564694461156404609837084861358561961459746089767763912393093891964460204032/4405040174107642737970794459717043097842157455038690292086887240521270225514695685658936273526022479423911995260859599461683875774200100724110275604403888681472626069240343321639544480072692931259558978796114808452243917769146728515625", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "24": [ + "118658093250782120885896030874543210300236221681856191140462674277899848640792351671086462107739048925229749174648001687674427069797507740309845490438356942731178721626953623151572842655520038382848475806882166543963190059750293504/329916156613246599957568741436897693704509435030439030754933871191858002207409616343549595416781021896237001373451112729569835061614809734289759000564887135906000912819414445319085851369862619392965839383183433555365785405538818359375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "25": [ + "17099514081510568410591936681388468863959345948156331260617917287279760713436564710160855071417794912460666078617586764804392660172456658444836828341539648177627421584994110940640810827294229454427164081389745971520554986534797312/46468712641977381000933412006742143409249803092719094920972927203608484655297174841313555876881745796035292223982969496186709648117486261621648889025559543349857218794569025195861345561200004283845938301214537618626778763996337890625", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "26": [ + "12048395114889303761054919201926978066466096001503703951262598696239108854709624965268765593160352616763226166762365140125429487108490550131987338355359906484673132005594441479601066173974860821474965958313294731817310117915623424/32052406105821444717560409931913517634271816255486109465527604732879209717896003291993781015563962954414029670187006704316923683671140255884637596368859450943765218125359828687051260169146131525398180236342674877500570392386474609375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "27": [ + "40146756733794164666080900218931212166294659815964704006521990056218121525761521522254459215282914313944633580439603605813140484837895444335697651051682167553629445724178767973154820235605623794774040579496619463636286610885050368/104701296344517079585942394437174275833299153546558030314604739832863365184898155157944084490219895038473553230073342861791955589598017954569549278932335870477896907965855145931250116342116882098928424296639114569664498420931396484375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "28": [ + "494519139187269048625961011434250920104730500292970542147283855840535393762379327906691316232650736939554982742728530951232260937070661604350501470255939348565486373667001610430426317898113060215905462596710606468257235568947003392/1265933632339782052993936794225567826604953344273799160993610927590563208695755495915287978750663890114517719129312545579095646769172203244932909367037537995579527745476878365377187028517251036445167583657784988272498342797874755859375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "29": [ + "170903016364008998102636188790763054939005535712797283188777914807213844646777785844446293251594209843282725078051713797703641584683317704438256505102885952607933900531116803888162893756988200751306401031306096440735995080178991104/429939956640222398077260750236567731730190119605463729622675182551797895057497535938575924459821336213409908465968614336771058946939746017999435744646590013839725261387901295285919964948657195255398709096165256320352084959924072265625", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "30": [ + "290322656249088586694232527550503846776134955118798093514203977983701257871742867664312099014382980545469584018978489305249687691388915010623320446614266011131644766990082702799147397929988565314021904355389114969962551684359356416/718501188836131959111815810376230963346124292038169652986714976616297065569124284089512499565098845014677829686488478355568628249675632000823070335547909919255606963675367859603242023760349710266939956179035429142270998728632568359375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ] + }, + "tail": [ + "363292428892953859445171422716327665175235777940574197907769296902154919696918488055365109690425921113274667503218701018565563833130644417359505080808567392363044443640126936034446139876507217390664644679497390938991254450797740032/872564672826352102517891218951041133657391101485018902548792407356684689792730250952595531825375116647841773980167612536740723383933433707803631581810986766622056937892333512332473599581762845688323271575425426762377857924376220703125", + "5398442246475045096006949562290389486269475718389315133081668543277539053616307555325874057126284083931620724804949864458619791028027328214964142768832689456825749869471387382281836731925326912482093748716141329338078603010426372096/12505839298057106265943636130660121000545009214702806875304116382327837550812855957839618561708180730175868815797108780320402073634884739969736577562319173745139881781824317203534761368235690724092920912590619668672584580266802978515625", + "6536050711154214315292679208536805584619742301596055210603785411154086508182655117455043812825605173288344494053021754056462636716671450209121899834711211580185339947344306175175081264255462568854891425026619658189894436118528/14620391153138690368079763548866159027680905566878371481055662576277871668896714348262699821662170350847838925350599567806168139161086955086743652034688870878664846076052583349406175647684301948600121487980670604067395904541015625", + "6377142972435432480540732714751340275910050009379065373888489029179672804314830416934929520228896408039900720161257218757465739842509212966576633976930878563523075846715931036357155211973434866796694373940302654550247419904/13789080154727392208126611910788472787480988691284645861325024260229971137044356352989169222343166356070075492168464537861453052467329115098386325712306997202431056175099004954175721226245494107408949764939600588946685791015625", + "2738880559782382185210596810131189498924706384030141380597722278584815051462889591630556459957419050550334813435278583683432563975227423751065427106797480628615575729333127893473871628370112891952016627319794544850191872/5730427369679310064608646945681105593388831370421439161055340644125604779771738080729916302021751501049479235689515906844304837030410238508443867984915271568026663484454389803215826951910356037405253801786801143646240234375", + "4658663609781709857149260533836639449702154371450839591356074485305754863894788718814234116752401277272976384116120014172275328145446381553692064767027882621994467709016804755979319422769943520230530417402668731786496/9440486704640579897256713415050616829903708947937795318018459442292369227493001527156141187118677435094643316544154033267218419412884946927120317650720194970822250751078854331154905307632471394231564976753787994384765625", + "591385318910875653700669157547546428799017220367326484258321605931312671246828544293261078425294348758890163689438462940270630944569255656605570208361078586050116711754251170652569196737456762271857872856460572608/1161754008645995904501228857247933035897266710972465544251719970894852408831542620885533572265812456729224737408621294067942080064576883771461107860590274323350609439229897642265142250795490981261499716091156005859375", + "801873895869731065137535232131661416812050222697255187541496258086800988335253381144100002706126178684405229870721509055666406007236231180416447517408351211654760078190657026538101733944893697677563528196441536/1528378061131511667675469468549490518024673917033279790668764419472632024558595560273214291049027373826034173395528483855927208977480037963550978196964155319442215303313519818541886020940861627246718883514404296875", + "96057687425830158807015741352031480681332992309547315406154419427588461205902178256393694336223996347303670070424468245332021550369960948047206920985627242436339225258864839538864581886277186650225265699454/177782497847414118617345758208591276105219998417187240417516124376707358969473797440976237838629439014360084300093457534856260993337196785172234727824748996956951021441567311253069581982296939556598663330078125", + "88621282732167582274576877322436087871183603989969954480306920791944520776339836111843846397791608400638477887449213011395887388555716273394274271907381694186378383807096021831894177951118992121093797/159389688571379107145339796750302547077153769524444586293656604121261938679856314480851666398511699198801712760573056483850015707205315317701225014951284981190760000298676489741652793647944927215576171875", + "3057470871684110371768892163749488509852532119976037007042312799721076396263542835310276226227820337711547156703151467151455806746766571157697307968565821739885686232224282137366657/5347692036354425849426978740006775490895181976624664932450469603553117791380675358415615903542557224059476938538093750614327727510575135147667523327703368356229258245229721069335937500", + "797270148010932250967899382335299991187128733071047296789785523270259090049279586402468641932191143337220047610811100839183845545282959320446373236617094536961/1357039821049555262688646088158091178410871557183975234035934213585038226269167096151935614666970442706141290421083919503334486357073028498197257518768310546875000", + "8914825289899381658686990918553409815996430892228091821974920999936542467370490928938549482423593112613225597181197994760237336134152134063/14776439358612210770608610436148578078050307459197330615863899486513504118787112749440228022015093431368970467674621796753406524658203125000000", + "641199277660691882188728002531156100426820408520735800741868525422808957609937736782734530991311713589932376441371040727/1035603169113998575677630070288718952500206422014488546020659757438800871042210444298863844020689107441902160644531250000000", + "448432878962162984774673495237835331847485540440445884721033787626672520689518782645684972076436938307/706158626420549257638783385739098735264680395907125034092809232729744972400189824104309082031250000000000", + "8689776416348090326959505974261470863817403699258847062504567846153020683902518729809/13349573141921601143176026618742314901266862084088362939921625995635986328125000000000000", + "60488156867995495553344709382938694389083093195999534258264665186943/90703011402281640783679143870687566716848731994628906250000000000000000", + "7348368061173923565954660104016823157396173512749/10761264004567182077491989135742187500000000000000000" + ], + "tail_capacity": "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + }, + "1": { + "left": "11/12", + "root_capacity": "19803760915212844037592324734668313457/10633823966279326983230456482242756608", + "share_prefactor": "29691188426328780922201998570483331335869920493956402066717410968250370388506364545278254027431789604573592660021951649039172474912318466687699367152990240675450050741162397269781768266069789249499926015777062831421179473095/680564733841876926926749214863536422912", + "rows": { + "0": [ + "4421681722316600992910256860843396383399030940227508803959140645310583839233480245913260469106063015818844700672000/3057575325886613793502540047979413381094705894964200275645764763773081201515632174582356271109174025445086954026129189093", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "31": [ + "318078626944561187602910152135760875760629363349206266492504085930004601717498330808263550611091435987730724221923959700212566106132773933469602367803491899456117383498245790125920884273326829477458667346692950347282130594997344076300288/807502897534576025001570325904132336140138713752735649668535041885900968982313599155646481115860229590471653207686540960324294533527199472101245984001651329440057533596889540235214974536252786427811475417316430800901345722999223636474609375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "1": [ + "110094964246063127297389447131498711779952583873961132038840582420455774613053276554585318156191907032908902066422646439051840716800/16376734345525450748845290976224207640097867189762771499251574216178401360223572902556852026316924416673173983795586546319950837672200123", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "2": [ + "95755545552698928706889959491164698330930381167401318244570938334866866333578255350327505146655975742747318332569268025619862043724785778478284800/5682591225566057450678538993842878155352610229903009983611523867316570573973869484091804780741926173514850246723068933501142100846925521842194485846979", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "3": [ + "1490104605610061110316241338360731501567582099784647307796465549896185014769684396005633721042643470895362546283985662595559941814636585635444752798484476723200/47917050164548273624620380764181022131974575948947375296887826784329558735634911251301514626056064390462356788859614934353333562847037748768872192959927927839851701", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "4": [ + "29139224762345970852997055867018317434024159437971192917392938707259476597184023823685471793014546164536143901561045813542237222439364905924847318652185176379203895448043520000/604590514230217471532422344409098696245436951235143595451952961592036499640260822164938239398879659211815371358511372763761372036599084328425366336751755270228034951913118659568543", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "5": [ + "29411168010597181507802257124994363055464614664367587393027953828699622912213066520562837686301303292340136751719913412733612482225618530889410883273381515113040237889087254660608809762816000/439129915810028142275850333910403631993065989069592605767358925826384926524673337952453185260516667131692594006269057103408934796371221908585514142990705910115930147722628059461727966476377980673", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "6": [ + "64154762906845663020849278976340545982011304247243145587534615553924154820964184808394886822370522121179171211480746207972936596613018985653311359354008126928026510999033497148160824286411292302062387200/741350193146039432447381976767648705330101446743095449722371554709089470163533798089382158752396597678472504909826699435837850846786984483207118110973720251261933988413167186984989296852451880602441490718121", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "7": [ + "1863113932585069704145754391131310798571984877334737440679866775009712317214662231454350303422213702982781046749182278651552248893237297971548999105021922600062579147220823614528984805374827069202545065630979552024985600/17534858379073226044483743926526904670432871803134133357717207408788652934102491028831872676032265098004677804771297719006625018899673462867137397864259757640984180093169224922548344002948054969783526867325778110771456375719", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "8": [ + "10079344409770401775233052783970558340976325100316086864330175165358683529013649951981312413950162087386895598201435823463438729636327141636592564480403773369526896060902524763114036640113153499839746419432459282782617600/80185107596564581699126558559720305327362530197396853361824917605754033461098513117206800234818994139339009705772245944677377471783733002587079132407709497528949313725539226443794060306298659653966166904152963181511596577699", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "9": [ + "46805300898543589583949164958797711626733469348061020732232430134549427230740851392894951489079074290335248736880899641662900709453931258656548895180673388144135917837245899467546214940532868657868731265694615606394880000/323642652624216727773607357746227857059372204667585423478668180730396432687523654831005475260243884447919002085771794870749418517073947916201878085158128566534275460181547020258884163153757604737833980757138849819216487288479", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "10": [ + "17396189020239778747724720821266281183435117316422714647373518663770891660291490656511604382610270962948317678381735086158711388191601113911833366390608069625738751201769571919301800725255336288720869563935774170152960000/106821697279225868854463225933212215993436484506793615686305554836492291788747248366774853682684467460385708816479542078319524173663945505591129137215890786590286865588281497597456303720644893311290080447932533145075940584369", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "11": [ + "702374645250565948450803438618356575520735711421365121647857298209130496308141598650390237831045300773299737486705276998148541389859275204355650119857955575432483510102511039572402175819735231640776673736970251351648894976/3895316836641208354576628997252926547291354288726394692865006829351393264767713101689838183925393404048785248713153556508705554797505862293413455377181877663419641697898002991932188424381903339529022589309946251672582876716439", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "12": [ + "4519866180955890411406120163803577197380995336009690611284978881566172911741270029824789545504075176090885629929733816287965178536547975347471625653899808625786966096498442218608304548521594186525405985572881341112121294848/22947764703871606239061799385182160432037757937691833206799781301770671339621568606911298172610558049865309258286262960666254228354370083881981455463745277885055775753734271126283837622991187374294722798778304773921209480141575", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "13": [ + "90875591007126331508310455777037806298972210966911270856354877627305701185702525848347526151043915995932811195111247418428185214488759681801611916889690899398893167807649139395850307454786067550231197637333985361561387008/427049180176985329829956502724930974638988396747307111193037398023972520343087484267475068362336535925974450004442383560176154617311484109641597484257861560105674532451086812289873703847821297040593154386200608908561701634375", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "14": [ + "627958602965159730774607059976879573612154654734803241471884347975379818148080493520991287891515088105669848042086102291506131767310512582155900572248069259695353875924334327619608815664914228951032583489062122324163255521509376/2756212468959526237970109060277738049135087315364723561588116320673011427576299304984046892516154789896533494799659913172357406323394726942321238068219597534739215176918560459885129095004929615145258293735324886619313350290696484375", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "15": [ + "212412704162084143964274382398873308215006146876963505524146681037198271098181161120672250768943979005692892543664971007249164858669149857527577894480260823284670395017908100937002786171287374002659273594261084880929458186614734848/877394131671829631680442122129550039502605594807442562268440585476366869096627868250930262694791538532318820609061808942214906494814805640748928941245877885710875940680933046588518613751116347929674220863663436553242669605461083984375", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "16": [ + "67998647929708703785075210625485638876052773945802869584787145477864424730012509582030558660724801469034881257911608053962653003253456434461355932458978759138726567291553233711482347776444982722287754783971515347850472249984446103552/266018695461030398530616326382313090058130248493889485503868718050741699903415226970561091088398697026574940595517073046165730080594728599226847873263765615562910480266327090953127328427457697166678655592636293473048561781940325927734375", + "59850837377932500679488571339603943/170141183460469231731687303715884105728" + ], + "17": [ + "165764543849544760551831210907548632197567949433738039955435203972026395124895459549691120305872923912799702559138298040589789481130510504222161510924941221672039693948125700395657584481992411600023067016120564451872234668917769895936/617522549050005159872778955332244299253719495567515167500213483908506772082080657598886190281019541831381535519953608470484757264015424452540812989478579944050141900391475499057445272939659508250659503062981130336551470814721453857421875", + "1028399842448563871797144322275196853/1361129467683753853853498429727072845824" + ], + "18": [ + "386545035913019213710520336081319160142457162911007564516276165915821475487166530170026445883879006770274494750633168563793724295197866045815361528188537955950834461057552770267991648782265697348375694445315333715278298679547518779392/1377613298656182665699206296854398850734239171040243704851727769491074773294216556841416494869033125317142561183360951604609182174421435955108699618874242562868435008212904695650620937832583385201101944419056689818362177990432269287109375", + "257099960613013653884230270829147303/340282366920938463463374607431768211456" + ], + "19": [ + "173175645662994561827258162948956737316782331812224934548699398046481452579674696706754290329807037329301468616014617327375918623998482476891971771476372870947593449379292774576419716074229070146377025392458155533913950610420039417856/592819760571642523516429201087493375778354010691041899587629245060364295876483348802143687010375801592072461300025462474391222904764390450563004380452771865282770000033672777833317013361414206165679313563389355609118554818845804443359375", + "1028399842452054615536931629647895041/1361129467683753853853498429727072845824" + ], + "20": [ + "694575038719829623483399282367951931728016400202067345365309106442850210691331967114858079149907907247592990686686648072523688621776512399639026354794178195970231188107283689633239831849145785447649453553099279031177670210361592119296/2291815350321822201881553613270741190998243654157217475237355954791232876987482416671686136009729036477523826769256926502431832359334964621393443356071208780118733911336179450803036718059581012169683889725180521768246165426863814697265625", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "21": [ + "4616236945481144126558222834592720286320584245594994248353592911047820857271904798335107069098849187085347327847594803765974646231260984484303365753973718488795131387444798345052409412210624889998802873328679064538912753168627053625344/14726521048309444751433005000621356872689067859224579799675283888037335837290215780694115307366861014428640105463798672894033401143130521908496841677440732746162762184299479952211998625029094158770783682556015325052856362799174493408203125", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "22": [ + "102869214766010859715523653544279024682018270292225528150768355543989221833385577869068305956792251184868076732077065144668324260077681378953457376818309668924590602419026449607690234886453471219388405801583857136644631397283544717852672/318139316515341432968277757386469643573466836288348032877614445944497506425655883463372161377260941600411757634166034847083889477009752198264354081262947304247369467547131271814299572975030230936682465917912114663816476322390316278076171875", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "23": [ + "202610294134134202434913317996368375949798940075931010000562273025552771048564430437596217271158727349253565087607660627647459021673671729732703206169127025713439632412692265020566386947989433412451839478040351525187602607565727862882304/608901555627526773771652496880506275391543174856219993538530412041918518923760870967452353174863448119829762201511932956743439367974522240165972062167964659468049868874011646460375121058327786575652394643503352843713071935570455316162109375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "24": [ + "15552753598566514148756164558788127660472562048284254685162723642952888961045935118232644761385572620727713683819462877206862504892498934537892068122736321197661057401088065293722955632544322470916715420959659333250343247511590470156288/45516176944859338355322124182619459507138019663025796428303358062086663778292676885298236656065716412114602292502535944392726047823707041062187602662967437663680805320497410121308495019897605548691899965478709700234643242390284711669921875", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "25": [ + "2241267509691753222713106324702949390936879392116746650991711654678332796231557409690203595920873214766044424256564332436441354754124239135681652764382284765937981401988348109211672356755109243050677250475916783979142183195088953278464/6399500979137577171736449392226007340454422728380954950886001684360980332306059203141225748681717981419541472339825548837019781077069438532822590640677464603765403852348534292379776533589915812805619824786149498363612679499522569091796875", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "26": [ + "1579207244498770822568990369634972869127844135109093484299891336313452475804499963447707643826713738184389580129876723646520293734284073386899844412913733662759076758237274633614270945555232957592366738088040167088758471775436593430528/4406784125482310475585803415100928673229353391794599803712652155496921670300077927916867087197275049294392084718531084325266332672893883055636850786813789629410991398184116703484104736626287278396962213366295873962330888056889808349609375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "27": [ + "5262115698611868751112555753495751841060573651398125683542850280648621624624614148964936478265562144957351012655379723821139949628672631679968562518646085065589318709959559475777348597921300322028623046835780906337735358661925321834496/14372626366406803752923010059090282169526592142190236795627108254108888559347191840554363163375034610485358534190746018030823190626029692641419262811425466167131082347494698886567552509101367195282836934430979359468292435699769908447265625", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "28": [ + "64817612611553728741501961690710136599967236134400234900328789552730655131222583267385844201245997392141350698054914008839914905543725757805428928709386482295175429969281235082336838339541475028619160793476052611007412380493021628596224/173524474546032788692819177616263513294416102278267435172256995141692550938189655691150556344200863140759468431828177310015333310017818760230346464395255254076768561606646076803775406181956560045160590887837947659012633580474859647216796875", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "29": [ + "22400600160863387399308730537182895136965333576947765502119498849611133045542457946203264549072956272578753341430394230892611709787611818156131156636845467580227112210414541719229286810515957448875232595975352672680148347149220721983488/58852130031201483661939634315583721222150499069314056127900784420136267629723604271240282637836391853051985994857299205573747229675040290252067457926693096823556087680121487872528134100860025186004386860798149473485307418487701924560546875", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ], + "30": [ + "38053171199880539235186445851099640204641560837331103713093743802279691271765081150496715442013206026055789316535548550217687065085727868272419857578625074611046942898924120021289847741479461232839479047669562077342931574372349564157952/98224954545096156443565364519013636313667533227813405390000849004868280737210329577958552743735507588920114425460862740772854287060222708844140577976591841906776576539116957888691924887739341530961864063794680448758772310920524107177734375", + "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + ] + }, + "tail": [ + "47617465239857248265197508718274499729848503886226941268167137283559249634514500066392815657343506332159137218981881579905425582736099825072145049951740545251808961316798717759906924445893553997829196307431082025155461703374961381474304/119005262119238951482771172371964695362150263040309157003171118658288345058776926728995273017609184831213171937562512362418427059283755101229123598470053186202120659390271279372213368255778900840444169261771564916504615815023100015869140625", + "353792311064988555411911446514262965372156360680362156561640229652236799417798331945836482207828153724542695820817194317160106624812798981895890060498219136242532343445676843485222452063458224536426495915861038159500319326891302721683456/850347112959044439446345685039043772444451713192338406271481694679948717119909408909779396414326960577269605051190130873470482442526093415853839702679697655919959610765287076183801367123704345942403610306201746180601925183849987994384765625", + "214173309703101294683510512305334045396819715738699537141064840352697106700129242888766875658669430318312472381129416836922167679931890080452506413783816981059513219394578224748137062867122997456237082215272272959566460882731925504/495673842688823554719228521344758809876050844821162588457993251784519967551801684808582079426740038315328968672439592378376130393568185410018614694557406857093985738140253477741731607821792575192367862959055506742509684493927001953125", + "104483110460382125761179364798485959080510259353666607085789004254079759225894181551061885259430238749325733399122038272122318681579670945244391571078035514384762074672593814099675630992972756857597040622637918692151253727707136/233110799272398066089938665949046914695019611559891375278975458026102035609780392134445425504273446368522062139056926129263712911197323179656198132009867141463801342763790512886833690310265980783659435507165707461030039825439453125", + "22436909545737274861245209068594704375191194697974918189856540906166804901583991534637518519971176862108342791661802157534679564085063055368727978858884961309618796374696983703337956379607964810870920211003756911412771815424/48310172773205787341194772855404352074156750149054427330996162547480862870205208918890483503809652008229285150116627008467971921265593306206512648418945540612875716724567686870802399456403803680525725177158215426265716552734375", + "19081886145665883574883371146594875185980024305462638966194481091812371922513054592263102942217835631710111269339627578049639744083748378843922697285746207219689339736132832280491292355665688658864252589681331125397487616/39691994764659179565999035927958772427493442410562613729711631830247794588302124100971995854378777707008388874570727410065130127789647252979846107407026641008084576834288110108682279871461548041211828275203953723907470703125", + "1211157133129473338778970434657375086180387267312284639761042648947328350713504858712598688615002826258207055235969972101674252174477835584728207786723488944230639025672706397496461714918311449132764923610031252701184/2436185789520996927330049283988022316977263193813952692235999549895770553294108099163930381100334732886595660523047286319274202225762380745293299366689827185922529222910230363952983248661434048095064838611507415771484375", + "821118869370604610700836077702821290815539428041989312042492168280884212055299462291558402771073206972830955387618825273002399751409900728746442257826151640734474320067232795175016175559571146421825052873156132864/1598614725649236868474154967660560442008847101898889484521415057861960089673221339164785983228380212673708468610884072202427262930859603488092573332025144424043080982473514208034038553377593121174448318004608154296875", + "49181535962025041309192059572240118108842492062488225487951062746925292137421915267273571500146686129819479076057327741609995033789420005400169943544641148127405683332538797843898665925773919564915336038120448/92756939799620778101218441499360508051937511522167045831731263329595013240601401434540616448276440081490148404121215706509929886210844193377912397759966414366663584502429845894413535669869172076056003570556640625", + "22687048379434901062291680594543638495023002621432308346958571722737797318742998044632024677834651750563450339186998530917347171470263365988934213608289713711712866254616581588964909555486461983000012032/41484727869969245092296280747590562867797958317554443826204929185734710362877176772734308080167186380267499373935810333263158207740567846268944842480724751535747068061586681471796189178361594676971435546875", + "97839067893891531896604549239983632315281027839233184225354009591074444680433370729928839239290250806769509014500846948846585815896530277046313854994106295676341959431177028395733024/173592106323558017144422326532020737806015138021362552144617029220607945228349163893767494312216758375558433117867394087397410119425712688216497603009164095638342683260142803192138671875", + "6378161184087458007743195058682399929497029864568378374318284186162072720394236691219749135457529146697760380886488806713470764362263674563570985892936756295688/10988678687969532336560818209963013143985307326910031684293666787593682263723655410867089950799963443961771328042164125749569799474071595192421965301036834716796875", + "8914825289899381658686990918553409815996430892228091821974920999936542467370490928938549482423593112613225597181197994760237336134152134063/14924665807364271075101202840480127916192770267883168175684977534295292097177592953822657609667682516935384231372316820165291428565979003906250", + "641199277660691882188728002531156100426820408520735800741868525422808957609937736782734530991311713589932376441371040727/1043810621641332763809052499012411506088346587634011375932724160526043641598267119833357273746132071496546268463134765625000", + "448432878962162984774673495237835331847485540440445884721033787626672520689518782645684972076436938307/710304823234165927188365898379706123912012047863095888428195737067883140900518904328346252441406250000000", + "1241396630906870046708500853465924409116771957036978151786366835164717240557502675687/1914457443215210723685619939473579554299014811804044776378158640861511230468750000000000", + "60488156867995495553344709382938694389083093195999534258264665186943/90876344618926633782617677912116811127969699859619140625000000000000000", + "7348368061173923565954660104016823157396173512749/10761264004567182077491989135742187500000000000000000" + ], + "tail_capacity": "1028399842452054615536931629647895073/1361129467683753853853498429727072845824" + } + }, + "small_x_coefficient_ratios": [ + "257375750359881261416609449128352360764927634749765787504097717191941561132755610504726673773609975808000/1387802329859354553148194436948555002116011656110866265221045169762082192124847468774708274155916706303133757", + "425664836775193228970779874809735934491996897084648551667820438514108760051405253645124859323162313308326431847796244480/1568210624512802933610305771471395544046462014172491364692105139737898464400899111221676163026441437456693435721114756170311", + "8620371458221416553044501088514171866577827281490161294712175807845855011614907046497202271207702017616606111732292318989513400320/25646396677509886402868182973662984068477511184794945188575049416052466907529051021901755090206300499073845204526221967617200543374269", + "8747209824688275991262098299724250277999060287825241194391306623518018180088416453239159350491128763667312611513486787847388143761125319385088/22617276439721077442807667032886687654476408732584566134792079404193701177223045976606322020843261984193795791452462160628896845743806809584429475", + "417375346626271461160059529380625813793392531878706791987178089624497461275917614971067189236978063952865349389715301226544609036914606210392546827708928/975229292808138659818361801445046347753202365279175612062704176897410888744745259198914454542996230939061684441655179500027572017853899739372877734105339025", + "2676363386933680855942953908736233847703851401989051350977626014909883813390464058456346156847922506763869785741312333851498464469945885549937391804699616004679901184/5785124272163469274228108400094488697213245888501135400820302040725260051524024863275368499896016081653282531993241025217614578187457163497095808177221379174819220013375", + "84927834898842343886430707951132654410199273262318663417073679994068218196261031822643924361681676228777048302105970814023572878149932513397795981795833432350594072837285174612/172452878701156165220143139994383883270079497872865550470338789879773458690740689016825767330083765988911667799057687869544315167093279833693002244002253388329493311193736414446875", + "672545608418841613497429245183217314030177656100151887425895876312444457283576470289625160055342854173012173305924375365717357853667855707911204251047930359681573247790344341924470145456/1296703203519247128346855450609334507925848086297709193735770619277551363367297829712444257648431561041519793037153339470064394230471514782192002970386220101195846262960338875149503076038125", + "12182370698628249669054629417400069828972310078682848256819822126253608129432269041305843145598919977890639661491204617240329274018538226874359324676972463409983423428035419919179194470699/22477262246981296260044490455886500464135736993960020160650936584247517429269203111260288090757311703847429001961715316358296642240870934426508957642711908999350763991742421236275908069140625", + "1526980965634162906505355375802081665157942626570520316497654587473107131804894542154269378439292033177358644669908828446941090539887077455563297590498927419423893058106730178946303/2712131052639733322560026660091875452400015147176887644188677365525683106113500053780952900578569411934913750948335287521374061919094180167861554584776069314778274116431743903390234375", + "3113129094096972601043351921136593218031930694854086206870289974645120901264907251801462207453053826218190585539219624206771300737752925172032372896073562097341143/5347459779533023899560549763953244767017354768463609355171799560583036192902331231010349820616080477033084262099718850425624190540148251725170497376026288590281250000", + "1328705736832789756086255150795780746896158571367905104182929438324617029974856018187119196200103901732485005893073399831121782788985290460242669/2215427509211492800320039306682427101658611387873971524120885130825850167166850372458989935664315942403917877265981993294247183151159691425781250000", + "30630228797004422661811347771232652965474048403027410674670634975391559529460854566835502623676911934558035689441841202720824461/49723984449248263517714739932725107347469565351889700865244895345440643292876575432982112029879089075010217001584478398437500000000", + "2037129397076075281400800505064643987052117521421231737373514049897429854934019136148888059598798216501928071/3227796678855797056325642013095899135290193269959384594629765230231370402755610940756268779698059082031250000000", + "28016423177189901816232771068898545893576748305724415502826484964148585950977304053945923960197/43419468200203749579317707041529095204673219066174935089707604149178137612075195312500000000000000", + "28275779706446672535390306947959430537267319922491241497776614259978940541836413279/42938555189151064460448403938878947954853307389330009741198103332519531250000000000000", + "93400314551359322100174290355691014842939716461083064048912376511/139190832572387572682588394705374339970108032226562500000000000000000", + "7348368061173923565954660104016823157396173512749/10761264004567182077491989135742187500000000000000000" + ], + "negative_control_old_capacity_fails": true, + "decision": "PASS independent source and price; signed binding pending" +} diff --git a/research/bit-451-height-dependent-sources/three-cells/SIGNED.json b/research/bit-451-height-dependent-sources/three-cells/SIGNED.json new file mode 100644 index 0000000000..f74c63b916 --- /dev/null +++ b/research/bit-451-height-dependent-sources/three-cells/SIGNED.json @@ -0,0 +1,80 @@ +{ + "peer_gain_percent": "10250/193996402173", + "new_component_sha256": "1fd90f20d38e5368a98deef7efe4bce880f95b6da8078d4aa37e78921173f1ac", + "old_component_sha256": "f91280ef454af5d74559788e7f63fd442d8778937c52575160be2718354defcd", + "signed": { + "cap": "0.00387992804559244", + "claim": "0.00387992804551", + "tested": "193996402279/50000000000000", + "output_sha256": { + "APPLICATION.json": "1a3b13e7a25be5329d24cbf013e2b6001192507d75671dad5421a96da62bc5d1", + "AUDIT.json": "531e7c8fc860ff0dba3ff49361b4559980ad30bf4de22615b86d260a076f8ae8", + "adapter/SOURCE-LOCK.json": "b46b919292e1a1907345056b6925f5f1400d45650e2f0f610779a07163bb64ee", + "adapter/binary/FINITE.json": "ffab57f5d94910f5a13840008bd607d3546957225ba9e618f7556af42f28f15b", + "adapter/binary/WORD.json.gz": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9" + }, + "orientations": { + "adjoint_sha256": "8535965b7715f36da4fff7893afb330731dc4a672170d5357f6828a0d5eb01e3", + "checked_coefficients_each_way": 1661521, + "forward_sha256": "d95061b17905c2e2cd00051b708e7ba5ed5d8634726ee841df327548b3380f63", + "main_fields": 400, + "native_helpers": 889, + "native_paid": 5707 + }, + "checks": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "controls": [ + "extra_rank_1_charge_rejected", + "low_cap_rejected" + ], + "premises": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ] + }, + "known_good": { + "cap": "0.00387992804555917", + "claim": "0.00387992804547", + "tested": "193996402277/50000000000000", + "output_sha256": { + "APPLICATION.json": "2d2c0331eef313b8ee278c3eb9d7b7be99c975e541dcd4dbfdbdf83297ce66b5", + "AUDIT.json": "fd03711448a6b7d0c3127ae11ef69186cae268057d8dd71cbe7cf958fe92a927", + "adapter/SOURCE-LOCK.json": "b46b919292e1a1907345056b6925f5f1400d45650e2f0f610779a07163bb64ee", + "adapter/binary/FINITE.json": "acf8b1c05e6568427ea72a67ec2766af222074c91b31515fc066c7e711d345bb", + "adapter/binary/WORD.json.gz": "d28f0d28d9d87d5fe57b8ef19e12faf98014f0bbef781987ce22daaa82f21cb9" + }, + "orientations": { + "adjoint_sha256": "8535965b7715f36da4fff7893afb330731dc4a672170d5357f6828a0d5eb01e3", + "checked_coefficients_each_way": 1661521, + "forward_sha256": "d95061b17905c2e2cd00051b708e7ba5ed5d8634726ee841df327548b3380f63", + "main_fields": 400, + "native_helpers": 889, + "native_paid": 5707 + }, + "checks": { + "BIT_just_below_effective_rejected": true, + "functional_count": 4, + "minimum_margin": "1/1000000000000000", + "strict_count": 54 + }, + "controls": [ + "extra_rank_1_charge_rejected", + "low_cap_rejected" + ], + "premises": [ + "native_all_columns", + "owned_erasure", + "compiler", + "precision_tape", + "analytic_recovery" + ] + }, + "comparison": "1/25000000000000" +} diff --git a/research/bit-451-height-dependent-sources/three-cells/audit.py b/research/bit-451-height-dependent-sources/three-cells/audit.py new file mode 100644 index 0000000000..7da95cce1c --- /dev/null +++ b/research/bit-451-height-dependent-sources/three-cells/audit.py @@ -0,0 +1,124 @@ +"""Independent fixed R344 p17 proof; the supervisor enforces one 45 s child.""" +from argparse import ArgumentParser +from fractions import Fraction as F +from hashlib import sha256 +from math import comb,lcm +from pathlib import Path +from time import monotonic +import json,signal + +PINS={ +'bit':('round321/benchmark/producer/BIT-451.json','538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749'), +'grid':('round336/independent/receipt.json','69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818'), +'mean':('round339/independent/receipt.json','41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e'), +'sibling':('round341/independent/receipt-with-minimum.json','42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd'), +'logs':('round341/independent/audit.py','b7dd2e5829fa794e89b7cb7813ee45a0b4301feb508019f7b00062ba81f8b166'), +'old':('round342/independent/receipt.json','f91280ef454af5d74559788e7f63fd442d8778937c52575160be2718354defcd'), +'signed':('round342/independent/outer-verified.json','148a6315592977093c90de293ca3a904da5cf8dd2fa7840d3a23538d1a87857b'), +'repaired':('round343/primary.json','846c6441860cf5e91cf958a7f4a77e7bdf5befa8c519b82a157142f34535c4e9')} +def must(x,msg): + if not x:raise ValueError(msg) +def up(x):return F(-(-x*2**130//1),2**130) +def dn(x):return F((x*2**130)//1,2**130) +def diffs(x): + a=[] + while x: + a.append(x[0]); x=[v-u for u,v in zip(x,x[1:])] + return a + +def evaluate(d,o): + p,h,v,B,w,beta=17,1804,451,F(4),F(17,50),F(23,20) + bit,grid,old=d['bit'],d['grid'],d['old']; l=d['logs']['logint']; ex=d['logs']['exp'] + old_claim=F(old['candidate_grid_claim']);good=d['repaired']; signed=d['signed']['signed'] + must(good['decision']=='PRIMARY_AND_INDEPENDENT_SIGNED_REPLAY_MATCH' and old['uniform_J']==708 and F(good['price']['claim'])==old_claim==F(signed['claim']) and signed['checks']['strict_count']==54 and signed['checks']['functional_count']==4,'R343 exact good signed control') + must(old['left_ratios']==good['small_x']['newton_ratios'] and old['tail_ratios']==good['large_x_tail']['newton_ratios'],'previous complete coefficients') + C=F(bit['separation']['trial']);H=bit['uniform']['H'];q=F(749,1000);eta=F(bit['uniform']['eta'][0]) + D=h**p;N=(h+H)**p; J=0 + while D<2*p and (1+F((134**v).bit_length()-1,h))**p>F(bit['uniform']['ambient_power'][1]),'base or terminal') + covered=C-F(J,H)-F(1,H*2**44);stock=bit['cover_and_stock'];rho=F(stock['rho']);rate=F(stock['seed']) + stages=[] + for _ in range(7): + ub=covered-rho*(covered-rate);candidate=F(ub*10**24//1-1,10**24) + must(rate=B*eta:return 'retire: frozen limiting comparison' + def gain(n,m,e):return dn(ex(e*(l(n)[0]-l(m)[1]))[0]) + pre= gain(16,7,v*C); bandgain=gain(4,1,v*C) + distance=min(F(grid['mean_lower'])-F(3,5),F(4,5)-F(grid['mean_upper'])) + eps=F(grid['epsilon_upper']);var=F(grid['tensor_variance_upper']);fraction=(1-var/distance**2)/(1+eps) + must(11**3>=4**5 and 11**4<=7**5 and distance>0 and eps==F(d['mean']['epsilon_upper']),'raw band or exact epsilon') + b=F(d['sibling']['source_lower']['root']) + all_band=dn(1+fraction*(bandgain-1));first=dn(b*gain(16,1,v*C/6)) + o.update(small_L=str(pre),band_fraction=str(fraction),band_gain=str(all_band),small_x=str(first),root_lower=str(b)) + if min(pre,all_band,first)<=B or fraction<=0:return 'retire: nonroot or small-x source multiplier' + alpha=F(bit['separation']['three_engine_intervals']['source_1']['alpha'][0]);lam=F(bit['separation']['caps']['lambda']) + shrink=up((lam/alpha)**v);must(00,'denominator coefficients') + return [x/y for x,y in zip(u,v)] + cells=[(F(5,6),F(11,12)),(F(11,12),F(1))] + upper={};bcell={};o['cells']={} + for lower,u in cells: + z=4*v*w*u;i=z//1 + upper[u]=up(2**i*ex((z-i)*l(2)[1])[1]/alpha**v) + bcell[u]=min(B,dn(b*gain(16,1,v*C*(1-u)))) + o['cells'][str(u)]={'left':str(lower),'root_capacity':str(bcell[u]),'share_prefactor':str(upper[u]),'rows':{}} + def capacity(g,u):return dn(eta*(B-(B-bcell[u])*min(1,upper[u]*shrink**g))) + def direct(g,cell): + lower,u=cell;rec=o['cells'][str(u)]['rows'];key=str(g) + if key in rec:return True + ratio=value(g)/den(g,lower);c=capacity(g,u);rec[key]=[str(ratio),str(c)] + return ratio=B*eta:return 'frozen low-x coefficient fails: '+str(j) + for cell in cells: + lower,u=cell + for g in range(32): + if not direct(g,cell):return 'frozen direct bound fails: cell '+str(cell)+' height '+str(g) + tail=coef(32,lower);c=capacity(32,u);o['cells'][str(u)].update(tail=list(map(str,tail)),tail_capacity=str(c)) + for j,r in enumerate(tail): + if r>=c:return 'frozen tail coefficient fails: cell '+str(cell)+' order '+str(j) + o['negative_control_old_capacity_fails']=lim>F(5,2)*eta + must(o['negative_control_old_capacity_fails'],'old capacity must fail') + return 'PASS independent source and price; signed binding pending' + +def main(): + parser=ArgumentParser();parser.add_argument('root',type=Path);parser.add_argument('out',type=Path);a=parser.parse_args() + signal.alarm(45); start=monotonic();data={};o={'inputs':{p:x for p,x in PINS.values()}} + for k,(file,pin) in PINS.items(): + raw=(a.root/file).read_bytes();must(sha256(raw).hexdigest()==pin,file) + if k=='logs': + obj={'__name__':'pinned_rational_taylor'};exec(compile(raw,'R341/audit.py','exec'),obj);data[k]=obj + else:data[k]=json.loads(raw) + o['decision']=evaluate(data,o) + with a.out.open('x') as stream:json.dump(o,stream,indent=2);stream.write('\n') + print(o['decision'],o['cap'],o['candidate_grid_claim'],'seconds',monotonic()-start) +if __name__=='__main__':main() diff --git a/research/bit-451-height-dependent-sources/three-cells/screen.py b/research/bit-451-height-dependent-sources/three-cells/screen.py new file mode 100644 index 0000000000..1e78e25ecf --- /dev/null +++ b/research/bit-451-height-dependent-sources/three-cells/screen.py @@ -0,0 +1,195 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""One immutable p17 h1804 B=4 three-cell screen, hard wall and atomic checkpoints.""" +from argparse import ArgumentParser +from datetime import datetime,timezone +from decimal import Decimal,localcontext +from fractions import Fraction as F +from hashlib import sha256 +from pathlib import Path +from tempfile import TemporaryDirectory +import json,os,signal,subprocess,sys,time + +P=17 +B=F(4) +DIRECTIONS=[('middle',F(5,6),F(11,12)),('upper',F(11,12),F(1))] +PINS={ + 'round321/benchmark/producer/BIT-451.json':'538b785f93517b41229186e9070281d240f5d506f80a7e1ed705dd91c68f8749', + 'round336/independent/receipt.json':'69c8f917d6b2676897639eef67e8f15aae1c23a6bfb608dcd38aed236f299818', + 'round339/independent/receipt.json':'41a80ef6b08339dd146791d5a22a7472de8a8ab651b35f25a0282a4ee751295e', + 'round341/independent/receipt-with-minimum.json':'42aede07a16e538f97e43341a605e7a432fc0e600504cb1a381e1476abaa30fd', + 'round342/independent/receipt.json':'f91280ef454af5d74559788e7f63fd442d8778937c52575160be2718354defcd', + 'round342/independent/outer-verified.json':'148a6315592977093c90de293ca3a904da5cf8dd2fa7840d3a23538d1a87857b', + 'round343/primary.json':'846c6441860cf5e91cf958a7f4a77e7bdf5befa8c519b82a157142f34535c4e9', + 'round342/screen.py':'10cbcc0fe5c7f44c9a2852a13e6acdf87b52471d52b9685c579c05fc63aab2ea', + 'round343/screen.py':'bcb2134b4570246029b35d1eb585f04fdf2318b686910dac1c45fb3ee674554d', +} + + +def utc(): + return datetime.now(timezone.utc).isoformat(timespec='milliseconds') + + +class Fail(Exception): + pass + + +def need(flag,what): + if not flag: + raise Fail(what) + + +def upper_power_2(e): + if not e: + return F(1) + with localcontext() as ctx: + ctx.prec=80 + a=e*F(Decimal(2).ln().next_plus()) + d=(Decimal(a.numerator)/Decimal(a.denominator)).next_plus() + return F(d.exp().next_plus()) + + +def compute(root,data,mark): + inputs=[] + for path,pin in PINS.items(): + raw=(root/path).read_bytes() + if sha256(raw).hexdigest()!=pin: raise ValueError('SHA-256 '+path) + if path.endswith('.py'): + env={'__name__':'pinned_arithmetic'} + exec(compile(raw,path,'exec'),env) + inputs.append(env) + else: + inputs.append(json.loads(raw)) + bit,grid,mom,source,old,signed,control,math,end=inputs + math['P']=P + lower,up,down=end['power_lower'],math['up'],math['down'] + need(end['log_ends'](1)==(0,0) and old['uniform_J']==708 and old['p']==18 and + signed['new_component_sha256']==PINS['round342/independent/receipt.json'] and + F(old['candidate_grid_claim'])==F(signed['signed']['claim'])==F('0.00387992804547') and + control['decision']=='PRIMARY_AND_INDEPENDENT_SIGNED_REPLAY_MATCH','complete predecessor') + price=math['price'](bit,old) + data['price']=price + eta=F(bit['uniform']['eta'][0]);delta=F(bit['separation']['trial']) + mu=list(map(F,mom['moments'][:P+1])) + limit=(F(749,1150))**P + data['leading']={'ratio':str(limit),'capacity':str(B*eta)} + need(len(mu)==18 and mu[0]==1 and mu[1]==F(749,1000),'moment prefix') + need(price['passed'] and limit0 and 11**3>=4**5 and 11**4<=7**5,'unchanged band geometry') + f=(1-F(grid['tensor_variance_upper'])/d**2)/(1+F(mom['epsilon_upper'])) + small=lower(16,7,451*delta);admit=down(1+f*(lower(4,1,451*delta)-1)) + data['nonroot']={'distance':str(d),'complete_fraction_lower':str(f),'partial_lower':str(small),'band_lower':str(admit)} + need(f>0 and small>B and admit>B,'nonroot lower multiplier') + b=F(source['source_lower']['root']);lowroot=down(b*lower(16,1,451*delta/6)) + data['low_root_lower']=str(lowroot) + need(lowroot>B,'low x root guard') + mark('both nonroot groups and low-x root') + endpoint=bit['separation']['three_engine_intervals']['source_1'] + alpha,lam=F(endpoint['alpha'][0]),F(endpoint['lambda'][1]) + w=F(bit['separation']['target_tilt']) + need(w==F(17,50) and 0=capacity: raise Fail(f'{name} explicit G={g}') + def coeff(name,offset,l,capacity): + rs=math['newton'](cs,offset,l) + need(rs[-1]==limit,'fixed leading coefficient') + rows=data['newton'][name]={} + for j,r in enumerate(rs): + rows[str(j)]={'ratio':str(r),'capacity':str(capacity),'passes':r=capacity: raise Fail(f'{name} Newton j={j}') + for name,l,u in DIRECTIONS: + for g in (0,31): point(name,l,g) + mark('four cached endpoint heights') + coeff('low',0,0,B*eta) + mark('18 low-x coefficients') + for name,l,u in DIRECTIONS: + for g in range(32): point(name,l,g) + mark(name+' all 32 explicit heights') + coeff(name,32,l,caps[name][-1]) + mark(name+' all 18 tail coefficients') + need(sum(map(len,data['explicit'].values()))==64 and sum(map(len,data['newton'].values()))==54,'coverage') + + +def worker(root,path): + begin=time.monotonic() + data={'case':{'p':17,'h':1804,'q':'749/1000','B':'4','x_cuts':['5/6','11/12'],'G_cut':32}, + 'pins':PINS,'decision':'RUNNING','events':[]} + def mark(label): + data['events'].append({'utc':utc(),'elapsed':time.monotonic()-begin,'stage':label}) + tmp=path.with_suffix('.writing') + tmp.write_text(json.dumps(data)+'\n');tmp.replace(path) + mark('single discovery start') + try: + compute(root,data,mark) + data['decision']='ADVANCE_ONE_COMPLETE_REPLAY' + except Fail as e: + data.update(decision='RETIRE_FROZEN_CERTIFICATE',reason=str(e)) + except Exception as e: + data.update(decision='INPUT_OR_ARITHMETIC_ERROR',reason=repr(e)) + mark('discovery close') + print(data['decision'],data.get('reason','')) + + +def main(): + cli=ArgumentParser(description=__doc__) + cli.add_argument('--campaign-root',required=True,type=Path) + cli.add_argument('--out',required=True,type=Path) + cli.add_argument('--child',action='store_true') + a=cli.parse_args() + if a.child: + worker(a.campaign_root,a.out) + return + if a.out.exists(): + raise SystemExit('Choose a fresh path; this receipt is sealed.') + with TemporaryDirectory() as scratch: + snapshot=Path(scratch)/'progress.json' + begin=time.monotonic();started=utc() + proc=subprocess.Popen([sys.executable,'-IB',str(Path(__file__).resolve()),'--campaign-root',str(a.campaign_root), + '--out',str(snapshot),'--child'],stdout=subprocess.PIPE,stderr=subprocess.STDOUT, + text=True,start_new_session=True) + killed=False + try: + stdout,_=proc.communicate(timeout=max(0,45-(time.monotonic()-begin))) + except subprocess.TimeoutExpired: + killed=True + try: os.killpg(proc.pid,signal.SIGKILL) + except ProcessLookupError: pass + stdout,_=proc.communicate() + wall=time.monotonic()-begin;verify=utc() + d=json.loads(snapshot.read_bytes()) if snapshot.is_file() else {'events':[]} + if killed or wall>45: d['decision']='CAPPED_UNRESOLVED' + elif proc.returncode!=0 or d.get('decision')=='RUNNING': d['decision']='CHILD_ERROR_UNRESOLVED' + n=sum(map(len,d.get('newton',{}).values()));e=sum(map(len,d.get('explicit',{}).values())) + d['coverage']={'direct_checked':e,'direct_unvisited':64-e,'coefficients_checked':n,'coefficients_unvisited':54-n} + if d.get('decision')=='ADVANCE_ONE_COMPLETE_REPLAY' and (n,e)!=(54,64): + d['decision']='INCOMPLETE_COVERAGE' + d['supervisor']={'started_utc':started,'reserve_started_utc':verify,'deadline_seconds':45,'reserve_seconds':15, + 'child_wall':wall,'killed':killed,'exit':proc.returncode,'child_output':stdout[-2048:]} + d['supervisor'].update(receipt_utc=utc(),total_wall=time.monotonic()-begin) + if d['supervisor']['total_wall']>60: d['decision']='CAPPED_UNRESOLVED' + a.out.write_text(json.dumps(d,indent=2)+'\n') + print(d['decision'],d.get('reason',''),d['coverage'],round(wall,4)) + + +if __name__=='__main__': + main() diff --git a/research/bit-451-height-dependent-sources/three-cells/verify.py b/research/bit-451-height-dependent-sources/three-cells/verify.py new file mode 100644 index 0000000000..ee4870147d --- /dev/null +++ b/research/bit-451-height-dependent-sources/three-cells/verify.py @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Reconstruct the three-cell bound with the known-good power-18 replay in hand.""" +from fractions import Fraction as F +from hashlib import sha256 +import json +from pathlib import Path +from shutil import copyfile +import subprocess +import sys + +HERE = Path(__file__).resolve().parent +CAP = "0.00387992804559244" +CLAIM = "0.00387992804551" + + +def require(ok, message): + if not ok: + raise ValueError(message) + + +def read(path): + return json.loads(path.read_bytes()) + + +def coefficients(rows, limit): + require(set(rows) == {str(i) for i in range(limit)}, "coverage of ordered coefficient indices") + for row in rows.values(): + require(row["passes"] and F(row["ratio"]) < F(row["capacity"]), "directed comparison") + return [F(rows[str(i)]["ratio"]) for i in range(limit)] + + +def compare(primary, proof): + require(primary["case"] == {"p":17,"h":1804,"q":"749/1000","B":"4","x_cuts":["5/6","11/12"],"G_cut":32} + and primary["decision"] == "ADVANCE_ONE_COMPLETE_REPLAY", "frozen three-cell primary passed") + require(primary["coverage"] == {"direct_checked":64,"direct_unvisited":0,"coefficients_checked":54, + "coefficients_unvisited":0}, "direct and coefficient budget exhausted") + require(proof["decision"].startswith("PASS") and proof["p"] == 17 and proof["h"] == 1804 + and proof["negative_control_old_capacity_fails"] is True, "independent source capacity and control") + require(coefficients(primary["newton"]["low"],18) == list(map(F,proof["small_x_coefficient_ratios"])), + "low cell at all heights") + for cell, left, right in (("middle","5/6","11/12"),("upper","11/12","1")): + independent = proof["cells"][right] + require(primary["cells"][cell]["l"] == independent["left"] == left + and primary["cells"][cell]["u"] == right, "cell boundaries") + initial = coefficients(primary["explicit"][cell],32) + require(set(independent["rows"]) == {str(i) for i in range(32)} + and initial == [F(independent["rows"][str(i)][0]) for i in range(32)], "32 explicit heights") + require(coefficients(primary["newton"][cell],18) == list(map(F,independent["tail"])), + "all 18 independent translated coefficients") + price = primary["price"] + require(price["passed"] and price["base"] and price["tail"] and price["carrier"] + and price["J"] == proof["uniform_J"] == 668 + and [row[0] for row in price["stages"]] == proof["stages"] and len(proof["stages"]) == 7, + "least terminal debit and seven paid stages") + require(proof["cap"] == CAP and F(price["cap"]) == F(CAP) and F(CLAIM) == F(price["claim"]) + == F(proof["candidate_grid_claim"]) and F(price["tested"]) == F(proof["candidate_tested"]) + == F("0.00387992804558"), "directed cap, claim and actual test") + ceiling = F(proof["old_relaxed_ceiling"]) + require(ceiling == F(price["old_ceiling"]) and F(CLAIM)-ceiling == F(proof["separation"]) + == F(price["separation"]) == F(277,20040000000000000) + and F(proof["absolute_gain"]) == F(price["change"]) == F(4,10**14), "old relaxed complete ceiling") + + +def run(source, work, legacy, stages, base, known_good, signed_receipt): + previous = HERE.parent.parent/"bit-451-carrier-cover" + for key, path in { + "round341/independent/audit.py": previous/"tensor/sibling_audit.py", + "round343/screen.py": HERE.parent/"screen.py", + "round343/primary.json": HERE/"POWER-18-PRIMARY.json", + }.items(): + target = work/key + target.parent.mkdir(parents=True,exist_ok=True) + copyfile(path,target) + # The sealed control includes timestamps. Match its scientific fields to the + # power-18 replay just completed in this invocation. + frozen = read(HERE/"POWER-18-PRIMARY.json") + live = read(work/"primary.json") + for field in ("decision","price","terminal","nonroot","root","small_x","large_x_prefix","large_x_tail"): + require(live[field] == frozen[field], "replayed power-18 control "+field) + require(sha256((HERE/"screen.py").read_bytes()).hexdigest() == + "a31815c475628f7ddca9d2f978e3d373bd01e9e1fe797f1d334f5fba208fd23c", "frozen primary") + receipt = work/"three-cell-primary.json" + subprocess.run([sys.executable,"-IB",HERE/"screen.py","--campaign-root",work,"--out",receipt], + timeout=65,check=True) + audited = work/"three-cell-independent.json" + subprocess.run([sys.executable,"-IB",HERE/"audit.py",work,audited],timeout=55,check=True) + require(audited.read_bytes() == (HERE/"RESULT.json").read_bytes(), "independent exact certificate") + proof = read(audited) + compare(read(receipt),proof) + signed = read(HERE/"SIGNED.json") + require(sha256(audited.read_bytes()).hexdigest() == signed["new_component_sha256"] + and signed["old_component_sha256"] == sha256((HERE.parent/"RESULT.json").read_bytes()).hexdigest(), + "signed binding to both certificates") + signed_receipt(work/"height-consumer",known_good,signed["known_good"],"0.00387992804547") + stages(base,F(proof["uniform_loss"]),CAP,require) + result = work/"three-cell-consumer" + bound = {"installed":CAP,"old_fixed_loss_ceiling":proof["old_relaxed_ceiling"]} + new = legacy["consumer"](source,result,bound,cap=CAP,expected_claim=CLAIM, + expected_hashes=signed["signed"]["output_sha256"]) + signed_receipt(result,new,signed["signed"],CLAIM) + require(signed["known_good"]["orientations"] == signed["signed"]["orientations"] + and F(new["delta"]) == F(205,10**14), "signed caller and peer comparison") + print("PASS_COMPLETE_THREE_CELL_SOURCE", f"claim={new['claim']}", f"delta_vs_p18={proof['absolute_gain']}", + f"delta_vs_7863={new['delta']}",flush=True) + return new diff --git a/research/bit-451-height-dependent-sources/verify.py b/research/bit-451-height-dependent-sources/verify.py new file mode 100644 index 0000000000..fa85a6fa7e --- /dev/null +++ b/research/bit-451-height-dependent-sources/verify.py @@ -0,0 +1,144 @@ +# SPDX-License-Identifier: Apache-2.0 +"""Verify one height-dependent BIT proof and its preceding signed application.""" +from fractions import Fraction as F +from hashlib import sha256 +import json +import os +from pathlib import Path +import runpy +import shutil +import subprocess +import sys +from tempfile import TemporaryDirectory + +HERE = Path(__file__).resolve().parent +REPO = HERE.parents[1] +PREVIOUS = HERE.parent / "bit-451-carrier-cover" +CAP = "0.00387992804555917" +CLAIM = "0.00387992804547" + + +def require(predicate, message): + if not predicate: + raise ValueError(message) + + +def read(path): + return json.loads(path.read_bytes()) + + +def digest(path): + return sha256(path.read_bytes()).hexdigest() + + +def check_sources(): + seen = set() + for row in read(HERE / "SOURCES.json")["files"]: + if row["usage"] != "input": + continue + key = row["path"] + require(key not in seen, "duplicate dependency path") + require(digest(REPO / key) == row["sha256"], key) + seen.add(key) + require(seen == set(read(HERE / "VERIFY.json")["inputs"]), "complete external input inventory") + + +def component(source, work): + old, grid, mean = (PREVIOUS / path for path in ("tensor/SIBLING.json","grid/RESULT.json","tensor/MEAN.json")) + files = { + "round321/benchmark/producer/BIT-451.json": source / "replay/BIT-451.json", + "round336/independent/receipt.json": grid, + "round339/independent/receipt.json": mean, + "round341/independent/receipt-with-minimum.json": old, + "round342/screen.py": HERE / "original_screen.py", + "round342/primary.json": HERE / "CAPPED.json", + "round342/independent/outer-verified.json": HERE / "SIGNED.json", + } + for name, path in files.items(): + target = work / name + target.parent.mkdir(parents=True, exist_ok=True) + shutil.copyfile(path, target) + # Reconstruct the independent certificate before the screen's matched comparison. + audited = work / "round342/independent/receipt.json" + subprocess.run([sys.executable, "-IB", HERE / "audit.py", "--bit", source / "BIT-451.json", + "--grid", grid, "--mean", mean, "--old", old, "--closure", PREVIOUS / "tensor/sibling_audit.py", + "--out", audited], check=True, timeout=60) + require(audited.read_bytes() == (HERE / "RESULT.json").read_bytes(), "exact independent certificate") + require(digest(HERE / "screen.py") == "bcb2134b4570246029b35d1eb585f04fdf2318b686910dac1c45fb3ee674554d", + "frozen primary endpoint reconstruction") + primary = work / "primary.json" + subprocess.run([sys.executable, "-IB", HERE / "run_screen.py", "--campaign-root", work, "--out", primary], + check=True, timeout=65) + screen, proof = read(primary), read(audited) + require(screen["decision"] == "PRIMARY_AND_INDEPENDENT_SIGNED_REPLAY_MATCH", "primary/independent arithmetic") + require(proof["decision"] == "PASS component; independent signed application required" + and proof["positive_control_no_x_slack_fails"] is True, "upper region requires its size slack") + require(len(proof["left_ratios"]) == len(proof["tail_ratios"]) == 19 + and [row["g"] for row in proof["finite"]] == list(range(32)), "all initial, finite and tail bounds") + require(F(proof["ug_multiplier_upper"]) < 1 and F(proof["uniform_loss"]) == F(708,1202400000000000) + and proof["uniform_J"] == 708 and len(proof["stages"]) == 7 + and proof["cap"] == CAP and F(proof["candidate_grid_claim"]) == F(CLAIM) + and F(proof["candidate_tested"]) == F("0.00387992804554"), "full terminal guard and signed price") + ceiling = F(proof["old_relaxed_ceiling"]) + require(F(CLAIM)-ceiling == F(proof["separation"]) == F(209,33400000000000000) + and F(CLAIM)-F(read(old)["candidate_grid_claim"]) == F(proof["absolute_gain"]) == F(3,10**14), + "comparison with power-19 predecessor") + return proof + + +def signed_receipt(directory, observed, expected, claim): + actual = read(directory / "receipt.json") + require(len(expected["output_sha256"]) == 5, "five signed scientific outputs") + for name, value in expected["output_sha256"].items(): + require(digest(directory / name) == actual["output_sha256"][name] == value, "signed output " + name) + app, audit = read(directory/"APPLICATION.json"), read(directory/"AUDIT.json") + outer = audit["outer"] + require(app["premises"] == audit["premises"] == expected["premises"], "inherited signed premises") + require(F(actual["cap"]) == F(app["binary_ordinary"]) == F(outer["pinned_binary_cap"]) == F(expected["cap"]) + and F(observed["claim"]) == F(actual["claim"]) == F(claim) == F(outer["claim"]) == F(expected["claim"]) + and F(observed["tested"]) == F(actual["tested"]) == F(expected["tested"]), "signed price") + require(outer["outer_checks"] == expected["checks"] and expected["checks"]["strict_count"] == 54 + and expected["checks"]["functional_count"] == 4, "all signed checks") + require(set(actual["controls"]) == set(expected["controls"]) == {"extra_rank_1_charge_rejected","low_cap_rejected"}, + "corrupted paid and low-cap controls") + + +def main(): + require(sys.version_info[:2] == (3,12) and sys.implementation.name == "cpython" and __debug__, + "CPython 3.12 with assertions required") + for name in ("OPENBLAS_NUM_THREADS","OMP_NUM_THREADS","MKL_NUM_THREADS","VECLIB_MAXIMUM_THREADS"): + os.environ[name] = "1" + check_sources() + legacy = runpy.run_path(str(PREVIOUS/"verify.py")) + stages = runpy.run_path(str(PREVIOUS/"verify_majorant.py"))["seven_stage_bound"] + signed = read(HERE / "SIGNED.json") + with TemporaryDirectory() as directory: + work = Path(directory) + source = legacy["extract"](work) + subprocess.run([sys.executable,"-IB",source/"replay_451.py"], cwd=source, check=True) + rebuilt = source/"replay/BIT-451.json" + require(digest(rebuilt) == digest(source/"BIT-451.json") == legacy["BASE_RECEIPT"], "original binary words") + base = read(rebuilt) + legacy["supplier"](base) + old = runpy.run_path(str(PREVIOUS/"tensor/sibling.py"))["run"](source,work,legacy,stages,base) + signed_receipt(work/"sibling-tensor-consumer", old, signed["known_good"], "0.00387992804544") + + proof = component(source,work) + stages(base,F(proof["uniform_loss"]),CAP,require) + bound = {"installed":CAP, "old_fixed_loss_ceiling":proof["old_relaxed_ceiling"]} + result = work/"height-consumer" + new = legacy["consumer"](source,result,bound,cap=CAP,expected_claim=CLAIM, + expected_hashes=signed["signed"]["output_sha256"]) + signed_receipt(result,new,signed["signed"],CLAIM) + require(signed["known_good"]["orientations"] == signed["signed"]["orientations"] + and F(new["delta"]) == F(201,10**14), "old and new signed scope and peer comparison") + print("PASS_COMPLETE_HEIGHT_DEPENDENT_SOURCE", f"claim={new['claim']}", + f"delta_vs_p19={proof['absolute_gain']}",f"delta_vs_7863={new['delta']}",flush=True) + cells = runpy.run_path(str(HERE/"three-cells/verify.py")) + p17 = cells["run"](source,work,legacy,stages,base,new,signed_receipt) + runpy.run_path(str(HERE/"small-remainders/verify.py"))["run"]( + source,work,legacy,stages,base,p17,signed_receipt,cells["coefficients"]) + + +if __name__ == "__main__": + main() diff --git a/research/historical-selected-replay-gap/README.md b/research/historical-selected-replay-gap/README.md index 55d8cc3b49..36d9a873ca 100644 --- a/research/historical-selected-replay-gap/README.md +++ b/research/historical-selected-replay-gap/README.md @@ -69,7 +69,11 @@ python3 -B scripts/research_package.py --package research/historical-selected-re The direct command prints `PASS_HISTORICAL_SELECTED_REPLAY_GAP`. A registered replay prints `PASS_REGISTERED_RESEARCH_PACKAGE`. Both require Git history -containing the two inspected commits. +containing the two inspected commits and the source and manifest objects at +`2485805a6d47f36ea83ddde6327d453ac82d44dc`. The verifier uses a temporary +sparse checkout of that commit, checks the declared source digests there, and +uses its planner and manifest inventory. The recorded rejections and selection +therefore remain reproducible after later changes to the live Makefile or CI guide. ## Open next questions diff --git a/research/historical-selected-replay-gap/SOURCES.json b/research/historical-selected-replay-gap/SOURCES.json index c1010eec95..62bb8b3950 100644 --- a/research/historical-selected-replay-gap/SOURCES.json +++ b/research/historical-selected-replay-gap/SOURCES.json @@ -4,13 +4,13 @@ "files": [ { "path": "Makefile", - "usage": "input", + "usage": "provenance", "git_blob": "0d683a06b9e7ee162496108ce9a7c5d2ee94fccf", "sha256": "4f2d4f2dcd15139ec82658a975f85ed300897385f85799218539f4c8d60567da" }, { "path": "certificates/partial-swap-network.json", - "usage": "input", + "usage": "provenance", "git_blob": "eccafa830c16170c36faf93045ddf1f638f7bcd4", "sha256": "4c0b9d37e1034b2076e30a70f8e514416298c462d9ee98bc87fe6556b14df786" }, @@ -22,7 +22,7 @@ }, { "path": "docs/ci-verification.md", - "usage": "input", + "usage": "provenance", "git_blob": "63ba3e9aa8bdc5e942b56e34244b92b16f854085", "sha256": "c7d3027e9ad8bcbff68f07aa9576b30fb2f3c76c44d876d40c7fdbf4a3e2228a" }, @@ -34,163 +34,163 @@ }, { "path": "research/clifford-state-performance/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "6f98a0061a5104dfab82c9e806f819b41811f684", "sha256": "396d0f08df24952248140d5c65c51b8c902ef1c580892ff7ea182890530f67ee" }, { "path": "research/community-batch1047-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "5e0f92af463ec12c5e1dcc3effd44081a88af647", "sha256": "07a9daeaf2bda308a92e9a4684f13d5fc766c7772d74801fceb7f4599fdab226" }, { "path": "research/community-batch1099-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "9e13266bf85e627f1b7dc225e9530ea69fd2c7f0", "sha256": "421e1211fb1897c45621dc6801c276e53f2e6f335583c9c9049e535f87c0a3b1" }, { "path": "research/community-batch932-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "cc4d03eb59b9ab3f952735f7e88ff18c2d15d7af", "sha256": "184629cac91a5cfaca50330a88596008b824221433867dcf8117539c913c284a" }, { "path": "research/community-batch970-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "8b9f4111badf7de5d97684799560b55110e9da79", "sha256": "23188ed920e38a54006cb883e181585620821c63bf7e8b5e05d32719417cc37e" }, { "path": "research/community-frontier741-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "a5300d4e7a5381a3f443fc54c768ca6f0f236d68", "sha256": "3c820fb30e1b4d9bcfc6a7ab524375e5b2abd66b940af2c509146104f0bcd79c" }, { "path": "research/community-frontier890-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "d7ff6d777b01d69b6ce84caf25d3b7e4a4d2f211", "sha256": "6b185a9902652f893f3ebd8ada92d2f11b6de6533a9a4d11718a8a4496101128" }, { "path": "research/community-hyperplane599-audit/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "546f37d326d10a99910ae8f908e71ef768524d98", "sha256": "65099d764bfcc39bda5e4d9966783611b094c3522dbdd1435cd498d657a8ef8e" }, { "path": "research/community-k492-audit/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "e538481e4cb16ed936d3195f2dfb5b5a9ca0a76b", "sha256": "2c0f4fa5bc150d05658af2e7c54c4d2c337dd52b7efd3d69530ae73bcbdf452a" }, { "path": "research/community-reconciliation92-audit/MANIFEST.json", - "usage": "input", + "usage": "provenance", "git_blob": "2a2e93685173d5f13cbb5abe740f5d90352e0228", "sha256": "5f501f3c118131e7d069f30ad77186eb2ad6961f9680a0ef105f4514ed41808a" }, { "path": "research/partial-swap-digest/baseline.py", - "usage": "input", + "usage": "provenance", "git_blob": "a2f0190704db83bd8ef48e46e723c49b925804fe", "sha256": "81e9af92cdf38243a540cdcff2062778e449467848d444da37a9553c12ca4c34" }, { "path": "research/r420-two-sided-basis/SOURCES.json", - "usage": "input", + "usage": "provenance", "git_blob": "5d718e11e62f4bcadecf1e02d6b61f87dbe190b0", "sha256": "d9810b0d139c5a1211fd2c1f0d142187cc1fca30026e1e7bc4f9ecfacf1596d1" }, { "path": "research/skip-clones/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "8d1bb3b9c8189e35e5d8bfdfa632d7473e8be0d5", "sha256": "0b68e63e35a97ce6b0cdb6e291b88ebaa8f2dd4afb70b2498f10ee89428258dc" }, { "path": "research/split-skip/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "2ab610b6ea2edd2865fda793ef2168b0c76afb4f", "sha256": "7c2b4646a3ecfef6f881da5c43e4bd0fa9a4d1b00548b8ab458d897e16735134" }, { "path": "scripts/historical-ci-inputs/Makefile", - "usage": "input", + "usage": "provenance", "git_blob": "aff68409021c9d401a6f8013b9dfd7dbcc30f2a8", "sha256": "ea8830dd79da493e2d75baf753d733ff7efbcf2b4794afe41fae0ac8f3055646" }, { "path": "scripts/historical-ci-inputs/ledger-batch932-run_isolated_tests.py", - "usage": "input", + "usage": "provenance", "git_blob": "65db599ab0b1dea0312c4ca048e0bd0f44c3736f", "sha256": "96ea543e6c707424afe247e77bd86c82152f90fc76a0773c4232145da5cdf8d1" }, { "path": "scripts/historical-ci-inputs/ledger-batch932-test_isolated_test_runner.py", - "usage": "input", + "usage": "provenance", "git_blob": "34820a8f24678f918f4d0e7a35380d8013fc3495", "sha256": "628391b6abfbc8674ceec1751867a4392f2cc0b5b66886243e139af86cf355ac" }, { "path": "scripts/historical-ci-inputs/ledger-batch970-verify_selected_result.py", - "usage": "input", + "usage": "provenance", "git_blob": "c755b76e0d44ba4917aa94440ebe54daefce5b2a", "sha256": "d7fd929726b326aeeaf0a3996475adec88eee9aac09ae0bebeeaa0bc1fc8f199" }, { "path": "scripts/historical-ci-inputs/ledger-frontier741-ci-verification.md", - "usage": "input", + "usage": "provenance", "git_blob": "7f3c012504187917a728b9fe87043f0fc8cd006a", "sha256": "a854022e0e1d5d4db4d60e586be3ea56005013ef14a1fc06d02bc06e8529c4b0" }, { "path": "scripts/historical-ci-inputs/partial-swap-context.json", - "usage": "input", + "usage": "provenance", "git_blob": "ad65114886bf34a4fd27e79f3be502389e689faa", "sha256": "833a9642f33aeab2ffea17ec9c6b82e0a953f90192b2c82e10bef21538dccba9" }, { "path": "scripts/historical-ci-inputs/partial-swap-network.json", - "usage": "input", + "usage": "provenance", "git_blob": "52075f2463f60af5e16571347f24274fce73a1ea", "sha256": "f3c4be597b2f2136da4ae2cc80c7454f63c90aa01f84e5b8131cee4dd55de815" }, { "path": "scripts/partial_swap/shared.py", - "usage": "input", + "usage": "provenance", "git_blob": "44a0e454c70f9c4b98e258b8443612e6a119904b", "sha256": "5a0646a50b9f3e8ea55168620a78e8853b0ab810517cefc8cfb8696aedee278a" }, { "path": "scripts/replay_historical_check.py", - "usage": "input", + "usage": "provenance", "git_blob": "1e92fff2782970ef71378f594f2350d245a4db26", "sha256": "5467619c78183d3adc82b0cb55af28e5c1a01fca2b0588677816244b53e2bafd" }, { "path": "scripts/research_package.py", - "usage": "input", + "usage": "provenance", "git_blob": "091b4c8f58bac9a9580d76025b887dc5c873d05f", "sha256": "e1256016e7f51827d04fa2179255989f639ae1d97afaa9c16265f85a0c6abd70" }, { "path": "scripts/run_isolated_tests.py", - "usage": "input", + "usage": "provenance", "git_blob": "a96ab35b315ce492e7fbbfd6c5ae211aa066b541", "sha256": "49eb56dd0fc0d8d8ffdb209970a7adf2176223580646f575d5c22e59543b381c" }, { "path": "scripts/verify_selected_result.py", - "usage": "input", + "usage": "provenance", "git_blob": "6882a4700e410dec569b51ae2eaf1a19cc019195", "sha256": "d6b305eac5b9bdb8172c469ad30a1655a60fa0aceac8b1bf610e1b73f51babd8" }, { "path": "tests/test_isolated_test_runner.py", - "usage": "input", + "usage": "provenance", "git_blob": "343b24abf6719b81805eba5a84c74e57634c8288", "sha256": "3a5470d0b139828b90e19bf9583ddeafcd69f8e34f2824664eb3a2958a52e34d" } diff --git a/research/historical-selected-replay-gap/VERIFY.json b/research/historical-selected-replay-gap/VERIFY.json index 98553e72ed..ab7efa3471 100644 --- a/research/historical-selected-replay-gap/VERIFY.json +++ b/research/historical-selected-replay-gap/VERIFY.json @@ -4,36 +4,7 @@ "python": "3.12", "requirements": [], "inputs": [ - "Makefile", - "certificates/partial-swap-network.json", - "docs/ci-verification.md", - "research/clifford-state-performance/SOURCE.json", - "research/community-batch1047-audit/CONTENT-COVERAGE.json", - "research/community-batch1099-audit/CONTENT-COVERAGE.json", - "research/community-batch932-audit/CONTENT-COVERAGE.json", - "research/community-batch970-audit/CONTENT-COVERAGE.json", - "research/community-frontier741-audit/CONTENT-COVERAGE.json", - "research/community-frontier890-audit/CONTENT-COVERAGE.json", - "research/community-hyperplane599-audit/SOURCE.json", - "research/community-k492-audit/SOURCE.json", - "research/community-reconciliation92-audit/MANIFEST.json", - "research/partial-swap-digest/baseline.py", - "research/r420-two-sided-basis/SOURCES.json", - "research/skip-clones/SOURCE.json", - "research/split-skip/SOURCE.json", - "scripts/historical-ci-inputs/Makefile", - "scripts/historical-ci-inputs/ledger-batch932-run_isolated_tests.py", - "scripts/historical-ci-inputs/ledger-batch932-test_isolated_test_runner.py", - "scripts/historical-ci-inputs/ledger-batch970-verify_selected_result.py", - "scripts/historical-ci-inputs/ledger-frontier741-ci-verification.md", - "scripts/historical-ci-inputs/partial-swap-context.json", - "scripts/historical-ci-inputs/partial-swap-network.json", - "scripts/partial_swap/shared.py", - "scripts/replay_historical_check.py", - "scripts/research_package.py", - "scripts/run_isolated_tests.py", - "scripts/verify_selected_result.py", - "tests/test_isolated_test_runner.py" + "scripts/research_package.py" ], "commands": [ { diff --git a/research/historical-selected-replay-gap/verify.py b/research/historical-selected-replay-gap/verify.py index 83b995941a..9d266c5a4e 100644 --- a/research/historical-selected-replay-gap/verify.py +++ b/research/historical-selected-replay-gap/verify.py @@ -6,8 +6,10 @@ """ import hashlib import importlib.util +import json import subprocess import sys +import tempfile from pathlib import Path ROOT = Path(__file__).resolve().parents[2] @@ -61,31 +63,47 @@ def require(ok, message): raise SystemExit(message) -def load_checker(): - path = ROOT / "scripts/replay_historical_check.py" - spec = importlib.util.spec_from_file_location("historical_selected_replay_gap_checker", path) +def load_module(path): + spec = importlib.util.spec_from_file_location(path.stem, path) module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module +def checkout_snapshot(snapshot, sources, runner, env): + paths = [runner.canonical_relative_path(row["path"]) for row in sources["files"]] + git = ["git", "-c", "maintenance.auto=false", "-c", "gc.auto=0", + "-c", "core.autocrlf=false"] + subprocess.run([*git, "clone", "--quiet", "--shared", "--no-tags", "--no-checkout", + "--", str(ROOT), str(snapshot)], cwd=ROOT, env=env, check=True) + subprocess.run([*git, "update-ref", "--no-deref", "HEAD", INSPECTED], + cwd=snapshot, env=env, check=True) + # The pinned planner reads omitted manifests from the sparse HEAD/index. + patterns = "".join(f"/{path.as_posix()}\n" for path in paths) + subprocess.run([*git, "sparse-checkout", "set", "--no-cone", "--stdin"], + cwd=snapshot, env=env, input=patterns.encode("utf-8"), check=True) + subprocess.run([*git, "read-tree", "-mu", "HEAD"], cwd=snapshot, env=env, check=True) + for path, row in zip(paths, sources["files"], strict=True): + require(hashlib.sha256((snapshot / path).read_bytes()).hexdigest() == row["sha256"], + "historical checkout source digest changed: " + path.as_posix()) + + def entries(checker): for name, config in checker.CONFIG.items(): for entry in [config, *config.get("additional_inputs", [])]: yield name, entry -def reject(checker, entry): +def reject(root, checker, entry): try: - checker.authenticated_input(ROOT, entry) + checker.authenticated_input(root, entry) except ValueError as exc: return str(exc) raise SystemExit("historical input was admitted: " + entry["path"]) -def main(): - require(not sys.flags.optimize, "assertions must stay enabled") - checker = load_checker() +def check_snapshot(root, env): + checker = load_module(root / "scripts/replay_historical_check.py") selected = [entry for name, entry in entries(checker) if name == "tooling-ledger" and entry["path"] == SELECTED_PATH] require(len(selected) == 1, "selected-result checker overlay is not unique") @@ -94,7 +112,7 @@ def main(): require(entry["accepted_live_sha256"] == [SELECTED_ACCEPTED], "accepted selected-checker successors changed") frozen = (checker.INPUTS / entry["input"]).read_bytes() - live = (ROOT / SELECTED_PATH).read_bytes() + live = (root / SELECTED_PATH).read_bytes() require(hashlib.sha256(frozen).hexdigest() == SELECTED_PIN, "frozen selected checker bytes changed") require(hashlib.sha256(live).hexdigest() == SELECTED_LIVE, "live selected checker digest changed") require(SELECTED_LIVE not in (SELECTED_PIN, SELECTED_ACCEPTED), "live checker was already admitted") @@ -102,7 +120,7 @@ def main(): # live successor, not a broken comparison. require(SELECTED_PIN in (SELECTED_PIN, *entry["accepted_live_sha256"]), "pin membership control failed") - require(reject(checker, entry) == REJECTIONS[SELECTED_PATH][1], + require(reject(root, checker, entry) == REJECTIONS[SELECTED_PATH][1], "selected checker rejection text changed") counts = {path: 0 for path in REJECTIONS} @@ -110,7 +128,7 @@ def main(): for _name, item in entries(checker): if item["path"] not in REJECTIONS: continue - message = reject(checker, item) + message = reject(root, checker, item) counts[item["path"]] += 1 messages.setdefault(item["path"], message) for path, (count, message) in REJECTIONS.items(): @@ -118,20 +136,31 @@ def main(): require(messages[path] == message, "rejection text changed for " + path) require(sum(counts.values()) == 19, "rejection total changed") ci = [item for _name, item in entries(checker) if item["path"] == CI_PATH] - require(len(ci) == 1 and hashlib.sha256((ROOT / CI_PATH).read_bytes()).hexdigest() == CI_LIVE, + require(len(ci) == 1 and hashlib.sha256((root / CI_PATH).read_bytes()).hexdigest() == CI_LIVE, "selected CI note digest changed") diff = subprocess.check_output( - ["git", "diff", "--name-only", PARENT, INSPECTED], cwd=ROOT, text=True) + ["git", "diff", "--name-only", PARENT, INSPECTED], cwd=root, env=env, text=True) changed = sorted(name for name in diff.splitlines() if name) require(changed == CHANGED, "inspected commit diff changed") - sys.path.insert(0, str(ROOT / "scripts")) - from research_package import plan_details - details = plan_details(ROOT, set(changed)) + planner = load_module(root / "scripts/research_package.py") + details = planner.plan_details(root, set(changed)) require([row["package"] for row in details] == PLAN_PACKAGES, "helper plan selection changed") matched = {name for row in details for names in row["causes"].values() for name in names} require(sorted(set(changed) - matched) == UNMATCHED, "unmatched plan paths changed") - require(plan_details(ROOT, set()) == [], "empty change set selected a package") + require(planner.plan_details(root, set()) == [], "empty change set selected a package") + + +def main(): + require(not sys.flags.optimize, "assertions must stay enabled") + sources = json.loads(Path(__file__).with_name("SOURCES.json").read_bytes()) + require(sources["base_commit"] == INSPECTED, "historical checkout base changed") + runner = load_module(ROOT / "scripts/research_package.py") + env = runner.git_source_env() + with tempfile.TemporaryDirectory(prefix="historical-selected-replay-") as temporary: + snapshot = Path(temporary) / "snapshot" + checkout_snapshot(snapshot, sources, runner, env) + check_snapshot(snapshot, env) print("PASS_HISTORICAL_SELECTED_REPLAY_GAP") print("selected_checker_live=" + SELECTED_LIVE) print("rejections=19 distinct_paths=7 plan_packages=9")