Commit 2026-11-25 17:00 1ff2a37b
View on Github →feat(LinearAlgebra/Matrix/ToLin): add API relating toMatrix/toLin and product modules (#46390)
Breaking Change: Previous applications of LinearMap.toMatrix_prodMap will now require additional basis parameters. Change toMatrix_prodMap v₁ v₂ φ₁ φ₂ to toMatrix_prodMap v₁ v₂ v₁ v₂ φ₁ φ₂ to fix.
This PR adds multiple API theorems relating toMatrix/toLin with product modules.
Specifically, it adds three pairs of toMatrix/toLin "inverse" lemmas connecting LinearMap.prod <-> Matrix.fromRows, LinearMap.coprod <-> Matrix.fromCols and LinearMap.coprod (prod ...) (prod ...) <-> Matrix.fromBlocks. It also modifies the hypotheses of toMatrix_prodMap, replacing (φ₁ : Module.End R M₁) (φ₂ : Module.End R M₂) with (φ₁ : M₁ →ₗ[R] M₁') (φ₂ : M₂ →ₗ[R] M₂') (add adding the necessary arguments to do so which may cause issues downstream).