Zulip Chat Archive

Stream: Lean Together 2024

Topic: Formalization of Grassmannians


Sophie Morel (Jan 10 2024 at 18:10):

Slides for the talk: https://quatramaran.salle-s.org/~smorel/grassmannians.pdf
Code: https://github.com/smorel394/ExteriorPowers

Florent Schaffhauser (Jan 10 2024 at 18:38):

Is it insufficient for your purposes to assume that EE is a (real or complex) Hilbert space and to take the orthogonal of the rr-dimensional subspace WEW \subset E for your complement? So basically, set U=WU = W^{\perp}.

Kevin Buzzard (Jan 10 2024 at 18:43):

This theory all works over the pp-adic numbers, where there is no concept of \leq.

Johan Commelin (Jan 10 2024 at 18:46):

@Sophie Morel when working on some of the applications that you mentioned, did you run into trouble with the "choicy" parts of the construction?

Sophie Morel (Jan 10 2024 at 18:46):

No, there was no trouble at all, except the psychological problem that things are not canonical.

Johan Commelin (Jan 10 2024 at 18:46):

Ok, that's good news!

Sophie Morel (Jan 10 2024 at 18:47):

As continuous linear maps are smooth, adding some continuous linear equivalences in the charts was not a problem.

Sophie Morel (Jan 10 2024 at 18:48):

Kevin Buzzard said:

This theory all works over the pp-adic numbers, where there is no concept of \leq.

Also, I was thinking about the algebraic variety situation, where we cannot take orthogonals.

Florent Schaffhauser (Jan 10 2024 at 18:58):

Right! So, in finite dimension you can everything in coordinates if you want. And for real or complex Hilbert spaces you can use a canonical complement. But if you want a unified approach, you need to make a choice of a complement in the coordinate-free version. Cool.

Sophie Morel (Jan 10 2024 at 19:00):

That's right. But I don't think it's a good idea to do things in coordinates, even in finite dimension. You don't want the manifold structure to depend on a choice of basis of your vector space.

Florent Schaffhauser (Jan 10 2024 at 19:03):

Presumably, a different basis would give an equivalent atlas, though. So it also depends what is meant by manifold structure.

Sophie Morel (Jan 10 2024 at 19:06):

Yes, all bases give the same manifold structure from the point of view of math. I meant the manifold structure in the sense of mathlib, so the data of a chart around each point.

Florent Schaffhauser (Jan 10 2024 at 19:10):

Is there talk of defining compatible atlases in mathlib?

Eric Wieser (Jan 10 2024 at 23:35):

I note that your repository defines ContinuousAlternatingMap , but docs#ContinuousAlternatingMap already exists in mathlib (as of #5678)! Perhaps it wasn't there when you first looked for it? Or is there something inconvenient about the mathlib definition that meant you needed your own?

Eric Wieser (Jan 10 2024 at 23:36):

(looking forward to seeing the talk when the recording get uploaded :) )

Sophie Morel (Jan 11 2024 at 18:16):

I think it didn't exist when I started, so I'll have to start using the mathlib definition. I don't see the operator norm for ContinuousAlternatingMapss in mathlib and I do need that too, did I miss something ?

Eric Wieser (Jan 11 2024 at 21:17):

I think the norm may indeed be missing; though @Yury G. Kudryashov may have a branch with it if so

Yury G. Kudryashov (Jan 11 2024 at 21:18):

#8691

Yury G. Kudryashov (Jan 11 2024 at 21:19):

I want to have topology on ContinuousAlternatingMaps independent of the norm.

Yury G. Kudryashov (Jan 11 2024 at 21:19):

But I need to make some changes in supporting lemmas to prove equivalence of 2 topologies.

Yury G. Kudryashov (Jan 11 2024 at 21:19):

I'll try to get back to it soon.

Sophie Morel (Jan 11 2024 at 23:17):

There is an obvious norm coming from the one ContinuousMultilinearMaps, and it's the one I was using in my Grassmannian project. (For the rest of the project, I need a norm and not just a topology.) But this is very easy to do anyway.

Yury G. Kudryashov (Jan 12 2024 at 00:00):

This is the norm added in #8691. Probably, we should update&merge it now, change the definition of topology later.

Eric Wieser (Jan 12 2024 at 00:01):

Is the desired topology not just the one induced by the multilinear maps? If so, does that not come for free with the induced norm?

Yury G. Kudryashov (Jan 12 2024 at 00:02):

We have topology on continuous linear maps defined based on TVS structures. I want to do the same for multilinear maps.

Eric Wieser (Jan 12 2024 at 00:03):

Right; I guess my question is what makes inducing that topology nontrivial

Yury G. Kudryashov (Jan 12 2024 at 00:04):

Inducing from ... to ...?

Eric Wieser (Jan 12 2024 at 00:05):

