Reference · Matrices
rainbow.math.linear.matrix.action-prepend
Action laws for inserting a leading column into a native finite matrix. Acting on a column inserted into no prior columns yields exactly the signed scaling of that column. With existing columns, equal row/column count is the necessary premise for the usual decomposition into the scaled inserted column plus the old matrix action; without it native vector/add truncation makes the statement false. Native and axiom-free on D63.
signed/multiply-to-scale-difference
signed/multiply-to-scale-difference : (value factor : ℚ) → value · factor = signed/scale (signed/positive factor) value - signed/scale (signed/negative factor) value
- = signed/subtract= = signed/equivalent: equality of rational values· = signed/multiplyℚ = signed/SignedRational
signed/prepend-action-head
signed/prepend-action-head : (value factor tail-product : ℚ) → value · factor + tail-product = signed/scale (signed/positive factor) value - signed/scale (signed/negative factor) value + tail-product
+ = signed/add- = signed/subtract= = signed/equivalent: equality of rational values· = signed/multiplyℚ = signed/SignedRational
signed/prepend-action-empty-head
signed/prepend-action-empty-head : (value factor : ℚ) → value · factor + 0 = signed/scale (signed/positive factor) value - signed/scale (signed/negative factor) value
+ = signed/add- = signed/subtract0 = signed/zero= = signed/equivalent: equality of rational values· = signed/multiplyℚ = signed/SignedRational
matrix/vector-multiply-prepend-column-empty
matrix/vector-multiply-prepend-column-empty : (factor : ℚ) (values weights : List ℚ) → vector/equivalent (multiply) (vector/signed-scale factor values) where multiply := matrix/vector-multiply (matrix/prepend-column values []) (data/cons ℚ factor weights)
List = data/Listℚ = signed/SignedRational
matrix/vector-multiply-prepend-column
matrix/vector-multiply-prepend-column : (factor : ℚ) (values : List ℚ) (columns : List (List ℚ)) (weights : List ℚ) (shape : vector/same-shape values (matrix/column-shape columns)) → vector/equivalent (multiply) (add) where add := vector/add (vector/signed-scale factor values) (matrix/vector-multiply columns weights) where multiply := matrix/vector-multiply (matrix/prepend-column values columns) (data/cons ℚ factor weights)
List = data/Listℚ = signed/SignedRational