Skip to content
Rainbow docs menu

Reference

Vectors

44 modules in src/rainbow/math/linear/vector/. All folders

ModuleWhat it provesTheorems
math.linear.vector.add-cancellationShape-safe cancellation of a common vector from equivalence and order.4
math.linear.vector.add-orderTranslation monotonicity for native signed vectors.6
math.linear.vector.add-reorderFour-term reordering and additive distribution for vector subtraction.2
math.linear.vector.additive-unitsShape-preserving zero and additive-unit laws for native finite vectors.5
math.linear.vector.convex-combinationNormalized two-point convex combinations preserve vector intervals.10
math.linear.vector.dot-additiveAdditivity of the native dot product in its first vector argument.1
math.linear.vector.dot-bilinearRight additivity of the native dot product, completing additive bilinearity.1
math.linear.vector.dot-commutativeCommutativity of the native truncating signed-vector dot product.1
math.linear.vector.dot-congruenceQuotient-safe congruence of the native vector dot product.3
math.linear.vector.dot-distance-boundComponentwise distance accounting for signed dot products.2
math.linear.vector.dot-negateNegation laws for signed multiplication and the native vector dot product.5
math.linear.vector.dot-scaleHomogeneity of the native vector dot product in its first argument.5
math.linear.vector.dot-subtractSubtraction laws for signed values and the native vector dot product.3
math.linear.vector.dot-zero-lawsZero laws for the native dot product and exact squared norm.4
math.linear.vector.equivalenceComponentwise equivalence of signed-rational vectors: two vectors are equivalent when every pair of components is signed-equivalent.5
math.linear.vector.equivalence-lawsStructural laws for length-sensitive componentwise signed-vector equivalence.5
math.linear.vector.equivalence-transitivityTransitivity of length-sensitive componentwise vector equivalence.1
math.linear.vector.negate-additiveNative vector negation distributes over native vector addition.1
math.linear.vector.negate-reflectionInvolutive vector negation reflects order and equivalence.2
math.linear.vector.normThe Euclidean vector norm over signed-rational vectors, built from the inner product and the perfect-square root witness: norm-squared v = <v, v> is-norm v n <=> n * n ~ <v, v> The squared norm is exact (a dot product); the norm itself is exact only on perfect-square instances (a witness n with n*n ~ norm-squared).3
math.linear.vector.norm-congruenceQuotient-safe congruence laws for native squared norms and norm witnesses.2
math.linear.vector.norm-expansionExact quadratic expansions for the native signed squared norm.2
math.linear.vector.norm-lawsAlgebraic laws for the exact signed squared norm.2
math.linear.vector.norm-nonnegativeConstructive nonnegativity of signed squares and native squared norms.3
math.linear.vector.norm-parallelogramThe exact parallelogram identity for native signed vectors.2
math.linear.vector.norm-pythagoreanPythagoras and order bounds for native signed-rational vectors.3
math.linear.vector.norm-witness-lawsTransformation laws for exact native norm witnesses.3
math.linear.vector.norm-zero-characterizationThe proved forward zero-characterization for native exact norms.2
math.linear.vector.norm-zero-reflectionZero squared norm reflects componentwise zero for finite signed vectors.2
math.linear.vector.pointwise-orderLength-sensitive componentwise order for signed-rational vectors.4
math.linear.vector.pointwise-order-lawsPartial-order laws and order-reversing negation for signed vectors.5
math.linear.vector.projected-gradientProjected-gradient steps on finite signed-rational vectors.4
math.linear.vector.row-sum-lipschitzNonnegative row-sum Lipschitz bounds for signed dot products.3
math.linear.vector.scale-additiveUniform nonnegative scaling distributes over native vector addition.1
math.linear.vector.scale-compositionComposition of uniform nonnegative scaling on native signed vectors.1
math.linear.vector.scale-orderNonnegative-rational scaling preserves native positional vector order.2
math.linear.vector.scale-subtractUniform nonnegative scaling commutes with negation and subtraction.2
math.linear.vector.shape-addShape preservation for truncating vector addition and subtraction.4
math.linear.vector.shape-cancellationShape equality and sound cancellation for truncating vector arithmetic.5
math.linear.vector.shape-mapComponentwise maps preserve native vector shape.4
math.linear.vector.subtract-cancellationShape-safe cancellation through native vector subtraction.4
math.linear.vector.subtract-lawsCongruence and mixed-variance order laws for native vector subtraction.4
math.linear.vector.subtract-negationInteraction laws between native vector subtraction and negation.2
math.linear.vector.uniform-clampUniform box projection for finite signed-rational vectors.6