Download data/lean/ComparatorChallenges/PrimeGaps.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/ComparatorChallenges/PrimeGaps.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/ComparatorChallenges/PrimeGaps.lean
-
curl -L -o PrimeGaps.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/ComparatorChallenges/PrimeGaps.lean
1.2 kB
| import Mathlib | |
| namespace OAI | |
| namespace LargePrimeGaps | |
| noncomputable def prime (n : β) : β := Nat.nth Nat.Prime (n - 1) | |
| noncomputable def largeGapIndices (C : β) (N : β) : Finset β := by | |
| classical | |
| exact (Finset.Icc 1 N).filter fun n => | |
| C * Real.log (prime n : β) < (prime (n + 1) : β) - (prime n : β) | |
| end LargePrimeGaps | |
| noncomputable section | |
| namespace Problem344 | |
| def primeAt (n : β) : β := | |
| Nat.nth Nat.Prime (n - 1) | |
| def initialCount (A : Set β) (N : β) : β := by | |
| classical | |
| exact ((Finset.Icc 1 N).filter (fun n => n β A)).card | |
| def lowerAsymptoticDensity (A : Set β) : β := | |
| sSup {d : β | β N0 : β, β N : β, N0 β€ N β | |
| d β€ (initialCount A N : β) / (N : β)} | |
| def ratioIncreaseIndices : Set β := | |
| {n | 1 β€ n β§ | |
| (primeAt n : β) / (n : β) < | |
| (primeAt (n + 1) : β) / ((n + 1 : β) : β)} | |
| theorem large_gaps_and_ratio_density : | |
| (β C : β, 0 < C β | |
| β c : β, 0 < c β§ β Nβ : β, β N : β, Nβ β€ N β | |
| c * (N : β) β€ ((LargePrimeGaps.largeGapIndices C N).card : β)) β§ | |
| 0 < lowerAsymptoticDensity ratioIncreaseIndices := by | |
| sorry | |
| end Problem344 | |
| end | |
| end OAI | |