Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 742

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Elsewhere:on aiXiv: claimed solved — Claimed proved in aiXiv:2610.03166 (2026-10-28); no independent check recorded on aiXiv. · erdosproblems.com: decidable (a claim recorded elsewhere, not verified on nosorry)
2 results recorded on aiXiv
  1. solves For all n≥3n\ge3, every nn-vertex diameter-2-critical graph has at most ⌊n2/4⌋\lfloor n^2/4\rfloor edges, with equality only for K⌈n/2⌉,⌊n/2⌋K_{\lceil n/2\rceil,\lfloor n/2\rfloor}. This removes the requirement in Füredi's proof that nn exceed a tower of 2's of height about 101410^{14}. — aiXiv:2610.03166, 2026-10-28 · claimed by its authors; no independent check recorded on aiXiv
  2. theorem If GG is a diameter-2-critical graph on n≥3n\ge3 vertices and MM is any maximal matching of GG, then ∣E(G)∖M∣|E(G)\setminus M| is at most the number of non-edges of GG. If equality holds for every maximal matching, then GG is triangle-free. — aiXiv:2610.03166, 2026-10-28 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

Murty-Simon Conjecture

Let GG be a graph on nn vertices with diameter 22 such that deleting any edge increases the diameter. Is it true that GG has at most ⌊n2/4⌋\lfloor n^2 / 4 \rfloor edges? Equality is conjectured to hold for the complete balanced bipartite graph K⌈n/2⌉,⌊n/2⌋K_{\lceil n/2 \rceil, \lfloor n/2 \rfloor}.

The conjecture is resolved up to a finite check: Fan [Fa87] verified it for n≤24n \leq 24 and n=26n = 26, and Füredi [Fü92] proved it for all sufficiently large nn.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:question
Cite as:NS.03057 [math.CO] · NS.03057v1 for this version
Declaration:Erdos742.erdos_742
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:ff2655987ae91cb6e250efbbad3df87d9fe33666eebcb2c9d332453d2693bdb5
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/742.lean

Formal statement

theorem erdos_742 :
    ∀ (V : Type*) [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj], IsDiameter2Critical G →
    G.edgeFinset.card ≤ (Fintype.card V) ^ 2 / 4
