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 547

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:

If TT is a tree on nn vertices then R(T)≤2n−2.R(T) \leq 2n-2.

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

Solved: the bound follows from the Erdős–Sós theorem (Erdős problem 548) by the pigeonhole principle, as noted on the problem page.

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

Formal statement

theorem erdos_547 :
    ∀ (n : ℕ) (hn : 2 ≤ n) (T : SimpleGraph (Fin n)),
      T.IsTree → SimpleGraph.diagonalGraphRamsey T ≤ 2 * n - 2
Show the full Challenge.lean (65 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 547

*References:*
- [erdosproblems.com/547](https://www.erdosproblems.com/547)
- [Bu74] Burr, S. A., Generalized Ramsey theory for graphs—a survey. Graphs and combinatorics
  (Proc. Capital Conf., George Washington Univ., Washington, D.C., 1973) (1974), 52-75.
- [Zh11] Zhao, Y., Proof of the $(n/2-n/2-n/2)$ conjecture for large $n$.
  Electron. J. Combin. (2011), Paper 27, 61.
-/

@[expose] public section

open Filter

namespace Erdos547

set_option linter.style.formal_proof_palomar false in
/--
If $T$ is a tree on $n$ vertices then
$$R(T) \leq 2n-2.$$

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

Solved: the bound follows from the Erdős–Sós theorem (Erdős problem 548) by the pigeonhole
principle, as noted on the problem page.
-/
@[category research solved, AMS 5,
  formal_proof using lean4 at "https://github.com/zhangjun725/erdos557/blob/c4e0ab13027f8bb50defade11cf8a53c7b8b0ba9/Erdos557/Erdos547.lean#L84"]
theorem erdos_547 :
    ∀ (n : ℕ) (hn : 2 ≤ n) (T : SimpleGraph (Fin n)),
      T.IsTree → SimpleGraph.diagonalGraphRamsey T ≤ 2 * n - 2 := by
  sorry

/--
For sufficiently large $n$, every tree $T$ on $n$ vertices satisfies $R(T)\leq 2n-2$.
Proved by Zhao [Zh11].
-/
@[category research solved, AMS 5]
theorem erdos_547.variants.sufficiently_large :
    ∀ᶠ n : ℕ in atTop, ∀ T : SimpleGraph (Fin n),
      T.IsTree → SimpleGraph.diagonalGraphRamsey T ≤ 2 * n - 2 := by
  sorry

end Erdos547

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

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