NLA-lib Explorer

NLAlib.exists_eval_eq_of_mem_spectrum

Library ยท theorem

One polynomial for two matrices: for any square matrices \mathbf{M}, \mathbf{N} (of possibly different sizes) and f : \mathbb{R} \to \mathbb{R}, some real polynomial p satisfies p(\mathbf{x}) = f(\mathbf{x}) on the real spectra of both, the Lagrange interpolant on their union, which is finite. With Matrix.IsHermitian.cfc_eq_aeval_of_forall_eval_eq it writes f(\mathbf{M}) and f(\mathbf{N}) as the same polynomial.

NLAlib.exists_eval_eq_of_mem_spectrum.{u_1, u_2, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_2}
  {n : Type u_3} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] (M : Matrix n n ๐•œ)
  (N : Matrix m m ๐•œ) (f : โ„ โ†’ โ„) :
  โˆƒ p,
    (โˆ€ x โˆˆ spectrum โ„ M, Polynomial.eval x p = f x) โˆง โˆ€ x โˆˆ spectrum โ„ N, Polynomial.eval x p = f x

Full source on GitHub

Import NLAlib.Matrix.Functions.Polynomial.