Repository navigation
Recurrence spaces, phase A: shift operators, filtered finite check, defect identity (#1978) - #1997
Merged
Merged
Conversation
…dentity Formalizes phase A of #1978. - `LinearRecurrence.shiftAction p` acts on sequences by `p(S)`. It is multiplicative, and a monic annihilator with zero initial values forces zero. - The commutator with index multiplication is `(X * p.derivative)(S)`. - `sequenceDerivative_shiftAction`: coefficient-derivative product rule. - `FilteredOperator.apply_eq_zero_iff`: a filtered residual vanishes iff it vanishes for `n < h * k`. - `lagDefect_liftDefect` is the universal source-and-lift defect identity. `liftDefect_eq_zero_of_lagDefect_eq_zero` and `lagDefect_eq_zero_of_liftDefect_eq_zero` give both propagation directions. - Example: the A049325 lag recurrence certifies its first-order lift. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…overage Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
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.
Phase A of #1978: the operator algebra behind turning a long linear recurrence into a shorter
recurrence that involves derivatives (a "derivative lift"), and back.
Shift operators (
RealRooted/Mathlib/Algebra/LinearRecurrence/Operator.lean, upstream-shaped)LinearRecurrence.shiftAction pacts on a sequence by evaluatingpat the shift, i.e.p(S).The action is multiplicative and respects powers.
eq_zero_of_monic_of_shiftAction_eq_zero: if a monicp(S)annihilates a sequence whosefirst
p.natDegreevalues are zero, the sequence is zero.shiftAction_indexMul: commutingp(S)past multiplication by the index produces(X * p.derivative)(S).Operators on polynomial-valued sequences (
RealRooted/RecurrenceSpace/)sequenceDerivative_shiftAction: a product rule,D(p(S) f) = p_X(S) f + p(S)(D f), wherep_Xdifferentiates the coefficients ofp.FilteredOperatorrepresents combinations of the wordsN^u S^j D^s.FilteredOperator.apply_eq_zero_iffreduces "the residual vanishes for alln" to"it vanishes for
n < h * k", for a monic source recurrence of degreek.lagDefect_liftDefectis the universal source-and-lift defect identity.liftDefect_eq_zero_of_lagDefect_eq_zeroandlagDefect_eq_zero_of_liftDefect_eq_zerogivethe two propagation directions under the factor certificate
J = C γ * χ.Tactic/Examples/A049325RecurrenceSpace.lean): the fourth-order lag recurrence ofA049325 certifies the first-order lift
(n+4) P[n+1] = X(X+16) P'[n] + (4 - 4n + 2X) P[n].Phase B (a certificate-replay tactic) and phase C (structure theory) remain open in #1978.
Checks (local)
runLinterpasses against the committednolints.json, with the baseline unchanged.lake exe lint-styleand all guards pass.OEIS_COVERAGE.mdis regenerated and passes--check.🤖 Generated with Claude Code