Skip to content

Export exact reverse-Hermite recurrence identities for Lean replay - #117

Open
PerAlexandersson wants to merge 6 commits into
mainfrom
feat/lean-replay-a261318
Open

PerAlexandersson wants to merge 6 commits into
mainfrom
feat/lean-replay-a261318

Conversation

@PerAlexandersson

@PerAlexandersson PerAlexandersson commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Why

Exact transform recognition did not provide a Lean replay of the derivative-containing A261139/A261318 example. A finite row fit cannot establish an identity for every index.

Changes

Add a narrow library export for two independently supplied recurrence records:

  • exact comparison of complete rational lag coefficients for a(n)(X+XD)+b(n) and a(n)(X+2XD)+b(n);
  • exact reverse-Hermite checks for every seed, including exceptional prefix rows;
  • versioned JSON, reconstruction verification and a Lean renderer using the companion recurrence-transport theorem;
  • a runnable example using both catalog records, plus exact JSON and generated Lean fixtures.

The generated module defines both sequences independently and proves their transform identity. Source PF and identification with external families remain separate obligations. RealRooted PR #2697 supplies the source proof and an end-to-end target PF and row-tactic regression.

Refresh the reviewed RealRooted source inventory against an independent declaration index pinned to 6e028081. This also corrects the retired Narayana citation to the current RealRooted.IsPFPolynomial.narayanaTransform endpoint, after checking the exact basis and PF contract. Update five discovery-report fingerprint cells solely for that citation change.

Tracks #24 and PerAlexandersson/RealRooted#2140; does not close the remaining adapters or discovery work.

Validation

Current head: 8e0830d939f430ded4c587c5afa17283201f8bf5, containing main d5673053.

The following checks passed before the base refresh, at 228fac159ac7ce1e3b1f67da48a5187afcbcfd2a:

  • Five focused exporter integration tests passed locally and in both full CI runs. They reject altered seeds/indexing/status and a recurrence perturbation invisible through row10.
  • All-target Polytool Clippy, formatting and whitespace checks passed. Earlier feature checks also passed all 109 Polytool doctests, four-package rustdoc, Rust1.82 checks, standalone metadata and package inclusion checks.
  • The independent citation-inventory checks, negative controls and exact previously failing Rust provenance test pass. The subsequent full CI run also passed that provenance guard and the updated published-map recognition test.
  • Compared all 930 recorded discovery outputs using SHA256-verified archived release binaries from before and after the Narayana citation correction. Exactly five reports change, each only at one Lean declaration-name field; replacing that string makes the old and new report bytes identical. All summaries remain identical and the other 925 hashes match unchanged. The five corrected fingerprint cells now match all 930 observed outputs. Parent-prover reruns are not claimed; parent hashes and semantic expectations were preserved.
  • The exact generated Lean fixture and its importing PF/tactic regression compile at RealRooted 23e9e7bbd37318afdea9493ece4418e00ba9858b. All nine changed Lean module linters, source style and the two relevant axiom audits passed; both audits use only the standard axioms.

The prescribed aggregate cross-package Clippy/doctest selectors encounter the existing standalone graph limitation: dependency packages outside the workspace cannot run their dev-dependency tests through those root selectors. The Polytool-only checks above pass; no unrelated workspace changes were made.

Full CI, Python and documentation all passed at 228fac159. See CI, Python and documentation.

Main subsequently advanced through the exact-kernel changes in #115. The current head merges d5673053 and resolves the sole conflict in CHANGELOG.md by retaining both additions. Every replay source, test, documentation and fixture file other than that changelog is byte-identical to the checked feature head; deleting the replay changelog entry recovers main's changelog byte for byte. Whitespace checks and the cross-repository fixture hash pass. Full CI, documentation and Python now pass on the refreshed head 8e0830d: CI, documentation, Python. The initial Python run had one macOS job cancelled before runner allocation; a targeted rerun passed, with no source change.

The companion RealRooted fix at 64caedb also passes all five focused regression targets and both axiom audits; its full Lean and comparator CI have now passed.

Fixture SHA256 in both repositories: 864dd654eb2db884737849af084d7ee739064060390444a2dc86076e90f6e5de. The exporter deliberately retains lean_replay:not_attempted: generating source is not invoking Lean.

The citation correction in f0a26aa
changes one serialized Lean declaration name in five catalog discovery
reports. Update only their discovery hash cells; keep every parent hash,
proof status, route, scope, and other summary field unchanged.

Reviewed all 930 recorded discovery reports using the archived release
MCP binaries from CI runs 46644188417 (b31a8f8)
and 46646446658 (f0a26aa), without a Cargo
rebuild. Artifact IDs 15487471771 and 15487154659 were verified against
their GitHub SHA256 digests before execution. The MCP report store saves
the same canonical serde_json bytes that the integration test hashes.

For A095801, A155537, A162303, A257142, and A318397, the old binary exactly
reproduces the recorded hash, and the new JSON is byte-identical after
replacing one RealRooted.narayanaTransformPreservesPF citation with
RealRooted.IsPFPolynomial.narayanaTransform. The only JSON field changed
is /catalog_lifts/basis_maps/search/lifts/0/map_theorem/lean_declarations/0.
All five summaries are identical. The other 925 discovery hashes match
their existing expectations. An independent source and payload review
confirmed the comparison. No parent-prover rerun is claimed here.

Validation: all 930 new discovery hashes match the updated fixture;
strict TSV comparison preserves every other column; git diff --check.
Retain both the exact-kernel release notes and the replay export entry
in the changelog. All replay source, test and fixture files remain
byte-identical to the previously checked feature head.

This branch has not been deployed

No deployments
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