{
  "id": "2302",
  "ident": "NS.02302",
  "slug": "erdos-50",
  "title": "Erdős Problem 50",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Schoenberg [Sch38] proved that the asymptotic distribution function of $\\varphi(n)/n$ exists.\nThat is, for any $c \\in [0, 1]$, the proportion of integers $n \\le N$ satisfying $\\varphi(n)/n < c$\napproaches a limit as $N \\to \\infty$. This limit function is the cumulative distribution function\nof the values of $\\varphi(n)/n$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos50.erdos_50_schoenberg",
  "statement_lean": "theorem erdos_50_schoenberg : ∃ f : ℝ → ℝ, IsDistributionOfPhiRatio f",
  "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 50\n\n*References:*\n* [erdosproblems.com/50](https://www.erdosproblems.com/50)\n* [Er95] Erdős, Paul, Some of my favourite problems in number theory, combinatorics, and geometry.\nResenhas (1995), 165-186.\n* [Sch38] Schoenberg, I. J. \"On asymptotic distributions of arithmetical functions.\"\nTransactions of the American Mathematical Society 39.2 (1936): 315-330.\n-/\n\n@[expose] public section\n\nopen Filter Set MeasureTheory Topology\nopen scoped Nat Topology\n\nnamespace Erdos50\n\n/--\nA function $f : \\mathbb{R} \\to \\mathbb{R}$ is the asymptotic distribution function of the values\nof $\\varphi(n)/n$ if for all $c \\in [0, 1]$, the natural density of $\\{n : \\varphi(n) < cn\\}$\nexists and equals $f(c)$.\n-/\ndef IsDistributionOfPhiRatio (f : ℝ → ℝ) : Prop :=\n  ∀ c ∈ Icc (0 : ℝ) 1, {n : ℕ | (φ n : ℝ) < c * n}.HasDensity (f c)\n\n/--\nA function $f : \\mathbb{R} \\to \\mathbb{R}$ is purely singular (or singular continuous) on a set\n$s \\subseteq \\mathbb{R}$ if it is continuous on $s$ and its derivative within $s$ equals zero\nalmost everywhere on $s$ with respect to Lebesgue measure.\n-/\ndef IsPurelySingularOn (f : ℝ → ℝ) (s : Set ℝ) : Prop :=\n  ContinuousOn f s ∧ ∀ᵐ x ∂(volume.restrict s), derivWithin f s x = 0\n\n/--\nSchoenberg [Sch38] proved that the asymptotic distribution function of $\\varphi(n)/n$ exists.\nThat is, for any $c \\in [0, 1]$, the proportion of integers $n \\le N$ satisfying $\\varphi(n)/n < c$\napproaches a limit as $N \\to \\infty$. This limit function is the cumulative distribution function\nof the values of $\\varphi(n)/n$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_50_schoenberg : ∃ f : ℝ → ℝ, IsDistributionOfPhiRatio f := by\n  sorry\n\n/--\nErdős [Er95] proved that the distribution function of $\\varphi(n)/n$ is purely singular on\n$[0, 1]$: it is continuous there, but its derivative is zero almost everywhere on $[0, 1]$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_50_singular (f : ℝ → ℝ) (hf : IsDistributionOfPhiRatio f) :\n    IsPurelySingularOn f (Icc 0 1) := by\n  sorry\n\n/--\nLet $f$ be the asymptotic distribution function of $\\varphi(n)/n$, so that for each $c \\in [0,1]$,\n$f(c)$ is the natural density of $\\{n : \\varphi(n) < cn\\}$. Is it true that there is no $x$ such\nthat the derivative $f'(x)$ exists and is positive?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_50 : ∀ᵉ (f : ℝ → ℝ) (hf : IsDistributionOfPhiRatio f),\n    ¬∃ x ∈ Icc (0 : ℝ) 1, ∃ y > 0, HasDerivWithinAt f y (Icc 0 1) x := by\n  sorry\n\nend Erdos50\n",
  "statement_hash": "4c33564776585c4d80379a1fdc565b80ec505bb6e9c8350fb5aaa10ea8b413a4",
  "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."
}