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 and a family of vectors and produce the linear combination . The first difference (expressed by the namespace
) is that the first one assumes to be finitely supported, while the second the second assumes that is a finite type. The second difference is that the second insures bilinearity on the two variables and , hence requires that 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 linearCombination
and which one would have a new name, and which name?
Last updated: May 02 2025 at 03:31 UTC