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 545

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Let mm be sufficiently large and let GG be a graph with mm edges and no isolated vertices. Is the Ramsey number R(G)R(G) maximised when GG is 'as complete as possible'? That is, if m=(n2)+tm=\binom{n}{2}+t edges with 0≤t<n0\leq t < n then is R(G)≤R(H),R(G)\leq R(H), where HH is the graph formed by connecting a new vertex to tt of the vertices of KnK_n?

A question of Erdős and Graham. The restriction to sufficiently large mm excludes the small counterexamples recorded on the source page.

This problem is #10 in Ramsey Theory in the graphs problem collection.

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

Formal statement

theorem erdos_545 :
    ∀ᶠ m : ℕ in atTop, ∀ (n t : ℕ), t < n → m = n.choose 2 + t →
      ∀ (V : Type) [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj],
        (∀ v, 0 < G.degree v) →
        G.edgeSet.ncard = m →
        SimpleGraph.diagonalGraphRamsey G ≤
          SimpleGraph.diagonalGraphRamsey (knPlusTEdges n t)
Show the full Challenge.lean (77 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 545

*References:*
- [erdosproblems.com/545](https://www.erdosproblems.com/545)
- [ErGr75] Erdős, P. and Graham, R. L., On partition theorems for finite graphs.
  Infinite and finite sets (1975), 515-527.
- [Er84b] Erdős, P., On some problems in graph theory, combinatorial analysis and combinatorial
  number theory. Graph theory and combinatorics (Cambridge, 1983) (1984), 1-17.
-/

@[expose] public section

open Filter

namespace Erdos545

/--
The graph formed by connecting a new vertex (`none`) to $t$ of the vertices of $K_n$ (`Fin n`).
-/
def knPlusTEdges (n t : ℕ) : SimpleGraph (Option (Fin n)) where
  Adj u v := match u, v with
    | some x, some y => x ≠ y
    | none, some y => y.val < t
    | some x, none => x.val < t
    | none, none => False
  symm.symm u v := by
    cases u <;> cases v <;> simp [ne_comm]
  loopless.irrefl u := by
    cases u <;> simp

/--
Let $m$ be sufficiently large and let $G$ be a graph with $m$ edges and no isolated vertices.
Is the Ramsey number $R(G)$ maximised when $G$ is 'as complete as possible'?
That is, if $m=\binom{n}{2}+t$ edges with $0\leq t < n$
then is
$$R(G)\leq R(H),$$
where $H$ is the graph formed by connecting a new vertex to $t$ of the vertices of $K_n$?

A question of Erdős and Graham. The restriction to sufficiently large $m$ excludes the
small counterexamples recorded on the source page.

This problem is #10 in Ramsey Theory in the graphs problem collection.
-/
@[category research open, question, AMS 5]
theorem erdos_545 :
    ∀ᶠ m : ℕ in atTop, ∀ (n t : ℕ), t < n → m = n.choose 2 + t →
      ∀ (V : Type) [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj],
        (∀ v, 0 < G.degree v) →
        G.edgeSet.ncard = m →
        SimpleGraph.diagonalGraphRamsey G ≤
          SimpleGraph.diagonalGraphRamsey (knPlusTEdges n t) := by
  sorry

-- TODO: Add variants of the problem.

end Erdos545

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

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

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.