{
  "id": "2850",
  "ident": "NS.02850",
  "slug": "erdos-684",
  "title": "Erdős Problem 684",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be the smallest $0 \\leq k \\leq n$ for which the factor of\n$\\binom{n}{k}$ supported on primes at most $k$ exceeds $n^2$. Give bounds for $f(n)$.\n\nAn internal OpenAI model [APSSV26] has given an elementary argument which shows\n$f(n) \\ll (\\log n)^2$. This statement gives the nonoptimal constant $514$.\nThe existence formulation avoids defining the minimum for small inputs.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos684.erdos_684.upper_bound",
  "statement_lean": "theorem erdos_684.upper_bound :\n    ∀ᶠ n : ℕ in atTop, ∃ k ≤ n,\n      (k : ℝ) ≤ 514 * (log (n : ℝ)) ^ 2 ∧ n ^ 2 < smallPrimePart n k",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 684\n\n*References:*\n- [erdosproblems.com/684](https://www.erdosproblems.com/684)\n- [APSSV26] Alexeev, B., Putterman, M., Sawhney, M., Sellke, M., and Valiant, G.,\n  *Short proofs in combinatorics and number theory*. arXiv:2603.29961 (2026), Theorem 2.1.\n-/\n\n@[expose] public section\n\nnamespace Erdos684\n\nopen Filter Real\n\n/-- The factor of $\\binom{n}{k}$ containing the full multiplicity of every prime at most $k$. -/\ndef smallPrimePart (n k : ℕ) : ℕ :=\n  ∏ p ∈ Nat.primesLE k, p ^ ((n.choose k).factorization p)\n\n@[category test, AMS 11]\ntheorem smallPrimePart_zero (n : ℕ) : smallPrimePart n 0 = 1 := by\n  simp [smallPrimePart]\n\nset_option linter.style.formal_proof_palomar false in\n/-- Let $f(n)$ be the smallest $0 \\leq k \\leq n$ for which the factor of\n$\\binom{n}{k}$ supported on primes at most $k$ exceeds $n^2$. Give bounds for $f(n)$.\n\nAn internal OpenAI model [APSSV26] has given an elementary argument which shows\n$f(n) \\ll (\\log n)^2$. This statement gives the nonoptimal constant $514$.\nThe existence formulation avoids defining the minimum for small inputs. -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/AItoBit/erdos-684-elementary-bounds/blob/a59cf65171b19dc7785b767d3b88ad8ef754f3eb/Solution.lean\"]\ntheorem erdos_684.upper_bound :\n    ∀ᶠ n : ℕ in atTop, ∃ k ≤ n,\n      (k : ℝ) ≤ 514 * (log (n : ℝ)) ^ 2 ∧ n ^ 2 < smallPrimePart n k := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- The elementary argument of an internal OpenAI model [APSSV26] constructs arbitrarily\nlarge $n$ such that $f(n) \\geq (1/2-o(1))\\log n$. The following weaker form has coefficient\n$1/8$: for arbitrarily large $n>1$, the small-prime part equals one for every\n$k \\leq (\\log n)/8$. -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/AItoBit/erdos-684-elementary-bounds/blob/a59cf65171b19dc7785b767d3b88ad8ef754f3eb/Erdos684/Lower.lean\"]\ntheorem erdos_684.lower_bound :\n    ∃ᶠ n : ℕ in atTop, 1 < n ∧\n      ∀ k : ℕ, (k : ℝ) ≤ log (n : ℝ) / 8 → smallPrimePart n k = 1 := by\n  sorry\n\nend Erdos684\n\n",
  "statement_hash": "c3325b04831db5f608edce22c9cf5f207c8709c60e864cce3d5e0d682a86301f",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}