{
  "id": "3370",
  "ident": "NS.03370",
  "slug": "erdos-838",
  "title": "Erdős Problem 838",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be maximal such that any $n$ points in $\\mathbb{R}^2$, with no three on a line,\ndetermine at least $f(n)$ different convex subsets. Estimate $f(n)$ - in particular, does there\nexist a constant $c$ such that\n$$\\lim \\frac{\\log f(n)}{(\\log n)^2}=c?$$\n\nA question of Erdős and Hammer [Er78c, pp. 52-53]. This is the first part. We read \"estimate\" as\nasking for an asymptotic formula for $\\log f(n)$.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos838.erdos_838.parts.i",
  "statement_lean": "theorem erdos_838.parts.i :\n    (fun n : ℕ ↦ Real.log (f n)) ~[atTop] erdos_838.parts.i.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 838\n\n*References:*\n- [erdosproblems.com/838](https://www.erdosproblems.com/838)\n- [Er78c] Erdős, P., *Some more problems on elementary geometry*. Austral. Math. Soc. Gaz. 5\n  (1978), 52-54. [PDF](https://www.renyi.hu/~p_erdos/1978-44.pdf)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics EuclideanGeometry\n\nnamespace Erdos838\n\n/-- The number of convex subsets determined by a finite set $P$ of points of $\\mathbb{R}^2$: the\nsubsets of $P$ that are in convex position (`ConvexIndep`). The empty set, the singletons and the\npairs count as convex. This shifts the count by exactly $1+n+\\binom{n}{2}$ for $|P|=n$ compared\nwith counting only subsets of size at least $3$, and does not affect the asymptotics below. -/\nnoncomputable def numConvexSubsets (P : Finset ℝ²) : ℕ :=\n  Set.ncard {S : Finset ℝ² | S ⊆ P ∧ ConvexIndep (S : Set ℝ²)}\n\n/-- $f(n)$: the least number of convex subsets determined by $n$ points of $\\mathbb{R}^2$ with no\nthree on a line. Such point sets exist for every $n$ (for example $n$ points on a parabola), so\nthe `sInf` is a true minimum. -/\nnoncomputable def f (n : ℕ) : ℕ :=\n  sInf {m : ℕ | ∃ P : Finset ℝ², P.card = n ∧ NonTrilinear (P : Set ℝ²) ∧\n    numConvexSubsets P = m}\n\n/-- Any set of $n$ points with no three on a line gives the upper bound $f(n)\\leq$ (its number of\nconvex subsets). -/\n@[category API, AMS 52]\ntheorem f_le {n : ℕ} {P : Finset ℝ²} (hcard : P.card = n) (hP : NonTrilinear (P : Set ℝ²)) :\n    f n ≤ numConvexSubsets P :=\n  Nat.sInf_le ⟨P, hcard, hP, rfl⟩\n\ndef erdos_838.parts.i.answer : ℕ → ℝ := sorry\n\n/--\nLet $f(n)$ be maximal such that any $n$ points in $\\mathbb{R}^2$, with no three on a line,\ndetermine at least $f(n)$ different convex subsets. Estimate $f(n)$ - in particular, does there\nexist a constant $c$ such that\n$$\\lim \\frac{\\log f(n)}{(\\log n)^2}=c?$$\n\nA question of Erdős and Hammer [Er78c, pp. 52-53]. This is the first part. We read \"estimate\" as\nasking for an asymptotic formula for $\\log f(n)$.\n-/\n@[category research open, question value, AMS 52]\ntheorem erdos_838.parts.i :\n    (fun n : ℕ ↦ Real.log (f n)) ~[atTop] erdos_838.parts.i.answer := by\n  sorry\n\n/--\nLet $f(n)$ be maximal such that any $n$ points in $\\mathbb{R}^2$, with no three on a line,\ndetermine at least $f(n)$ different convex subsets. Estimate $f(n)$ - in particular, does there\nexist a constant $c$ such that\n$$\\lim \\frac{\\log f(n)}{(\\log n)^2}=c?$$\n\nA question of Erdős and Hammer [Er78c, p. 53]. This is the second part.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_838.parts.ii :\n    ∃ c : ℝ, Tendsto (fun n : ℕ ↦ Real.log (f n) / Real.log n ^ 2) atTop (nhds c) := by\n  sorry\n\n/--\nErdős proved in [Er78c] that there exist constants $c_1,c_2>0$ such that\n$$n^{c_1\\log n}<f(n)< n^{c_2\\log n}.$$\nHere $\\log$ is the natural logarithm (another base only changes the constants), and $n\\geq 2$.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_838.variants.erdos_bounds :\n    ∃ c₁ c₂ : ℝ, 0 < c₁ ∧ 0 < c₂ ∧ ∀ n : ℕ, 2 ≤ n →\n      (n : ℝ) ^ (c₁ * Real.log n) < f n ∧ (f n : ℝ) < (n : ℝ) ^ (c₂ * Real.log n) := by\n  sorry\n\nend Erdos838\n",
  "statement_hash": "0cf280915080ee2e54dd4ef618ade126430d2d2b8dcf44201cb55166e50a6ca4",
  "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."
}