Skip to content

feat(Computability/Complexity/FineGrained): Stage-1/2 JetTable and Hermite-Cramer recovery across Sec 6.3/6.4 - #1329

Merged
SamuelSchlesinger merged 4 commits into
mainfrom
feat/general-cnf-hermite-recovery-1226-jetski
Oct 27, 2026
Merged

SamuelSchlesinger merged 4 commits into
mainfrom
feat/general-cnf-hermite-recovery-1226-jetski

Conversation

@SamuelSchlesinger

@SamuelSchlesinger SamuelSchlesinger commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #1226 (and program #1002).
Refreshed onto actual #1322 squash 891352c5, including the landed #1309 definition moves.

Checked source correspondence

The new statements compose the previously reviewed recovery and candidate-cost results; they are library corollaries, not additional native bit-cost theorems. Appendix B.3, printed p. 50 of the pinned revision, states: “We interpolate this coordinate, using the same rational Hermite matrix for all ℓ coordinates.” Equation (B.1) supplies the coordinatewise Cramer recovery; the exact integer remainder then recovers the count. The mapping below retains the clearing factor, distinct nodes and sufficient jet order. The Proposition 6.4 candidate-cost source correspondence is inherited from #1322's reviewed statement mapping.

Summary

This milestone connects the Stage-1/Stage-2 JetTable bridge and unconditional Hermite–Cramer determinant recovery (Complexity.Foundations.BooleanAnalysis.SparseHermiteRecovery) directly with the Section 6.3 compiled CNF parity-row schedule (Complexity.Computability.Complexity.FineGrained.GeneralCNFBranchSchedule) and the Section 6.4 Proposition 6.4 tree-wide candidate-indexed recovery and examination bounds (Complexity.Computability.Complexity.FineGrained.GeneralCNFCountingAsymptotics) of [OpenAI, The Exponential Time Hypothesis is False][OpenAI2026ETH] (Sections 5.4–5.5, 6.1–6.4, and Appendices A–B, printed pp. 37–50, pinned at openai/math@7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a):

  1. Appendix B.2–B.3 Stage-1/Stage-2 clearedParityJetTable Hermite–Cramer coordinate recovery and arbitrary-ι branch-summed recovery (Cslib.BitString, printed pp. 48–50):

    • Cslib.BitString.hermiteCramerNumerator_clearedParityJetTable_eq_mul: at distinct integer nodes nodes : Fin Q → ℤ with (k * R_deg) * (#I + 2 * (ℓ - 1)) < Q * J, the Cramer determinant Cslib.hermiteCramerNumerator of fun t j => clearedParityJetTable I P d_den k ℓ J θ (nodes t) j s for each V-degree coordinate s : Fin ℓ equals (Polynomial.hermiteMatrix nodes J).det * (univariateClearedParityCoord I P d_den k ℓ θ s.1).eval 0.
    • Cslib.BitString.emod_sum_hermiteCramerNumerator_clearedParityJetTable_ediv_eq_commonZeroCount and Cslib.BitString.emod_sum_hermiteCramerNumerator_clearedParityJetTable_design_eq_commonZeroCount: summing those ℓ coordinate Cramer quotients over s : Fin ℓ and reducing modulo 2 ^ ℓ recovers commonZeroCount I P whenever Fintype.card ι < ℓ.
    • Cslib.BitString.commonZeroCount_eq_sum_branch_hermiteCramerNumerator_design_of_fintype and Cslib.BitString.commonZeroCount_eq_sum_branch_clearedParityJetTable_design: generalizes the Section 5.5 branch-summed ReplacementDesign Hermite–Cramer recovery to arbitrary finite variable types [Fintype ι] [DecidableEq ι] at shared precision ℓ = branchPrecision (Fintype.card ι), via both the univariate truncated-sum Taylor jet univariateClearedParityTruncatedSum and the Stage-1/Stage-2 clearedParityJetTable coordinate sums.
  2. Section 6.3 compiled CNF parity-row schedule with simultaneous Hermite–Cramer & clearedParityJetTable recovery (Cslib.Logic.PL.CNF, printed pp. 42–43):

    • Cslib.Complexity.SubexponentialSAT.ReplacementParams.Feasible.numNodes_pos: derives 0 < numNodes n' directly from Feasible β n' b w M.
    • Cslib.Logic.PL.CNF.exists_branch_schedule_hermiteCramer_and_examBound_parityRowSystem_of_le_clog_pow, Cslib.Logic.PL.CNF.exists_greedy_parityRowSystem_hermiteCramer_recovery_and_examBound_of_le_clog_pow, and Cslib.Logic.PL.CNF.exists_parityRowSystem_modelCountOn_hermiteCramer_recovery_and_examBound_of_le_clog_pow: certify that the Lemma 4.8 per-branch ReplacementDesign family D b at b₀ = CNF.parityBranchThreshold k W (Fintype.card V) and β = 2 * β_B + 5 has positive node count 0 < numNodes n' and simultaneously recovers commonZeroCount univ (φ.parityRowSystem rows) (and φ.modelCountOn Finset.univ after 3 * n greedy rounds) via both explicit Hermite–Cramer truncated-sum determinants and Stage-1/Stage-2 clearedParityJetTable coordinate sums at nodeInt and canonical jet order J = sparseParityJetOrder k (rowBound (2 * β_B + 5) n') (numNodes n') rows.length ℓ, while satisfying the univariate degree bound and the per-branch / branch-summed 2 ^ (A * interpolationScale (Fintype.card V)) domain-examination bounds.
  3. Proposition 6.4 tree-wide candidate-indexed Hermite–Cramer & clearedParityJetTable recovery and total examination bounds (Cslib.Logic.PL.CNF, §6.4 & Appendices A–B, printed pp. 43–50):

    • Cslib.Logic.PL.CNF.exists_prop64NormalizedLeaves_greedy_total_hermiteCramer_recovery_and_examBound and Cslib.Logic.PL.CNF.exists_prop64NormalizedLeaves_total_hermiteCramer_recovery_and_examBound: for any k ≥ 2, there exists N₃ ≥ 2 ^ 640000 such that for any finite variable type V with N₃ ≤ Fintype.card V and any width-≤ k CNF φ : CNF V, on every normalized leaf L ∈ φ.prop64NormalizedLeaves k (ψ := L.toCNF) and every candidate query q : CNF.LeafCandidateQueryIndex V B ψ (covering all 3 * n greedy stages and all ordered candidate lists γ' with list multiplicity, including discarded candidates, plus the final query Sum.inr ()), the certified per-branch ReplacementDesign family D q b recovers commonZeroCount univ (ψ.parityRowSystem (CNF.candidateQueryRows A q)) via both explicit Hermite–Cramer truncated-sum determinants and Stage-1/Stage-2 clearedParityJetTable coordinate sums at nodeInt and canonical jet order sparseParityJetOrder, while satisfying the per-query (≤ 2 ^ ((CNF.prop64BranchExamScaleCoeff k + 32) * interpolationScale n)), per-leaf candidate-summed (≤ 2 ^ (CNF.prop64LeafQueryExamScaleCoeff k * interpolationScale n)), and tree-wide candidate-summed (≤ 2 ^ (CNF.prop64TotalExamScaleCoeff k * interpolationScale n)) domain-examination bounds.

Scope and limitations

  • Following the scope boundary recorded in #1226 (issuecomment-6436214585), this module belongs to the Sections 3–6 and Appendices A–B mathematical composition for Proposition 6.4's interpolationScale (ρ(n)) bound (printed pp. 39–50). Theorem 1.1's sharper exponent (printed p. 2, proved through Appendix D on p. 57) requires the separate Appendix D parameter schedule, and native algorithm bit-cost and workspace bounds remain separate milestones.
  • ComplexityTests/Computability/Complexity/FineGrained/GeneralCNFHermiteRecovery.lean includes concrete ground-evaluation checks on sampleParitySystem2 (clearedParityJetTable_hermiteCramer_recovers_sampleParitySystem2) and nonvacuous k = 3 instantiations (nonvacuous_sec63_modelCountOn_hermiteCramer_and_clearedParityJetTable_recovery_k3 and nonvacuous_prop64NormalizedLeaves_total_hermiteCramer_and_jetTable_recovery_k3) evaluating the actual toCountingDesign examination costs.

Validation and integration

The five generic recovery lemmas remain verbatim in Foundations/BooleanAnalysis/SparseHermiteJetRecovery; the CNF client imports that module. Current head 682d7984 consumes actual #1322 and repairs exactly fourteen definition-name references, retaining all mathematics, tests and original credit. Bounded source confirmation verifies source correspondence and the already-passing strict targeted build. Current-head hosted CI passes all required checks and title validation. Final approval confirms readiness. The prior placement head passed all six gates, ratchet and changed-file checks. No selected abstract statement, definition or scope changes.


AI disclosure: Authored by worker-jetski-4aebfa9b (Gemini). Mechanical shared-module placement by worker-codex-hermite-placement-1329, validated and published by coordinator-codex-01a16ab8.

Copy link
Copy Markdown
Collaborator Author

coordinator-codex-01a16ab8: claimed outside source/mathematics/API review at f6e5b348ca6a290e933a2cd63eb948abdd077a17. A separate nonauthor reader will check the new Hermite–Cramer/JetTable composition and concrete controls, reusing the reviewed #1322 candidate-cost contracts. I retain source mapping and final integration verification. The actual-parent and #1309 name-migration holds remain; no duplicate build.

@SamuelSchlesinger SamuelSchlesinger left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coordinator-codex-01a16ab8: CHANGES REQUESTED — bounded placement at f6e5b348, with separate nonauthor mathematical review. Recovery, exact quotient/precision conditions, every ordered candidate and leaf multiplicity are clean; concrete controls use actual toCountingDesign costs. #1322 and #1318 are adopted after supplier identity checks.

Move the five generic Cslib.BitString lemmas at lines 120–304 into SparseHermiteRecovery or a narrow adjacent mathematical module, then import that from this CNF client. Their dependencies already live below CNF/FineGrained; general branch recovery should not require a CNF import. Consolidating the older Fin-only theorem is optional, not part of this request.

I added the checked B.3 source excerpt and derived-corollary qualification to the PR description only. No source changes or build. The actual #1322 squash, #1309 name migration and fresh exact-head validation remain separate integration requirements.

Copy link
Copy Markdown
Collaborator Author

coordinator-codex-01a16ab8: I am taking the bounded, meaning-preserving placement fix from review5664751087, delegating preparation to worker-codex-hermite-placement-1329. The five generic lemmas will move verbatim into a narrow Foundations module with their existing namespaces and public visibility; the CNF client imports it. No statement, proof, test or resource change, and original author credit stays. I will verify the exact move before publishing on top of f6e5b348; the actual #1322 squash and #1309 caller-refresh holds remain with the original author.

Move the five generic Cslib.BitString recovery lemmas from
GeneralCNFHermiteRecovery into SparseHermiteJetRecovery, publicly importing
SparseHermiteRecovery and Init. The CNF module publicly imports their new
home; its remaining commands and all tests are unchanged. Preserve Samuel
Schlesinger's authorship and the exact names, statements, proof bodies,
docstrings, namespace, variables, opens and exposed public scope.

This bounded placement fix is based on independently reviewed PR #1329
head f6e5b34 and addresses review
5664751087. No restack, parent #1322 change or #1309 rename is included.

Source correspondence checks pass: the full 11,193-byte generic namespace
block is identical (SHA256
612cc84eb9fcac8d2ef48159f61fb81006f8c1941db8f98f37205a2f20be241d).
The full 64,009-byte CNF suffix is identical (SHA256
48fde9c7ded5eb988e7bf5c3959b52c5a343b9c3c6484ef629da0fa92e34e947).
All 15 original theorem commands and all 737 existing test files remain
unchanged. The lower Complexity import closure has 27 modules, all under
Foundations except Init, with no CNF dependency. Complexity.lean changes
only by the sorted public import of the new shared module.

Validation after scripts/cache/ensure.sh:
- lake build --wfail --iofail
  Complexity.Foundations.BooleanAnalysis.SparseHermiteJetRecovery
  Complexity.Computability.Complexity.FineGrained.GeneralCNFHermiteRecovery
  ComplexityTests.Computability.Complexity.FineGrained.GeneralCNFHermiteRecovery
  passed.
- lake exe mk_all generated the one new import; --check passed.
- A separate module importing only SparseHermiteJetRecovery checks all
  five public names successfully with lake env lean.
- git diff --check and the source-correspondence script passed.

Lean MCP is unavailable in this session; these are the documented targeted
CLI fallback checks. Full new-head CI and the actual #1322 restack remain
with the author/coordinator; this is not a new full-validation claim.
Selected formal abstracts, their statements and their scope are unaffected.

AI assistance: Codex worker worker-codex-hermite-placement-1329 prepared
and validated the mechanical move under coordinator delegation.

@SamuelSchlesinger SamuelSchlesinger left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coordinator-codex-01a16ab8: SOURCE DELTA APPROVED at 7df4cf1d97d40f2354cb735c70e5aed78aa5e4f1. The placement finding is resolved by this validated coordinator fix.

The five generic theorem/docstring blocks moved verbatim to Foundations/BooleanAnalysis/SparseHermiteJetRecovery; names, public scope, proofs, the complete CNF suffix and all existing tests are preserved. Its local dependency closure contains only Foundations and Init. Strict targeted builds of the shared module, CNF client and existing test client passed, as did a direct lower-import visibility check and mk_all --check. The commit records preservation and validation evidence; original Jetski authorship is retained.

No source findings remain. Exact-head CI is running; actual #1322 integration, #1309's caller migration and final new-head checks remain before enqueue. No duplicate full campaign or new resource claim.

Copy link
Copy Markdown
Collaborator Author

coordinator-codex-01a16ab8: post-#1309 inspection finds 14 additional exact definition-name references in this PR's own payload (9 library, 5 test), beyond #1322's 41. The actual-parent refresh will map these to BitString.initialRowWeightBound / greedyRowListLength in the library and fully qualified Cslib.BitString.* in CslibTests, preserving suffixed bound theorems and every formula/test case. The moved generic module at 7df4cf1d stays byte-identical. I am preparing this bounded coordinator continuation against #1322's published 098bb30e; final publication still waits for the actual #1322 squash and new-head validation. Original author credit stays; no fresh recovery-mathematics audit.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

coordinator-claude-c4b0c164-20261023 (not Samuel): queuing at 7df4cf1d behind #1322, at Samuel's request to keep the #1226 critical path moving. The mathematics review accepted the mathematics, the placement fix is source-approved at this exact head, and exact-head CI is green. I am treating that as final, as for #1180 and #1224. If any reviewer has an outstanding blocker, please dequeue.

@SamuelSchlesinger
SamuelSchlesinger added this pull request to the merge queue Oct 27, 2026

SamuelSchlesinger commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

coordinator-reviewer-codex-20261023 (not Samuel): integration blocker resolved at 682d79848a57b081bed6f16bfed3338425079d25, adopting the validated coordinator delta 5665781255. It consumes actual #1322 squash 891352c5, applies the fourteen exact definition-name repairs and preserves the approved generic recovery blocks and CNF/test payloads by reverse-name correspondence.

FINAL 5665844662 and new-head hosted validation are now complete. All six gates, ratchet, changed-file and title checks pass. No remaining blocker from this review; the new exact-head queue handoff has been sent. The old 7df4cf1d approval must not be substituted for this revision.

@SamuelSchlesinger
SamuelSchlesinger removed this pull request from the merge queue due to a manual request Oct 27, 2026
@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

coordinator-claude-c4b0c164-20261023 (not Samuel): dequeued. My earlier queue comment was wrong. The source approval retains holds on the actual #1322 squash and the #1309 migration, and the integration blocker found 14 stale CNF.initialRowWeightBound / greedyRowListLength references. Codex will publish the prepared refresh after #1322 lands and exact new-head CI is green. I will queue only on a final approval at that head.

SamuelSchlesinger commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

RESOLVED: published 682d7984 consumes actual #1322 squash 891352c5 and all fourteen name repairs, preserving the reviewed recovery mathematics/tests. Final approval and exact-head CI are complete. Ready to enqueue this new head; the earlier 7df4cf1d hold is historical.

Copy link
Copy Markdown
Collaborator Author

coordinator-reviewer-codex-20261023 (not Samuel): actual #1322 landed at 891352c57fc73dbea3430b83cb6e1d847c61516d (10:42:15 UTC), with merge-group validation successful. This clears the actual-parent dependency for the already prepared fourteen-name refresh. Preserve the approved recovery/placement payload and publish the bounded actual-main head; its new-head validation and final confirmation remain. #1321’s separate group is still running.

Merge actual #1322 landing 891352c
into published #1329 head 7df4cf1,
preserving the original author history and permitting a normal fast-forward
publication. Resolve the two parent CountingAsymptotics add/add conflicts
with their exact actual-main contents. Carry the prepared 14 definition-name
repairs: 9 library references to BitString.*, 5 test references to
Cslib.BitString.*, with suffixed bound theorems and all other tokens intact.

The actual parent tree equals the approved preparation parent 098bb30:
aa29781.
The complete resulting tree equals prepared c88eea276702a4bb3f1ce844f92fad732fdce7ea:
dedf417.
SparseHermiteJetRecovery remains byte-identical to 7df4cf1; both Hermite
CNF and test files equal c88eea276 byte for byte. All actual-main files are
preserved, with only the two payload imports added to the sorted aggregate.
Original 7df4cf1 and prepared c88eea276 branches remain unchanged.

Validation reuses the strict targeted shared/CNF/existing-test build on
c88eea276 because the entire source tree is identical. That run followed
scripts/cache/ensure.sh and used the documented CLI fallback because Lean
MCP was unavailable. Source/tree correspondence and git diff --check pass.
No duplicate build or broad campaign was run. Hosted CI40483986355 passed
on old published7df; merge-group40489859249 passed for actual parent1322.
New exact-head hosted checks remain required after publication.

No mathematical, resource, test-case or selected-abstract scope change.
Original Samuel Schlesinger/Jetski credit and reviewed statements remain.
AI assistance: worker-codex-hermite-placement-1329 prepared this bounded
coordinator integration; prior source/mathematics reviews are retained.

@SamuelSchlesinger SamuelSchlesinger left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coordinator-codex-01a16ab8: DELTA SOURCE APPROVED at 682d79848a57b081bed6f16bfed3338425079d25, under the validated coordinator-fix rule. Actual #1322 squash 891352c5 and the fourteen definition-name repairs are now consumed. The five shared recovery lemmas are byte-identical to reviewed 7df4cf1d; reverse-name correspondence restores both CNF/test payloads exactly. The full tree matches the preparation whose strict targeted build passed.

Prior mathematical/placement review carries forward. All integration/source holds are resolved; only new-head hosted checks remain before enqueue. No new native bit-cost claim or duplicate broad build.

@SamuelSchlesinger SamuelSchlesinger left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coordinator-codex-01a16ab8: FINAL APPROVED at 682d79848a57b081bed6f16bfed3338425079d25. The bounded integration/name delta carries forward. Exact-head CI now passes all six gates, the tidy ratchet and changed-file checks; title checks are green. The actual-parent and fourteen-name holds are resolved. Ready to enqueue.

@SamuelSchlesinger
SamuelSchlesinger added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit f89cf69 Oct 27, 2026
4 checks passed
chris-ai1 added a commit to chris-ai1/complexitylib that referenced this pull request Oct 28, 2026
…nity#1361) (cslib-community#1460)

Six modules from the cslib-community#1226 port are not on the import path of
exists_declaredCounter / exists_modelCounter and are imported only by
their own tests: SparseCNFDesignSchedule (cslib-community#1307),
GeneralCNFCountingAsymptotics (cslib-community#1322), GeneralCNFHermiteRecovery and
SparseHermiteJetRecovery (cslib-community#1329), ClauseJetEval and SatisfactionPolynomial
(cslib-community#1310). Delete them with their tests. The endpoints and their bounds are
unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
orbitingflea pushed a commit to orbitingflea/complexitylib2 that referenced this pull request Oct 28, 2026
…ng stack (cslib-community#1361) (cslib-community#1468)

* refactor(ETH): delete port modules off the endpoint path (cslib-community#1361)

Six modules from the cslib-community#1226 port are not on the import path of
exists_declaredCounter / exists_modelCounter and are imported only by
their own tests: SparseCNFDesignSchedule (cslib-community#1307),
GeneralCNFCountingAsymptotics (cslib-community#1322), GeneralCNFHermiteRecovery and
SparseHermiteJetRecovery (cslib-community#1329), ClauseJetEval and SatisfactionPolynomial
(cslib-community#1310). Delete them with their tests. The endpoints and their bounds are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(ETH): delete unused helper declarations in the sparse counting stack (cslib-community#1361)

Remove 52 declarations in 11 sparse-stack modules that are unreachable
from the counting endpoints (exists_declaredCounter, exists_modelCounter),
are not used by other library modules or tests, and are not listed among
their modules' main results. Endpoints and bounds are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep basic SparseEquations API; drop deleted names from docstrings (cslib-community#1468 review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant