{
  "id": "513",
  "ident": "NS.00513",
  "slug": "erdos-1057",
  "title": "Erdős Problem 1057",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is it true that $C(x)=x^{1-o(1)}$?\n\nThis is discussed in problem A13 of Guy's collection [Gu04].",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1057.erdos_1057",
  "statement_lean": "theorem erdos_1057 :\n    Tendsto (fun x ↦ Real.log (carmichaelCounting x) / Real.log x) atTop (𝓝 1)",
  "challenge_source": "/-\nCopyright 2025 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 1057\n\n*References:*\n- [erdosproblems.com/1057](https://www.erdosproblems.com/1057)\n- [AGP94] Alford, W. R. and Granville, Andrew and Pomerance, Carl, There are infinitely many\n  Carmichael numbers. Ann. of Math. (2) (1994), 703--722.\n- [Er56c] Erdős, P., On pseudoprimes and Carmichael numbers. Publ. Math. Debrecen (1956),\n  201--206.\n- [Gu04] Guy, Richard K., Unsolved problems in number theory. (2004), xviii+437.\n- [Ha08] Harman, Glyn, Watt's mean value theorem and Carmichael numbers. Int. J. Number Theory\n  (2008), 241--248.\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- [Po89] Pomerance, Carl, Two methods in elementary analytic number theory. (1989), 135--161.\n-/\n\n@[expose] public section\n\nopen Nat Real Filter Set\nopen scoped Topology Asymptotics\n\nnamespace Erdos1057\n\n\n/--\nLet $C(x)$ count the number of Carmichael numbers in the interval $[1,x]$.\n-/\nnoncomputable def carmichaelCounting (x : ℝ) : ℝ :=\n  ({n : ℕ | IsCarmichael n ∧ (n : ℝ) ≤ x}.ncard : ℝ)\n\n/--\nIs it true that $C(x)=x^{1-o(1)}$?\n\nThis is discussed in problem A13 of Guy's collection [Gu04].\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1057 :\n    Tendsto (fun x ↦ Real.log (carmichaelCounting x) / Real.log x) atTop (𝓝 1) := by\n  sorry\n\n/--\nErdős [Er56c] proved $C(x) < x \\exp\\left(-c \\frac{\\log x\\log\\log\\log x}{\\log\\log x}\\right)$\nfor some constant $c>0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1057.variants.upper_bound :\n    ∃ c > 0, ∀ᶠ x in atTop,\n      carmichaelCounting x < x * Real.exp (-c * (Real.log x * Real.log (Real.log (Real.log x))) /\n        Real.log (Real.log x)) := by\n  sorry\n\n/--\nPomerance [Po89] gave a heuristic suggesting that this is the true order of growth, and in fact\n$C(x)= x \\exp\\left(-(1+o(1))\\frac{\\log x\\log\\log\\log x}{\\log\\log x}\\right)$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1057.variants.pomerance :\n    Tendsto (fun x ↦\n      -(Real.log (carmichaelCounting x / x) * Real.log (Real.log x)) /\n      (Real.log x * Real.log (Real.log (Real.log x)))) atTop (𝓝 1) := by\n  sorry\n\n/--\nAlford, Granville, and Pomerance [AGP94] proved that $C(x)\\to \\infty$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1057.variants.agp_infinite :\n    Tendsto carmichaelCounting atTop atTop := by\n  sorry\n\n/--\nAlford, Granville, and Pomerance [AGP94] proved that $C(x)>x^{2/7}$ for large $x$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1057.variants.agp_lower_bound :\n    ∀ᶠ x in atTop, carmichaelCounting x > x ^ (2 / 7 : ℝ) := by\n  sorry\n\n/--\nThe lower bound $C(x)> x^{0.33336704}$ was proved by Harman [Ha08].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1057.variants.harman_lower_bound :\n    ∀ᶠ x in atTop, carmichaelCounting x > x ^ (0.33336704 : ℝ) := by\n  sorry\n\n/--\nThis exponent was improved to $0.3389$ by Lichtman [Li22].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1057.variants.lichtman_lower_bound :\n    ∀ᶠ x in atTop, carmichaelCounting x > x ^ (0.3389 : ℝ) := by\n  sorry\n\nend Erdos1057\n",
  "statement_hash": "b745b583e5bca11bdfdc85ff32e7ba32c26f1762af0fc0c07cd90912b34bfc39",
  "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."
}