{
  "id": "2337",
  "ident": "NS.02337",
  "slug": "erdos-506",
  "title": "Erdős Problem 506",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": null,
  "subjects": [
    "math.MG",
    "msc:51",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos506.erdos_506",
  "statement_lean": "theorem erdos_506 (n : ℕ) (hn : 4 ≤ n) :\n    IsLeast { k : ℕ | ∃ P : Finset ℝ²,\n        P.card = n ∧ ¬ Collinear ℝ (P : Set ℝ²) ∧ ¬ Cospherical (P : Set ℝ²) ∧\n        numCircles (P : Set ℝ²) = k }\n      (erdos_506.answer n)",
  "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 506\n\n*References:*\n- [erdosproblems.com/506](https://www.erdosproblems.com/506)\n- [El67] Elliott, P. D. T. A., *On the number of circles determined by $n$ points*, Acta Math.\n  Acad. Sci. Hungar. (1967), 181–188.\n- [BaBa94] Bálintová, A. and Bálint, V., *On the number of circles determined by $n$ points in the\n  Euclidean plane*, Acta Math. Hungar. (1994), 283–289.\n- [PuSm] Purdy and Smith. No reference found.\n-/\n\n@[expose] public section\n\nnamespace Erdos506\n\nopen EuclideanGeometry\n\n/--\nThe number of circles determined by a set of points `P` in the plane: the number of distinct\ncircles (spheres) passing through at least three of the points of `P`. (Three distinct points lie\non a common circle precisely when they are not collinear, so this counts exactly the circumcircles\nof the non-collinear triples of `P`.)\n-/\nnoncomputable def numCircles (P : Set ℝ²) : ℕ :=\n  Set.ncard { s : Sphere ℝ² | 3 ≤ {p ∈ P | p ∈ s}.ncard }\n\ndef erdos_506.answer (n : ℕ) : ℕ := sorry\n\n/--\nWhat is the minimum number of circles determined by any $n$ points in $\\mathbb{R}^2$, not all on a\ncircle?\n\nThere is clearly some non-degeneracy condition intended here - probably either that not all the\npoints are on a line, or the stronger condition that no three points are on a line.\n\nThe answer is known for $n > 393$ (see `erdos_506.variants.large_n`) but the problem appears to\nremain open for small $n$ (see `erdos_506.variants.small_n`).\n-/\n-- Formalisation notes:\n-- * Following Elliott, the non-degeneracy condition used here is the weaker of the two: the points\n--   are not all on a line and not all on a circle.\n-- * The hypothesis `4 ≤ n` is not a restriction of the problem, but excludes the degenerate range\n--   where no admissible configuration exists: fewer than three points are collinear, and any three\n--   non-collinear points lie on a common circle, so the set below is empty for `n < 4`.\n@[category research open, question value, AMS 51 52]\ntheorem erdos_506 (n : ℕ) (hn : 4 ≤ n) :\n    IsLeast { k : ℕ | ∃ P : Finset ℝ²,\n        P.card = n ∧ ¬ Collinear ℝ (P : Set ℝ²) ∧ ¬ Cospherical (P : Set ℝ²) ∧\n        numCircles (P : Set ℝ²) = k }\n      (erdos_506.answer n) := by\n  sorry\n\ndef erdos_506.variants.large_n.answer (n : ℕ) : ℕ := (n - 1).choose 2 + 1 - (n - 1) / 2\n\n/--\nFor $n > 393$ the answer is $\\binom{n-1}{2} + 1 - \\left\\lfloor \\frac{n-1}{2} \\right\\rfloor$\n(Elliott [El67], with the correction of Purdy and Smith [PuSm], also reported in [BaBa94]): this is\nboth a lower bound for every such configuration and is attained, e.g. by a circle with $n - 1$\npoints together with a single point off the circle.\n-/\n@[category research solved, question value, AMS 51 52]\ntheorem erdos_506.variants.large_n (n : ℕ) (hn : 393 < n) :\n    IsLeast { k : ℕ | ∃ P : Finset ℝ²,\n        P.card = n ∧ ¬ Collinear ℝ (P : Set ℝ²) ∧ ¬ Cospherical (P : Set ℝ²) ∧\n        numCircles (P : Set ℝ²) = k }\n      (erdos_506.variants.large_n.answer n) := by\n  sorry\n\ndef erdos_506.variants.small_n.answer (n : ℕ) : ℕ := sorry\n\n/--\nThe problem appears to remain open for small $n$: Elliott's answer is established only for\n$n > 393$, so the minimum number of circles determined by $n$ points, not all on a line and not all\non a circle, is unknown for $n \\le 393$.\n-/\n@[category research open, question value, AMS 51 52]\ntheorem erdos_506.variants.small_n (n : ℕ) (hn : 4 ≤ n) (hn' : n ≤ 393) :\n    IsLeast { k : ℕ | ∃ P : Finset ℝ²,\n        P.card = n ∧ ¬ Collinear ℝ (P : Set ℝ²) ∧ ¬ Cospherical (P : Set ℝ²) ∧\n        numCircles (P : Set ℝ²) = k }\n      (erdos_506.variants.small_n.answer n) := by\n  sorry\n\n/--\nSegre's observation: the lower bound $\\binom{n-1}{2}$ (without the correction of [PuSm]) is\nalready false for $n = 8$, as witnessed by the projection of a cube onto a plane. Hence the minimum\nnumber of circles determined by $8$ such points is strictly less than $\\binom{7}{2} = 21$.\n-/\n@[category research solved, AMS 51 52]\ntheorem erdos_506.variants.segre_n_eq_eight :\n    ∃ P : Finset ℝ²,\n      P.card = 8 ∧ ¬ Collinear ℝ (P : Set ℝ²) ∧ ¬ Cospherical (P : Set ℝ²) ∧\n      numCircles (P : Set ℝ²) < (8 - 1).choose 2 := by\n  sorry\n\nend Erdos506\n",
  "statement_hash": "f566535b80c28874bdf95e96023e219eacfb91fb6c83b0e8f28b831443f350f5",
  "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."
}