Repository navigation
Portability tooling: checked cpp_int stand-in runs the selected replay's only native step (bit589 step 4) without Boost, matching the committed Boost receipts (no new kappa) - #1509
Conversation
…without Boost (no new kappa) The selected cold replay's only native step (bit589 tune/verify.sh step 4) needs Boost cpp_int, the one dependency pip cannot install. Add an opt-in, exact-or-refuse __int128 stand-in for exactly the subset the three cohort checkers use, and a registered package that runs the pinned step-4 block verbatim with BOOST_INCLUDE at the stand-in and requires the committed Boost-built receipts, checker-side rejections, an over-range refusal and a seeded differential test. No pinned file changes. Seed 92, portable-replay (refined). Prepared with substantial Anthropic Claude assistance.
|
Batch review at Merged to Reviewed scope: Opt-in checked signed-128 native adapter rejects overflow and unsupported operations, with exact differential controls and unchanged selected-bit step-four fixture output. Production Boost default stays intact; this is a bounded verifier acceleration, not arbitrary-precision replacement. The pinned scoped command passed; the batch ledger contains its command, input hashes, environment and log. This incorporates the research/tooling contribution and does not change the selected κ or discharge the inherited multiplication-theorem assumptions. Batch review, attribution and evidence. Thank you for the contribution. |
Exact-head retention and overlap facts for #1101, #1108, #1142, #1151, #1277, #1361, #1509 and #1646 against main 1f7a934, with a stdlib checker. #1142 fails on current main (stale selected-record pin) and re-adds an earlier copy of #1108's package (add/add conflict). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change and mathematical scope
Portability tooling. No new κ, and no change to any construction,
certificate, selected record, pinned file or
upstream/. One new registeredpackage,
research/bit589-checked-cpp-int-seed92/.Problem. The selected
make frontier1094-verifyreaches bit589'stune/verify.sh. Its non-pip dependency is Boost, which pip cannot install. Itis used only by step 4, which compiles the three official cohort checkers
(
legality_h,columns_h,columns_k). Those checkers are the only nativecode in the selected chain, and their only Boost use is
boost::multiprecision::cpp_int.Without Boost headers, step 4 stops at
'boost/multiprecision/cpp_int.hpp' file not found, so the selected reproducecommand cannot complete.
verify.shalready readsBOOST_INCLUDE, and the1094 → 1042 → 799 → 741 drivers pass the environment through.
Stand-in.
include/boost/multiprecision/cpp_int.hppis about 100 lines:__int128.checked before any narrowing, and non-decimal stream formatting is refused. A
value outside [−2¹²⁷, 2¹²⁷) aborts with a message. Nothing ever wraps, so a
completed run computed exactly Boost's integers.
range.
BOOST_INCLUDE=$PWD/research/bit589-checked-cpp-int-seed92/include make frontier1094-verify.Real Boost stays the default and the reference.
Scope. The pip dependencies (numpy, sympy, scipy) remain. MSVC is not
supported. Other repository
cpp_intusers that need division orgcdfail tocompile against the stand-in rather than run with different semantics. This
certifies equal finite checker results, not the multiplication theorem.
Task and overlap
bce54fb3; none of the 25 inputs changed on main upto
ef5f3940. Seed 92 → verification engineering, cardportable-replay,scope refined: the repair is an environment dependency, not a payload
comparison.
it the strongest portability blocker on the selected chain not covered by
open work.
find_overlap.py, found only PRs that use Boost. Nothing replaces it. Tooling: overlap bit589 and complex741 in the #741 ancestry replay, 17% (50% with --complex-jobs 3) less wall time (no new kappa) #1101only schedules bit589 alongside complex741. The precedent is the skeleton's
own
portable-include/bits/stdc++.h.Validation
What
verify.pychecks (about 7 s, standard library plus bash and a C++17compiler):
including
adapt.py's nine anchored parent files,relax.pyandprime_witnesses.py. A probe compiled withverify.sh's own-Iorderconfirms the stand-in is the compiled header.
verify.shpreamble, its step-3adapt.pycommand and its whole step-4 block run underbash. The composedtext is hash-pinned. So every original assertion runs:
omitted-bridge controls and the KPAIRS = 2 regression pass;
research/community-frontier741-audit/bit589.log.columns_k4.jsonequals the committed Boost receipt exceptsecondsanda path. That includes the payload bound
9528119495320518471870892800.by the stand-in.
stand-in refuses instead of wrapping.
±2¹²⁷, shifts ending at 2¹²⁷, zero shifted far, 2⁶⁴ multiples and shared
high words.
bound. The coverage counts are pinned.
Results.
PASS_BIT589_STEP4_CHECKED_CPP_INT_STANDINon Apple clang 21 / Python3.12.15 and on GCC 16.2 / Python 3.14.8.
research_package.pyreplay passes from a fresh worktree.reports.
mutants.pyrejects 16 of 17 header mutants. The accepted one is equivalent:the negative-value shift guard is redundant after the count check.
Not run.
--boost-include, which reruns step 4 against real Boost: this host has noBoost.
make frontier1094-verifywith the stand-in: this host lackssympy and scipy. That is open question 1.
Pinned
verify.shand path spaces. The pinnedverify.shexpands pathsunquoted, so checkout paths must not contain spaces.
verify.pychecks thisexplicitly.
Registration note. The package compiles C++ in the generic package hook,
although the guide routes native builds to a dedicated workflow. That is
deliberate:
g++andbash;If maintainers prefer the rule, the command can move to its own workflow (like
e8-bit-p111-tuned.yml) withVERIFY.jsonkept for metadata.Pre-PR review. Three lenses reviewed the package: exactness, verifier
soundness, and claims/CI. Their fixes are included:
now returns zero. 64-bit counts were narrowed before checking; they are now
checked first.
previously surviving mutants are now killed.
mutants.pywas added.Credit
κ = 9.95656966441037e-4: #370's E8 bit word in the nine-stage bridged word with #377's nine-stage complex E8 (above 2^-10; +2.94 % over #380) #381
columns_k.also wrote the Bit c = 0.001733052823: #545's punctured unit on the R420 skeleton (111 live ports, +4.79% over #543) #555 supplier.
AI disclosure: prepared by Sagar Thakrar with substantial Anthropic Claude
assistance, including explorer, judge and skeptic subagents. New work is
Apache-2.0.
Open next questions
make frontier1094-verifypass with the stand-in on ahost that has the pip dependencies but no Boost?
libboost-dev, comparing itsreceipts with a Boost run.
tune/verify.shquote its path expansions?rehash.
Workflow feedback (optional)
The package generator and
--check-onlyworked well. Friction points:adapt.py's anchoredparents and an
importlib-loaded helper were easy to miss.has no lightweight path for a seconds-long compile using only the runner's
preinstalled toolchain.