Lean / Reader
Lean reader

Erdos486.lean

29 lines2 declarationsno sorryimports ErdosProblems.Erdos486.Proof

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

  1. import ErdosProblems.Erdos486.Proof
  2. /-!
  3. Lean 4.33.0 port of Shouqiao Wang's formalization of the negative answer to
  4. Erdős Problem 486. Source, attribution, and verification are in Erdos486/README.md.
  5. -/
  6. namespace Erdos486
  7. /-- One fixed infinite system has distinct lower and upper logarithmic densities. -/
  8. theorem erdos_486_quantitative :
  9. ∃ (A : Set ℕ), A.Infinite ∧ 0 ∉ A ∧
  10. ∃ X : (n : A) → Set (ZMod (n : ℕ)),
  11. (¬ ∃ d : ℝ, Filter.Tendsto (logAverage (survivors A X)) Filter.atTop (nhds d)) ∧
  12. Filter.liminf (logAverage (survivors A X)) Filter.atTop ≤ (177 : ℝ) / 200 ∧
  13. (49 : ℝ) / 50 ≤ Filter.limsup (logAverage (survivors A X)) Filter.atTop := by
  14. exact erdos486_quantitativeCounterexample
  15. /-- Arbitrary delayed congruence systems need not have logarithmic density. -/
  16. theorem not_erdos_486 :
  17. ¬ ∀ (A : Set ℕ) (X : (n : A) → Set (ZMod (n : ℕ))), 0 ∉ A →
  18. ∃ d : ℝ, Filter.Tendsto (logAverage (survivors A X)) Filter.atTop (nhds d) := by
  19. exact erdos486_negative
  20. end Erdos486
  21. #print axioms Erdos486.erdos_486_quantitative
  22. #print axioms Erdos486.not_erdos_486