English
PiToModule.fromMatrix maps a matrix to a linear map by aggregating column-wise coefficients against the basis {b_i}.
Русский
PiToModule.fromMatrix переводит матрицу в линейное отображение, агрегируя коэффициенты столбцу относительно базиса {b_i}.
LaTeX
$$PiToModule.fromMatrix R b A w = Fintype.linearCombination R b (A * w)$$
Lean4
/-- The endomorphisms of `M` acts on `(ι → R) →ₗ[R] M`, and takes the projection
to a `(ι → R) →ₗ[R] M`. -/
def fromEnd : Module.End R M →ₗ[R] (ι → R) →ₗ[R] M :=
LinearMap.lcomp _ _ (Fintype.linearCombination R b)