Twin-width I: Tractable FO Model Checking 2: Every Subgraph of a Unit d-Dimensional Ball Graph with Clique Number k Has Twin-width at Most (3⌈√d⌉)^d·kResearch Paper
Motivation
Twin-width is a graph parameter introduced by Bonnet, Kim, Thomassé and Watrigant in Twin-width I: Tractable FO Model Checking (J. ACM 69(1), Article 3, 2021; arXiv:2004.14789). Its main theorem says that first-order model checking is fixed-parameter tractable on every class of graphs of bounded twin-width, provided a witnessing contraction sequence is given. This turns every class shown to have bounded twin-width into a class on which a whole logic becomes algorithmically tractable, so the question "which natural classes have bounded twin-width?" has direct algorithmic content.
Section 4 of the paper answers that question for several classes. This mission covers the geometric part of Section 4: -dimensional grids, grids with diagonals, and unit -dimensional ball graphs with bounded clique number. Geometric intersection graphs are a standard source of hard instances in parameterized algorithms. Width parameters designed for dense graphs (rank-width, clique-width, boolean-width) are unbounded already on the planar grid, whereas twin-width stays bounded on grids of every fixed dimension and transfers from there to ball graphs.
Setting
All graphs are finite and simple. Two vertex sets of a graph are homogeneous if every pair is an edge or no pair is. For a partition of , the red degree of a part is the number of other parts not homogeneous to ; is a -partition if every red degree is at most . The graph has twin-width at most , , if there is a sequence of -partitions of that starts with the partition into singletons, ends with at most one part, and in which each partition arises from the previous one by merging two parts. This is the paper's partition form of its definition by contractions of trigraphs (graphs with black and red edges, §3).
For the all-red trigraph , in which every edge of is red, the paper's contraction rule never produces a black edge, and two parts are red-adjacent exactly when some edge of joins them. The red twin-width is defined as above with this adjacency.
For , the -dimensional -grid has vertex set , with iff . The grid with diagonals has the same vertices, with distinct iff , and is its all-red trigraph; is the all-red trigraph of .
Given centres for in a finite set , the unit ball graph joins distinct iff the closed unit balls around and meet, that is . Its clique number is the largest size of a set of pairwise adjacent vertices. A subgraph of is obtained by deleting vertices and edges.
Formalization targets
Goal: Theorem 4.5 (p. 3:15)
For every , every subgraph of a unit -dimensional ball graph with clique number at most satisfies
Milestones, in the order the paper uses them
- Red paths have twin-width at most (§3, p. 3:12).
- Induced subgraphs do not increase twin-width, for graphs and for all-red trigraphs (§4.1, p. 3:12).
- for positive (the statement proved inside Theorem 4.3, p. 3:15).
- Theorem 4.3: for positive .
- Every subgraph of has twin-width at most (p. 3:15).
- Lemma 4.4: every subgraph of has twin-width at most .
- In a unit ball graph without a clique of size , each half-open cell of side contains at most centres (proof of Theorem 4.5, p. 3:16).
A companion item, Theorem 4.1 (p. 3:13, graph case), states that adding one vertex joined to an arbitrary set at most changes twin-width from to .
Significance
The goal theorem places unit ball graphs of bounded clique number, in every fixed dimension, among the classes of bounded twin-width. Combined with the paper's main theorem, and with the paper's remark that a contraction sequence can be computed in polynomial time from a geometric representation, it gives fixed-parameter tractable first-order model checking on these graphs. The clique-number hypothesis is needed: unit disk graphs without a clique bound have unbounded twin-width (p. 3:16), as shown in Twin-width II. Theorem 4.3 and Lemma 4.4 are of independent use as twin-width bounds for grids, and the subgraph statements show that grids are an exception to the general fact that bounded twin-width is not preserved by taking (non-induced) subgraphs (p. 3:13).
All results here are proved in the paper. To our knowledge none of them, and no notion of twin-width with red degree, is machine-checked in Lean or Mathlib. The work is to formalize the paper's arguments: the parallel contraction of grid layers, the supercell contraction, and the geometric counting.
Difficulty
Twin-width is not monotone under subgraphs, so the obvious route, "a unit ball graph of bounded clique number is a subgraph of a grid-like graph, hence has bounded twin-width", fails as stated. The paper repairs it by working with all-red trigraphs throughout: for an all-red trigraph, removing edges can only remove red adjacencies, and this is why Theorem 4.3 is proved in its red form and Lemma 4.4 is stated for . A second difficulty is bookkeeping: the bound comes from contracting the layers of "in parallel" and tracking the red degree of every vertex at each step, and Lemma 4.4 is asserted "by the arguments of Theorem 4.3" without a separate proof, so its argument has to be reconstructed.
Formalization scope
Lean represents twin-width by the predicates TwinWidthLE G d and RedTwinWidthLE H d on finite vertex types: an explicit sequence of Finpartitions of the vertex set from ⊥ (singletons) to at most one part, consecutive partitions differing by one merge of two distinct parts. Twin-width is never a number, so no infimum over an empty set enters. is Fin d → Fin n; centres live in EuclideanSpace ℝ (Fin d) with the Euclidean distance; balls are closed of radius , so centres at distance exactly are adjacent. is the natural-number ceiling of the real square root. "Clique number " is encoded as CliqueFree (k+1) (clique number at most ), which is the same theorem because the bound is monotone in ; subgraphs are a finite vertex set together with a graph on it.
The hypotheses , appear in Theorem 4.3, its red form, and the grid-subgraph statement, as on the page ("positive integers"). No other hypothesis is added; Lemma 4.4, the cell bound and the goal hold as stated also for or . The red-degree count uses "some edge joins the two parts", which is derived from the paper's contraction rule for trigraphs without black edges and is used only for all-red trigraphs; the twin-width of graphs counts non-homogeneous parts. This rules out the trivializing readings: a twin-width defined as an infimum that defaults to , a sequence allowed to jump to one part, homogeneity counted as adjacency for graphs, or a bound depending on the graph. The polynomial-time sentence of Theorem 4.5 is not formalized.
Reusable infrastructure: the partition-form twin-width predicates (shared with the other missions of this series), grids and grids with diagonals in coordinates, and unit ball graphs. Contributions are welcome on the general lemmas (induced subgraphs, red-to-black transfer, small explicit sequences) as well as on the grid theorems themselves.
Selected references
- É. Bonnet, E. J. Kim, S. Thomassé, R. Watrigant, Twin-width I: Tractable FO Model Checking, Journal of the ACM 69(1), Article 3, 2021. https://doi.org/10.1145/3486655 (preprint: https://arxiv.org/abs/2004.14789)
- É. Bonnet, C. Geniet, E. J. Kim, S. Thomassé, R. Watrigant, Twin-width II: small classes, Combinatorial Theory 2(2), 2022. https://arxiv.org/abs/2006.09877