Repository navigation
Export exact Poisson differential certificates and Lean replay - #118
Open
PerAlexandersson wants to merge 4 commits into
Open
PerAlexandersson wants to merge 4 commits into
PerAlexandersson wants to merge 4 commits into
Conversation
PerAlexandersson
marked this pull request as ready for review
December 1, 2026 16:49
6 tasks
7 tasks
This branch has not been deployed
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 #24 and RealRooted #2140 need a checked path from differential recurrence coefficients to a Poisson recurrence certificate. Matching a finite row prefix is insufficient, and recognizing the differential operator does not prove that its factors or seeds are PF.
Changes
export_poisson_replay(&recurrence, ¶meter)for homogeneous unit-leader single-lag recurrences with exact nonnegative rational parameter.j! A_j(n,X) = c^j X^j D^j A_0(n,X)in exact bivariate arithmetic. Check through the larger of the supplied order and factor degree; pad every missing derivative with zero.polytool.poisson-replay.v1, full coefficient witnesses, all prefix seeds, pinned Lean API provenance, and explicit factor-PF/seed-PF/external-family obligations. Reconstruction verification rejects altered data, provenance, obligations or replay status.RealRooted.Poisson.RecurrenceCertificate. Source export retainslean_replay: "not_attempted"; it does not invoke Lean.The example has factor
(X + 1/2)(X + 3/2)^2, including a repeated-root boundary. RealRooted PR #2699 contains the matching generated module, an unconditional factor/seed proof, the certificate-aware row tactic, and a general row-dependent grouped-cubic application.This is stacked on #117. It adds a library export; automatic discovery and unknown-parameter inference remain further work. It does not close #24.
Validation
Verified head
64a247c17e4d7b9ec62c871a8110e2c00cf91874, tree015a92ebcefc9fe63364f18fed4cad2d6af0f552.-DwarningAsError=true: grouped cubic, index-dependent three-seed prefix, zero parameter, zero factor and linear factor. No Lean warnings or errors.393f818dpassed full Lean CI and comparator CI, a separate focused build and three affected-module linters, and six transitive axiom audits. Each audit reports exactly[propext, Classical.choice, Quot.sound], including the generated operator identity and unconditional PF consumer.12c92de88e88aa2b8aa497dc8fc456d92f145d4ccompiled. The independent source inventory atfb5ee4b2passes its ordinary and independent-input checks and three negative controls. Exactly three Poisson references were added.Fixture SHA256 in both repositories:
a2a78b44b54c704839b1d0aef02184dbb1fb7e751e1f1b0f65ff19131f01ea65.The final renderer runs
norm_num, inspects Lean's goal state, and invokesringonly if a goal remains. It uses no coefficient-specific heuristic, suppression, new declaration or import. JSON, coefficient data and the API pin are unchanged.The prescribed aggregate cross-package Clippy/doctest selectors have the existing standalone dependency-package dev-dependency limitation; focused Polytool checks and the repository CI package checks pass. No workspace or manifest workaround is introduced.