{
  "id": "988",
  "ident": "NS.00988",
  "slug": "erdos-1204",
  "title": "Erdős Problem 1204",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "We call a sequence of integers $0\\leq a_1<\\cdots <a_k$ admissible if it is missing at least one\ncongruence class modulo every prime $p$. Let $A(k)=\\min a_k$. Estimate $A(k)$ - in particular, is\nit true that\n$$A(k)\\sim k\\log k?$$",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1204.erdos_1204.parts.i",
  "statement_lean": "theorem erdos_1204.parts.i :\n    (fun k : ℕ ↦ (A k : ℝ)) ~[atTop] fun k : ℕ ↦ (k : ℝ) * Real.log 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 1204\n\n*References:*\n- [erdosproblems.com/1204](https://www.erdosproblems.com/1204)\n- [El65] Elliott, P. D. T. A., *On sequences of integers*. Quart. J. Math. Oxford Ser. (2) 16\n  (1965), 35-45.\n- [Er80] Erdős, P., *A survey of problems in combinatorial number theory*. Ann. Discrete Math. 6\n  (1980), 89-115.\n- [Po14c] Polymath, D. H. J., *Variants of the Selberg sieve, and bounded intervals containing\n  many primes*. Res. Math. Sci. 1 (2014), Art. 12.\n  [arXiv:1407.4897](https://arxiv.org/abs/1407.4897)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos1204\n\n/-- A finite set `S` of natural numbers is *admissible* if it misses at least one residue class\nmodulo every prime. A sequence $0\\leq a_1<\\cdots <a_k$ is identified with the set of its values. -/\ndef IsAdmissible (S : Finset ℕ) : Prop :=\n  ∀ p : ℕ, p.Prime → ∃ r : ZMod p, ∀ a ∈ S, (a : ZMod p) ≠ r\n\n/-- $A(k)$: the least possible value of $a_k$ over admissible sequences $0\\leq a_1<\\cdots <a_k$.\nAny $k$ primes larger than $k$ form an admissible set, so `sInf` is a true minimum. -/\nnoncomputable def A (k : ℕ) : ℕ :=\n  sInf {m : ℕ | ∃ S : Finset ℕ, S.card = k ∧ IsAdmissible S ∧ ∀ a ∈ S, a ≤ m}\n\n/-- The least possible value of $a_1+\\cdots+a_k$ over admissible sequences\n$0\\leq a_1<\\cdots <a_k$. As for `A`, the minimum exists. -/\nnoncomputable def minSum (k : ℕ) : ℕ :=\n  sInf {s : ℕ | ∃ S : Finset ℕ, S.card = k ∧ IsAdmissible S ∧ ∑ a ∈ S, a = s}\n\n/-- $B(k)=\\min \\frac{a_1+\\cdots+a_k}{k}$. -/\nnoncomputable def B (k : ℕ) : ℝ := (minSum k : ℝ) / k\n\n/-- An admissible set of `k` natural numbers inside `[0, m]` gives `A k ≤ m`. -/\n@[category API, AMS 11]\ntheorem A_le {k m : ℕ} {S : Finset ℕ} (hS : S.card = k) (hadm : IsAdmissible S)\n    (hm : ∀ a ∈ S, a ≤ m) : A k ≤ m :=\n  Nat.sInf_le ⟨S, hS, hadm, hm⟩\n\n/--\nWe call a sequence of integers $0\\leq a_1<\\cdots <a_k$ admissible if it is missing at least one\ncongruence class modulo every prime $p$. Let $A(k)=\\min a_k$. Estimate $A(k)$ - in particular, is\nit true that\n$$A(k)\\sim k\\log k?$$\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1204.parts.i :\n    (fun k : ℕ ↦ (A k : ℝ)) ~[atTop] fun k : ℕ ↦ (k : ℝ) * Real.log k := by\n  sorry\n\ndef erdos_1204.parts.ii.answer : ℕ → ℝ := sorry\n\n/--\nWe call a sequence of integers $0\\leq a_1<\\cdots <a_k$ admissible if it is missing at least one\ncongruence class modulo every prime $p$. Estimate\n$$B(k)=\\min \\frac{a_1+\\cdots+a_k}{k}.$$\n\nWe read \"estimate\" as finding an asymptotic formula, since $B(k)\\asymp k\\log k$ already follows\nfrom the known bounds for $A(k)$ (as $a_j\\geq A(j)$).\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_1204.parts.ii : B ~[atTop] erdos_1204.parts.ii.answer := by\n  sorry\n\n/--\nIt is known that $(1/2+o(1))k\\log k \\leq A(k)$. This lower bound is originally due to Elliott\n[El65], but was rediscovered by the Polymath project on bounded gaps between primes [Po14c].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1204.variants.A_lower :\n    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop, (1 / 2 - ε) * k * Real.log k ≤ (A k : ℝ) := by\n  sorry\n\n/--\nIt is known that $A(k)\\leq (1+o(1))k\\log k$, by taking the $k$ smallest primes $>k$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1204.variants.A_upper :\n    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop, (A k : ℝ) ≤ (1 + ε) * k * Real.log k := by\n  sorry\n\n/--\nTaking the first $k$ primes which are $>k$ implies $B(k)\\leq (1/2+o(1))k\\log k$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1204.variants.B_upper :\n    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop, B k ≤ (1 / 2 + ε) * k * Real.log k := by\n  sorry\n\nend Erdos1204\n",
  "statement_hash": "dfcfe0aa0eb047bd1043461f27a2ebe9f12523d4eb9dbba54d9ce5acb7d065dd",
  "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."
}