Repository navigation
Research: independent replay of the PR2972 stock margin table with tie-out and sensitivity facts (no new kappa) - #4094
Open
petalas wants to merge 1 commit into
Conversation
…-out and sensitivity facts Separate integer-arithmetic implementation (no fractions module, no import of the audited code) reproduces all 24 published margin/room integers for both bootstrap branches from the pinned receipt, adds stage-ordering, cross-branch dominance, floor-split residual, headroom/guard and null-coefficient facts, an exact common_saving == 1 - gaps/stock tie-out on the frozen bytes, and a measured sensitivity envelope (stable at one denominator unit, later-stage margins move at 1e10 units). Stock coefficient stays unresolved; no kappa, supplier or frontier change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
research/stock-margin-tieout-independent/: an independently implemented replay of the stopped-range margin table published in PR #2972 (research/stock-margin-chain), plus structural facts that #2972 does not assert. The replay uses a separate integer-arithmetic path — its own exact-rational parser and floor division, nofractionsmodule and no import of the audited code — and recomputes all 24 published integers (12 marginsfloor(s*L_j - L_{j-1})and 12 routing roomsfloor((1-s)*L_{j-1}), native and conservative branches, stages 2–7) from the frozen receiptresearch/selected-bootstrap-stock-audit/RESULT.json, SHA-256-pinned tof0bd4f22…(the same bytes #2972 audits).Arithmetic scope, stated up front: no kappa, supplier, tariff, certificate, frozen-input or selected-frontier change. The stock coefficient remains unresolved (counted: 14/14 null
actual_stock_coefficientfields). This is a finite independent certificate of recorded arithmetic plus receipt tie-outs, not a producer replay or a multiplication theorem.What is established (exact evidence)
python3 -B research/stock-margin-tieout-independent/verify.pyprints one line:2851485324488315,1015784602045963452130).r_j = floor(s*(L_j-L_{j-1})) - (margin_j + room_j)equals 1 at 7 of 12 stages (valid range{0,1}); recordedstock_headroom_log2strictly increases per stage with minimum6562783in both branches; the guardceil(log2(8*8194)) = 17, recomputed by integer search without floats, covers the minimum.common_saving == 1 - gaps/stockexactly (unreduced rational) in both branches, verified directly on the frozen bytes. Audit: stock-margin chain closes for the remaining cutoff pairs (no new kappa) #2972 reads onlygaps/stock; the earlier stock audit enforces this only via full regeneration from producer sources.Not established
m=73supplier treatment.Reproduction
From the repository root with CPython 3.12 (
-B):python3 -B research/stock-margin-tieout-independent/verify.py python3 -B research/stock-margin-chain/verify.py # predecessor cross-check, same bytes python3 -B scripts/research_package.py --package research/stock-margin-tieout-independent python3 -B scripts/check_research_commit.py --package research/stock-margin-tieout-independent --check-source-historyAll four commands were run locally with CPython 3.12 before submission and pass; the registered VERIFY check runs in well under a second.
scripts/research_baseline.pywas not run locally: this submission was prepared in a cone-mode sparse checkout and the baseline script requires the selected record's package roots to be materialized; it checks the environment's selected-record bindings, not this package, whose own checks all ran. No mathematical obligation of this package is left unrun.Related open work
verify.pyreproduces the same 24 integers through its own code path; the shared min margin2851485324488315and receipt hashf0bd4f22…agree numerically with this package.Produced by Nick Petalas with AI assistance. Independent human and formal proof-kernel review are unclaimed. Predecessor attribution follows PR #2972 and the retained stock-audit lineage.
CI status
CI certifies the registered replay on this head:
planpass (1m59s) andreplay (research/stock-margin-tieout-independent)pass (1m3s), Actions run 39300698715, head fd58efb. Interpreter in CI is the repository-configured 3.12. No failing jobs on this PR.