English
A lemma used to identify the SylvesterDeriv for polynomials whose natDegree equals three; it relates to the expression of the SylvesterDeriv in this degree case.
Русский
Лемма о вычислении SylvesterDeriv полинома при natDegree = 3; выражение зависит от конкретного формата для диапазона трех степеней.
LaTeX
$$$\\text{SylvesterDeriv\\_of\\_natDegree\\_eq\\_three}$$$
Lean4
/-- `scaleRoots p s` is a polynomial with root `r * s` for each root `r` of `p`. -/
noncomputable def scaleRoots (p : R[X]) (s : R) : R[X] :=
∑ i ∈ p.support, monomial i (p.coeff i * s ^ (p.natDegree - i))