{
  "id": "2509",
  "ident": "NS.02509",
  "slug": "erdos-582",
  "title": "Erdős Problem 582",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Does there exist a graph $G$ which contains no $K_4$, and yet any $2$-colouring of the edges\nproduces a monochromatic $K_3$?\n\nErdős and Hajnal [ErHa67] first asked for the existence of any such graph. Existence was proved\nby Folkman [Fo70], but with very poor quantitative bounds. (As a result these quantities are\noften called Folkman numbers.) The current best bounds on the minimal number of vertices $N$ of\nsuch a graph are $21 \\leq N \\leq 786$, where the lower bound is due to Bikov and Nenov [BiNe20]\nand the upper bound is due to Lange, Radziszowski, and Xu [LRX14].",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos582.erdos_582",
  "statement_lean": "theorem erdos_582 :\n    ∃ (V : Type*) (_ : Fintype V) (G : SimpleGraph V),\n      G.CliqueFree 4 ∧ EdgeRamseyTriangle G",
  "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 582\n\n*References:*\n- [erdosproblems.com/582](https://www.erdosproblems.com/582)\n- [Er75b] Erdős, Paul, *Problems and results in combinatorial number theory*. Journées Arithmétiques\n  de Bordeaux (Conf., Univ. Bordeaux, Bordeaux, 1974) (1975), 295-310.\n- [Er69b] Erdős, P., *Problems and results in chromatic graph theory*. Proof Techniques in Graph\n  Theory (Proc. Second Ann Arbor Graph Theory Conf., Ann Arbor, Mich., 1968) (1969), 27-35.\n- [Er75d] Erdős, Paul, *Problems and results on finite and infinite graphs*. Recent advances in\n  graph theory (Proc. Second Czechoslovak Sympos., Prague, 1974) (1975), 183-192. (loose errata).\n- [FrRo86] Frankl, P. and Rödl, V., *Large triangle-free subgraphs in graphs without {$K_4$}*.\n  Graphs Combin. (1986), 135-144.\n- [Sp88] Spencer, Joel, *Three hundred million points suffice*. J. Combin. Theory Ser. A (1988),\n  210-217.\n- [Lu07] Lu, Linyuan, *Explicit construction of small Folkman graphs*. SIAM J. Discrete Math.\n  (2007), 1053-1060.\n- [DuRo08] Dudek, Andrzej and Rödl, Vojtěch, *On the Folkman number {$f(2,3,4)$}*. Experiment.\n  Math. (2008), 63-67.\n- [RaXu07] Radziszowski, Stanisław P. and Xu, Xiaodong, *On the most wanted Folkman graph*.\n  Geombinatorics (2007), 367-381.\n- [BiNe20] Bikov, Aleksandar and Nenov, Nedyalko, *On the independence number of\n  $(3,3)$-Ramsey graphs and the Folkman number $F_e(3,3;4)$*. Australas. J. Combin.\n  (2020), 35-50.\n- [ErHa67] Erdős, P. and Hajnal, A., *Research Problem 2.5*. J. Comb. Theory (1967).\n- [Fo70] Folkman, Jon, *Graphs with monochromatic complete subgraphs in every edge coloring*.\n  SIAM J. Appl. Math. (1970), 19-24.\n- [LRX14] Lange, Alexander R. and Radziszowski, Stanisław P. and Xu, Xiaodong, *Use of MAX-CUT\n  for Ramsey arrowing of triangles*. J. Combin. Math. Combin. Comput. (2014), 61-71.\n-/\n\n@[expose] public section\n\nnamespace Erdos582\n\n/--\nA graph `G` is *edge-Ramsey for triangles* (in arrow notation, $G \\to (K_3, K_3)^e$) if any\n$2$-colouring of the edges of `G` produces a monochromatic $K_3$: three pairwise adjacent\nvertices whose three connecting edges all receive the same colour.\n-/\ndef EdgeRamseyTriangle {V : Type*} (G : SimpleGraph V) : Prop :=\n  ∀ c : G.edgeSet → Fin 2,\n    ∃ (u v w : V) (huv : G.Adj u v) (hvw : G.Adj v w) (huw : G.Adj u w),\n      c ⟨s(u, v), huv⟩ = c ⟨s(v, w), hvw⟩ ∧ c ⟨s(v, w), hvw⟩ = c ⟨s(u, w), huw⟩\n\nset_option linter.style.formal_proof_palomar false in\n/--\nDoes there exist a graph $G$ which contains no $K_4$, and yet any $2$-colouring of the edges\nproduces a monochromatic $K_3$?\n\nErdős and Hajnal [ErHa67] first asked for the existence of any such graph. Existence was proved\nby Folkman [Fo70], but with very poor quantitative bounds. (As a result these quantities are\noften called Folkman numbers.) The current best bounds on the minimal number of vertices $N$ of\nsuch a graph are $21 \\leq N \\leq 786$, where the lower bound is due to Bikov and Nenov [BiNe20]\nand the upper bound is due to Lange, Radziszowski, and Xu [LRX14].\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/1d7b3f00780b85ed0462e79a1cd5650ee9055655/src/v4.29.1/ErdosProblems/Erdos582.lean\"]\ntheorem erdos_582 :\n    ∃ (V : Type*) (_ : Fintype V) (G : SimpleGraph V),\n      G.CliqueFree 4 ∧ EdgeRamseyTriangle G := by\n  sorry\n\nend Erdos582\n",
  "statement_hash": "d215ddd3be667cb41deced43ccb0a3ffb5ab6faf7eaaecbbedf3bdbd942aee16",
  "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."
}