# De Bruijn–Erdős theorem (graph theory)

In graph theory, the De Bruijn–Erdős theorem relates graph coloring of an infinite graph to the same problem on its finite subgraphs. It states that, when all finite subgraphs can be colored with ${\displaystyle c}$ colors, the same is true for the whole graph. The theorem was proved by Nicolaas Govert de Bruijn and Paul Erdős (1951), after whom it is named.

The De Bruijn–Erdős theorem has several different proofs, all depending in some way on the axiom of choice. Its applications include extending the four-color theorem and Dilworth's theorem from finite graphs and partially ordered sets to infinite ones, and reducing the Hadwiger–Nelson problem on the chromatic number of the plane to a problem about finite graphs. It may be generalized from finite numbers of colors to sets of colors whose cardinality is a strongly compact cardinal.

## Definitions and statement

An undirected graph is a mathematical object consisting of a set of vertices and a set of edges that link pairs of vertices. The two vertices associated with each edge are called its endpoints. The graph is finite when its vertices and edges form finite sets, and infinite otherwise. A graph coloring associates each vertex with a color drawn from a set of colors, in such a way that every edge has two different colors at its endpoints. A frequent goal in graph coloring is to minimize the total number of colors that are used; the chromatic number of a graph is this minimum number of colors.[1] The four-color theorem states that every finite graph that can be drawn without crossings in the Euclidean plane needs at most four colors; however, some graphs with more complicated connectivity require more than four colors.[2] It is a consequence of the axiom of choice that the chromatic number is well-defined for infinite graphs, but for these graphs the chromatic number might itself be an infinite cardinal number.[3]

A subgraph of a graph is another graph obtained from a subset of its vertices and a subset of its edges. If the larger graph is colored, the same coloring can be used for the subgraph. Therefore, the chromatic number of a subgraph cannot be larger than the chromatic number of the whole graph. The De Bruijn–Erdős theorem concerns the chromatic numbers of infinite graphs, and shows that (again, assuming the axiom of choice) they can be calculated from the chromatic numbers of their finite subgraphs. It states that, if the chromatic numbers of the finite subgraphs of a graph ${\displaystyle G}$  have a finite maximum value ${\displaystyle c}$ , then the chromatic number of ${\displaystyle G}$  itself is exactly ${\displaystyle c}$ . On the other hand, if there is no finite upper bound on the chromatic numbers of the finite subgraphs of ${\displaystyle G}$ , then the chromatic number of ${\displaystyle G}$  itself must be infinite.[4]

## Applications

The original motivation of Erdős in studying this problem was to extend from finite to infinite graphs the theorem that, whenever a graph has an orientation with finite maximum out-degree ${\displaystyle k}$ , it also has a ${\displaystyle (2k+1)}$ -coloring. For finite graphs this follows because such graphs always have a vertex of degree at most ${\displaystyle 2k}$ , which can be colored with one of ${\displaystyle 2k+1}$  colors after all the remaining vertices are colored recursively. Infinite graphs with such an orientation do not always have a low-degree vertex (for instance, Bethe lattices have ${\displaystyle k=1}$  but arbitrarily large minimum degree), so this argument requires the graph to be finite. But the De Bruijn–Erdős theorem shows that a ${\displaystyle (2k+1)}$ -coloring exists even for infinite graphs.[5]

A seven-coloring of the plane, and the four-chromatic Moser spindle drawn as a unit distance graph in the plane, providing upper and lower bounds for the Hadwiger–Nelson problem.

Another application of the De Bruijn–Erdős theorem is to the Hadwiger–Nelson problem, which asks how many colors are needed to color the points of the Euclidean plane so that every two points that are a unit distance apart have different colors. This is a graph coloring problem for an infinite graph that has a vertex for every point of the plane and an edge for every two points whose Euclidean distance is exactly one. The subgraphs of this graph are called unit distance graphs. A seven-vertex unit distance graph, the Moser spindle, requires four colors; in 2018, much larger unit distance graphs were found that require five colors.[6] The whole infinite graph has a known coloring with seven colors based on a hexagonal tiling of the plane. Therefore, the chromatic number of the plane must be either 5, 6, or 7, but it is not known which of these three numbers is the correct value. The De Bruijn–Erdős theorem shows that, for this problem, there exists a finite unit distance graph with the same chromatic number as the whole plane, so if the chromatic number is greater than five then this fact can be proved by a finite calculation.[7]

