Documentation

MathlibNt.SieveTheory.LinearSieve.Suzuki.SuzukiFiniteAbel

theorem MathlibNt.SieveTheory.LinearSieve.finiteAbelSum_range {𝕜 : Type u_1} [CommRing 𝕜] {R H : 𝕜} (n : ) :
iFinset.range n, (R i - R (i + 1)) * H i = R 0 * H 0 - R n * H n + iFinset.range n, R (i + 1) * (H (i + 1) - H i)

Finite Abel summation on an initial segment.

theorem MathlibNt.SieveTheory.LinearSieve.finiteAbelSum_Ico {𝕜 : Type u_1} [CommRing 𝕜] {a R H : 𝕜} {w z : } (hwz : w z) (hdiff : nFinset.Ico w z, a n = R n - R (n + 1)) :
nFinset.Ico w z, a n * H n = R w * H w - R z * H z + nFinset.Ico w z, R (n + 1) * (H (n + 1) - H n)

Exact finite Abel identity on the natural interval [w,z). The term R (x+1) is the right-endpoint value in the discrete Stieltjes increment.

theorem MathlibNt.SieveTheory.LinearSieve.suzukiLemma85_finiteAbel {𝕜 : Type u_1} [CommRing 𝕜] {a R H : 𝕜} {w z : } (hwz : w z) (hRz : R z = 1) (hdiff : nFinset.Ico w z, a n = R n - R (n + 1)) :
nFinset.Ico w z, a n * H n = -H z + R w * H w + nFinset.Ico w z, R (n + 1) * (H (n + 1) - H n)

Suzuki Lemma 8.5's exact finite Abel identity, before replacing R by its main term plus error. R z = 1 corresponds to the empty tail at the upper endpoint.

theorem MathlibNt.SieveTheory.LinearSieve.suzukiLemma85_finiteAbel_tail {𝕜 : Type u_1} [CommRing 𝕜] (a H : 𝕜) {w z : } (hwz : w z) :
nFinset.Ico w z, a n * H n = -H z + (1 + pFinset.Ico w z, a p) * H w + nFinset.Ico w z, (1 + pFinset.Ico (n + 1) z, a p) * (H (n + 1) - H n)

Fully explicit tail-sum form. A prime sum is obtained by taking a n = 0 off primes. No positivity, monotonicity, continuity, or primality hypothesis is used by this exact finite identity.

def MathlibNt.SieveTheory.LinearSieve.finiteNodeAtomSum {α : Type u_1} {A : Type u_2} [CommRing A] (R g : αA) :
List αA

Sum (R x - R y) * g x over consecutive nodes x,y of a finite list.

Equations
Instances For
    def MathlibNt.SieveTheory.LinearSieve.finiteNodeVariationSum {α : Type u_1} {A : Type u_2} [CommRing A] (R g : αA) :
    List αA

    Sum R y * (g y - g x) over consecutive nodes x,y of a finite list.

    Equations
    Instances For
      theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeAbel {α : Type u_1} {A : Type u_2} [CommRing A] (R g : αA) (w z : α) (interior : List α) :
      finiteNodeAtomSum R g (w :: interior ++ [z]) = R w * g w - R z * g z + finiteNodeVariationSum R g (w :: interior ++ [z])

      Exact finite-node Abel identity. It is intentionally stated for the list w :: interior ++ [z], so the two boundary values remain exactly g w and g z, even when w,z : ℝ are not integers.

      Exact main-ratio/error decomposition #

      The next statements are purely finite algebra. In particular they use no monotonicity, continuity, differentiability, or ordering hypothesis on the nodes. The sign convention makes finiteNodeStieltjesSum F g the left-node sum for -∫ g dF: its increment is F x - F y on an adjacent pair x,y.

      def MathlibNt.SieveTheory.LinearSieve.finiteNodeStieltjesSum {α : Type u_1} {A : Type u_2} [CommRing A] (F g : αA) :
      List αA

      Left-node finite Stieltjes sum with increments F x - F y.

      Equations
      Instances For
        theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeStieltjesSum_eq_atomSum {α : Type u_1} {A : Type u_2} [CommRing A] (F g : αA) (nodes : List α) :

        The atom sum is exactly the finite Stieltjes sum, up to the harmless commutation of the two factors in each summand.

        theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeVariationSum_add {α : Type u_1} {A : Type u_2} [CommRing A] (F E g : αA) (nodes : List α) :
        finiteNodeVariationSum (fun (x : α) => F x + E x) g nodes = finiteNodeVariationSum F g nodes + finiteNodeVariationSum E g nodes

        Variation is additive in the coefficient function.

        The exact main ratio log z / log x, with no domain convention imposed.

        Equations
        Instances For
          noncomputable def MathlibNt.SieveTheory.LinearSieve.finiteNodeMainRatioSum (z : ) (g : ) (nodes : List ) :

          The main finite Stieltjes sum. Explicitly, each adjacent pair x,y contributes g x * (log z / log x - log z / log y). This is the finite object to compare with the ordinary integral against log z / (x * (log x)^2) dx.

          Equations
          Instances For

            Boundary plus variation of the main ratio telescopes exactly to its finite Stieltjes sum. This is unconditional finite algebra.

            theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeAbel_mainRatio_errorVariation (R E g : ) (w u z : ) (interior : List ) (hR : ∀ (x : ), R x = finiteNodeLogRatio z x + E x) :
            finiteNodeAtomSum R g (w :: interior ++ [u]) = finiteNodeMainRatioSum z g (w :: interior ++ [u]) + (E w * g w - E u * g u + finiteNodeVariationSum E g (w :: interior ++ [u]))

            Exact finite-node split for R(x) = log z / log x + E(x).

            The main boundary and variation terms have been telescoped into the finite Stieltjes sum. Every error contribution is retained explicitly as two endpoint terms plus the finite variation of g; there are no analytic assumptions.

            @[simp]

            At a nondegenerate upper endpoint the main ratio has the expected value one, so its upper boundary term is literally -g z.

            theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeVariationSum_le_telescope {α : Type u_1} (E g t : α) (C : ) (w z : α) (interior : List α) (hedge : List.Pairwise (fun (x y : α) => E y * (g y - g x) C * (t x - t y)) (w :: interior ++ [z])) :
            finiteNodeVariationSum E g (w :: interior ++ [z]) C * (t w - t z)

            A finite adjacent-edge majorant telescopes. Pairwise control is stronger than needed, but matches the ordered Suzuki node list.

            theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeVariationSum_mono_of_pairwise {α : Type u_1} (E B g : α) (nodes : List α) (h : List.Pairwise (fun (x y : α) => E y * (g y - g x) B y * (g y - g x)) nodes) :
            theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeVariationSum_smul_left {α : Type u_1} (C : ) (B g : α) (nodes : List α) :
            finiteNodeVariationSum (fun (x : α) => C * B x) g nodes = C * finiteNodeVariationSum B g nodes
            theorem MathlibNt.SieveTheory.LinearSieve.finiteNodeAtomSum_le_telescope {α : Type u_1} (R g t : α) (C : ) (w z : α) (interior : List α) (h : List.Pairwise (fun (x y : α) => (R x - R y) * g x C * (t x - t y)) (w :: interior ++ [z])) :
            finiteNodeAtomSum R g (w :: interior ++ [z]) C * (t w - t z)