Zulip Chat Archive
Stream: new members
Topic: delta/epsilon notion of continuity
Alex Meiburg (Mar 31 2024 at 20:46):
If I have (f : ℝ → ℝ) (hf₂ : Continuous f)
, how do I get the standard epsilon-delta notion of continuity on "f"? I loogled for a good fifteen minutes and couldn't find it. And so I tried looking at existing proofs that involves continuous real functions because surely one of them had this fact, like sin or cosine and so on, but they all just proof continuity from the fact that f is an order-preserving isomorphism.
The actual definition of continuity is the (less familiar for analysis, more powerful and general) one involving filters and neighborhoods -- and I'm sure there's a "simple" way to turn that into a statement about neighborhoods in R and so get the eps-delta statement, but that involves looking up a bunnnnch more lemmas and so on and seems much harder.
David Renshaw (Mar 31 2024 at 20:48):
Here's how I've done it: https://github.com/dwrensha/compfiles/blob/2a454827870259167c77c91116392000ca3df722/Compfiles/Romania1998P12.lean#L49-L55
There may be a simpler way.
David Renshaw (Mar 31 2024 at 20:49):
Metric.continuous_iff'.mp
then Filter.eventually_iff.mp
then mem_nhds_iff.mp
then Metric.isOpen_iff.mp
Alex Meiburg (Mar 31 2024 at 20:51):
Hmm, alright. Well, it seems like something that should be in mathlib, so fingers crossed -- but otherwise those 4 lines aren't too bad I guess. Thanks. :)
Alex Meiburg (Mar 31 2024 at 20:51):
Also, extend_function_mono
seems like a nice lemma that should be in mathlib
Alex Meiburg (Mar 31 2024 at 20:52):
(except that I would write the conclusion of that lemma as just u = f
by funext.)
Anatole Dedecker (Mar 31 2024 at 20:56):
Is docs#Metric.continuous_iff what you want?
Alex Meiburg (Mar 31 2024 at 20:56):
Yes :face_palm: I don't know why that was so hard to find...
Anatole Dedecker (Mar 31 2024 at 20:57):
Don't blame yourself for not finding such a thing, blame our searching tools!
Jireh Loreaux (Apr 01 2024 at 02:09):
However, if you look at the proof of docs#Metric.tendsto_nhds_nhds, you can get a better idea of how to go from the filter definition to the "more familiar" versions of limits in general.
Last updated: May 02 2025 at 03:31 UTC