{
  "id": "2484",
  "ident": "NS.02484",
  "slug": "erdos-561",
  "title": "Erdős Problem 561",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $\\hat{R}(G)$ denote the size Ramsey number, the minimal number of edges $m$ such that there\nis a graph $H$ with $m$ edges such that in any $2$-colouring of the edges of $H$ there is a\nmonochromatic copy of $G$.\n\nLet $F_1$ and $F_2$ be the union of stars. More precisely, let\n$F_1=\\cup_{i\\leq s}K_{1,n_i}$ and $F_2=\\cup_{j\\leq t}K_{1,m_j}$ with\n$n_1\\geq\\cdots\\geq n_s\\geq1$ and $m_1\\geq\\cdots\\geq m_t\\geq1$. Prove that\n$$\\hat{R}(F_1,F_2)=\\sum_{2\\leq k\\leq s+t}l_k$$\nwhere\n$$l_k=\\max\\{n_i+m_j-1:i+j=k\\}.$$\n\nThe unions are vertex-disjoint, and $s,t\\geq1$. Lean indices start at zero, so the condition\n$i+j=k$ is represented by $(i+1)+(j+1)=k$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos561.erdos_561",
  "statement_lean": "theorem erdos_561 :\n    ∀ (s t : ℕ), 1 ≤ s → 1 ≤ t →\n    ∀ (n : Fin s → ℕ) (m : Fin t → ℕ),\n      Antitone n → Antitone m → (∀ i, 1 ≤ n i) → (∀ j, 1 ≤ m j) →\n      sizeRamsey F(s, n) F(t, m) =\n        ∑ k ∈ Finset.Icc 2 (s + t),\n          ((Finset.univ : Finset (Fin s × Fin t)).filter\n            (fun p ↦ (p.1.val + 1) + (p.2.val + 1) = k)).sup\n              (fun p ↦ n p.1 + m p.2 - 1)",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 561\n\n*References:*\n- [erdosproblems.com/561](https://www.erdosproblems.com/561)\n- [BEFRS78] Burr, S. A. and Erdős, P. and Faudree, R. J. and Rousseau, C. C. and Schelp, R. H.,\n  Ramsey-minimal graphs for multiple copies. Nederl. Akad. Wetensch. Indag. Math. (1978), 187-195.\n-/\n\n@[expose] public section\n\nnamespace Erdos561\n\nopen SimpleGraph\n\n/-- `F(s,n)` is the disjoint union of the stars $K_{1,n_i}$. The vertex $(i,0)$ is the center\nof component $i$; its other $n_i$ vertices are leaves. -/\nlocal notation \"F(\" s \", \" n \")\" =>\n  fromRel (fun (u v : Σ i : Fin s, Fin (n i + 1)) ↦\n    Sigma.fst u = Sigma.fst v ∧\n      (Fin.val (Sigma.snd u) = 0 ∨ Fin.val (Sigma.snd v) = 0))\n\n/--\nLet $\\hat{R}(G)$ denote the size Ramsey number, the minimal number of edges $m$ such that there\nis a graph $H$ with $m$ edges such that in any $2$-colouring of the edges of $H$ there is a\nmonochromatic copy of $G$.\n\nLet $F_1$ and $F_2$ be the union of stars. More precisely, let\n$F_1=\\cup_{i\\leq s}K_{1,n_i}$ and $F_2=\\cup_{j\\leq t}K_{1,m_j}$ with\n$n_1\\geq\\cdots\\geq n_s\\geq1$ and $m_1\\geq\\cdots\\geq m_t\\geq1$. Prove that\n$$\\hat{R}(F_1,F_2)=\\sum_{2\\leq k\\leq s+t}l_k$$\nwhere\n$$l_k=\\max\\{n_i+m_j-1:i+j=k\\}.$$\n\nThe unions are vertex-disjoint, and $s,t\\geq1$. Lean indices start at zero, so the condition\n$i+j=k$ is represented by $(i+1)+(j+1)=k$.\n-/\n@[category research open, AMS 5]\ntheorem erdos_561 :\n    ∀ (s t : ℕ), 1 ≤ s → 1 ≤ t →\n    ∀ (n : Fin s → ℕ) (m : Fin t → ℕ),\n      Antitone n → Antitone m → (∀ i, 1 ≤ n i) → (∀ j, 1 ≤ m j) →\n      sizeRamsey F(s, n) F(t, m) =\n        ∑ k ∈ Finset.Icc 2 (s + t),\n          ((Finset.univ : Finset (Fin s × Fin t)).filter\n            (fun p ↦ (p.1.val + 1) + (p.2.val + 1) = k)).sup\n              (fun p ↦ n p.1 + m p.2 - 1) := by\n  sorry\n\nend Erdos561\n",
  "statement_hash": "d1571606ead510db6d111674a723c6f64287e9a641b5298b9e85b7949ef66ca3",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}