FormalConjectures/ErdosProblems/281.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1

4 declarations, 1 contain sorry, 0 declared as axioms

Erdős Problem 281

References:

Imports (1)
  1. def Erdos281.ResidueChoice Choices of congruence classes $a_i \pmod{n_i}$ line 39 source

    Source documentation

    Choices of congruence classes $a_i \pmod{n_i}$.

    no axioms what this means

    Statement uses: Nat

    Proof uses: ZMod

    def ResidueChoice (n : ℕ → ℕ) := ∀ i : ℕ, ZMod (n i)
  2. def Erdos281.avoidAll The integers avoiding all congruences $a_i \pmod{n_i}$ line 42 source

    Source documentation

    The integers avoiding all congruences $a_i \pmod{n_i}$.

    standard axioms: Quot.sound, propext what this means

    Statement uses: Nat, Erdos281.ResidueChoice, Set, Int

    Proof uses: Set.ofPred, Ne, ZMod

    5 instances, coercions and auxiliary constants left out.

    def avoidAll (n : ℕ → ℕ) (a : ResidueChoice n) : Set ℤ :=
    …

    Mentions: Erdos281.ResidueChoice

  3. def Erdos281.avoidPrefix The integers avoiding the first $k$ congruences $a_i \pmod{n_i}$ line 46 source

    Source documentation

    The integers avoiding the first $k$ congruences $a_i \pmod{n_i}$.

    standard axioms: Quot.sound, propext what this means

    Statement uses: Nat, Erdos281.ResidueChoice, Set, Int

    Proof uses: Set.ofPred, LT.lt, Ne, ZMod

    6 instances, coercions and auxiliary constants left out.

    def avoidPrefix (n : ℕ → ℕ) (a : ResidueChoice n) (k : ℕ) : Set ℤ :=
    …

    Mentions: Erdos281.ResidueChoice

  4. theorem Erdos281.erdos_281 Documented declaration: erdos_281 sorry line 59 source

    Source documentation

    Let $n_1<n_2<\cdots$ be an infinite sequence such that, for any choice of congruence classes $a_i\pmod{n_i}$, the set of integers not satisfying any of the congruences $a_i\pmod{n_i}$ has density $0$. Is it true that for every $\epsilon>0$ there exists some $k$ such that, for every choice of congruence classes $a_i$, the density of integers not satisfying any of the congruences $a_i\pmod{n_i}$ for $1\leq i\leq k$ is less than $\epsilon$?

    The answer is yes; the linked Lean proof formalizes Somani's argument.

    L4DEL explanation

    Let $n_10$ there exists some $k$ such that, for every choice of congruence classes $a_i$, the density of integers not satisfying any of the congruences $a_i\pmod{n_i}$ for $1\leq i\leq k$ is less than $\epsilon$? The answer is yes; the linked Lean proof formalizes Somani's argument.

    Sources and attribution: Pinned Lean source (1646ca16afd6)

    depends on sorry what this means

    Statement uses: Iff, True, Nat, StrictMono, LT.lt, OfNat.ofNat, Erdos281.ResidueChoice, Set.HasIntDensity, Erdos281.avoidAll, Real, Exists, And, Erdos281.avoidPrefix

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    12 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem erdos_281 : answer(True) ↔
        ∀ (n : ℕ → ℕ), StrictMono n → (∀ i, 0 < n i) →
          (∀ a : ResidueChoice n, Set.HasIntDensity (avoidAll n a) 0) →
            ∀ ε : ℝ, 0 < ε →
              ∃ k : ℕ, ∀ a : ResidueChoice n,
                ∃ d : ℝ, Set.HasIntDensity (avoidPrefix n a k) d ∧ d < ε := by
    …

    Mentions: Erdos281.ResidueChoice, Set.HasIntDensity, Erdos281.avoidAll, Erdos281.avoidPrefix