The De Bruijn–Erdős theorem may also be used to extend Dilworth's theorem from finite to infinite partially ordered sets. Dilworth's theorem states that the width of a partial order (the maximum number of elements in a set of mutually incomparable elements) equals the minimum number of chains (totally ordered subsets) into which the partial order may be partitioned. A partition into chains may be interpreted as a coloring of the incomparability graph of the partial order. This is a graph with a vertex for each element of the order and an edge for each pair of incomparable elements. Using this coloring interpretation, together with a separate proof of Dilworth's theorem for finite partially ordered sets, it is possible to prove that an infinite partially ordered set has finite width w if and only if it has a partition into w chains.[8]

In the same way, the De Bruijn–Erdős theorem extends the four-color theorem from finite planar graphs to infinite planar graphs. Every finite planar graph can be colored with four colors, by the four-color theorem. The De Bruijn–Erdős theorem then shows that every graph that can be drawn without crossings in the plane, finite or infinite, can be colored with four colors. More generally, every infinite graph for which all finite subgraphs are planar can again be four-colored.[9]

## Proofs

The original proof of the De Bruijn–Erdős theorem, by De Bruijn, used transfinite induction.[10]

Gottschalk (1951) provided the following very short proof, based on Tychonoff's compactness theorem in topology. Suppose that, for the given infinite graph G, every finite subgraph is k-colorable, and let X be the space of all assignments of the k colors to the vertices of G (regardless of whether they form a valid coloring). Then X may be given a topology as a product space kV(G), where V(G) denotes the set of vertices of the graph. By Tychonoff's theorem this topological space is compact. For each finite subgraph F of G, let XF be the subset of X consisting of assignments of colors that validly color F. Then the system of sets XF is a family of closed sets with the finite intersection property, so by compactness it has a nonempty intersection. Every member of this intersection is a valid coloring of G.[11]

A different proof using Zorn's lemma was given by Lajos Pósa, and also in the 1951 Ph.D. thesis of Gabriel Andrew Dirac. If G is an infinite graph in which every finite subgraph is k-colorable, then by Zorn's lemma it is a subgraph of a maximal graph M with the same property (one to which no more edges may be added without causing some finite subgraph to require more than k colors). The binary relation of nonadjacency in M is an equivalence relation, and its equivalence classes provide a k-coloring of G. However, this proof is more difficult to generalize than the compactness proof.[12]

The theorem can also be proved using ultrafilters[13] or non-standard analysis.[14] Nash-Williams (1967) gives a proof for graphs with a countable number of vertices based on Kőnig's infinity lemma.

## Dependence on choice

All proofs of the De Bruijn–Erdős theorem use some form of the axiom of choice. Some form of this assumption is necessary, as there exist models of mathematics in which both the axiom of choice and the De Bruijn–Erdős theorem are false. More precisely, Mycielski (1961) showed that the theorem is a consequence of the Boolean prime ideal theorem, a property that is implied by the axiom of choice but weaker than the full axiom of choice, and Läuchli (1971) showed that the De Bruijn–Erdős theorem and the Boolean prime ideal theorem are equivalent in axiomatic power.[15] The De Bruijn–Erdős theorem for countable graphs can also be shown to be equivalent in axiomatic power, within a theory of second-order arithmetic, to Kőnig's infinity lemma.[16]

For a counterexample to the theorem in models of set theory without choice, let G be an infinite graph in which the vertices represent all possible real numbers. In G, connect each two real numbers x and y by an edge whenever one of the values (|xy| ± 2) is a rational number. Equivalently, in this graph, edges exist between all real numbers x and all real numbers of the form x ± (2 + q), where q is any rational number. Each path in this graph, starting from any real number x, alternates between numbers that differ from x by a rational number plus an even multiple of 2 and numbers that differ from x by a rational number plus an odd multiple of 2. This alternation prevents G from containing any cycles of odd length, so each of its finite subgraphs requires only two colors. However, in the Solovay model in which every set of real numbers is Lebesgue measurable, G requires infinitely many colors, since in this case each color class must be a measurable set and it can be shown that every measurable set of real numbers with no edges in G must have measure zero. Therefore, in the Solovay model, the (infinite) chromatic number of all of G is much larger than the chromatic number of its finite subgraphs (at most two).[17]

## Generalizations

Rado (1949) proves the following theorem, which may be seen as a generalization of the De Bruijn–Erdős theorem. Let V be an infinite set, for instance the set of vertices in an infinite graph. For each element v of V, let cv be a finite set of colors. Additionally, for every finite subset S of V, choose some particular coloring CS of S, in which the color of each element v of S belongs to cv. Then there exists a global coloring χ of all of V with the property that every finite set S has a finite superset T on which χ and CT agree. In particular, if we choose a k-coloring for every finite subgraph of an infinite graph G, then there is a k-coloring of G in which each finite graph has a larger supergraph whose coloring agrees with the coloring of the whole graph.[18]

