{
  "id": "722",
  "ident": "NS.00722",
  "slug": "erdos-1122",
  "title": "Erdős Problem 1122",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f:\\mathbb{N}\\to \\mathbb{R}$ be an additive function (i.e. $f(ab)=f(a)+f(b)$ whenever\n$(a,b)=1$). Let\n$$A=\\{ n \\geq 1: f(n+1)< f(n)\\}.$$\nIf $\\lvert A\\cap [1,X]\\rvert =o(X)$ then must $f(n)=c\\log n$ for some $c\\in \\mathbb{R}$?\n\nThe condition $\\lvert A\\cap [1,X]\\rvert =o(X)$ says that $A$ has natural density $0$.\n\nPartial progress was made by Mangerel [Ma22], who proved that this is true for completely\nadditive $f$ if\n$$\\lvert A\\cap [1,X]\\rvert \\ll \\frac{X}{(\\log X)^{2+c}}$$\nfor some $c>0$, and if $f(p)$ does not have very large values (in a certain technical sense).\n\nSee also `erdos_491`.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1122.erdos_1122",
  "statement_lean": "theorem erdos_1122 : ∀ f : ℕ → ℝ,\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) →\n    {n | 1 ≤ n ∧ f (n + 1) < f n}.HasDensity 0 →\n    ∃ c : ℝ, ∀ n > 0, f n = c * Real.log n",
  "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 1122\n\n*References:*\n- [erdosproblems.com/1122](https://www.erdosproblems.com/1122)\n- [Er46] Erdős, P., *On the distribution function of additive functions*. Annals of Math. (1946),\n  1-20.\n- [Ma22] Mangerel, Alexander P., *Additive functions in short intervals, gaps and a conjecture of\n  Erdős*. Ramanujan J. (2022), 1023--1090.\n-/\n\n@[expose] public section\n\nopen Filter\n\nopen scoped Topology\n\nnamespace Erdos1122\n\n/--\nLet $f:\\mathbb{N}\\to \\mathbb{R}$ be an additive function (i.e. $f(ab)=f(a)+f(b)$ whenever\n$(a,b)=1$). Let\n$$A=\\{ n \\geq 1: f(n+1)< f(n)\\}.$$\nIf $\\lvert A\\cap [1,X]\\rvert =o(X)$ then must $f(n)=c\\log n$ for some $c\\in \\mathbb{R}$?\n\nThe condition $\\lvert A\\cap [1,X]\\rvert =o(X)$ says that $A$ has natural density $0$.\n\nPartial progress was made by Mangerel [Ma22], who proved that this is true for completely\nadditive $f$ if\n$$\\lvert A\\cap [1,X]\\rvert \\ll \\frac{X}{(\\log X)^{2+c}}$$\nfor some $c>0$, and if $f(p)$ does not have very large values (in a certain technical sense).\n\nSee also `erdos_491`.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1122 : ∀ f : ℕ → ℝ,\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) →\n    {n | 1 ≤ n ∧ f (n + 1) < f n}.HasDensity 0 →\n    ∃ c : ℝ, ∀ n > 0, f n = c * Real.log n := by\n  sorry\n\n/--\nErdős [Er46] proved that $f(n)=c\\log n$ for some $c\\in\\mathbb{R}$ if $A$ is empty, that is, if\n$f(n) \\leq f(n+1)$ for all $n \\geq 1$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1122.variants.monotone (f : ℕ → ℝ)\n    (hf : ∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b)\n    (hmono : ∀ n ≥ 1, f n ≤ f (n + 1)) :\n    ∃ c : ℝ, ∀ n > 0, f n = c * Real.log n := by\n  sorry\n\n/--\nErdős [Er46] proved that $f(n)=c\\log n$ for some $c\\in\\mathbb{R}$ if $f(n+1)-f(n)=o(1)$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1122.variants.sub_tendsto_zero (f : ℕ → ℝ)\n    (hf : ∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b)\n    (hdiff : Tendsto (fun n ↦ f (n + 1) - f n) atTop (𝓝 0)) :\n    ∃ c : ℝ, ∀ n > 0, f n = c * Real.log n := by\n  sorry\n\n/--\nFor $c \\geq 0$ the function $c \\log n$ is additive and $A$ is empty, so it satisfies the\nhypotheses of `erdos_1122`.\n-/\n@[category test, AMS 11]\ntheorem const_mul_log (c : ℝ) (hc : 0 ≤ c) (f : ℕ → ℝ) (hf : ∀ n, f n = c * Real.log n) :\n    (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) = f a + f b) ∧\n      {n | 1 ≤ n ∧ f (n + 1) < f n}.HasDensity 0 := by\n  refine ⟨fun a ha b hb _ ↦ ?_, ?_⟩\n  · simp only [hf, Nat.cast_mul]\n    rw [Real.log_mul (by positivity) (by positivity), mul_add]\n  · convert Set.HasDensity.empty\n    refine Set.eq_empty_of_forall_notMem fun n ⟨hn, hlt⟩ ↦ hlt.not_ge ?_\n    simp only [hf]\n    gcongr\n    simp\n\nend Erdos1122\n",
  "statement_hash": "90f19e116b2cbbd2f33314866a78d15780accb52220e756e353bf8fe6f365f52",
  "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."
}