Skip to content

Construct minimum-cost binary query bases with exchange certificates - #5791

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
aliromman:codex/next-ten-07
Oct 27, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
aliromman:codex/next-ten-07

Conversation

@aliromman

@aliromman aliromman commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

A dependent query pool can contain expensive redundant acquisitions. Add an exact constructor for a minimum-cost basis of its whole binary span, together with XOR expressions for every query and dual coordinate forms. The checker uses no sorting or elimination: it checks independence, full coverage and every possible improving basis exchange.

Six tests pass normally and under -O on CPython 3.12.14. All 2187 assignments of costs 0,1,2 to the seven nonzero three-bit vectors agree with complete enumeration of their 28 bases. Tests also cover 4096 queries at width 256, zero/duplicate vectors, false coordinate witnesses and a valid independent basis rejected because a cheaper exchange exists. Saved CLI certificates bind exact input bytes.

The guide proves the price-prefix optimality condition and gives a constructive example. This uses classical linear matroid greedy selection and fundamental circuits. Limits: 4096 queries, 256 coordinates, integer acquisition costs through 10^12. Reconstruction XOR costs, partial-span targets, native phases, physical delivery and restoration remain separate. No new kappa or frontier change.

Fresh main/priorities/overlap checked at both checkpoints. Canonical scope #5776. All 6 new tests pass in the hosted plan at this head. The plan fails on the unchanged assignment module (8 failures and 2 errors); replay is skipped. The existing fix is PR #5761. Independent review remains pending.

Base: de5ec2e7a6074068452f45b1a191b5c72832df4a. Verified head: cd314cb7f14511196060fc3c6261e2bf5fb80de4.

Prepared for Ali Romman with substantial OpenAI Codex assistance. Retained tool and mathematical predecessor credits apply. No selected-frontier change.

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