Skip to content

Tooling: accelerate exact historical frame containment - #1459

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
CubeJerry:research/seed90-exact-frame-containment-20261014
Oct 14, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
CubeJerry:research/seed90-exact-frame-containment-20261014

Conversation

@CubeJerry

Copy link
Copy Markdown
Contributor

Summary

Add an opt-in exact containment adapter for the historical rational-frame checker. It tests integer membership equations instead of rebuilding a combined row basis. The original checker, selected construction, frozen inputs and upstream/ remain unchanged.

Verification engineering, OS-random assignment seed 90. No new κ. The selected conditional κ at the starting commit remains 0.001672660197076918.

Result

For a canonical primitive reduced target basis with pivot columns p_i and positive pivot values d_i, set D=lcm(d_i). A source row u belongs to its rational span exactly when, for every nonpivot coordinate j:

Du[j] = sum_i u[p_i](D//d_i)*v_i[j].

The adapter retains the original predicate's rejection of noncanonical target representations. Its bounded caches retain immutable inputs; no complete audit verdict is cached.

Nine alternating fresh-process pairs on Linux x86_64, CPython 3.12.14, CPU 0:

Complete h=10/h=12 audits Reference Adapter
Median process wall time 3.158709 s 2.726833 s
Median peak RSS 88,852 KiB 70,512 KiB

This is 13.67% less median wall time and 20.64% less median peak memory. The adapter was faster in all nine pairs. All 18 complete mathematical payloads matched exactly. These are local measurements, not a universal performance guarantee.

Predecessors and distinct contribution

Credit Richard Hoekstra's incorporated PR239, commit 7c2a27f, for the dual-Gram checker, independent Fraction tests and complete benchmark reused here.

Pending PR1234, refreshed at head 8812ca2, optimizes normalization and orthogonal complements. This contribution targets containment instead and does not depend on PR1234 or claim a combined speedup.

Public PR/discussion pages and local records were checked again before publication, through observed PR1433. Coverage was bounded; no exhaustive novelty claim is made. The claim and result update are recorded locally because posting access was unavailable.

Base and dependencies

Exact starting commit:
cd91ac8

Python 3.12 standard library only. All six execution inputs are pinned to that commit by Git blob and SHA256:

  • scripts/certify.py
  • scripts/exclusion_circuit.py
  • scripts/paired_exclusion_circuit.py
  • scripts/experiments/mixed_point_circuit.py
  • scripts/rational_span_frames.py
  • tests/benchmark_rational_span_frames.py

The final upstream refresh was 410026d. It changed review bookkeeping; these inputs and the selected record were unchanged.

Reproduction

From a full checkout on POSIX:

python3.12 -B scripts/research_package.py --package research/exact-frame-containment

Expected successful markers:

PASS_EXACT_FRAME_CONTAINMENT audits=6 decisions=42860 compiler_controls=4 kernel_mutations=5
PASS_REGISTERED_RESEARCH_PACKAGE research/exact-frame-containment outcome=completed

Executed verification

All final checks PASS:

  • 7,339 matrix pairs against independent Fraction elimination, normally and under optimized Python.
  • Six complete benchmark audits across reference, adapter and per-decision crosscheck engines.
  • All 42,860 live containment decisions agree individually.
  • Five deliberately faulty kernels detected.
  • Four invalid compiler-frame fixtures rejected with identical original/adapter diagnostics.
  • Six source corruptions and two invalid source inventories rejected.
  • Four receipt corruptions rejected, including rehashed corruption and bool/int substitution.
  • Optimized whole-audit execution refused because inherited assertions must remain enabled.
  • All 40 existing related regression tests pass with each engine.
  • Registered replay, selected-record integrity and benchmark source bindings pass.
  • Standalone replay from a relocated export with spaces and read-only input files passes.

Complete payload SHA256:
faa0f9c0159a6e70d4e2cfcdb4012ea62ef350bd26b81312d11da4a770f8b218

Limits and remaining work

This covers historical h=10/h=12 frame audits and the declared integer-matrix containment contract. It is not a new supplier, formal multiplication proof or practical multiplication speedup.

The inherited benchmark imports POSIX resource. Full selected-frontier cold replay, repository-wide historical suites, native/Lean builds and hosted CI were not run. Compiler, realization, hosting, precision and analytic assumptions remain untouched.

Composition with PR1234 and default adoption require separate review and measurement.

Attribution

Prepared for @CubeJerry with substantial OpenAI Codex assistance. Credit Douglas Colkitt, the historical mixed-point/circuit contributors, Richard Hoekstra and the retained source notices. No independent human or subagent review is claimed. New material is Apache-2.0.

@Mister-Meeseeks
Mister-Meeseeks merged commit 2a330ef into CrocSwap:main Oct 14, 2026
6 of 61 checks passed
@Mister-Meeseeks

Copy link
Copy Markdown
Contributor

100-PR batch review at 69db3d7f10706ae897b6a7ae030db5f0b4892be8.

Merged to main, preserving the original contributor commits and package attribution.

Reviewed scope: Opt-in rational containment kernel preserves the canonical reference predicate, with exact decision transcripts, independent elimination, invalid-cache and compiled-frame controls. Full historical audits pass; no production replacement or batch-measured speedup claim.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants