{
  "id": "963",
  "ident": "NS.00963",
  "slug": "erdos-1195",
  "title": "Erdős Problem 1195",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $S\\subset \\mathbb{R}$ be a set of infinite measure such that $x/y$ is never an integer for all\ndistinct $x,y\\in S$.\n\nHow fast can $\\lvert S\\cap (0,x)\\rvert$ tend to infinity?\n\nA question of Erdős [Er80, p. 101]. Ho Boon Suan and GPT-5.4 Pro [HoGPT] settled this: if\n$F:[1,\\infty)\\to [0,\\infty)$ is a non-decreasing function tending to infinity, then there exists\nsuch a set $S$ with\n$\\lvert S\\cap (0,x)\\rvert \\geq F(x)$ if and only if\n$$\\int_1^\\infty \\frac{F(x)}{x^2}\\mathrm{d}x < \\infty.$$\nHere $\\lvert\\cdot\\rvert$ is Lebesgue measure, $S$ is measurable, and the inequality is required for\nall sufficiently large $x$. The statement says that the set of such $F$ is exactly the answer.",
  "subjects": [
    "math.NT",
    "math.CA",
    "msc:11",
    "msc:28"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1195.erdos_1195",
  "statement_lean": "theorem erdos_1195 :\n    {F : ℝ → ℝ | IsGrowthRate F ∧ HasSet F} = erdos_1195.answer",
  "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 1195\n\n*References:*\n- [erdosproblems.com/1195](https://www.erdosproblems.com/1195)\n- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.\n  (1980), 89-115. [PDF](https://www.renyi.hu/~p_erdos/1980-03.pdf)\n- [Ha70] Haight, J. A., *A linear set of infinite measure with no two points having integral\n  ratio*. Mathematika (1970), 133--138.\n- [HoGPT] Ho, Boon Suan and GPT-5.4 Pro, comments on Erdős Problem 1195. erdosproblems.com forum\n  thread. [Forum](https://www.erdosproblems.com/forum/thread/1195)\n- [Sc69] Schmidt, W. M., *Disproof of some conjectures on Diophantine approximations*. Studia Sci.\n  Math. Hungar. (1969), 137-144.\n- [Sz71] Szemerédi, E., *On a problem of W. Schmidt*. Studia Sci. Math. Hungar. (1971), 287--288.\n-/\n\n@[expose] public section\n\nopen Filter MeasureTheory\n\nnamespace Erdos1195\n\n/-- The Lebesgue measure $\\lvert S\\cap (0,x)\\rvert$ of $S\\cap (0,x)$, as a real number. -/\nnoncomputable def countingFunction (S : Set ℝ) (x : ℝ) : ℝ :=\n  (volume (S ∩ Set.Ioo 0 x)).toReal\n\n/-- `IntegerRatioFree S` says that $x/y$ is not an integer for all distinct $x,y\\in S$. Negative\nintegers are included. Since `x / 0 = 0` in Lean, a set with at least two points cannot contain\n`0`; this does not affect measures. -/\ndef IntegerRatioFree (S : Set ℝ) : Prop :=\n  ∀ ⦃x⦄, x ∈ S → ∀ ⦃y⦄, y ∈ S → x ≠ y → ∀ z : ℤ, x / y ≠ z\n\n/-- `IsGrowthRate F` says that $F$ is nonnegative and non-decreasing on $[1,\\infty)$ and tends to\ninfinity. We use $F:\\mathbb{R}\\to\\mathbb{R}$; only its values on $[1,\\infty)$ matter. -/\ndef IsGrowthRate (F : ℝ → ℝ) : Prop :=\n  (∀ x ∈ Set.Ici (1 : ℝ), 0 ≤ F x) ∧ MonotoneOn F (Set.Ici 1) ∧ Tendsto F atTop atTop\n\n/-- `HasSet F` says that there is a measurable set $S$ of infinite measure such that $x/y$ is\nnever an integer for distinct $x,y\\in S$, and $\\lvert S\\cap (0,x)\\rvert\\geq F(x)$ for all\nsufficiently large $x$. -/\ndef HasSet (F : ℝ → ℝ) : Prop :=\n  ∃ S : Set ℝ, MeasurableSet S ∧ volume S = ⊤ ∧ IntegerRatioFree S ∧\n    ∀ᶠ x in atTop, F x ≤ countingFunction S x\n\n/-- The answer: the growth rates $F$ with $\\int_1^\\infty F(x)/x^2\\,dx<\\infty$. For a non-negative\nmonotone $F$, `IntegrableOn` is equivalent to this integral being finite. -/\ndef erdos_1195.answer : Set (ℝ → ℝ) :=\n  {F | IsGrowthRate F ∧ IntegrableOn (fun x ↦ F x / x ^ 2) (Set.Ici 1)}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $S\\subset \\mathbb{R}$ be a set of infinite measure such that $x/y$ is never an integer for all\ndistinct $x,y\\in S$.\n\nHow fast can $\\lvert S\\cap (0,x)\\rvert$ tend to infinity?\n\nA question of Erdős [Er80, p. 101]. Ho Boon Suan and GPT-5.4 Pro [HoGPT] settled this: if\n$F:[1,\\infty)\\to [0,\\infty)$ is a non-decreasing function tending to infinity, then there exists\nsuch a set $S$ with\n$\\lvert S\\cap (0,x)\\rvert \\geq F(x)$ if and only if\n$$\\int_1^\\infty \\frac{F(x)}{x^2}\\mathrm{d}x < \\infty.$$\nHere $\\lvert\\cdot\\rvert$ is Lebesgue measure, $S$ is measurable, and the inequality is required for\nall sufficiently large $x$. The statement says that the set of such $F$ is exactly the answer.\n-/\n@[category research solved, question value, AMS 11 28, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1195.lean#L1933\"]\ntheorem erdos_1195 :\n    {F : ℝ → ℝ | IsGrowthRate F ∧ HasSet F} = erdos_1195.answer := by\n  sorry\n\n/--\nSchmidt [Sc69] asked whether such a set exists. Haight [Ha70] constructed a measurable set\n$E\\subset(0,\\infty)$ of infinite Lebesgue measure such that $x_1/x_2$ is never an integer for\ndistinct $x_1,x_2\\in E$, and Szemerédi [Sz71] independently constructed such a set.\n-/\n@[category research solved, AMS 11 28]\ntheorem erdos_1195.variants.exists_set :\n    ∃ S : Set ℝ, MeasurableSet S ∧ S ⊆ Set.Ioi 0 ∧ volume S = ⊤ ∧ IntegerRatioFree S := by\n  sorry\n\nend Erdos1195\n",
  "statement_hash": "6af77dd7d9c77859058d3971a046f4290b57c508c3fe40c03a64d3ca0f3b3ab5",
  "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."
}