{
  "id": "3040",
  "ident": "NS.03040",
  "slug": "erdos-735",
  "title": "Erdős Problem 735",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Given any $n$ points in $\\mathbb{R}^2$ when can one give positive weights to the points such that\nthe sum of the weights of the points along every line containing at least two points is the same?\n\nThis is a problem of Murty [Er81], who conjectured that this is only possible in one of\nfour cases: all points on a line, no three points on a line, $n-1$ points on a line, and a\ntriangle, the angle bisectors, and the incentre (or a projective equivalent). Ackerman, Buchin,\nKnauer, Pinchasi and Rote [ABKPR08] proved this conjecture. Conversely, every set in these four\ncases is magic.",
  "subjects": [
    "math.MG",
    "msc:51",
    "msc:52"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos735.erdos_735",
  "statement_lean": "theorem erdos_735 : {S : Finset ℝ² | IsMagic S} = erdos_735.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 735\n\n*References:*\n- [erdosproblems.com/735](https://www.erdosproblems.com/735)\n- [Er81] Erdős, P., *On the combinatorial problems which I would most like to see solved*.\n  Combinatorica 1 (1981), 25-42. [PDF](https://www.renyi.hu/~p_erdos/1981-16.pdf)\n- [ABKPR08] Ackerman, E., Buchin, K., Knauer, C., Pinchasi, R. and Rote, G., *There are not too\n  many magic configurations*. Discrete Comput. Geom. 39 (2008), 3-16.\n  [DOI](https://doi.org/10.1007/s00454-007-9023-0)\n-/\n\n@[expose] public section\n\nopen EuclideanGeometry\n\nnamespace Erdos735\n\nopen scoped Classical in\n/-- A finite set `S` of points of the plane is *magic* if one can give positive weights to the\npoints of `S` such that the sum of the weights of the points of `S` on every line containing at\nleast two points of `S` is the same number `c`. A line containing at least two points of `S` is\n`line[ℝ, p, q]` for some distinct `p q ∈ S`. If `S` has at most one point there is no such line,\nso `S` is magic. Rescaling the weights, `c` can be normalised to `1` when `S` has two points or\nmore, which is the definition in [ABKPR08]. -/\ndef IsMagic (S : Finset ℝ²) : Prop :=\n  ∃ (w : ℝ² → ℝ) (c : ℝ), (∀ p ∈ S, 0 < w p) ∧\n    ∀ p ∈ S, ∀ q ∈ S, p ≠ q → ∑ r ∈ S with r ∈ line[ℝ, p, q], w r = c\n\n/-- A set with at most one point is magic: there is no line to check. -/\n@[category API, AMS 52]\ntheorem isMagic_of_card_le_one {S : Finset ℝ²} (h : S.card ≤ 1) : IsMagic S :=\n  ⟨fun _ => 1, 0, fun _ _ => one_pos,\n    fun p hp q hq hpq => absurd (Finset.card_le_one.mp h p hp q hq) hpq⟩\n\n/-- `S` is a *failed Fano configuration*: it consists of four points `a b c d`, no three on a\nline, together with the three diagonal points `e = ab ∩ cd`, `f = ac ∩ bd`, `g = ad ∩ bc` of the\ncomplete quadrangle `abcd`. This is the Fano plane with one line removed: the diagonal points are\nnot collinear in the real plane. The three diagonal points must exist in the plane, that is, the\nopposite sides of the quadrangle must not be parallel. Such an `S` has seven points. These are\nexactly the projective images of the configuration in Figure 1 of [ABKPR08] that lie in the plane.\nMurty's configuration [Er81], \"a triangle the angle bisectors and the incentre\", is read as the\ntriangle `abc`, its incentre `d` and the feet `e f g` of the angle bisectors on the opposite\nsides. -/\ndef IsFailedFano (S : Finset ℝ²) : Prop :=\n  ∃ a b c d e f g : ℝ²,\n    ¬ Collinear ℝ {a, b, c} ∧ ¬ Collinear ℝ {a, b, d} ∧\n    ¬ Collinear ℝ {a, c, d} ∧ ¬ Collinear ℝ {b, c, d} ∧\n    e ∈ line[ℝ, a, b] ∧ e ∈ line[ℝ, c, d] ∧\n    f ∈ line[ℝ, a, c] ∧ f ∈ line[ℝ, b, d] ∧\n    g ∈ line[ℝ, a, d] ∧ g ∈ line[ℝ, b, c] ∧\n    (S : Set ℝ²) = {a, b, c, d, e, f, g}\n\n/-- The finite sets of points of the plane that can be given positive weights as in the problem:\nall points on a line, no three points on a line, all points but one on a line, or a failed Fano\nconfiguration. The cases overlap for small sets. -/\ndef erdos_735.answer : Set (Finset ℝ²) :=\n  {S | Collinear ℝ (S : Set ℝ²) ∨ (∃ p ∈ S, Collinear ℝ ((S : Set ℝ²) \\ {p})) ∨\n    NonTrilinear (S : Set ℝ²) ∨ IsFailedFano S}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nGiven any $n$ points in $\\mathbb{R}^2$ when can one give positive weights to the points such that\nthe sum of the weights of the points along every line containing at least two points is the same?\n\nThis is a problem of Murty [Er81], who conjectured that this is only possible in one of\nfour cases: all points on a line, no three points on a line, $n-1$ points on a line, and a\ntriangle, the angle bisectors, and the incentre (or a projective equivalent). Ackerman, Buchin,\nKnauer, Pinchasi and Rote [ABKPR08] proved this conjecture. Conversely, every set in these four\ncases is magic.\n-/\n@[category research solved, question value, AMS 51 52, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos735/Final.lean#L54\"]\ntheorem erdos_735 : {S : Finset ℝ² | IsMagic S} = erdos_735.answer := by\n  sorry\n\nend Erdos735\n",
  "statement_hash": "10fa834e5e88350b77f2420af4d2e65c7b4e9b54d1a3c45a8b45233c1bff15d1",
  "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."
}