FormalConjectures/ErdosProblems/202.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

3 declarations, 2 contain sorry, 0 declared as axioms

Erdős Problem 202

References:

Imports (1)
  1. def Erdos202.f f N is the maximum possible r such that there are moduli $n_1<\cdots<n_r\leq N$ with associated residues $a_i\pmod{n_i}$ whose congruence classes are disjoint line 46 source

    Source documentation

    f N is the maximum possible r such that there are moduli $n_1<\cdots<n_r\leq N$ with associated residues $a_i\pmod{n_i}$ whose congruence classes are disjoint.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat

    Proof uses: SupSet.sSup, Set.ofPred, Exists, Fin, Int, And, StrictMono, LT.lt, OfNat.ofNat, LE.le, Int.ModEq, Eq

    9 instances, coercions and auxiliary constants left out.

    noncomputable def f (N : ℕ) : ℕ :=
    …
  2. theorem Erdos202.erdos_202 Documented declaration: erdos_202 sorry line 63 source

    Source documentation

    Let $n_1<\cdots < n_r\leq N$ with associated $a_i\pmod{n_i}$ such that the congruence classes are disjoint (that is, every integer is $\equiv a_i\pmod{n_i}$ for at most one $1\leq i\leq r$). How large can $r$ be in terms of $N$?

    Let $f(N)$ be the maximum possible $r$, and let $L(N)=\exp(\sqrt{\log N\log\log N})$.

    This was proved by GPT-5.4 Pro (prompted by Ho Boon Suan), using the argument of [BFV13] together with the resolution of the Kahn-Kalai conjecture by Park and Pham [PaPh24], so that $$f(N)= N L(N)^{-1+o(1)}.$$

    depends on sorry what this means

    Statement uses: Exists, Nat, Real, And, Asymptotics.IsLittleO, Filter.atTop, OfNat.ofNat, Filter.Eventually, Eq, Erdos202.f, HMul.hMul, HPow.hPow, scaleL, HAdd.hAdd, Neg.neg

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

    29 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem erdos_202 : ∃ o : ℕ → ℝ, o =o[atTop] (1 : ℕ → ℝ) ∧
        ∀ᶠ N : ℕ in atTop, (f N : ℝ) = (N : ℝ) * scaleL N ^ (-1 + o N) := by
    …

    Mentions: Erdos202.f, scaleL

  3. theorem Erdos202.erdos_202.variants.erdos_szemeredi Erdős and Stein conjectured that $f(N)=o(N)$, which was proved by Erdős and Szemerédi [ErSz68] sorry line 71 source

    Source documentation

    Erdős and Stein conjectured that $f(N)=o(N)$, which was proved by Erdős and Szemerédi [ErSz68].

    depends on sorry what this means

    Statement uses: Asymptotics.IsLittleO, Nat, Real, Filter.atTop, Erdos202.f

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

    9 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

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

    theorem erdos_202.variants.erdos_szemeredi :
        (fun N => (f N : ℝ)) =o[atTop] (fun N : ℕ => (N : ℝ)) := by
    …

    Mentions: Erdos202.f