If u(n) tends to a, then 7u(n) tends to 7a
In Lean, a sequence \(u_0, u_1, u_2, ...\) can be represented by a function \(u : ℕ → ℝ\) such that \(u(n)\) is the term \(u_n\).
We define that \(u\) tends to \(a\) by
def tendsTo : (ℕ → ℝ) → ℝ → Prop := fun u c ↦ ∀ ε > 0, ∃ N, ∀ n ≥ N, |u n - c| < ε
Prove that if \(u_n\) tends to \(a\), then \(7u\_n\) tends to \(7a\).
To do this, complete the following Lean4 theory:
import Mathlib.Tactic variable {u : ℕ → ℝ} variable {a : ℝ} def tendsTo : (ℕ → ℝ) → ℝ → Prop := fun u c ↦ ∀ ε > 0, ∃ N, ∀ n ≥ N, |u n - c| < ε example (h : tendsTo u a) : tendsTo (fun n ↦ 7 * u n) (7 * a) := by sorry