Zulip Chat Archive

Stream: Is there code for X?

Topic: Topology on infinite sequence spaces


Patrick Lutz (Jan 26 2023 at 22:44):

Suppose AA is any set. Then the set of infinite sequences ANA^{\mathbb{N}} has a natural topology, which corresponds to the product topology after giving AA the discrete topology. Such spaces are very common in logic, e.g. they are often the most natural setting for various constructions in descriptive set theory. Does mathlib know about this topology?

And if so, does mathlib already contain basic facts about it? For example, that every closed set corresponds to a set of finite sequences over AA in the following way: for every closed set XANX \subseteq A^{\mathbb{N}}, there is a set CC of finite sequences such that for each xANx\in A^{\mathbb{N}}, xXx \in X if and only if some element of CC is a prefix of xx.

Jireh Loreaux (Jan 26 2023 at 22:53):

The type of sequences with values in A in Lean is just ℕ → A, which is a (non-dependent) Π-type and so inherits the topology docs#Pi.topological_space (which is the product topology). So, if you give A the discrete topology, then ℕ → A will automatically have the topology you want. I'm not sure if we have the prefix result, but I haven't looked, I just don't know off the top of my head.

Patrick Lutz (Jan 26 2023 at 22:55):

Thanks! I suspected that ANA^{\mathbb{N}} should already be a topological space in mathlib but wasn't sure where to look so this is helpful. I'm also still very interested in knowing if mathlib has lemmas of the sort I mentioned

Kevin Buzzard (Jan 26 2023 at 22:55):

Nat can be replaced by any type at all here.

Patrick Lutz (Jan 26 2023 at 22:56):

Kevin Buzzard said:

Nat can be replaced by any type at all here.

Good point, though some of the results I'm interested in only work for N\mathbb{N}

Kevin Buzzard (Jan 26 2023 at 23:16):

By the way, your claim should be about open sets not closed sets, right? And it wouldn't surprise me if there was a result in mathlib giving the canonical basis for a product of (possibly infinitely many) topological spaces.

Patrick Lutz (Jan 26 2023 at 23:17):

Yes, I meant open sets

Junyan Xu (Jan 26 2023 at 23:41):

Should be relatively easy from docs#is_topological_basis_pi

Pedro Sánchez Terraf (Jan 27 2023 at 14:16):

Hi Patrick, @Felix Weilacher has been working on DST and I'm also doing some baby steps into that direction (#17972).

Felix Weilacher (Jan 27 2023 at 14:21):

https://leanprover-community.github.io/mathlib_docs/topology/metric_space/pi_nat.html
has a lot about these spaces.

And for your fact see docs#pi_nat.is_topological_basis_cylinders


Last updated: Dec 20 2023 at 11:08 UTC