Zulip Chat Archive

Stream: Is there code for X?

Topic: Scalar multiplication by reals is continuous


Bhavik Mehta (May 05 2021 at 16:40):

import topology.instances.real_vector_space

open_locale classical

instance {n : } : has_continuous_smul  (fin n  ) := infer_instance

What do I need to import for this to be automatic?

Eric Wieser (May 05 2021 at 16:42):

What docs docs#has_continuous_smul have to say about the instances that exist?

Bhavik Mehta (May 05 2021 at 16:43):

Ah - importing normed spaces works. Thanks

Eric Wieser (May 05 2021 at 16:45):

I feel like there's still an instance missing here though; something like this should be true, right?

instance {R : Type*} {ι : Type*} {f : ι  Type*}
  [Π i, has_scalar R (f i)] [ i, topological_space(f i)] [ i, has_continuous_smul R (f i)] :
  has_continuous_smul R (Π i, f i) := sorry

that is, the pi version of docs#prod.has_continuous_smul


Last updated: Dec 20 2023 at 11:08 UTC