{
  "id": "431",
  "ident": "NS.00431",
  "slug": "erdos-1036",
  "title": "Erdős Problem 1036",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $G$ be a graph on $n$ vertices which does not contain a trivial (empty or complete) graph on\nmore than $c\\log n$ vertices. Must $G$ contain at least $2^{\\Omega_c(n)}$ many induced subgraphs\nwhich are not pairwise isomorphic?\n\nThis is true, and was proved by Shelah [Sh98].",
  "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": "Erdos1036.erdos_1036",
  "statement_lean": "theorem erdos_1036 :\n    ∀ c : ℝ, 0 < c → ∃ δ : ℝ, 0 < δ ∧ ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      G.IsCRamsey c →\n        HasManyNonIsomorphicInducedSubgraphs G ((2 : ℝ) ^ (δ * (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 1036\n\n*References:*\n- [erdosproblems.com/1036](https://www.erdosproblems.com/1036)\n- [AlHa91] Alon, N. and Hajnal, A., *Ramsey graphs contain many distinct induced subgraphs*.\n  Graphs Combin. (1991), 1-6.\n- [ErHa89b] Erdős, P. and Hajnal, A., *On the number of distinct induced subgraphs of a graph*.\n  Discrete Math. (1989), 145-154.\n- [Sh98] Shelah, Saharon, *Erdős and Rényi conjecture*. J. Combin. Theory Ser. A (1998), 179-185.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos1036\n\n/--\n`G` contains at least `k` many induced subgraphs which are not pairwise isomorphic, that is,\nthere is a family of at least `k` many sets of vertices whose induced subgraphs are pairwise\nnon-isomorphic.\n-/\ndef HasManyNonIsomorphicInducedSubgraphs {V : Type*} (G : SimpleGraph V) (k : ℝ) : Prop :=\n  ∃ 𝒮 : Set (Set V), (𝒮.Pairwise fun s t => IsEmpty (G.induce s ≃g G.induce t)) ∧\n    k ≤ (𝒮.ncard : ℝ)\n\n/--\nNeither `G` nor its complement contains a balanced complete bipartite graph $K_{k,k}$ on more\nthan `m` vertices as a (not necessarily induced) subgraph. That is, there are no two disjoint\nsets of `k` vertices with $2k > m$ such that every pair of vertices from different sets is\nadjacent in `G`, or every such pair is non-adjacent in `G`.\n-/\ndef NoLargeBiclique {V : Type*} (G : SimpleGraph V) (m : ℝ) : Prop :=\n  ∀ k : ℕ, ((completeBipartiteGraph (Fin k) (Fin k)).IsContained G ∨\n    (completeBipartiteGraph (Fin k) (Fin k)).IsContained Gᶜ) → (2 * k : ℝ) ≤ m\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $G$ be a graph on $n$ vertices which does not contain a trivial (empty or complete) graph on\nmore than $c\\log n$ vertices. Must $G$ contain at least $2^{\\Omega_c(n)}$ many induced subgraphs\nwhich are not pairwise isomorphic?\n\nThis is true, and was proved by Shelah [Sh98].\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1036.lean\"]\ntheorem erdos_1036 :\n    ∀ c : ℝ, 0 < c → ∃ δ : ℝ, 0 < δ ∧ ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      G.IsCRamsey c →\n        HasManyNonIsomorphicInducedSubgraphs G ((2 : ℝ) ^ (δ * (n : ℝ))) := by\n  sorry\n\n/--\nAlon and Hajnal [AlHa91] proved that $G$ must contain at least\n$$\\exp\\left(n(\\log n)^{-O(\\log\\log n)}\\right)$$\nmany non-isomorphic induced subgraphs.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1036.variants.alon_hajnal :\n    ∀ c : ℝ, 0 < c → ∃ C : ℝ, 0 < C ∧ ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      G.IsCRamsey c →\n        HasManyNonIsomorphicInducedSubgraphs G\n          (Real.exp ((n : ℝ) * Real.log (n : ℝ) ^ (-(C * Real.log (Real.log (n : ℝ)))))) := by\n  sorry\n\n/--\nErdős and Hajnal [ErHa89b] proved that if neither $G$ nor its complement contains a balanced\ncomplete bipartite graph $K_{k,k}$ on more than $c\\log n$ vertices (as a not necessarily induced\nsubgraph) then $G$ contains at least $2^{\\Omega_c(n)}$ many non-isomorphic induced subgraphs.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1036.variants.erdos_hajnal :\n    ∀ c : ℝ, 0 < c → ∃ δ : ℝ, 0 < δ ∧ ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      NoLargeBiclique G (c * Real.log (n : ℝ)) →\n        HasManyNonIsomorphicInducedSubgraphs G ((2 : ℝ) ^ (δ * (n : ℝ))) := by\n  sorry\n\nend Erdos1036\n",
  "statement_hash": "33186637ab263bf2f2ba4e6a0670eb39bd16af6ef7f526fc0d14fabbc1d1f281",
  "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."
}