Zulip Chat Archive

Stream: Is there code for X?

Topic: complex vs real limit


Yaël Dillies (Aug 13 2021 at 16:29):

Where does this lemma belong? Do we already have it? Or maybe it is highly generalisable in ways I'm unaware of?

lemma filter.complex_tendsto_iff_real_tendsto {α : Type*} (l : filter α) (u : α  ) (x : ) :
  tendsto (coe  u) l (𝓝 (x : ))  tendsto u l (𝓝 x) :=
⟨(complex.continuous_re.tendsto x).comp, (complex.continuous_of_real.tendsto x).comp

Anatole Dedecker (Aug 13 2021 at 16:43):

I think this should be a special case of docs#inducing.tendsto_nhds_iff, but I can't find the fact that coe : ℝ → ℂ is an inducing (it's even an embedding actually)

Yaël Dillies (Aug 13 2021 at 16:45):

Oooh, could we cook that up then?

Anatole Dedecker (Aug 13 2021 at 16:52):

You should be able to get it from docs#complex.isometry_of_real, docs#isometry.closed_embedding and then docs#closed_embedding.to_embedding and docs#embedding.to_inducing

Anatole Dedecker (Aug 13 2021 at 16:57):

(Sorry I don't have access to Lean right now so I can't give you the complete proof)

Adam Topaz (Aug 13 2021 at 17:13):

import analysis.complex.basic

noncomputable theory

open filter
open_locale topological_space

lemma filter.complex_tendsto_iff_real_tendsto {α : Type*} (l : filter α) (u : α  ) (x : ) :
  tendsto (coe  u) l (𝓝 (x : ))  tendsto u l (𝓝 x) :=
complex.isometry_of_real.closed_embedding.to_embedding.tendsto_nhds_iff.symm

Adam Topaz (Aug 13 2021 at 17:14):

Just following what Anatole already said.

Adam Topaz (Aug 13 2021 at 17:17):

Perhaps we should have complex.closed_embedding_of_real, complex.embedding_of_real, complex.inducing_of_real, etc.

Yaël Dillies (Aug 13 2021 at 17:18):

Oh wow! You gotta love dot notation.

Yaël Dillies (Aug 13 2021 at 17:20):

I am not knowledgeable enough to decide, but yeah we needed complex_tendsto_iff_real_tendsto. What should I do then? PR that lemma?

Adam Topaz (Aug 13 2021 at 17:22):

My inclination is to define the topological things I mentioned above, and use complex.inducing_of_real.tendsto_nhds_iff, but maybe another maintainer who is more involved with the analysis folder can chime in. @Heather Macbeth ?

Anatole Dedecker (Aug 13 2021 at 17:38):

I agree with Adam, I think the best is to add the topological statements like complex.inducing_of_real and then you can just use complex.inducing_of_real.tendsto_nhds_iff directly

Heather Macbeth (Aug 13 2021 at 17:39):

I think stop at embedding, since we have docs#embedding.tendsto_nhds_iff.

Adam Topaz (Aug 13 2021 at 17:39):

We could also add closed_embedding.tendsto_nhds_iff and isometry.tendsto_nhds_iff.

Yaël Dillies (Aug 13 2021 at 17:58):

I think that's cleaner and less complex-specific.

Yaël Dillies (Aug 15 2021 at 19:45):

By the way, why is isometry a predicate while inducing, embedding, closed_embedding, open_embedding, uniform_inducing, uniform_embedding are all structures?

Heather Macbeth (Aug 15 2021 at 20:26):

There's both, see docs#isometric for the bundled version.

Yaël Dillies (Aug 15 2021 at 20:28):

Ah! Okay

Heather Macbeth (Aug 15 2021 at 20:29):

Or maybe I'm misunderstanding your question? Actually I don't understand why docs#inducing is

structure inducing [ : topological_space α] [ : topological_space β] (f : α  β) : Prop :=
(induced :  = tβ.induced f)

rather than

def inducing [ : topological_space α] [ : topological_space β] (f : α  β) : Prop :=
 = tβ.induced f

Adam Topaz (Aug 15 2021 at 20:29):

I think it's so that you use dot notation

Yaël Dillies (Aug 15 2021 at 20:30):

But you can use dot notation with predicates.

Yaël Dillies (Aug 15 2021 at 20:30):

Maybe it's to then extend it by embedding?

Yaël Dillies (Aug 15 2021 at 20:30):

Then you have several Prop fields

Adam Topaz (Aug 15 2021 at 20:32):

Can you really use dot notation with predicates? I'm thinking e.g. of docs#inducing.continuous_iff

Heather Macbeth (Aug 15 2021 at 20:32):

@Adam Topaz Eg, docs#isometry.dist_eq

Adam Topaz (Aug 15 2021 at 20:33):

Cool! TIL

Heather Macbeth (Aug 15 2021 at 20:33):

There's a lot of it in topology, perhaps. docs#is_open.inter

Adam Topaz (Aug 15 2021 at 20:34):

Oh right. I guess I knew about the is_open stuff.


Last updated: Dec 20 2023 at 11:08 UTC