/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 1036

References:

    erdosproblems.com/1036

    [AlHa91] Alon, N. and Hajnal, A., Ramsey graphs contain many distinct induced subgraphs. Graphs Combin. (1991), 1-6.

    [ErHa89b] Erdős, P. and Hajnal, A., On the number of distinct induced subgraphs of a graph. Discrete Math. (1989), 145-154.

    [Sh98] Shelah, Saharon, Erdős and Rényi conjecture. J. Combin. Theory Ser. A (1998), 179-185.

open Filternamespace Erdos1036

G contains at least k many induced subgraphs which are not pairwise isomorphic, that is, there is a family of at least k many sets of vertices whose induced subgraphs are pairwise non-isomorphic.

def HasManyNonIsomorphicInducedSubgraphs {V : Type*} (G : SimpleGraph V) (k : ) : Prop := 𝒮 : Set (Set V), (𝒮.Pairwise fun s t => IsEmpty (G.induce s ≃g G.induce t)) k (𝒮.ncard : )

G contains no complete bipartite graph, and no complement of a complete bipartite graph, on more than m vertices as an induced subgraph.

def NoLargeInducedBipartite {V : Type*} (G : SimpleGraph V) (m : ) : Prop := (s : Set V) (a b : ), (Nonempty (G.induce s ≃g completeBipartiteGraph (Fin a) (Fin b)) Nonempty (G.induce s ≃g (completeBipartiteGraph (Fin a) (Fin b)))) (s.ncard : ) m

Let $G$ be a graph on $n$ vertices which does not contain a trivial (empty or complete) graph on more than $c\log n$ vertices. Must $G$ contain at least $2^{\Omega_c(n)}$ many induced subgraphs which are not pairwise isomorphic?

This is true, and was proved by Shelah [Sh98].

@[category research solved, AMS 5, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1036.lean"] theorem erdos_1036 : answer(True) c : , 0 < c δ : , 0 < δ ∀ᶠ n : in atTop, G : SimpleGraph (Fin n), (G.cliqueNum : ) c * Real.log (n : ) (G.indepNum : ) c * Real.log (n : ) HasManyNonIsomorphicInducedSubgraphs G ((2 : ) ^ (δ * (n : ))) := True (c : ), 0 < c δ, 0 < δ ∀ᶠ (n : ) in atTop, (G : SimpleGraph (Fin n)), G.cliqueNum c * Real.log n G.indepNum c * Real.log n HasManyNonIsomorphicInducedSubgraphs G (2 ^ (δ * n)) All goals completed! 🐙

Alon and Hajnal [AlHa91] proved that $G$ must contain at least $$\exp\left(n(\log n)^{-O(\log\log n)}\right)$$ many non-isomorphic induced subgraphs.

@[category research solved, AMS 5] theorem erdos_1036.variants.alon_hajnal : c : , 0 < c C : , 0 < C ∀ᶠ n : in atTop, G : SimpleGraph (Fin n), (G.cliqueNum : ) c * Real.log (n : ) (G.indepNum : ) c * Real.log (n : ) HasManyNonIsomorphicInducedSubgraphs G (Real.exp ((n : ) * Real.log (n : ) ^ (-(C * Real.log (Real.log (n : )))))) := (c : ), 0 < c C, 0 < C ∀ᶠ (n : ) in atTop, (G : SimpleGraph (Fin n)), G.cliqueNum c * Real.log n G.indepNum c * Real.log n HasManyNonIsomorphicInducedSubgraphs G (Real.exp (n * Real.log n ^ (-(C * Real.log (Real.log n))))) All goals completed! 🐙

Erdős and Hajnal [ErHa89b] proved that if $G$ does not contain a complete bipartite graph or its complement on more than $c\log n$ vertices then $G$ contains at least $2^{\Omega_c(n)}$ many non-isomorphic induced subgraphs.

@[category research solved, AMS 5] theorem erdos_1036.variants.erdos_hajnal : c : , 0 < c δ : , 0 < δ ∀ᶠ n : in atTop, G : SimpleGraph (Fin n), NoLargeInducedBipartite G (c * Real.log (n : )) HasManyNonIsomorphicInducedSubgraphs G ((2 : ) ^ (δ * (n : ))) := (c : ), 0 < c δ, 0 < δ ∀ᶠ (n : ) in atTop, (G : SimpleGraph (Fin n)), NoLargeInducedBipartite G (c * Real.log n) HasManyNonIsomorphicInducedSubgraphs G (2 ^ (δ * n)) All goals completed! 🐙end Erdos1036