The scalar triple product as a determinant
ProvedFamousTheorems.triple_product_eq_detThe scalar triple product. For three vectors in oriented three-dimensional Euclidean space,
The triple product computes the signed volume of the parallelepiped spanned by the three vectors, and the identity says this agrees with the determinant of the matrix having them as columns. Everything about the triple product follows: it vanishes exactly when the vectors are coplanar, it is invariant under cyclic permutation and changes sign under a transposition, all inherited from the determinant. The identity is also the bridge between the coordinate-free cross product, defined via orientation and the inner product, and its coordinate formula — which is why the cross product exists only in dimension three, where . Formalization note. The determinant is taken of the matrix whose columns are the three vectors expressed in a positively oriented orthonormal basis. The result is Mathlib's triple_product_eq_det.
import Mathlib
namespace FamousTheorems
universe u_1 u_2 u_3 u_4 u_5 u_6 u_7 u_8 u_9 u_10 u_11 u_12 u_13 u_14 u_15 u_16 u_17 u_18 u_19 u_20 u_21 u_22 u_23 u_24 u_25
open Filter Set Topology DirectSum
theorem triple_product_eq_det :
∀ {R : Type u_1} [inst : CommRing R] (u v w : Fin 3 → R),
u ⬝ᵥ (crossProduct v) w = Matrix.det ![u, v, w] := by sorry
end FamousTheorems