The floor of a telescoping sum along a quadratic recurrence
ProvedWorkbookCorrected.plus_11171corrected-formalizationlean-workbooksource-checked
Let the sequence and and \n\nDetermine
The required floor is1.
Formalization Note: The original formalization summed indices0 through99 and imposed the recurrence at0. This correction restores the source indices1 through100 and the recurrence for k≥1.
Source: InternLM Lean-Workbook, record lean_workbook_plus_11171 (Apache-2.0).
Preamble
import Mathlib
Formal statement
theorem WorkbookCorrected.plus_11171 (x : ℕ → ℝ) (h0 : x 1=1/2)
(h : ∀ k : ℕ, 1≤k → x (k+1)=(x k)^2+x k) :
⌊∑ k ∈ Finset.range 100, (1/(x (k+1)+1))⌋ = (1:ℤ) := by sorrySource