Functoriality of matrices
module linear-algebra.functoriality-matrices where
Imports
open import elementary-number-theory.natural-numbers open import foundation.universe-levels open import linear-algebra.functoriality-vectors open import linear-algebra.matrices
Idea
An map f : A → B
induces a map matrix A m n → matrix B m n
.
Definition
module _ {l1 l2 : Level} {A : UU l1} {B : UU l2} (f : A → B) where map-matrix : {m n : ℕ} → matrix A m n → matrix B m n map-matrix = map-vec (map-vec f)
Binar maps
module _ {l1 l2 l3 : Level} {A : UU l1} {B : UU l2} {C : UU l3} (f : A → B → C) where binary-map-matrix : {m n : ℕ} → matrix A m n → matrix B m n → matrix C m n binary-map-matrix = binary-map-vec (binary-map-vec f)