All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Abs rem le

BrunTitchmarsh.abs_rem_le

Plain-language statement

For the Selberg sieve that removes primes up to zz from an interval [x,x+y][x,x+y], with x,y>0x,y>0 and z1z\ge1, the remainder in the expected count of multiples of every nonzero integer dd is uniformly bounded: rd5|r_d|\le5.

Exact Lean statement

theorem abs_rem_le {d : ℕ} (hd : d ≠ 0) :
    |rem (s := toBoundingSieve (self := primeInterSieve x y z hz)) d| ≤ 5

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem abs_rem_le {d : } (hd : d  0) :    |rem (s := toBoundingSieve (self := primeInterSieve x y z hz)) d|  5 := by  rw [rem_eq _ _ _ hx hz _ hd]  have hpush : ↑(⌊x + y⌋₊ / d - (⌈x⌉₊ - 1) / d) =      (↑(⌊x + y⌋₊ / d) - ↑((⌈x⌉₊ - 1) / d) : ) := by    rw [Nat.cast_sub]    gcongr    rw [Nat.le_floor_iff,  add_le_add_iff_right 1]    · rw_mod_cast [Nat.sub_add_cancel (by simp [hx])]      linarith [Nat.ceil_le_self_add_one x (le_of_lt hx)]    linarith  rw [hpush]  obtain C₁, hC₁_le, hC₁ := floor_div_approx (x + y) (by linarith) d  obtain C₂, hC₂_le, hC₂ := nat_div_approx (Nat.ceil x - 1) d  obtain C₃, hC₃_le, hC₃ := ceil_approx (x) (by linarith)  rw [hC₁, hC₂, Nat.cast_sub, hC₃]  · ring_nf    rw [(by ring_nf : |(↑d)⁻¹ - (↑d)⁻¹ * C₃ + C₁ - C₂| = |(↑d)⁻¹ - (↑d)⁻¹ * C₃ + (C₁ - C₂)|)]    have : |(↑d)⁻¹ - (↑d)⁻¹ * C₃ + (C₁ - C₂)|         |(↑d)⁻¹ - (↑d)⁻¹ * C₃| + |C₁ - C₂| := abs_add_le _ _    have : |(↑d)⁻¹ - (↑d)⁻¹ * C₃|         |(↑d)⁻¹| + |(↑d)⁻¹ * C₃| := abs_sub _ _    have : |C₁ - C₂|  |C₁| + |C₂| := abs_sub _ _    have : |(d:)⁻¹|  1 := by      rw [abs_inv, Nat.abs_cast]      exact Nat.cast_inv_le_one _    have : |(↑d)⁻¹ * C₃|  |C₃| := by      rw [inv_mul_eq_div, abs_div]      refine div_le_self (abs_nonneg _) ?_      rw [Nat.abs_cast, Nat.one_le_cast]      omega    linarith  · simp [hx]
Project
Prime Number Theorem and More
License
Apache-2.0
Commit
a93551347dce
Source
PrimeNumberTheoremAnd/BrunTitchmarsh.lean:181-213

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.0

Admissible bound mono

admissible_bound.mono

Plain-language statement

For positive parameters A,B,C,RA,B,C,R, the classical error-bound function A(logxR)Bexp ⁣(ClogxR)A\left(\frac{\log x}{R}\right)^B\exp\!\left(-C\sqrt{\frac{\log x}{R}}\right) is nonincreasing once xexp ⁣(R(2B/C)2)x\ge \exp\!\left(R(2B/C)^2\right).

analytic number theoryprime numbersasymptotics

Source project: Prime Number Theorem and More

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Analytic On div Removable zero

AnalyticOn_divRemovable_zero

Plain-language statement

Let ff be analytic on an open set ss containing 00, and suppose f(0)=0f(0)=0. Define g(z)=f(z)/zg(z)=f(z)/z for z0z\ne0 and g(0)=f(0)g(0)=f'(0). Then the apparent singularity at 00 is removable and gg is analytic throughout ss.

analytic number theoryprime numbersasymptotics

Source project: Prime Number Theorem and More

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Analytic On div Removable zero closed Ball

AnalyticOn_divRemovable_zero_closedBall

Plain-language statement

Suppose R>0R>0 and ff is analytic on the closed disc zR|z|\le R with f(0)=0f(0)=0. Define g(z)=f(z)/zg(z)=f(z)/z for z0z\ne0 and g(0)=f(0)g(0)=f'(0). Then gg is analytic on the entire closed disc, including at the removed singularity.

analytic number theoryprime numbersasymptotics

Source project: Prime Number Theorem and More

Person-level attribution pending.

View proof record