Reference · Matrices
rainbow.math.linear.matrix.add-right
Transpose additivity and right distributivity for native matrices. A joint induction proves that total transpose preserves matrix/same-shape and commutes with matrix/add. Row-wise action additivity then yields matrix multiplication distributivity in its right factor. The only premise is the exact two-level shape equality required by truncating addition; ragged and empty matrices remain supported. Native and axiom-free on D63.
matrix/transpose-additive-with-shape
matrix/transpose-additive-with-shape : (left right : List (List ℚ)) (shape : matrix/same-shape left right) → proposition/conjunction (shape) (equivalent) where equivalent := matrix/equivalent (matrix/transpose (matrix/add left right)) (matrix/add (matrix/transpose left) (matrix/transpose right)) where shape := matrix/same-shape (matrix/transpose left) (matrix/transpose right)
List = data/Listℚ = signed/SignedRational
matrix/transpose-preserves-same-shape
matrix/transpose-preserves-same-shape : (left right : List (List ℚ)) (shape : matrix/same-shape left right) → matrix/same-shape (matrix/transpose left) (matrix/transpose right)
List = data/Listℚ = signed/SignedRational
matrix/transpose-additive
matrix/transpose-additive : (left right : List (List ℚ)) (shape : matrix/same-shape left right) → matrix/equivalent (matrix/transpose (matrix/add left right)) (add) where add := matrix/add (matrix/transpose left) (matrix/transpose right)
List = data/Listℚ = signed/SignedRational
matrix/multiply-additive-right
matrix/multiply-additive-right : (left right offset : List (List ℚ)) (shape : matrix/same-shape right offset) → matrix/equivalent (multiply) (add) where add := matrix/add (matrix/multiply left right) (matrix/multiply left offset) where multiply := matrix/multiply left (matrix/add right offset)
List = data/Listℚ = signed/SignedRational