Show full file and definitions
/-
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 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