A geometric sum bound at an odd prime factor
ProvedGeometricSums.geom_bound_of_mem_primeFactorsA uniform bound for a truncated geometric series at an odd prime.
Let be odd and a prime factor of ; then is odd, hence and the ratio satisfies . For every truncation length ,
The right-hand side is the value of the full infinite series, , so the statement is that every partial sum is bounded by the limit — true because all terms are positive.
The role of the oddness hypothesis is precisely to keep : at the ratio is , the series diverges, and the right-hand side is undefined. Requiring with odd is a convenient way to carry that constraint through a larger argument.
Bounds of this shape arise in sieve and expansion arguments where one sums a geometric progression in over the prime factors of a modulus and needs a bound uniform in the truncation.
Formalization note. \u2113.primeFactors is the finset of primes dividing ; the sum runs
over , so the empty case is included and the bound is then trivial.
import Mathlib
namespace GeometricSums
theorem geom_bound_of_mem_primeFactors {ℓ p : ℕ} (hℓodd : Odd ℓ) (hp : p ∈ ℓ.primeFactors)
(K : ℕ) :
∑ j ∈ Finset.Icc 1 K, ((2 : ℝ) / (p : ℝ)) ^ j ≤ (2 : ℝ) / ((p : ℝ) - 2) := by sorry
end GeometricSums