{
  "id": "618",
  "ident": "NS.00618",
  "slug": "erdos-1086",
  "title": "Erdős Problem 1086",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $g(n)$ be minimal such that any set of $n$ points in $\\mathbb{R}^2$ contains the vertices of\nat most $g(n)$ many triangles with the same area. Estimate $g(n)$.\n\nOnly triangles of positive area are counted.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1086.erdos_1086",
  "statement_lean": "theorem erdos_1086 : (fun n : ℕ ↦ (g n : ℝ)) =Θ[atTop] erdos_1086.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 1086\n\n*References:*\n- [erdosproblems.com/1086](https://www.erdosproblems.com/1086)\n- [ErPu71] Erdős, P. and Purdy, G., *Some extremal problems in geometry*. J. Combinatorial Theory\n  Ser. A 10 (1971), 246-252.\n- [RaSh17] Raz, O. E. and Sharir, M., *The number of unit-area triangles in the plane: theme and\n  variations*. Combinatorica 37 (2017), 1221-1240.\n  [arXiv:1501.00379](https://arxiv.org/abs/1501.00379)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\nopen scoped EuclideanGeometry\n\nnamespace Erdos1086\n\nopen scoped Classical in\n/-- The number of triangles with vertices in `P` and area `a`: the `3`-element subsets of `P`\nwhose vertices `p, q, r` satisfy `|triangle_area p q r| = a`. -/\nnoncomputable def triangleAreaCount (P : Finset ℝ²) (a : ℝ) : ℕ :=\n  ((P.powersetCard 3).filter fun T =>\n    ∃ p q r : ℝ², T = {p, q, r} ∧ |EuclideanGeometry.triangle_area p q r| = a).card\n\n/-- $g(n)$: the maximum, over all sets of $n$ points in the plane and all areas $a > 0$, of the\nnumber of triangles of area $a$ with vertices in the set. Only positive areas count, since every\ncollinear triple has area $0$. The set of values is nonempty and bounded by $\\binom{n}{3}$, so\n`sSup` is a true maximum. -/\nnoncomputable def g (n : ℕ) : ℕ :=\n  sSup {m : ℕ | ∃ (P : Finset ℝ²) (a : ℝ), P.card = n ∧ 0 < a ∧ triangleAreaCount P a = m}\n\n/-- A set of `n` points has at most $\\binom{n}{3}$ triangles of any given area. -/\n@[category API, AMS 52]\ntheorem triangleAreaCount_le (P : Finset ℝ²) (a : ℝ) :\n    triangleAreaCount P a ≤ P.card.choose 3 := by\n  classical\n  unfold triangleAreaCount\n  exact (Finset.card_filter_le _ _).trans (Finset.card_powersetCard 3 P).le\n\n/-- A set of points has at most `g n` triangles of any given positive area. -/\n@[category API, AMS 52]\ntheorem triangleAreaCount_le_g (P : Finset ℝ²) {a : ℝ} (ha : 0 < a) :\n    triangleAreaCount P a ≤ g P.card := by\n  refine le_csSup ⟨P.card.choose 3, ?_⟩ ⟨P, a, rfl, ha, rfl⟩\n  rintro m ⟨Q, b, hQ, -, rfl⟩\n  exact hQ ▸ triangleAreaCount_le Q b\n\ndef erdos_1086.answer : ℕ → ℝ := sorry\n\n/--\nLet $g(n)$ be minimal such that any set of $n$ points in $\\mathbb{R}^2$ contains the vertices of\nat most $g(n)$ many triangles with the same area. Estimate $g(n)$.\n\nOnly triangles of positive area are counted.\n-/\n@[category research open, question value, AMS 52]\ntheorem erdos_1086 : (fun n : ℕ ↦ (g n : ℝ)) =Θ[atTop] erdos_1086.answer := by\n  sorry\n\n/--\nErdős and Purdy [ErPu71] proved\n$$n^2\\log\\log n \\ll g(n) \\ll n^{5/2}.$$\n\nThis is the lower bound.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_1086.variants.erdos_purdy_lower :\n    (fun n : ℕ ↦ (n : ℝ) ^ 2 * Real.log (Real.log n)) =O[atTop] fun n : ℕ ↦ (g n : ℝ) := by\n  sorry\n\n/--\nThe upper bound of Erdős and Purdy [ErPu71] has been improved a number of times. The best known\nbound is $g(n) \\ll n^{20/9}$ by Raz and Sharir [RaSh17].\n-/\n@[category research solved, AMS 52]\ntheorem erdos_1086.variants.raz_sharir :\n    (fun n : ℕ ↦ (g n : ℝ)) =O[atTop] fun n : ℕ ↦ (n : ℝ) ^ (20 / 9 : ℝ) := by\n  sorry\n\nend Erdos1086\n",
  "statement_hash": "14d55b076143892e81e1642610b04e9032be4569173462fedb71dc8d281e50f7",
  "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."
}