Zulip Chat Archive

Stream: Is there code for X?

Topic: Direct sum of inner product spaces


Apurva Nakade (Aug 06 2023 at 03:25):

Do we have an inner product space structure on the direct sum of finitely many inner product spaces?

Apurva Nakade (Aug 06 2023 at 04:09):

I also could not find direct sums of submodules of different modules.

Would it be useful to add these two to the library?

Scott Morrison (Aug 06 2023 at 05:46):

I don't think we want the second. If you want to take the direct sum of submodules of different modules, you should just forget they are submodules and take their direct sum as modules.

Eric Wieser (Aug 06 2023 at 07:57):

I think this is a good argument for dropping PiLp and replacing it with WithLp (Π i, A i), WithLp (A × B), WithLp (⊕ I, A I) etc

Eric Wieser (Aug 06 2023 at 07:58):

Though I imagine like Lex, it doesn't really deduplicate anything besides spelling

Yaël Dillies (Aug 06 2023 at 07:59):

I agree with you that this is the right design, though. I believe we already mentioned it a few months back.

Apurva Nakade (Aug 06 2023 at 11:56):

I'm stuck without an innerproduct structure on direct sums/products. I'll try to implement some minimal structure and see how it goes.

Eric Wieser (Aug 06 2023 at 12:00):

Can you just use the inner product on the correponding PiLp space instead?

Apurva Nakade (Aug 06 2023 at 12:11):

I'll read this file carefully and see if it helps.

The same suggests that these are products of L^p space. The proof I'm working on is for general Hilbert spaces though. They don't have a natural L^p norm on them.

Eric Wieser (Aug 06 2023 at 12:12):

Got it, your problem is that you have direct sums with finite support over an infinite space

Apurva Nakade (Aug 06 2023 at 12:13):

Exactly!

Apurva Nakade (Aug 06 2023 at 12:13):

I could restrict to finite dimensional spaces for now ...

Apurva Nakade (Aug 06 2023 at 12:16):

Where this comes up is that if KK is a cone in VV and LL is a cone in WW then KLK \oplus L needs to be a cone in VWV \oplus W and moreover we should get (KL)KL(K \oplus L)^* \cong K^* \oplus L^*. But to make sense of the duals, we need an inner product on VWV \oplus W.

Apurva Nakade (Aug 06 2023 at 12:17):

Here VV and WW are just Hilbert spaces.

Eric Wieser (Aug 06 2023 at 12:25):

Wait, do you mean a binary direct sum (docs#Prod) instead of docs#DirectSum ?

Apurva Nakade (Aug 06 2023 at 12:28):

Either should be fine tbh.

Apurva Nakade (Aug 06 2023 at 12:29):

I don't think I'll be taking direct sums over infinite indices, so the two are isomorphic for the case I need.

Apurva Nakade (Aug 06 2023 at 12:31):

Do we have an inner product space structure on docs#Prod of inner product spaces?

Moritz Doll (Aug 06 2023 at 12:35):

mathlib4#6136

Apurva Nakade (Aug 06 2023 at 13:11):

Perfect!! Thank you

Kevin Buzzard (Aug 06 2023 at 14:29):

Apurva Nakade said:

I don't think I'll be taking direct sums over infinite indices, so the two are isomorphic for the case I need.

Yes but they're not definitionally equal! So it still makes a big difference.

Eric Wieser (Aug 06 2023 at 15:58):

Eric Wieser said:

Though I imagine like Lex, it doesn't really deduplicate anything besides spelling

Actually this isn't true at all, it deduplicates all the boring code that copies across the module structure

Eric Wieser (Aug 06 2023 at 15:59):

So maybe we should make this refactor before #6136

Yaël Dillies (Aug 06 2023 at 16:40):

Sounds sensible to me

Eric Wieser (Aug 06 2023 at 16:48):

branch#eric-wieser/WithLp has a start, feel free to push further to it

Anatole Dedecker (Aug 06 2023 at 19:16):

Let me just indicate that the reason we don't have direct sums of inner product spaces is because in most cases what we really care about are Hilbert spaces, and in general the algebraic direct sum of Hilbert spaces is not an Hilbert space, and its completion is exactly docs#PiLp with p = 2

Apurva Nakade (Aug 06 2023 at 19:59):

Anatole Dedecker said:

Let me just indicate that the reason we don't have direct sums of inner product spaces is because in most cases what we really care about are Hilbert spaces, and in general the algebraic direct sum of Hilbert spaces is not an Hilbert space, and its completion is exactly docs#PiLp with p = 2

This is helpful, thanks! From the name at least I don't understand what docs#PiLp is - I thought this was a very specific metric space. I'll need to read more about this object and it's adjacent defs.


Last updated: Dec 20 2023 at 11:08 UTC