Determining a sequence from a symmetric index relation
ProvedWorkbookCorrected.plus_66265corrected-formalizationlean-workbooksource-checked
The sequence of real numbers satisfies the relation: for all non-negative integers and , . If find .
The required value is a₂₀₀₄=4018021.
Formalization Note: The source condition m≥n is an antecedent restricting when the recurrence applies. The original formalization asserted m≥n for every pair of natural numbers, making its assumptions inconsistent. This correction restores the implication and proves the requested value from the original recurrence and initial value.
Source: InternLM Lean-Workbook, record lean_workbook_plus_66265 (Apache-2.0).
Preamble
import Mathlib
Formal statement
theorem WorkbookCorrected.plus_66265 (a : ℕ → ℝ) (h0 : a 1 = 3)
(h : ∀ m n : ℕ, n ≤ m → a (m+n)+a (m-n)-(m:ℝ)+(n:ℝ)-1 = 1/2*(a (2*m)+a (2*n))) : a 2004 = 4018021 := by sorrySource