Zulip Chat Archive

Stream: Is there code for X?

Topic: Cauchy Sequence is a Cauchy Filter?


Jack McCarthy (Nov 17 2025 at 00:35):

I am working on a theorem about Hilbert spaces (i.e. complete inner-product spaces) and running into some difficulties because the Mathlib "CompleteSpace" is formalized in terms of filters, but my proof uses sequences. I am just looking to prove that my Cauchy sequence "TendsTo" some point in the Hilbert space. I'm wondering if there is any code that reduces the case of filters down to the case of a sequences. Ideally, I'm looking for a theorem like this:

import Mathlib.Probability.Moments.Basic
open Filter

theorem cauchy_sequence [NormedAddCommGroup E] [InnerProductSpace  E] [CompleteSpace E]
  {g :   E}
  (g_cauchy_seq :  (δ : ), δ > 0   N : ,  n m : , n > N  m > N  g n - g m < δ)
  : Cauchy (map g atTop) := sorry

Moritz Doll (Nov 17 2025 at 00:41):

docs#cauchySeq_tendsto_of_complete and docs#cauchySeq_of_le_tendsto_0 should do the trick

Moritz Doll (Nov 17 2025 at 00:52):

(deleted)

Aaron Liu (Nov 17 2025 at 01:14):

That looks like docs#Metric.cauchySeq_iff

Aaron Liu (Nov 17 2025 at 01:15):

and with docs#dist_eq_norm

Jack McCarthy (Nov 17 2025 at 07:28):

Thanks so much!


Last updated: Dec 20 2025 at 21:32 UTC