{
  "id": "1248",
  "ident": "NS.01248",
  "slug": "erdos-189",
  "title": "Erdős Problem 189",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $\\mathbb{R}^2$ is finitely coloured then must there exist some colour class which contains the\nvertices of a rectangle of every area?\n\nGraham, \"On Partitions of 𝔼ⁿ\", Journal of Combinatorial Theory, Series A 28, 89-91 (1980).\n(See \"Concluding Remarks\" on page 96.)\n\nSolved (with answer `False`, as formalised below) in:\nVjekoslav Kovač, \"Coloring and density theorems for configurations of a given volume\", 2023\nhttps://arxiv.org/abs/2309.09973\nIn fact, Kovač's colouring is even Jordan measurable (the topological boundary of each\nmonochromatic region is Lebesgue measurable and has measure zero).\n\nThis was formalized in Lean by Alexeev and Kovac using Aristotle.",
  "subjects": [
    "math.CO",
    "math.MG",
    "msc:05",
    "msc:51"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/189",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos189.erdos_189",
  "statement_lean": "theorem erdos_189 :\n    ¬ Erdos189For\n      (fun a b c d ↦\n        line[ℝ, a, b].direction ⟂ line[ℝ, b, c].direction ∧\n        line[ℝ, b, c].direction ⟂ line[ℝ, c, d].direction ∧\n        line[ℝ, c, d].direction ⟂ line[ℝ, d, a].direction)\n      (fun a b c d ↦ dist a b * dist b c)",
  "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 189\n\n*Reference:* [erdosproblems.com/189](https://www.erdosproblems.com/189)\n-/\n\n@[expose] public section\n\nopen Affine EuclideanGeometry\n\nnamespace Erdos189\n\n/-- Erdős problem 189 asked whether the below holds for all rectangles. -/\ndef Erdos189For (P : ℝ² → ℝ² → ℝ² → ℝ² → Prop) (A : ℝ² → ℝ² → ℝ² → ℝ² → ℝ) :=\n    ∀ᵉ (n > 0) (colouring : ℝ² → Fin n), ∃ colour, ∀ area > (0 : ℝ), ∃ a b c d,\n      {a, b, c, d} ⊆ colouring⁻¹' {colour} ∧\n      IsCcwConvexPolygon ![a, b, c, d] ∧\n      A a b c d = area ∧\n      P a b c d\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf $\\mathbb{R}^2$ is finitely coloured then must there exist some colour class which contains the\nvertices of a rectangle of every area?\n\nGraham, \"On Partitions of 𝔼ⁿ\", Journal of Combinatorial Theory, Series A 28, 89-91 (1980).\n(See \"Concluding Remarks\" on page 96.)\n\nSolved (with answer `False`, as formalised below) in:\nVjekoslav Kovač, \"Coloring and density theorems for configurations of a given volume\", 2023\nhttps://arxiv.org/abs/2309.09973\nIn fact, Kovač's colouring is even Jordan measurable (the topological boundary of each\nmonochromatic region is Lebesgue measurable and has measure zero).\n\nThis was formalized in Lean by Alexeev and Kovac using Aristotle.\n-/\n@[category research solved, question, AMS 5 51, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos189.lean\"]\ntheorem erdos_189 :\n    ¬ Erdos189For\n      (fun a b c d ↦\n        line[ℝ, a, b].direction ⟂ line[ℝ, b, c].direction ∧\n        line[ℝ, b, c].direction ⟂ line[ℝ, c, d].direction ∧\n        line[ℝ, c, d].direction ⟂ line[ℝ, d, a].direction)\n      (fun a b c d ↦ dist a b * dist b c) := by\n  sorry\n\n/-- Graham claims this is \"easy to see\". -/\n@[category research solved, AMS 5 51]\ntheorem erdos_189.variants.square :\n    ¬ Erdos189For\n      (fun a b c d ↦\n        line[ℝ, a, b].direction ⟂ line[ℝ, b, c].direction ∧\n        line[ℝ, b, c].direction ⟂ line[ℝ, c, d].direction ∧\n        line[ℝ, c, d].direction ⟂ line[ℝ, d, a].direction ∧\n        dist a b = dist b c)\n      (fun a b c d ↦ dist a b * dist b c) := by\n  sorry\n\n/--\nSeems to be open, as of January 2025.\n-/\n@[category research open, AMS 5 51]\ntheorem erdos_189.variants.parallelogram :\n    ¬ Erdos189For\n      (fun a b c d ↦\n        line[ℝ, a, b] ∥ line[ℝ, c, d] ∧\n        line[ℝ, a, d] ∥ line[ℝ, b, c])\n      (fun a b c d ↦ dist a b * dist b c * (∡ a b c).sin) := by\n  sorry\n\nend Erdos189\n",
  "statement_hash": "25a7da743adf6f417849718b12ae44d130670a4132d03495a9d20bfbf3791247",
  "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."
}