/-
Copyright (c) 2026 Giuseppe Sorge. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Giuseppe Sorge
-/modulepublicimportMathlib.Analysis.Calculus.ContDiff.OperationspublicimportMathlib.Data.Matrix.MulpublicimportMathlib.Data.Real.BasicpublicimportMathlib.LinearAlgebra.CrossProduct
The cross product of three-dimensional vectors
Identities for the cross product ⨯₃ on Fin 3 → ℝ, beyond those already in Mathlib, used in the
formalisation of rigid-body dynamics.
@[expose]publicsection
The component form of the triple cross product v ⨯₃ (w ⨯₃ v): by the bac−cab identity its
i-th entry is |v|² wᵢ − (v · w) vᵢ, written with the explicit component sums ∑ k, (v k)² and
∑ j, v j * w j.
Contracting w with the triple cross product v ⨯₃ (w ⨯₃ v) gives (w ⨯₃ v) ⬝ᵥ (w ⨯₃ v)
(over ℝ, the squared length |w × v|²), by two cyclic permutations of the scalar triple
product.