/- 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. -/ module public import FormalConjecturesUtil /-! # Erdős Problem 1111 *References:* - [erdosproblems.com/1111](https://www.erdosproblems.com/1111) - [ElEr85] El-Zahar, M. and Erdős, P., *On the existence of two non-neighboring subgraphs in a graph*. Combinatorica 5 (1985), 295-300. - [NSS24] Nguyen, T., Scott, A. and Seymour, P., *On a problem of El-Zahar and Erdős*. J. Combin. Theory Ser. B 165 (2024), 211-222. [arXiv:2303.13449](https://arxiv.org/abs/2303.13449) - [Wa80b] Wagon, S., *A bound on the chromatic number of graphs without certain induced subgraphs*. J. Combin. Theory Ser. B 29 (1980), 345-346. -/ @[expose] public section namespace Erdos1111 /-- Two sets `A` and `B` of vertices of `G` are *anticomplete* if they are disjoint and `G` has no edge between `A` and `B`. -/ def Anticomplete {V : Type*} (G : SimpleGraph V) (A B : Set V) : Prop := Disjoint A B ∧ ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b /-- Anticomplete sets stay anticomplete when the two sets are swapped. -/ @[category API, AMS 5] theorem Anticomplete.symm {V : Type*} {G : SimpleGraph V} {A B : Set V} (h : Anticomplete G A B) : Anticomplete G B A := by obtain ⟨hd, h⟩ := h exact ⟨hd.symm, fun b hb a ha hba ↦ h a ha b hb hba.symm⟩ /-- If $G$ is a finite graph and $A,B$ are disjoint sets of vertices then we call $A,B$ anticomplete if there are no edges between $A$ and $B$. If $t,c\geq 1$ then there exists $d\geq 1$ such that if $\chi(G)\geq d$ and $\omega(G)