NLA-lib Explorer

Matrix.of_pow_eq_of_eval_basis_mul_vandermonde

Library · theorem

Power rows are Lagrange combinations of Vandermonde rows: for distinct nodes \mathbf{v}_0, \dots, \mathbf{v}_{t-1} with Lagrange basis polynomials \ell_i and Vandermonde matrix \mathbf{V} = (\mathbf{v}_i^j), and any points y_a, \bigl(y_a^{\,j}\bigr)_{a,\,j < t} = \mathbf{L}\,\mathbf{V}\,,\qquad \mathbf{L}_{ai} = \ell_i(y_a)\,.

Matrix.of_pow_eq_of_eval_basis_mul_vandermonde.{u_1, u_2} {F : Type u_1} [Field F] {t : ℕ}
  {α : Type u_2} {v : Fin t → F} (hv : Function.Injective v) (y : α → F) :
  (of fun a j ↦ y a ^ ↑j) =
    (of fun a i ↦ Polynomial.eval (y a) (Lagrange.basis Finset.univ v i)) * vandermonde v

Full source on GitHub

Import NLAlib.ForMathlib.LinearAlgebra.Vandermonde.