Lefebvre's variations, No. 71 — on a theme by Skolem-Mahler-Lech: the Skolem–Mahler–Lech theorem for recurrences of order two
ProvedLefebvreVariations.skolem_mahler_lech_order_twoLet be a field of characteristic , let and let satisfy
If for infinitely many , then there are and with
In words: the zeros of an order-two linear recurrence with infinitely many zeros contain a full arithmetic progression.
This is the Skolem–Mahler–Lech theorem in its first non-trivial order. For order two it is a divisibility property of Lucas sequences: a zero at and another at forces zeros at every .
Formalization Note The recurrence is Mathlib's LinearRecurrence K with E.order = 2, so E.IsSolution u says u (n + 2) = c₀ u n + c₁ u (n + 1) for all n, where may be zero. The conclusion asks for a d : ℕ with 0 < d.
Why this is a variation. This is a variation on the open platform problem EvasivePatterns.skolem_mahler_lech (the Skolem-Mahler-Lech theorem for arbitrary linear recurrences over a field of characteristic zero). It restricts to recurrences of order exactly two, the first non-trivial order, where the zero set is controlled by a divisibility argument on Lucas sequences. The general theorem, including every order of at least three, remains open on the platform.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib
namespace LefebvreVariations
/-- The Skolem–Mahler–Lech theorem (Evasive Patterns §6, citing Lech 1953) at its first
non-trivial order: a linear recurrence of order `2` over a field of characteristic zero
with infinitely many zeros vanishes along an infinite arithmetic progression.
Source: C. Lech, *A note on recurring series*, Ark. Mat. 2 (1953), 417–421 (general
case); the order-two case is the classical divisibility property of Lucas sequences
(cited from memory, not checked against a specific page).
**Formalization Note** A recurrence is Mathlib's `LinearRecurrence K`, whose `order` is
the number of coefficients, so `E.order = 2` means `u (n + 2) = c₀ u n + c₁ u (n + 1)`
for all `n`, with `c₀`, `c₁` arbitrary (possibly zero). An infinite arithmetic progression
is `{a + d t : t ∈ ℕ}` with `d > 0`. -/
theorem skolem_mahler_lech_order_two {K : Type*} [Field K] [CharZero K]
(E : LinearRecurrence K) (hE : E.order = 2)
(u : ℕ → K) (hu : E.IsSolution u) (hinf : {n : ℕ | u n = 0}.Infinite) :
∃ a d : ℕ, 0 < d ∧ ∀ t : ℕ, u (a + d * t) = 0 := by
sorry
end LefebvreVariations