File size: 1,201 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 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
|