{
  "id": "2672",
  "ident": "NS.02672",
  "slug": "erdos-633",
  "title": "Erdős Problem 633",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "A triangle whose side lengths and angles are integrally independent is cuttable only into\na non-zero square number of congruent triangles. This is proved in [So09c].",
  "subjects": [
    "math.CO",
    "math.MG",
    "msc:05",
    "msc:51"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos633.isCuttable_iff_isSquare_of_linearIndependent",
  "statement_lean": "lemma isCuttable_iff_isSquare_of_linearIndependent\n    (hTsides : LinearIndependent ℤ\n      ![dist (T.points 0) (T.points 1),\n        dist (T.points 1) (T.points 2),\n        dist (T.points 2) (T.points 0)])\n    (hTangles : LinearIndependent ℤ\n      ![∠ (T.points 0) (T.points 1) (T.points 2),\n        ∠ (T.points 1) (T.points 2) (T.points 0),\n        ∠ (T.points 2) (T.points 0) (T.points 1)]) :\n    IsCuttable n T ↔ n ≠ 0 ∧ IsSquare 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 633\n\n*Reference:*\n* [erdosproblems.com/633](https://www.erdosproblems.com/633)\n* [So09] Soifer, Alexander, How Does One Cut a Triangle? I\n* [So09c] Soifer, Alexander, Is there anything beyond the solution?\n* [BLZ26] Beeson, Michael, Laczkovich, Miklós, and Zhang, Yan,\n  [*Solution of Erdős problem 633*](https://arxiv.org/abs/2604.03609).\n-/\n\n@[expose] public section\n\nopen Affine\nopen scoped Congruent EuclideanGeometry Similar\n\nnamespace Erdos633\nvariable {n : ℕ} {T : Triangle ℝ ℝ²}\n\nvariable (n T) in\n/-- A triangle is `n`-cuttable if it can be decomposed into `n` congruent triangles. -/\ndef IsCuttable : Prop :=\n  ∃ Ts : Fin n → Triangle ℝ ℝ²,\n    (∀ i j, (Ts i).points ≅ (Ts j).points) ∧\n      Pairwise (fun i j ↦ Disjoint (Ts i).interior (Ts j).interior) ∧\n      ⋃ i, (Ts i).closedInterior = T.closedInterior\n\n/-- A triangle isn't cuttable into zero triangles. -/\n@[category API, AMS 5 51]\nlemma IsCuttable.ne_zero (hT : IsCuttable n T) : n ≠ 0 := by\n  rintro rfl\n  obtain ⟨Ts, -, -, hT⟩ := hT\n  exact T.closedInterior_nonempty.ne_empty <| by simpa using hT.symm\n\n/-- Every triangle is cuttable into any non-zero square number of congruent triangles. -/\n@[category API, AMS 5 51]\nprotected lemma IsCuttable.sq (hn : n ≠ 0) : IsCuttable (n ^ 2) T := sorry\n\n/-- Every triangle is cuttable into any non-zero square number of congruent triangles. -/\n@[category API, AMS 5 51]\nlemma IsCuttable.of_isSquare (hn₀ : n ≠ 0) (hn : IsSquare n) : IsCuttable n T := by\n  obtain ⟨n, rfl⟩ := hn; rw [← sq]; exact .sq <| by simpa using hn₀\n\n/-- A triangle whose side lengths and angles are integrally independent is cuttable only into\na non-zero square number of congruent triangles. This is proved in [So09c]. -/\n@[category research solved, AMS 5 51]\nlemma isCuttable_iff_isSquare_of_linearIndependent\n    (hTsides : LinearIndependent ℤ\n      ![dist (T.points 0) (T.points 1),\n        dist (T.points 1) (T.points 2),\n        dist (T.points 2) (T.points 0)])\n    (hTangles : LinearIndependent ℤ\n      ![∠ (T.points 0) (T.points 1) (T.points 2),\n        ∠ (T.points 1) (T.points 2) (T.points 0),\n        ∠ (T.points 2) (T.points 0) (T.points 1)]) :\n    IsCuttable n T ↔ n ≠ 0 ∧ IsSquare n := by\n  exact ⟨fun hT ↦ ⟨hT.ne_zero, sorry⟩, fun hn ↦ .of_isSquare hn.1 hn.2⟩\n\n-- The complete classification is too involved to encode as the answer set here.\ndef erdos_633.answer : Set (Triangle ℝ ℝ²) := sorry\n\n/--\nWhich triangles can only be decomposed into a square number of congruent triangles?\n\nBeeson, Laczkovich, and Zhang [BLZ26] classify the triangles that can be tiled only into a square\nnumber of congruent triangles, settling this problem. The classification is too involved to encode\nin the answer slot here, so the answer is left as `sorry` and the reference records the result.\n-/\n@[category research solved, question value, AMS 5 51]\nlemma erdos_633 : T ∈ erdos_633.answer ↔\n    ∀ n, IsCuttable n T → IsSquare n := sorry\n\nvariable (n T) in\n/-- A triangle is `n`-simili-cuttable if it can be decomposed into `n` similar triangles. -/\ndef IsSimiliCuttable (n : ℕ) (T : Triangle ℝ ℝ²) : Prop :=\n  ∃ Ts : Fin n → Triangle ℝ ℝ²,\n    (∀ i j, (Ts i).points ∼ (Ts j).points) ∧\n      Pairwise (fun i j ↦ Disjoint (Ts i).interior (Ts j).interior) ∧\n      ⋃ i, (Ts i).closedInterior = T.closedInterior\n\n/-- A triangle isn't simili-cuttable into zero triangles. -/\n@[category API, AMS 5 51]\nlemma IsSimiliCuttable.ne_zero (hT : IsSimiliCuttable n T) : n ≠ 0 := by\n  rintro rfl\n  obtain ⟨Ts, -, -, hT⟩ := hT\n  exact T.closedInterior_nonempty.ne_empty <| by simpa using hT.symm\n\n/-- Every triangle is simili-cuttable into any number of similar triangles, except 0, 2, 3, 5.\nThis is proved in [So09]. -/\n@[category research solved, AMS 5 51]\nlemma IsSimiliCuttable.of_ne_zero_two_three_five (hn₀ : n ≠ 0) (hn₂ : n ≠ 2) (hn₃ : n ≠ 3)\n    (hn₅ : n ≠ 5) : IsSimiliCuttable n T := sorry\n\n/-- There exists a triangle which isn't simili-cuttable into 0, 2, 3, 5 parts.\nThis is proved in [So09]. -/\n@[category research solved, AMS 5 51]\nlemma exists_isSimiliCuttable_iff_ne_zero_two_three_five :\n    ∃ T, ∀ n, IsSimiliCuttable n T ↔ n ≠ 0 ∧ n ≠ 2 ∧ n ≠ 3 ∧ n ≠ 5 := sorry\n\nend Erdos633\n",
  "statement_hash": "abb1d760ce278e7dfe5b6dcdb58ec791a8321bac6a2c926dd4d15c2f15df2b83",
  "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."
}