Finite polynomial exponentials #
Polynomial.finiteExponential D G is the sum of G^j / j! for j ≤ D.
Its differential equation holds through degree D - 1 when G has zero constant term
and the integers 1, …, D are nonzero in the coefficient field. The degree bound also
controls finite-field coefficient extraction.
Adapted from the finite-exponential argument in lean-canny.
noncomputable def Polynomial.finiteExponential {K : Type u_1} [Field K] (D : ℕ) (G : Polynomial K) :
The exponential sum truncated in its power index.
theorem Polynomial.natDegree_finiteExponential_le {K : Type u_1} [Field K] (D : ℕ) (G : Polynomial K) :
Truncating the exponential at power D multiplies the degree bound by D.
theorem Polynomial.derivative_finiteExponential {K : Type u_1} [Field K] (D : ℕ) (G : Polynomial K) (hK : ∀ (j : ℕ), 1 ≤ j → j ≤ D → ↑j ≠ 0) :
derivative (finiteExponential D G) = derivative G * ∑ j ∈ Finset.range D, C (↑j.factorial)⁻¹ * G ^ j
Differentiation cancels factorials whenever the relevant integers are nonzero in the coefficient field.
theorem Polynomial.finiteExponential_coeff_zero {K : Type u_1} [Field K] (D : ℕ) (G : Polynomial K) (hG : G.coeff 0 = 0) :
The constant coefficient is normalized when the exponent has zero constant term.