{
  "id": "2886",
  "ident": "NS.02886",
  "slug": "erdos-692",
  "title": "Erdős Problem 692",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\delta_1(n,m)$ be the density of the set of integers with exactly one divisor in $(n,m)$.\nIs $\\delta_1(n,m)$ unimodular for $m>n+1$ (i.e. increases until some $m$ then decreases\nthereafter)?\n\nCambie has calculated that unimodularity fails even for $n=2$ and $n=3$.\n\nThis was formalized in Lean by Monticone using Aristotle.",
  "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": "Erdos692.erdos_692.parts.i",
  "statement_lean": "theorem erdos_692.parts.i :\n    ¬ ∀ δ : ℕ → ℕ → ℝ, (∀ a b, IsDelta₁ a b (δ a b)) → ∀ n, UnimodularOn (δ n) (n + 1)",
  "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 692\n\n*References:*\n- [erdosproblems.com/692](https://www.erdosproblems.com/692)\n- [Er79e] Erdős, Paul, Some unconventional problems in number theory. Astérisque (1979), 73-82.\n- [Ob1] Erdős, P., *Oberwolfach Mathematical Problems, Volume 1*. Mathematisches\n  Forschungsinstitut Oberwolfach (Various).\n- [Fo08] Ford, Kevin, *The distribution of integers with a divisor in a given interval*.\n  Ann. of Math. (2) (2008), 367-433.\n- [Ca25] Cambie, S., *Resolution of Erdős' problems about unimodularity*.\n  arXiv:2501.10333 (2025).\n-/\n\n@[expose] public section\n\nnamespace Erdos692\n\nopen Filter\n\n/--\nThe set of integers with exactly one divisor in the open interval $(n, m)$.\n-/\ndef exactlyOneDivisorIn (n m : ℕ) : Set ℕ :=\n  {x | {d ∈ Set.Ioo n m | d ∣ x}.ncard = 1}\n\n/--\n$\\delta_1(n,m)$ is the density of the set of integers with exactly one divisor in $(n,m)$.\n-/\ndef IsDelta₁ (n m : ℕ) (δ : ℝ) : Prop :=\n  (exactlyOneDivisorIn n m).HasDensity δ\n\n/--\nThe set of local maxima of the sequence `f` on `(a, ∞)`. Each local maximum is recorded by the\nfirst index `m` of a maximal interval `[m, b]` on which `f` is constant, with `f` strictly smaller\nat `m - 1` and at `b + 1`.\n-/\ndef localMaxima (f : ℕ → ℝ) (a : ℕ) : Set ℕ :=\n  {m | a < m ∧ f (m - 1) < f m ∧ ∃ b, m ≤ b ∧ (∀ j ∈ Set.Icc m b, f j = f m) ∧ f (b + 1) < f m}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\delta_1(n,m)$ be the density of the set of integers with exactly one divisor in $(n,m)$.\nIs $\\delta_1(n,m)$ unimodular for $m>n+1$ (i.e. increases until some $m$ then decreases\nthereafter)?\n\nCambie has calculated that unimodularity fails even for $n=2$ and $n=3$.\n\nThis was formalized in Lean by Monticone using Aristotle.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n\"https://gist.githubusercontent.com/pitmonticone/96516af9100a37a1da81908dc0b0410c/raw/a1d6ca7f3835c58b257e5e715c8fdf3a224e1bd0/Erdos692.lean\"]\ntheorem erdos_692.parts.i :\n    ¬ ∀ δ : ℕ → ℕ → ℝ, (∀ a b, IsDelta₁ a b (δ a b)) → ∀ n, UnimodularOn (δ n) (n + 1) := by\n  sorry\n\ndef erdos_692.parts.ii.answer (n : ℕ) : ℕ := sorry\n\n/--\nLet $\\delta_1(n,m)$ be the density of the set of integers with exactly one divisor in $(n,m)$.\nFor fixed $n$, where does $\\delta_1(n,m)$ achieve its maximum?\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_692.parts.ii (n : ℕ) :\n    ∀ δ : ℕ → ℕ → ℝ, (∀ a b, IsDelta₁ a b (δ a b)) →\n      IsGreatest (δ n '' Set.Ioi (n + 1)) (δ n (erdos_692.parts.ii.answer n)) := by\n  sorry\n\n/--\nErdős proved that\n$$\\delta_1(n,m) \\ll \\frac{1}{(\\log n)^c}$$\nfor all $m$, for some constant $c>0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_692.variants.erdos_upper_bound :\n    ∀ δ : ℕ → ℕ → ℝ, (∀ a b, IsDelta₁ a b (δ a b)) →\n      ∃ c > (0 : ℝ), ∃ C > (0 : ℝ), ∀ᶠ n in atTop, ∀ m, δ n m ≤ C / Real.log n ^ c := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nCambie has calculated that unimodularity fails even for $n=2$ and $n=3$. For example,\n$$\\delta_1(3,6)= 0.35\\quad \\delta_1(3,7)\\approx 0.33\\quad \\delta_1(3,8)\\approx 0.3619.$$\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/b8e7531a14cbe5c18ea1ae2e9e85b811bc3c7a46/erdos-692/Solution.lean#L26\"]\ntheorem erdos_692.variants.cambie_three :\n    ∀ δ : ℕ → ℕ → ℝ, (∀ a b, IsDelta₁ a b (δ a b)) →\n      δ 3 7 < δ 3 6 ∧ δ 3 7 < δ 3 8 := by\n  sorry\n\n/--\nCambie [Ca25] has shown that, for fixed $n$, the sequence $\\delta_1(n,m)$ has superpolynomially\nmany local maxima $m$. A local maximum is a maximal run of equal values of the sequence that is\nstrictly larger than the values just before and just after the run.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_692.variants.cambie_local_maxima (k : ℕ) :\n    ∀ δ : ℕ → ℕ → ℝ, (∀ a b, IsDelta₁ a b (δ a b)) →\n      ∀ᶠ n : ℕ in atTop, (n : ℕ∞) ^ k ≤ (localMaxima (δ n) (n + 1)).encard := by\n  sorry\n\nend Erdos692\n",
  "statement_hash": "77d69323e2357ce8b3530a4ad9dd260f5fafe6d91e6df75b9cd46c76a23390e2",
  "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."
}