Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.3, Eq. (18), p. 21 — general solution of a linear recurrence with repeated characteristic roots

Proved
LearnDoFrontier.TwoAction.eq18_general_solution

by mikedeng1 · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

characteristic-rootsdifference-equationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let n≥0n \ge 0n≥0 and q1,…,qn∈Cq_1, \dots, q_n \in \mathbb Cq1​,…,qn​∈C, and consider the homogeneous linear difference equation (16)

x(k+n)+q1x(k+n−1)+⋯+qnx(k)=0,k=0,1,2,…x(k+n) + q_1 x(k+n-1) + \cdots + q_n x(k) = 0, \qquad k = 0, 1, 2, \dotsx(k+n)+q1​x(k+n−1)+⋯+qn​x(k)=0,k=0,1,2,…

Suppose its characteristic polynomial factors as zn+q1zn−1+⋯+qn=∏i=1r(z−zi)miz^n + q_1 z^{n-1} + \cdots + q_n = \prod_{i=1}^r (z - z_i)^{m_i}zn+q1​zn−1+⋯+qn​=∏i=1r​(z−zi​)mi​ with distinct z1,…,zr∈Cz_1, \dots, z_r \in \mathbb Cz1​,…,zr​∈C and multiplicities mi≥1m_i \ge 1mi​≥1 (so ∑imi=n\sum_i m_i = n∑i​mi​=n). Then a sequence x:N→Cx : \mathbb N \to \mathbb Cx:N→C solves (16) if and only if there are coefficients ai,τ∈Ca_{i,\tau} \in \mathbb Cai,τ​∈C (1≤i≤r1 \le i \le r1≤i≤r, 0≤τ≤mi−10 \le \tau \le m_i - 10≤τ≤mi​−1) with

x(k)=∑i=1r∑τ=0mi−1ai,τ(kτ)zik−τfor all k≥0,x(k) = \sum_{i=1}^r \sum_{\tau=0}^{m_i-1} a_{i,\tau} \binom{k}{\tau} z_i^{k-\tau} \qquad \text{for all } k \ge 0,x(k)=i=1∑r​τ=0∑mi​−1​ai,τ​(τk​)zik−τ​for all k≥0,

with the convention (kτ)=0\binom{k}{\tau} = 0(τk​)=0 for k<τk < \tauk<τ.

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 (r=nr = nr=n) and repeated roots.

Formalization Note The statement is over C\mathbb CC 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 k−τk - \tauk−τ is harmless because the binomial coefficient vanishes when k<τk < \tauk<τ.

Preamble
import Mathlib
import Definitions.Def_LearnDoFrontier_TwoAction_Algebra

open Polynomial
Formal statement
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
Source
Zhang, SSRN 3847049 (accepted version with E-Companion), pp. 20–21, §4.3, Eqs. (16)–(18), case (2)
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 23, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me