Reference · Vectors
rainbow.math.linear.vector.norm-pythagorean
Pythagoras and order bounds for native signed-rational vectors. For same-shaped vectors with zero inner product, the existing four-term norm expansion collapses to the exact sum of the two squared norms. Since every self-dot is nonnegative, either summand's squared norm is at most the squared norm of the orthogonal sum. These theorem-only boundaries are the generic bridge from Gram positivity to least-squares optimality. Native and axiom-free on D63.
norm/norm-squared-add-orthogonal
norm/norm-squared-add-orthogonal : (left right : List ℚ) (shape : vector/same-shape left right) (orthogonal : vector/dot left right = 0) → norm/norm-squared (vector/add left right) = norm/norm-squared left + norm/norm-squared right
+ = signed/add0 = signed/zero= = signed/equivalent: equality of rational valuesList = data/Listℚ = signed/SignedRational
norm/norm-squared-left-at-most-orthogonal-sum
norm/norm-squared-left-at-most-orthogonal-sum : (left right : List ℚ) (shape : vector/same-shape left right) (orthogonal : vector/dot left right = 0) → norm/norm-squared left ≤ norm/norm-squared (vector/add left right)
0 = signed/zero= = signed/equivalent: equality of rational valuesList = data/Listℚ = signed/SignedRational≤ = signed/at-most
norm/norm-squared-right-at-most-orthogonal-sum
norm/norm-squared-right-at-most-orthogonal-sum : (left right : List ℚ) (shape : vector/same-shape left right) (orthogonal : vector/dot left right = 0) → norm/norm-squared right ≤ norm/norm-squared (vector/add left right)
0 = signed/zero= = signed/equivalent: equality of rational valuesList = data/Listℚ = signed/SignedRational≤ = signed/at-most