{
  "id": "3162",
  "ident": "NS.03162",
  "slug": "erdos-78",
  "title": "Erdős Problem 78",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $R(k)$ be the Ramsey number for $K_k$. Give a constructive proof that $R(k) > C^k$ for some\nconstant $C > 1$.\n\nEquivalently, give an explicit construction of graphs on $n$ vertices which contain no clique\nand no independent set of size $\\geq c \\log n$, for some constant $c > 0$.\n\nWe formalise \"explicit\" as: the adjacency relation of the graph on $n$ vertices is decided by a\nsingle algorithm that runs in time polynomial in $n$ (see `explicitGraph`). This is the weakest\nreasonable notion (\"weakly explicit\"); even this is open. The strongly explicit version, with time\npolynomial in $\\log n$, is `erdos_78.variants.strongly_explicit`.\n\nThis problem is #4 in Ramsey Theory in the graphs problem collection.",
  "subjects": [
    "math.CO",
    "msc:05",
    "msc:68"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos78.erdos_78",
  "statement_lean": "theorem erdos_78 :\n    ∃ c > (0 : ℝ), ∃ adj : List Bool × ℕ × ℕ → Bool, IsPolyTime adj ∧\n      ∀ᶠ n in atTop, NoHomogeneousSet (explicitGraph adj n) ⌈c * log n⌉₊",
  "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 78\n\n*References:*\n- [erdosproblems.com/78](https://www.erdosproblems.com/78)\n- [Co15] Cohen, Gil, *Two-source dispersers for polylogarithmic entropy and improved Ramsey\n  graphs*. arXiv:1506.04428 (2015).\n- [Er47] Erdős, P., *Some remarks on the theory of graphs*. Bull. Amer. Math. Soc. (1947),\n  292-294.\n- [Er71] Erdős, P., *Some unsolved problems in graph theory and combinatorial analysis*.\n  Combinatorial Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.\n- [Er88] Erdős, P, Problems and results in combinatorial analysis and graph theory. Discrete Math.\n  (1988), 81-92.\n- [Er93] Erdős, Paul, Some of my favorite solved and unsolved problems in graph theory. Quaestiones\n  Math. (1993), 333-350.\n- [Er95] Erdős, Paul, *Some of my favourite problems in number theory, combinatorics, and\n  geometry*. Resenhas (1995), 165-186.\n- [Er97c] Erdős, Paul, *Some of my favorite problems and results*. The mathematics of Paul\n  Erdős, I (1997), 47-67.\n- [Li23b] Li, Xin, *Two source extractors for asymptotically optimal entropy, and (many) more*.\n  arXiv:2303.06802 (2023).\n- [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference \"Paul\n  Erdős and his mathematics\", Budapest, July 1999 (1999).\n-/\n\n@[expose] public section\n\nopen Filter Real ComplexityTheory\n\nnamespace Erdos78\n\n/--\nThe graph on `Fin n` described by an adjacency oracle `adj`. Two distinct vertices `u` and `v`\nare adjacent if `adj (1ⁿ, u, v)` or `adj (1ⁿ, v, u)` is `true`.\n\nThe number of vertices is given in unary, as the list `List.replicate n true`. So if `adj` is\ncomputable in polynomial time, then the whole graph on `n` vertices is computable in time\npolynomial in `n`. This is the notion of a *weakly explicit* family of graphs; compare\n`stronglyExplicitGraph`.\n-/\ndef explicitGraph (adj : List Bool × ℕ × ℕ → Bool) (n : ℕ) : SimpleGraph (Fin n) :=\n  SimpleGraph.fromRel fun u v ↦ adj (List.replicate n true, u, v)\n\n/--\nThe graph on `Fin n` described by an adjacency oracle `adj` which receives `n` in binary. Two\ndistinct vertices `u` and `v` are adjacent if `adj (n, u, v)` or `adj (n, v, u)` is `true`.\n\nIf `adj` is computable in polynomial time, then each adjacency query is answered in time\npolynomial in $\\log n$. This is the notion of a *strongly explicit* family of graphs, which is\nwhat \"explicit Ramsey graph\" usually means in the literature (e.g. [Co15], [Li23b]). Compare\n`explicitGraph`, where only time polynomial in $n$ is allowed.\n-/\ndef stronglyExplicitGraph (adj : ℕ × ℕ × ℕ → Bool) (n : ℕ) : SimpleGraph (Fin n) :=\n  SimpleGraph.fromRel fun u v ↦ adj (n, u, v)\n\n/--\nThe graph `G` has no clique and no independent set with `m` vertices.\n-/\ndef NoHomogeneousSet {V : Type*} (G : SimpleGraph V) (m : ℕ) : Prop :=\n  G.CliqueFree m ∧ Gᶜ.CliqueFree m\n\n/--\nLet $R(k)$ be the Ramsey number for $K_k$. Give a constructive proof that $R(k) > C^k$ for some\nconstant $C > 1$.\n\nEquivalently, give an explicit construction of graphs on $n$ vertices which contain no clique\nand no independent set of size $\\geq c \\log n$, for some constant $c > 0$.\n\nWe formalise \"explicit\" as: the adjacency relation of the graph on $n$ vertices is decided by a\nsingle algorithm that runs in time polynomial in $n$ (see `explicitGraph`). This is the weakest\nreasonable notion (\"weakly explicit\"); even this is open. The strongly explicit version, with time\npolynomial in $\\log n$, is `erdos_78.variants.strongly_explicit`.\n\nThis problem is #4 in Ramsey Theory in the graphs problem collection.\n-/\n@[category research open, AMS 5 68]\ntheorem erdos_78 :\n    ∃ c > (0 : ℝ), ∃ adj : List Bool × ℕ × ℕ → Bool, IsPolyTime adj ∧\n      ∀ᶠ n in atTop, NoHomogeneousSet (explicitGraph adj n) ⌈c * log n⌉₊ := by\n  sorry\n\n/--\nErdős [Er47] gave a simple probabilistic, non-constructive proof that $R(k) > C^k$ for some\nconstant $C > 1$. In fact $R(k) > 2^{k/2}$ for all $k \\geq 3$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_78.variants.nonconstructive :\n    ∃ C > (1 : ℝ), ∀ᶠ k in atTop, C ^ k < (SimpleGraph.diagonalRamsey k : ℝ) := by\n  sorry\n\n/--\nErdős also asked for an explicit construction of graphs on $n$ vertices whose largest clique and\nindependent set have size $o(n^{1/2})$. Such constructions are now known; see [Co15] for the\nhistory.\n-/\n@[category research solved, AMS 5 68]\ntheorem erdos_78.variants.little_o_sqrt :\n    ∃ f : ℕ → ℝ, f =o[atTop] (fun n ↦ √(n : ℝ)) ∧\n      ∃ adj : List Bool × ℕ × ℕ → Bool, IsPolyTime adj ∧\n        ∀ᶠ n in atTop, NoHomogeneousSet (explicitGraph adj n) ⌈f n⌉₊ := by\n  sorry\n\n/--\nCohen [Co15] constructed explicit graphs on $n$ vertices with no clique and no independent set\nof size $2^{(\\log \\log n)^C}$, for some constant $C > 0$.\n-/\n@[category research solved, AMS 5 68]\ntheorem erdos_78.variants.cohen :\n    ∃ C > (0 : ℝ), ∃ adj : List Bool × ℕ × ℕ → Bool, IsPolyTime adj ∧\n      ∀ᶠ n in atTop,\n        NoHomogeneousSet (explicitGraph adj n) ⌈(2 : ℝ) ^ (log (log n)) ^ C⌉₊ := by\n  sorry\n\n/--\nLi [Li23b] improved this to explicit graphs on $n$ vertices with no clique and no independent set\nof size $(\\log n)^C$, for some constant $C > 0$.\n-/\n@[category research solved, AMS 5 68]\ntheorem erdos_78.variants.li :\n    ∃ C > (0 : ℝ), ∃ adj : List Bool × ℕ × ℕ → Bool, IsPolyTime adj ∧\n      ∀ᶠ n in atTop, NoHomogeneousSet (explicitGraph adj n) ⌈(log n) ^ C⌉₊ := by\n  sorry\n\n/--\nThe strongly explicit version of `erdos_78`: an explicit family of graphs on $n$ vertices with no\nclique and no independent set of size $\\geq c \\log n$, where each adjacency query is answered in\ntime polynomial in $\\log n$ (see `stronglyExplicitGraph`).\n-/\n@[category research open, AMS 5 68]\ntheorem erdos_78.variants.strongly_explicit :\n    ∃ c > (0 : ℝ), ∃ adj : ℕ × ℕ × ℕ → Bool, IsPolyTime adj ∧\n      ∀ᶠ n in atTop, NoHomogeneousSet (stronglyExplicitGraph adj n) ⌈c * log n⌉₊ := by\n  sorry\n\n/--\nThe construction of Li [Li23b] is strongly explicit: there are graphs on $n$ vertices with no\nclique and no independent set of size $(\\log n)^C$, for some constant $C > 0$, whose adjacency\nqueries are answered in time polynomial in $\\log n$.\n-/\n@[category research solved, AMS 5 68]\ntheorem erdos_78.variants.li_strongly_explicit :\n    ∃ C > (0 : ℝ), ∃ adj : ℕ × ℕ × ℕ → Bool, IsPolyTime adj ∧\n      ∀ᶠ n in atTop, NoHomogeneousSet (stronglyExplicitGraph adj n) ⌈(log n) ^ C⌉₊ := by\n  sorry\n\nend Erdos78\n",
  "statement_hash": "98b16e4055e53b1d9aed89702015a4e479aacc6c05429e0de35485afd7c0cd86",
  "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."
}