If a graph does not have finite chromatic number, then the De Bruijn–Erdős theorem implies that it must contain finite subgraphs of every possible finite chromatic number. Researchers have also investigated other conditions on the subgraphs that are forced to occur in this case. For instance, unboundedly chromatic graphs must also contain every possible finite bipartite graph as a subgraph. However, they may have arbitrarily large odd girth, and therefore they may avoid any finite set of non-bipartite subgraphs.[19]

The De Bruijn–Erdős theorem also applies directly to hypergraph coloring problems, where one requires that each hyperedge have vertices of more than one color. As for graphs, a hypergraph has a k-coloring if and only if each of its finite sub-hypergraphs has a k-coloring.[20] It is a special case of the compactness theorem of Kurt Gödel, stating that a set of first-order sentences has a model if and only if every finite subset of it has a model.[21] More specifically, the De Bruijn–Erdős theorem can be interpreted as the compactness of the first-order structures whose non-logical values are any finite set of colors and whose only predicate on these values is inequality.[22]

The theorem may also be generalized to situations in which the number of colors is an infinite cardinal number. If κ is a strongly compact cardinal, then for every graph G and cardinal number μ < κ, G has chromatic number at most μ if and only if each of its subgraphs of cardinality less than κ has chromatic number at most μ.[23] The original De Bruijn–Erdős theorem is the case κ = ℵ0 of this generalization, since a set is finite if and only if its cardinality is less than 0. However, some assumption such as the one of being a strongly compact cardinal is necessary: if the generalized continuum hypothesis is true, then for every infinite cardinal γ, there exists a graph G of cardinality (2γ)+ such that the chromatic number of G is greater than γ, but such that every subgraph of G whose vertex set has smaller power than G has chromatic number at most γ.[24] Lake (1975) characterizes the infinite graphs that obey a generalization of the De Bruijn–Erdős theorem, in that their chromatic number is equal to the maximum chromatic number of their strictly smaller subgraphs.

## Notes

1. ^ For these basic definitions, see Jensen & Toft (1995), pp. 1–2.
2. ^ Jensen & Toft (1995), p. 5.
3. ^
4. ^ Jensen & Toft (1995), Theorem 1, p. 2.
5. ^ Erdős (1950). See in particular p. 137, where the De Bruijn–Erdős theorem is first announced (but not proven), with a hint that Kőnig's lemma can be used for countable graphs.
6. ^
7. ^ Soifer (2008), p. 39.
8. ^ Harzheim (2005), Theorem 5.6, p. 60.
9. ^ Barnette (1983). Nash-Williams (1967) states the same result for the five-color theorem for countable planar graphs, as the four-color theorem had not yet been proven when he published his survey, and as the proof of the De Bruijn–Erdős theorem that he gives only applies to countable graphs. For the generalization to graphs in which every finite subgraph is planar (proved directly via Gödel's compactness theorem), see Rautenberg (2010).
10. ^ Soifer (2008), p. 236.
11. ^ Jensen & Toft (1995). Gottschalk states his proof more generally as a proof of the theorem of Rado (1949) that generalizes the De Bruijn–Erdős theorem.
12. ^ Jensen & Toft (1995); Harzheim (2005). Jensen and Toft attribute to Gert Sabidussi the observation that Gottschalk's proof is easier to generalize. Soifer (2008, pp. 238–239) gives the same proof via Zorn's lemma, rediscovered in 2005 by undergraduate student Dmytro Karabash.
13. ^
14. ^
15. ^ For this history, see Cowen, Hechler & Mihók (2002). For a simplified proof of Läuchli's theorem by Mycielski, see Cowen (1990).
16. ^
17. ^ Shelah & Soifer (2003); Soifer (2008), pp. 541–542.
18. ^ For this connection between Rado's lemma and the De Bruijn–Erdős theorem, see e.g. the discussion following Theorem A of Nash-Williams (1967).
19. ^
20. ^ Soifer (2008), p. 239.
21. ^ Lake (1975), p. 171: "It is straightforward to prove [the De Bruijn–Erdős theorem] using the compactness theorem for first-order logic"
22. ^
23. ^ This follows immediately from the definition of a strongly compact cardinal κ as being a cardinal such that every collection of formulae of infinitary logic each of length smaller than κ, that is satisfiable for every subcollection of fewer than κ formulae, is globally satisfiable. See e.g. Kanamori (2008).
24. ^