Zulip Chat Archive

Stream: Is there code for X?

Topic: Weak dual with discrete topology


Adam Topaz (May 26 2022 at 01:12):

Do we have a version of docs#weak_dual where both the field and vector space are discrete?

Kalle Kytölä (May 26 2022 at 19:18):

I'm not sure I understand what you are asking...

docs#weak_dual currently assumes [comm_semiring 𝕜] [topological_space 𝕜] [has_continuous_add 𝕜] [has_continuous_const_smul 𝕜 𝕜] [add_comm_monoid E] [module 𝕜 E] [topological_space E] . I don't think these type classes rule out discrete topology on the field and the vector space, right? There might not be any API about the discrete case specifically, though, and I'm not sure the instances of these type classes are there for discrete fields and vector spaces. :thinking:

Adam Topaz (May 26 2022 at 19:21):

If kk is a field (with the discrete topology) and VV is a vector space over kk, again with the discrete topology, I would like the dual Homk(V,k)Hom_k(V,k) endowed with the topology induced by the inclusion of Homk(V,k)Hom_k(V,k) into kVk^V with the product topology.

Adam Topaz (May 26 2022 at 19:22):

I'm fairly sure this should (topologically) agree with the weak dual where both VV and kk are discrete.

Adam Topaz (May 26 2022 at 19:24):

To un-xy the question, I'm interested in this because there is a well behaved duality between subspaces of V and closed subspaces of the dual, with this given topology.

Adam Topaz (May 26 2022 at 19:28):

In lean there is an issue with just using weak_dual because I would have to individually give k and V the discrete topology (via a local instance or alias or whatever). But I think this is a sufficiently common case that it might deserve its own name without the additional typeclass gymnastics.

Kalle Kytölä (May 26 2022 at 19:30):

Adam Topaz said:

I'm fairly sure this should (topologically) agree with the weak dual where both VV and kk are discrete.

So I think the weak_dual should be a type in this case which has a topology --- if the field and the vector space have instances of the discrete topology, and if the (trivial) has_continuous_add 𝕜etc. have also been instantiated. (And I think it should indeed be almost by definition that the topology you want agrees with the topology on weak_dual, as you say.)

But I see you'd like to do that without the instances (typeclass gymnastics, in technical terms :gymnastics:)... I do not have a lot of experience to comment on that design decision.

Kalle Kytölä (May 26 2022 at 19:43):

Do we have discrete topology instances on (common) discrete fields, and if not, would it be a terrible idea?

I can believe that automatically equipping vector spaces over discrete fields with discrete topology can be more problematic. But at some point one would anyway have to tell Lean (either explicitly with type class instances or implicitly by using a synonym of weak_dual meant for this purpose) that the intended topology on the vector space is discrete, right?

Again, these are just naive questions --- I don't know which ways would work well for your purpose.


Last updated: Dec 20 2023 at 11:08 UTC