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 xImport NLAlib.Matrix.Functions.Polynomial.