The areas / V12. Number theory
Mathlib.Analysis.SumOverResidueClass
7 declarations. Mathlib docs · Source
theorem Finset.sum_indicator_mod E1 #
∀ {R : Type u_1} [inst : AddCommMonoid R] (m : ℕ) [inst_1 : NeZero m] (f : ℕ → R), f = ∑ a, {n | ↑n = a}.indicator f
theorem summable_indicator_mod_iff_summable E1 #
∀ {R : Type u_1} [inst : AddCommGroup R] [inst_1 : TopologicalSpace R] [IsTopologicalAddGroup R] (m : ℕ) [hm : NeZero m]
(k : ℕ) (f : ℕ → R), Summable ({n | ↑n = ↑k}.indicator f) ↔ Summable fun n ↦ f (m * n + k)
A sequence f with values in an additive topological group R is summable on the
residue class of k mod m if and only if f (m*n + k) is summable.
theorem not_summable_of_antitone_of_neg E1 #
∀ {f : ℕ → ℝ}, Antitone f → ∀ {n : ℕ}, f n < 0 → ¬Summable f
If f : ℕ → ℝ is decreasing and has a negative term, then f is not summable.
theorem not_summable_indicator_mod_of_antitone_of_neg E1 #
∀ {m : ℕ} [hm : NeZero m] {f : ℕ → ℝ},
Antitone f → ∀ {n : ℕ}, f n < 0 → ∀ (k : ZMod m), ¬Summable ({n | ↑n = k}.indicator f)
If f : ℕ → ℝ is decreasing and has a negative term, then f restricted to a residue
class is not summable.
theorem summable_indicator_mod_iff_summable_indicator_mod E1 #
∀ {m : ℕ} [NeZero m] {f : ℕ → ℝ},
Antitone f → ∀ {k : ZMod m} (l : ZMod m), Summable ({n | ↑n = k}.indicator f) → Summable ({n | ↑n = l}.indicator f)
If a decreasing sequence of real numbers is summable on one residue class
modulo m, then it is also summable on every other residue class mod m.
theorem summable_indicator_mod_iff E0 #
∀ {m : ℕ} [NeZero m] {f : ℕ → ℝ}, Antitone f → ∀ (k : ZMod m), Summable ({n | ↑n = k}.indicator f) ↔ Summable f
A decreasing sequence of real numbers is summable on a residue class if and only if it is summable.
theorem Nat.sumByResidueClasses E1 #
∀ {R : Type u_1} [inst : AddCommGroup R] [inst_1 : UniformSpace R] [IsUniformAddGroup R] [CompleteSpace R] [T0Space R]
{f : ℕ → R}, Summable f → ∀ (N : ℕ) [inst_5 : NeZero N], ∑' (n : ℕ), f n = ∑ j, ∑' (m : ℕ), f (j.val + N * m)
If f is a summable function on ℕ, and 0 < N, then we may compute ∑' n : ℕ, f n by
summing each residue class mod N separately.