Matrix multiplication represents composition (Three.IV.2)
Openhefferon_matrix_of_composition_eq_mulcompositionlinear-algebramatrix-representation
Let and be linear maps between finite-dimensional vector spaces over a field , with bases , , of , , respectively. Then the matrix representing with respect to and is the product of the matrix representing with respect to and and the matrix representing with respect to and .
Preamble
import Definitions.Def_hefferon_prelude open Matrix open HefferonLinAlg
Formal statement
theorem hefferon_matrix_of_composition_eq_mul
{K : Type*} [Field K] {n m p : ℕ}
{U V W : Type*}
[AddCommGroup U] [Module K U] [AddCommGroup V] [Module K V] [AddCommGroup W] [Module K W]
(B : Module.Basis (Fin n) K U) (C : Module.Basis (Fin m) K V)
(D : Module.Basis (Fin p) K W)
(g : U →ₗ[K] V) (h : V →ₗ[K] W) :
LinearMap.toMatrix B D (h ∘ₗ g) =
LinearMap.toMatrix C D h * LinearMap.toMatrix B C g := by
sorrySource
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter Three, Section IV.2, Theorem 2.6, p. 248