English
Evaluation of a polynomial via eval₂ equals the sum over terms: eval₂ f x p = sum over e,a of a · f(a) · x^e.
Русский
Вычисление полинома через eval₂ равно сумме по степенным коэффициентам: eval₂ f x p = ∑ a f(a) x^e.
LaTeX
$$$ eval\\_2\\ f\\ x\\ p = p.su m (\\lambda e\\ a, f a \\cdot x^e) $$$
Lean4
/-- Evaluate a polynomial `p` given a ring hom `f` from the scalar ring
to the target and a value `x` for the variable in the target -/
def eval₂ :=
val_proj @wrapped✝.{}