diff --git a/research/shared-crossing-cut9047-20261025/HANDOFF.md b/research/shared-crossing-cut9047-20261025/HANDOFF.md new file mode 100644 index 0000000000..d6253df351 --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/HANDOFF.md @@ -0,0 +1,40 @@ +Research discussion / PR / artifact: +This package: shared-crossing-cut9047-20261025. Scoped original-prefix +verification/proof result; no kappa claim. The PR conversation is the canonical +submission/status record; a hub pointer can link it without duplicating proof. + +Exact commit: +Base 32890bc5de034ab8fc93ac88ead7279a6a416d04; exact native blob/SHA pins in +SOURCES.json. The publication commit is the commit containing this package. +Conceptual #5472 reference head f560065151f924838a80ac720fb4c55c6ffc0201 is credited, +but no pending-head code is imported or required by replay. + +What is established: +Actual same-version reads9045/9047; exact coframed inventory L19/L300/L301; +pure e300/e301 outside its rational span even with independent successors; +explicit null-input/separating witnesses; retained-anchor intersection frame21. +Complete normal/O evidence and portable replay are supplied. The split target +credit is unadmitted for this rejected original-cut premise. + +What remains uncertain: +Changed prefixes/helper bases, other cuts/anchors, operator-valued ordinary +recoding and larger words; caller-domain admissibility; protected suffixes, +owned returns, phases/raw duals, owned relations and full economic/funding +admission. No actual paid/target gain, new kappa ceiling or selected update. + +Smallest useful next task: +After overlap review, specify one literal earlier prefix/basis change or relocated +anchor recipe, its admissible input domain, all target/cost consequences and a +bounded falsifier. Do not rerun unchanged scalar purification at this cut. + +Reproduction command and expected runtime: +From repository root: python3 -B scripts/research_package.py --package +research/shared-crossing-cut9047-20261025. Python3.12/stdlib, registered150-second +timeout; typically seconds. Expected PASS_SHARED_CROSSING_CUT9047_SCALAR_OBSTRUCTION. +The direct portable command and exact historical evidence are in README.md and +REVIEW.md; no full caller/phase/compiler replay is claimed. + +Predecessor credit: +Cao Yifan, zxv, GamingPuzzled/Joel Pulikkan, Cinna Davis, Matarener, aliromman, +Dillon Amburgey, Clear1nsight/Chris R and the retained native/provider/controller +lineage. Substantial OpenAI Codex assistance; Apache-2.0 for new material. diff --git a/research/shared-crossing-cut9047-20261025/PROOF.md b/research/shared-crossing-cut9047-20261025/PROOF.md new file mode 100644 index 0000000000..38395686d9 --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/PROOF.md @@ -0,0 +1,62 @@ +# Original-prefix shared-crossing obstruction (no new kappa) + +Indices are zero-based in the forward program pinned in SOURCES.json. This is +an exact normalized native-row argument; full phase/raw-dual/caller admission +is not asserted. + +## Actual pair and candidate + +Events9045/9047 let L300/L301 read the same historical L19 value at frame21, +basis[273], without an intervening L19 writer. The first later writer is9060; +the9060--9063 swap makes later L19 distinct. The proposed joint handoff retires +the original helpers as pure original coordinates and transfers suffix roles +to two fresh arbitrary independent successors. It uses an actual pair, not a +duplicated baseline. Earlier holder rewrites in a larger word remain unprovided. + +## Exact available rows and witnesses + +Replay all632 persistent columns plus the arbitrary owned entry through9047. +The only coframed owners are L19,L300,L301, with normalized rows D,R300,R301. + +| Row | e300 | e505 | e301 | e226 | +| --- | ---: | ---: | ---: | ---: | +| D |0 |0 |0 |0 | +| R300 |1 |1/4 |0 |0 | +| R301 |0 |0 |1 |-1 | + +Other columns are fully retained in expected/RESULT.json. These four inputs +all start at frame0 and have empty emitted warp words. + +The functionals l300=[e300]-4[e505] and l301=[e301]+[e226] annihilate every +available row but equal1 on their required targets e300/e301. Neither target +belongs to that rational span. Equivalently, variations(L300=u,L505=-4u) +and(L301=u,L226=u), holding other inputs fixed, preserve every available row +but change the respective pure target byu. + +Independent fresh successors cannot enlarge the original-only span: old rows +contain neither fresh column, so a combination producing an original-only +target has zero coefficient on each successor basis row. Zero scratch adds no +span. Exact ranks are3 versus4 after adjoining either target; with successors, +5 versus6. A span pass would only be necessary, not a reversible recipe; COPY +is restricted to owned scratch, not arbitrary persistent copying. + +## Retained-anchor restriction + +The three retained anchor spans are423={0,102,273,375},430={0,85,273,324}, +419={0,51,273,290}. Their intersection is{0,273}=frame21. No larger common +ascending first-window frame exists under those fixed-anchor assumptions. +Moving or replacing the anchors is a different untested design. + +## Scope and economics + +This rejects rational-scalar purification of the ORIGINAL UNMODIFIED prefix +at cut9047/frame21, even with every actual coframed field, two independent +successors and zero scratch. It does not rule out changed prefixes/helper bases, +other cuts/anchors, operator-valued ordinary recoding, new transports or larger +shared words. The witnesses use the original unrestricted input domain; their +admissibility under another caller's owned/input restrictions was not checked. + +The tentative2H1+2H8-2H9 credit is unadmitted for this premise. No complete +changed ledger, kappa ceiling or funded kappa is established. Protected suffix, +owned returns, raw dual, phases, changed owned relations, ordinary/precision/ +stock/tape costs, compiler and outer transfer remain open for any new word. diff --git a/research/shared-crossing-cut9047-20261025/README.md b/research/shared-crossing-cut9047-20261025/README.md new file mode 100644 index 0000000000..72dc3ef594 --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/README.md @@ -0,0 +1,99 @@ +# Reject original-cut scalar purification for a shared helper crossing + +**Scoped feasibility result; no new physical word, paid-profile gain or kappa.** + +This package proposes one joint hand-off for the actual L19/L300/L301 slice of +the #4610 word and rejects immediate purification at original forward cut 9047, +frame 21. L300 and L301 read the same L19 version at events 9045 and 9047. The +complete coframed inventory is only those three owners. Their actual helper +rows contain foreign independent inputs; neither required pure original helper +coordinate is in the available rational scalar span, even with two independent +successors and zero scratch. + +The exact witnesses are `(L300=u,L505=-4u)` and `(L301=u,L226=u)`, holding other +inputs fixed: every available row is unchanged while the respective required +pure output changes by u. [PROOF.md](PROOF.md) gives the coefficient table, +successor projection argument and retained-anchor restriction. The independent +checker and complete exact output are [cut9047.py](cut9047.py) and +[expected/RESULT.json](expected/RESULT.json). + +## Source and scope + +Base: `32890bc5de034ab8fc93ac88ead7279a6a416d04`. The live native word and its +Git blob/SHA-256 pins are in [SOURCES.json](SOURCES.json). Catalogue and selected +record pins are historical provenance. The task is a **changed, negative scope** +under `complex-new-helper-inventory`, assigned directly by the user. The original +card's positive complete-supplier acceptance gate is not claimed satisfied; +[TASK.json](TASK.json) retains its exact card and explains the connection. + +This is a fixed-original-prefix normalized native-row result, with rational +scalar recoding at one cut. Earlier prefix rewrites, new helper bases, other +cuts/anchors, operator-valued ordinary recoding and larger words are not tested. +The input witnesses must not be transferred to another caller's restricted or +owned input domain without checking admissibility there. A complete physical +phase/raw-dual/caller/compiler/outer result is not supplied. The proposed +`2H1+2H8-2H9` split receives no credit for this rejected local premise. + +Nearest predecessors: [#5472](https://github.com/CrocSwap/integer-mult-bounds/pull/5472) +(successor hand-off and local re-flag neutrality), +[#5541](https://github.com/CrocSwap/integer-mult-bounds/pull/5541) (actual-word +balanced-J verification with coded-main restrictions), and the native/owned +relation lineage below. Unlike a padded toy example, the tested pair and dirty +input mixtures are taken from the actual word. This result is not a universal +obstruction to genuine shared re-flagging. + +## Reproduce + +Python 3.12, standard library only, from the repository root: + +```sh +python3 -B scripts/research_package.py --package research/shared-crossing-cut9047-20261025 --check-only +python3 -B scripts/research_package.py --package research/shared-crossing-cut9047-20261025 +``` + +Direct source-export replay also works when the pinned native input is present: + +```sh +python3 -B research/shared-crossing-cut9047-20261025/verify.py +``` + +Expected marker: `PASS_SHARED_CROSSING_CUT9047_SCALAR_OBSTRUCTION`. +The registered command has a 150-second timeout and invokes serial normal and +optimized checker subprocesses, each capped at 65 seconds. It compares their +complete bytes to the frozen exact result with zero scientific exclusions, +checks source/core hashes, the paper separators, input charts and anchor sets. +No source evaluator is imported. The child checkers use `-I -B` and import only +the Python standard library; no project bytecode dependency is used. + +The original guarded pair took 0.906 seconds at 81.0625 MiB sampled peak RSS; +portable/hosted runtime is environment-dependent. [REVIEW.md](REVIEW.md) +distinguishes that historical run, independent agent review and admission. +The seven declared core controls include clean/poison span cases, independent +successors, wrong version, omitted pre-subtraction and dirty successor. The +duplicate-owner control is a synthetic distinct-label sanity check, not a +complete target-admission replay. No full changed candidate exists to replay. + +## Open next questions + +The structured questions in [TASK.json](TASK.json) name their relevance, first +step and blockers. A later design must either specify an earlier prefix/basis +rewrite that removes these witnesses, or relocate the anchors with a complete +transport/restoration bill. Neither is supplied here. Repeating this same cut +with more scalar coefficients or samples cannot evade the exact span result. +All research stopped after the one qualification result; this package starts +no new search or automatic continuation. + +## Credit + +Cao Yifan: #4610 native word. zxv: productive helpers and native semantics. +GamingPuzzled/Joel Pulikkan: #5472 hand-off and re-flag analysis. Cinna Davis: +scalar semantics/compression. Matarener: scoped boundary work. aliromman: +#5383 owned relations and later audits. Dillon Amburgey and Clear1nsight/Chris R: +provider/completion and #5413 caller lineage. Retain the further source authors +credited in those packages. + +Prepared by Chris R (Clear1nsight) with substantial OpenAI Codex assistance: +GPT-6-astra/xhigh paper design; GPT-6.1-sol/high event extraction, independent +checker/physical and invoice review, source custody and guarded execution. +Agent independence is not independent human or formal theorem admission. +New material is Apache-2.0; the native input is not copied or modified. diff --git a/research/shared-crossing-cut9047-20261025/REVIEW.md b/research/shared-crossing-cut9047-20261025/REVIEW.md new file mode 100644 index 0000000000..36a2342deb --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/REVIEW.md @@ -0,0 +1,35 @@ +# Evidence and independent-review boundary + +The designer proposed one actual-pair simultaneous hand-off. A separate physical +reviewer authored cut9047.py independently, with no predecessor evaluator import. +A sole executor ran the frozen checker in normal/optimized modes through the +existing serialized guard. The designer, physical reviewer and independent +invoice reviewer separately inspected the simple separating witnesses. + +Historical checker SHA-256: +`f5c45a13239ea521140920c016e2436195580f78112a45240adaba314041cd12`. +Complete scientific output SHA-256: +`70a30ac467a8d9a2b15e54d88b519258ef5bfff98fed11832a208c31c4fd0c81`. +Both exact files are retained in this package. The original two modes had +identical complete stdout, empty stderr and parsed JSON, seven declared controls, +41 unchanged pinned local inputs, 0.906-second guard time and 81.0625 MiB sampled +peak. There was no failed scientific attempt. Original workstation paths and +internal coordination records are not necessary public replay inputs and are +not included. + +The portable wrapper verifies the same source/core/output hashes, serial mode +outputs and paper witnesses. Packaging replay and hosted CI are separate from +the historical receipt; actual publication/CI status belongs in the PR. No CI +success is asserted by this evidence note. + +Normal/optimized equality is a reproducibility control, not a second independent +implementation. Independent agent reasoning/checker authorship is not human +acceptance. The result is an exact fixed-prefix normalized-row qualification; +absolute phases, raw inverse transpose, a new word, full caller, compiler/outer +funding and selected-frontier promotion were not established. + +The pre-execution interpretation was limited to the ORIGINAL prefix. Negative +span does not reject an earlier holder rewrite changing those rows. Neither +the row result nor anchor restriction proves a new kappa ceiling. Another +caller's restricted/owned input domain requires a separate witness-admissibility +argument. See PROOF.md for the full exclusions. diff --git a/research/shared-crossing-cut9047-20261025/SOURCES.json b/research/shared-crossing-cut9047-20261025/SOURCES.json new file mode 100644 index 0000000000..9905885987 --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/SOURCES.json @@ -0,0 +1,24 @@ +{ + "schema_version": 1, + "base_commit": "32890bc5de034ab8fc93ac88ead7279a6a416d04", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "fc3d4ba105e1f097d0d7d051a308281e86ab1446", + "sha256": "66974efdced4083c00025f97d95d83909a226cdf801edb9301c195c6641f6903" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "f126dd2e2dad2b669e75d1d0d0bd05c600725602", + "sha256": "f7a48bfa2659b88378282a8eee7d9fe52cdf505594124c4d1686b58510fffd72" + }, + { + "path": "research/kappa-round3-warp-20261022/ACTUAL-WORD.json.gz", + "usage": "input", + "git_blob": "46d929df83817b85a5387bcdb9745e0627d6366e", + "sha256": "7679daa4ec6a40f56fc7f0202379a6f454310e94945aba4f48beaaaafb838d05" + } + ] +} diff --git a/research/shared-crossing-cut9047-20261025/TASK.json b/research/shared-crossing-cut9047-20261025/TASK.json new file mode 100644 index 0000000000..305fbbf116 --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/TASK.json @@ -0,0 +1,73 @@ +{ + "schema_version": 1, + "task_id": "complex-new-helper-inventory", + "priority_revision": 7, + "base_commit": "32890bc5de034ab8fc93ac88ead7279a6a416d04", + "original_card": { + "id": "complex-new-helper-inventory", + "question": "Can a new local cost interface change the deficit-to-recursive-cost ratio beyond current packing?", + "starting_points": [ + "docs/research/research-family-status.md", + "research/complex-local-word-ceiling/README.md", + "research/heterogeneous-owner-assembly/README.md", + "certificates/selected-result.json", + "research/selected-k8-unrestricted-ends/README.md" + ], + "methods": [ + "Propose a changed helper inventory and derive an optimistic exact moment.", + "Design a small completed instance and independently verify its endpoint and rank bill." + ], + "acceptance_gate": "A new physically realizable contract outside the frozen catalogue whose per-call profile, screened with ceiling.ceiling(), beats the selected word's packing ceiling; a lower cap does not establish identical circuitry or order attainable optima, and is insufficient to pass the stronger-budget target under this model. A scoped local result may be retained without a complete supplier. Expanding it into further construction rounds requires the family-level budget and obligation gate in research-family-status.md; an optimistic passing relaxation alone is not acceptance.", + "first_step": { + "command": [ + "python3", + "-B", + "research/complex-local-word-ceiling/verify.py" + ], + "expected": "PASS_COMPLEX_LOCAL_WORD_CEILING", + "inspect": "Read the selected word's per-call local profile, its packing ceiling and the lever table; run levers.py for the ideal budget of the lever you target.", + "scope": "Positive control and planning budget only; this is not a new construction or full cold replay." + }, + "first_experiment": "Before any synthesis, write the candidate per-call local profile (and centre charge / unpaid coordinates if changed) and screen it with ceiling.ceiling(); reject it if even the ideal ceiling does not beat the selected word's by your stated margin.", + "bottleneck_link": "Packing of the selected word is capped at +0.87% (ceiling model); only a lower local excess spend or a changed coverage law raises the cap.", + "allowed_variations": [ + "Narrow to one changed boundary or helper type with explicit counts.", + "If the coverage law, template or guard changes, derive an applicable fully charged replacement bound instead of applying the incumbent ceiling outside its scope." + ], + "scope_change_triggers": [ + "Mixing only providers already inside the pinned catalogue.", + "Only changing helper terminal subspaces and monotone frames within the fixed scalar word, entrances and cleanup contract already covered by #1995/#2013.", + "Continuing a partial cost improvement while leaving the same unpriced consumer, restoration or central-readout obligation unresolved; refresh the family expansion decision first. Local product-retiming evidence has a narrow scope and is not a ban on changed graphs or contracts." + ], + "overlap_terms": [ + "helper inventory", + "heterogeneous-owner", + "mutable leaver" + ] + }, + "scope_status": "changed", + "actual_scope": "User-assigned original-design feasibility: actual L19/L300/L301 shared-crossing paper candidate; exact original-prefix cut9047/frame21 rational scalar recovery and retained-anchor restriction. No successful profile or kappa claim.", + "scope_change_reason": "A narrow negative feasibility result for a proposed helper-inventory change, rather than the original card positive complete-supplier acceptance gate; explicit user assignment takes precedence over task selection.", + "bottleneck_link": "A shared crossing cannot earn split productive targets unless independent original helper coordinates can be legally purified and all consumers restored. This result closes one actual cut premise, leaving changed prefixes open.", + "budget_minutes": 60, + "stop_rule": "One actual pair, one frozen normal/optimized qualification request, then stop and re-evaluate; no replacement candidate or larger search.", + "outcome": "negative-result", + "evidence": "PROOF.md; unchanged independent cut9047.py; expected/RESULT.json; portable verify.py; REVIEW.md; HANDOFF.md", + "author": "Chris R (Clear1nsight), with OpenAI Codex assistance", + "ai_assistance": "Substantial OpenAI Codex assistance: GPT-6-astra/xhigh paper design; GPT-6.1-sol/high extraction, independently authored checker and physical/invoice review, source custody and guarded execution. Agent independence is not independent human or formal theorem admission.", + "open_questions": [ + { + "question": "Can a literal earlier prefix rewrite or helper basis change remove the witnesses while preserving all required outputs?", + "why_it_matters": "Original-cut scalar purification fails; a new profile improvement must change an excluded premise.", + "first_step": "Specify exact changed prefix events, admissible input domain, target ownership, costs and one bounded falsifier.", + "blocked_by": "No such word, full caller/domain transfer or owned-relation proof supplied." + }, + { + "question": "Can relocated anchors support a shared frame without consuming the split gain?", + "why_it_matters": "The retained anchors intersect only at the existing frame.", + "first_step": "Name alternative anchors, historical deadlines and literal paid transport/restoration.", + "blocked_by": "New geometry, sharing, full costs and protected endpoints unproved." + } + ], + "original_card_acceptance_gate_met": false +} diff --git a/research/shared-crossing-cut9047-20261025/VERIFY.json b/research/shared-crossing-cut9047-20261025/VERIFY.json new file mode 100644 index 0000000000..63f92a9516 --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/VERIFY.json @@ -0,0 +1,20 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/kappa-round3-warp-20261022/ACTUAL-WORD.json.gz" + ], + "commands": [ + { + "argv": [ + "{python}", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 150, + "checks": "Unchanged independent prefix checker normal/O; complete expected output equality; source/checker pins; declared controls; paper separators/input charts and retained-anchor intersection. No phase/rawdual/caller/funding admission." + } + ] +} diff --git a/research/shared-crossing-cut9047-20261025/cut9047.py b/research/shared-crossing-cut9047-20261025/cut9047.py new file mode 100644 index 0000000000..05afd402ef --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/cut9047.py @@ -0,0 +1,248 @@ +#!/usr/bin/env python3 +"""One independent fixed-cut scalar-span qualification, no physical admission. + +Reads frozen source as data; imports no predecessor/source evaluator. E alone +executes this scientific checker under the root-pinned guarded request. +Apache-2.0. Substantial OpenAI Codex assistance; native-word credit Cao Yifan, +literal semantics zxv and Cinna Davis; handoff credit GamingPuzzled/Joel Pulikkan. +""" +import argparse +from collections import Counter +from fractions import Fraction as Q +import gzip +import hashlib +import json +from pathlib import Path + +SOURCE_SHA = "7679daa4ec6a40f56fc7f0202379a6f454310e94945aba4f48beaaaafb838d05" +DISCOVERY_SHA = "426a14360ea500b900bb4e13d6b292c781ffe0f1b54845d5776ce0b4b507f0cb" +CUT = 9047 +FRAME = 21 + + +def require(ok, message): + if not ok: + raise ValueError(message) + + +def ident(name): + return {(name, ()): Q(1)} + + +def plus(row, source, coefficient=Q(1)): + out = dict(row) + for key, value in source.items(): + value = out.get(key, Q(0)) + coefficient * value + if value: + out[key] = value + else: + out.pop(key, None) + return out + + +def scale(row, coefficient): + require(coefficient != 0, "nonzero reversible scale") + return {key: value * coefficient for key, value in row.items()} + + +def space(basis): + points = {0} + for vector in basis: + points |= {x ^ vector for x in tuple(points)} + require(len(points) == 2 ** len(basis), "independent ordered frame basis") + return frozenset(points) + + +def serial(row): + return [{"input": key[0], "warp_word": list(key[1]), + "numerator": value.numerator, "denominator": value.denominator} + for key, value in sorted(row.items())] + + +def rref_rows(rows): + """Sparse rational echelon basis over (independent input, free word) keys.""" + basis = [] + for original in rows: + row = dict(original) + for pivot, vector in basis: + if pivot in row: + row = plus(row, vector, -row[pivot]) + if row: + pivot = min(row) + vector = scale(row, 1 / row[pivot]) + # Keep pivots ordered and eliminate new pivot from earlier vectors. + basis = [(oldpivot, plus(oldvector, vector, -oldvector.get(pivot, Q(0)))) + for oldpivot, oldvector in basis] + basis.append((pivot, vector)) + basis.sort(key=lambda item: item[0]) + return basis + + +def membership(rows, target): + basis = rref_rows(rows) + residual = dict(target) + for pivot, vector in basis: + if pivot in residual: + residual = plus(residual, vector, -residual[pivot]) + return {"member": not residual, "span_rank": len(basis), + "augmented_rank": len(basis) + bool(residual), + "pivots": [{"input": p[0], "warp_word": list(p[1])} for p, _ in basis], + "exact_reduced_basis": [serial(vector) for _, vector in basis], + "exact_residual": serial(residual)} + + +def event_apply(event, rows, current, spaces, dimensions, index): + kind = event[0] + if kind == "scalar": + gate, frame = event[1:] + action, target = gate[0], tuple(gate[1]) + if action == "clear": + require(target[0] == "C", f"owned-only clear at {index}") + rows[target], current[target] = {}, frame + return + require(current[target] == frame, f"target chart at {index}") + if action in ("add", "copy"): + source = tuple(gate[2]) + require(current[source] == frame, f"source chart at {index}") + if action == "copy": + require(target[0] == "C" and not rows[target], f"owned-zero COPY at {index}") + rows[target] = dict(rows[source]) + else: + require(source != target, f"distinct ADD owners at {index}") + rows[target] = plus(rows[target], rows[source], Q(gate[3], gate[4])) + else: + require(action == "scale", f"known scalar at {index}") + rows[target] = scale(rows[target], Q(gate[2], gate[3])) + elif kind in ("climb", "center"): + if kind == "climb": + _, part, owner, old, new, rank = event + role = ("L", owner) + require(spaces[old] < spaces[new], f"ascending borrowed climb at {index}") + else: + _, owner, old, new, rank = event + role = ("C", owner) + require(spaces[old] < spaces[new] or spaces[new] < spaces[old], f"nested center at {index}") + require(current[role] == old, f"paid source chart at {index}") + require(rank == abs(dimensions[new] - dimensions[old]), f"paid rank at {index}") + current[role] = new + elif kind == "warp": + _, owner, symbol, old, new = event + role = tuple(owner) + require(current[role] == old, f"warp source chart at {index}") + out = {} + for (variable, word), coefficient in rows[role].items(): + word2 = word[1:] if word and word[0] == -symbol else (symbol,) + word + key = (variable, word2) + out[key] = out.get(key, Q(0)) + coefficient + rows[role] = {key: value for key, value in out.items() if value} + current[role] = new + else: + require(kind in ("phase", "adapter", "residual_adapter"), f"known marker at {index}") + + +def controls(): + d, e1, e2, s1, s2, z, c = [ident(x) for x in ("D", "h1", "h2", "s1", "s2", "z", "c")] + clean = [d, plus(e1, d), plus(e2, d), s1, s2] + require(membership(clean, e1)["member"] and membership(clean, e2)["member"], "clean positive span control") + # The successors' own arbitrary inputs are required positive columns. + require(plus(clean[1], d, -1) == e1 and plus(clean[2], d, -1) == e2, "clean cancellation control") + loaded1, loaded2 = plus(s1, d), plus(s2, d) + require(plus(loaded1, d, -1) == s1 and plus(loaded2, d, -1) == s2, "independent successor positive endpoint") + poisoned = [d, plus(e1, d), plus(plus(e2, d), z), s1, s2] + require(not membership(poisoned, e2)["member"], "poison negative span control") + require(plus(clean[2], plus(d, z), -1) != e2, "wrong-version residual control") + correct_consumer = plus(plus(c, s2, -1), loaded2) + require(correct_consumer == plus(c, d), "clean consumer positive control") + require(plus(c, loaded2) != plus(c, d), "omitted presubtraction control") + require(len(set(("s1", "s1"))) != 2 and len(set(("s1", "s2"))) == 2, "duplicate target inventory control") + require(plus(plus(loaded2, z), d, -1) != s2, "dirty successor endpoint control") + return {name: "PASS" for name in ("clean_positive_span", "independent_arbitrary_successors", "poison_negative_span", "wrong_version", "omitted_presubtraction", "duplicate_target_owner", "dirty_successor")} + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--source", required=True) + args = parser.parse_args() + path = Path(args.source) + raw = path.read_bytes() + require(hashlib.sha256(raw).hexdigest() == SOURCE_SHA, "frozen source compressed SHA256") + decoded = gzip.decompress(raw) + document = json.loads(decoded) + require(document["discovery_word_sha256"] == DISCOVERY_SHA, "frozen source discovery metadata") + canonical, program = document["canonical"], document["programs"]["forward"] + require(canonical["h"] == 9 and canonical["v"] == 112 and len(canonical["start"]) == 632, "frozen domain") + require(program[CUT] == ["scalar", ["add", ["L",301], ["L",19], 1,1], FRAME], "exact cut event") + spaces = [space(basis) for basis in canonical["frames"]] + dimensions = [len(basis) for basis in canonical["frames"]] + rows = {("L", owner): ident(f"L{owner}") for owner in range(632)} + current = {("L", owner): frame for owner, frame in enumerate(canonical["start"])} + rows["C", 0], current["C", 0] = ident("C0"), None + # Discover every owned entry touched by this prefix. Each begins arbitrary. + for event in program[:CUT + 1]: + if event[0] == "scalar": + gate = event[1] + for value in gate[1:]: + if isinstance(value, list) and value[0] == "C": + role = tuple(value) + rows.setdefault(role, ident(f"C{role[1]}")) + current.setdefault(role, None) + elif event[0] == "center": + role = ("C", event[1]) + rows.setdefault(role, ident(f"C{role[1]}")) + current.setdefault(role, None) + entry_count = len(rows) + kinds = Counter() + for index, event in enumerate(program[:CUT + 1]): + event_apply(event, rows, current, spaces, dimensions, index) + kinds[event[0]] += 1 + selected = [rows["L", owner] for owner in (19, 300, 301)] + require(all(current["L", owner] == FRAME for owner in (19, 300, 301)), "three selected cut frames") + extended = selected + [ident("s300"), ident("s301")] + span3 = {str(owner): membership(selected, ident(f"L{owner}")) for owner in (300, 301)} + span5 = {str(owner): membership(extended, ident(f"L{owner}")) for owner in (300, 301)} + require(all(span3[str(i)]["member"] == span5[str(i)]["member"] for i in (300, 301)), "independent successors cannot hide missing original column") + coframed_roles = [role for role in sorted(rows) if current[role] == FRAME] + coframed = [rows[role] for role in coframed_roles] + span_all = {str(owner): membership(coframed, ident(f"L{owner}")) for owner in (300, 301)} + span_all_successors = {str(owner): membership(coframed + [ident("s300"), ident("s301")], ident(f"L{owner}")) for owner in (300, 301)} + require(all(span_all[str(i)]["member"] == span_all_successors[str(i)]["member"] for i in (300, 301)), "successor projection in all-coframed span") + holders = {} + for owner in (300, 301): + variable = f"L{owner}" + holders[str(owner)] = [{"owner": list(role), "frame": current[role], + "terms": serial({k: v for k, v in row.items() if k[0] == variable})} + for role, row in sorted(rows.items()) if any(k[0] == variable for k in row)] + d_old = dict(rows["L", 19]) + # This fixed sixteen-event continuation only authenticates a distinct version. + later_rows = {role: dict(row) for role, row in rows.items()} + later_frames = dict(current) + for index in range(CUT + 1, 9064): + event_apply(program[index], later_rows, later_frames, spaces, dimensions, index) + version_delta = plus(later_rows["L", 19], d_old, -1) + require(bool(version_delta), "actual distinct historical version control") + result = { + "schema": "fixed-cut-scalar-span-qualification/v1", + "scope": "necessary Q-linear recoverability at exact original forward cut9047/frame21; selected3+2 and every actually coframed owner+2; no changed cut, new operator coefficients, warp, transport, suffix, new word, inverse-transpose, phase, invoice or kappa admission", + "source_compressed_sha256": SOURCE_SHA, + "source_decompressed_sha256": hashlib.sha256(decoded).hexdigest(), + "cut_index0_inclusive": CUT, "entry_independent_column_count": entry_count, + "original_persistent_columns": 632, "new_successor_columns": ["s300", "s301"], + "prefix_event_kinds": dict(sorted(kinds.items())), + "all_coframed_owner_inventory": [list(role) for role in coframed_roles], + "selected_rows": {str(i): serial(rows["L", i]) for i in (19, 300, 301)}, + "raw_four_edit_retiring_residues": {str(i): serial(plus(plus(rows["L", i], d_old, -1), ident(f"L{i}"), -1)) for i in (300, 301)}, + "span3": span3, "span5_with_independent_successors": span5, + "span_all_coframed": span_all, "span_all_coframed_with_successors": span_all_successors, + "successor_projection_lemma": "No existing row contains s300 or s301. In any rational combination yielding an old input column, coefficients of the distinct independent successor basis rows must vanish. Optional owned zero scratch adds the zero row and cannot enlarge either span.", + "all_original_column_holders": holders, + "actual_wrong_version_control": {"old_after_event": CUT, "new_after_event": 9063, "difference_new_minus_old": serial(version_delta), "rejects_substitution": bool(version_delta)}, + "controls": controls(), + "qualification": "CUT_PREMISE_PASSES_NECESSARY_SPAN_ONLY" if all(x["member"] for x in span3.values()) else "REJECT_SCALAR_FIVE_OWNER_PURIFICATION_PREMISE", + "all_coframed_qualification": "CUT_PREMISE_PASSES_NECESSARY_SPAN_ONLY" if all(x["member"] for x in span_all.values()) else "REJECT_ALL_ACTUALLY_COFRAMED_SCALAR_PURIFICATION_AT_THIS_CUT", + "unestablished": ["arbitrary changed-cut ordinary-algebra designs", "legal realization/restoration even if span passes", "legal consumer presubtractions", "protected suffix outputs", "owned returns", "raw inverse transpose", "absolute phases", "complete profitable profile", "funded kappa"] + } + print(json.dumps(result, sort_keys=True, separators=(",", ":"))) + + +if __name__ == "__main__": + main() diff --git a/research/shared-crossing-cut9047-20261025/expected/RESULT.json b/research/shared-crossing-cut9047-20261025/expected/RESULT.json new file mode 100644 index 0000000000..ee8a91838b --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/expected/RESULT.json @@ -0,0 +1 @@ +{"actual_wrong_version_control":{"difference_new_minus_old":[{"denominator":1,"input":"L226","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L293","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":1,"warp_word":[]}],"new_after_event":9063,"old_after_event":9047,"rejects_substitution":true},"all_coframed_owner_inventory":[["L",19],["L",300],["L",301]],"all_coframed_qualification":"REJECT_ALL_ACTUALLY_COFRAMED_SCALAR_PURIFICATION_AT_THIS_CUT","all_original_column_holders":{"300":[{"frame":0,"owner":["L",113],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",118],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",122],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",123],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",125],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",128],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":137,"owner":["L",133],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",134],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",135],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",140],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",145],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",146],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":137,"owner":["L",149],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":137,"owner":["L",155],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",156],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",161],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",162],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",163],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",170],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",174],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",182],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",187],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":137,"owner":["L",190],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",193],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",194],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",198],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",199],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",202],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",203],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",205],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",220],"terms":[{"denominator":4,"input":"L300","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",221],"terms":[{"denominator":4,"input":"L300","numerator":-1,"warp_word":[]}]},{"frame":21,"owner":["L",300],"terms":[{"denominator":1,"input":"L300","numerator":1,"warp_word":[]}]}],"301":[{"frame":0,"owner":["L",127],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",141],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",142],"terms":[{"denominator":2,"input":"L301","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",154],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",165],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",171],"terms":[{"denominator":2,"input":"L301","numerator":1,"warp_word":[]}]},{"frame":0,"owner":["L",172],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",185],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",186],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",195],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",196],"terms":[{"denominator":2,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":0,"owner":["L",217],"terms":[{"denominator":2,"input":"L301","numerator":1,"warp_word":[]}]},{"frame":103,"owner":["L",289],"terms":[{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]}]},{"frame":21,"owner":["L",301],"terms":[{"denominator":1,"input":"L301","numerator":1,"warp_word":[]}]}]},"controls":{"clean_positive_span":"PASS","dirty_successor":"PASS","duplicate_target_owner":"PASS","independent_arbitrary_successors":"PASS","omitted_presubtraction":"PASS","poison_negative_span":"PASS","wrong_version":"PASS"},"cut_index0_inclusive":9047,"entry_independent_column_count":633,"new_successor_columns":["s300","s301"],"original_persistent_columns":632,"prefix_event_kinds":{"adapter":224,"climb":282,"phase":3,"scalar":8443,"warp":96},"qualification":"REJECT_SCALAR_FIVE_OWNER_PURIFICATION_PREMISE","raw_four_edit_retiring_residues":{"300":[{"denominator":2,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],"301":[{"denominator":1,"input":"L226","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L293","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":1,"warp_word":[]}]},"schema":"fixed-cut-scalar-span-qualification/v1","scope":"necessary Q-linear recoverability at exact original forward cut9047/frame21; selected3+2 and every actually coframed owner+2; no changed cut, new operator coefficients, warp, transport, suffix, new word, inverse-transpose, phase, invoice or kappa admission","selected_rows":{"19":[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],"300":[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]},{"denominator":2,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],"301":[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]},{"denominator":1,"input":"L226","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L293","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":1,"warp_word":[]}]},"source_compressed_sha256":"7679daa4ec6a40f56fc7f0202379a6f454310e94945aba4f48beaaaafb838d05","source_decompressed_sha256":"cfcd36b40326d7a5815e1db5313444379b3fb756b27d5201c561574c085cc0dd","span3":{"300":{"augmented_rank":4,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L300","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]}],"span_rank":3},"301":{"augmented_rank":4,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L301","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]}],"span_rank":3}},"span5_with_independent_successors":{"300":{"augmented_rank":6,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s300","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s301","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L300","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]},{"input":"s300","warp_word":[]},{"input":"s301","warp_word":[]}],"span_rank":5},"301":{"augmented_rank":6,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s300","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s301","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L301","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]},{"input":"s300","warp_word":[]},{"input":"s301","warp_word":[]}],"span_rank":5}},"span_all_coframed":{"300":{"augmented_rank":4,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L300","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]}],"span_rank":3},"301":{"augmented_rank":4,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L301","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]}],"span_rank":3}},"span_all_coframed_with_successors":{"300":{"augmented_rank":6,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s300","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s301","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L300","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]},{"input":"s300","warp_word":[]},{"input":"s301","warp_word":[]}],"span_rank":5},"301":{"augmented_rank":6,"exact_reduced_basis":[[{"denominator":1,"input":"L19","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L226","numerator":1,"warp_word":[]},{"denominator":2,"input":"L288","numerator":1,"warp_word":[]},{"denominator":2,"input":"L296","numerator":-1,"warp_word":[]},{"denominator":1,"input":"L300","numerator":1,"warp_word":[]},{"denominator":1,"input":"L301","numerator":-1,"warp_word":[]},{"denominator":2,"input":"L302","numerator":1,"warp_word":[]},{"denominator":1,"input":"L303","numerator":-1,"warp_word":[]},{"denominator":4,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"L293","numerator":1,"warp_word":[]},{"denominator":1,"input":"L298","numerator":-2,"warp_word":[]},{"denominator":1,"input":"L300","numerator":2,"warp_word":[]},{"denominator":2,"input":"L505","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s300","numerator":1,"warp_word":[]}],[{"denominator":1,"input":"s301","numerator":1,"warp_word":[]}]],"exact_residual":[{"denominator":1,"input":"L301","numerator":1,"warp_word":[]}],"member":false,"pivots":[{"input":"L19","warp_word":[]},{"input":"L226","warp_word":[]},{"input":"L293","warp_word":[]},{"input":"s300","warp_word":[]},{"input":"s301","warp_word":[]}],"span_rank":5}},"successor_projection_lemma":"No existing row contains s300 or s301. In any rational combination yielding an old input column, coefficients of the distinct independent successor basis rows must vanish. Optional owned zero scratch adds the zero row and cannot enlarge either span.","unestablished":["arbitrary changed-cut ordinary-algebra designs","legal realization/restoration even if span passes","legal consumer presubtractions","protected suffix outputs","owned returns","raw inverse transpose","absolute phases","complete profitable profile","funded kappa"]} diff --git a/research/shared-crossing-cut9047-20261025/verify.py b/research/shared-crossing-cut9047-20261025/verify.py new file mode 100644 index 0000000000..035d591de7 --- /dev/null +++ b/research/shared-crossing-cut9047-20261025/verify.py @@ -0,0 +1,89 @@ +#!/usr/bin/env python3 +"""Portable fixed-cut replay. Chris R/OpenAI Codex assistance; Apache-2.0.""" +from fractions import Fraction +import gzip +import hashlib +import json +from pathlib import Path +import subprocess +import sys + +PACKAGE = Path(__file__).resolve().parent +ROOT = PACKAGE.parents[1] +SOURCE_PATH = "research/kappa-round3-warp-20261022/ACTUAL-WORD.json.gz" +SOURCE_SHA = "7679daa4ec6a40f56fc7f0202379a6f454310e94945aba4f48beaaaafb838d05" +CORE_SHA = "f5c45a13239ea521140920c016e2436195580f78112a45240adaba314041cd12" +EXPECTED_SHA = "70a30ac467a8d9a2b15e54d88b519258ef5bfff98fed11832a208c31c4fd0c81" + +def require(ok, message): + if not ok: + raise ValueError(message) + +def sha(raw): + return hashlib.sha256(raw).hexdigest() + +def coefficient(row, variable): + entries = [term for term in row if term["input"] == variable] + require(all(not term["warp_word"] for term in entries), "witness empty warp words") + return sum((Fraction(t["numerator"], t["denominator"]) for t in entries), Fraction(0)) + +def span(basis): + points = {0} + for vector in basis: + points |= {point ^ vector for point in tuple(points)} + return points + +def main(): + source = ROOT / SOURCE_PATH + core = PACKAGE / "cut9047.py" + expected = (PACKAGE / "expected/RESULT.json").read_bytes() + require(sha(source.read_bytes()) == SOURCE_SHA, "live native source bytes") + require(sha(core.read_bytes()) == CORE_SHA, "unchanged independent checker bytes") + require(sha(expected) == EXPECTED_SHA, "frozen original scientific evidence bytes") + sources = json.loads((PACKAGE / "SOURCES.json").read_text()) + live = [row for row in sources["files"] if row["path"] == SOURCE_PATH] + require(len(live) == 1 and live[0]["usage"] == "input" and live[0]["sha256"] == SOURCE_SHA, + "source declaration binds live input") + outputs = [] + for flags in ([], ["-O"]): + command = [sys.executable, "-I", *flags, "-B", str(core), "--source", str(source)] + done = subprocess.run(command, cwd=ROOT, capture_output=True, timeout=65) + require(done.returncode == 0, "checker exit: " + done.stderr.decode(errors="replace")) + require(not done.stderr, "checker empty stderr") + require(done.stdout == expected, "complete replay equals frozen evidence; zero exclusions") + outputs.append(done.stdout) + require(outputs[0] == outputs[1], "complete normal/optimized equality") + result = json.loads(outputs[0]) + require(result["all_coframed_owner_inventory"] == [["L", 19], ["L", 300], ["L", 301]], + "complete coframed owner inventory") + require(all(value == "PASS" for value in result["controls"].values()), "declared checker controls") + for target in ("300", "301"): + for name, rank in (("span_all_coframed", 3), ("span_all_coframed_with_successors", 5)): + record = result[name][target] + require(not record["member"] and record["span_rank"] == rank + and record["augmented_rank"] == rank + 1, "negative exact rank certificate") + for row in result["selected_rows"].values(): + require(coefficient(row, "L300") - 4 * coefficient(row, "L505") == 0, + "first separator annihilates every available row") + require(coefficient(row, "L301") + coefficient(row, "L226") == 0, + "second separator annihilates every available row") + document = json.loads(gzip.decompress(source.read_bytes())) + canonical = document["canonical"] + for owner in (300, 505, 301, 226): + require(canonical["start"][owner] == 0 and canonical["frames"][0] == [], + "witness input chart compatibility") + anchors = [span(canonical["frames"][i]) for i in (423, 430, 419)] + require(anchors == [{0, 102, 273, 375}, {0, 85, 273, 324}, {0, 51, 273, 290}], + "literal retained-anchor spans") + require(set.intersection(*anchors) == span(canonical["frames"][21]) == {0, 273}, + "retained-anchor common frame dimension one") + require(sha(source.read_bytes()) == SOURCE_SHA and sha(core.read_bytes()) == CORE_SHA, + "source and checker unchanged after replay") + print("PASS_SHARED_CROSSING_CUT9047_SCALAR_OBSTRUCTION") + print(json.dumps({"source_sha256": SOURCE_SHA, "scientific_output_sha256": EXPECTED_SHA, + "normal_optimized_complete_equality": True, + "scope": "original prefix, exact cut9047/frame21, rational scalar recoding only", + "new_kappa": None}, sort_keys=True)) + +if __name__ == "__main__": + main()