Lean / Reader
Lean readerErdos486.lean
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.
import ErdosProblems.Erdos486.Proof/-!Lean 4.33.0 port of Shouqiao Wang's formalization of the negative answer toErdős Problem 486. Source, attribution, and verification are in Erdos486/README.md.-/namespace Erdos486/-- One fixed infinite system has distinct lower and upper logarithmic densities. -/theorem erdos_486_quantitative :∃ (A : Set ℕ), A.Infinite ∧ 0 ∉ A ∧∃ X : (n : A) → Set (ZMod (n : ℕ)),(¬ ∃ d : ℝ, Filter.Tendsto (logAverage (survivors A X)) Filter.atTop (nhds d)) ∧Filter.liminf (logAverage (survivors A X)) Filter.atTop ≤ (177 : ℝ) / 200 ∧(49 : ℝ) / 50 ≤ Filter.limsup (logAverage (survivors A X)) Filter.atTop := byexact erdos486_quantitativeCounterexample/-- Arbitrary delayed congruence systems need not have logarithmic density. -/theorem not_erdos_486 :¬ ∀ (A : Set ℕ) (X : (n : A) → Set (ZMod (n : ℕ))), 0 ∉ A →∃ d : ℝ, Filter.Tendsto (logAverage (survivors A X)) Filter.atTop (nhds d) := byexact erdos486_negativeend Erdos486#print axioms Erdos486.erdos_486_quantitative#print axioms Erdos486.not_erdos_486