lean_workbook_plus_55065
ProvedGiven a sequence of one-digit numbers with the poperty that if for some we have , then ; and if for some we have , then . Prove that exist two number such that and .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_55065 (a : ℕ → ℕ) (ha : ∀ n, 0 < a n ∧ a n <= 9) (h₁ : ∀ n, a n = 1 → a (n + 1) ≠ 2) (h₂ : ∀ n, a n = 3 → a (n + 1) ≠ 4) : ∃ k l, k ∈ Finset.Icc 1 98 ∧ l ∈ Finset.Icc 1 98 ∧ a k = a l ∧ a (k + 1) = a (l + 1) := by sorry
Source