Lean / Reader
Lean reader

Erdos520.lean

36 lines2 declarationsno sorryimports ErdosProblems.Erdos520.Unconditional

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports ErdosProblems.Erdos520.Unconditional, which it does not have: you can read it there, but it will not check. Build the project itself to check it.

  1. /- leanprover/lean4:v4.33.0 mathlib v4.33.0 -/
  2. /-
  3. Copyright (c) 2026 Sigurd William Rachlew Høystad.
  4. Released under Apache 2.0 license as described in Erdos520/LICENSE.
  5. Formalization by Sigurd William Rachlew Høystad with GPT-5.6 Pro and Claude Fable 5.
  6. Source: https://github.com/saasom/Erdos520/tree/v1.1.0
  7. Revision: dea062793bf11efd962752ee378ef84720c9857e (Lean 4.30.0-rc2).
  8. Claim: https://www.erdosproblems.com/forum/thread/520/proof-claims#proof-claim-183
  9. -/
  10. import ErdosProblems.Erdos520.Unconditional
  11. open Filter MeasureTheory
  12. open scoped Topology
  13. namespace Erdos.Problem520
  14. theorem normalized_tendsto_zero :
  15. ∀ᵐ omega ∂μ, Tendsto (fun N : ℕ =>
  16. |partialSum omega N| / Real.sqrt ((N : ℝ) * Real.log (Real.log N)))
  17. atTop (𝓝 0) :=
  18. erdos520Disproof_unconditional
  19. theorem not_erdos_520 :
  20. ¬ ∃ c : ℝ, 0 < c ∧ ∀ᵐ omega ∂μ,
  21. limsup (fun N : ℕ =>
  22. partialSum omega N / Real.sqrt ((N : ℝ) * Real.log (Real.log N))) atTop = c := by
  23. rintro ⟨c, hc, hlimsup⟩
  24. have hfalse : ∀ᵐ omega ∂μ, False := by
  25. filter_upwards [erdos520NoPositiveConstant_unconditional, hlimsup] with omega hne heq
  26. exact hne c hc heq
  27. obtain ⟨_, h⟩ := hfalse.exists
  28. exact h
  29. end Erdos.Problem520