Reference · Vectors
rainbow.math.linear.vector.negate-additive
Native vector negation distributes over native vector addition. -(left + right) ~ (-left) + (-right) Vector addition truncates to the shorter list, and both sides truncate at the same position. The cons/cons case invokes signed/negate-additive and the tail induction hypothesis. Native and axiom-free on D63.
vector/negate-additive
vector/negate-additive : (left right : List ℚ) → vector/equivalent (vector/negate (vector/add left right)) (add) where add := vector/add (vector/negate left) (vector/negate right)
List = data/Listℚ = signed/SignedRational