lean_workbook_plus_80981
ProvedLet represent the number of strings of length such that there are no consecutive s. Clearly . Any string of length is composed of a string of length and one additional number. If the last digit is a , then any of strings of length can precede it. If the last digit is a , then the second to last digit must be a , and any of strings of length can precede it. Thus we have the recursion which indeed is the Fibonacci sequence, except with indexes shifted. Matching them, we have , and .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_80981 (a : ℕ → ℕ) (h₀ : a 0 = 1) (h₁ : a 1 = 2) (h₂ : ∀ n, a (n + 2) = a (n + 1) + a n) : a 11 = 233 := by sorry
Source