Formal power series in one variable - Truncation #
PowerSeries.trunc n φ truncates a (univariate) formal power series
to the polynomial that has the same coefficients as φ, for all m < n,
and 0 otherwise.
The nth truncation of a formal power series to a polynomial.
Instances For
theorem
PowerSeries.trunc_apply
{R : Type u_1}
[Semiring R]
(n : ℕ)
(φ : PowerSeries R)
:
(trunc n) φ = ∑ m ∈ Finset.Ico 0 n, (Polynomial.monomial m) ((coeff m) φ)
@[simp]
@[simp]
theorem
PowerSeries.trunc_C
{R : Type u_1}
[Semiring R]
(n : ℕ)
(a : R)
:
(trunc (n + 1)) (C a) = Polynomial.C a
theorem
PowerSeries.trunc_succ
{R : Type u_1}
[Semiring R]
(f : PowerSeries R)
(n : ℕ)
:
(trunc n.succ) f = (trunc n) f + (Polynomial.monomial n) ((coeff n) f)
@[simp]
theorem
PowerSeries.eval₂_trunc_eq_sum_range
{R : Type u_1}
[Semiring R]
{S : Type u_2}
[Semiring S]
(s : S)
(G : R →+* S)
(n : ℕ)
(f : PowerSeries R)
:
Polynomial.eval₂ G s ((trunc n) f) = ∑ i ∈ Finset.range n, G ((coeff i) f) * s ^ i
@[simp]
theorem
PowerSeries.trunc_X_of
{R : Type u_1}
[Semiring R]
{n : ℕ}
(hn : 2 ≤ n)
:
(trunc n) X = Polynomial.X
@[simp]
theorem
PowerSeries.trunc_one_left
{R : Type u_1}
[Semiring R]
(p : PowerSeries R)
:
(trunc 1) p = Polynomial.C ((coeff 0) p)
@[simp]
theorem
PowerSeries.trunc_C_mul
{R : Type u_1}
[Semiring R]
(n : ℕ)
(r : R)
(f : PowerSeries R)
:
(trunc n) (C r * f) = Polynomial.C r * (trunc n) f
@[simp]
theorem
PowerSeries.trunc_mul_C
{R : Type u_1}
[Semiring R]
(n : ℕ)
(f : PowerSeries R)
(r : R)
:
(trunc n) (f * C r) = (trunc n) f * Polynomial.C r
theorem
PowerSeries.eq_shift_mul_X_pow_add_trunc
{R : Type u_1}
[Semiring R]
(n : ℕ)
(f : PowerSeries R)
:
Split off the first n coefficients.
theorem
PowerSeries.eq_X_pow_mul_shift_add_trunc
{R : Type u_1}
[Semiring R]
(n : ℕ)
(f : PowerSeries R)
:
Split off the first n coefficients.
@[simp]
theorem
PowerSeries.trunc_trunc_of_le
{R : Type u_2}
[CommSemiring R]
{n m : ℕ}
(f : PowerSeries R)
(hnm : n ≤ m := by rfl)
:
@[simp]
@[simp]
@[simp]
theorem
PowerSeries.trunc_trunc_mul_trunc
{R : Type u_2}
[CommSemiring R]
{n : ℕ}
(f g : PowerSeries R)
:
@[simp]
theorem
PowerSeries.trunc_coe_eq_self
{R : Type u_2}
[CommSemiring R]
{n : ℕ}
{f : Polynomial R}
(hn : f.natDegree < n)
:
(trunc n) ↑f = f
theorem
PowerSeries.coeff_coe_trunc_of_lt
{R : Type u_2}
[CommSemiring R]
{n m : ℕ}
{f : PowerSeries R}
(h : n < m)
:
The function coeff n : R⟦X⟧ → R is continuous. I.e. coeff n f depends only on a sufficiently
long truncation of the power series f.
theorem
PowerSeries.coeff_mul_eq_coeff_trunc_mul_trunc₂
{R : Type u_2}
[CommSemiring R]
{n a b : ℕ}
(f g : PowerSeries R)
(ha : n < a)
(hb : n < b)
:
The n-th coefficient of f*g may be calculated
from the truncations of f and g.
theorem
PowerSeries.coeff_mul_eq_coeff_trunc_mul_trunc
{R : Type u_2}
[CommSemiring R]
{d n : ℕ}
(f g : PowerSeries R)
(h : d < n)
:
@[simp]
theorem
PowerSeries.trunc_map
{R : Type u_1}
{S : Type u_2}
[Semiring R]
[Semiring S]
(f : R →+* S)
(p : PowerSeries R)
(n : ℕ)
:
(trunc n) ((map f) p) = Polynomial.map f ((trunc n) p)