Zulip Chat Archive
Stream: Is there code for X?
Topic: Topology on infinite sequence spaces
Patrick Lutz (Jan 26 2023 at 22:44):
Suppose is any set. Then the set of infinite sequences has a natural topology, which corresponds to the product topology after giving 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 in the following way: for every closed set , there is a set of finite sequences such that for each , if and only if some element of is a prefix of .
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 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
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