Zulip Chat Archive
Stream: maths
Topic: Scalar tower/restrict scalars for is_R_or_C
Moritz Doll (Jun 21 2022 at 18:11):
If I have [is_R_or_C k] [module k E]
what is the correct way to get a compatible instance of [module ℝ E]
? explicitly asking for that and [is_scalar_tower ℝ k E]
seems a bit stupid because the action is already determined, but using a similar definition as for the complex numbers (using normed_space.restrict_scalars
) fails because of infinite recursion in type-class resolution
Frédéric Dupuis (Jun 21 2022 at 18:22):
[is_scalar_tower ℝ k E]
is the way to go. From what I recall this instance you have there is bad because it loops when k
is ℝ
(I tried it at some point).
Moritz Doll (Jun 21 2022 at 18:28):
ok, thanks
Last updated: Dec 20 2023 at 11:08 UTC