{
  "id": "3550",
  "ident": "NS.03550",
  "slug": "erdos-897",
  "title": "Erdős Problem 897",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$\nif $(a,b)=1$ such that $\\limsup_{p,k} f(p^k) / \\log(p^k) = ∞$.\nIs it true that $\\limsup_n (f(n+1)−f(n))/ \\log n = ∞$?\n\nThe answer is no; this follows from a construction of Wirsing [Wi81], rediscovered by\nArchivara [Ar25] and formalised in Lean by Aristotle [ArWu25].",
  "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": "Erdos897.erdos_897.parts.i",
  "statement_lean": "theorem erdos_897.parts.i : ¬ ∀ (f : ℕ → ℝ),\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) →\n    ((Filter.atTop ⊓ Filter.principal {(p, k) : ℕ × ℕ | p.Prime}).limsup\n      (fun (p, k) => (f (p^k) / (p^k : ℝ).log : EReal)) = ⊤) →\n    Filter.atTop.limsup (fun (n : ℕ) => ((f (n+1) - f n) / (n : ℝ).log : EReal)) = ⊤",
  "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 897\n\n*References:*\n- [erdosproblems.com/897](https://www.erdosproblems.com/897)\n- [Ar25] Archivara Math Research Agent, [An Additive Counterexample: Erdős Problem 897](https://archivara.org/paper/df04f023-6ef0-4c52-bd12-18cdaa8f0741) (2025)\n- [ArWu25] Aristotle, operated mostly by L. Wu, [Lean formalisation of Erdős problem 897](https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos897.lean) (2025)\n- [Wi70] E. Wirsing, A characterization of $\\log n$ as an additive arithmetic function.\n  Symposia Math. (1970), 45-57.\n- [Wi81] E. Wirsing, Additive and completely additive functions with restricted growth.\n  Recent progress in analytic number theory, Vol. 2 (Durham, 1979), 231--280 (1981).\n-/\n\n@[expose] public section\n-- TODO(lezeau): add `ArithmeticFunction.IsAdditive` to `ForMathlib`\n\nnamespace Erdos897\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$\nif $(a,b)=1$ such that $\\limsup_{p,k} f(p^k) / \\log(p^k) = ∞$.\nIs it true that $\\limsup_n (f(n+1)−f(n))/ \\log n = ∞$?\n\nThe answer is no; this follows from a construction of Wirsing [Wi81], rediscovered by\nArchivara [Ar25] and formalised in Lean by Aristotle [ArWu25].\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos897.lean\"]\ntheorem erdos_897.parts.i : ¬ ∀ (f : ℕ → ℝ),\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) →\n    ((Filter.atTop ⊓ Filter.principal {(p, k) : ℕ × ℕ | p.Prime}).limsup\n      (fun (p, k) => (f (p^k) / (p^k : ℝ).log : EReal)) = ⊤) →\n    Filter.atTop.limsup (fun (n : ℕ) => ((f (n+1) - f n) / (n : ℝ).log : EReal)) = ⊤ := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$\nif $(a,b)=1$) such that $\\limsup_{p,k} f(p^k) / \\log(p^k) = ∞$.\nIs it true that $\\limsup_n f(n+1)/ f(n) = ∞$?\n\nThe answer is no; the same counterexample is formalised in Lean by Aristotle [ArWu25].\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos897.lean\"]\ntheorem erdos_897.parts.ii : ¬ ∀ (f : ℕ → ℝ),\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) →\n    ((Filter.atTop ⊓ Filter.principal {(p, k) : ℕ × ℕ | p.Prime}).limsup\n      (fun (p, k) => (f (p^k) / (p^k : ℝ).log : EReal)) = ⊤) →\n    Filter.atTop.limsup (fun (n : ℕ) => (f (n+1) / f n : EReal)) = ⊤ := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWirsing [Wi70] proved that if $|f(n+1)−f(n)| ≤ C$ then $f(n) = c \\log n + O(1)$ for some constant\n$c$. This is Erdős Problem 491; see `erdos_491`, whose linked formal proof gives this statement.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos491.lean#L34\"]\ntheorem erdos_897.variants.log_growth\n    (f : ℕ → ℝ)\n    (hf : ∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b)\n    (C : ℝ) (hf' : ∀ n, |f (n+1) - f n| ≤ C) :\n    ∃ c, ∃ (O : ℕ → ℝ), O =O[Filter.atTop] (1 : ℕ → ℝ) ∧\n      ∀ n, f n ≤ c*Real.log n + O n := by\n  sorry\n\n\n/--\nLet $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$\nif $(a,b)=1$) such that $\\limsup_{p,k} f(p^k) / \\log(p^k) = ∞$ and $f(p^k) = f(p)$\nor $f(p^k) = kf(p)$.\nIs it true that $\\limsup_n (f(n+1)−f(n))/ \\log n = ∞$?\n\nThe known counterexample does not satisfy either of these extra hypotheses, so this variant remains\nopen.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_897.variants.parts.i : ∀ (f : ℕ → ℝ),\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) →\n    ((Filter.atTop ⊓ Filter.principal {(p, k) : ℕ × ℕ | p.Prime}).limsup\n      (fun (p, k) => (f (p^k) / (p^k : ℝ).log : EReal)) = ⊤) →\n    (∀ k p, p.Prime → f (p^k) = f p) ∨ (∀ (k p : ℕ), p.Prime → f (p^k) = k*f p) →\n    Filter.atTop.limsup (fun (n : ℕ) => ((f (n+1) - f n) / (n : ℝ).log : EReal)) = ⊤ := by\n  sorry\n\n/--\nLet $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$\nif $(a,b)=1$) such that $\\limsup_{p,k} f(p^k) / \\log(p^k) = ∞$ and $f(p^k) = f(p)$\nor $f(p^k) = kf(p)$.\nIs it true that $\\limsup_n f(n+1)/f(n) = ∞$?\n\nThe known counterexample does not satisfy either of these extra hypotheses, so this variant remains\nopen.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_897.variants.parts.ii : ∀ (f : ℕ → ℝ),\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) →\n    ((Filter.atTop ⊓ Filter.principal {(p, k) : ℕ × ℕ | p.Prime}).limsup\n      (fun (p, k) => (f (p^k) / (p^k : ℝ).log : EReal)) = ⊤) →\n    (∀ k p, p.Prime → f (p^k) = f p) ∨ (∀ (k p : ℕ), p.Prime → f (p^k) = k*f p) →\n    Filter.atTop.limsup (fun (n : ℕ) => (f (n+1) / f n : EReal)) = ⊤ := by\n  sorry\n\nend Erdos897\n",
  "statement_hash": "cc7376d6536d92b09f7590e3646cd50864581d8fffcf5a3ff5c16527eedce363",
  "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."
}