Skip to content

Replay finite recurrence certificates through reverse-Hermite transport - #2697

Merged
PerAlexandersson merged 7 commits into
mainfrom
feat/transform-replay-2140
Dec 2, 2026
Merged

PerAlexandersson merged 7 commits into
mainfrom
feat/transform-replay-2140

Conversation

@PerAlexandersson

@PerAlexandersson PerAlexandersson commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

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

  • Add RecurrenceTransformCertificate for explicit finite-order recurrences. Recurrence uniqueness derives the transform identity from seeds and operator intertwining; exceptional prefix rows remain separate obligations.
  • Keep source PF, transform preservation and interlacing preservation as distinct obligations.
  • Add reverse-Hermite transport of (aX+b)p+aXp' to (aX+b)Hp+2aX(Hp)'.
  • Independently define A261139 through its Touchard formula and reuse the existing cycle PF theorem. Add an A261318 recurrence consumer with all three seeds checked and the recurrence first computing row3.
  • Include the exact generated fixture from Polytool PR #117, plus unconditional source PF and target PF proofs for the independently recursive models.
  • Make the existing registry-backed rowModel route selectable by rr_row_splits (via := rowModel). Preserve automatic dispatch order and fail closed for a failed forced certificate. The diagnostic variant returns a replayable hint.
  • Extend the existing bounded unfolding step to same-module helper definitions on the target side, excluding the recursive row sequence. This lets the tactic consume the named coefficient functions emitted by Polytool.
  • Cover zero rows, constants, repeated roots, shifted indexing, an incompatible target seed, insufficient source root assumptions, and an unsupported converse.

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 tree 1e563c6c545f21972d7134f0f30e48a2d90ec54f, containing main 9f12b453.

Passed on this exact head:

  • One focused Lake build of RowModelJensenFamilies, RowModelFamilies, RowStrictInterl, TransformReplay, and RowInterlacingProducts, all under RealRooted.Tactic.Examples.
  • Environment lint of RealRooted.Tactic.Row.Frontend.
  • Proof-status, module, declaration-name, example-namespace, import-architecture, root-import and whitespace checks.
  • Transitive axiom audits of RealRooted.CyclePartition.splits_of_reverseHermite_recurrence and RealRooted.Tactic.Examples.TransformReplay.isPFPolynomial_target. Both report exactly [propext, Classical.choice, Quot.sound].

The earlier head 23e9e7b passed 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 in 64caedb preserves 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.

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.
PerAlexandersson added a commit that referenced this pull request Dec 2, 2026
@PerAlexandersson
PerAlexandersson merged commit 64caedb into main Dec 2, 2026
5 checks passed
@PerAlexandersson
PerAlexandersson deleted the feat/transform-replay-2140 branch December 2, 2026 13:14
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