lean_workbook_plus_19079
ProvedThe polynomial sort of looks like This polynomial expands out to: At this point, we can hope that some things will come out nicely. For one, we like that term, so if we're going to multiply this by something to get the given polynomial, it's going to be something like Another things is to check the leading coefficient in the polynomial: it's Because we have we just need to multiply by to get what we want. Summing up, let's try multiplying by This gives:
Thus, we have:
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_19079 (x : ℝ) : x^4 - 2 * x^3 + 2 * x - 1 = (x - 1)^3 * (x + 1) := by sorry
Source