§4.3, Eq. (18), p. 21 — general solution of a linear recurrence with repeated characteristic roots
ProvedLearnDoFrontier.TwoAction.eq18_general_solutionLet and , and consider the homogeneous linear difference equation (16)
Suppose its characteristic polynomial factors as with distinct and multiplicities (so ). Then a sequence solves (16) if and only if there are coefficients (, ) with
with the convention for .
This is the classical description of the solution space of (16), in the binomial form the paper uses for Theorem 6. It covers both of the paper's cases, distinct roots () and repeated roots.
Formalization Note The statement is over and the roots are given as an injective family with the factorization of the characteristic polynomial as a hypothesis. Natural-number subtraction in the exponent is harmless because the binomial coefficient vanishes when .
import Mathlib import Definitions.Def_LearnDoFrontier_TwoAction_Algebra open Polynomial
namespace LearnDoFrontier.TwoAction
theorem eq18_general_solution (n : ℕ) (q : Fin n → ℂ) (r : ℕ) (z : Fin r → ℂ) (m : Fin r → ℕ)
(hz : Function.Injective z) (hm : ∀ i, 1 ≤ m i)
(hchar : charPoly n q = ∏ i : Fin r, (X - C (z i)) ^ (m i)) (x : ℕ → ℂ) :
recSol n q x ↔ ∃ a : (Σ i : Fin r, Fin (m i)) → ℂ, ∀ k : ℕ, x k = rootExp z m a k := by sorry
end LearnDoFrontier.TwoAction
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.