Skip to content

Replay Poisson differential certificates and row recurrences - #2699

Merged
PerAlexandersson merged 6 commits into
mainfrom
feat/poisson-replay-2140
Dec 2, 2026
Merged

PerAlexandersson merged 6 commits into
mainfrom
feat/poisson-replay-2140

Conversation

@PerAlexandersson

@PerAlexandersson PerAlexandersson commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Why

Issue #2140 needs a second transform backend and an exact connection from expanded differential recurrences to the existing Poisson preservation theorems.

Changes

  • Replay a fixed Poisson transform between independently defined raising recurrences, checking every required seed and exceptional prefix row through the generic transform certificate.
  • Identify a finite differential operator with the Poisson product from the exact factorial identities j! A_j = c^j X^j D^j F and an explicit degree bound for the omitted tail.
  • Prove PF closure when the nonnegative parameter and PF factor vary with the row, starting from any PF seed prefix. Typed recurrence certificates carry update identities and factor/seed witnesses, not the desired all-row PF conclusion.
  • Consume a supplied certificate in rr_row_splits (certificate := cert) and print a replayable diagnostic hint. The hint is confined to splitting; zero-aware conclusions do not imply nonzero or interlacing claims.
  • Add the exact generated grouped-cubic fixture from Polytool PR #118, prove its factor and seed obligations, and exercise independently defined source/target recurrences.
  • Apply the certificate to the full existing grouped-cubic region, with arbitrary row-dependent b_n,w_n satisfying w_n >= 0, b_n >= -1/2, w_n <= 3 b_n + 9/4, and an arbitrary PF initial polynomial. This reuses the established sharp Touchard criterion.
  • Cover zero and constant factors, zero parameter, repeated roots, symbolic row coefficients, missing/extra derivatives, factorial errors, non-PF factors, a bad prefix, and invalid or incompatible tactic hints.

The frontend uses the existing route registry and leaves automatic dispatch order unchanged when no certificate is supplied. The import budgets increase by one production module and three regression modules.

Stacked on #2697, which has passed its full Lean and comparator CI. Tracks #2140; Touchard/falling-factorial adapters and broader discovery remain separate.

Validation

Verified head 393f818dbfe585397dd95a5b2473517e2d59f579, tree 253d614af5aa5de7dda186c8b16d52d543b4057f.

  • Full Lean CI passed, including production and examples, environment linters, private-import checks, catalog and curated audits.
  • Comparator CI passed.
  • A separate serialized build of PoissonReplayGenerated, PoissonReplay and RowRoutes passed at this exact head, followed by all three affected-module environment linters.
  • All five exact generated outputs passed -DwarningAsError=true: main grouped cubic, nonconstant absolute-index factor with three seeds, zero parameter, zero factor, and factor X with parameter one. The final four revised outputs and unchanged zero-factor output were checked against the unchanged API at 6c239c46; their hashes match the actual current Rust exports. No Lean warnings or errors.
  • Proof-status, module, declaration-name, example-namespace, root-import, import-architecture, route generation, lemma-index and whitespace checks pass.

Six transitive axiom audits passed at the exact published head. Each reports exactly [propext, Classical.choice, Quot.sound]:

RealRooted.Poisson.sum_mul_iterate_derivative_eq_starC
RealRooted.Poisson.RecurrenceCertificate.isPFPolynomial
RealRooted.Tactic.Examples.PoissonReplayGenerated.operator_eq_starC
RealRooted.Tactic.Examples.PoissonReplay.isPFPolynomial_generated_rows
RealRooted.Tactic.Examples.PoissonReplay.raisedSquare_eq_starC
RealRooted.Tactic.Examples.PoissonCubic.isPFPolynomial_rows

Fixture SHA256 in both repositories: a2a78b44b54c704839b1d0aef02184dbb1fb7e751e1f1b0f65ff19131f01ea65. The exporter keeps lean_replay:not_attempted because source generation itself does not invoke Lean; the separate replay results are recorded here.

The final patch repairs the route-registry import and makes generated normalization inspect Lean's actual goal state before invoking ring. It adds no suppression, auxiliary declaration or import to the generated module. No source admissions, added axioms or statement scaffolds.

Progress and the next Touchard adapter are recorded in #2140.

Recognize finite differential updates through their factorial coefficient
identities and an explicit tail bound. Transfer PF through varying Poisson
steps, and consume typed certificates in the splitting tactic.

Source-checked checkpoint; focused Lean verification follows.
PerAlexandersson added a commit that referenced this pull request Dec 2, 2026
Base automatically changed from feat/transform-replay-2140 to main December 2, 2026 13:14
@PerAlexandersson
PerAlexandersson merged commit f747711 into main Dec 2, 2026
5 checks passed
@PerAlexandersson
PerAlexandersson deleted the feat/poisson-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