Skip to content

Export exact Touchard product recurrence identities - #119

Draft
PerAlexandersson wants to merge 3 commits into
feat/poisson-replay-2140from
feat/touchard-replay-2140
Draft

PerAlexandersson wants to merge 3 commits into
feat/poisson-replay-2140from
feat/touchard-replay-2140

Conversation

@PerAlexandersson

@PerAlexandersson PerAlexandersson commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Why

Product recurrences can have nonreal-rooted source factors while their Touchard images are PF. Issue #24 and RealRooted #2140 need an exact connection from an independently specified product recurrence to its expanded Poisson differential recurrence.

Changes

  • Add export_touchard_replay(source, target) and the strict polytool.touchard-replay.v1 record.
  • Recognize the target using the existing Poisson exporter at parameter one; check the full symbolic identity F(n,X) = S(g(n,X)) and every supplied prefix seed.
  • Emit independent source and target definitions and the all-index Touchard identity using RealRooted PR #2705.
  • Retain transformed-factor PF, transformed-seed PF and external-family obligations. Source factors and source rows need no PF assumption. Export status remains lean_replay: not_attempted.
  • Support rational index-dependent factors, split terms, zero/constants and exceptional prefixes, with bounded exact coefficient work.
  • Check raw rectangularized input sizes before parsing, including ragged zero padding, then check output and basis-workspace sizes separately.
  • Add nine focused tests, documentation and the grouped cubic example (X+1/2)(X^2+9/4), whose Touchard image is (X+1/2)(X+3/2)^2.

Stacked on #118. The Lean source citation is independently inventoried from RealRooted commit f85a6b5623d18fbcd9bb0f833c3bd9f7bad91000; it identifies source, not a successful proof run.

Validation

Verified Rust head: d56710aff6cc2fed17444fa14628bb8e54090795; tree d066cc33a5d305756237af5cd4d63ece1ea1f2ed.

  • Four-thread default CI passed: 1,120 unit tests and 848 integration tests passed; the repository's existing ignored tests remain ignored.
  • All nine Touchard tests passed, including exact JSON record and byte-for-byte Lean fixture equality against actual exporter output.
  • All ten existing Poisson tests passed, including its unchanged exact fixtures.
  • Formatting, Clippy, documentation, companion packages, WebAssembly/Node tests, MCP release/smoke tests and all seven main declared-MSRV jobs passed.
  • Whitespace and independent declaration-inventory checks pass. An independent source review checked the symbolic identities, complete prefix handling and allocation order.

Matching Lean fixture SHA256 in both repositories:
ef4a73fdf289722f19815a2a68377aca559c4177f267e171f4a743310265be84.

The broad full-test core job and companion Lean proof build are still running. The expected fixtures have now been verified against actual Rust output; Lean elaboration, environment linters and compile-time axiom checks are separate gates in RealRooted #2705. The exporter keeps lean_replay: not_attempted because source generation does not invoke Lean.

The first CI formatting failure was corrected before the successful results above. No merge is requested.

Tracks #24 and RealRooted #2140.

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