OAI/NumberTheory/JointDickman/Arithmetic/DivisorReindex.lean
2 declarations, 0 contain sorry, 0 declared as axioms
Exact finite reindexing of the amplification divisor sum
- theorem
OAI.JointDickman.sum_divisors_reindexline 12Source documentation
Reindex a divisibility condition by its quotient, retaining the exact finite endpoint and allowing the harmless zero term.
theorem sum_divisors_reindex {M : Type*} [AddCommMonoid M] {a : ℕ} (ha : 0 < a) (N : ℕ) (F : ℕ → M) : (∑ n ∈ (range N).filter (fun n => a ∣ n), F n) = ∑ m ∈ (range N).filter (fun m => a*m < N), F (a*m) := by … - theorem
OAI.JointDickman.sum_dvd_ite_reindexline 39Source documentation
The same identity in indicator form, convenient inside coefficient sums.
theorem sum_dvd_ite_reindex {M : Type*} [AddCommMonoid M] {a : ℕ} (ha : 0 < a) (N : ℕ) (F : ℕ → M) : (∑ n ∈ range N, if a ∣ n then F n else 0) = ∑ m ∈ range N, if a*m < N then F (a*m) else 0 := by …