We know what a map is, but what is a graph? A graph is a collection of points and edges in the plane. Each edge connects one point to another. In general, an edge can be a squiggly curve, but for our purposes it is often a straight line. for example, a triangle is a graph with three points and three edges. It has one face, inside the triangle, or perhaps two faces if you want to count the outside. A square has four points and four edges, and again two faces, inside and outside. A square with a diagonal drawn through it has four points, five edges, and three faces. To be fancy, a point in a graph is called a vertex. And the plural of vertex is vertices. I will sometimes use this terminology, to be consistent with the literature. Converting a map to a graph is easy. Picture a map of countries, or states, or regions. Assign a point to each region. You can literally place a point inside each region if you wish. Whenever two regions share a border, draw an edge from the point in one region, to the point in the other. In the United States, Nevada touches five other states: Utah, Idaho, Oregon, California, and Arizona. Draw five lines from the central point in Nevada, to the points that represent the five states around it. We say this vertex has degree 5, because it has 5 edges incident to it, corresponding to the 5 states surrounding Nevada. Do this for the entire map, and it becomes a graph, with a vertex for each state and an edge for each border. Coloring the map is the same as coloring the vertices of the graph, so that two connected vertices never have the same color. Color Nevada red, i.e. color its vertex red, and the 5 vertices connected to this point cannot be red. Just as the 5 states around Nevada cannot be red. Try to restrict that ring of 5 to blue and yellow. As you march around the ring, the vertices are colored blue, yellow, blue, yellow, and blue. Yet this puts two blue points together, to blue states together, and that is a contradiction. We have proved, right here in the United States, using Nevada and its neighbors, that you need at least four colors. Three colors are not sufficient. Notice that Hawaii is a single point, out in the ocean. We could color the rest of the graph, then make Hawaii green. It doesn't come into play at all. The same is true of Alaska, (if Canada is not involved). In general, we can color separate components of a map, piece by piece. Therefore, it is convenient to assume our map is connected, whence the resulting graph is connected. Another oddity that is easy to see when the map is a graph: Maine is a dangling point up in the north east. It dangles because it is connected to just one other state, New Hampshire. Its vertex has one edge connecting it to the vertex of New Hampshire. Everywhere else, the graph seems to be well connected. We can color the other 47 states, then give Main any color that is not New Hampshire. It's easy. Therefore, we can trim off all dangling edges, and ask how many colors are required by a well connected graph. There is a generalization here. If a vertex has degree 3 or less, i.e. its region touches 3 other regions or less, color the rest of the graph first, then this vertex. Since this point touches just 3 others, there is always a fourth color available. If there is a graph that cannot be colored with 4 colors, then there is a smallest such graph. Call it G. G is the smallest such graph as measured by the number of vertices. If G has a point x of degree 3 or less, then remove x, and the smaller graph can be colored with 4 colors, then put x back in and G can be colored with 4 colors. This is a contradiction. Therefore, the smallest uncolorable graph has every vertex of degree 4 or more. We will be looking for the smallest uncolorable graph G - or we will prove there is no such thing. In the map of the United States, and particularly its graph, there is another oddity that stands out. Almost all the faces are triangles, but one is not. One face is a square. It surrounds the area known as "Four Corners". These are the four states Arizona, New Mexico, Colorado, and Utah. They meet at a point called Four Corners, and thus their graph makes a square. This is a bit like the pie that I cut into slices, with many regions meeting at a central point. If you turn that pie into a graph, the 20 pieces of pie become a ring of 20 points, with 20 edges around the ring, and no edges running through the middle. In the same way, these for states form a ring of 4 vertices, i.e. a square. What if we made the problem harder? Push New Mexico and Utah together so that they share a border. It could be just a couple miles long but it's a border. This separates Colorado and Arizona, but there's no harm in that. In the graph, this effectively draws an edge from the point of New Mexico to the point of Utah. It draws a diagonal through the square, from lower right to upper left. The face that use to be a square is now two triangles. Color this graph, and we have certainly colored the original. This is a harder problem, in that New Mexico and Utah have to be different colors - and if we solve this one, then we have definitely solved the original. Therefore, we will assume our smallest graph G, that cannot be colored with 4 colors, is fully triangulated. Draw in any extra edges, as needed, so that each face is now a triangle. When you pushed New Mexico and Utah together, to make a border, you also pushed Arizona and Colorado apart. You could have done it the other way; push Arizona and Colorado together, so that they share a border, and push Utah and New Mexico apart. This draws a diagonal through the square from lower left to upper right - the other diagonal. It is not possible to do both at the same time. You can't push New Mexico and Utah together, and also Colorado and Arizona together at the same time. Therefore, in the graph of the United States, you can't draw in both diagonals at the same time. You have to pick one or the other. You are connecting lower left to upper right, or lower right to upper left. The generalization of this is: edges do not cross each other. There are other applications of graphs where edges do cross each other, but this isn't one of them. When a map is converted into a graph, it can always be drawn so that edges don't cross. Some edges may have to curve a bit, we can't guarantee they are all straight lines, it depends on where you place the points within their regions; but we can always draw the graph so that edges don't cross, and most of the time the edges are indeed straight lines. Think of the contiguous U.S. as the only land on the planet, wherein The rest of the area is ocean. We can make the coloring problem harder by including the ocean. Make the ocean blue, and none of the coastal states can be blue. If we can color that, then we have solved the original problem. Indeed this is a harder problem. So always include the outside of the map. Assign it a vertex, somewhere out in the ocean, and connect this vertex to all the coastal states. Note that this vertex has a high degree. Therefore, we will assume our map G covers the entire round earth, and there is a vertex for every region on the earth, even if one of those regions is an ocean, or an external area that we don't care about. In conclusion, we are looking for a graph G, corresponding to a map M, that requires 5 colors, and is the smallest such graph. We know that it is connected, and planar (edges do not cross), and fully triangulated (each face is a triangle), and it covers the entire sphere, and each vertex has degree 4 or more. At this point I will introduce a concept called chaining. Suppose G contains a vertex x of degree 4. We know every vertex has degree at least 4; suppose x has degree exactly 4. Remove x and color the rest of g with 4 colors. Now put x back in. If x touches only 3 colors we give it the fourth color and we're done. But we said G was uncolorable, so this isn't the case. x touches all four colors: red yellow blue green around, going clockwise. Change the color of the vertex just above x from red to blue. Call this vertex y. You must of course change any blue vertices connected to y, to red, Then any red vertices connected to those must change to blue, and so on. This is a red blue flip. It starts with y, the red vertex above x, and propagates throughout G. It might change a significant portion of G, or it might stop at y and go no farther. Suppose it does not spread to the blue vertex below x. That point remains blue. Now we have blue yellow blue green around x, going clockwise, and x can be colored red. This is a contradiction, so there must be a red-blue chain travelling through G, from the red vertex above x, to the blue vertex below x. This red-blue chain effectively separates the yellow vertex to the right of x, from the green vertex to the left of x. Change the vertex on the right of x from yellow to green. Change points connected to that vertex from green to yellow, and so on, spreading throughout G. However, this yellow green flip is contained by the red-blue chain. It cannot snake all the way around to the green vertex to the left of x. The red-blue chain acts as a fence. After this operation, the points around x run red green blue green, going clockwise, and we can color x yellow. This is not suppose to happen. Therefore, G does not contain a vertex of degree 4. This type of chaining is important, and it is most of what my software does. The program removes certain pieces of G, colors the rest in every possible way, changes colors, draws chains, changes other colors, and proves that G can indeed be colored with 4 colors after all. This will all be explained as we go. In conclusion, we are looking for a graph G, corresponding to a map M, that requires 5 colors, and is the smallest such graph. We know that it is connected, and planar (edges do not cross), and fully triangulated (each face is a triangle), and covers the entire sphere, and each vertex has degree 5 or more.