When a diamond, or other subgraph H, is removed from G, we don't have to leave the hole empty. There are two tricks that can help. 1. Draw lines across the empty space. This is like pulling two countries together so they touch. A form of triangulation really. The resulting graph is still smaller than G, it still has fewer points than G, and thus it can be colored. The color patterns are restricted however, by the additional edges. We don't have to consider every possible color pattern, to see if they all extend to H. 2. Another trick involves sewing points together. This is like merging two countries on a map. This forces border points to have the same color, since they are essentially the same point in the smaller graph. In summary, a Line forces two points to have different colors; sewing together forces them to have the same color. We need both of these tricks. In fact we already used this trick for the diamond with 5 6 6 around. Looking for chain colorable patterns is not enough by itself. We had to do some sewing. Here is the output of 4ct p566. p566 8 border points 274 patterns 82 patterns directly colorable 43 colorable 16 colorable 7 colorable 2 colorable unknown 45% ok lines 1=6 2=4 Border points 1 and 6 are sewn together, then 2 and 4 are sewn together. (1=6 indicates sewing, 1-6 would indicate a line.) Once this is done, all the possible color patterns are colorable or chain colorable. Boom! With these tricks in hand, we can rule out many vertices next to a pentatriangle. The hexagon must be tolerated, but not the heptagon. p557 rules that out. This uses both sewing and lines to complete the analysis. ok lines 2=6 3=5 0-2 It sews 2 and 6 together, and 3 and 5 together, then draws a line from 0 to the composite point (2,6). Whenever that graph is colored, the coloring extends to the diamond that was formerly inside, and thus all of G. Similar results hold for degrees 8, 9, and 10. A vertex next to a pentatriangle has degree ≥ 11. Return to x of degree 5, and assume it is part of a pentatriangle. Hoping for positive curvature, put a hexagon on one side. The other side has a vertex of degree 11 or higher. A fifth vertex, call it y, lies between these. y creates a diamond with 6 and 5 around. y can't be 5 or 6, those diamonds are forbidden. In fact, the software rules out degrees up to 10. (See p567 p568 p569 p56a.) So there are two adjacent vertices of degree 11 or higher. An edge coming into x, from degree 11, is -5/11, almost negative one half. There are two of these, plus the transverse edges. The net curvature of x is under water at this point. If there is no hexagon next to the pentatriangle, we have at least degree 11 on either side. This threatens to make our curvature negative, unless we can put another pentagon between them. A ring of 5 5 11 5 11 has a neighborhood curvature of 1/11, barely positive. However, there are only certain vertices that can live between pentagons. See files p555 through p5c5. We need at least degree 13. The edge coming into x from a vertex of degree 13 takes away 7/13, which is more than half. Two of these makes the neighborhood curvature negative. Therefore, x cannot be part of a pentatriangle. Take the next step, and suppose x has two pentagons that are not adjacent. We already restricted what might lie between them. The degree is at least 13. We've lost at least 7/13. On the other side, we can't have 6 6, or 6 7, or 7 7, or 6 8. Those create forbidden diamonds. A vertex of degree 9 would take away ⅓ + half of ⅓ = ½, and we don't have that to spare. 7 8 would take away (1/7 + 1/4) * (3/2), and we don't have that to spare. Therefore, x with two adjacent pentagons cannot produce a positive curvature. Attach one pentagon. If a hexagon follows, then after that is at least 11. We've lost 5/11, and half of 5/11 on either side. Something else in the ring isn't a hexagon, and that puts us under water. therefore, the vertices on either side of 5 have degree > 6. We ruled out 7 5 7 (by p757), so at least one of them is 8. In fact, 7 5 8 is ruled out. (p758) 7 5 9 takes away (1/7 + 1/3) * (3/2), which leaves only 2/7. We can't have 6 on the other side of 7. (p576) It's at least another 7, which takes away 2/7, and no progress. 8 5 8 takes away 3/4, counting the edges that point away from 5 and around the ring. One more 7 is too much. The only feasible ring here is 8 5 8 6 6. Put a pentagon in the 6 8 notch. This is ruled out by p58668+5. Therefore this notch is not filled with a pentagon. The edge from octagon to hexagon can count entirely, instead of half. this happens twice, so now the net contribution of x is 0. Attach no pentagons. Every higher degree vertex now has its edge counted twice, once going into the central pentagon, and half again on either side. Thus two octagons would spend the entire budget. similarly, a degree 12 is too much. We can look between 6 and 11. But remember, 6 6 6 in a row doesn't work. 6 6 in a row can't have 7 on either side, (p667), so at least two octagons, which we just ruled out. Hexagons are isolated around the central pentagon, and there are at most two. If there is but one, we have at least 4 7's, (4*2)/7, which is more than 1. Thus there are two hexagons. If there is even one octagon, along with two heptagons, we have gone over budget. The ring has to be 6 7 6 7 7. Put a pentagon in the 6 7 notch. This diamond is ruled out by h575. No pentagon on the other side means I can count all of the edges from 7 flowing into 6, not half of them. This happens 4 times, and puts us over budget. Each pentagon in G contributes nothing, or negative, to the curvature of the uncolorable graph. This is ipossible. Therefore, the 4 color theorem is true! To validate: make 4ct p* h* After you have reviewed the code of course. :) There is a -d option for debugging.