Skip to content

Prove the exact tariff for one premium adjacent swap - #2577

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
starship-s:research/contribution-cf2a
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
starship-s:research/contribution-cf2a

Conversation

@starship-s

@starship-s starship-s commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Result

This answers PR1989's S4 (1,2,1) weighted-price handoff and extends it to one premium adjacent generator in every S_n.

In the existing full formal F2[S_n] model, let s_p cost beta and every other adjacent label cost alpha, with 0 <= alpha <= beta. For any heterogeneous diagonal target tuple and any finite restored dirty workspace, the exact minimum is

alpha * sum_j inv(w_j) + (beta-alpha) * sum_j c_p(w_j),
c_p(w) = #{i <= p : w(i) > p}.

The inherited ordered-pair cut bounds total calls. A natural-action cut bounds calls to s_p. Sorting each side internally before each boundary exchange attains both bounds simultaneously, so scalar mixing and dirty helpers cannot improve this tariff.

Only research/symmetric-single-premium-tariff/ is added: one proof/README, one standard-library checker, and the repository's three metadata files. Base is canonical main 0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2, priority revision 4. Claim and scoped discussion.

Verification

Local CPython 3.12 registered and optimized replays pass:

python3.12 -I -B scripts/research_package.py --package research/symmetric-single-premium-tariff
python3.12 -I -O -B research/symmetric-single-premium-tariff/verify.py
  • 126 complete weighted Dijkstra runs, 206,436 exact tariff comparisons and 34,406 constructed sorting words across S2 through S7, every cut and six price pairs.
  • 2,100 paid-factor and 3,500 free-mixing crossing-rank checks.
  • All 576 ordered S4 target pairs with a dirty spectator, plus 168 GL3-conjugated endpoints with inverse restoration.
  • Invalid-input, source-drift, omitted-call, reversal, dirty-leak and nonfaithful-representation controls. An explicit discounted-label example costs four rather than the inadmissible formula's five.

Separate read-only proof/specification and standards reviews found no blocking findings. Reviewed proof/checker hashes are in TASK.json. Documentation/link validation, package provenance and selected-record integrity also pass. Hosted CI currently reports action_required; the registered-package workflow has not started any jobs and requires maintainer action. No hosted pass is claimed.

Limits and credit

This is a written formal-model theorem with finite corroboration, not proof-assistant verification. It does not settle arbitrary unequal tariffs, supply native/compiler/hosting/precision admission, or improve kappa. The selected frontier and frozen sources are unchanged; the selected cold replay was not run.

Credit Ross Richardson's PR1989 and its Adam Gall/PR1941 and PR1966 cut-method lineage. Concurrent ywz65 PR2544 (9fb1552f12ca4777ca660461a8b602e709285f99) already covers the asymmetric coordinate-SWAP special case; that result is not claimed anew. The new scope is arbitrary S_n, cuts and heterogeneous target tuples with one premium label. Discussion2570 is pursuing the complementary two-premium (2,1,2) case.

AI assistance

Substantial assistance from Hermes (gpt-6-astra-900k) for the argument, writing and review, and Codex (gpt-6-astra, max effort) for the verifier and separate reviews. No independent human or formal-kernel review is claimed. Apache-2.0.

Resolve the weighted S4 handoff with a uniform two-cut bound and
simultaneous descent-sorting attainment. Include an exact checker,
source pins, scoped limits and predecessor credit.

Assisted-by: Hermes Agent:gpt-6-astra-900k
Assisted-by: Codex:gpt-6-astra
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