Reference · Vectors
rainbow.math.linear.vector.norm-parallelogram
The exact parallelogram identity for native signed vectors. signed/parallelogram-recombine norm/norm-squared-parallelogram The scalar lemma cancels the two cross terms in the addition and subtraction expansions as a Grothendieck-pair semiring identity. Substituting the native squared-norm expansions yields ||a+b||^2 + ||a-b||^2 ~ (||a||^2+||a||^2) + (||b||^2+||b||^2) for same-shaped vectors, without division, square roots, or axioms.
signed/parallelogram-recombine
signed/parallelogram-recombine : (a b c d : ℚ) → a + b + (c + d) + (a - b - (c - d)) = a + a + (d + d)
+ = signed/add- = signed/subtract= = signed/equivalent: equality of rational valuesℚ = signed/SignedRational
norm/norm-squared-parallelogram
norm/norm-squared-parallelogram : (left right : List ℚ) (same : vector/same-shape left right) → norm/norm-squared (vector/add left right) + norm/norm-squared (vector/subtract left right) = norm/norm-squared left + norm/norm-squared left + (norm/norm-squared right + norm/norm-squared right)
+ = signed/add= = signed/equivalent: equality of rational valuesList = data/Listℚ = signed/SignedRational