Repository navigation
Add P104 designer toolkit v2: exact pricing and legality, #6030 rebuild with fold/hoist/retain, generators, sub-circuit tools (no kappa claim) - #6170
Open
DreamingOfClouds wants to merge 1 commit into
Conversation
…ild + fold/hoist/retain, generators, sub-circuit tools, floor LPs) Packages the P104 designer toolkit as research/p104-designer-toolkit-v2 (the frozen research/p104-designer-toolkit is untouched). No kappa claim and no new word: exact pricing and legality oracle, verifier-profile adoption, the CrocSwap#6030 rebuild pipeline with the fold/hoist/retain constructor passes (reaches the exact kappa of CrocSwap#6143, CrocSwap#6144 and CrocSwap#6167), gen2/gen3 generators, sub-circuit extract/splice/re-solve tools, bulk evaluation, the floor LPs and the theory and lemma write-ups. VERIFY.json replays tests/regress.py --fast and the retain test on Python 3.12 with numpy, scipy and sympy. Prepared by DreamingOfClouds with Claude Opus 5.5 (Anthropic), via Claude Code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Description
What this is
research/p104-designer-toolkit-v2packages the designer tooling behind the recent P104 frontier line as one command,tk, with a regression suite. It claims no kappa and no new word. The frozen predecessorresearch/p104-designer-toolkitis untouched; this package supersedes it (same exact-pricing core, plus everything below). Placement follows the repository convention (research/<slug>withREADME.md,TASK.json,SOURCES.json,VERIFY.json); it is registered throughVERIFY.json.What the toolkit does
tk pricegives the exact invoice and Decimal-50 crossing of a word with side constraints and budgets;tk checklists every legality violation localised to rule, event and register role (fast oracle, exact on the checked rules);tk acceptruns the PR's ownprice.runwith cached native pairs;tk adoptderives a verifier profile from a PR head (profiles/*.json, with the PR's ownlocal.py/pricing.pykept unmodified).tk rebuild WORD [--sides skeleton,routing,hubs,markets,signal] [--post fold,hoist,retain]re-derives the skeleton, Y routing, hubs, markets and signal events of Conditional κ .003125804 (+5.22e-7 over #5907): remove helper 470's frame-593 rung, the twin of #5907's removal #6030 from pinned rule builders (alignbuild/), each step accepted only at exact kappa (never-lose).--post fold,hoist,retainthen applies the constructor passes behind [Superseded by #6144] Conditional κ .003127137 (+1.333e-6 over #6030): owned registers 770 and 771 descend through the frames of helpers 705 and 706, which no longer relay them #6143/Conditional κ .003128386 (+2.582e-6 over #6030): owned registers 770, 771 and 772 descend through the frames of helpers 705, 706 and 731, which no longer relay them; helper 732 reads 771 at frame 117 #6144 (R-FOLD shadow-relay fold, H-HOIST gauge stop drop) and Conditional κ = 0.003128645 (+2.59e-7 over #6144): retain an operand to remove a root stop #6167 (R-RETAIN retained-operand stop drop). From a clean clone,tk rebuild 6030 --post fold,hoist,retainruns in about 11 minutes (rebuild 2 min, fold 9 min for 3 accepted sites, hoist and retain under 1 s) and ends at kappa .003128652015904059, the exact kappa of Conditional κ = 0.003128645 (+2.59e-7 over #6144): retain an operand to remove a root stop #6167. The intermediate kappas are .003127144482523 after the second fold site (= [Superseded by #6144] Conditional κ .003127137 (+1.333e-6 over #6030): owned registers 770 and 771 descend through the frames of helpers 705 and 706, which no longer relay them #6143), .003128393203271 afterfold,hoist(= Conditional κ .003128386 (+2.582e-6 over #6030): owned registers 770, 771 and 772 descend through the frames of helpers 705, 706 and 731, which no longer relay them; helper 732 reads 771 at frame 117 #6144) and .003128652015904 afterretain(= Conditional κ = 0.003128645 (+2.59e-7 over #6144): retain an operand to remove a root stop #6167).retainapplied to the shipped Conditional κ .003128386 (+2.582e-6 over #6030): owned registers 770, 771 and 772 descend through the frames of helpers 705, 706 and 731, which no longer relay them; helper 732 reads 771 at frame 117 #6144 word reproduces Conditional κ = 0.003128645 (+2.59e-7 over #6144): retain an operand to remove a root stop #6167's program bit for bit (tests/retain_test.py).tk gen2(markets, Y-route, late stages, never-lose stage pipelinegenpipe2.py),tk gen3(gen2 plus primgen, signal and retain stages,genpipe3.py),tk synth/tk gensearch/tk genpipe(spec-space generators and searches).subcirc/(implementation-free I/O specs of the market columns of Conditional κ .003125804 (+5.22e-7 over #5907): remove helper 470's frame-593 rung, the twin of #5907's removal #6030, variant library),surgery/(extract and splice of octet columns with a bit-exact round trip and SPAN5/JR validation),tk anatomy,tk bulk(whole-corpus table),tk shipcheck.retime,evretime,reorder,reframe), hand-off, helper-split, primitive-basis and macro screens, mined windows, and a C++ SA kernel (k2/).infra/floors_true.py,model3.py,linwt.py,rigidity.py, withP104-THEORY.md(structure of the frontier word and the floor arguments) andP104-LEMMAS.md(what is proved, refuted and conditional, gaps listed).How to run it
README.mdhas the quickstart and per-command notes;MAP.mdthe command reference and module map. Heavy commands run synchronously by default;TK_HQ=/path/to/wrapperroutes them through an optional job queue.Evidence
scripts/research_package.py --package research/p104-designer-toolkit-v2replaysVERIFY.json(tests/regress.py --fastplustests/retain_test.py) on Python 3.12 with numpy 2.2.6, scipy 1.14.1 and sympy 1.13.3 (the generic CI pins):PASS_REGISTERED_RESEARCH_PACKAGE;--check-onlyandcheck_research_commit.py --check-modespass;tests/test_research_*.py(702 tests) pass.--fast: 33 checks, 0 failed (exact kappa of PR5545/5551/5553/5561/5561s/5907/5827, native replay equality, localised legality mutants, screens executed on Improve conditional κ to 0.00310676333 with a four-gate contact rewrite #5660, shipcheck, surgery round trip on Conditional κ .003125804 (+5.22e-7 over #5907): remove helper 470's frame-593 rung, the twin of #5907's removal #6030, rebuild skeleton+hubs mini chain at exact kappa).--quick: 104 checks, 0 failed on a cleangit archiveexport of the final commit (Python 3.12, numpy 2.2.6, scipy 1.14.1, sympy 1.13.3, mpmath 1.3.0; no networkx, no ortools, no private inputs; the SKIP lines above apply). It additionally runs admit, incr/nincr, prims/macros/ctxmine, generators (FRONTGEN, MAINHUB, HUBGEN), accept of the adopted profiles, surgery and bulk tests.tk rebuild 6030 --sides skeleton,hubs: 37/37 steps at exact kappa .003125811557911897 (about 1 minute).Honest scope and limitations
retain).rebuild, surgery and anatomy carry Conditional κ .003125804 (+5.22e-7 over #5907): remove helper 470's frame-593 rung, the twin of #5907's removal #6030's register/frame numbering (alignbuild/data/); other words must share it or bring their own manifest. Steps that do not solve are logged GAP and skipped (one such step in the Conditional κ .003125804 (+5.22e-7 over #5907): remove helper 470's frame-593 rung, the twin of #5907's removal #6030 chain).tk gen(S4GEN trees),planbuild/plan.pyandbuild.py(plan-search model trees; shipped as source only),hops --recomb, the BIT-side drivers that need adopted BIT packages, and the k2 engine tests that need unshipped nets (k2unify_test,k2levers_testprint SKIP).tk adoptneeds network access.leverbank_test/genpipe2_testneednetworkx, which generic CI lacks (they print SKIP there; the gen2 generators themselves need it). The CP-SAT legs needortools(--solver).alignbuild/api.py,rebuild.py,alignbuild/hoist.py,alignbuild/fold.py.TK_WORK(default: the package directory, git-ignored); a few tests that depended on private inputs were gated or rewritten (framegap uses a synthetic bad word, the speed test threshold counts the failing pairs a fresh cache has); helper modules that lived outside the toolkit were copied in (alignbuild/fold.py,iob2.py,foldcensus.py,subcirc/pdata.py,surgery/cen.py,surgery/s5lib.py,ledger.py). Unmodified swarm verifier sources are byte-pinned inSOURCES.json.Credits
Built on the swarm's published work: the #6030 lineage (#6030, #6143, #6144) whose constructor steps
fold/hoistreproduce; #5907 and #5827 (profile words and tests); #6167 (aliromman), whose retained-operand stop drop isretain; #6163 (petalas) and #6166 (Matarener); and the earlier P104 line (#5545, #5551, #5553, #5561, #5599, #5612, #5660) whose verifiers are vendored unmodified. Their headers and licenses are kept.Open next questions
planbuild/be packaged soplan.py/build.pyrun from a fresh clone? First step: list the modules they import and vendor the minimal closure.fold(about 3 minutes per accepted site) be made fast enough for generic CI to replay Conditional κ .003125804 (+5.22e-7 over #5907): remove helper 470's frame-593 rung, the twin of #5907's removal #6030 -> Conditional κ .003128386 (+2.582e-6 over #6030): owned registers 770, 771 and 772 descend through the frames of helpers 705, 706 and 731, which no longer relay them; helper 732 reads 771 at frame 117 #6144 end to end? First step: profilealignbuild/iob2.pyon one site and cache the rule matrices.tk retime 5551 --free startsagainsttk diff.Prepared by DreamingOfClouds with Claude Opus 5.5 (Anthropic), via Claude Code.
🤖 Generated with Claude Code