Documentation

MathlibNt.SieveTheory.LiLiuPrereqBuchstabCount

Actual rough integers and the finite Buchstab identity #

The carrier consists of positive natural numbers bounded by a real number. The cutoff excludes primes strictly below z; in particular the unit is retained and a prime equal to the cutoff is not excluded.

Equations
Instances For
    Inspect dependencies

    LiLiuPrereqBuchstab.Rough · compiled type and proof/definition references.

    noncomputable def LiLiuPrereqBuchstab.roughNumbers (x z : ℝ) :
    Equations
    Instances For
      Inspect dependencies

      LiLiuPrereqBuchstab.roughNumbers · compiled type and proof/definition references.

      Inspect dependencies

      LiLiuPrereqBuchstab.roughCount · compiled type and proof/definition references.

      @[simp]
      theorem LiLiuPrereqBuchstab.mem_roughNumbers {x z : ℝ} {n : ℕ} :
      n ∈ roughNumbers x z ↔ 0 < n ∧ ↑n ≤ x ∧ Rough z n
      Inspect dependencies

      LiLiuPrereqBuchstab.mem_roughNumbers · compiled type and proof/definition references.

      theorem LiLiuPrereqBuchstab.rough_iff_no_small_prime {z : ℝ} {n : ℕ} :
      Rough z n ↔ ∀ (p : ℕ), Nat.Prime p → ↑p < z → ¬p ∣ n
      Inspect dependencies

      LiLiuPrereqBuchstab.rough_iff_no_small_prime · compiled type and proof/definition references.

      Inspect dependencies

      LiLiuPrereqBuchstab.rough_one · compiled type and proof/definition references.

      Inspect dependencies

      LiLiuPrereqBuchstab.one_mem_roughNumbers · compiled type and proof/definition references.

      theorem LiLiuPrereqBuchstab.rough_mono {y z : ℝ} (hyz : y ≤ z) {n : ℕ} (hn : Rough z n) :
      Rough y n
      Inspect dependencies

      LiLiuPrereqBuchstab.rough_mono · compiled type and proof/definition references.

      Inspect dependencies

      LiLiuPrereqBuchstab.roughNumbers_mono · compiled type and proof/definition references.

      theorem LiLiuPrereqBuchstab.rough_iff_minFac {z : ℝ} {n : ℕ} (hn : n ≠ 1) :
      Rough z n ↔ z ≤ ↑n.minFac
      Inspect dependencies

      LiLiuPrereqBuchstab.rough_iff_minFac · compiled type and proof/definition references.

      theorem LiLiuPrereqBuchstab.rough_mul_prime {p m : ℕ} (hp : Nat.Prime p) (hm : Rough (↑p) m) :
      Rough (↑p) (p * m)
      Inspect dependencies

      LiLiuPrereqBuchstab.rough_mul_prime · compiled type and proof/definition references.

      theorem LiLiuPrereqBuchstab.minFac_mul_of_rough {p m : ℕ} (hp : Nat.Prime p) (hm : Rough (↑p) m) :
      (p * m).minFac = p
      Inspect dependencies

      LiLiuPrereqBuchstab.minFac_mul_of_rough · compiled type and proof/definition references.

      Inspect dependencies

      LiLiuPrereqBuchstab.rough_div_minFac · compiled type and proof/definition references.

      theorem LiLiuPrereqBuchstab.rough_of_dvd {z : ℝ} {m n : ℕ} (hmn : m ∣ n) (hn : Rough z n) :
      Rough z m
      Inspect dependencies

      LiLiuPrereqBuchstab.rough_of_dvd · compiled type and proof/definition references.

      noncomputable def LiLiuPrereqBuchstab.sievingPrimes (x y z : ℝ) :

      Only primes at most x can occur as least factors of the removed integers.

      Equations
      Instances For
        Inspect dependencies

        LiLiuPrereqBuchstab.sievingPrimes · compiled type and proof/definition references.

        @[simp]
        theorem LiLiuPrereqBuchstab.mem_sievingPrimes {x y z : ℝ} {p : ℕ} :
        p ∈ sievingPrimes x y z ↔ Nat.Prime p ∧ ↑p ≤ x ∧ y ≤ ↑p ∧ ↑p < z
        Inspect dependencies

        LiLiuPrereqBuchstab.mem_sievingPrimes · compiled type and proof/definition references.

        theorem LiLiuPrereqBuchstab.removed_ne_one {x y z : ℝ} {n : ℕ} (hn : n ∈ roughNumbers x y \ roughNumbers x z) :
        n ≠ 1
        Inspect dependencies

        LiLiuPrereqBuchstab.removed_ne_one · compiled type and proof/definition references.

        Inspect dependencies

        LiLiuPrereqBuchstab.minFac_mem_sievingPrimes · compiled type and proof/definition references.

        theorem LiLiuPrereqBuchstab.card_leastFactor_fiber {x y z : ℝ} {p : ℕ} (hp : Nat.Prime p) (hyp : y ≤ ↑p) (hpz : ↑p < z) :
        {n ∈ roughNumbers x y \ roughNumbers x z | n.minFac = p}.card = roughCount (x / ↑p) ↑p

        Multiplication by the least prime factor is an actual finite bijection. The cofactor may still be divisible by p, as required at prime squares.

        Inspect dependencies

        LiLiuPrereqBuchstab.card_leastFactor_fiber · compiled type and proof/definition references.

        theorem LiLiuPrereqBuchstab.roughCount_buchstab {x y z : ℝ} (hyz : y ≤ z) :
        roughCount x y = roughCount x z + ∑ p ∈ sievingPrimes x y z, roughCount (x / ↑p) ↑p

        Exact Buchstab decomposition of the actual positive-integer rough count, with real upper bounds and the strict small-prime cutoff.

        Inspect dependencies

        LiLiuPrereqBuchstab.roughCount_buchstab · compiled type and proof/definition references.