Zulip Chat Archive

Stream: mathlib4

Topic: linearCombination


Antoine Chambert-Loir (Mar 04 2025 at 07:49):

There is a slight inconsistency in the definition of docs#Finsupp.linearCombination and docs#Fintype.linearCombination. Both take a family of scalars c:αRc:\alpha \to R and a family of vectors v:αMv:\alpha \to M and produce the linear combination aαc(a)v(a)\sum_{a\in\alpha} c(a) \bullet v(a). The first difference (expressed by the namespace) is that the first one assumes cc to be finitely supported, while the second the second assumes that α\alpha is a finite type. The second difference is that the second insures bilinearity on the two variables cc and vv, hence requires that RR is commutative.

I wonder whether one shouldn't align both definitions.
My impression is that both are needed, and one needs to choose which one would be linearCombinationand which one would have a new name, and which name?


Last updated: May 02 2025 at 03:31 UTC