Documentation

MathlibNt.SieveTheory.Distribution.LiuPan.LiuPanActualCountCharacters

Pan (2.4), first line only: actual prime counts, with the true principal remainder retained. No analytic estimate or conductor decomposition is used.

Same-modulus complete amplitude; the whole source sum is inside the norm.

Equations
Instances For
    Inspect dependencies

    MathlibNt.SieveTheory.LiuWeight.liuPanActualCharacterAmplitude · compiled type and proof/definition references.

    noncomputable def MathlibNt.SieveTheory.LiuWeight.liuPanActualPrincipalRaw (main : ℝ → ℝ) (N A₁ A₂ q : ℕ) (f : ℕ → ℝ) :

    Raw principal remainder: not divided by phi, and not a free predicate.

    Equations
    Instances For
      Inspect dependencies

      MathlibNt.SieveTheory.LiuWeight.liuPanActualPrincipalRaw · compiled type and proof/definition references.

      noncomputable def MathlibNt.SieveTheory.LiuWeight.liuPanActualNonprincipalMass (N A₁ A₂ q : ℕ) (f : ℕ → ℝ) :

      Every nonprincipal character of the SAME modulus, with no a-triangle.

      Equations
      Instances For
        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuPanActualNonprincipalMass · compiled type and proof/definition references.

        theorem MathlibNt.SieveTheory.LiuWeight.liuPanActualCount_eq_characterMean (N A₁ A₂ q l : ℕ) (f : ℕ → ℝ) (hq : 0 < q) (hl : IsUnit ↑l) :
        (∑ a ∈ Finset.Ioc A₁ A₂, if a.Coprime q then ↑(f a) * ↑(AnalyticNumberTheory.Sieve.primesInAPBelow N a q l) else 0) = (↑q.totient)⁻¹ * ∑ χ : DirichletCharacter ℂ q, star (χ ↑l) * liuPanActualCharacterAmplitude N A₁ A₂ q f χ
        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuPanActualCount_eq_characterMean · compiled type and proof/definition references.

        theorem MathlibNt.SieveTheory.LiuWeight.liuPanActualCharacterAmplitude_one (N A₁ A₂ q : ℕ) (f : ℕ → ℝ) :
        liuPanActualCharacterAmplitude N A₁ A₂ q f 1 = ∑ a ∈ Finset.Ioc A₁ A₂, if a.Coprime q then ↑(f a) * ∑ p ∈ Finset.range (N / a + 1), if Nat.Prime p ∧ p.Coprime q then 1 else 0 else 0
        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuPanActualCharacterAmplitude_one · compiled type and proof/definition references.

        theorem MathlibNt.SieveTheory.LiuWeight.liuMainPanCoprimeIntervalSum_eq_actualCharacterExpansion (main : ℝ → ℝ) (N A₁ A₂ q l : ℕ) (f : ℕ → ℝ) (hq : 0 < q) (hl : IsUnit ↑l) :
        ↑(liuMainPanCoprimeIntervalSum main N A₁ A₂ q l f) = (∑ χ ∈ Finset.univ.erase 1, star (χ ↑l) * liuPanActualCharacterAmplitude N A₁ A₂ q f χ + ↑(liuPanActualPrincipalRaw main N A₁ A₂ q f)) / ↑q.totient

        Exact complex error decomposition. The phase star(chi(l)) and chi(a) remain coupled until AFTER the complete source summation.

        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuMainPanCoprimeIntervalSum_eq_actualCharacterExpansion · compiled type and proof/definition references.

        theorem MathlibNt.SieveTheory.LiuWeight.abs_liuMainPanCoprimeIntervalSum_le_actualCharacterMass (main : ℝ → ℝ) (N A₁ A₂ q l : ℕ) (f : ℕ → ℝ) (hq : 0 < q) (hl : IsUnit ↑l) :
        |liuMainPanCoprimeIntervalSum main N A₁ A₂ q l f| ≤ (liuPanActualNonprincipalMass N A₁ A₂ q f + |liuPanActualPrincipalRaw main N A₁ A₂ q f|) / ↑q.totient

        Only the outer residue phase is removed; each full a-amplitude survives.

        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.abs_liuMainPanCoprimeIntervalSum_le_actualCharacterMass · compiled type and proof/definition references.

        theorem MathlibNt.SieveTheory.LiuWeight.liuMainPanCoprimeIntervalMaxL_le_actualCharacterMass (main : ℝ → ℝ) (N A₁ A₂ q : ℕ) (f : ℕ → ℝ) (hq : 0 < q) :
        liuMainPanCoprimeIntervalMaxL main N A₁ A₂ q f ≤ (liuPanActualNonprincipalMass N A₁ A₂ q f + |liuPanActualPrincipalRaw main N A₁ A₂ q f|) / ↑q.totient

        Standard reduced-residue maximum, including q=1 and its residue zero.

        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuMainPanCoprimeIntervalMaxL_le_actualCharacterMass · compiled type and proof/definition references.

        The required actual Liu specialization, with real N/a in Li and raw P.

        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuWeight_intervalMaxL_le_nonprincipal_add_principal · compiled type and proof/definition references.

        @[simp]
        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuMainPanCoprimeIntervalMaxL_modulus_zero · compiled type and proof/definition references.

        On primitive inputs this is exactly the existing literal Pan amplitude, with m=q in both coprimality screens. This is an identity, not a conductor step.

        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuPanActualCharacterAmplitude_eq_panSource · compiled type and proof/definition references.

        @[simp]

        Modulus one has no nonprincipal mass; its canonical residue is zero.

        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuPanActualNonprincipalMass_one · compiled type and proof/definition references.

        Inspect dependencies

        MathlibNt.SieveTheory.LiuWeight.liuMainPanCoprimeIntervalMaxL_one_eq_principal · compiled type and proof/definition references.