/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import FormalConjecturesUtilErdős Problem 547
References:
[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 sectionopen Filternamespace Erdos547If $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.
@[category research open, AMS 5]
theorem erdos_547 :
∀ (n : ℕ) (hn : 2 ≤ n) (T : SimpleGraph (Fin n)),
T.IsTree → SimpleGraph.diagonalGraphRamsey T ≤ 2 * n - 2 := ⊢ ∀ (n : ℕ), 2 ≤ n → ∀ (T : SimpleGraph (Fin n)), T.IsTree → T.diagonalGraphRamsey ≤ 2 * n - 2
All goals completed! 🐙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 := ⊢ ∀ᶠ (n : ℕ) in atTop, ∀ (T : SimpleGraph (Fin n)), T.IsTree → T.diagonalGraphRamsey ≤ 2 * n - 2
All goals completed! 🐙end Erdos547