{
  "id": "2430",
  "ident": "NS.02430",
  "slug": "erdos-545",
  "title": "Erdős Problem 545",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $m$ be sufficiently large and let $G$ be a graph with $m$ edges and no isolated vertices.\nIs the Ramsey number $R(G)$ maximised when $G$ is 'as complete as possible'?\nThat is, if $m=\\binom{n}{2}+t$ edges with $0\\leq t < n$\nthen is\n$$R(G)\\leq R(H),$$\nwhere $H$ is the graph formed by connecting a new vertex to $t$ of the vertices of $K_n$?\n\nA question of Erdős and Graham. The restriction to sufficiently large $m$ excludes the\nsmall counterexamples recorded on the source page.\n\nThis problem is #10 in Ramsey Theory in the graphs problem collection.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos545.erdos_545",
  "statement_lean": "theorem erdos_545 :\n    ∀ᶠ m : ℕ in atTop, ∀ (n t : ℕ), t < n → m = n.choose 2 + t →\n      ∀ (V : Type) [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj],\n        (∀ v, 0 < G.degree v) →\n        G.edgeSet.ncard = m →\n        SimpleGraph.diagonalGraphRamsey G ≤\n          SimpleGraph.diagonalGraphRamsey (knPlusTEdges n t)",
  "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 545\n\n*References:*\n- [erdosproblems.com/545](https://www.erdosproblems.com/545)\n- [ErGr75] Erdős, P. and Graham, R. L., On partition theorems for finite graphs.\n  Infinite and finite sets (1975), 515-527.\n- [Er84b] Erdős, P., On some problems in graph theory, combinatorial analysis and combinatorial\n  number theory. Graph theory and combinatorics (Cambridge, 1983) (1984), 1-17.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos545\n\n/--\nThe graph formed by connecting a new vertex (`none`) to $t$ of the vertices of $K_n$ (`Fin n`).\n-/\ndef knPlusTEdges (n t : ℕ) : SimpleGraph (Option (Fin n)) where\n  Adj u v := match u, v with\n    | some x, some y => x ≠ y\n    | none, some y => y.val < t\n    | some x, none => x.val < t\n    | none, none => False\n  symm.symm u v := by\n    cases u <;> cases v <;> simp [ne_comm]\n  loopless.irrefl u := by\n    cases u <;> simp\n\n/--\nLet $m$ be sufficiently large and let $G$ be a graph with $m$ edges and no isolated vertices.\nIs the Ramsey number $R(G)$ maximised when $G$ is 'as complete as possible'?\nThat is, if $m=\\binom{n}{2}+t$ edges with $0\\leq t < n$\nthen is\n$$R(G)\\leq R(H),$$\nwhere $H$ is the graph formed by connecting a new vertex to $t$ of the vertices of $K_n$?\n\nA question of Erdős and Graham. The restriction to sufficiently large $m$ excludes the\nsmall counterexamples recorded on the source page.\n\nThis problem is #10 in Ramsey Theory in the graphs problem collection.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_545 :\n    ∀ᶠ m : ℕ in atTop, ∀ (n t : ℕ), t < n → m = n.choose 2 + t →\n      ∀ (V : Type) [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj],\n        (∀ v, 0 < G.degree v) →\n        G.edgeSet.ncard = m →\n        SimpleGraph.diagonalGraphRamsey G ≤\n          SimpleGraph.diagonalGraphRamsey (knPlusTEdges n t) := by\n  sorry\n\n-- TODO: Add variants of the problem.\n\nend Erdos545\n",
  "statement_hash": "6e068c9193fdfc4c07597508ab6f7bc03999fb5c318d12e819f8da889ff79b7c",
  "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."
}