{
  "id": "3308",
  "ident": "NS.03308",
  "slug": "erdos-821",
  "title": "Erdős Problem 821",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is it true that, for every $\\epsilon>0$, there exist infinitely many $n$ such that\n$g(n) > n^{1-\\epsilon}$?\n\nThis was proved in [OpenAI26]; see the linked formal proof for more explanations.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos821.erdos_821",
  "statement_lean": "theorem erdos_821 :\n    ∀ ε > (0 : ℝ), { n : ℕ | (g n : ℝ) > (n : ℝ) ^ (1 - ε) }.Infinite",
  "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 821\n\n*References:*\n- [erdosproblems.com/821](https://www.erdosproblems.com/821)\n- [BaHa98] Baker, R. C. and Harman, G., Shifted primes without large prime factors. Acta Arith.\n  (1998), 331--361.\n- [Er35b] Erdős, P., On the normal number of prime factors of $p-1$ and some related problems\n  concerning Euler's $\\varphi$-function. Quart. J. Math. (1935), 205-213.\n- [Er74b] Erdős, P., Remarks on some problems in number theory. Math. Balkanica (1974), 197-202.\n- [Li22] J. D. Lichtman, Primes in arithmetic progressions to large moduli and shifted primes\n  without large prime factors. arXiv:2211.09641 (2022).\n- [LuPo11] Luca, Florian and Pollack, Paul, An arithmetic function arising from {C}armichael's\n  conjecture. J. Théor. Nombres Bordeaux (2011), 697--714.\n- [OpenAI26] OpenAI, *Weighted dilation graphs, smooth shifted primes and totient fibers*.\n  OpenAI Math Release preprint (September 2026).\n  [github.com/openai/math](https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Weighted-Dilation-Graphs-Smooth-Shifted-Primes-and-Totient-Fibers-September-24-2026/paper.pdf)\n-/\n\n@[expose] public section\n\nopen Nat Filter\n\nnamespace Erdos821\n\n/--\nLet $g(n)$ count the number of $m$ such that $\\phi(m)=n$.\n-/\nnoncomputable def g (n : ℕ) : ℕ :=\n  { m : ℕ | totient m = n }.ncard\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs it true that, for every $\\epsilon>0$, there exist infinitely many $n$ such that\n$g(n) > n^{1-\\epsilon}$?\n\nThis was proved in [OpenAI26]; see the linked formal proof for more explanations.\n-/\n@[category research solved, question, AMS 11,\n  formal_proof using lean4 at \"https://github.com/cadamcat/totient-fibers-lean4/blob/dfce35707a67fce7362cb2bd95af8b80a0b0373e/Erdos821/Theorem.lean#L18\"]\ntheorem erdos_821 :\n    ∀ ε > (0 : ℝ), { n : ℕ | (g n : ℝ) > (n : ℝ) ^ (1 - ε) }.Infinite := by\n  sorry\n\n/--\nPillai proved that $\\limsup g(n)=\\infty$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_821.variants.pillai :\n    atTop.limsup (fun n : ℕ ↦ (g n : EReal)) = ⊤ := by\n  sorry\n\n/--\nErdős [Er35b] proved that there exists some constant $c>0$ such that $g(n) > n^c$ for infinitely\nmany $n$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_821.variants.erdos :\n    ∃ c > (0 : ℝ), { n : ℕ | (n : ℝ) ^ c < (g n : ℝ) }.Infinite := by\n  sorry\n\n/--\nThe best known bound is that there are infinitely many $n$ such that $g(n) > n^{0.71568\\cdots}$,\nobtained by Lichtman [Li22] as a consequence of proving that there are\n$\\geq \\frac{x}{(\\log x)^{O(1)}}$ many primes $p\\leq x$ such that all prime factors of $p-1$ are\n$\\leq x^{0.2843\\cdots}$ (which improves a number of previous exponents, most recently Baker and\nHarman [BaHa98]).\n-/\n@[category research solved, AMS 11]\ntheorem erdos_821.variants.lichtman :\n    ∃ c > (0.71568 : ℝ), { n : ℕ | (n : ℝ) ^ c < (g n : ℝ) }.Infinite := by\n  sorry\n\nend Erdos821\n",
  "statement_hash": "fbca373f599a29b0c4c765e7f8752d1189d977262b42f382b2c5f321ae0c2fd0",
  "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."
}