Zulip Chat Archive

Stream: Is there code for X?

Topic: CompactSpace + MetricSpace gives SeparableSpace


Josha Dekker (Feb 08 2024 at 15:38):

Do we have that a compact metric space is separable? I just came across the statement in a textbook I'm reading (I forgot about it) and I didn't recall proving the analogous result for Lindelöf spaces when I added the basic API for Lindelöf spaces, so thought I'd quickly modify the proof to work for Lindelöf and deduce compact/sigma-compact from there.

Sébastien Gouëzel (Feb 08 2024 at 15:43):

variable {α : Type*} [MetricSpace α] [CompactSpace α]
#synth TopologicalSpace.SeparableSpace α

succeeds. So the answer is yes, we have it. And #synth will even tell you how it got there.

Josha Dekker (Feb 08 2024 at 15:44):

Thank you, I tried moogle and loogle, but I wasn’t successful there… I didn’t think of this way!

Notification Bot (Feb 08 2024 at 15:45):

Josha Dekker has marked this topic as resolved.

Sébastien Gouëzel (Feb 08 2024 at 15:46):

It's gonna be pretty indirect, unless you use the minimal classes, so #synth is really your best friend here. (It will go through second countable topology, and proper spaces...)

Sébastien Gouëzel (Feb 08 2024 at 15:48):

Note that our library is not optimal:

variable {α : Type*} [TopologicalSpace α] [TopologicalSpace.MetrizableSpace α] [CompactSpace α]
#synth SecondCountableTopology α

fails.

Anatole Dedecker (Feb 08 2024 at 21:42):

Yes, I think there are a lot of things that never moved to MetrizableSpace when it was introduced.

Josha Dekker (Feb 08 2024 at 21:59):

I’ll write up that metric (metrizable?) Lindelöf spaces are second countable. If I’ve got time I’ll do it tomorrow, I’m not very familiar with the metric spaces part of the topology library, so not sure how quickly I’ll get it done.

Notification Bot (Feb 09 2024 at 09:47):

Josha Dekker has marked this topic as unresolved.

Josha Dekker (Feb 09 2024 at 09:49):

In the small PR #10376 I add that a Pseudometric Lindelöf space is a SecondCountableTopology, from which SeparableSpace can be synthesised.

Josha Dekker (Feb 09 2024 at 13:29):

Sébastien Gouëzel said:

Note that our library is not optimal:

variable {α : Type*} [TopologicalSpace α] [TopologicalSpace.MetrizableSpace α] [CompactSpace α]
#synth SecondCountableTopology α

fails.

I've incorporated your suggestion on #10376, now this instance also works (via CompactSpace -> LindelofSpace and Metrizable -> PseudoMetrizable)) (after dropping [TopologicalSpace α])


Last updated: May 02 2025 at 03:31 UTC