Zulip Chat Archive

Stream: Is there code for X?

Topic: Equivalence between pi type over singleton and type


Rémy Degenne (Oct 06 2024 at 09:38):

Do we have something like the following?

import Mathlib.Topology.Homeomorph

example {ι : Type*} (α : ι  Type*) [ i, TopologicalSpace (α i)] (i : ι) :
    (Π j : ({i} : Set ι), α j) ≃ₜ α i := sorry

Eric Wieser (Oct 06 2024 at 10:56):

I would expect it to be stated for Unique rather than a singleton

Daniel Weber (Oct 06 2024 at 12:11):

Is this docs#Homeomorph.funUnique ?

Daniel Weber (Oct 06 2024 at 12:12):

Ah, no, that's nondependent

Daniel Weber (Oct 06 2024 at 12:18):

example {ι : Type*} [Unique ι] (α : ι  Type*) [ i, TopologicalSpace (α i)] : (Π j, α j) ≃ₜ α default where
  toEquiv := Equiv.piUnique α
  continuous_toFun := continuous_apply _
  continuous_invFun := continuous_pi fun x => by
    cases x using uniqueElim
    exact continuous_id

Eric Wieser (Oct 06 2024 at 12:29):

I think the non-dependent one should just be an abbrev for what you wrote there

Rémy Degenne (Oct 06 2024 at 14:20):

Thanks! That works perfectly!

Rémy Degenne (Oct 06 2024 at 14:21):

Do you want to PR it? If not, I'll do it at some point when PRing my code that needs it.


Last updated: May 02 2025 at 03:31 UTC