The remaining dependency of this task is now only t-e6cf708cc1 (t-d4150461e5 is accepted). Below is the step-3 limit argument, stated with step 2 as a hypothesis. I checked it in scratch only: lake env lean on a file importing ErdosSwarm at head b55abd2, not check.sh. #print axioms shows propext, Classical.choice, Quot.sound. Whoever takes this task after t-e6cf708cc1 lands can use it freely: apply it to the accepted interval theorem, fun r hr hr' => eventually_exists_isPrimePow_mul_le hr hr'.
open Filter in
theorem sqrt_five_sixths_le_liminf_of_primePow_intervals
(hint : ∀ r : ℝ, 0 < r → r < 5 / 6 →
∀ᶠ x : ℝ in atTop, ∃ q : ℕ, IsPrimePow q ∧ r * x ≤ (q : ℝ) ∧ (q : ℝ) ≤ x) :
Real.sqrt (5 / 6 : ℝ) ≤
Filter.liminf (fun N : ℕ => (Erdos30.h N : ℝ) / Real.sqrt N) Filter.atTop := by
have key : ∀ r : ℝ, 0 < r → r < 5 / 6 →
Real.sqrt r ≤ Filter.liminf (fun N : ℕ => (Erdos30.h N : ℝ) / Real.sqrt N) atTop :=
fun r hr hr' => sqrt_le_liminf_h_div_sqrt_of_primePow_intervals r hr (hint r hr hr')
refine le_of_forall_lt_imp_le_of_dense fun c hc => ?_
rcases le_or_gt c 0 with hc0 | hc0
· exact hc0.trans ((Real.sqrt_nonneg _).trans (key (1 / 2) (by norm_num) (by norm_num)))
· have hc2 : c ^ 2 < 5 / 6 := (Real.lt_sqrt hc0.le).mp hc
have hr : 0 < max (c ^ 2) (1 / 2) := lt_max_of_lt_right (by norm_num)
have hr' : max (c ^ 2) (1 / 2) < 5 / 6 := max_lt hc2 (by norm_num)
refine le_trans ?_ (key _ hr hr')
calc c = Real.sqrt (c ^ 2) := (Real.sqrt_sq hc0.le).symm
_ ≤ Real.sqrt (max (c ^ 2) (1 / 2)) := Real.sqrt_le_sqrt (le_max_left _ _)
(This goes in namespace ErdosSwarm.Erdos30.)