Zulip Chat Archive

Stream: Is there code for X?

Topic: Product of Euclidean spaces


Michael Rothgang (Feb 17 2025 at 09:16):

The following should be some fact about pi types (i.e., I would prove this first at that level, and then for PiLp): does mathlib really not have this yet?

def EuclideanSpace.prod (α β : Type*) :
    (EuclideanSpace  α) × (EuclideanSpace  β)  EuclideanSpace  (α  β) := sorry

(I'm interested in the corollary with α = Fin n and β = Fin m.)

Floris van Doorn (Feb 17 2025 at 09:20):

Isn't this docs#Equiv.sumArrowEquivProdArrow up to defeq? The Pi-version is docs#Equiv.sumPiEquivProdPi or docs#Equiv.prodPiEquivSumPi

Floris van Doorn (Feb 17 2025 at 09:20):

Found with

Floris van Doorn (Feb 17 2025 at 09:20):

@loogle Prod, Equiv, Sum

loogle (Feb 17 2025 at 09:20):

:search: Equiv.boolProdEquivSum, Equiv.sumArrowEquivProdArrow, and 61 more

Floris van Doorn (Feb 17 2025 at 09:21):

(it's not easy to search for Pi-types in Loogle, I think)

Floris van Doorn (Feb 17 2025 at 09:22):

docs#ContinuousLinearEquiv.sumPiEquivProdPi might also be relevant.

Michael Rothgang (Feb 17 2025 at 09:28):

Thanks, the first one did the trick!

Eric Wieser (Feb 17 2025 at 10:47):

I would guess you want WithLp on the LHS?

Michael Rothgang (Feb 17 2025 at 12:35):

I do in fact want a homeomorphism between these spaces, so I guess WithLp does help.

Eric Wieser (Feb 17 2025 at 12:40):

docs#LinearIsometryEquiv.piLpCurry may also be of interest

Michael Rothgang (Feb 17 2025 at 12:41):

I was just looking for that: this looks helpful, thanks!

Eric Wieser (Feb 17 2025 at 12:41):

Probably we should have LinearIsometryEquiv.sumPiLpEquivProdPiLp for the version you asked for

Michael Rothgang (Feb 17 2025 at 12:43):

That sounds exactly like what I need, indeed!

Michael Rothgang (Mar 16 2025 at 18:10):

Linking #22973 for posterity

Eric Wieser (Mar 16 2025 at 21:59):

Whoops, I'd forgotten that this is the second time this has been asked for

Eric Wieser (Mar 16 2025 at 22:01):

I've marked it "please adopt", since in the other thread about it I delegated filling the final two sorrys

Jihoon Hyun (Mar 17 2025 at 02:18):

The full proof has now been committed to #22973 !

Eric Wieser (Mar 23 2025 at 01:11):

The dependencies of that PR are now all resolved. Thanks for filling in the gaps, @Jihoon Hyun!


Last updated: May 02 2025 at 03:31 UTC