{
  "id": "574",
  "ident": "NS.00574",
  "slug": "erdos-1071",
  "title": "Erdős Problem 1071",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Can a finite set of disjoint unit segments in a unit square be maximal?\nSolved affirmatively by [Da85], who gave an explicit construction.\n\nThis was formalized in Lean by Alexeev using Aristotle and ChatGPT.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1071.erdos_1071.parts.i",
  "statement_lean": "theorem erdos_1071.parts.i :\n    ∃ S : Finset (ℝ² × ℝ²),\n      Maximal (fun T : Finset (ℝ² × ℝ²) =>\n        (∀ seg ∈ T, dist seg.1 seg.2 = 1 ∧\n          seg.1 0 ∈ Icc 0 1 ∧ seg.1 1 ∈ Icc 0 1 ∧\n          seg.2 0 ∈ Icc 0 1 ∧ seg.2 1 ∈ Icc 0 1) ∧\n          (T : Set (ℝ² × ℝ²)).Pairwise SegmentsDisjoint) S",
  "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 1071\n\n*References:*\n* [erdosproblems.com/1071](https://www.erdosproblems.com/1071)\n* [Da85] Danzer, L., _Some combinatorial and metric problems in geometry_.\n  Intuitive geometry (Siófok, 1985), 167-177.\n-/\n\n@[expose] public section\n\nopen Set Metric EuclideanGeometry Order\n\nnamespace Erdos1071\n\n/-- Two segments are disjoint if they only intersect at their endpoints (if at all). -/\ndef SegmentsDisjoint (seg1 seg2 : ℝ² × ℝ²) : Prop :=\n  segment ℝ seg1.1 seg1.2 ∩ segment ℝ seg2.1 seg2.2 ⊆ {seg1.1, seg1.2, seg2.1, seg2.2}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nCan a finite set of disjoint unit segments in a unit square be maximal?\nSolved affirmatively by [Da85], who gave an explicit construction.\n\nThis was formalized in Lean by Alexeev using Aristotle and ChatGPT.\n-/\n@[category research solved, question, AMS 52, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos1071.lean\"]\ntheorem erdos_1071.parts.i :\n    ∃ S : Finset (ℝ² × ℝ²),\n      Maximal (fun T : Finset (ℝ² × ℝ²) =>\n        (∀ seg ∈ T, dist seg.1 seg.2 = 1 ∧\n          seg.1 0 ∈ Icc 0 1 ∧ seg.1 1 ∈ Icc 0 1 ∧\n          seg.2 0 ∈ Icc 0 1 ∧ seg.2 1 ∈ Icc 0 1) ∧\n          (T : Set (ℝ² × ℝ²)).Pairwise SegmentsDisjoint) S := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Is there a region $R$ with a maximal set of disjoint unit line segments that is countably infinite?\nHere a unit line segment is a rotated and translated copy of the open interval $(0,1)$, and it is\nrequired to be contained in $R$.\nSolved affirmatively by [Fo99], who gave an explicit construction.\n\nThis was formalized in Lean by Alexeev using Aristotle and ChatGPT.\n-/\n@[category research solved, question, AMS 52, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos1071b.lean\"]\ntheorem erdos_1071.parts.ii :\n    ∃ (R : Set ℝ²) (S : Set (ℝ² × ℝ²)),\n      IsOpen R ∧ IsConnected R ∧ S.Countable ∧ S.Infinite ∧\n      Maximal (fun T : Set (ℝ² × ℝ²) =>\n        (∀ seg ∈ T, dist seg.1 seg.2 = 1 ∧ openSegment ℝ seg.1 seg.2 ⊆ R) ∧\n        T.Pairwise SegmentsDisjoint) S := by\n  sorry\n\nend Erdos1071\n",
  "statement_hash": "71ed99a8b0e791ab0f7948ad583d52f1393794e11619640778fd37b18730fcbd",
  "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."
}