| | @@ -0,0 +1,39 @@ |
| 1 | +import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 2 | +import Mathlib.Data.Finset.Card |
| 3 | +import Mathlib.Data.Sym.Sym2 |
| 4 | + |
| 5 | +/-! |
| 6 | +# Erdős Problem 129 |
| 7 | + |
| 8 | +* [Problem statement](https://www.erdosproblems.com/129) |
| 9 | +* [Erdős, *Some old and new problems in various branches of combinatorics* (1997), |
| 10 | + Problem 2](https://doi.org/10.1016/S0012-365X(96)00173-2) |
| 11 | +-/ |
| 12 | + |
| 13 | +namespace ErdosSwarm.Statements |
| 14 | + |
| 15 | +/-- Every $r$-colouring of the edges of $K_N$ has an $n$-vertex set in which some |
| 16 | +colour contains no copy of $K_k$. Each edge is an unordered pair of distinct vertices. -/ |
| 17 | +def erdos129Forces (n k r N : ℕ) : Prop := |
| 18 | + ∀ colour : {e : Sym2 (Fin N) // ¬ e.IsDiag} → Fin r, |
| 19 | + ∃ vertices : Finset (Fin N), vertices.card = n ∧ |
| 20 | + ∃ c : Fin r, ∀ clique : Finset (Fin N), clique ⊆ vertices → clique.card = k → |
| 21 | + ∃ u ∈ clique, ∃ v ∈ clique, ∃ huv : u ≠ v, |
| 22 | + colour ⟨s(u, v), fun h => huv (Sym2.mk_isDiag_iff.mp h)⟩ ≠ c |
| 23 | + |
| 24 | +/-- The relation $N = R(n;k,r)$, where $R(n;k,r)$ is the least order of a complete |
| 25 | +graph with the forcing property. -/ |
| 26 | +def erdos129Threshold (n k r N : ℕ) : Prop := |
| 27 | + IsLeast {m | erdos129Forces n k r m} N |
| 28 | + |
| 29 | +/-- Erdős Problem 129 asks to prove that “there is a constant $C=C(r)>1$ such that” |
| 30 | +$R(n;3,r) < C^{\sqrt n}$. |
| 31 | + |
| 32 | +The bound is stated for positive $n$ and at least two colours. With one colour, |
| 33 | +every vertex set of size at least three in a complete graph contains a triangle |
| 34 | +in that colour. -/ |
| 35 | +def erdos_129 : Prop := |
| 36 | + ∀ r : ℕ, 2 ≤ r → ∃ C : ℝ, 1 < C ∧ |
| 37 | + ∀ n : ℕ, 0 < n → ∃ N : ℕ, erdos129Threshold n 3 r N ∧ (N : ℝ) < C ^ Real.sqrt n |
| 38 | + |
| 39 | +end ErdosSwarm.Statements |