Documentation

MathlibNt.SieveTheory.Distribution.LiuPan.LiuPanPrimePowerLargeSieve

@[irreducible]

The (ordered) dyadic blocks in the binary decomposition of [start,start+rem). The recursive call is on the remainder after removing the largest dyadic block.

Equations
Instances For
    def MathlibNt.SieveTheory.dyadicBlockSum {α : Type u_1} [AddCommMonoid α] (f : α) (b : × ) :
    α
    Equations
    Instances For
      theorem MathlibNt.SieveTheory.dyadicPrefixBlocks_sum {α : Type u_1} [AddCommMonoid α] (f : α) (start rem : ) :
      (List.map (dyadicBlockSum f) (dyadicPrefixBlocks start rem)).sum = nFinset.Ico start (start + rem), f n
      theorem MathlibNt.SieveTheory.list_sq_sum_le (l : List ) :
      l.sum ^ 2 l.length * (List.map (fun (x : ) => x ^ 2) l).sum
      theorem MathlibNt.SieveTheory.dyadic_prefix_norm_sq_le {α : Type u_1} [SeminormedAddCommGroup α] (f : α) (start rem : ) :
      nFinset.Ico start (start + rem), f n ^ 2 (dyadicPrefixBlocks start rem).length * (List.map (fun (b : × ) => nFinset.Ico b.1 (b.1 + b.2), f n ^ 2) (dyadicPrefixBlocks start rem)).sum

      Möbius inversion of the coprimality indicator in the coefficient field used by the character sums.

      An induced character is its primitive character times the exact coprimality indicator for the quotient of its level by its conductor.

      Exact Möbius expansion of the noncoprime correction for an induced Dirichlet character.

      theorem MathlibNt.SieveTheory.sum_range_ite_dvd {α : Type u_1} [AddCommMonoid α] (f : α) {e : } (he : 0 < e) (y : ) :
      (∑ nFinset.range (y + 1), if e n then f n else 0) = mFinset.range (y / e + 1), f (e * m)

      Reindex a finite sum restricted to multiples of e by its quotient.

      theorem MathlibNt.SieveTheory.characterPrefixSum_eq_sum_primitive_dilations {q : } [NeZero q] (a : ) (χ : DirichletCharacter q) (y : ) :
      nFinset.range (y + 1), a n * χ n = e(q / χ.conductor).divisors, (ArithmeticFunction.moebius e) * χ.primitiveCharacter e * mFinset.range (y / e + 1), a (e * m) * χ.primitiveCharacter m

      Conductor-first transfer for one prefix. The noncoprime correction is linearized before any character Cauchy--Schwarz: each divisor e dilates the coefficient sequence and leaves one primitive character sum.

      A Dirichlet-character value has norm at most one, including at nonunits.

      The complex cast of the Möbius function has norm at most one.

      theorem MathlibNt.SieveTheory.characterPrefixSum_norm_le_sum_primitive_dilations {q : } [NeZero q] (a : ) (χ : DirichletCharacter q) (y : ) :
      nFinset.range (y + 1), a n * χ n e(q / χ.conductor).divisors, mFinset.range (y / e + 1), a (e * m) * χ.primitiveCharacter m

      The conductor-first linear transfer for one prefix. Crucially, the triangle inequality is taken only after the exact noncoprime Möbius expansion; no all-character square mean is introduced.

      noncomputable def MathlibNt.SieveTheory.characterPrefixSquare (a : ) (q y : ) (χ : DirichletCharacter q) :
      Equations
      Instances For
        Equations
        Instances For

          The pointwise Rademacher--Menshov reduction. Unlike a maximum taken after the character average, this keeps the prefix maximum inside each primitive character summand, which is the form needed for conductor regrouping.

          Exact primitive-character maximal reduction with the prefix maximum inside the character sum and the original q / φ(q) weight unchanged.

          noncomputable def MathlibNt.SieveTheory.natZeroExtension (a : ) :

          Extend a sequence on the naturals by zero to the integers. This is the coefficient interface required by bombieriDavenport_le.

          Equations
          Instances For
            theorem MathlibNt.SieveTheory.natZeroExtension_block_sum (a : ) (start len q : ) (χ : DirichletCharacter q) :
            zFinset.Icc (start - 1 + 1) (start - 1 + len), natZeroExtension a z * χ z = nFinset.Ico start (start + len), a n * χ n
            theorem MathlibNt.SieveTheory.natZeroExtension_block_norm_sq_sum (a : ) (start len : ) :
            zFinset.Icc (start - 1 + 1) (start - 1 + len), natZeroExtension a z ^ 2 = nFinset.Ico start (start + len), a n ^ 2
            theorem MathlibNt.SieveTheory.primitiveCharacterBlockMean_le_largeSieve (Q : ) (hQ : 0 < Q) (a : ) (start len : ) :
            qFinset.Icc 1 Q, q / q.totient * χ : DirichletCharacter q with χ.IsPrimitive, nFinset.Ico start (start + len), a n * χ n ^ 2 AnalyticNumberTheory.LargeSieve.largeSieveBound len (1 / Q ^ 2) * nFinset.Ico start (start + len), a n ^ 2

            Bombieri--Davenport on one natural-number block, retaining exactly the original primitive-character and q / φ(q) weights.

            theorem MathlibNt.SieveTheory.dyadicAlignedBlocks_sum {α : Type u_1} [AddCommMonoid α] (f : α) (p J : ) :
            jFinset.range J, nFinset.Ico (j * p) ((j + 1) * p), f n = nFinset.range (J * p), f n

            The adjacent aligned blocks of a fixed length partition their union.

            theorem MathlibNt.SieveTheory.dyadicAlignedBlocks_energy_le (a : ) (N p : ) :
            jFinset.range ((N + 1) / p), nFinset.Ico (j * p) ((j + 1) * p), a n ^ 2 nFinset.range (N + 1), a n ^ 2

            At a fixed aligned dyadic scale, every coefficient energy is charged at most once.

            theorem MathlibNt.SieveTheory.primitiveCharacterAlignedDyadicBlockMean_le (Q : ) (hQ : 0 < Q) (a : ) (N p : ) (hp : p N + 1) :
            jFinset.range ((N + 1) / p), qFinset.Icc 1 Q, q / q.totient * χ : DirichletCharacter q with χ.IsPrimitive, nFinset.Ico (j * p) ((j + 1) * p), a n * χ n ^ 2 AnalyticNumberTheory.LargeSieve.largeSieveBound (N + 1) (1 / Q ^ 2) * nFinset.range (N + 1), a n ^ 2

            The primitive-character square mean over all aligned blocks at one scale. The coefficient energy occurs only once, rather than once for every prefix.

            theorem MathlibNt.SieveTheory.primitiveCharacterAlignedDyadicMean_le (Q : ) (hQ : 0 < Q) (a : ) (N : ) :
            kFinset.range (1 + Nat.log 2 (N + 1)), jFinset.range ((N + 1) / 2 ^ k), qFinset.Icc 1 Q, q / q.totient * χ : DirichletCharacter q with χ.IsPrimitive, nFinset.Ico (j * 2 ^ k) ((j + 1) * 2 ^ k), a n * χ n ^ 2 ↑(1 + Nat.log 2 (N + 1)) * (AnalyticNumberTheory.LargeSieve.largeSieveBound (N + 1) (1 / Q ^ 2) * nFinset.range (N + 1), a n ^ 2)

            Summing the aligned block estimate through the binary scales costs just one fixed logarithmic factor.

            theorem MathlibNt.SieveTheory.dyadicPrefixBlocks_start_le (start rem : ) (b : × ) (hb : b dyadicPrefixBlocks start rem) :
            start b.1

            Every block in the recursive decomposition starts no earlier than the left endpoint of the interval being decomposed.

            theorem MathlibNt.SieveTheory.dyadicPrefixBlocks_aligned_aux (rem K start : ) (hstart : 2 ^ K start) (hlog : Nat.log 2 rem K) (b : × ) (hb : b dyadicPrefixBlocks start rem) :
            kK, b.2 = 2 ^ k 2 ^ k b.1 b.1 + b.2 start + rem

            Alignment, scale control, and containment in the original interval for each recursively selected dyadic block.

            theorem MathlibNt.SieveTheory.dyadicPrefixBlocks_aligned (y : ) (b : × ) (hb : b dyadicPrefixBlocks 0 y) :
            kNat.log 2 y, b.2 = 2 ^ k 2 ^ k b.1 b.1 + b.2 y
            Equations
            Instances For
              theorem MathlibNt.SieveTheory.alignedDyadicBlockIndices_sum (N : ) (f : × ) :
              bFinset.map alignedDyadicBlockEmbedding (alignedDyadicBlockIndices N), f b = kFinset.range (1 + Nat.log 2 (N + 1)), jFinset.range ((N + 1) / 2 ^ k), f (j * 2 ^ k, 2 ^ k)
              theorem MathlibNt.SieveTheory.dependent_sum_comm {α : Type u_1} {γ : Type u_2} {δ : Type u_3} {β : αType u_4} [AddCommMonoid δ] (s : Finset α) (t : (a : α) → Finset (β a)) (u : Finset γ) (f : (a : α) → β aγδ) :
              as, bt a, cu, f a b c = cu, as, bt a, f a b c
              theorem MathlibNt.SieveTheory.primitiveCharacterDyadicMaxMean_le_aligned (Q : ) (a : ) (N : ) :
              primitiveCharacterDyadicMaxMean Q a N kFinset.range (1 + Nat.log 2 (N + 1)), jFinset.range ((N + 1) / 2 ^ k), qFinset.Icc 1 Q, q / q.totient * χ : DirichletCharacter q with χ.IsPrimitive, nFinset.Ico (j * 2 ^ k) ((j + 1) * 2 ^ k), a n * χ n ^ 2

              The existing dyadic-prefix maximum is controlled by the aligned block family. The latter has one copy of the coefficient energy at each scale.

              End-to-end maximal Bombieri--Davenport estimate for natural coefficients. The two fixed logarithmic factors respectively come from the prefix Rademacher--Menshov reduction and the aligned dyadic scales.

              Truncating a coefficient sequence at the largest index used by a prefix maximum does not change that maximum.

              The maximal large sieve only charges coefficients actually occurring in its prefixes; the apparent final endpoint in the aligned-block proof is removable by truncation.

              theorem MathlibNt.SieveTheory.largeSieveBound_le_mul_log_of_sq_le (N Q : ) (hN : 1 N) (hQ : 0 < Q) (hQsq : Q ^ 2 N) :
              AnalyticNumberTheory.LargeSieve.largeSieveBound (N + 2) (1 / Q ^ 2) (17 + 4 / Real.log 2) * N * Real.log ↑(N + 2)

              At square-root conductor range, the explicit weak large-sieve constant costs only one logarithm.

              A positive dilation selects distinct coefficients from the original [0,N] energy and therefore cannot increase its square mass.

              The maximal primitive mean of every positive dilation is controlled by the same undilated coefficient energy.

              After taking square roots, every positive dilation has one common large-sieve and dyadic factor.

              The finite set of genuinely nonprincipal characters at a fixed level.

              Equations
              Instances For

                The primitive-prefix majorant obtained from one induced character after the exact Möbius dilation expansion.

                Equations
                Instances For

                  A prefix norm is bounded by the square root of its finite prefix-square maximum.

                  Every induced-character prefix is bounded linearly by primitive prefixes of the dilated coefficient sequences.

                  Triangle inequality for the exact nonprincipal character expansion, before any Cauchy--Schwarz step.

                  The maximum over residue classes and prefixes is bounded before conductor regrouping by the linear induced-character primitive-prefix majorant.

                  A primitive character agrees pointwise with its canonical primitive character. The pointwise form avoids transporting across conductor equality.

                  Prefix squares of the primitive character underlying a lifted primitive character are exactly the original primitive-character prefix squares.

                  The finite prefix-square maximum is unchanged when the character is first lifted and then canonically reduced to its primitive conductor.

                  Prefix-square maxima are nonnegative.

                  The primitive characters form a subset of all characters, whose cardinality is Euler's totient.

                  Cauchy--Schwarz over the primitive characters at one exact conductor.

                  Normalization of every lifted induced upper bound to the original primitive character and the explicit conductor quotient.

                  At a fixed positive level and conductor greater than one, the conductor fiber is exactly the injective image of primitive characters.

                  Reindexing a fixed conductor fiber loses no multiplicity: every induced character is represented by exactly one primitive character.

                  The conductor-first transfer after exact reindexing by primitive characters. Divisibility of the conductor into the inducing level and the conductor-one exclusion remain explicit.

                  Equations
                  Instances For

                    The primitive-lift transfer after removing all dependent conductor transports. Every remaining term is a prefix maximum at the explicit conductor d for a dilated coefficient sequence.

                    Equations
                    Instances For
                      theorem MathlibNt.SieveTheory.LiuWeight.sum_Icc_dvd_eq_sum_Icc_div (Q d : ) (hd : 0 < d) (f : ) :
                      (∑ qFinset.Icc 1 Q, if d q then f q else 0) = rFinset.Icc 1 (Q / d), f (d * r)

                      Positive multiples of d in [1, Q] are uniquely parametrized by their positive cofactors in [1, Q / d].

                      Summing the complementary cofactor weight over multiples of a fixed divisor costs at most the finite H₃ mass.

                      The three-factor decomposition remains an upper bound without a squarefree hypothesis, because nonsquarefree product weights vanish.

                      The primitive dilation transfer with inducing levels written uniquely as q = d * r. This removes the divisibility branch while retaining the conductor-one exclusion and every cofactor/divisor multiplicity.

                      Equations
                      Instances For

                        Algebraic square-root factorization that aligns the conductor coefficient with J₉ and the d / φ(d) primitive large-sieve weight.

                        Squaring the squarefree modulus weight gives exactly the J₉ summand.

                        The conductor square mass on [2,Q] is contained in the finite J₉ mass.

                        Restricting the primitive maximal mean to conductors at least two can only decrease it.

                        The positive dilation weights on [1,Q] are contained in H₃(Q).

                        All primitive means in the exact H₃/J₉ transfer are bounded by one global coefficient energy and one common large-sieve factor.

                        Abstract cofactor summation: after the squarefree three-factor estimate, the complementary quotient is absorbed by H₃.

                        The exact cofactor transfer is bounded by the explicit post-H₃ conductor/dilation functional.

                        Cauchy--Schwarz over the primitive characters at each exact conductor, without summing over inducing levels first.

                        Cauchy--Schwarz over conductors gives the exact finite H₃/J₉ primitive-maximal functional.

                        Full exact finite reduction of the primitive dilation transfer to the H₃/J₉ masses and primitive maximal large-sieve means.

                        The conductor-one fiber is absent from every positive-level nonprincipal character set.

                        Exact primitive-character reindexing of the whole conductor transfer. No character or inducing-level multiplicity is discarded.

                        Exact finite conductor regrouping, with no character multiplicity or coprimality factor suppressed.

                        The original residual is bounded by the finite induced-character transfer. The modulus-zero term is annihilated by its weight; modulus one contributes no nonprincipal character.

                        The original residual transferred all the way to uniquely indexed primitive characters, while retaining every inducing level and Möbius dilation.

                        Exact finite H₃/J₉ maximal large-sieve reduction for the original nonprincipal prime-power residual.

                        A zero conductor cutoff leaves only modulus zero, whose Möbius weight annihilates the residual.

                        The original residual is bounded by one explicit maximal large-sieve factor and the global square mass of the collected source coefficient.

                        Substituting the source coefficient's estimate leaves only explicit scalar factors in the residual bound.

                        theorem MathlibNt.SieveTheory.LiuWeight.panModulusCutoff_sq_le (N : ) (B : ) (hN : 3 N) (hB : 0 B) :

                        For nonnegative logarithmic cutoff exponent, the Pan conductor range lies inside the square-root range.

                        The weak large-sieve constant is now fully eliminated from the residual bound at Pan's cutoff. Only the explicit H₃, J₉, and logarithmic scalar factors remain.

                        The maximal nonprincipal residual has the source exponent 227/240; all conductor, dyadic, and coefficient-multiplicity costs fit in log(N)^20.