From 776ae75d640e6a5672e8ea798677a2cd3ae2d53c Mon Sep 17 00:00:00 2001 From: Gonzalo-Mier Date: Sat, 17 Oct 2026 09:14:29 +0200 Subject: [PATCH] research: release T740 precision35 kappa refinement --- .../PRECISION-EDITS.json | 30 + research/t740-six-skip-precision35/PROOF.md | 27 + research/t740-six-skip-precision35/README.md | 50 ++ .../t740-six-skip-precision35/SOURCES.json | 600 ++++++++++++++++++ research/t740-six-skip-precision35/TASK.json | 66 ++ .../t740-six-skip-precision35/VERIFY.json | 133 ++++ .../t740-six-skip-precision35/baseline.py | 46 ++ .../evidence/DERIVATION.json | 34 + .../evidence/OUTER-LEDGER.json | 575 +++++++++++++++++ .../evidence/VALIDATION.json | 78 +++ .../t740-six-skip-precision35/reproduce.py | 194 ++++++ .../requirements-full.txt | 5 + research/t740-six-skip-precision35/seal.py | 151 +++++ .../t740-six-skip-precision35/test_verify.py | 107 ++++ research/t740-six-skip-precision35/verify.py | 258 ++++++++ 15 files changed, 2354 insertions(+) create mode 100644 research/t740-six-skip-precision35/PRECISION-EDITS.json create mode 100644 research/t740-six-skip-precision35/PROOF.md create mode 100644 research/t740-six-skip-precision35/README.md create mode 100644 research/t740-six-skip-precision35/SOURCES.json create mode 100644 research/t740-six-skip-precision35/TASK.json create mode 100644 research/t740-six-skip-precision35/VERIFY.json create mode 100644 research/t740-six-skip-precision35/baseline.py create mode 100644 research/t740-six-skip-precision35/evidence/DERIVATION.json create mode 100644 research/t740-six-skip-precision35/evidence/OUTER-LEDGER.json create mode 100644 research/t740-six-skip-precision35/evidence/VALIDATION.json create mode 100644 research/t740-six-skip-precision35/reproduce.py create mode 100644 research/t740-six-skip-precision35/requirements-full.txt create mode 100644 research/t740-six-skip-precision35/seal.py create mode 100644 research/t740-six-skip-precision35/test_verify.py create mode 100644 research/t740-six-skip-precision35/verify.py diff --git a/research/t740-six-skip-precision35/PRECISION-EDITS.json b/research/t740-six-skip-precision35/PRECISION-EDITS.json new file mode 100644 index 0000000000..98943bc3c4 --- /dev/null +++ b/research/t740-six-skip-precision35/PRECISION-EDITS.json @@ -0,0 +1,30 @@ +[ + { + "new": "PRECISION = dict(endpoint_digits=35, grid_digits=24, margin_digits=34, bootstrap_steps=12)", + "old": "PRECISION = dict(endpoint_digits=24, grid_digits=18, margin_digits=28, bootstrap_steps=12)" + }, + { + "new": "dict(b=str(C-Q(1,10**115)), b_above_endpoint=str(C+Q(1,10**35)),", + "old": "dict(b=str(C-Q(1,10**104)), b_above_endpoint=str(C+Q(1,10**24))," + }, + { + "new": "kappa == C-Q(1,10**81)-Q(1,10**57)", + "old": "kappa == C-Q(1,10**70)-Q(1,10**46)" + }, + { + "new": "Endpoint precision35;", + "old": "Endpoint precision24;" + }, + { + "new": "kappa=C-10^-81-10^-57 exactly; same fixed-grid-maximum proof at precision35.", + "old": "kappa=C-10^-70-10^-46 exactly; same fixed-grid-maximum proof at precision24." + }, + { + "new": "b='certified complex_lower - 1e-115 (outer/B.json)'", + "old": "b='certified complex_lower - 1e-104 (outer/B.json)'" + }, + { + "new": " patch('code/assemble.py', [(\" if DISCOVER:b=Q(M.certify(H,73,owner['live'],False)['lower']);conservative_b=Q(M.certify(H,73,owner['live'],True)['lower'])\", \" def fine_endpoint(bad):\\n digits=SPEC['outer_refinement']['endpoint_digits']\\n seed=Q(M.certify(H,73,owner['live'],bad)['lower'])\\n if digits<=24:return seed\\n grid=10**digits;left=int(seed*grid);right=left+10**(digits-24)\\n while right-left>1:\\n mid=(left+right)//2\\n lo,hi=FC.moment('fine_mercator',H,73,owner['live'],Q(mid,grid),bad)\\n if hi<1:left=mid\\n elif lo>1:right=mid\\n else:raise ArithmeticError('fine root enclosure exhausted; no endpoint accepted')\\n return Q(left,grid)\\n if DISCOVER:b=fine_endpoint(False);conservative_b=fine_endpoint(True)\")])\n spec['outer_refinement'] = PRECISION", + "old": " spec['outer_refinement'] = PRECISION" + } +] diff --git a/research/t740-six-skip-precision35/PROOF.md b/research/t740-six-skip-precision35/PROOF.md new file mode 100644 index 0000000000..987859deaf --- /dev/null +++ b/research/t740-six-skip-precision35/PROOF.md @@ -0,0 +1,27 @@ +# Exact 35-digit endpoint extension of the T740 release + +This scoped package tests one exact question: does the unchanged T740 six-skip construction admit the next 35-decimal-grid endpoint above the open PR #3115 claim? The latest public point used here is the exact claim `0.001729737950064278551242895823 - 10^-52 - 10^-76` in [PR #3115](https://github.com/CrocSwap/integer-mult-bounds/pull/3115), head `400bc83669f86917f69b6249cd0356d3a913293c`. + +For profile `{1:16376940, 2:4741920, 3:1594737, 4:719280, 5:137085, 8:53280, 48:281903}` at `T=740`, the credited root engine brackets the root in + +```text +[1729737950064278551242895823817348847577393 / 10^45, + 864868975032139275621447911908674423788697 / (5*10^44)]. +``` + +The next candidate endpoint is the lower 35-digit grid point + +```text +C35 = 86486897503213927562144791190867 / (5*10^34) + = 0.00172973795006427855124289582381734. +κ35 = C35 - 10^-57 - 10^-81. +``` + +Both retained exact rational moment engines must show `M(C35)<11:\\n mid=(left+right)//2\\n lo,hi=FC.moment('fine_mercator',H,73,owner['live'],Q(mid,grid),bad)\\n if hi<1:left=mid\\n elif lo>1:right=mid\\n else:raise ArithmeticError('fine root enclosure exhausted; no endpoint accepted')\\n return Q(left,grid)\\n if DISCOVER:b=fine_endpoint(False);conservative_b=fine_endpoint(True)\")])\n spec['outer_refinement'] = PRECISION", + "old": " spec['outer_refinement'] = PRECISION" + } + ] +} diff --git a/research/t740-six-skip-precision35/evidence/OUTER-LEDGER.json b/research/t740-six-skip-precision35/evidence/OUTER-LEDGER.json new file mode 100644 index 0000000000..df2c062b3d --- /dev/null +++ b/research/t740-six-skip-precision35/evidence/OUTER-LEDGER.json @@ -0,0 +1,575 @@ +{ + "status": "PASS_FINE_PRIME_PADDING_EXACT_ARITHMETIC", + "scope": "Conditional fine-prime padding composition. Fresh native admission is required by verify.py. The cited prime theorem, written gauge-free theorem and inherited all-size interfaces are not proved by this arithmetic. No independent human review is claimed.", + "geometry_changes": { + "theta_power": { + "rational": "2", + "decimal": "2" + }, + "halo_power": 48, + "core_power": 128, + "matrix_exponent": { + "rational": "45/16", + "decimal": "2.8125" + } + }, + "halo_umbrella": { + "umbrella_power": 10, + "theta_power": { + "rational": "2", + "decimal": "2" + }, + "exponent_budget": { + "rational": "13/2", + "decimal": "6.5" + }, + "margin": { + "rational": "7/2", + "decimal": "3.5" + }, + "fails_from_theta_power": { + "rational": "15/4", + "decimal": "3.75" + } + }, + "complex_lower_short": { + "rational": "17297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999999/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0017297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999999" + }, + "complex_lower_pinned": { + "rational": "86486897503213927562144791190867/50000000000000000000000000000000000", + "decimal": "0.00172973795006427855124289582381734" + }, + "native_moment": [ + { + "rational": "15095849699286165408966218323953075184689081878165654612508460830896804230335423445462086291546702126476542044483149833016453931196509928375014084652887408433763951525913/15095849699286165408966218323953075563667684881665761713504825200982496649568595408344506900710635070165873500123055379599082338519699170530245737005730784174597581307904", + "decimal": "0.9999999999999999999999999999999999748951791020136616318002438862696807430442136192313138034369708145588773530329377382827810309480847287199053282447467638164994975690951317681557457558562499511924639575594100718169697194948459161670832" + }, + { + "rational": "15095849699286165408966218323953075184689081878165654612508460830896804230335423445462086291546702126476542044483149833016453931196509928375014084652887408433763951525941/15095849699286165408966218323953075563667684881665761713504825200982496649568595408344506900710635070165873500123055379599082338519699170530245737005730784174597581307904", + "decimal": "0.9999999999999999999999999999999999748951791020136616318002438862696807430442136192313138034369708145588773530329377382827810309480847287199053282447467638164994975690969865825953280491740565519896276730028290123527838086207634860524301" + } + ], + "profile": { + "1": 16376940, + "2": 4741920, + "3": 1594737, + "4": 719280, + "5": 137085, + "8": 53280, + "48": 281903 + }, + "m": 73, + "W": 663040, + "online_final_kappa": { + "rational": "863375561558154078849/500000000000000000000000", + "decimal": "0.001726751123116308157698" + }, + "rows": { + "struct_boundary_radix_union": { + "kind": "struct_boundary_radix_union", + "kappa": { + "rational": "1729737950064278551242895823817339999999999999999999998999999999999999999999999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.001729737950064278551242895823817339999999999999999999998999999999999999999999999" + }, + "epsilon": { + "rational": "409599999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999959/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999989990234375" + }, + "xi": { + "rational": "1859542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999589845403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.9079797379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999997997292010352718861801734406035729713378906250000000000000000000000000000000000000000000000000000000000000000000000200195" + }, + "beta": { + "rational": "409599999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999877/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969970703125" + }, + "q": { + "rational": "8648689750321392756214479119086699999999999999999999999999999999999999999999999999999999999999999999999999999999/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0017297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999998" + }, + "a": { + "rational": "34594759001285571024857916476346799999999999999999999999999999999999999999999999999999999999999999999999999999997/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.00172973795006427855124289582381733999999999999999999999999999999999999999999999999999999999999999999999999999999985" + }, + "r0": { + "rational": "1/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1E-115" + }, + "zeta": { + "rational": "1/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1E-117" + }, + "slack": { + "rational": "1/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1E-115" + }, + "margins": { + "main_transform": { + "rational": "3542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999590045403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.001729737950064278551242895823817339999999999999999999999999999999999999999999999999999999999999999999999999999999799826857285271886180173440603572971337890625000000000000000000000000000000000000000000000000000000000000000000000020019531" + }, + "global_coordinate_router": { + "rational": "34594759001285571024857916476346799999999999999999999999999999999999999999999999999999999999999999999999999999997/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.00172973795006427855124289582381733999999999999999999999999999999999999999999999999999999999999999999999999999999985" + }, + "fused_gaussian": { + "rational": "3542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999794336211160710468690985619068352335900000000000000000000000000000000000000000000000000000000000000000000000000000123/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.001729737950064278551242895823817339999999999999999999999999999999999999999999999999999999999999999999999999999999899578228105815658540520321810718914013671875000000000000000000000000000000000000000000000000000000000000000000000060058594" + }, + "group_bit_router": { + "rational": "14170013286926569891781802588711649279999999999999999999999999999999999999999999999999999999999999999999999999999586944844642841874763942476273409343600000000000000000000000000000000000000000000000000000000000000000000000000000369/8192000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.001729737950064278551242895823817339999999999999999999999999999999999999999999999999999999999999999999999999999999949578228105815658540520321810718914013671875000000000000000000000000000000000000000000000000000000000000000000000045043945" + }, + "group_scans": { + "rational": "204799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999959/204800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999997998046875" + }, + "boundary_algebraic_matrix": { + "rational": "3542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999794845403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.001729737950064278551242895823817339999999999999999999999999999999999999999999999999999999999999999999999999999999899826857285271886180173440603572971337890625000000000000000000000000000000000000000000000000000000000000000000000020019531" + }, + "sparse_union_movement": { + "rational": "835542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999794845403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.4079797379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999998998268572852718861801734406035729713378906250000000000000000000000000000000000000000000000000000000000000000000000200195" + }, + "polynomial_products": { + "rational": "409599999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999959/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999989990234375" + }, + "microbox_face_corrections": { + "rational": "7884800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041/102400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "77.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400390625" + } + }, + "strict_checks": { + "actual_bit_above_effective": { + "rational": "73781790511313670122083523653200000000000000000000000000000000000000000000000000000000000000000000000000000003/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.00000368908952556568350610417618266000000000000000000000000000000000000000000000000000000000000000000000000000000015" + }, + "complex_above_effective": { + "rational": "1/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "5E-116" + }, + "q_positive": { + "rational": "8648689750321392756214479119086699999999999999999999999999999999999999999999999999999999999999999999999999999999/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0017297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999998" + }, + "complex_endpoint": { + "rational": "1/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1E-115" + }, + "q_below_effective": { + "rational": "1/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "5E-116" + }, + "stop_positive": { + "rational": "1/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1E-121" + }, + "stop_below_one": { + "rational": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999" + }, + "leaf_saving_above_effective": { + "rational": "4999999982702620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "4.999999982702620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001E-116" + }, + "q_below_internal": { + "rational": "1/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "5E-116" + }, + "q_below_leaf": { + "rational": "9999999982702620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "9.999999982702620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001E-116" + }, + "lambda_above_tau": { + "rational": "1/40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "2.5E-116" + }, + "lambda_above_sigma": { + "rational": "3/40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "7.5E-116" + }, + "lambda_above_internal": { + "rational": "1/40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "2.5E-116" + }, + "lambda_prime_above_lambda": { + "rational": "1/40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "2.5E-116" + }, + "lambda_prime_above_leaf": { + "rational": "9999999982702620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "9.999999982702620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001E-116" + }, + "epsilon_positive": { + "rational": "409599999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999959/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999989990234375" + }, + "epsilon_below_one": { + "rational": "41/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.0009765625E-115" + }, + "cap_above_band": { + "rational": "835542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999589845403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.4079797379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999997997292010352718861801734406035729713378906250000000000000000000000000000000000000000000000000000000000000000000000200195" + }, + "cap_below_cell": { + "rational": "188457496678268357527054549352822087680000000000000000000000000000000000000000000000000000000000000000000000000000205154596279763177103004793643882554699999999999999999999999999999999999999999999999999999999999999999999999999999959/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.09202026204993572144875710417618266000000000000000000000000000000000000000000000000000000000000000000000000000000010017314271472811381982655939642702866210937499999999999999999999999999999999999999999999999999999999999999999999997998047" + }, + "group_positive": { + "rational": "409599999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999877/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969970703125" + }, + "group_below_dimension": { + "rational": "41/204800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "2.001953125E-115" + }, + "support_router_span": { + "rational": "123/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "3.0029296875E-115" + }, + "group_gauge_power_slack": { + "rational": "188457496678268357527054549352822087680000000000000000000000000000000000000000000000000000000000000000000000000000615254596279763177103004793643882554699999999999999999999999999999999999999999999999999999999999999999999999999999959/1024000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.1840405240998714428975142083523653200000000000000000000000000000000000000000000000000000000000000000000000000000006008345666794562276396531187928540573242187499999999999999999999999999999999999999999999999999999999999999999999999599609" + }, + "actual_logarithmic_group_guard": { + "rational": "188457496678268357527054549352822087680000000000000000000000000000000000000000000000000000000000000000000000000000717654596279763177103004793643882554699999999999999999999999999999999999999999999999999999999999999999999999999999959/1024000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.1840405240998714428975142083523653200000000000000000000000000000000000000000000000000000000000000000000000000000007008345666794562276396531187928540573242187499999999999999999999999999999999999999999999999999999999999999999999999599609" + }, + "global_gamma_power_slack": { + "rational": "1/10240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "9.765625E-119" + }, + "actual_logarithmic_gamma_guard": { + "rational": "41/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.0009765625E-115" + }, + "alpha_logarithm_absorption": { + "rational": "1/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1E-115" + }, + "group_key_fits_record": { + "rational": "41/204800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "2.001953125E-115" + }, + "membership_arithmetic_fits_record": { + "rational": "41/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.0009765625E-115" + }, + "microbox_halo_volume": { + "rational": "32358400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "79.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030029296875" + }, + "positive_layout_slack": { + "rational": "1/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1E-115" + }, + "short_record_fallback": { + "rational": "10222287483391341787635272746764110438400000000000000000000000000000000000000000000000000000000000000000000000000000511/10240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.99827026204993572144875710417618266000000000000000000000000000000000000000000000000000000000000000000000000000000004990234375" + }, + "improvement_over_online_final": { + "rational": "2986826947970393544895823817339999999999999999999998999999999999999999999999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.000002986826947970393544895823817339999999999999999999998999999999999999999999999" + }, + "improvement_over_previous_local_final": { + "rational": "56377844658500551242895823817339999999999999999999998999999999999999999999999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.000056377844658500551242895823817339999999999999999999998999999999999999999999999" + }, + "complex_below_one_over_32": { + "rational": "295202620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0295202620499357214487571041761826600000000000000000000000000000000000000000000000000000000000000000000000000000001" + }, + "strassen_integer_power_gap": { + "rational": "1951441519231", + "decimal": "1951441519231" + }, + "theta_positive_polynomial_power": { + "rational": "2", + "decimal": "2" + }, + "cap_below_phase_cell_power": { + "rational": "2236457496678268357527054549352822087680000000000000000000000000000000000000000000000000000000000000000000000000000410154596279763177103004793643882554699999999999999999999999999999999999999999999999999999999999999999999999999999959/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.092020262049935721448757104176182660000000000000000000000000000000000000000000000000000000000000000000000000000000200270798964728113819826559396427028662109374999999999999999999999999999999999999999999999999999999999999999999999979980" + }, + "halo_covers_generic_inverse_radius": { + "rational": "5", + "decimal": "5" + }, + "union_tag_work_per_visit_fits_record": { + "rational": "123/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "3.0029296875E-115" + }, + "union_header_fits_record": { + "rational": "123/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "3.0029296875E-115" + }, + "source_axis_superpolynomial": { + "rational": "41/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.0009765625E-115" + }, + "improvement_over_pr1786": { + "rational": "49983161914229642462347957317339999999999999999999999000000199999980000099999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.000049983161914229642462347957317339999999999999999999999000000199999980000099999" + }, + "improvement_over_pr1828": { + "rational": "99965987877468059814449659793274846003377122994839407079344959674399999999998000000000000004006719019826502178085342683975683/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0000499829939387340299072248298966374230016885614974197035396724798371999999999990000000000000020033595099132510890426713419878415" + }, + "improvement_over_pr1839": { + "rational": "249914969693670149536124149483187115008442807487098517698362399185677258698366805868475000000001001679754956625544521335670993920703/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0000499829939387340299072248298966374230016885614974197035396724798371354517396733611736950000000002003359509913251089042671341987841406" + }, + "improvement_over_pr1875": { + "rational": "249914969693670149536124149483187115008442807487098517698362399185677258698366805868471719335776838627743415457068895139647759399172939286143496816535216421325187363046885361425772909502231218314437622205930116079297234806627210590217190600996553729143901162562581526621534715086055386213403722175000000001001679754956625544521335670993920703/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.00004998299393873402990722482989663742300168856149741970353967247983713545173967336117369434386715536772554868309141377902792955187983458785722869936330704328426503747260937707228515458190044624366288752444118602321585944696132544211804344" + }, + "improvement_over_pr1876": { + "rational": "24991496969367014953612414948318711500844280748709851769836239918567725869836680586847171933577683862774341545706889513964775939917293928614349681653521642132518736304688536142577290950223121831443762220593011607929723480662721059021719060099655372914390116256258152662153471508605538621340372217196657216794137380775174500330086462142358142864921147118845386980694114022172311249292673931726844600000000000000000001001679754956625544521335670993920702577/500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.00004998299393873402990722482989663742300168856149741970353967247983713545173967336117369434386715536772554868309141377902792955187983458785722869936330704328426503747260937707228515458190044624366288752444118602321585944696132544211804344" + }, + "improvement_over_pr1897": { + "rational": "49982993938734029907224829896637423001688561497419703539672479837135451739673361173694343867155367725548683091413779027929551879834587857228699363307043284265037472609377072285154581900446243662887524441186023215859446961325442118043438120199310745828780232512516305324306943017211077242680744434393314433588274761550349000660172924284716285729842294237690773961388228044344622498585347863453689118814253082419197486359454032147189198319033143866021423837056207677317517847011467076188001061138620310116832610271556685687769184940440093096226243113127523863162928128796969576356494654526264864467/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.00004998299393873402990722482989663742300168856149741970353967247983713545173967336117369434386715536772554868309141377902792955187983458785722869936330704328426503747260937707228515458190044624366288752444118602321585944696132544211804344" + }, + "improvement_over_pr1758": { + "rational": "49992441261979499696362138617366327686526580209199319247542619067215757027413399369818327775017/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.000049992441261979499696362138617366327686526580209199319247542619067215757027413399369818327775017" + }, + "improvement_over_pr1699": { + "rational": "52096218720923986991837536753695250934431506999999998999999999999999999999999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.000052096218720923986991837536753695250934431506999999998999999999999999999999999" + }, + "improvement_over_pr1712": { + "rational": "260481093604619934955841139766707884145727138632283633941299969772687285461024288600736779707649/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0000520962187209239869911682279533415768291454277264567267882599939545374570922048577201473559415298" + }, + "improvement_over_previous_package": { + "rational": "519180477498421176118406879397398986170598784229341390200650717283025923262092542077285802551153/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.0000519180477498421176118406879397398986170598784229341390200650717283025923262092542077285802551153" + }, + "improvement_over_pkg_k2": { + "rational": "51745342858996030510807048986531627777122102965890394790280701170194526587547469132116575062403/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.000051745342858996030510807048986531627777122102965890394790280701170194526587547469132116575062403" + }, + "gaussian_above_main": { + "rational": "102145403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/1024000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "9.97513708205437723603468812071459426757812500000000000000000000000000000000000000000000000000000000000000000000000400390625E-116" + }, + "main_transform_above_kappa": { + "rational": "2048000000000000000000002047999999999999999999999999999999590045403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.00000000000000000000000099999999999999999999999999999999979982685728527188618017344060357297133789062500000000000000000000000000000000000000000000000000000000000000000000002001953125E-57" + }, + "global_coordinate_router_above_kappa": { + "rational": "20000000000000000000000019999999999999999999999999999999997/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.00000000000000000000000099999999999999999999999999999999985E-57" + }, + "fused_gaussian_above_kappa": { + "rational": "2048000000000000000000002047999999999999999999999999999999794336211160710468690985619068352335900000000000000000000000000000000000000000000000000000000000000000000000000000123/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.00000000000000000000000099999999999999999999999999999999989957822810581565854052032181071891401367187500000000000000000000000000000000000000000000000000000000000000000000006005859375E-57" + }, + "group_bit_router_above_kappa": { + "rational": "8192000000000000000000008191999999999999999999999999999999586944844642841874763942476273409343600000000000000000000000000000000000000000000000000000000000000000000000000000369/8192000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.0000000000000000000000009999999999999999999999999999999999495782281058156585405203218107189140136718750000000000000000000000000000000000000000000000000000000000000000000000450439453125E-57" + }, + "group_scans_above_kappa": { + "rational": "204445749667826835752705454935282208768000000000000000000204800000000000000000000204799999999999999999999999999999959/204800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.9982702620499357214487571041761826600000000000000000000010000000000000000000000009999999999999999999999999999999997998046875" + }, + "boundary_algebraic_matrix_above_kappa": { + "rational": "2048000000000000000000002047999999999999999999999999999999794845403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "1.00000000000000000000000099999999999999999999999999999999989982685728527188618017344060357297133789062500000000000000000000000000000000000000000000000000000000000000000000002001953125E-57" + }, + "sparse_union_movement_above_kappa": { + "rational": "832000000000000000000000000000000000000000000000000000002048000000000000000000002047999999999999999999999999999999794845403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.4062500000000000000000000000000000000000000000000000000010000000000000000000000009999999999999999999999999999999998998268572852718861801734406035729713378906250000000000000000000000000000000000000000000000000000000000000000000000200195" + }, + "polynomial_products_above_kappa": { + "rational": "408891499335653671505410909870564417536000000000000000000409600000000000000000000409599999999999999999999999999999959/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.99827026204993572144875710417618266000000000000000000000100000000000000000000000099999999999999999999999999999999989990234375" + }, + "microbox_face_corrections_above_kappa": { + "rational": "7884622874833913417876352727467641104384000000000000000000102400000000000000000000102400000000000000000000000000000041/102400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "76.998270262049935721448757104176182660000000000000000000001000000000000000000000001000000000000000000000000000000000400390625" + } + } + } + }, + "rejecting_controls": { + "struct_boundary_radix_union": { + "endpoint_equality": { + "complex_endpoint": { + "rational": "0", + "decimal": "0" + }, + "q_below_effective": { + "rational": "-1/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-5E-116" + }, + "q_below_internal": { + "rational": "-1/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-5E-116" + }, + "q_below_leaf": { + "rational": "-17297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999999/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-1.7297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999999E-124" + }, + "lambda_above_tau": { + "rational": "-1/40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-2.5E-116" + }, + "lambda_above_internal": { + "rational": "-1/40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-2.5E-116" + }, + "lambda_prime_above_lambda": { + "rational": "-1/40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-2.5E-116" + }, + "lambda_prime_above_leaf": { + "rational": "-17297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999999/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-1.7297379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999999E-124" + } + }, + "zero_layout_slack": { + "positive_layout_slack": { + "rational": "0", + "decimal": "0" + } + }, + "old_per_axis_scan": { + "old_per_axis_scan_above_kappa": { + "rational": "-708500664346328494589090129435582463999999999999999999590399999999999999999999590399999999999999999999999999999959/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-0.00172973795006427855124289582381733999999999999999999999899999999999999999999999899999999999999999999999999999999989990234375" + } + }, + "full_cell_gauge": { + "unrecentered_group_gauge": { + "rational": "-20479999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999997949/10240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-1.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999979970703125" + } + }, + "full_key_sort": { + "unnecessary_full_key_sort_above_kappa": { + "rational": "-1215999999999999999999999999999999999999999999999999999997951999999999999999999997951999999999999999999999999999999795154596279763177103004793643882554699999999999999999999999999999999999999999999999999999999999999999999999999999959/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-0.5937499999999999999999999999999999999999999999999999999989999999999999999999999989999999999999999999999999999999998999778302147281138198265593964270286621093749999999999999999999999999999999999999999999999999999999999999999999999799805" + } + }, + "old_g_factor_union_row": { + "old_g_factor_union_row_above_kappa": { + "rational": "-1215999999999999999999999999999999999999999999999999999997951999999999999999999997951999999999999999999999999999999590154596279763177103004793643882554699999999999999999999999999999999999999999999999999999999999999999999999999999959/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-0.5937499999999999999999999999999999999999999999999999999989999999999999999999999989999999999999999999999999999999997998801739647281138198265593964270286621093749999999999999999999999999999999999999999999999999999999999999999999999799805" + } + }, + "old_theta_chirp_guard": { + "old_theta_chirp_guard": { + "rational": "-835542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999487245403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/1024000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-0.8159594759001285571024857916476346799999999999999999999999999999999999999999999999999999999999999999999999999999994992630895705437723603468812071459426757812500000000000000000000000000000000000000000000000000000000000000000000000400391" + } + }, + "old_linear_guard": { + "old_linear_guard": { + "rational": "-1859542503321731642472945450647177912319999999999999999999999999999999999999999999999999999999999999999999999999999179645403720236822896995206356117445300000000000000000000000000000000000000000000000000000000000000000000000000000041/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-0.9079797379500642785512428958238173399999999999999999999999999999999999999999999999999999999999999999999999999999995994362322852718861801734406035729713378906250000000000000000000000000000000000000000000000000000000000000000000000200195" + } + }, + "old_union_tag_2beta": { + "old_union_tag_2beta": { + "rational": "-204799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999877/204800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-0.9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999993994140625" + } + }, + "matrix_below_strassen": { + "strassen_integer_power_gap": { + "rational": "-423", + "decimal": "-423" + } + }, + "halo_too_short": { + "halo_covers_generic_inverse_radius": { + "rational": "-3", + "decimal": "-3" + } + }, + "core_too_small": { + "microbox_halo_volume": { + "rational": "-409599999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999877/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969970703125" + }, + "microbox_face_corrections_above_kappa": { + "rational": "-307377125166086582123647272532358895615999999999999999999897599999999999999999999897599999999999999999999999999999959/102400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-3.001729737950064278551242895823817339999999999999999999998999999999999999999999998999999999999999999999999999999999599609375" + } + }, + "group_equals_dimension": { + "group_below_dimension": { + "rational": "0", + "decimal": "0" + }, + "group_key_fits_record": { + "rational": "0", + "decimal": "0" + }, + "membership_arithmetic_fits_record": { + "rational": "-41/409600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-1.0009765625E-115" + } + }, + "epsilon_equals_one": { + "epsilon_below_one": { + "rational": "0", + "decimal": "0" + }, + "global_gamma_power_slack": { + "rational": "-1/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-1E-115" + }, + "actual_logarithmic_gamma_guard": { + "rational": "0", + "decimal": "0" + }, + "source_axis_superpolynomial": { + "rational": "0", + "decimal": "0" + }, + "gaussian_above_main": { + "rational": "-1063788839289531309014380931647664099999999999999999999999999999999999999999999999999999999999999999999999999999877/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-5.1942814418434145947967818928108598632812499999999999999999999999999999999999999999999999999999999999999999999993994140625E-118" + } + }, + "epsilon_not_above_r0_slack": { + "global_gamma_power_slack": { + "rational": "0", + "decimal": "0" + } + }, + "beta_below_gaussian_window": { + "gaussian_above_main": { + "rational": "-42862799554460795000350757073905735299999999999999999999999999999999999999999999999999999999999999999999999999971341/2048000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "-2.092910134495156005876501810249303481445312499999999999999999999999999999999999999999999999999999999999999999998600634765625E-116" + } + }, + "beta_above_membership_window": { + "membership_arithmetic_fits_record": { + "rational": "0", + "decimal": "0" + } + } + } + }, + "pr1673_kappa": { + "rational": "1677160151714381/1000000000000000000", + "decimal": "0.001677160151714381" + }, + "improvement_over_pr1673": { + "rational": "52577798349897551242895823817339999999999999999999998999999999999999999999999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "decimal": "0.000052577798349897551242895823817339999999999999999999998999999999999999999999999" + }, + "source_sha256": { + "new/SPEC.json": "434b127573943dc2e901373787587c8307fd2047ed3d0523825a825f77ddd96e", + "CLAIM.json": "d34333c2664d1a79f9dcd59206a90a9b1c5151c1693483ec49d80337c0ff1eda" + } +} diff --git a/research/t740-six-skip-precision35/evidence/VALIDATION.json b/research/t740-six-skip-precision35/evidence/VALIDATION.json new file mode 100644 index 0000000000..be3d8a9faf --- /dev/null +++ b/research/t740-six-skip-precision35/evidence/VALIDATION.json @@ -0,0 +1,78 @@ +{ + "admission_sha256": "ec9d9862350e79b9dd42b4889ca4b4dc0ab09b17602bb608edd8a08e652ab47a", + "baseline_admission_sha256": "5127595fc2ce577435e54f19986e1f8a0aedf59ac803345d87fb3afea6bbce9d", + "baseline_complete": true, + "baseline_native_receipt_sha256": "efcac8f6f2a992f71537d1567a3c75857f9641a20f0bf93ad5a6b24de987934b", + "baseline_package_manifest_sha256": "b1c276654ef4472e854775f23554b56ab6830686b5d921af699038f806d42f6a", + "baseline_release_projection": { + "kappa_decimal": "0.0017297379500642785512419999999999999999999998999999999999999999999999", + "manifest_sha256": "b1c276654ef4472e854775f23554b56ab6830686b5d921af699038f806d42f6a", + "status": "PASS_RELEASE" + }, + "baseline_terminal_receipt_sha256": "5d7918368c57210fc18b7b4a2ba594b0445e519edc854097593f606ffeb40290", + "candidate_admission_sha256": "ec9d9862350e79b9dd42b4889ca4b4dc0ab09b17602bb608edd8a08e652ab47a", + "candidate_checkpoint_scope": "Reused only hash-verified completed discovery (bind, emit, full audit, invoice, assembly, freeze and independent replay), outer ledger and independent arithmetic. The full strict candidate release ran fresh. A prior adapter assertion used the precision-30 slack exponents; its failed attempt and corrected derivation are retained.", + "candidate_complete": true, + "candidate_native_receipt_sha256": "efcac8f6f2a992f71537d1567a3c75857f9641a20f0bf93ad5a6b24de987934b", + "candidate_package_manifest_sha256": "e74d35750e18e6e0281976c7bde578ab02b054b25e09f3137b0d8533fb7ad143", + "candidate_release_projection": { + "kappa_decimal": "0.001729737950064278551242895823817339999999999999999999998999999999999999999999999", + "manifest_sha256": "e74d35750e18e6e0281976c7bde578ab02b054b25e09f3137b0d8533fb7ad143", + "status": "PASS_RELEASE" + }, + "candidate_terminal_receipt_sha256": "fad6f99c358f8291a6a86ea10225cf04c3480b5e58dcb2d8e6419e24200412ac", + "controller_controls": [ + "alias two whole owners", + "helper on active data family", + "owner in private namespace", + "wrong residual width", + "wrong spectator coordinate", + "omit idle remainder", + "omit private zero buffers", + "private buffer aliases data", + "pooled slots exchange invocation time (equal widths)", + "pooled slot time shifted", + "understate physical reserve", + "extra: wrong provider at its invocation", + "extra: stale per-call local program hash", + "extra: stale serialized provider program", + "extra: unbound residual adapter hash", + "extra: wrong per-call residual width", + "extra: wrong sweep provider", + "extra: entering helper width silently restored to nine", + "gauge44: wrong provider at its invocation", + "gauge44: stale per-call local program hash", + "gauge44: stale serialized provider program", + "gauge44: unbound residual adapter hash", + "gauge44: wrong per-call residual width", + "gauge44: wrong sweep provider", + "gauge44: entering helper width silently restored to nine" + ], + "controller_summary_note": "The unchanged supplier summary retains the historical controller=15 field; the actual completed ASYNC-AUDIT lists25 distinct rejected controls. Original source and receipts are unchanged; this evidence reports the actual list.", + "controls": { + "admission": 139, + "bit": 12, + "controller": 25, + "geometry": 6, + "independent_owner": 8 + }, + "files": { + "DERIVATION.json": "fe23026d1947a24511a950cc66b01dcbdb753fa662cc503052b9dabe3ba0c951", + "OUTER-LEDGER.json": "f0bd022cdb122bb0b4415f115d6b599c40c98ebb19f91d5596633e59a87067a5" + }, + "gain": "895823817340000000000099999999999000000000000099999999999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "gain_over_latest": "817340000000000000000099999000000000000000000099999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "inherited_supplier_summary_controls": { + "admission": 139, + "bit": 12, + "controller": 15, + "geometry": 6, + "independent_owner": 8 + }, + "kappa": "1729737950064278551242895823817339999999999999999999998999999999999999999999999/1000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "latest": "17297379500642785512428958229999999999999999999998999999999999999999999999/10000000000000000000000000000000000000000000000000000000000000000000000000000", + "previous": "17297379500642785512419999999999999999999998999999999999999999999999/10000000000000000000000000000000000000000000000000000000000000000000000", + "projection_scope": "Terminal status, exact point and manifest projected from authentic completed receipts; machine timing omitted. Original bytes remain unchanged privately and are SHA256-bound. Registered replay checks finite evidence; reproduce.py performs the full changed release.", + "release_sha256": "fad6f99c358f8291a6a86ea10225cf04c3480b5e58dcb2d8e6419e24200412ac", + "status": "PASS_T740_SIX_SKIP_PRECISION35_COMPLETE_RELEASE" +} diff --git a/research/t740-six-skip-precision35/reproduce.py b/research/t740-six-skip-precision35/reproduce.py new file mode 100644 index 0000000000..53c766d887 --- /dev/null +++ b/research/t740-six-skip-precision35/reproduce.py @@ -0,0 +1,194 @@ +"""Source-bound precision refinement; complete baseline and changed release are mandatory. + +Credit Nick Petalas/PR3054, dcharb78/PR3042 and the retained native/outer lineage. +Substantial OpenAI Codex assistance. Apache-2.0.""" + +import ast +import hashlib +import importlib.util +import json +import os +import subprocess +import sys +from fractions import Fraction as Q +from pathlib import Path +import argparse + +P = Path(__file__).resolve().parent +ROOT = P.parents[1] +parser = argparse.ArgumentParser(description=__doc__) +parser.add_argument("--baseline-work", type=Path, required=True) +parser.add_argument("--work", type=Path, required=True) +a = parser.parse_args() +BASELINE = a.baseline_work.resolve() +WORK = a.work.resolve() +PKG = ROOT / "research/rank7-t740-carrier-skips" + + +def need(ok, msg): + if not ok: + raise ValueError(msg) + + +def read(p): + return json.loads(p.read_bytes()) + + +def sha(p): + return hashlib.sha256(p.read_bytes()).hexdigest() + + +def save(p, x): + p.write_text(json.dumps(x, indent=2, sort_keys=True) + "\n") + + +def load(p, name): + spec = importlib.util.spec_from_file_location(name, p) + m = importlib.util.module_from_spec(spec) + spec.loader.exec_module(m) + return m + + +need(os.name == "posix" and not sys.flags.optimize, "POSIX and assertions required") +need(not WORK.is_relative_to(P), "replay workspace outside published package") +binding = load(P / "verify.py", "refinement_source_binding") +binding.authenticate() +sys.path.insert(0, str(PKG)) +m = load(PKG / "reproduce.py", "credited_3054_reproduce") +r = read(BASELINE / "RESULT.json") +stages = read(BASELINE / "STAGES.json") +need( + r["status"] == "PASS_T740_SIX_SKIP_COMPLETE_RELEASE", "mandatory completed baseline" +) +for s in stages: + need( + s["exit_code"] == 0 + and sha(BASELINE / (s["stage"] + ".log")) == s["log_sha256"], + "baseline stage and exact log", + ) +need( + m.check_release(BASELINE, BASELINE / "pr3042", r["fill_sha256"], stages) == r, + "full source-bound baseline rederived", +) +need(not WORK.exists(), "fresh refinement work") +WORK.mkdir() +recipe = read(BASELINE / "RECIPE.json")["commands"] +derive = [c.copy() for n, c in recipe if n == "derive-closed-adapters"] +need(len(derive) == 1, "one unchanged adapter derivation") +c = derive[0] +need( + c == binding.expected_command("derive-closed-adapters", BASELINE, sys.executable), + "exact source-pinned derivation command; only workspace/interpreter paths relocate", +) +c[c.index("--out") + 1] = str(WORK / "adapters-original") +subprocess.run(c, check=True) +original = BASELINE / "run/adapters/admit_extension.py" +reference = WORK / "adapters-original/admit_extension.py" +need( + reference.read_bytes() == original.read_bytes(), + "fresh original adapter derivation equality", +) +body = reference.read_text() +edits = read(P / "PRECISION-EDITS.json") +edits = [x for x in edits if not x["old"].startswith(("COMPARISONS = {", "choices="))] +need(len(edits) == 7, "only declared precision and matching outer-gap changes") +for e in edits: + need(body.count(e["old"]) == 1, "one exact precision preimage: " + e["old"]) + body = body.replace(e["old"], e["new"]) + + +def checks(t): + tree = ast.parse(t) + return sum(isinstance(x, ast.Assert) for x in ast.walk(tree)), sum( + isinstance(x, ast.Call) and isinstance(x.func, ast.Name) and x.func.id == "need" + for x in ast.walk(tree) + ) + + +need( + checks(body) == checks(reference.read_text()), + "all assertion and explicit check counts retained", +) +adapter = WORK / "admit_precision35.py" +adapter.write_text(body) +save( + WORK / "DERIVATION.json", + dict( + reference_sha256=sha(reference), + candidate_sha256=sha(adapter), + replacements=edits, + ), +) +command = [c.copy() for n, c in recipe if n == "complete-admission"] +need(len(command) == 1, "one complete admission command") +command = command[0] +need( + command == binding.expected_command("complete-admission", BASELINE, sys.executable), + "exact source-pinned complete admission command", +) +command[:3] = [sys.executable, "-B", str(adapter)] +command[command.index("--work") + 1] = str(WORK / "candidate") +sys.path.insert(0, str(P)) +nom = load(P / "verify.py", "refinement_arithmetic").calculate() +need(Q(r["kappa"]) == Q(nom["previous"]), "exact current comparison point") +env = dict( + os.environ, + PYTHONDONTWRITEBYTECODE="1", + PYTHONINTMAXSTRDIGITS="0", + OPENBLAS_NUM_THREADS="1", + OMP_NUM_THREADS="1", +) +for k in ( + "PYTHONOPTIMIZE", + "PYTHONPATH", + "WITNESS_SPEC", + "WITNESS_RECORD", + "WITNESS_DISCOVER", +): + env.pop(k, None) +print("START_FULL_PRECISION35_ADMISSION", flush=True) +with (WORK / "complete-admission.log").open("w") as log: + subprocess.run(command, check=True, env=env, stdout=log, stderr=subprocess.STDOUT) +a = read(WORK / "candidate/RESULT.json") +release = read(WORK / "candidate/release/RELEASE-RECEIPT.json") +need( + a["status"] == "PASS_REPLICA_ORDER_FILL_DERIVATIVE_COMPLETE_RELEASE" + and release["status"] == "PASS_RELEASE", + "complete actual candidate release", +) +need( + Q(a["kappa"]) == Q(nom["kappa"]) == Q(release["kappa_decimal"]) > Q(r["kappa"]) and Q(a["kappa"]) > Q(nom["latest"]), + "actual exact improved released point", +) +for k in ( + "profile", + "fill_sha256", + "order_sha256", + "dispatch_sha256", + "source_manifest_sha256", + "native_receipt_sha256", +): + need( + a[k] == read(BASELINE / "run/candidate/RESULT.json")[k], + "unchanged physical/source/native input " + k, + ) +need( + a["release_receipt_sha256"] == sha(WORK / "candidate/release/RELEASE-RECEIPT.json"), + "actual terminal receipt hash", +) +save( + WORK / "RESULT.json", + dict( + status="PASS_T740_SIX_SKIP_PRECISION35_COMPLETE_RELEASE", + kappa=a["kappa"], + previous=r["kappa"], + gain=str(Q(a["kappa"]) - Q(r["kappa"])), + latest=nom["latest"], + gain_over_latest=str(Q(a["kappa"]) - Q(nom["latest"])), + baseline_complete=True, + candidate_complete=True, + admission_sha256=sha(WORK / "candidate/RESULT.json"), + release_sha256=sha(WORK / "candidate/release/RELEASE-RECEIPT.json"), + ), +) +print("PASS_T740_SIX_SKIP_PRECISION35_COMPLETE_RELEASE", a["kappa"], flush=True) diff --git a/research/t740-six-skip-precision35/requirements-full.txt b/research/t740-six-skip-precision35/requirements-full.txt new file mode 100644 index 0000000000..1c940743f4 --- /dev/null +++ b/research/t740-six-skip-precision35/requirements-full.txt @@ -0,0 +1,5 @@ +numpy==1.26.4 +scipy==1.15.3 +sympy==1.14.0 +mpmath==1.3.0 +gmpy2==2.3.2 diff --git a/research/t740-six-skip-precision35/seal.py b/research/t740-six-skip-precision35/seal.py new file mode 100644 index 0000000000..427d5ca152 --- /dev/null +++ b/research/t740-six-skip-precision35/seal.py @@ -0,0 +1,151 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Derive privacy-preserving evidence only from completed authenticated replays. + +Terminal projections omit machine timing; original receipts remain unchanged +in the external workspace and are committed to by their exact SHA256 digests. +Substantial OpenAI Codex assistance. Apache-2.0. +""" + +import argparse +import shutil +import sys + +import verify as v + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--baseline-work", type=v.Path, required=True) + parser.add_argument("--work", type=v.Path, required=True) + a = parser.parse_args() + baseline, work = a.baseline_work.resolve(), a.work.resolve() + v.authenticate() + sys.path.insert(0, str(v.ROOT / "research/rank7-t740-carrier-skips")) + original = v.load( + v.ROOT / "research/rank7-t740-carrier-skips/reproduce.py", + "credited_baseline_seal", + ) + result = v.read(baseline / "RESULT.json") + stages = v.read(baseline / "STAGES.json") + for stage in stages: + v.need( + stage["exit_code"] == 0 + and v.sha(baseline / (stage["stage"] + ".log")) == stage["log_sha256"], + "authentic completed baseline stage", + ) + v.need( + original.check_release( + baseline, baseline / "pr3042", result["fill_sha256"], stages + ) + == result, + "completed baseline fully rederived", + ) + checked = v.read(work / "RESULT.json") + v.completion(checked) + v.need( + v.sha(work / "candidate/RESULT.json") == checked["admission_sha256"] + and v.sha(work / "candidate/release/RELEASE-RECEIPT.json") + == checked["release_sha256"], + "completed refinement result authenticates actual admission and terminal receipt", + ) + derivation = v.read(work / "DERIVATION.json") + v.need( + derivation["replacements"] == v.read(v.P / "PRECISION-EDITS.json") + and derivation["reference_sha256"] + == v.sha(baseline / "run/adapters/admit_extension.py") + and derivation["candidate_sha256"] == v.sha(work / "admit_precision35.py"), + "exact declared source derivation", + ) + arithmetic = v.calculate() + for key in ("kappa", "previous", "gain", "latest", "gain_over_latest"): + v.need(v.Q(checked[key]) == v.Q(arithmetic[key]), "exact completed refinement") + evidence = dict(checked) + for key, directory in ( + ("baseline", baseline / "run/candidate"), + ("candidate", work / "candidate"), + ): + admission = v.read(directory / "RESULT.json") + receipt_path = directory / "release/RELEASE-RECEIPT.json" + receipt = v.read(receipt_path) + v.need( + admission["status"] + == "PASS_REPLICA_ORDER_FILL_DERIVATIVE_COMPLETE_RELEASE", + "actual complete admission", + ) + v.need( + admission["release_receipt_sha256"] == v.sha(receipt_path) + and admission["package_manifest_sha256"] == receipt["manifest_sha256"], + "actual terminal receipt and admitted manifest", + ) + for stage in admission["stages"]: + v.need( + stage["exit_code"] == 0 + and v.sha(directory / (stage["name"] + ".log")) == stage["log_sha256"], + "all actual admission stages and logs", + ) + evidence[key + "_release_projection"] = { + field: receipt[field] + for field in ("status", "kappa_decimal", "manifest_sha256") + } + evidence[key + "_terminal_receipt_sha256"] = v.sha(receipt_path) + evidence[key + "_admission_sha256"] = v.sha(directory / "RESULT.json") + evidence[key + "_package_manifest_sha256"] = admission[ + "package_manifest_sha256" + ] + evidence[key + "_native_receipt_sha256"] = admission["native_receipt_sha256"] + if "checkpoint_scope" in admission: + evidence[key + "_checkpoint_scope"] = admission["checkpoint_scope"] + controls = v.read(work / "candidate/release/verify/RESULT.json") + audit = v.read( + work / "candidate/release/verify/strict/global/audit/ASYNC-AUDIT.json" + ) + v.need( + audit["status"] + == "PASS_INDEPENDENT_ASYNC_WHOLE_OWNER_CONTROLLER_PHASES_AND_SPECTATORS" + and audit["mutation_controls_run"] is True, + "actual complete controller mutation audit", + ) + names = audit["mutations_rejected"] + v.need(len(names) == len(set(names)) == 25, "all25 actual controller controls") + baseline_audit = v.read( + baseline / "run/candidate/release/verify/strict/global/audit/ASYNC-AUDIT.json" + ) + expected_names = v.read( + v.ROOT / "research/rank7-t740-carrier-skips/evidence/ASYNC-AUDIT.json" + )["mutations_rejected"] + v.need( + baseline_audit["mutations_rejected"] == names == expected_names, + "both completed releases retain every named original controller control", + ) + evidence["inherited_supplier_summary_controls"] = controls["controls"] + evidence["controller_controls"] = names + evidence["controls"] = dict(controls["controls"], controller=len(names)) + evidence["controller_summary_note"] = ( + "The unchanged supplier summary retains the historical controller=15 field; " + "the actual completed ASYNC-AUDIT lists25 distinct rejected controls. " + "Original source and receipts are unchanged; this evidence reports the actual list." + ) + evidence["projection_scope"] = ( + "Terminal status, exact point and manifest projected from authentic completed receipts; " + "machine timing omitted. Original bytes remain unchanged privately and are SHA256-bound. " + "Registered replay checks finite evidence; reproduce.py performs the full changed release." + ) + out = v.P / "evidence" + v.need(not out.exists(), "fresh evidence output") + out.mkdir() + for source, name in ( + (work / "candidate/package/outer/LEDGER.json", "OUTER-LEDGER.json"), + (work / "DERIVATION.json", "DERIVATION.json"), + ): + shutil.copyfile(source, out / name) + evidence["files"] = {p.name: v.sha(p) for p in out.iterdir()} + (out / "VALIDATION.json").write_text( + v.json.dumps(evidence, indent=2, sort_keys=True) + "\n" + ) + v.run() + print("PASS_SEALED_COMPLETE_REFINEMENT") + + +if __name__ == "__main__": + main() diff --git a/research/t740-six-skip-precision35/test_verify.py b/research/t740-six-skip-precision35/test_verify.py new file mode 100644 index 0000000000..d699e1e2fb --- /dev/null +++ b/research/t740-six-skip-precision35/test_verify.py @@ -0,0 +1,107 @@ +"""Reject incomplete releases and damaged actual outer evidence. + +Substantial OpenAI Codex assistance. Apache-2.0. +""" + +import copy +import os +import subprocess +import sys +import tempfile +import unittest + +import verify as v + + +class EvidenceControls(unittest.TestCase): + @unittest.skipUnless(os.name == "posix", "full replay uses POSIX process cleanup") + def test_cli_refuses_preflight_baseline(self): + with tempfile.TemporaryDirectory() as directory: + root = v.Path(directory) + baseline = root / "baseline" + baseline.mkdir() + (baseline / "RESULT.json").write_text( + v.json.dumps({"status": "PREFLIGHT_ONLY_NOT_A_RELEASE"}) + ) + (baseline / "STAGES.json").write_text("[]") + output = root / "candidate" + result = subprocess.run( + [ + sys.executable, + "-B", + str(v.P / "reproduce.py"), + "--baseline-work", + str(baseline), + "--work", + str(output), + ], + capture_output=True, + text=True, + timeout=30, + ) + self.assertNotEqual(result.returncode, 0) + self.assertIn("mandatory completed baseline", result.stderr) + self.assertFalse(output.exists()) + + def test_original_source_derivation(self): + baseline, candidate = v.expected_adapter_hashes() + valid = dict( + reference_sha256=baseline, + candidate_sha256=candidate, + replacements=v.read(v.P / "PRECISION-EDITS.json"), + ) + v.check_derivation(valid) + for key in ("reference_sha256", "candidate_sha256"): + with self.subTest(key=key), self.assertRaises(ValueError): + v.check_derivation(dict(valid, **{key: "0" * 64})) + + def test_outer_b_gap_tracks_endpoint_precision(self): + edits = v.read(v.P / "PRECISION-EDITS.json") + v.check_outer_gap_edit(edits) + broken = [dict(e) for e in edits] + gap = next(e for e in broken if e["old"].startswith("dict(b=str(")) + gap["new"] = gap["new"].replace("10**115", "10**110") + with self.assertRaises(ValueError): + v.check_outer_gap_edit(broken) + broken = [dict(e) for e in edits] + kappa = next(e for e in broken if e["old"].startswith("kappa == C-Q(")) + kappa["new"] = kappa["new"].replace("10**81", "10**76") + with self.assertRaises(ValueError): + v.check_outer_gap_edit(broken) + + def test_incomplete_releases(self): + valid = dict( + baseline_complete=True, + candidate_complete=True, + status="PASS_T740_SIX_SKIP_PRECISION35_COMPLETE_RELEASE", + ) + v.completion(valid) + for key in ("baseline_complete", "candidate_complete"): + for value in (False, 1, "true"): + with self.subTest(key=key, value=value): + bad = dict(valid, **{key: value}) + with self.assertRaises(ValueError): + v.completion(bad) + with self.assertRaises(ValueError): + v.completion(dict(valid, status="PREFLIGHT_ONLY_NOT_A_RELEASE")) + + def test_actual_outer_mutants(self): + path = v.ROOT / "research/rank7-t740-carrier-skips/evidence/OUTER-LEDGER.json" + actual = v.read(path) + point = actual["rows"]["struct_boundary_radix_union"]["kappa"]["rational"] + v.check_ledger(actual, point) + with self.assertRaises(ValueError): + v.check_ledger(actual, v.Q(point) + v.Q(1, 10**35)) + zero = copy.deepcopy(actual) + checks = zero["rows"]["struct_boundary_radix_union"]["strict_checks"] + checks[next(iter(checks))]["rational"] = "0" + with self.assertRaises(ValueError): + v.check_ledger(zero, point) + missing = copy.deepcopy(actual) + missing["rejecting_controls"]["struct_boundary_radix_union"].popitem() + with self.assertRaises(ValueError): + v.check_ledger(missing, point) + + +if __name__ == "__main__": + unittest.main() diff --git a/research/t740-six-skip-precision35/verify.py b/research/t740-six-skip-precision35/verify.py new file mode 100644 index 0000000000..aacdb0bf17 --- /dev/null +++ b/research/t740-six-skip-precision35/verify.py @@ -0,0 +1,258 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +"""Exact arithmetic refinement; finite receipt checks do not rerun native chains. + +Credit the PR3054/3042 construction and both retained rational engines. +Substantial OpenAI Codex assistance. No independent arithmetic invention claimed. +""" + +import hashlib +import importlib.util +import json +import ast +from fractions import Fraction as Q +from pathlib import Path +from pathlib import PurePosixPath + +P = Path(__file__).resolve().parent +ROOT = P.parents[1] +PROFILE = { + 1: 16376940, + 2: 4741920, + 3: 1594737, + 4: 719280, + 5: 137085, + 8: 53280, + 48: 281903, +} + + +def need(ok, msg): + if not ok: + raise ValueError(msg) + + +def read(p): + return json.loads(p.read_bytes()) + + +def sha(p): + return hashlib.sha256(p.read_bytes()).hexdigest() + + +def load(p, name): + spec = importlib.util.spec_from_file_location(name, p) + m = importlib.util.module_from_spec(spec) + spec.loader.exec_module(m) + return m + + +def authenticate(): + for r in read(P / "SOURCES.json")["files"]: + if r["usage"] == "input": + need(sha(ROOT / r["path"]) == r["sha256"], "source drift: " + r["path"]) + + +def check_outer_gap_edit(edits=None): + edits = read(P / "PRECISION-EDITS.json") if edits is None else edits + precision = next(e for e in edits if e["old"].startswith("PRECISION = dict(")) + assignment = ast.parse(precision["new"]).body[0] + digits = { + keyword.arg: ast.literal_eval(keyword.value) + for keyword in assignment.value.keywords + }["endpoint_digits"] + gap_power = digits + 80 # same R0 exponent used by outer/check_ledger.py + gap = next(e for e in edits if e["old"].startswith("dict(b=str(")) + claim = next(e for e in edits if e["old"].startswith("b='certified complex_lower")) + need(f"10**{gap_power}" in gap["new"], "B gap must match the outer R0 exponent") + need(f"1e-{gap_power}" in claim["new"], "outer claim text must name the exact B gap") + kappa = next(e for e in edits if e["old"].startswith("kappa == C-Q(")) + need( + f"10**{digits + 46}" in kappa["new"] + and f"10**{digits + 22}" in kappa["new"], + "fixed-grid kappa slacks must follow endpoint precision", + ) + + +def calculate(): + authenticate() + check_outer_gap_edit() + root = load(ROOT / "research/rank7-joint-endframes/tools/root.py", "credited_root") + other = load( + ROOT / "research/two-sided-helper-extraction/tools/audit_moment.py", + "credited_other", + ) + lo, hi = root.kappa_from_profile(PROFILE, 740, digits=45) + c = Q((lo * 10**35).__floor__(), 10**35) + k = c - Q(1, 10**57) - Q(1, 10**81) + old = Q( + read(ROOT / "research/rank7-t740-carrier-skips/evidence/ADMISSION-RESULT.json")[ + "kappa" + ] + ) + latest = Q("0.001729737950064278551242895823") - Q(1, 10**52) - Q(1, 10**76) + need(k > old and k > latest and c <= lo < hi < c + Q(1, 10**35), "strict gain over PR3054 and PR3115; 35-digit root bracket") + need(sum(r * n for r, n in PROFILE.items()) == 65088 * 740, "complete rank mass") + for engine in (root, other): + need(engine.moment(PROFILE, c, 896 * 740)[1] < 1, "accepted endpoint") + need( + engine.moment(PROFILE, c + Q(1, 10**35), 896 * 740)[0] > 1, + "next grid rejected", + ) + for rank in (1, 48): + bad = dict(PROFILE) + bad[rank] += 1 + need(engine.moment(bad, c, 896 * 740)[0] > 1, "unpaid child rejected") + return { + key: str(v) + for key, v in dict( + kappa=k, + previous=old, + gain=k - old, + latest=latest, + gain_over_latest=k-latest, + complex_lower=c, + root_lower=lo, + root_upper=hi, + ).items() + } + + +def completion(e): + need( + e["baseline_complete"] is True and e["candidate_complete"] is True, + "both actual complete releases required", + ) + need( + e["status"] == "PASS_T740_SIX_SKIP_PRECISION35_COMPLETE_RELEASE", + "complete refinement", + ) + + +def expected_adapter_hashes(): + original = ROOT / "research/two-sided-helper-extraction/tools/admit_channel408.py" + record = read( + ROOT / "research/rank7-t740-carrier-skips/evidence/ADAPTER-DERIVATION.json" + ) + inherited = record["changes"]["admit_extension.py"] + need(sha(original) == inherited["before_sha256"], "original strict source adapter") + body = original.read_text() + for edit in inherited["replacements"]: + need(body.count(edit["old"]) == 1, "inherited exact source preimage") + body = body.replace(edit["old"], edit["new"]) + baseline = hashlib.sha256(body.encode()).hexdigest() + need( + baseline == inherited["after_sha256"], + "complete published adapter reconstructed", + ) + for edit in read(P / "PRECISION-EDITS.json"): + need(body.count(edit["old"]) == 1, "exact precision source preimage") + body = body.replace(edit["old"], edit["new"]) + return baseline, hashlib.sha256(body.encode()).hexdigest() + + +def check_derivation(data): + baseline, candidate = expected_adapter_hashes() + need( + data["reference_sha256"] == baseline and data["candidate_sha256"] == candidate, + "exact complete source derivation hashes", + ) + need( + data["replacements"] == read(P / "PRECISION-EDITS.json"), + "exact seven declared precision/outer-gap/selector changes", + ) + + +def expected_command(stage, baseline, python): + recipe = read(ROOT / "research/rank7-t740-carrier-skips/evidence/RECIPE.json")[ + "commands" + ] + derive = [command for name, command in recipe if name == "derive-closed-adapters"] + selected = [command for name, command in recipe if name == stage] + need(len(derive) == len(selected) == 1, "unique source-pinned recipe stage") + prefix = str(PurePosixPath(derive[0][2]).parents[2]) + command = [arg.replace(prefix + "/", str(baseline) + "/") for arg in selected[0]] + command[0] = python + return command + + +def check_evidence(e, arithmetic): + completion(e) + for k in ("kappa", "previous", "gain", "latest", "gain_over_latest"): + need(Q(e[k]) == Q(arithmetic[k]), "exact evidence " + k) + need( + e["controls"] + == dict(admission=139, bit=12, controller=25, independent_owner=8, geometry=6), + "all actual inherited release controls", + ) + need( + len(e["controller_controls"]) == len(set(e["controller_controls"])) == 25, + "all25 actual controller rejections, not the inherited summary count", + ) + expected_controls = read( + ROOT / "research/rank7-t740-carrier-skips/evidence/ASYNC-AUDIT.json" + )["mutations_rejected"] + need( + e["controller_controls"] == expected_controls, + "every named original controller control retained", + ) + need( + e["inherited_supplier_summary_controls"] + == dict(admission=139, bit=12, controller=15, independent_owner=8, geometry=6), + "disclosed unchanged inherited supplier summary", + ) + for key, point in ( + ("baseline", arithmetic["previous"]), + ("candidate", arithmetic["kappa"]), + ): + projection = e[key + "_release_projection"] + need( + projection["status"] == "PASS_RELEASE" + and Q(projection["kappa_decimal"]) == Q(point), + "actual complete terminal projection: " + key, + ) + need( + projection["manifest_sha256"] == e[key + "_package_manifest_sha256"], + "actual admitted manifest: " + key, + ) + need( + e["baseline_native_receipt_sha256"] == e["candidate_native_receipt_sha256"], + "same authenticated unchanged native receipt", + ) + + +def check_ledger(ledger, kappa): + row = ledger["rows"]["struct_boundary_radix_union"] + need(Q(row["kappa"]["rational"]) == Q(kappa), "actual outer point") + need( + len(row["strict_checks"]) == 63 + and all(Q(v["rational"]) > 0 for v in row["strict_checks"].values()), + "all63 strict rows", + ) + bad = ledger["rejecting_controls"]["struct_boundary_radix_union"] + need( + len(bad) == 17 + and all( + v and all(Q(x["rational"]) <= 0 for x in v.values()) for v in bad.values() + ), + "all17 original outer controls", + ) + + +def run(): + arithmetic = calculate() + e = read(P / "evidence/VALIDATION.json") + check_evidence(e, arithmetic) + need( + set(e["files"]) == {"OUTER-LEDGER.json", "DERIVATION.json"}, + "complete declared evidence inventory", + ) + for name, h in e["files"].items(): + need(sha(P / "evidence" / name) == h, "evidence digest " + name) + check_derivation(read(P / "evidence/DERIVATION.json")) + check_ledger(read(P / "evidence/OUTER-LEDGER.json"), arithmetic["kappa"]) + print("PASS_T740_SIX_SKIP_PRECISION35", arithmetic["gain"]) + + +if __name__ == "__main__": + run()