TopologicalSpace.induced AlternatingMap.toMultilinearMap

Yury G. Kudryashov (Jan 12 2024 at 00:06):

This step is trivial. Defining a topology on ContinuousMultilinearMap without asking for a norm is not.

Eric Wieser (Jan 12 2024 at 00:06):

Oh, I thought we already had that bit

Yury G. Kudryashov (Jan 12 2024 at 00:06):

No, we only have it for continuous linear maps, not for multilinear maps.

Eric Wieser (Jan 12 2024 at 00:07):

Yury G. Kudryashov said:

This is the norm added in #8691. Probably, we should update&merge it now, change the definition of topology later.

In that case we should definitely do this

Eric Wieser (Jan 12 2024 at 00:08):

(where between update and merge there is a "label as awaiting-review" step!)

Yury G. Kudryashov (Jan 12 2024 at 00:09):

Sure, I meant that I should update it and label as awaiting-review.

Yury G. Kudryashov (Jan 12 2024 at 03:28):

I merged master and removed commented section. I'll fix variables and docs tomorrow.

Sophie Morel (Jan 12 2024 at 10:10):

Yury G. Kudryashov said:

Sure, I meant that I should update it and label as awaiting-review.

Maybe wait a little, I am preparing a PR to generalize the construction of the operator norm on ContinuousMultilinearMap to the case where the spaces are only seminormed (and not necessarily normed), which will affect this too. I actually use the seminormed case in another project.

Eric Wieser (Jan 12 2024 at 10:25):

I think I tried that in Lean 3, and ran into typeclass timeouts (edit: !3#13566)

Sophie Morel (Jan 12 2024 at 10:28):

I don't have that problem now, but when generalizing the stuff of Mathlib.Analysis.NormedSpace.Multilinear.Basic to seminormed spaces, I needed to add a DecidableEq instance on ι for some things (in particular the existence of the operator norm); here ι is the type indexed the entries of the multilinear maps, so it's a Fintype. Is that kind of thing problematic ? As a mathematician, I don't have any problem making equality decidable (especially on a Fintype !), and many things about multilinear maps already require this, but maybe there is a reason I didn't see not to add the instance?

Eric Wieser (Jan 12 2024 at 10:34):

The fact that you need to add that sounds slightly suspicious, but it's hard to say for sure without seeing a PR

Sophie Morel (Jan 12 2024 at 10:36):

No PR, but I have a branch of mathlib.

Eric Wieser (Jan 12 2024 at 10:38):

I think you should be able to remove [DecidableEq ι] from the theorem statement and add classical to the proof?

Eric Wieser (Jan 12 2024 at 10:38):

Or if that fails, add letI := Classical.decEq ι to the proof, which is a bit more precise

Sophie Morel (Jan 12 2024 at 10:38):

Oh dear, I didn't think about that ! Thanks, I will try !

Eric Wieser (Jan 12 2024 at 10:40):

We used to have CI that would tell you this, but I think it was lost to lean3

Ruben Van de Velde (Jan 12 2024 at 11:32):

I think @Yury G. Kudryashov was working on restoring that one

Yury G. Kudryashov (Jan 12 2024 at 16:05):

I am not working on that yet. I asked for advice here, got no replies, and don't know how to start.

Yury G. Kudryashov (Jan 12 2024 at 16:07):

Sophie Morel said:

Yury G. Kudryashov said:

Sure, I meant that I should update it and label as awaiting-review.

Maybe wait a little, I am preparing a PR to generalize the construction of the operator norm on ContinuousMultilinearMap to the case where the spaces are only seminormed (and not necessarily normed), which will affect this too. I actually use the seminormed case in another project.

#8691 is almost ready anyway. We can generalize in any order.

Sophie Morel (Jan 12 2024 at 19:06):

As you wish. I made my PR, it is #9700. There is really very little that needs to change.

Yury G. Kudryashov (Jan 12 2024 at 20:13):

Assigned to myself. I'll review it over the weekend.

Sophie Morel (Jan 12 2024 at 20:24):

Thank you!

Eric Wieser (Mar 02 2024 at 11:12):

Yury G. Kudryashov said:

We have topology on continuous linear maps defined based on TVS structures. I want to do the same for multilinear maps.

Is there a tracking issue for this anywhere? I feel like TopologicalSpace (ContinuousMultilinearMap _ _ _) has been discussed before elsewhere, but I can't find the previous Zulip thread

Eric Wieser (Mar 02 2024 at 11:16):

Maybe

Yury G. Kudryashov said:

BTW, we can redefine topology on multilinear forms in a similar way.

is what I was thinking of

Anatole Dedecker (Mar 02 2024 at 11:45):

I think Yury has an open PR about that which I’m going to have a look at

Yury G. Kudryashov (Mar 05 2024 at 04:57):

#10777


Last updated: May 02 2025 at 03:31 UTC