OAI/NumberTheory/JointDickman/Counting/PeriodicAverages.lean

GitHub source file

11 declarations, 0 contain sorry, 0 declared as axioms

Finite periodic averages and coprime residue factorization

Integer averages of a function on ZMod q converge to its uniform residue mean. The proof is the exact complete-block/remainder identity. The Chinese remainder equivalence then gives factorization for fixed coprime moduli.

  1. def OAI.JointDickman.periodicAverage line 20
  2. def OAI.JointDickman.residueMean line 23
  3. def OAI.JointDickman.residueEquiv line 26
  4. theorem OAI.JointDickman.residue_sum_eq_range line 32
  5. theorem OAI.JointDickman.periodic_sum_blocks line 40

    Source documentation

    Complete blocks have exactly the same sum, with an unaltered final prefix. This equality also holds when the modulus is zero.

    theorem periodic_sum_blocks {q : ℕ} (f : ZMod q → ℂ) (k r : ℕ) :
        (∑ n ∈ Finset.range (k * q + r), f (n : ZMod q)) =
          (k : ℂ) * (∑ n ∈ Finset.range q, f (n : ZMod q)) +
            ∑ n ∈ Finset.range r, f (n : ZMod q) := by
    …
  6. theorem OAI.JointDickman.periodic_sum_div_mod line 59
  7. theorem OAI.JointDickman.prefix_centered_bound line 67
  8. theorem OAI.JointDickman.periodicAverage_error line 112

    Source documentation

    The remainder error is at most one period times the uniform norm, divided by the averaging length.

    theorem periodicAverage_error {q : ℕ} [NeZero q] (f : ZMod q → ℂ)
        {N : ℕ} (hN : 0 < N) :
        ‖periodicAverage f N - residueMean f‖ ≤ (q : ℝ) * ‖f‖ / N := by
    …

    Mentions: OAI.JointDickman.periodicAverage, OAI.JointDickman.residueMean

  9. theorem OAI.JointDickman.periodicAverage_tendsto line 135
  10. theorem OAI.JointDickman.residueMean_crt line 144

    Source documentation

    Chinese remaindering factors the exact uniform mean at coprime moduli.

    theorem residueMean_crt {m q : ℕ} [NeZero m] [NeZero q]
        (hmq : m.Coprime q) (f : ZMod m → ℂ) (g : ZMod q → ℂ) :
        residueMean (fun a : ZMod (m * q) =>
          f ((ZMod.chineseRemainder hmq) a).1 * g ((ZMod.chineseRemainder hmq) a).2) =
          residueMean f * residueMean g := by
    …

    Mentions: OAI.JointDickman.residueMean

  11. theorem OAI.JointDickman.coprime_residue_average_tendsto line 160

    Source documentation

    Integer averages of two fixed coprime residue tests factor in the limit.

    theorem coprime_residue_average_tendsto {m q : ℕ} [NeZero m] [NeZero q]
        (hmq : m.Coprime q) (f : ZMod m → ℂ) (g : ZMod q → ℂ) :
        Tendsto (fun N : ℕ => (∑ n ∈ Finset.range N,
          f (n : ZMod m) * g (n : ZMod q)) / N)
          atTop (𝓝 (residueMean f * residueMean g)) := by
    …

    Mentions: OAI.JointDickman.residueMean