Public padded list dot-product identities #
Mathlib's ListMatrix.dotProduct is a pure public operation, despite living under the
matrix-tactic path. It sums exactly the requested number of products, with missing entries
zero-padded. These identities reuse that operation instead of defining a second list product.
Main results #
dotProduct_eq_sum_map_range: the finite range formulation used by native certificates.dotProduct_ofFn: agreement with the ordinary finite-vector sum.
theorem Mathlib.Tactic.Matrix.ListMatrix.dotProduct_eq_sum_map_range {R : Type u_1} [Mul R] [AddCommMonoid R] (n : ℕ) (a b : List R) :
The public recursive dot product equals the corresponding sum of padded list lookups.
theorem Mathlib.Tactic.Matrix.ListMatrix.dotProduct_ofFn {R : Type u_1} [Mul R] [AddCommMonoid R] {n : ℕ} (a b : Fin n → R) :
Canonical finite-vector lists give the ordinary dot-product sum.