{
  "id": "1969",
  "ident": "NS.01969",
  "slug": "erdos-392",
  "title": "Erdős Problem 392",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A(n)$ denote the least value of $t$ such that\n$$\n  n! = a_1 \\cdots a_t\n$$\nwith $a_1 \\leq \\cdots \\leq a_t\\leq n^2$. Then\n$$\n  A(n) = \\frac{n}{2} - \\frac{n}{2\\log n} + o\\left(\\frac{n}{\\log n}\\right).\n$$",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/392",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos392.erdos_392",
  "statement_lean": "theorem erdos_392 (A : ℕ → ℕ) (h : ∀ n > 0,\n    IsLeast { t + 1 | (t) (_ : ∃ a : Fin (t + 1) → ℕ, (n)! = ∏ i, a i ∧\n      Monotone a ∧ a (Fin.last t) ≤ n ^ 2) } (A n)) :\n    ((fun (n : ℕ) => (A n - n / 2 + n / (2 * Real.log n) : ℝ)) =o[atTop] fun n => n / Real.log n)",
  "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 392\n\n*Reference:* [erdosproblems.com/392](https://www.erdosproblems.com/392)\n-/\n\n@[expose] public section\n\nopen Filter\n\nopen scoped Nat\n\nnamespace Erdos392\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A(n)$ denote the least value of $t$ such that\n$$\n  n! = a_1 \\cdots a_t\n$$\nwith $a_1 \\leq \\cdots \\leq a_t\\leq n^2$. Then\n$$\n  A(n) = \\frac{n}{2} - \\frac{n}{2\\log n} + o\\left(\\frac{n}{\\log n}\\right).\n$$\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at \"https://github.com/AlexKontorovich/PrimeNumberTheoremAnd/blob/d82a35ecc798ada27f82a88b559f25b753f63a73/PrimeNumberTheoremAnd/IEANTN/Erdos392.lean\"]\ntheorem erdos_392 (A : ℕ → ℕ) (h : ∀ n > 0,\n    IsLeast { t + 1 | (t) (_ : ∃ a : Fin (t + 1) → ℕ, (n)! = ∏ i, a i ∧\n      Monotone a ∧ a (Fin.last t) ≤ n ^ 2) } (A n)) :\n    ((fun (n : ℕ) => (A n - n / 2 + n / (2 * Real.log n) : ℝ)) =o[atTop] fun n => n / Real.log n)\n  := by\n  sorry\n\n/--\nIf we change the condition to $a_t \\leq n$ it can be shown that\n$$\n  A(n) = n - \\frac{n}{\\log n} + o\\left(\\frac{n}{\\log n}\\right)\n$$\n-/\n@[category research solved, AMS 11]\ntheorem erdos_392.variants.lower (A : ℕ → ℕ)\n    (hA : ∀ n > 0, IsLeast\n      { t + 1 | (t) (_ : ∃ a : Fin (t + 1) → ℕ, (n)! = ∏ i, a i ∧\n        Monotone a ∧ a (Fin.last t) ≤ n) } (A n)) :\n    (fun (n : ℕ) => (A n - n + n / Real.log n : ℝ)) =o[atTop] fun n => n / Real.log n := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nCambie has observed that a positive answer follows from the result above with $a_t \\leq n$, simply\nby pairing variables together, e.g. taking $a'_i = a_{2i-1}a_{2i}$ (and the lower bound follows from\nStirling's approximation).\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at \"https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Erdos392_erdos_392_variants_implication.lean#L177\"]\ntheorem erdos_392.variants.implication (h : type_of% erdos_392.variants.lower) :\n    type_of% erdos_392 := by\n  sorry\n\nend Erdos392\n",
  "statement_hash": "a1223b681f51601fcc87fadd9d6c668a2c727b50dadb303fbc4ab436c9ba4aeb",
  "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."
}