{
  "id": "3758",
  "ident": "NS.03758",
  "slug": "erdos-955",
  "title": "Erdős Problem 955",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "If $A\\subset \\mathbb{N}$ has density $0$ then $s^{-1}(A)$ must also have density $0$.\n\nA conjecture of Erdős, Granville, Pomerance, and Spiro [EGPS90].",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos955.erdos_955",
  "statement_lean": "theorem erdos_955 :\n    ∀ A : Set ℕ, A.HasDensity 0 → { x | s x ∈ A }.HasDensity 0",
  "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 955\n\n*References:*\n- [erdosproblems.com/955](https://www.erdosproblems.com/955)\n- [EGPS90] Erdős, P. and Granville, A. and Pomerance, C. and Spiro, C., On the normal behavior of\n  the iterates of some arithmetic functions. Analytic number theory (Allerton Park, IL, 1989)\n  (1990), 165-204.\n- [Er73b] Erdős, P., Über die Zahlen der Form $\\sigma(n) - n$ und $n - \\phi(n)$. Elem. Math.\n  (1973), 83--86.\n- [Gu04] Guy, Richard K., Unsolved problems in number theory. (2004), xviii+437.\n- [PPT18] Pollack, Paul and Pomerance, Carl and Thompson, Lola, Divisor-sum fibers. Mathematika\n  (2018), 330--342.\n- [Po14b] Pollack, Paul, Some arithmetic properties of the sum of proper divisors and the sum of\n  prime divisors. Illinois J. Math. (2014), 125--147.\n- [PoPo16] Pollack, Paul and Pomerance, Carl, Some problems of Erdős on the sum-of-divisors\n  function. Trans. Amer. Math. Soc. Ser. B (2016), 1--26.\n- [Tr15] Troupe, Lee, On the number of prime factors of values of the sum-of-proper-divisors\n  function. J. Number Theory (2015), 120--135.\n- [Tr20] Troupe, Lee, Divisor sums representable as the sum of two squares. Proc. Amer. Math. Soc.\n  (2020), 4189--4202.\n-/\n\n@[expose] public section\n\nopen Nat Filter\nopen scoped ArithmeticFunction ArithmeticFunction.sigma Topology\n\nnamespace Erdos955\n\n/--\nLet $s(n)=\\sigma(n)-n=\\sum_{\\substack{d\\mid n\\\\ d<n}}d$ be the sum of proper divisors function.\n-/\ndef s (n : ℕ) : ℕ := σ 1 n - n\n\n@[category test, AMS 11]\ntheorem s_one : s 1 = 0 := by decide\n\n@[category test, AMS 11]\ntheorem s_two : s 2 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem s_six : s 6 = 6 := by decide\n\n@[category test, AMS 11]\ntheorem s_twelve : s 12 = 16 := by decide\n\n@[category test, AMS 11]\ntheorem s_twenty_eight : s 28 = 28 := by decide\n\n/--\nIf $A\\subset \\mathbb{N}$ has density $0$ then $s^{-1}(A)$ must also have density $0$.\n\nA conjecture of Erdős, Granville, Pomerance, and Spiro [EGPS90].\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_955 :\n    ∀ A : Set ℕ, A.HasDensity 0 → { x | s x ∈ A }.HasDensity 0 := by\n  sorry\n\n/--\nIt is possible for $s(A)$ to have positive density even if $A$ has zero density (for example\ntaking $A$ to be the product of two distinct primes).\n-/\n@[category research solved, AMS 11]\ntheorem erdos_955.variants.positive_density :\n    ∃ A : Set ℕ, A.HasDensity 0 ∧ (∃ d > 0, (s '' A).HasDensity d) := by\n  sorry\n\n/--\nErdős [Er73b] proved that there are sets $A$ of positive density such that $s^{-1}(A)$ is empty.\n\nHere \"positive density\" means positive lower density: Erdős proved that the set of untouchable\nnumbers (those not of the form $s(n)$) has positive lower density [Er73b, Satz I]. Pollack and\nPomerance [PoPo16] conjecture that this set has a natural density and give a heuristic for its\nvalue. The same result is stated as `erdos_418.variants.sigma` in Erdős Problem 418.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_955.variants.empty_preimage :\n    ∃ A : Set ℕ, 0 < A.lowerDensity ∧ { x | s x ∈ A } = ∅ := by\n  sorry\n\n/--\nPollack [Po14b] has shown that this is true if $A$ is the set of primes.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_955.variants.pollack_primes :\n    { x | Nat.Prime (s x) }.HasDensity 0 := by\n  sorry\n\n/--\nTroupe [Tr15] has shown that this is true if $A$ is the set of integers with unusually many prime\nfactors.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_955.variants.troupe_unusually_many_prime_factors :\n    ∀ ε > 0, { x | (1 + ε) * Real.log (Real.log (s x)) <\n      (ArithmeticFunction.cardDistinctFactors (s x) : ℝ) }.HasDensity 0 := by\n  sorry\n\n/--\nTroupe [Tr20] has also shown this is true if $A$ is the set of integers which are the sum of two\nsquares.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_955.variants.troupe_sum_of_two_squares :\n    { x | ∃ a b : ℕ, s x = a^2 + b^2 }.HasDensity 0 := by\n  sorry\n\nopen scoped Classical in\n/--\nPollack, Pomerance, and Thompson [PPT18] prove that if $\\epsilon(x)=o(1)$ and $A\\subset \\mathbb{N}$\nhas size at most $x^{1/2+\\epsilon(x)}$ then $\\#\\{ n\\leq x: s(n)\\in A\\} =o(x)$ as $x\\to \\infty$. It\nfollows that (using $s(n)\\ll n\\log\\log n$) if $A$ grows like\n$\\lvert A\\cap [1,x]\\rvert\\leq x^{1/2+o(1)}$ then $s^{-1}(A)$ has density $0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_955.variants.pollack_pomerance_thompson_bound :\n    ∀ (A : Set ℕ) (ε : ℕ → ℝ),\n      Tendsto ε atTop (𝓝 0) →\n      (∀ᶠ n : ℕ in atTop, (count (· ∈ A) n : ℝ) ≤ (n : ℝ) ^ ((1 / 2 : ℝ) + ε n)) →\n      { x | s x ∈ A }.HasDensity 0 := by\n  sorry\n\nend Erdos955\n",
  "statement_hash": "8b74f6d3f2da80ccce1d5e441d96f8f31c897f166f267484b629ec33eaa4e793",
  "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."
}