{
  "id": "3347",
  "ident": "NS.03347",
  "slug": "erdos-831",
  "title": "Erdős Problem 831",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $h(n)$ be maximal such that in any $n$ points in $\\mathbb{R}^2$ (with no three on a line and\nno four on a circle) there are at least $h(n)$ many circles of different radii passing through\nthree points. Estimate $h(n)$.\n\nErdős asks this in [Er75h, pp. 2-3] (see also [Er92e]); see also Problems 104 and 506. We read\n\"estimate\" as the order of magnitude `=Θ`. [Er75h] also asks how $h(n)$ changes if one only\nassumes that the points are not all on a circle; this is not formalised.",
  "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": "Erdos831.erdos_831",
  "statement_lean": "theorem erdos_831 :\n    (fun n : ℕ ↦ (h n : ℝ)) =Θ[atTop] erdos_831.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 831\n\n*References:*\n- [erdosproblems.com/831](https://www.erdosproblems.com/831)\n- [Er75h] Erdős, P., *Some problems on elementary geometry*. Austral. Math. Soc. Gaz. (1975), 2-3.\n  [PDF](https://www.renyi.hu/~p_erdos/1975-41.pdf)\n- [Er92e] Erdős, Pál, *Some Unsolved problems in Geometry, Number Theory and Combinatorics*. Eureka\n  (1992), 44-48.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics EuclideanGeometry\n\nnamespace Erdos831\n\n/-- The set of radii of the circles passing through at least three points of `P`. A circle is a\n`Sphere ℝ²` (a centre and a radius), and we collect the radii of those spheres that contain at\nleast three points of `P`. For a finite `P` this set is finite, since three distinct points lie on\nat most one circle. -/\ndef circleRadii (P : Set ℝ²) : Set ℝ :=\n  (fun s : Sphere ℝ² ↦ s.radius) '' {s : Sphere ℝ² | 3 ≤ {p ∈ P | p ∈ s}.ncard}\n\n/-- The number of circles of different radii passing through three points of `P`. -/\nnoncomputable def numRadii (P : Set ℝ²) : ℕ :=\n  (circleRadii P).ncard\n\n/-- `h n` is the minimum, over all sets `P` of `n` points of the plane in general position (no\nthree on a line, no four on a circle), of the number `numRadii P` of different radii of circles\nthrough three points of `P`. In Erdős's words, `h n` is the largest integer such that every such\n`P` determines at least `h n` circles of different radii.\n\nAdmissible `P` exist for every `n`: the points $(i, i^2)$, $1 \\le i \\le n$, have no three on a\nline, and four points $(t_j, t_j^2)$ of the parabola lie on a circle only if $\\sum_j t_j = 0$.\nHence the set below is nonempty and `sInf` is a true minimum. For $n \\le 2$ no circle passes\nthrough three points and `h n = 0`. -/\nnoncomputable def h (n : ℕ) : ℕ :=\n  sInf {k : ℕ | ∃ P : Finset ℝ², P.card = n ∧ InGeneralPosition (P : Set ℝ²) ∧\n    numRadii (P : Set ℝ²) = k}\n\n/-- A set of `n` points in general position determining `k` different radii gives\n`h n ≤ k`. -/\n@[category API, AMS 51 52]\ntheorem h_le {n : ℕ} (P : Finset ℝ²) (hcard : P.card = n) (hP : InGeneralPosition (P : Set ℝ²)) :\n    h n ≤ numRadii (P : Set ℝ²) :=\n  Nat.sInf_le ⟨P, hcard, hP, rfl⟩\n\ndef erdos_831.answer : ℕ → ℝ := sorry\n\n/--\nLet $h(n)$ be maximal such that in any $n$ points in $\\mathbb{R}^2$ (with no three on a line and\nno four on a circle) there are at least $h(n)$ many circles of different radii passing through\nthree points. Estimate $h(n)$.\n\nErdős asks this in [Er75h, pp. 2-3] (see also [Er92e]); see also Problems 104 and 506. We read\n\"estimate\" as the order of magnitude `=Θ`. [Er75h] also asks how $h(n)$ changes if one only\nassumes that the points are not all on a circle; this is not formalised.\n-/\n@[category research open, question value, AMS 51 52]\ntheorem erdos_831 :\n    (fun n : ℕ ↦ (h n : ℝ)) =Θ[atTop] erdos_831.answer := by\n  sorry\n\n/--\nErdős [Er75h, p. 2] attributes to E. Szekeres the observation that for three points\n$x_1,x_2,x_3$ of the plane, not on a line, there is a unique point $x_4$ such that\n$x_1,x_2,x_3,x_4$ are not on a circle and the four circles determined by the four triples of these\npoints have the same radius; one can take $x_4$ to be the orthocentre of the triangle\n$x_1x_2x_3$.\n\nRead literally this fails for a right-angled triangle, whose orthocentre is a vertex, so we assume\nthat the triangle has no right angle. We also require the four points to be in general position,\nso that the four circles exist.\n-/\n@[category research solved, AMS 51 52]\ntheorem erdos_831.variants.szekeres (x₁ x₂ x₃ : ℝ²)\n    (hcol : ¬ Collinear ℝ ({x₁, x₂, x₃} : Set ℝ²)) (hright : ¬ IsRightAngled x₁ x₂ x₃) :\n    ∃! x₄ : ℝ², x₄ ∉ ({x₁, x₂, x₃} : Set ℝ²) ∧\n      InGeneralPosition ({x₁, x₂, x₃, x₄} : Set ℝ²) ∧\n      (circleRadii ({x₁, x₂, x₃, x₄} : Set ℝ²)).ncard = 1 := by\n  sorry\n\nend Erdos831\n",
  "statement_hash": "52d12c41bb857b2af107baec1f1c9c569d9d4e0c6a2bdb825361443dc22808f2",
  "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."
}