Reference · Vectors
rainbow.math.linear.vector.shape-map
Componentwise maps preserve native vector shape. The general theorem covers every signed-to-signed component mapping. Native vector negation, uniform scaling, and zero-like construction are reducible specializations. The proof is one List induction whose head obligation is signed zero reflexivity. Native and axiom-free on D63.
vector/map-preserves-shape
vector/map-preserves-shape : (mapping : ℚ → ℚ) (values : List ℚ) → vector/same-shape (list/map ℚ ℚ mapping values) values
List = data/Listℚ = signed/SignedRational
vector/negate-preserves-shape
vector/negate-preserves-shape : (values : List ℚ) → vector/same-shape (vector/negate values) values
List = data/Listℚ = signed/SignedRational
vector/scale-preserves-shape
vector/scale-preserves-shape : (rate : ℚ≥0) (values : List ℚ) → vector/same-shape (vector/scale rate values) values
List = data/Listℚ = signed/SignedRationalℚ≥0 = nnrat/NonnegativeRational
vector/zero-like-preserves-shape
vector/zero-like-preserves-shape : (values : List ℚ) → vector/same-shape (vector/zero-like values) values
List = data/Listℚ = signed/SignedRational