{
  "id": "3272",
  "ident": "NS.03272",
  "slug": "erdos-810",
  "title": "Erdős Problem 810",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Does there exist some $\\epsilon>0$ such that, for all sufficiently large $n$, there exists a\ngraph $G$ on $n$ vertices with at least $\\epsilon n^2$ edges whose edges can be coloured with $n$\ncolours so that every $C_4$ receives four distinct colours?",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos810.erdos_810",
  "statement_lean": "theorem erdos_810 : ∃ ε > 0, ∀ᶠ n in atTop,\n    ∃ G : SimpleGraph (Fin n), ∃ color : Fin n → Fin n → Fin n,\n      ε * (n : ℝ) ^ 2 ≤ (G.edgeSet.ncard : ℝ) ∧ C4RainbowColoring G color",
  "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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 810\n\n*References:*\n- [erdosproblems.com/810](https://www.erdosproblems.com/810)\n- [BEGS89] Burr, S. A., Erdős, P., Graham, R. L., and Sós, V. T.,\n  *Maximal anti-Ramsey graphs and the strong chromatic number*.\n  J. Graph Theory 13 (1989), no. 3, 263–282.\n- [Er91] Erdős, P., *Problems and results in combinatorial analysis and combinatorial number\n  theory*. Graph theory, combinatorics, and applications, Vol. 1 (1991), 397–406.\n-/\n\n@[expose] public section\n\nnamespace Erdos810\n\nopen Filter\n\n/-- Four objects are pairwise distinct. -/\ndef PairwiseDistinct4 {α : Type _} (a b c d : α) : Prop :=\n  a ≠ b ∧ a ≠ c ∧ a ≠ d ∧ b ≠ c ∧ b ≠ d ∧ c ≠ d\n\n/-- The vertices $a,b,c,d$ form a $C_4$ in cyclic order. -/\ndef IsC4 {n : ℕ} (G : SimpleGraph (Fin n)) (a b c d : Fin n) : Prop :=\n  PairwiseDistinct4 a b c d ∧\n    G.Adj a b ∧ G.Adj b c ∧ G.Adj c d ∧ G.Adj d a\n\n/-- An edge-colouring by $n$ colours such that reversing an edge gives the same colour and every\n$C_4$ receives four distinct colours. -/\ndef C4RainbowColoring {n : ℕ} (G : SimpleGraph (Fin n))\n    (color : Fin n → Fin n → Fin n) : Prop :=\n  (∀ a b, G.Adj a b → color a b = color b a) ∧\n    ∀ a b c d, IsC4 G a b c d →\n      PairwiseDistinct4 (color a b) (color b c) (color c d) (color d a)\n\n/-- Does there exist some $\\epsilon>0$ such that, for all sufficiently large $n$, there exists a\ngraph $G$ on $n$ vertices with at least $\\epsilon n^2$ edges whose edges can be coloured with $n$\ncolours so that every $C_4$ receives four distinct colours? -/\n@[category research open, question, AMS 5]\ntheorem erdos_810 : ∃ ε > 0, ∀ᶠ n in atTop,\n    ∃ G : SimpleGraph (Fin n), ∃ color : Fin n → Fin n → Fin n,\n      ε * (n : ℝ) ^ 2 ≤ (G.edgeSet.ncard : ℝ) ∧ C4RainbowColoring G color := by\n  sorry\n\nend Erdos810\n",
  "statement_hash": "68bba66b16463d40229fcde860bfbff6a968fd13a3eb7b6b7bf873d54d0cb02f",
  "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."
}