Motivation
A graph is 3-colorable if its vertices can be colored with three colors so that adjacent vertices get different colors. Deciding 3-colorability is NP-complete in general, and one of the standard ways to map the boundary between easy and hard cases is to forbid an induced subgraph. For the path Pt on t vertices, 3-colorability of P6-free graphs was known to be polynomial (Randerath and Schiermeyer, 2004, reference [21] of the paper), and Randerath, Schiermeyer and Tewes asked in 2002 whether the same holds for t=7.
Bonomo, Chudnovsky, Maceli, Schaudt, Stein and Zhong (Combinatorica, 2017) answered this question. Their Theorem 1 states that the list version, in which every vertex v may only receive a color from a prescribed list L(v)⊆{1,2,3}, can be decided for P7-free graphs in time O(∣V(G)∣21(∣V(G)∣+∣E(G)∣)). The algorithm first reduces the instance to a polynomial number of configurations described by a seed, and then calls Lemma 11 (p. 14) on each configuration. Lemma 11 rests on one structural fact about P7-free graphs, Claim 13 (p. 16), which is the goal of this mission.
Timeline:
- 2002: Randerath, Schiermeyer and Tewes ask whether 3-colorability of P7-free graphs is polynomial.
- 2004: Randerath and Schiermeyer give a polynomial algorithm for P6-free graphs.
- 2017: Bonomo et al. give a polynomial algorithm for list 3-coloring of P7-free graphs; Claims 12 and 13 are its structural core.
- As of the paper, no t is known for which 3-coloring Pt-free graphs is NP-complete (p. 2); the case t=8 is open.
Setting
All graphs are finite and simple. For a set S of vertices of a graph G, N(S) is the set of vertices outside S with a neighbor in S, and S=S∪N(S). A graph is Pt-free if it has no induced subgraph isomorphic to Pt.
A palette L assigns each vertex a list L(v)⊆{1,2,3}. A seed of (G,L) is a nonempty set S that induces a connected subgraph, is 2-dominating (every vertex is at distance at most 2 from S), and satisfies ∣L(v)∣=1 for v∈S and ∣L(v)∣=2 for v∈N(S).
The Lemma 11 setting consists of a graph G, a palette L and a seed S such that
- G is connected and P7-free;
- adjacent v∈S and w∈N(S) have disjoint lists;
- the set X of vertices with ∣L(v)∣=3 is stable and anticomplete to V(G)∖(S∪X);
- no vertex of X has a connected neighborhood.
For i∈{1,2,3}, Di is the set of v∈N(S) with L(v)={1,2,3}∖{i}, and Ni(x)=N(x)∩Di. For {i,j,k}={1,2,3}, Xi is the set of x∈X for which Nj(x) is not complete to Nk(x), and for x∈Xi the paper fixes non-adjacent nj(x)∈Nj(x), nk(x)∈Nk(x).
Formalization targets
Goal: Claim 13 (p. 16)
In the Lemma 11 setting, let {i,j,k}={1,2,3}, x,y∈Xi, and let nj∈Nj(x), nk∈Nk(x) be non-adjacent. Then
∃a∈{x,nj,nk}, ∃b∈{y,nj(y),nk(y)}:ab∈E(G).
Milestones
- Display (1), p. 6. For a seed S and two non-adjacent v,w∈N(S) there is an induced v–w path on at least 3 vertices whose inner vertices lie in S.
- p. 15. For d∈Di and s∈S∩N(d), L(s)={i}.
- p. 15. No vertex of X has a neighbor in S.
- Claim 12, p. 15. For i=j, ui,vi∈Di, uj,vj∈Dj with {ui,vi,uj,vj} stable, there is an induced path P with ends a,b among them such that {a,b}={ui,uj}, {a,b}={vi,vj}, the interior P∗ lies in S, and P∗ is anticomplete to the other two vertices.
Significance
Claim 13 says that the neighbor triples {x,nj(x),nk(x)} of the vertices of Xi pairwise touch. This is what allows the proof of Lemma 11 (Claims 14 to 17) to refine the palette of all of Xi simultaneously with only polynomially many guesses: without it, the vertices of Xi could interact independently and the number of cases would be exponential. Claim 12 and display (1) are the general tools for building long induced paths through a seed, used throughout §3.1.
The paper's result is proved and published. None of it is formalized in a proof assistant as far as the platform's index shows. This mission produces a machine-checked version of the structural core of Lemma 11, and the definitions it needs (seeds, the Lemma 11 setting, the sets Di and Ni(x)) are reusable for the rest of the paper's argument.
Difficulty
The proof of Claim 13 is short on paper, but it assembles an induced P7 from three pieces: the path through S given by Claim 12 and the two short paths nj−x−nk and nj(y)−y−nk(y). Showing that the union is induced requires every non-adjacency between the pieces, and these come from different hypotheses: the stability of X, the fact that X has no neighbor in S, the list structure of the vertices of S next to Di, and part (c) of Claim 12. Claim 12 itself is an extremal argument (choose the neighbor closest to an end of a path), which in a formal setting requires explicit manipulation of paths as sequences of vertices: splitting, reversing and concatenating them while keeping them induced. The obvious approach of taking any shortest path through S between two of the four vertices fails, because such a path can have interior vertices adjacent to the other two.
Formalization scope
Graphs are SimpleGraph V on a finite type V with decidable equality; vertex sets are Finset V. The colors 1,2,3 are 0,1,2 in Fin 3, and a palette is V → Finset (Fin 3). P7-freeness is the negation of Mathlib's induced containment IsIndContained of pathGraph 7; ordinary subgraph containment would be a different, much stronger condition. Connectedness uses Mathlib's Connected, which includes nonemptiness. An induced path is the published platform definition StrongPerfectGraph.Main.IsInducedPath (a nonempty list of distinct vertices in which two vertices are adjacent exactly when consecutive); its ends are the first and last list entries and its interior P∗ is the list with both ends removed.
The Lemma 11 setting is a structure Lemma11Hyp G L S bundling its hypotheses. Lemma 11's own conclusion, a decision procedure with running time O(∣V(G)∣9(∣V(G)∣+∣E(G)∣)), and the running time of Theorem 1 are not formalized, since there is no machine model. The paper's arbitrary choice of nj(y),nk(y) is replaced by quantification over every non-adjacent pair mj∈Nj(y), mk∈Nk(y), which is Claim 13 for every possible choice. The case x=y is allowed.
One hypothesis is added to Claim 12: the four vertices ui,vi,uj,vj are pairwise distinct, and the ends a,b of the path are required to be distinct. The paper's proof and its use in Claim 13 take the four vertices distinct; without the assumption the claim can fail, and without a=b a one-vertex path would satisfy it vacuously.
The following trivializing readings are excluded: dropping the overline in "anticomplete to V(G)∖(S∪X)" (which, together with milestone 3, would force X to be isolated); a one-vertex path or repeated vertices in Claim 12; and subgraph instead of induced-subgraph containment for P7-freeness. The setting is satisfiable with X=∅: the 5-cycle y−a−s−t−b−y with S={s,t}, L(s)={2}, L(t)={3}, L(a)={1,3}, L(b)={1,2}, L(y)={1,2,3} satisfies every hypothesis, with y∈X1.
Proofs of the milestones and the goal are welcome, as are general lemmas about induced paths as lists (subpaths, concatenation through a connected set) that would serve other graph-theory missions.
Selected references
- F. Bonomo, M. Chudnovsky, P. Maceli, O. Schaudt, M. Stein and M. Zhong, Three-coloring and list three-coloring of graphs without induced paths on seven vertices, Combinatorica 38 (2018) 779–801 (OnlineFirst 2017). https://doi.org/10.1007/s00493-017-3553-8
- B. Randerath and I. Schiermeyer, 3-Colorability ∈ P for P₆-free graphs, Discrete Applied Mathematics 136 (2004) 299–313 (reference [21] of the paper).
- B. Randerath, I. Schiermeyer and M. Tewes, Three-colorability and forbidden subgraphs. II: polynomial algorithms, Discrete Mathematics 251 (2002) 137–153 (reference [22] of the paper).
- E. Camby and O. Schaudt, A new characterization of Pk-free graphs, Algorithmica (reference [2] of the paper; the source of Theorem 4, which the other missions of this series use).