Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 1007

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

The dimension of a graph GG is the minimal nn such that GG can be embedded in Rn\mathbb{R}^n such that every edge of GG is a unit line segment.

What is the smallest number of edges in a graph with dimension 44?

Answer: The smallest number of edges is 99, achieved solely by K3,3K_{3,3}, proved by House [Ho13]. An alternative proof was given by Chaffee and Noble [ChNo16], who also prove that the smallest number of edges in a graph of dimension 55 is 1515 (achieved by K6K_6 and K1,3,3K_{1,3,3}).

Subjects:Combinatorics (math.CO); Metric Geometry (math.MG)
MSC classes:05, 52
Tags:formal_proof
Cite as:NS.00355 [math.CO] · NS.00355v1 for this version
Declaration:Erdos1007.erdos_1007
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:539bd57d1a97d096a6b5d17e2dd921912081cd48dea1abdf7b0b0283e2e26277
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/1007.lean

Formal statement

theorem erdos_1007 :
    IsLeast {m | ∃ (n : ℕ) (G : SimpleGraph (Fin n)), G.HasDimension 4 ∧ G.edgeSet.ncard = m}
      9
Show the full Challenge.lean (98 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1007

*References:*
- [erdosproblems.com/1007](https://www.erdosproblems.com/1007)
- [ChNo16] Chaffee, Joe and Noble, Matt, *Dimension 4 and dimension 5 graphs with minimum edge
  set*. Australas. J. Combin. (2016), 327-333.
- [Ho13] House, Roger F., *A 4-dimensional graph has at least 9 edges*. Discrete Math. (2013),
  1783-1789.
-/

@[expose] public section

namespace Erdos1007

open scoped EuclideanGeometry

variable {V : Type*}

/-- The complete tripartite graph $K_{1,3,3}$. -/
abbrev K133 := SimpleGraph.completeMultipartiteGraph fun i : Fin 3 => Fin (![1, 3, 3] i)

set_option linter.style.formal_proof_palomar false in
/--
The dimension of a graph $G$ is the minimal $n$ such that $G$ can be embedded in $\mathbb{R}^n$
such that every edge of $G$ is a unit line segment.

What is the smallest number of edges in a graph with dimension $4$?

Answer: The smallest number of edges is $9$, achieved solely by $K_{3,3}$, proved by House [Ho13]. An
alternative proof was given by Chaffee and Noble [ChNo16], who also prove that the smallest
number of edges in a graph of dimension $5$ is $15$ (achieved by $K_6$ and $K_{1,3,3}$).
-/
@[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"]
theorem erdos_1007 :
    IsLeast {m | ∃ (n : ℕ) (G : SimpleGraph (Fin n)), G.HasDimension 4 ∧ G.edgeSet.ncard = m}
      9 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The smallest number of edges in a graph of dimension $4$ is achieved solely by $K_{3,3}$.
-/
@[category research solved, AMS 5 52,
  formal_proof using lean4 at
    "https://github.com/Dishah3241/Erdos1007/blob/43f89415a6663848a1445effbda8b3abe77b052b/Erdos1007/Standalone/Mathlib/InlineErdos1007Proof.lean#L306"]
theorem erdos_1007.variants.dimension_four_extremal (n : ℕ) (G : SimpleGraph (Fin n))
    (hdim : G.HasDimension 4) (hcard : G.edgeSet.ncard = 9)
    (hdeg : ∀ v : Fin n, ∃ w : Fin n, G.Adj v w) :
    Nonempty (G ≃g completeBipartiteGraph (Fin 3) (Fin 3)) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The smallest number of edges in a graph of dimension $5$ is $15$.
-/
@[category research solved, AMS 5 52,
  formal_proof using lean4 at
    "https://github.com/Dishah3241/Erdos1007Dim5/blob/7118d68eabffe49e41a672d16eb8ddba2608f03d/Erdos1007Dim5/Standalone/Mathlib/InlineErdos1007Dim5Proof.lean#L145"]
theorem erdos_1007.variants.dimension_five :
    IsLeast {m | ∃ (n : ℕ) (G : SimpleGraph (Fin n)), G.HasDimension 5 ∧ G.edgeSet.ncard = m}
      15 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The smallest number of edges in a graph of dimension $5$ is achieved by $K_6$ and $K_{1,3,3}$.
-/
@[category research solved, AMS 5 52,
  formal_proof using lean4 at
    "https://github.com/Dishah3241/Erdos1007Dim5/blob/7118d68eabffe49e41a672d16eb8ddba2608f03d/Erdos1007Dim5/Standalone/Mathlib/InlineErdos1007Dim5Proof.lean#L161"]
theorem erdos_1007.variants.dimension_five_extremal :
    ((SimpleGraph.completeGraph (Fin 6)).HasDimension 5 ∧
        (SimpleGraph.completeGraph (Fin 6)).edgeSet.ncard = 15) ∧
      (K133.HasDimension 5 ∧ K133.edgeSet.ncard = 15) := by
  sorry

end Erdos1007

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1007.erdos_1007 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_1007 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-1007
nosorry submit erdos-1007 nosorry/erdos-1007/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.