Show the full Challenge.lean (133 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 742

*References:*
- [erdosproblems.com/742](https://www.erdosproblems.com/742)
- [Pl75] Plesník, Ján, Critical graphs of given diameter. Acta Fac. Rerum Natur. Univ. Comenian.
  Math. 30 (1975), 71-93.
- [CaHa79] Caccetta, L. and Häggkvist, R., On diameter critical graphs.
  Discrete Math. 28 (1979), 223-229.
- [Fa87] Fan, Genghua, On diameter 2-critical graphs. Discrete Math. 67 (1987), 235-240.
- [Fü92] Füredi, Zoltán, The maximum number of edges in a minimal graph of diameter 2.
  J. Graph Theory 16 (1992), 81-98.
-/

@[expose] public section

open SimpleGraph

namespace Erdos742

variable {V : Type*} [Fintype V] [DecidableEq V]

/-- A graph is diameter-2-critical if it has diameter $2$ and removing any edge
increases the diameter beyond $2$. -/
def IsDiameter2Critical (G : SimpleGraph V) : Prop :=
  G.diam = 2 ∧ ∀ e ∈ G.edgeSet, (G.deleteEdges {e}).diam ≠ 2

/--
**Murty-Simon Conjecture**

Let $G$ be a graph on $n$ vertices with diameter $2$ such that deleting any edge increases the
diameter. Is it true that $G$ has at most $\lfloor n^2 / 4 \rfloor$ edges? Equality is conjectured
to hold for the complete balanced bipartite graph $K_{\lceil n/2 \rceil, \lfloor n/2 \rfloor}$.

The conjecture is resolved up to a finite check: Fan [Fa87] verified it for $n \leq 24$ and
$n = 26$, and Füredi [Fü92] proved it for all sufficiently large $n$.
-/
@[category research open, question, AMS 5]
theorem erdos_742 :
    ∀ (V : Type*) [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj], IsDiameter2Critical G →
    G.edgeFinset.card ≤ (Fintype.card V) ^ 2 / 4 := by
  sorry

/--
The complete bipartite graph $K_{a, b}$ has exactly $a \cdot b$ edges. The bound
$\lfloor n^2 / 4 \rfloor$ in the Murty-Simon conjecture is attained by the balanced
case $K_{\lceil n/2 \rceil, \lfloor n/2 \rfloor}$.
-/
@[category test, AMS 5]
theorem complete_bipartite_edge_count (a b : ℕ) :
    (completeBipartiteGraph (Fin a) (Fin b)).edgeSet.ncard = a * b := by
  -- The edge set equals the image of `Fin a × Fin b` under the map
  -- `(i, j) ↦ s(Sum.inl i, Sum.inr j)`.
  let φ : Fin a × Fin b → Sym2 (Fin a ⊕ Fin b) :=
    fun p => s(Sum.inl p.1, Sum.inr p.2)
  have hedge : (completeBipartiteGraph (Fin a) (Fin b)).edgeSet = φ '' Set.univ := by
    ext e
    simp only [φ, Set.mem_image, Set.mem_univ, true_and]
    constructor
    · intro hadj
      induction e using Quot.ind
      rename_i p
      cases p with | mk a b =>
      cases a <;> cases b <;> simp_all [completeBipartiteGraph]
    · rintro ⟨⟨i, j⟩, rfl⟩
      simp [completeBipartiteGraph]
  have hinj : Function.Injective φ := by
    intro ⟨i₁, j₁⟩ ⟨i₂, j₂⟩ h
    simp only [φ, Sym2.eq_iff] at h
    rcases h with ⟨h1, h2⟩ | ⟨h1, _⟩
    · exact Prod.ext (Sum.inl.inj h1) (Sum.inr.inj h2)
    · exact absurd h1 (by simp)
  rw [hedge, Set.ncard_image_of_injective _ hinj, Set.ncard_univ,
    Nat.card_prod, Nat.card_fin, Nat.card_fin]

namespace variants

/--
Plesník [Pl75] proved the bound $|E(G)| < 3n(n-1)/8$ for any diameter-$2$-critical graph
on $n$ vertices.
-/
@[category research solved, AMS 5]
theorem plesnik_bound (G : SimpleGraph V) [DecidableRel G.Adj] (hG : IsDiameter2Critical G) :
    (G.edgeFinset.card : ℝ) < 3 * (Fintype.card V : ℝ) * ((Fintype.card V : ℝ) - 1) / 8 := by
  sorry

/--
Fan [Fa87] verified the Murty-Simon conjecture for all $n \leq 24$ and for $n = 26$.
-/
@[category research solved, AMS 5]
theorem fan_bound (G : SimpleGraph V) [DecidableRel G.Adj]
    (hn : Fintype.card V ≤ 24 ∨ Fintype.card V = 26) (hG : IsDiameter2Critical G) :
    G.edgeFinset.card ≤ (Fintype.card V) ^ 2 / 4 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Füredi [Fü92] proved the Murty-Simon conjecture for all sufficiently large $n$, that is, there
exists $n_0$ such that every diameter-$2$-critical graph on $n \geq n_0$ vertices has at most
$\lfloor n^2 / 4 \rfloor$ edges.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos742.lean#L4279"]
theorem furedi_bound : ∃ n₀ : ℕ, ∀ (V : Type*) [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj],
    n₀ ≤ Fintype.card V → IsDiameter2Critical G →
      G.edgeFinset.card ≤ (Fintype.card V) ^ 2 / 4 := by
  sorry

end variants

end Erdos742

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

nosorry fetch erdos-742
nosorry submit erdos-742 nosorry/erdos-742/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.