theoremweakCauchy_of_uniform_approx {u : ℕ→E}
(h : ∀ε : ℝ, 0 < ε →∃v : ℕ→E, WeakCauchy v ∧∀ i, ‖u i-v i‖ < ε) :
WeakCauchy u :=by
proof · 18
lines
intro f
apply Metric.cauchySeq_iff.mpr
intro ε hε
obtain ⟨v,hv,herr⟩ := h (ε/(4*(‖f‖+1))) (by positivity)
have hferr (i : ℕ) : dist (f (u i)) (f (v i)) < ε/4:=by
rw [dist_eq_norm,← map_sub]
have hh := (lt_div_iff₀ (show0 < 4*(‖f‖+1) by positivity)).mp (herr i)
have hb := f.le_opNorm (u i-v i)
nlinarith [norm_nonneg (u i-v i)]
obtain ⟨N,hN⟩ :=Metric.cauchySeq_iff.mp (hv f) (ε/2) (half_pos hε)
refine ⟨N,fun m hm n hn => ?_⟩
have h₁ := dist_triangle (f (u m)) (f (v m)) (f (u n))
have h₂ := dist_triangle (f (v m)) (f (v n)) (f (u n))
have h₃ := hferr m
have h₄ := hferr n
have h₅ := hN m hm n hn
rw [dist_comm (f (v n)) (f (u n))] at h₂
linarith