Documentation

MathlibNt.SieveTheory.LiLiuPrereqBuchstabBase

The exact base range, including prime squares #

Below the square of the sieve threshold a rough integer is a unit or a prime. At the square endpoint there is one additional integer precisely when the threshold itself is prime.

theorem LiLiuPrereqBuchstab.rough_prime_iff {z : ℝ} {p : ℕ} (hp : Nat.Prime p) :
Rough z p ↔ z ≤ ↑p
Inspect dependencies

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

theorem LiLiuPrereqBuchstab.sq_le_of_rough_composite {z : ℝ} {n : ℕ} (hz : 0 ≤ z) (hn0 : 0 < n) (hn1 : n ≠ 1) (hnp : ¬Nat.Prime n) (hr : Rough z n) :
z ^ 2 ≤ ↑n
Inspect dependencies

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

theorem LiLiuPrereqBuchstab.rough_composite_at_sq {x z : ℝ} {n : ℕ} (hz : 0 ≤ z) (hx : x ≤ z ^ 2) (hn : n ∈ roughNumbers x z) (hn1 : n ≠ 1) (hnp : ¬Nat.Prime n) :
∃ (p : ℕ), Nat.Prime p ∧ ↑p = z ∧ n = p ^ 2 ∧ x = z ^ 2
Inspect dependencies

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

theorem LiLiuPrereqBuchstab.rough_below_sq_iff {x z : ℝ} (hz : 0 ≤ z) (hx : x < z ^ 2) {n : ℕ} :
n ∈ roughNumbers x z ↔ n = 1 ∧ 1 ≤ x ∨ Nat.Prime n ∧ z ≤ ↑n ∧ ↑n ≤ x
Inspect dependencies

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

Inspect dependencies

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

@[simp]
theorem LiLiuPrereqBuchstab.mem_primeNumbers {x z : ℝ} {n : ℕ} :
n ∈ primeNumbers x z ↔ Nat.Prime n ∧ z ≤ ↑n ∧ ↑n ≤ x
Inspect dependencies

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

theorem LiLiuPrereqBuchstab.roughCount_below_sq {x z : ℝ} (hz : 0 ≤ z) (hx1 : 1 ≤ x) (hx : x < z ^ 2) :

This base formula uses actual primes and includes the unit.

Inspect dependencies

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

theorem LiLiuPrereqBuchstab.roughNumbers_prime_sq {p : ℕ} (hp : Nat.Prime p) :
roughNumbers (↑p ^ 2) ↑p = insert 1 (insert (p ^ 2) (primeNumbers (↑p ^ 2) ↑p))

The only nonunit, nonprime rough integer at the square endpoint is p².

Inspect dependencies

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

theorem LiLiuPrereqBuchstab.roughCount_prime_sq {p : ℕ} (hp : Nat.Prime p) :
roughCount (↑p ^ 2) ↑p = 2 + (primeNumbers (↑p ^ 2) ↑p).card
Inspect dependencies

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

theorem LiLiuPrereqBuchstab.roughCount_le_sq_no_square {x z : ℝ} (hz : 0 ≤ z) (hx1 : 1 ≤ x) (hx : x ≤ z ^ 2) (hnsq : ¬∃ (p : ℕ), Nat.Prime p ∧ ↑p = z ∧ x = z ^ 2) :
Inspect dependencies

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

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

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

    theorem LiLiuPrereqBuchstab.roughCount_le_sq {x z : ℝ} (hz : 0 ≤ z) (hx1 : 1 ≤ x) (hx : x ≤ z ^ 2) :

    Exact formula on the entire closed base range. The final indicator is nonzero only at a prime-square endpoint, not at every square endpoint.

    Inspect dependencies

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

    Inspect dependencies

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

    primeCounting' (ceil z) counts primes strictly below the real cutoff. In particular a prime equal to z is not subtracted.

    Inspect dependencies

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

    Inspect dependencies

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