The factor theorem
ProvedFamousTheorems.dvd_iff_isRootabstract-algebramathlibring-theory
divides if and only if is a root.
Dividing by with remainder gives with constant; evaluating at shows . So the remainder theorem and the factor theorem are the same statement, and the division algorithm works over any commutative ring because is monic.
The immediate consequence is that a non-zero polynomial of degree over an integral domain has at most roots — which is what makes polynomial interpolation unique, underlies Lagrange interpolation and Reed–Solomon codes, and fails over non-domains such as , where has four roots.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem dvd_iff_isRoot : ∀ {R : Type*} {a : R} [CommRing R] {p : Polynomial R},
(Polynomial.X - Polynomial.C a) ∣ p ↔ p.IsRoot a := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.