Repository navigation
Replay finite recurrence certificates through reverse-Hermite transport - #2697
Merged
Merged
Conversation
PerAlexandersson
marked this pull request as ready for review
December 1, 2026 12:44
Stop before discovering coefficient helpers when the recurrence rewrite has already closed the goal. This restores the existing A119308, A056939 and A359363 row-model tactic regressions.
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Issue #2140 needs a checked connection from finite transform certificates to proofs about every row. Preservation alone does not establish recurrence starts, seed rows, or the identity between independently defined source and target sequences.
Changes
RecurrenceTransformCertificatefor explicit finite-order recurrences. Recurrence uniqueness derives the transform identity from seeds and operator intertwining; exceptional prefix rows remain separate obligations.(aX+b)p+aXp'to(aX+b)Hp+2aX(Hp)'.rowModelroute selectable byrr_row_splits (via := rowModel). Preserve automatic dispatch order and fail closed for a failed forced certificate. The diagnostic variant returns a replayable hint.The generated Lean files in both repositories match byte for byte: SHA256
864dd654eb2db884737849af084d7ee739064060390444a2dc86076e90f6e5de.This is the first milestone for #2140. Poisson/Touchard adapters, broader recognition/export integration and a new formal equivalence to the underlying marked-set-partition enumeration remain outside this PR.
Validation
Current head:
64caedb22f4d58515fc4b10fc5da35bbb5259b28; source tree1e563c6c545f21972d7134f0f30e48a2d90ec54f, containing main9f12b453.Passed on this exact head:
RowModelJensenFamilies,RowModelFamilies,RowStrictInterl,TransformReplay, andRowInterlacingProducts, all underRealRooted.Tactic.Examples.RealRooted.Tactic.Row.Frontend.RealRooted.CyclePartition.splits_of_reverseHermite_recurrenceandRealRooted.Tactic.Examples.TransformReplay.isPFPolynomial_target. Both report exactly[propext, Classical.choice, Quot.sound].The earlier head
23e9e7bpassed the full production CI job, all nine changed-module environment linters and repository-wide text style. Its broader examples job exposed five failures in three existing row-model regression files: unfolding an exact recurrence can already close the goal, and the new helper discovery then tried to inspect that absent goal. The one-line guard in64caedbpreserves those completed proofs; the five-target build above verifies the affected examples and the new replay together.Full Lean Action CI and Comparator CI passed on this exact head: Lean Action CI, Comparator CI. This includes the production library, complete tactic examples, and their required checks. CI also supplies the text-style result that the earlier remote attempt did not complete.
The next Poisson milestone is stacked separately in #2699.
The import budgets increase only by four production and two regression modules. No source
sorry, added axioms or statement scaffolds. No merge or automatic merge is requested.The companion exporter passed its complete CI before a later main-branch refresh. Its status remains
lean_replay:not_attempted, because the exporter itself does not invoke Lean; the external Lean check is recorded here for this exact fixture and revision.