On coloring infinite graphs
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 formula_1 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. 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. 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.
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 formula_2 have a finite maximum value formula_1, then the chromatic number of formula_2 itself is exactly formula_1. On the other hand, if there is no finite upper bound on the chromatic numbers of the finite subgraphs of formula_2, then the chromatic number of formula_2 itself must be infinite.
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 formula_8, it also has a formula_9-coloring. For finite graphs this follows because such graphs always have a vertex of degree at most formula_10, which can be colored with one of formula_11 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 formula_12 but arbitrarily large minimum degree), so this argument requires the graph to be finite. But the De Bruijn–Erdős theorem shows that a formula_9-coloring exists even for infinite graphs.
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 induced 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. 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.
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 formula_14 if and only if it has a partition into formula_14 chains.
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.
Proofs.
The original proof of the De Bruijn–Erdős theorem, by De Bruijn, used transfinite induction.
 provided the following very short proof, based on Tychonoff's compactness theorem in topology. Suppose that, for the given infinite graph formula_2, every finite subgraph is formula_8-colorable, and let formula_18 be the space of all assignments of the formula_8 colors to the vertices of formula_2 (regardless of whether they form a valid coloring). Then formula_18 may be given a topology as a product space formula_22, where formula_23 denotes the set of vertices of the graph. By Tychonoff's theorem this topological space is compact. For each finite subgraph formula_24 of formula_2, let formula_26 be the subset of formula_18 consisting of assignments of colors that validly color formula_24. Then the system of sets formula_26 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 formula_2.
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 formula_2 is an infinite graph in which every finite subgraph is formula_8-colorable, then by Zorn's lemma it is a subgraph of a maximal graph formula_33 with the same property (one to which no more edges may be added without causing some finite subgraph to require more than formula_8 colors). The binary relation of nonadjacency in formula_33 is an equivalence relation, and its equivalence classes provide a formula_8-coloring of formula_2. However, this proof is more difficult to generalize than the compactness proof.
The theorem can also be proved using ultrafilters or non-standard analysis. 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, 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 showed that the De Bruijn–Erdős theorem and the Boolean prime ideal theorem are equivalent in axiomatic power. 
The De Bruijn–Erdős theorem for countable graphs can also be shown to be equivalent in axiomatic power, within a certain theory of second-order arithmetic, to Weak Kőnig's lemma.
For a counterexample to the theorem in models of set theory without choice, let formula_2 be an infinite graph in which the vertices represent all possible real numbers. In formula_2, connect each two real numbers formula_40 and formula_41 by an edge whenever one of the values formula_42 is a rational number. Equivalently, in this graph, edges exist between all real numbers formula_40 and all real numbers of the form formula_44, for rational numbers formula_45. Each path in this graph, starting from any real number formula_40,
alternates between numbers that differ from formula_40 by a rational number plus an even multiple of formula_48
and numbers that differ from formula_40 by a rational number plus an odd multiple of formula_48.
This alternation prevents formula_2 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, formula_2 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 formula_2 must have measure zero. Therefore, in the Solovay model, the (infinite) chromatic number of all of formula_2 is much larger than the chromatic number of its finite subgraphs (at most two).
Generalizations.
 proves the following theorem, which may be seen as a generalization of the De Bruijn–Erdős theorem. Let formula_55 be an infinite set, for instance the set of vertices in an infinite graph. For each element formula_56 of formula_55, let formula_58 be a finite set of colors. Additionally, for every finite subset formula_59 of formula_55, choose some particular coloring formula_61 of formula_59, in which the color of each element formula_56 of formula_59 belongs to formula_58. Then there exists a global coloring formula_66 of all of formula_55 with the property that every finite set formula_59 has a finite superset formula_69 on which formula_66 and formula_71 agree. In particular, if we choose a formula_8-coloring for every finite subgraph of an infinite graph formula_2, then there is a formula_8-coloring of formula_2 in which each finite graph has a larger supergraph whose coloring agrees with the coloring of the whole graph.
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.
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 formula_8-coloring if and only if each of its finite sub-hypergraphs has a formula_8-coloring. 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. 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.
The theorem may also be generalized to situations in which the number of colors is an infinite cardinal number. If formula_78 is a strongly compact cardinal, then for every graph formula_2 and cardinal number formula_80, formula_2 has chromatic number at most formula_82 if and only if each of its subgraphs of cardinality less than formula_78 has chromatic number at most formula_82. The original De Bruijn–Erdős theorem is the case formula_85 of this generalization, since a set is finite if and only if its cardinality is less than formula_86. However, some assumption such as the one of being a strongly compact cardinal is necessary: if