Zulip Chat Archive

Stream: mathlib4

Topic: FunLike instance for EuclideanSpace


Jireh Loreaux (Mar 29 2024 at 00:12):

Should we give docs#EuclideanSpace and/or docs#WithLp a FunLike instance? Would it even be effective? As it is, it's pretty annoying to work with matrices and these types (especially around Matrix.mulVec) because it's hard not to break the defeq barrier of EuclideanSpace 𝕜 n and n → 𝕜.

Yaël Dillies (Mar 29 2024 at 07:22):

You can try but I believe unfolding EuclideanSpace/WithLp takes priority over looking for a FunLike instance, so your solution would be ineffective.

Jireh Loreaux (Mar 29 2024 at 07:23):

That's what I feared.


Last updated: May 02 2025 at 03:31 UTC