{
  "id": "355",
  "ident": "NS.00355",
  "slug": "erdos-1007",
  "title": "Erdős Problem 1007",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "The dimension of a graph $G$ is the minimal $n$ such that $G$ can be embedded in $\\mathbb{R}^n$\nsuch that every edge of $G$ is a unit line segment.\n\nWhat is the smallest number of edges in a graph with dimension $4$?\n\nAnswer: The smallest number of edges is $9$, achieved solely by $K_{3,3}$, proved by House [Ho13]. An\nalternative proof was given by Chaffee and Noble [ChNo16], who also prove that the smallest\nnumber of edges in a graph of dimension $5$ is $15$ (achieved by $K_6$ and $K_{1,3,3}$).",
  "subjects": [
    "math.CO",
    "math.MG",
    "msc:05",
    "msc:52"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1007.erdos_1007",
  "statement_lean": "theorem erdos_1007 :\n    IsLeast {m | ∃ (n : ℕ) (G : SimpleGraph (Fin n)), G.HasDimension 4 ∧ G.edgeSet.ncard = m}\n      9",
  "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 1007\n\n*References:*\n- [erdosproblems.com/1007](https://www.erdosproblems.com/1007)\n- [ChNo16] Chaffee, Joe and Noble, Matt, *Dimension 4 and dimension 5 graphs with minimum edge\n  set*. Australas. J. Combin. (2016), 327-333.\n- [Ho13] House, Roger F., *A 4-dimensional graph has at least 9 edges*. Discrete Math. (2013),\n  1783-1789.\n-/\n\n@[expose] public section\n\nnamespace Erdos1007\n\nopen scoped EuclideanGeometry\n\nvariable {V : Type*}\n\n/-- The complete tripartite graph $K_{1,3,3}$. -/\nabbrev K133 := SimpleGraph.completeMultipartiteGraph fun i : Fin 3 => Fin (![1, 3, 3] i)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe dimension of a graph $G$ is the minimal $n$ such that $G$ can be embedded in $\\mathbb{R}^n$\nsuch that every edge of $G$ is a unit line segment.\n\nWhat is the smallest number of edges in a graph with dimension $4$?\n\nAnswer: The smallest number of edges is $9$, achieved solely by $K_{3,3}$, proved by House [Ho13]. An\nalternative proof was given by Chaffee and Noble [ChNo16], who also prove that the smallest\nnumber of edges in a graph of dimension $5$ is $15$ (achieved by $K_6$ and $K_{1,3,3}$).\n-/\n@[category research solved, AMS 5 52, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1007.lean\"]\ntheorem erdos_1007 :\n    IsLeast {m | ∃ (n : ℕ) (G : SimpleGraph (Fin n)), G.HasDimension 4 ∧ G.edgeSet.ncard = m}\n      9 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe smallest number of edges in a graph of dimension $4$ is achieved solely by $K_{3,3}$.\n-/\n@[category research solved, AMS 5 52,\n  formal_proof using lean4 at\n    \"https://github.com/Dishah3241/Erdos1007/blob/43f89415a6663848a1445effbda8b3abe77b052b/Erdos1007/Standalone/Mathlib/InlineErdos1007Proof.lean#L306\"]\ntheorem erdos_1007.variants.dimension_four_extremal (n : ℕ) (G : SimpleGraph (Fin n))\n    (hdim : G.HasDimension 4) (hcard : G.edgeSet.ncard = 9)\n    (hdeg : ∀ v : Fin n, ∃ w : Fin n, G.Adj v w) :\n    Nonempty (G ≃g completeBipartiteGraph (Fin 3) (Fin 3)) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe smallest number of edges in a graph of dimension $5$ is $15$.\n-/\n@[category research solved, AMS 5 52,\n  formal_proof using lean4 at\n    \"https://github.com/Dishah3241/Erdos1007Dim5/blob/7118d68eabffe49e41a672d16eb8ddba2608f03d/Erdos1007Dim5/Standalone/Mathlib/InlineErdos1007Dim5Proof.lean#L145\"]\ntheorem erdos_1007.variants.dimension_five :\n    IsLeast {m | ∃ (n : ℕ) (G : SimpleGraph (Fin n)), G.HasDimension 5 ∧ G.edgeSet.ncard = m}\n      15 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe smallest number of edges in a graph of dimension $5$ is achieved by $K_6$ and $K_{1,3,3}$.\n-/\n@[category research solved, AMS 5 52,\n  formal_proof using lean4 at\n    \"https://github.com/Dishah3241/Erdos1007Dim5/blob/7118d68eabffe49e41a672d16eb8ddba2608f03d/Erdos1007Dim5/Standalone/Mathlib/InlineErdos1007Dim5Proof.lean#L161\"]\ntheorem erdos_1007.variants.dimension_five_extremal :\n    ((SimpleGraph.completeGraph (Fin 6)).HasDimension 5 ∧\n        (SimpleGraph.completeGraph (Fin 6)).edgeSet.ncard = 15) ∧\n      (K133.HasDimension 5 ∧ K133.edgeSet.ncard = 15) := by\n  sorry\n\nend Erdos1007\n",
  "statement_hash": "539bd57d1a97d096a6b5d17e2dd921912081cd48dea1abdf7b0b0283e2e26277",
  "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."
}