{
  "id": "3322",
  "ident": "NS.03322",
  "slug": "erdos-827",
  "title": "Erdős Problem 827",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $n_k$ be minimal such that if $n_k$ points in $\\mathbb{R}^2$ are in general position then\nthere exists a subset of $k$ points such that all $\\binom{k}{3}$ triples determine circles of\ndifferent radii.\n\nDetermine $n_k$.\n\nGeneral position means that no three points are collinear and no four are concyclic, as in\n[Er75h] (quoted in [MaRo15]).",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos827.erdos_827",
  "statement_lean": "theorem erdos_827 : n = erdos_827.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 827\n\n*References:*\n- [erdosproblems.com/827](https://www.erdosproblems.com/827)\n- [Er75h] Erdős, P., *Some problems on elementary geometry*. Austral. Math. Soc. Gaz. 2 (1975),\n  2-3.\n- [Er78c] Erdős, P., *Some more problems on elementary geometry*. Austral. Math. Soc. Gaz. 5\n  (1978), 52-54.\n- [MaRo15] Martínez, L. and Roldán-Pensado, E., *Points defining triangles with distinct\n  circumradii*. Acta Math. Hungar. 145 (2015), 136-141.\n  [arXiv:1402.6276](https://arxiv.org/abs/1402.6276)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics EuclideanGeometry\n\nnamespace Erdos827\n\n/-- The points of `S` lie on a circle of radius `r`. -/\ndef OnCircleOfRadius (S : Finset ℝ²) (r : ℝ) : Prop :=\n  ∃ c : ℝ², ∀ p ∈ S, dist p c = r\n\n/-- Distinct triples of points of `S` never lie on circles of the same radius. For a set with no\nthree collinear points, every triple lies on exactly one circle, so this says that the\n$\\binom{|S|}{3}$ circumradii are pairwise different. -/\ndef HasDistinctCircumradii (S : Finset ℝ²) : Prop :=\n  ∀ T ⊆ S, ∀ T' ⊆ S, T.card = 3 → T'.card = 3 → T ≠ T' →\n    ∀ r : ℝ, OnCircleOfRadius T r → ¬ OnCircleOfRadius T' r\n\n/-- $n_k$: the least $m$ such that every set of $m$ points of $\\mathbb{R}^2$ in general position\n(no three collinear, no four concyclic) contains $k$ points whose $\\binom{k}{3}$ triples\ndetermine circles of pairwise different radii. By [MaRo15] such an $m$ exists for every $k$, so\n`sInf` is a true minimum. -/\nnoncomputable def n (k : ℕ) : ℕ :=\n  sInf {m : ℕ | ∀ X : Finset ℝ², X.card = m → InGeneralPosition (X : Set ℝ²) →\n    ∃ Y ⊆ X, Y.card = k ∧ HasDistinctCircumradii Y}\n\n/-- If every set of `m` points in general position contains `k` points with pairwise different\ncircumradii, then $n_k \\leq m$. -/\n@[category API, AMS 52]\ntheorem n_le {k m : ℕ}\n    (h : ∀ X : Finset ℝ², X.card = m → InGeneralPosition (X : Set ℝ²) →\n      ∃ Y ⊆ X, Y.card = k ∧ HasDistinctCircumradii Y) :\n    n k ≤ m :=\n  Nat.sInf_le h\n\ndef erdos_827.answer : ℕ → ℕ := sorry\n\n/--\nLet $n_k$ be minimal such that if $n_k$ points in $\\mathbb{R}^2$ are in general position then\nthere exists a subset of $k$ points such that all $\\binom{k}{3}$ triples determine circles of\ndifferent radii.\n\nDetermine $n_k$.\n\nGeneral position means that no three points are collinear and no four are concyclic, as in\n[Er75h] (quoted in [MaRo15]).\n-/\n@[category research open, question value, AMS 52]\ntheorem erdos_827 : n = erdos_827.answer := by\n  sorry\n\n/--\nIn [Er78c] Erdős gave an argument for $n_k \\leq k+2\\binom{k-1}{2}\\binom{k-1}{3}$, but this\nargument is incorrect, as explained by Martínez and Roldán-Pensado [MaRo15], who give a corrected\nargument that proves $n_k\\ll k^9$.\n\n[MaRo15, Theorem 1.1] assumes only that no four points lie on a line or a circle. That class\ncontains the sets in general position, so the bound holds for $n_k$ as defined here.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_827.variants.martinez_roldan_pensado :\n    (fun k : ℕ ↦ (n k : ℝ)) =O[atTop] fun k : ℕ ↦ (k : ℝ) ^ 9 := by\n  sorry\n\n/--\nMartínez and Roldán-Pensado [MaRo15, Theorem 1.2] show that $n_4 \\leq 9$.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_827.variants.n_four_le : n 4 ≤ 9 := by\n  sorry\n\n/--\nMartínez and Roldán-Pensado [MaRo15, Theorem 1.2] show that $n_5 \\leq 37$.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_827.variants.n_five_le : n 5 ≤ 37 := by\n  sorry\n\nend Erdos827\n",
  "statement_hash": "feceb6ee48dd8629120dfaa7864b00a66e14e972033dee86ae7471d87c4fb060",
  "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."
}