{
  "id": "2324",
  "ident": "NS.02324",
  "slug": "erdos-503",
  "title": "Erdős Problem 503",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "What is the size of the largest $A \\subseteq \\mathbb{R}^n$ such that every three points from $A$\ndetermine an isosceles triangle? That is, for any three points $x$, $y$, $z$ from $A$, at least two\nof the distances $|x - y|$, $|y - z|$, $|x - z|$ are equal.",
  "subjects": [
    "math.MG",
    "msc:51"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/503",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos503.erdos_503",
  "statement_lean": "theorem erdos_503 (n : ℕ) :\n    IsGreatest {(A.ncard) | (A : Set (ℝ^n)) (hA : A.IsIsosceles)} (erdos_503.answer n)",
  "challenge_source": "/-\nCopyright 2025 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 503\n\n*Reference:* [erdosproblems.com/503](https://www.erdosproblems.com/503)\n-/\n\n@[expose] public section\n\nnamespace Erdos503\n\nopen scoped EuclideanGeometry\n\ndef erdos_503.answer (n : ℕ) : ℕ := sorry\n\n/--\nWhat is the size of the largest $A \\subseteq \\mathbb{R}^n$ such that every three points from $A$\ndetermine an isosceles triangle? That is, for any three points $x$, $y$, $z$ from $A$, at least two\nof the distances $|x - y|$, $|y - z|$, $|x - z|$ are equal.\n-/\n@[category research open, question value, AMS 51]\ntheorem erdos_503 (n : ℕ) :\n    IsGreatest {(A.ncard) | (A : Set (ℝ^n)) (hA : A.IsIsosceles)} (erdos_503.answer n) := by\n  sorry\n\n/--\nWhen $n = 2$, the answer is 6 (due to Kelly [ErKe47] - an alternative proof is given by Kovács [Ko24c]).\n\n[ErKe47] Erdős, Paul and Kelly, L. M., Elementary Problems and Solutions: Solutions: E735. Amer. Math. Monthly (1947), 227-229.\n[Ko24c] Z. Kovács, A note on Erdős's mysterious remark. arXiv:2412.05190 (2024).\n-/\n@[category research solved, AMS 51]\ntheorem erdos_503.variants.R2 :\n    IsGreatest {(A.ncard) | (A : Set ℝ²) (hA : A.IsIsosceles)} 6 := by\n  sorry\n\n/--\nWhen $n = 3$, the answer is 8 (due to Croft [Cr62]).\n\n[Cr62] Croft, H. T., $9$-point and $7$-point configurations in $3$-space. Proc. London Math. Soc. (3) (1962), 400-424.\n-/\n@[category research solved, AMS 51]\ntheorem erdos_503.variants.R3 :\n    IsGreatest {(A.ncard) | (A : Set ℝ³) (hA : A.IsIsosceles)} 8 := by\n  sorry\n\n/--\nThe best upper bound known in general is due to Blokhius [Bl84] who showed that\n$$\n|A| \\leq \\binom{n + 2}{2}\n$$\n\n[Bl84] Blokhuis, A., Few-distance sets. (1984), iv+70.\n-/\n@[category research solved, AMS 51]\ntheorem erdos_503.variants.upper_bound (n : ℕ) :\n    ∀ m ∈ {(A.ncard) | (A : Set (ℝ^n)) (hA : A.IsIsosceles)}, m ≤ (n + 2).choose 2 := by\n  sorry\n\n/--\nAlweiss has observed a lower bound of $\\binom{n + 1}{2}$ follows from considering the subset of\n$\\mathbb{R}^{n + 1}$ formed of all vectors $e_i + e_j$ where $e_i$, $e_j$ are distinct coordinate\nvectors. This set can be viewed as a subset of some $\\mathbb{R}^n$, and is easily checked to have\nthe required property.\n\nThe bound is stated as the existence of such a set and not as a bound on the `sSup` of the sizes:\nin `ℕ` the `sSup` of an unbounded set is `0`, so the latter would also assert that the sizes are\nbounded, which is the content of `erdos_503.variants.upper_bound`.\n-/\n@[category research solved, AMS 51]\ntheorem erdos_503.variants.lower_bound (n : ℕ) :\n    ∃ m ∈ {(A.ncard) | (A : Set (ℝ^n)) (hA : A.IsIsosceles)}, (n + 1).choose 2 ≤ m := by\n  sorry\n\nend Erdos503\n",
  "statement_hash": "9937a07a8d2d0038450a7a9be010ba8fcc4899c6edeb39e3cabee31474e3484c",
  "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."
}