Zulip Chat Archive
Stream: maths
Topic: formalizing one point compactification
Yourong Zang (Aug 06 2021 at 18:52):
Hello, I've formalized a few things about one-point compactifications. My code is available here. The statements and proofs I wrote are super naive, but I couldn't find a neater way to define the natural topology on option
. Therefore, I am not sure if the things I've done here meet mathlib's standards. Please let me know if there is something in mathlib I should be using.
I proved that the one-point compactification is a compact topological space, and it inherits properties such as t1 from a t1 X, connectedness from a noncompact, preconnected X, and t2 from a locally compact, t2 X. The names I gave to those lemmas are quite generic; I am grateful for any suggestion on them.
Thanks in advance! :grinning:
Yakov Pechersky (Aug 06 2021 at 19:00):
When working on a z : option X
, it's easier to say cases z
than
by_cases z = none,
{ },
{ }
Yourong Zang (Aug 06 2021 at 19:11):
Yakov Pechersky said:
When working on a
z : option X
, it's easier to saycases z
thanby_cases z = none, { }, { }
Will change that.
Yakov Pechersky (Aug 06 2021 at 20:49):
In fact, you can say
rintro ⟨_|z⟩,
Eric Wieser (Aug 06 2021 at 20:55):
That's longer and harder to type than cases z
though
Heather Macbeth (Aug 06 2021 at 20:59):
Some points for discussion (I have to go now, so will check in later):
- is it better to use the type synonym or to make this a topology directly on
option X
? - can you prove the characterization "smallest compactification of X", or even arrange things so that that is the definition?
Mario Carneiro (Aug 06 2021 at 21:01):
Eric Wieser said:
That's longer and harder to type than
cases z
though
That's rintro
, so it's being used to replace intro z, cases z
Mario Carneiro (Aug 06 2021 at 21:02):
although I think the syntax there is wrong, it should be rintro (_|z),
Yakov Pechersky (Aug 06 2021 at 21:20):
either works:
lemma univ_eq_union_none : (set_base X ∪ {none}) = univ :=
begin
refine le_antisymm (subset_univ _) _,
rintro ⟨_|x⟩;
simp
end
Kevin Buzzard (Aug 06 2021 at 22:26):
I suspect that if X is compact then the one point compactification is the second smallest compactification :-) Is there a universal property? There is for Stone-Cech I think but I'm less sure about this one...
Yakov Pechersky (Aug 06 2021 at 22:28):
Here is some golf. It's important to have the right API simp lemmas early, makes trivial proofs trivial.
Heather Macbeth (Aug 06 2021 at 22:28):
@Kevin Buzzard, I'm a little rusty, but there's a universal property stated here:
https://ncatlab.org/nlab/show/one-point+compactification#UniversalProperty
Heather Macbeth (Aug 06 2021 at 22:30):
And there's a reference here to the "smallest compactification" property:
https://math.stackexchange.com/questions/201964/the-smallest-compactification
Yourong Zang (Aug 06 2021 at 22:56):
Yakov Pechersky said:
Here is some golf. It's important to have the right API simp lemmas early, makes trivial proofs trivial.
Thank you so much for the modifications! One question: what does the dot at the end of the lemma coe_ne_none (x : X) : (x : alexandroff X) ≠ none .
do?
Yakov Pechersky (Aug 06 2021 at 23:50):
That the proof is so trivial you don't even need to give a term proof. It's based on the fact that some x \ne none
by the definition of the inductive type.
Kevin Buzzard (Aug 07 2021 at 09:15):
I would have been tempted to call it infty
not none
Yourong Zang (Aug 07 2021 at 10:03):
Kevin Buzzard said:
I would have been tempted to call it
infty
notnone
But in that case, would tactics like cases
and rintro <_|x>
still be neat to use?
Eric Wieser (Aug 07 2021 at 10:07):
I can't help feeling it would be easier to just define the topology on option
, and then only introduce the type alias for the purpose of making the instance
Eric Wieser (Aug 07 2021 at 10:07):
Otherwise you end up rewriting tonnes of option API.
Yourong Zang (Aug 07 2021 at 10:12):
Eric Wieser said:
I can't help feeling it would be easier to just define the topology on
option
, and then only introduce the type alias for the purpose of making theinstance
Do you mean I should define alexandroff X
after constructing the topology of option X
?
Eric Wieser (Aug 07 2021 at 10:36):
I'm suggesting that might at least be easier, yes - although I can't advise on whether it's actually better. Something like:
/-- see note [reducible non-instances] -/
@[reducible] def one_point_compaction : topological_space (option X) := sorry
def alexandroff := option X
instance : topological_space (alexandroff X) := one_point_compaction
Yourong Zang (Aug 07 2021 at 12:06):
Eric Wieser said:
I'm suggesting that might at least be easier, yes - although I can't advise on whether it's actually better. Something like:
/-- see note [reducible non-instances] -/ @[reducible] def one_point_compaction : topological_space (option X) := sorry def alexandroff := option X instance : topological_space (alexandroff X) := one_point_compaction
This looks very neat. Suppose I define aliases of := some, infty := none
like Prof. @Kevin Buzzard suggested and take some x : alexdroff X
. I was wondering if it is possible to do something like cases x
and produce two goals with of x
and infty
.
Eric Wieser (Aug 07 2021 at 13:30):
No, unfortunately you can't make cases do that. The best you can do is something like docs#with_bot.rec_bot_coe
Eric Wieser (Aug 07 2021 at 13:31):
Which you'd use as induction x with alexdroff.rec_of_infty
Yourong Zang (Aug 07 2021 at 14:17):
Eric Wieser said:
Which you'd use as
induction x with alexdroff.rec_of_infty
Thank you!
Eric Wieser (Aug 07 2021 at 14:45):
Oops, I meant using
not with
Yakov Pechersky (Aug 08 2021 at 01:31):
Eric, why should option get that topology as opposed to, let's say, the introduced point being near every other point?
Yourong Zang (Aug 08 2021 at 01:45):
I think that's a good point. It's probably a good idea to define alexandroff
first and construct the topology, instead of doing it on option
. There are only about 4-5 super trivial lemmas from option
we need to prove, similar to those in docs#with_bot. The other trivial lemmas are about sets in the extension, so they must be there regardless of the name we use.
Eric Wieser (Aug 08 2021 at 07:35):
@Yakov Pechersky, option doesn't "get" that topology, it's a def not an instance. My snippet just says "it is possible to construct this topology on option", not "this is the canonical topology on option"
Yakov Pechersky (Aug 08 2021 at 07:36):
Ah, I see. Makes sense!
Eric Wieser (Aug 08 2021 at 07:47):
Having the definition available on option makes it easier (or at least, more discoverable) to apply locally to with_top and with_bot if needed
Eric Wieser (Aug 08 2021 at 07:47):
(do those have a topology in mathlib already?)
Yourong Zang (Aug 08 2021 at 16:18):
Eric Wieser said:
Having the definition available on option makes it easier (or at least, more discoverable) to apply locally to with_top and with_bot if needed
Thank you for this excellent point! Suppose I define topological_space (option X)
first. Should I define the other instances, say t2_space (option X)
for a locally compact, t2 X
in the same way? Or should I do that on alexandroff X
as an instance instead?
Eric Wieser (Aug 08 2021 at 20:55):
Surprisingly you can actually just make the t2 space an instance on option I think
Eric Wieser (Aug 08 2021 at 20:55):
Because it doesn't contain any data
Eric Wieser (Aug 08 2021 at 21:04):
Or from another viewpoint, it is really an instance on one_point_compaction
rather than option X
.
Kyle Miller (Aug 08 2021 at 21:39):
It might be worth distinguishing the two topologies on option X
(I'm not sure if I've followed what the consensus has been on this). If I got this right:
- The forgetful functor from the category of pointed topological spaces to topological spaces has a left adjoint (call it
option
) that introduces a basepoint with the disjoint union topology. - The forgetful functor from the category of pointed locally compact T2 spaces to locally compact T2 spaces (morphisms are proper maps) has a left adjoint (call it
alexandroff
) that introduces a basepoint with the one-point compactification topology.
A relationship between them is that the identity function gives a continuous map option X -> alexandroff X
of pointed spaces.
Though, I'm not sure if I've ever seen the first construction in use. It seems that usually, if you have nice enough connected spaces, you care about homotopy classes of pointed spaces, so you can choose an arbitrary basepoint.
Reid Barton (Aug 09 2021 at 12:05):
The first construction does get used in homotopy theory, and is usually denoted by , though it might be considered largely as a notational device. For example, the unreduced homology of is the reduced homology of .
Last updated: Dec 20 2023 at 11:08 UTC