{
  "id": "2677",
  "ident": "NS.02677",
  "slug": "erdos-636",
  "title": "Erdős Problem 636",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Suppose $G$ is a graph on $n$ vertices which contains no complete graph or independent set on\n$\\gg \\log n$ many vertices. Must $G$ contain $\\gg n^{5/2}$ induced subgraphs which pairwise differ\nin either the number of vertices or the number of edges?\n\nA problem of Erdős, Faudree, and Sós (although in [Er93] Erdős credits this question to Alon and\nBollobás). This was proved by Kwan and Sudakov [KwSu21].",
  "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": "Erdos636.erdos_636",
  "statement_lean": "theorem erdos_636 :\n    ∀ C > (0 : ℝ), ∃ γ > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < C * Real.log n → (G.indepNum : ℝ) < C * Real.log n →\n        HasManyDistinctInducedSubgraphs G (γ * (n : ℝ) ^ (5 / 2 : ℝ))",
  "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 636\n\n*References:*\n- [erdosproblems.com/636](https://www.erdosproblems.com/636)\n- [AlKo09] Alon, N. and Kostochka, A. V., *Induced subgraphs with distinct sizes*.\n  Random Structures Algorithms 34 (2009), 45-53.\n- [Er93] Erdős, Paul, *Some of my favorite solved and unsolved problems in graph theory*.\n  Quaestiones Math. (1993), 333-350.\n- [Er97d] Erdős, Paul, *Some recent problems and results in graph theory*. Discrete Math. (1997),\n  81-85.\n- [KwSu21] Kwan, M. and Sudakov, B., *Proof of a conjecture on induced subgraphs of Ramsey graphs*.\n  Trans. Amer. Math. Soc. 372 (2019), 5571-5594.\n  [arXiv:1712.05656](https://arxiv.org/abs/1712.05656)\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos636\n\n/--\n`G` contains at least `k` many induced subgraphs which pairwise differ in either the number of\nvertices or the number of edges, that is, there is a family of at least `k` many sets of vertices\nsuch that any two of them have different sizes or induce different numbers of edges.\n-/\ndef HasManyDistinctInducedSubgraphs {V : Type*} (G : SimpleGraph V) (k : ℝ) : Prop :=\n  ∃ 𝒮 : Set (Set V), 𝒮.Pairwise (fun s t => s.ncard ≠ t.ncard ∨\n      (G.induce s).edgeSet.ncard ≠ (G.induce t).edgeSet.ncard) ∧\n    k ≤ (𝒮.ncard : ℝ)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSuppose $G$ is a graph on $n$ vertices which contains no complete graph or independent set on\n$\\gg \\log n$ many vertices. Must $G$ contain $\\gg n^{5/2}$ induced subgraphs which pairwise differ\nin either the number of vertices or the number of edges?\n\nA problem of Erdős, Faudree, and Sós (although in [Er93] Erdős credits this question to Alon and\nBollobás). This was proved by Kwan and Sudakov [KwSu21].\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos636.lean#L739\"]\ntheorem erdos_636 :\n    ∀ C > (0 : ℝ), ∃ γ > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < C * Real.log n → (G.indepNum : ℝ) < C * Real.log n →\n        HasManyDistinctInducedSubgraphs G (γ * (n : ℝ) ^ (5 / 2 : ℝ)) := by\n  sorry\n\n/--\nErdős, Faudree, and Sós proved that there exist $\\gg n^{3/2}$ many such subgraphs, as stated on\nerdosproblems.com. Section 2 of [KwSu21] describes two short proofs of this weaker bound.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_636.variants.erdos_faudree_sos :\n    ∀ C > (0 : ℝ), ∃ γ > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < C * Real.log n → (G.indepNum : ℝ) < C * Real.log n →\n        HasManyDistinctInducedSubgraphs G (γ * (n : ℝ) ^ (3 / 2 : ℝ)) := by\n  sorry\n\n/--\nErdős, Faudree, and Sós note that the exponent $5/2$ would be best possible: there are graphs on\n$n$ vertices with no complete graph or independent set on $\\gg \\log n$ many vertices which contain\nonly $O(n^{5/2})$ induced subgraphs that pairwise differ in either the number of vertices or the\nnumber of edges. For example, the random graph $G(n, 1/2)$ has this property with high\nprobability. This is the remark following Theorem 1.1 in [KwSu21], where it is proved in sketch\nform by a concentration inequality and a union bound; see also [AlKo09, Section 4].\n-/\n@[category research solved, AMS 5]\ntheorem erdos_636.variants.best_possible :\n    ∃ C > (0 : ℝ), ∃ K : ℝ, ∀ᶠ n : ℕ in atTop, ∃ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < C * Real.log n ∧ (G.indepNum : ℝ) < C * Real.log n ∧\n        ¬ HasManyDistinctInducedSubgraphs G (K * (n : ℝ) ^ (5 / 2 : ℝ)) := by\n  sorry\n\nend Erdos636\n",
  "statement_hash": "42377ab23a8e0b9683b7e5d42e7b2e493949721510463c00d2fdf44a14785028",
  "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."
}