Lean reader

RequestProject/Main.lean

93 lines2 declarationsno sorryimports RequestProject.Basic RequestProject.FinalReduction RequestProject.Reservoirs RequestProject.BlockerInequalities RequestProject.Compactness RequestProject.CompactnessGraph +3

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports RequestProject.Basic, RequestProject.FinalReduction, RequestProject.Reservoirs, RequestProject.BlockerInequalities and more, which it does not have: you can read it there, but it will not check. Build the project itself to check it.

  1. import RequestProject.Basic
  2. import RequestProject.FinalReduction
  3. import RequestProject.Reservoirs
  4. import RequestProject.BlockerInequalities
  5. import RequestProject.Compactness
  6. import RequestProject.CompactnessGraph
  7. import RequestProject.EFRS
  8. import RequestProject.ProfileForest
  9. import RequestProject.MainProof
  10. /-!
  11. # Erdős Problem 550 — main theorem (statement)
  12. For fixed `k ≥ 2` and `1 ≤ m₁ ≤ ⋯ ≤ m_k`, for every sufficiently large `n` and
  13. every `n`-vertex tree `T`,
  14. $$ R(T, K_{m_1,\ldots,m_k}) \le (k-1)\bigl(R(T,K_{m_1,m_2})-1\bigr) + m_1. $$
  15. Here the two smallest classes `m₁, m₂` are `m 0, m 1` (using monotonicity), and
  16. `K_{m_1,m_2}` is modelled as a two-part complete multipartite graph
  17. `Kmult 2 (m ∘ Fin.castLE …)`.
  18. The `k = 2` case is elementary (the right-hand side is `R(T,H) - 1 + m₁ ≥ R(T,H)`
  19. and `K_{m_1,m_2} = K_{m_1,…,m_k}`). The substantial content is the case
  20. `k ≥ 3`, isolated as `erdos_550_large`, whose proof follows the paper's chain.
  21. The off--Turán step follows from exact Szemerédi regularity, the red
  22. multipartite blow-up lemma, a maximal reduced matching, whole-edge allocation,
  23. and the stateful Hladký--Piguet parity embedding.
  24. -/
  25. open SimpleGraph
  26. namespace Erdos550
  27. /-- The substantial case `k ≥ 3` (equivalently `q = k-1 ≥ 2`) of Erdős 550. -/
  28. theorem erdos_550_large (k : ℕ) (hk : 3 ≤ k) (m : Fin k → ℕ)
  29. (hmono : Monotone m) (hpos : 1 ≤ m ⟨0, by omega⟩) :
  30. ∃ n0 : ℕ, ∀ n, n0 ≤ n → ∀ {V : Type} [Fintype V] (T : SimpleGraph V),
  31. T.IsTree → Fintype.card V = n →
  32. ramsey T (Kmult k m) ≤
  33. (k - 1) * (ramsey T (Kmult 2 (fun j => m (Fin.castLE (by omega) j))) - 1)
  34. + m ⟨0, by omega⟩ := by
  35. set q := k - 1 with hqdef
  36. have hqk : q + 1 = k := by omega
  37. have hq : 2 ≤ q := by omega
  38. set m' : Fin (q + 1) → ℕ := fun j => m (Fin.cast hqk j) with hm'
  39. have hmono' : Monotone m' := fun i j hij => hmono hij
  40. have ec0 : Fin.cast hqk (0 : Fin (q+1)) = (⟨0, by omega⟩ : Fin k) := by ext; simp; try omega
  41. have ec1 : Fin.cast hqk (1 : Fin (q+1)) = (⟨1, by omega⟩ : Fin k) := by ext; simp; try omega
  42. have el0 : Fin.castLE (by omega : 2 ≤ k) (0 : Fin 2) = (⟨0, by omega⟩ : Fin k) := by ext; simp; try omega
  43. have el1 : Fin.castLE (by omega : 2 ≤ k) (1 : Fin 2) = (⟨1, by omega⟩ : Fin k) := by ext; simp; try omega
  44. have hm'0 : m' 0 = m ⟨0, by omega⟩ := by simp only [hm']; rw [ec0]
  45. have hm'1 : m' 1 = m ⟨1, by omega⟩ := by simp only [hm']; rw [ec1]
  46. have hpos' : 1 ≤ m' 0 := by rw [hm'0]; exact hpos
  47. obtain ⟨n0, H⟩ := erdos_550_large_core q hq m' hmono' hpos'
  48. refine ⟨n0, fun n hn V _ T hT hcard => ?_⟩
  49. have hreidx : ramsey T (Kmult k m) = ramsey T (Kmult (q+1) m') :=
  50. ramsey_Kmult_reindex T (finCongr hqk.symm) m m' (fun i => by simp only [hm']; congr 1)
  51. have hbip : ramsey T (Kmult 2 (fun j => m (Fin.castLE (by omega : 2 ≤ k) j)))
  52. = ramsey T (Kbip (m' 0) (m' 1)) := by
  53. rw [ramsey_Kmult2_Kbip T (fun j => m (Fin.castLE (by omega : 2 ≤ k) j)), hm'0, hm'1, el0, el1]
  54. rw [hreidx, hbip, hm'0]
  55. exact H n hn T hT hcard
  56. /-- **Erdős Problem 550.** Fix `k ≥ 2` and
  57. `1 ≤ m 0 ≤ m 1 ≤ ⋯ ≤ m (k-1)`. There is `n₀` such that
  58. for every `n ≥ n₀` and every `n`-vertex tree `T`,
  59. `R(T, K_{m 0,…,m (k-1)}) ≤ (k-1)(R(T, K_{m 0, m 1}) - 1) + m 0`.
  60. Its off--Turán input is the unconditional theorem
  61. `off_turan_embedding_direct`. -/
  62. theorem erdos_550 (k : ℕ) (hk : 2 ≤ k) (m : Fin k → ℕ)
  63. (hmono : Monotone m) (hpos : 1 ≤ m ⟨0, by omega⟩) :
  64. ∃ n0 : ℕ, ∀ n, n0 ≤ n → ∀ {V : Type} [Fintype V] (T : SimpleGraph V),
  65. T.IsTree → Fintype.card V = n →
  66. ramsey T (Kmult k m) ≤
  67. (k - 1) * (ramsey T (Kmult 2 (fun j => m (Fin.castLE hk j))) - 1)
  68. + m ⟨0, by omega⟩ := by
  69. rcases lt_or_ge k 3 with hk2 | hk3
  70. · -- `k = 2`: here `K_{m_1,…,m_k} = K_{m_1,m_2}` and the RHS is `R - 1 + m 0 ≥ R`.
  71. obtain rfl : k = 2 := by omega
  72. refine ⟨0, fun n _ V _ T _ _ => ?_⟩
  73. -- the two graphs coincide and `m 0 ≥ 1`
  74. have hcast : (fun j => m (Fin.castLE hk j)) = m := by
  75. funext j; simp
  76. rw [ramsey_Kmult_congr T hcast]
  77. have h0 : 1 ≤ m ⟨0, by omega⟩ := hpos
  78. omega
  79. · -- `k ≥ 3`: the substantial case.
  80. exact erdos_550_large k hk3 m hmono hpos
  81. end Erdos550