Plain-language statement
An explicit upper bound for the number of primes below : The formal statement also covers the small values of using Lean's totalized real operations.
Exact Lean statement
theorem tmp (N : ℕ) :
((Finset.range N).filter Nat.Prime).card ≤
4 * (N / Real.log N) + 6 * (N ^ (1/2 : ℝ) * (1 + 1/2 * Real.log N) ^ 3)Formal artifact
Lean source
theorem tmp (N : ℕ) : ((Finset.range N).filter Nat.Prime).card ≤ 4 * (N / Real.log N) + 6 * (N ^ (1/2 : ℝ) * (1 + 1/2 * Real.log N) ^ 3) := by trans ↑((Finset.range (N+1)).filter Nat.Prime).card · norm_cast refine Finset.card_le_card fun n ↦ ?_ simp only [Finset.mem_filter, Finset.mem_range, and_imp] exact fun hnN hp ↦ ⟨by omega, hp⟩ rw [← primesBetween_one] by_cases hN : N = 0 · simp [hN, primesBetween] by_cases hN : N = 1 · simp (config := {decide:=true}) [hN, primesBetween] have h : primesBetween 1 (1 + N) ≤ 2 * (N / Real.log (N ^ (1/2 : ℝ))) + 6 * (N ^ (1 / 2 : ℝ) * (1 + Real.log (N ^ (1/2 : ℝ))) ^ 3) := by convert (primesBetween_le 1 N (N ^ (1/2 : ℝ)) (by norm_num) (by norm_cast; omega) (Real.one_lt_rpow (by norm_cast; omega) (by norm_num))) using 1 ring calc _ ≤ (primesBetween 1 (1+N):ℝ) := by norm_cast apply primesBetween_mono_right norm_cast omega _ ≤ _ := by rw [Real.log_rpow (by norm_num; omega)] at h convert h using 2 ring- Project
- Prime Number Theorem and More
- License
- Apache-2.0
- Commit
- a93551347dce
- Source
- PrimeNumberTheoremAnd/BrunTitchmarsh.lean:274-302
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
Admissible bound mono
admissible_bound.mono
Plain-language statement
For positive parameters , the classical error-bound function is nonincreasing once .
Source project: Prime Number Theorem and More
Person-level attribution pending.
Analytic On div Removable zero
AnalyticOn_divRemovable_zero
Plain-language statement
Let be analytic on an open set containing , and suppose . Define for and . Then the apparent singularity at is removable and is analytic throughout .
Source project: Prime Number Theorem and More
Person-level attribution pending.
Analytic On div Removable zero closed Ball
AnalyticOn_divRemovable_zero_closedBall
Plain-language statement
Suppose and is analytic on the closed disc with . Define for and . Then is analytic on the entire closed disc, including at the removed singularity.
Source project: Prime Number Theorem and More
Person-level attribution pending.