The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Field.GeomSum
8 declarations. Mathlib docs · Source
Partial sums of geometric series in a field
This file determines the values of the geometric series $\sum_{i=0}^{n-1} x^i$ and $\sum_{i=0}^{n-1} x^i y^{n-1-i}$ and variants thereof.
Main statements
geom_sum_Icoproves that $\sum_{i=m}^{n-1} x^i=\frac{x^n-x^m}{x-1}$ in a division ring.geom_sum₂_Icoproves that $\sum_{i=m}^{n-1} x^iy^{n - 1 - i}=\frac{x^n-y^{n-m}x^m}{x-y}$ in a field.
Several variants are recorded, generalising in particular to the case of a division ring in
which x and y commute.
theorem Commute.geom_sum₂ E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {x y : K},
Commute x y → x ≠ y → ∀ (n : ℕ), ∑ i ∈ Finset.range n, x ^ i * y ^ (n - 1 - i) = (x ^ n - y ^ n) / (x - y)
theorem geom_sum_eq E0 #
∀ {K : Type u_1} [inst : DivisionRing K] {x : K}, x ≠ 1 → ∀ (n : ℕ), ∑ i ∈ Finset.range n, x ^ i = (x ^ n - 1) / (x - 1)
theorem Commute.geom_sum₂_Ico E3 #
∀ {K : Type u_1} [inst : DivisionRing K] {x y : K},
Commute x y →
x ≠ y → ∀ {m n : ℕ}, m ≤ n → ∑ i ∈ Finset.Ico m n, x ^ i * y ^ (n - 1 - i) = (x ^ n - y ^ (n - m) * x ^ m) / (x - y)
theorem geom_sum_Ico E3 #
∀ {K : Type u_1} [inst : DivisionRing K] {x : K},
x ≠ 1 → ∀ {m n : ℕ}, m ≤ n → ∑ i ∈ Finset.Ico m n, x ^ i = (x ^ n - x ^ m) / (x - 1)
theorem geom_sum_Ico' E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {x : K},
x ≠ 1 → ∀ {m n : ℕ}, m ≤ n → ∑ i ∈ Finset.Ico m n, x ^ i = (x ^ m - x ^ n) / (1 - x)
theorem geom_sum_inv E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {x : K},
x ≠ 1 → x ≠ 0 → ∀ (n : ℕ), ∑ i ∈ Finset.range n, x⁻¹ ^ i = (x - 1)⁻¹ * (x - x⁻¹ ^ n * x)
theorem geom₂_sum E1 #
∀ {K : Type u_1} [inst : Field K] {x y : K},
x ≠ y → ∀ (n : ℕ), ∑ i ∈ Finset.range n, x ^ i * y ^ (n - 1 - i) = (x ^ n - y ^ n) / (x - y)
theorem geom_sum₂_Ico E3 #
∀ {K : Type u_1} [inst : Field K] {x y : K},
x ≠ y → ∀ {m n : ℕ}, m ≤ n → ∑ i ∈ Finset.Ico m n, x ^ i * y ^ (n - 1 - i) = (x ^ n - y ^ (n - m) * x ^ m) / (x - y)