Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Graph Theory

99 missions · 49 completed

Missions

Open50Completed49All99
CombinatoricsOperations ResearchOptimization+1·Captain: mikedeng1

Linear-Time Approximation for Maximum Weight Matching: The Approximation Guarantee of the Scaling AlgorithmResearch Paper

Motivation

The maximum weight matching (MWM) problem asks, for a graph with edge weights, for a set of vertex-disjoint edges of largest total weight. It is a central problem of combinatorial optimization, with applications to transportation, assignment and scheduling, and as a subroutine for shortest paths, planar max cut, Chinese postman tours and metric TSP. Edmonds' blossom algorithm (1965) solves it on general graphs; the fastest implementation, due to Gabow, runs in O(mn+n2log⁡n)O(mn+n^2\log n)O(mn+n2logn) time, and the scaling algorithm of Gabow and Tarjan (1991) runs in O(mnlog⁡n log⁡(nN))O(m\sqrt{n\log n}\,\log(nN))O(mnlogn​log(nN)) time on graphs with nnn vertices, mmm edges and integer weights of magnitude at most NNN. Applications such as switch scheduling, graph clustering and sparse linear solvers accept a slightly suboptimal matching in exchange for speed. This motivates (1−ϵ)(1-\epsilon)(1−ϵ)-approximate maximum weight matchings: matchings whose weight is at least a 1−ϵ1-\epsilon1−ϵ fraction of the optimum.

Timeline of linear and near-linear time approximation for general graphs (Section 1.3 and Table IV of the paper; the entries below are as the paper attributes them):

  • Folklore: the greedy algorithm, which repeatedly takes the heaviest remaining edge, gives a 12\tfrac1221​-MWM in O(mlog⁡n)O(m\log n)O(mlogn) time.
  • Preis (STACS 1999): a 12\tfrac1221​-MWM in linear time; Drake and Hougardy (2003) gave a simpler one.
  • Drake and Hougardy (2003; journal version Vinkemeier and Hougardy, ACM Trans. Algorithms 2005): a (23−ϵ)(\tfrac23-\epsilon)(32​−ϵ)-MWM in O(mϵ−1)O(m\epsilon^{-1})O(mϵ−1) time; Pettie and Sanders (2004) improved this to O(mlog⁡ϵ−1)O(m\log\epsilon^{-1})O(mlogϵ−1).
  • Duan and Pettie (FOCS 2010) and Hanke and Hougardy (2010): a (34−ϵ)(\tfrac34-\epsilon)(43​−ϵ)-MWM in O(mlog⁡nlog⁡ϵ−1)O(m\log n\log\epsilon^{-1})O(mlognlogϵ−1) time.
  • Duan and Pettie (2014): a (1−ϵ)(1-\epsilon)(1−ϵ)-MWM in O(mϵ−1log⁡ϵ−1)O(m\epsilon^{-1}\log\epsilon^{-1})O(mϵ−1logϵ−1) time, which is linear for every fixed ϵ\epsilonϵ.

Setting

Let G=(V,E)G=(V,E)G=(V,E) be a finite simple graph with integer weights w:E→{1,…,N}w:E\to\{1,\dots,N\}w:E→{1,…,N}, N=2LN=2^LN=2L. A matching MMM is a set of vertex-disjoint edges, with weight w(M)=∑e∈Mw(e)w(M)=\sum_{e\in M}w(e)w(M)=∑e∈M​w(e); a vertex is free if no edge of MMM touches it. MMM is a ccc-MWM if c⋅w(M′)≤w(M)c\cdot w(M')\le w(M)c⋅w(M′)≤w(M) for every matching M′M'M′.

A blossom is built recursively: a single vertex {v}\{v\}{v} is a trivial blossom with E{v}=∅E_{\{v\}}=\emptysetE{v}​=∅; an odd number ≥3\ge3≥3 of disjoint blossoms A0,…,AℓA_0,\dots,A_\ellA0​,…,Aℓ​ joined in a cycle by edges ei∈Ai×Ai+1e_i\in A_i\times A_{i+1}ei​∈Ai​×Ai+1​ form the blossom B=⋃AiB=\bigcup A_iB=⋃Ai​ with edge set EB=⋃EAi∪{e0,…,eℓ}E_B=\bigcup E_{A_i}\cup\{e_0,\dots,e_\ell\}EB​=⋃EAi​​∪{e0​,…,eℓ​}. It is full if ∣M∩EB∣=(∣B∣−1)/2|M\cap E_B|=(|B|-1)/2∣M∩EB​∣=(∣B∣−1)/2. The algorithm keeps a laminar set Ω\OmegaΩ of full blossoms; a root blossom is a maximal one, and G/ΩG/\OmegaG/Ω contracts each root blossom to a single vertex.

Dual values y:V→Ry:V\to\mathbb Ry:V→R and zzz on odd vertex sets give each edge the value

yz(u,v)=y(u)+y(v)+∑B odd, u,v∈Bz(B).yz(u,v)=y(u)+y(v)+\sum_{B\ \text{odd},\ u,v\in B} z(B).yz(u,v)=y(u)+y(v)+B odd, u,v∈B∑​z(B).

The scaling algorithm (Figure 2 of the paper) has parameters NNN and ϵ′=2−g≤14\epsilon'=2^{-g}\le\tfrac14ϵ′=2−g≤41​. It runs scales i=0,…,Li=0,\dots,Li=0,…,L with granularity δi=ϵ′N/2i\delta_i=\epsilon'N/2^iδi​=ϵ′N/2i and truncated weights wi(e)=δi⌊w(e)/δi⌋w_i(e)=\delta_i\lfloor w(e)/\delta_i\rfloorwi​(e)=δi​⌊w(e)/δi​⌋. Each scale repeats four steps: augment along a maximal set of vertex-disjoint augmenting paths of the eligible graph GeligG_{\mathrm{elig}}Gelig​, shrink a maximal set of new blossoms, adjust the duals by ±δi/2\pm\delta_i/2±δi​/2, and dissolve root blossoms whose zzz-value has reached zero. It stops when the free vertices' yyy-values reach a scale-dependent value, which is 000 at scale LLL. Eligibility is given by Definition 3.2; the linear-time variant keeps the algorithm unchanged and uses Definition 3.10, which additionally ignores an edge eee in scales i>scale(e)+log⁡ϵ′−1i>\mathrm{scale}(e)+\log\epsilon'^{-1}i>scale(e)+logϵ′−1 unless it is a blossom edge.

Formalization targets

Goal: Theorem 3.12, approximation half

For every ϵ\epsilonϵ with ϵ′≤ϵ/7\epsilon'\le\epsilon/7ϵ′≤ϵ/7, the algorithm of Figure 2 with Definition 3.10 eligibility has a terminating run, and every terminating run returns a matching MMM with

w(M) ≥ (1−ϵ) w(M′)for every matching M′ of G.w(M)\ \ge\ (1-\epsilon)\,w(M')\qquad\text{for every matching } M' \text{ of } G .w(M) ≥ (1−ϵ)w(M′)for every matching M′ of G.

Milestones, in attack order

  • Lemma 2.3: approximate complementary slackness (yz(e)≥(1−ϵ0)w(e)yz(e)\ge(1-\epsilon_0)w(e)yz(e)≥(1−ϵ0​)w(e) everywhere, yz(e)≤(1+ϵ1)w(e)yz(e)\le(1+\epsilon_1)w(e)yz(e)≤(1+ϵ1​)w(e) on matched and blossom edges, zero free duals) gives a (1+ϵ1)−1(1−ϵ0)(1+\epsilon_1)^{-1}(1-\epsilon_0)(1+ϵ1​)−1(1−ϵ0​)-MWM.
  • Section 2 rescaling: rounding real weights to ⌊w/γr⌋\lfloor w/\gamma_r\rfloor⌊w/γr​⌋, γr=ϵwmax⁡/n\gamma_r=\epsilon w_{\max}/nγr​=ϵwmax​/n, loses at most a factor 1−ϵ/21-\epsilon/21−ϵ/2.
  • Lemma 3.5: with Definition 3.2 the algorithm preserves Property 3.1, which consists of granularity, active blossoms, near domination yz(e)≥wi(e)−δiyz(e)\ge w_i(e)-\delta_iyz(e)≥wi​(e)−δi​, near tightness yz(e)≤wi(e)+2(δj−δi)yz(e)\le w_i(e)+2(\delta_j-\delta_i)yz(e)≤wi​(e)+2(δj​−δi​) for type-jjj edges, and equal free duals.
  • Lemma 3.6: eligible edges searched up to scale iii weigh at least N/2i+1+δiN/2^{i+1}+\delta_iN/2i+1+δi​, and matched edges satisfy yz(e)≤(1+4ϵ′)w(e)yz(e)\le(1+4\epsilon')w(e)yz(e)≤(1+4ϵ′)w(e).
  • Lemma 3.7: the output under Definition 3.2 is a (1−5ϵ′)(1-5\epsilon')(1−5ϵ′)-MWM.
  • Theorem 3.8: the approximation half of Theorem 3.8, with ϵ′≤ϵ/5\epsilon'\le\epsilon/5ϵ′≤ϵ/5.
  • Lemma 3.11: the invariants under Definition 3.10, including yz(e)>(1−ϵ′)wi(e)yz(e)>(1-\epsilon')w_i(e)yz(e)>(1−ϵ′)wi​(e) and yz(e)<(1+6ϵ′)wi(e)yz(e)<(1+6\epsilon')w_i(e)yz(e)<(1+6ϵ′)wi​(e) once i>scale(e)+γi>\mathrm{scale}(e)+\gammai>scale(e)+γ.

Significance

The result. Theorem 3.12 gives the first algorithm for (1−ϵ)(1-\epsilon)(1−ϵ)-approximate maximum weight matching on general graphs that runs in linear time for every fixed ϵ\epsilonϵ; earlier linear-time algorithms achieved only 12\tfrac1221​ or 23−ϵ\tfrac23-\epsilon32​−ϵ. Its analysis is a relaxation of Edmonds' complementary slackness conditions that grows weaker over the scales, but not uniformly, and Lemma 2.3 certifies an approximate matching by approximately feasible duals.

Formalizing it. The result is proved in the paper. Mathlib (at the pinned revision) has matchings, alternating walks and Tutte's theorem, but no blossoms, contracted graphs or weighted matching algorithms. A complete development gives a Lean model of blossoms, contraction and augmenting paths through blossoms, a verified primal–dual invariant for a scaling algorithm, and a checked approximate-slackness certificate for matchings. Each of these can be reused to formalize Edmonds' exact algorithm or the Gabow–Tarjan scaling algorithm.

Difficulty

The two halves of the argument pull against each other. Lemma 2.3 needs near domination and near tightness as multiplicative bounds. The algorithm maintains only additive bounds whose slack for an edge of type jjj is 2(δj−δi)2(\delta_j-\delta_i)2(δj​−δi​), and this slack does not shrink as the scales advance. Converting it into a factor 1+O(ϵ′)1+O(\epsilon')1+O(ϵ′) requires a lower bound on the weight of every edge that ever became eligible, which in turn depends on the free vertices' duals following an exact schedule across scales.

For Definition 3.10 the obvious argument breaks down: an edge that is ignored after scale scale(e)+γ\mathrm{scale}(e)+\gammascale(e)+γ may violate near domination and near tightness by an amount that grows with every later dual adjustment. The claim is that the accumulated violation stays within an O(ϵ′)O(\epsilon')O(ϵ′) fraction of wi(e)w_i(e)wi​(e), and establishing this requires tracking every adjustment that can reach an ignored edge.

On the combinatorial side, the Augmentation and Blossom Shrinking steps work in the contracted graph G/ΩG/\OmegaG/Ω. Their correctness uses the classical facts that augmenting paths lift through full blossoms and that blossoms stay full after augmentation (Lemma 2.1), which have to be formalized from scratch.

Formalization scope

Graphs are SimpleGraph V on a Fintype V with decidable equality; edges are Sym2 V; matchings are Finset (Sym2 V) with pairwise vertex-disjoint edges of GGG; weights are w:Sym2 V→Nw:\mathrm{Sym2}\,V\to\mathbb Nw:Sym2V→N with 1≤w(e)≤2L1\le w(e)\le 2^L1≤w(e)≤2L on edges. Duals, δi\delta_iδi​ and wiw_iwi​ are real numbers. zzz is a function on all finite vertex sets and yzyzyz sums it over the odd sets that contain the edge, as on the page. N=2LN=2^LN=2L and ϵ′=2−g\epsilon'=2^{-g}ϵ′=2−g, g≥2g\ge2g≥2, are given through their exponents. scale(e)\mathrm{scale}(e)scale(e) uses the convention μ−1=+∞\mu_{-1}=+\inftyμ−1​=+∞. The paper's standing assumption N≤n2N\le n^2N≤n2 is used only for running time and is omitted.

The algorithm is a nondeterministic relation. A state holds MMM, Ω\OmegaΩ with its blossom edge sets, yyy, zzz, a ghost record of the scale in which each edge last entered M∪⋃B∈ΩEBM\cup\bigcup_{B\in\Omega}E_BM∪⋃B∈Ω​EB​, and the common free-vertex dual that drives the loop test. The maximal sets of augmenting paths and of new blossoms and the lifts of paths through blossoms are choices. Invariants are stated for states reachable by a run, and the goal asserts both that a terminating run exists and that every terminating run returns a (1−ϵ)(1-\epsilon)(1−ϵ)-MWM.

The running times O(mϵ−1log⁡N)O(m\epsilon^{-1}\log N)O(mϵ−1logN) of Theorem 3.8 and O(mϵ−1log⁡ϵ−1)O(m\epsilon^{-1}\log\epsilon^{-1})O(mϵ−1logϵ−1) of Theorem 3.12 are not formalized: the paper fixes no cost model, and its bounds rely on a modified depth-first search and on word-RAM table lookups. The explicit constants ϵ′≤ϵ/5\epsilon'\le\epsilon/5ϵ′≤ϵ/5 (Theorem 3.8) and ϵ′≤ϵ/7\epsilon'\le\epsilon/7ϵ′≤ϵ/7 (Theorem 3.12) are the ones the proofs supply.

The following trivializing formalizations are ruled out: a "matching" that may contain non-edges or repeated edges; a goal about a state only assumed to satisfy Property 3.1 rather than reached by the algorithm; a run relation with no terminating run, which the existence conjunct excludes; eligibility or blossoms chosen freely instead of by the page's rules; and comparison only against matchings of the contracted graph instead of all matchings of GGG.

Welcome contributions include a Lean treatment of blossoms and their contraction (Lemma 2.1, which is not a milestone here), the lift of augmenting paths, Lemmas 3.3 and 3.4 as auxiliary results, and proofs of the milestones in the order listed.

Selected references

  • R. Duan and S. Pettie, Linear-Time Approximation for Maximum Weight Matching, Journal of the ACM 61(1), Article 1, 2014. https://doi.org/10.1145/2529989
  • J. Edmonds, Maximum matching and a polyhedron with 0,1-vertices, Journal of Research of the National Bureau of Standards 69B, 125–130, 1965. https://doi.org/10.6028/jres.069B.013
  • H. N. Gabow and R. E. Tarjan, Faster scaling algorithms for general graph-matching problems, Journal of the ACM 38(4), 815–853, 1991. https://doi.org/10.1145/115234.115366
  • R. Preis, Linear time 1/2-approximation algorithm for maximum weighted matching in general graphs, STACS 1999, LNCS 1563, 259–269 (cited from the bibliography of Duan and Pettie 2014).
  • D. E. D. Vinkemeier and S. Hougardy, A linear-time approximation algorithm for weighted matchings in graphs, ACM Transactions on Algorithms 1(1), 107–122, 2005 (cited from the bibliography of Duan and Pettie 2014).
  • S. Pettie and P. Sanders, A simpler linear time 2/3 − ϵ approximation to maximum weight matching, Information Processing Letters 91(6), 271–276, 2004 (cited from the bibliography of Duan and Pettie 2014).
12 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Theoretical Improvements in Algorithmic Efficiency for Network Flow Problems 1: The Augmentation Bound for Shortest Augmenting PathsResearch Paper

Why the number of augmentations matters

The maximum flow problem asks how much of a commodity can be sent from a source to a sink through a network whose arcs have capacities. It is a basic model in operations research, underlies bipartite matching, transportation and scheduling problems, and is a standard subroutine inside larger combinatorial algorithms.

The classical method for it is the labeling method of Ford and Fulkerson: starting from some flow, repeatedly find an augmenting path from source to sink along which flow can be increased, push as much as the path allows, and stop when no such path exists. When all capacities are integers, each augmentation raises the flow value by at least one, so the method terminates, but the number of augmentations can be as large as the final flow value, which is exponential in the size of the input. Edmonds and Karp give a four-node example in which the method alternates between two paths and needs 2M2M2M augmentations for capacities MMM (Edmonds–Karp 1972, p. 250). With irrational capacities, Ford and Fulkerson showed that the method need not terminate at all and may converge to a non-maximum flow.

Timeline.

  • 1956 — Ford and Fulkerson introduce the labeling method and the max-flow min-cut theorem (Ford–Fulkerson 1956).
  • 1962 — Flows in Networks records the non-termination example for incommensurable capacities.
  • 1970 — Dinic independently obtains a polynomial bound using layered (shortest-path) networks (Dinic 1970).
  • 1972 — Edmonds and Karp prove that choosing each augmenting path with fewest arcs bounds the number of augmentations by 14(n3−n)\tfrac14(n^3-n)41​(n3−n), for arbitrary real capacities (Edmonds–Karp 1972, Theorem 1).

Setting

A network NNN consists of a finite set of nnn nodes, a source sss and a sink t≠st \ne st=s, and a set of arcs, which are ordered pairs (u,v)(u,v)(u,v) with u≠vu \ne vu=v; there is at most one arc from a node to another. One arc is the special return arc (t,s)(t,s)(t,s), and AAA denotes the set of all other arcs. Each (u,v)∈A(u,v) \in A(u,v)∈A has a real capacity c(u,v)>0c(u,v) > 0c(u,v)>0.

A flow is a nonnegative function fff on the arcs of NNN with f(u,v)≤c(u,v)f(u,v) \le c(u,v)f(u,v)≤c(u,v) on AAA and with inflow equal to outflow at every node, the return arc included. The value f(t,s)f(t,s)f(t,s) is the amount sent from sss to ttt; a maximum flow maximizes it.

Given a flow fff, the residual network NfN^fNf has the same nodes, and (u,v)(u,v)(u,v) is an arc of NfN^fNf when (u,v)∈A(u,v) \in A(u,v)∈A with c(u,v)−f(u,v)>0c(u,v) - f(u,v) > 0c(u,v)−f(u,v)>0, or (v,u)∈A(v,u) \in A(v,u)∈A with f(v,u)>0f(v,u) > 0f(v,u)>0. An augmenting path is a sequence of distinct nodes s=u1,…,up=ts = u_1, \dots, u_p = ts=u1​,…,up​=t whose consecutive pairs are arcs of NfN^fNf. Each step carries a number εi>0\varepsilon_i > 0εi​>0 (residual capacity forward, flow backward, or their sum when both (ui,ui+1)(u_i,u_{i+1})(ui​,ui+1​) and (ui+1,ui)(u_{i+1},u_i)(ui+1​,ui​) lie in AAA); ε=min⁡iεi\varepsilon = \min_i \varepsilon_iε=mini​εi​, and a step with εi=ε\varepsilon_i = \varepsilonεi​=ε is a bottleneck arc. Augmenting raises f(t,s)f(t,s)f(t,s) by ε\varepsilonε and shifts the flow on the path's arcs accordingly, using the paper's own rule for opposite arcs, which never exceeds a capacity.

A run with fewest-arc augmentations is a sequence f0,…,fKf^0, \dots, f^Kf0,…,fK where f0f^0f0 is a flow and each fk+1f^{k+1}fk+1 arises from fkf^kfk by augmenting along a path PkP^kPk with fewest arcs. The distance δk(u,v)\delta^k(u,v)δk(u,v) is the least number of arcs of a directed path from uuu to vvv in Nk=NfkN^k = N^{f^k}Nk=Nfk, or ∞\infty∞.

Formalization targets

Goal — Theorem 1

For every network on nnn nodes and every run of length KKK with fewest-arc augmentations,

K≤14 (n3−n),K \le \tfrac14\,(n^3 - n),K≤41​(n3−n),

and if no augmenting path exists relative to fKf^KfK, then fKf^KfK is a maximum flow. The capacities are arbitrary positive reals, and the initial flow is arbitrary.

Milestones

  1. §1.1: augmentation yields a flow with value f(t,s)+εf(t,s) + \varepsilonf(t,s)+ε, ε>0\varepsilon > 0ε>0.
  2. §1.1: a flow is maximum if and only if it admits no augmenting path.
  3. Proposition 1: a bottleneck arc of PkP^kPk is not an arc of Nk+1N^{k+1}Nk+1.
  4. Proposition 2: (u,v)∈Nk+1(u,v) \in N^{k+1}(u,v)∈Nk+1 implies (u,v)∈Nk(u,v) \in N^k(u,v)∈Nk or (v,u)∈Pk(v,u) \in P^k(v,u)∈Pk.
  5. Lemma 1: if (u,v)(u,v)(u,v) is a bottleneck arc at steps k<mk < mk<m, then (v,u)∈Pl(v,u) \in P^l(v,u)∈Pl for some k<l<mk < l < mk<l<m.
  6. Proposition 3: δk(s,u)≤δk+1(s,u)\delta^k(s,u) \le \delta^{k+1}(s,u)δk(s,u)≤δk+1(s,u) and δk(u,t)≤δk+1(u,t)\delta^k(u,t) \le \delta^{k+1}(u,t)δk(u,t)≤δk+1(u,t).
  7. Lemma 2: if k<lk < lk<l, (u,v)∈Pk(u,v) \in P^k(u,v)∈Pk and (v,u)∈Pl(v,u) \in P^l(v,u)∈Pl, then δl(s,t)≥δk(s,t)+2\delta^l(s,t) \ge \delta^k(s,t) + 2δl(s,t)≥δk(s,t)+2.
  8. Proof of Theorem 1: each pair {u,v}\{u,v\}{u,v} occurs as a bottleneck at most 12(n+1)\tfrac12(n+1)21​(n+1) times.

Significance

The theorem shows that one simple rule for choosing augmenting paths, which a breadth-first labeling process implements, makes the number of augmentations depend on the number of nodes alone, independent of the capacities and of their arithmetic nature. It removes both pathologies of the unrestricted labeling method at once: exponential running time for integer capacities, and non-termination for irrational ones. Together with Dinic's work it is the starting point of the theory of strongly polynomial network-flow algorithms, and the distance-monotonicity argument (Proposition 3, Lemma 2) reappears in blocking-flow and push-relabel analyses.

The result is classical and fully proved in the paper. What this mission adds is a machine-checked version of the complete argument in the paper's own model: return arc, arbitrary real capacities, and the paper's augmentation rule for pairs of opposite arcs, which differs from Ford and Fulkerson's (footnote 1, p. 249). The platform has a max-flow min-cut theorem and an integer termination theorem for the Ford–Fulkerson method in the Bertsimas–Tsitsiklis model (Introduction to Linear Optimization, missions IX–X), but no bound on the number of augmentations. No machine-checked proof of Theorem 1 in Lean is known to exist.

Difficulty

The obvious argument, "each augmentation saturates a bottleneck arc, which then disappears", fails because a saturated arc can reappear after later augmentations push flow back along its reverse. Counting augmentations therefore requires control over how often the same pair of nodes can supply a bottleneck again, and no property of a single augmentation provides it; the bound has to come from an invariant of the whole run that holds for real capacities, where no integrality argument is available. A second trap is that the converse direction of milestone 2 (no augmenting path implies maximality) is a max-flow min-cut statement that the paper cites without proof; it must be proved in the paper's model with the return arc.

Formalization scope

Nodes form a finite type V with decidable equality and nnn = Fintype.card V counts all nodes, sss and ttt included. The arc set A is a Finset (V × V) with no loops and without (t,s)(t,s)(t,s); capacities are real and positive on A. A flow is a function V → V → ℝ whose values off the arcs are ignored. A maximum flow is the predicate "f(t,s)≥g(t,s)f(t,s) \ge g(t,s)f(t,s)≥g(t,s) for every flow ggg", never a real supremum. Paths are lists of distinct nodes with every consecutive pair a residual arc, so the return arc is never on a path. Distances take values in ℕ∞. A run is a pair of ℕ-indexed sequences constrained on indices up to KKK. The explicit constants are stated as printed: 4K≤n3−n4K \le n^3 - n4K≤n3−n in ℕ (the truncated subtraction is harmless since n≤n3n \le n^3n≤n3) and 2 b(u,v)≤n+12\,b(u,v) \le n + 12b(u,v)≤n+1 for the per-pair count.

Case (b) of the paper's definition of augmenting paths is misprinted (its hypothesis repeats that of Case (c)); the formalization uses the reading (ui,ui+1)∉A(u_i,u_{i+1}) \notin A(ui​,ui+1​)∈/A, (ui+1,ui)∈A(u_{i+1},u_i) \in A(ui+1​,ui​)∈A, which the paper's own description of NfN^fNf on p. 251 confirms.

A trivializing formalization is ruled out: a run predicate that no sequence satisfies (for instance, one that requires paths through the return arc, or computes ε=0\varepsilon = 0ε=0) would make the bound vacuous; the step predicate here is satisfiable, and a concrete four-node run has been checked. Replacing the paper's augmentation rule by "increase the forward arc by ε\varepsilonε" would also change the theorem, because that rule can violate capacities.

A complete development needs basic facts on simple paths in finite digraphs, shortest paths and their subpaths, and a max-flow min-cut theorem in the paper's model. These are reusable well beyond this mission, as are the network, residual-network and augmentation definitions. Contributions proving any milestone independently are welcome.

Selected references

  • J. Edmonds, R. M. Karp, Theoretical Improvements in Algorithmic Efficiency for Network Flow Problems, Journal of the ACM 19(2):248–264, 1972. https://doi.org/10.1145/321694.321699
  • L. R. Ford, D. R. Fulkerson, Maximal Flow Through a Network, Canadian Journal of Mathematics 8:399–404, 1956. https://doi.org/10.4153/CJM-1956-045-5
  • L. R. Ford, D. R. Fulkerson, Flows in Networks, Princeton University Press, 1962. https://doi.org/10.1515/9781400875184
  • E. A. Dinic, Algorithm for Solution of a Problem of Maximum Flow in a Network with Power Estimation, Soviet Mathematics Doklady 11:1277–1280, 1970. https://www.cs.bgu.ac.il/~dinitz/D70.pdf
  • D. Bertsimas, J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997, Chapter 7 (network flow problems; formalized on the platform in missions IX–X).
24 thms2 active usersReviewed
CombinatoricsTheoretical Computer Science·Captain: mikedeng1

Sorting in c log n Parallel Steps: Sorting Networks of Logarithmic DepthResearch Paper

Motivation

A sorting network is a sorting procedure whose sequence of comparisons is fixed in advance, independently of the data. Its depth, the number of rounds of simultaneous comparisons on disjoint pairs, is the parallel running time. Sorting networks are used in parallel and hardware sorting, in switching networks, and in cryptography, where a data-independent (oblivious) sequence of operations is required. How small the depth can be as a function of the number of inputs nnn is a basic question of parallel computation.

Timeline:

  • 1968. Batcher's odd-even merge sort and bitonic sort give networks of depth O((log⁡n)2)O((\log n)^2)O((logn)2) and size O(n(log⁡n)2)O(n(\log n)^2)O(n(logn)2) (K. E. Batcher, Sorting networks and their applications, AFIPS Spring Joint Computer Conference, 1968). For nnn a power of two they remain the best explicit networks in practice.
  • 1973. Knuth's The Art of Computer Programming, Vol. 3, §5.3.4, surveys sorting networks. A simple counting argument gives the lower bound: every sorting network has depth at least log⁡2n\log_2 nlog2​n, since each output depends on at most 2depth2^{\text{depth}}2depth inputs.
  • 1983. Ajtai, Komlós and Szemerédi construct networks of depth O(log⁡n)O(\log n)O(logn) and size O(nlog⁡n)O(n\log n)O(nlogn) (Combinatorica 3 (1983) 1–19, doi:10.1007/BF02579338), matching the lower bound up to a constant. The constant is not computed in the paper and is known to be very large.
  • 1990. Paterson simplifies the construction and gives the first explicit, still very large, depth constant (M. S. Paterson, Improved sorting networks with O(log N) depth, Algorithmica 5 (1990) 75–92, doi:10.1007/BF01840378).
  • 2014. Goodrich gives Zig-zag sort, a simpler deterministic data-oblivious sorting algorithm with O(nlog⁡n)O(n\log n)O(nlogn) comparisons that avoids the AKS machinery but is not of logarithmic depth (arXiv:1403.2777).

Setting

There are nnn registers R1,…,RnR_1,\dots,R_nR1​,…,Rn​ holding elements of a linearly ordered set. An elementary step (a comparator) (i,j)(i,j)(i,j) with i≠ji\neq ji=j compares the contents of RiR_iRi​ and RjR_jRj​ and exchanges them if the content of RiR_iRi​ is larger. Afterwards RiR_iRi​ holds the minimum and RjR_jRj​ the maximum of the two, and every other register is unchanged. A parallel step is a set of comparators in which no register occurs twice, so it has at most n/2n/2n/2 comparators. A comparator network NNN is a finite sequence of parallel steps, fixed before the input is seen. Its depth depth⁡(N)\operatorname{depth}(N)depth(N) is the number of parallel steps and its size size⁡(N)\operatorname{size}(N)size(N) the total number of comparators. NNN sorts if for every input x=(x1,…,xn)x=(x_1,\dots,x_n)x=(x1​,…,xn​) the output N(x)N(x)N(x) satisfies N(x)1≤⋯≤N(x)nN(x)_1\le\cdots\le N(x)_nN(x)1​≤⋯≤N(x)n​.

The construction runs on the tree TTT of finite 000-111 sequences, whose levels are ordered lexicographically. A chain on level iii assigns to every node of that level a set of registers, with the sets pairwise disjoint and of a common size N(C)N(C)N(C). A ⟨k, ε⟩ expander on ⟨A, B⟩, for disjoint register sets AAA and BBB, is a bipartite graph between AAA and BBB of maximum degree kkk in which every nonempty X⊆AX\subseteq AX⊆A has more than (1−ε)ε−1min⁡{∣X∣,ε∣B∣}(1-\varepsilon)\varepsilon^{-1}\min\{|X|,\varepsilon|B|\}(1−ε)ε−1min{∣X∣,ε∣B∣} neighbours, and symmetrically for BBB. The Lean development uses the names ComparatorNetwork, compareExchange, IsChain, chainN, IsExpander, IsLowerSection for these objects.

Formalization targets

Goal: the AKS theorem (Abstract and §1, p. 1)

∃ c>0  ∀n≥2  ∃N:N sorts,depth⁡(N)≤clog⁡2n,size⁡(N)≤c nlog⁡2n.\exists\, c>0\ \ \forall n\ge 2\ \ \exists N:\quad N \text{ sorts},\qquad \operatorname{depth}(N)\le c\log_2 n,\qquad \operatorname{size}(N)\le c\,n\log_2 n .∃c>0  ∀n≥2  ∃N:N sorts,depth(N)≤clog2​n,size(N)≤cnlog2​n.

The constant is absolute and is not fixed. Any explicit value would be invalidated by the next improvement, and the paper gives none.

Milestones (the paper's numbered lemmas that hold as stated)

  • Lemma 3 (p. 6): for 0<ε<10<\varepsilon<10<ε<1 and c≥1c\ge1c≥1 there is k(ε,c)k(\varepsilon,c)k(ε,c) such that every pair of disjoint sets with 1/c≤∣A∣/∣B∣≤c1/c\le|A|/|B|\le c1/c≤∣A∣/∣B∣≤c carries a ⟨k,ε⟩\langle k,\varepsilon\rangle⟨k,ε⟩ expander.
  • Lemma 4 (p. 7): performing every comparator of such an expander once, in any order, from AAA to BBB leaves all but an ε\varepsilonε-fraction of any lower section SSS with ∣S∣≤∣A∣|S|\le|A|∣S∣≤∣A∣ in AAA, and symmetrically for upper sections in BBB:
∣S∖Cont(A)∣≤ε∣S∣.|S\setminus\mathrm{Cont}(A)|\le\varepsilon|S| .∣S∖Cont(A)∣≤ε∣S∣.
  • Lemma 1 (pp. 3–4): the splitting V(C,k)V(C,k)V(C,k) of a chain, which moves one register of each leaf set up the tree, produces chains with properties (1.1)–(1.5).
  • Lemma 2 (p. 4): chains W(C,k)W(C,k)W(C,k) with ak−1≤N(W(C,k))≤aka_k-1\le N(W(C,k))\le a_kak​−1≤N(W(C,k))≤ak​ exist under conditions (2a), (2.b).
  • Lemma 12(a) (p. 14): a violation of the order relation RGβR^\beta_GRGβ​ between two nodes of a level is witnessed by two consecutive nodes.

Significance

The result. The AKS theorem settles the asymptotic depth of sorting networks at Θ(log⁡n)\Theta(\log n)Θ(logn) and their size at Θ(nlog⁡n)\Theta(n\log n)Θ(nlogn). It gives an O(log⁡n)O(\log n)O(logn)-time sorting algorithm with nnn processors that performs only data-independent comparisons. It is the standard reference point for oblivious sorting in parallel algorithms, circuit complexity (sorting is in NC1\mathsf{NC}^1NC1 via comparators) and oblivious RAM constructions. Lemma 4, the ε-halver property of expander comparisons, is the component that later constructions (Paterson) reuse.

Formalizing it. The theorem has been proved since 1983. No Lean proof of the AKS theorem is known. Mathlib has no expander graphs in the ⟨k, ε⟩ sense and no sorting networks. The mission asks for a formal proof of the headline theorem by any route (the AKS construction or Paterson's variant), and for formal proofs of the paper's verified lemmas as reusable components. The expander lemma needs either an explicit family (Margulis; Gabber–Galil) or a probabilistic existence argument, both substantial on their own.

Difficulty

Every elementary argument stalls at depth O((log⁡n)2)O((\log n)^2)O((logn)2): recursive merging needs log⁡n\log nlogn merge rounds, and merging two sorted lists by a comparator network needs depth Ω(log⁡n)\Omega(\log n)Ω(logn). A depth of O(log⁡n)O(\log n)O(logn) therefore cannot come from exact merging. It must come from constant-depth approximate operations (ε-halvers, which require bounded-degree expanders) combined with a mechanism that corrects the errors they leave. In the paper this mechanism is a movement of registers up and down a binary tree, controlled by a family of constants chosen in a fixed order ("ε1≪q2≪1−g≪q1≪1/c1≪1\varepsilon_1\ll q_2\ll1-g\ll q_1\ll 1/c_1\ll1ε1​≪q2​≪1−g≪q1​≪1/c1​≪1", p. 2). The accounting that shows the misplaced elements decay geometrically is the hard part. Several intermediate lemmas of the paper are false as printed, so the paper's text is not a checklist to transcribe.

Formalization scope

Conventions committed to in Lean:

  • Registers are Fin n, and contents lie in an arbitrary linearly ordered type. A network is a List of layers, each a List (Fin n × Fin n) of comparators with distinct endpoints, and no register occurs twice in a layer. A comparator (i,j)(i,j)(i,j) puts the minimum into iii, and both directions i<ji<ji<j and i>ji>ji>j are allowed. Sorts means the output is monotone for every linearly ordered type and every input, not only for permutations.
  • log⁡2n\log_2 nlog2​n is Real.logb 2 n, and the goal is stated for n≥2n\ge2n≥2. The constant ccc is quantified before nnn.
  • Tree levels are Fin (2^i), with numeric order equal to lexicographic order. A chain is a Fin (2^i) → Finset R.
  • Definition 2.2 of the paper, read literally, requires ∣Γ∅∣>0|\Gamma_\emptyset|>0∣Γ∅​∣>0, which fails, so no graph would be an expander. The expansion inequalities are imposed on nonempty sets only, and the strict inequality is kept.

Trivializing formalizations are ruled out. The goal is not "for every nnn there is a network of depth O(log⁡n)O(\log n)O(logn)" with the constant chosen after nnn, which is true for trivial reasons. Layers without the disjointness condition would let a single layer contain a whole insertion sort. A bound on the number of comparisons alone, with unbounded depth, is a different and much older result; the goal states both the depth and the size bound.

The mission states the AKS theorem and the paper's lemmas that are correct as stated. It does not formalize the AKS algorithm itself (SαS^\alphaSα, PαP^\alphaPα, the operations CH1–CH4, IMP) or its intermediate Lemmas 5–11 and 13–15. Those depend on unspecified constants constrained only by "sufficiently small" chains, and Lemmas 5, 10 and 12(b) are false as printed. A solver may of course define the algorithm, with pinned constants, as part of a proof.

Contributions welcome: a library of comparator networks (composition, the 0-1 principle, depth of Batcher's networks), existence of bounded-degree bipartite expanders, the ε-halver lemma, and any complete proof of the goal. The network and expander definitions are independent of this paper and reusable.

Selected references

  • M. Ajtai, J. Komlós, E. Szemerédi, Sorting in c log n parallel steps, Combinatorica 3(1) (1983) 1–19. doi:10.1007/BF02579338
  • K. E. Batcher, Sorting networks and their applications, Proc. AFIPS Spring Joint Computer Conference 32 (1968) 307–314. doi:10.1145/1468075.1468121
  • D. E. Knuth, The Art of Computer Programming, Vol. 3: Sorting and Searching, Addison-Wesley, 1973, §5.3.4.
  • G. A. Margulis, Explicit constructions of concentrators, Problems of Information Transmission 9 (1973) 325–332.
  • O. Gabber, Z. Galil, Explicit constructions of linear-sized superconcentrators, J. Computer and System Sciences 22(3) (1981) 407–420. doi:10.1016/0022-0000(81)90040-4
  • M. S. Paterson, Improved sorting networks with O(log N) depth, Algorithmica 5 (1990) 75–92. doi:10.1007/BF01840378
  • M. T. Goodrich, Zig-zag sort: a simple deterministic data-oblivious sorting algorithm running in O(n log n) time, STOC 2014. arXiv:1403.2777
13 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization+1·Captain: mikedeng1

An Analysis of Several Heuristics for the Traveling Salesman Problem II: Every Insertion Method Is Within ⌈lg n⌉ + 1 of the Optimal TourResearch Paper

Motivation

The traveling salesman problem asks for a shortest closed route visiting every node of a weighted complete graph exactly once. It is NP-hard, so practitioners use fast heuristics, and the basic question about a heuristic is how far from optimal its tour can be. Rosenkrantz, Stearns and Lewis (SIAM J. Comput. 6(3), 1977) gave the first systematic worst-case analysis of the simple constructive heuristics under the triangle inequality: nearest neighbor, the family of insertion methods, and several variants.

Insertion methods build a tour by growing it one node at a time. They are among the most widely used construction heuristics in practice and in textbooks, and they differ only in the rule that chooses which node to insert next: the nearest one, the cheapest one, the farthest one, a random one, or any other. This mission formalizes the paper's result that holds for the whole family at once, regardless of that rule: every insertion method produces a tour at most ⌈lg⁡n⌉+1\lceil \lg n\rceil + 1⌈lgn⌉+1 times longer than an optimal one (Theorem 3, p. 571).

Timeline. 1977: Rosenkrantz, Stearns and Lewis prove ⌈lg⁡n⌉+1\lceil\lg n\rceil+1⌈lgn⌉+1 for every insertion method (Theorem 3), 12(⌈lg⁡n⌉+1)\tfrac12(\lceil\lg n\rceil+1)21​(⌈lgn⌉+1) for nearest neighbor (Theorem 1), both from a shared counting lemma (Lemma 1), and the constant 222 for nearest and cheapest insertion (Theorem 4). 1994: Bafna, Kalyanasundaram and Pruhs (Theoretical Computer Science 125, 1994) give instances on which some insertion methods reach ratio Ω(log⁡n/log⁡log⁡n)\Omega(\log n/\log\log n)Ω(logn/loglogn), so the logarithmic growth cannot be replaced by a constant for the family as a whole.

Setting

A traveling salesman graph with nnn nodes consists of a finite node set NNN with ∣N∣=n|N|=n∣N∣=n and a distance d:N×N→Rd:N\times N\to\mathbb Rd:N×N→R with d(i,j)=d(j,i)d(i,j)=d(j,i)d(i,j)=d(j,i), d(i,j)≥0d(i,j)\ge 0d(i,j)≥0 and d(i,j)+d(j,k)≥d(i,k)d(i,j)+d(j,k)\ge d(i,k)d(i,j)+d(j,k)≥d(i,k) for all nodes (the triangle inequality). A tour visits every node once and returns to its start; its length is the sum of its edge lengths, and OPTIMAL is the least length of a tour.

A subtour is a tour on a subset of the nodes; a single node is a tour without edges. Given a subtour TTT and a node k∉Tk\notin Tk∈/T, TOUR(T,k)(T,k)(T,k) is obtained by choosing an edge (x,y)(x,y)(x,y) of TTT minimizing

d(x,k)+d(k,y)−d(x,y)d(x,k)+d(k,y)-d(x,y)d(x,k)+d(k,y)−d(x,y)

and replacing it by the edges (x,k)(x,k)(x,k) and (k,y)(k,y)(k,y); if TTT is a single node iii, TOUR(T,k)(T,k)(T,k) is the two-node tour (i,k),(k,i)(i,k),(k,i)(i,k),(k,i). COST(T,k)(T,k)(T,k) is the length of TOUR(T,k)(T,k)(T,k) minus the length of TTT.

An insertion method constructs subtours T1,…,TnT_1,\dots,T_nT1​,…,Tn​ with T1={a0}T_1=\{a_0\}T1​={a0​} a single node and Ti+1=TOUR(Ti,ai)T_{i+1}=\mathrm{TOUR}(T_i,a_i)Ti+1​=TOUR(Ti​,ai​) for some node ai∉Tia_i\notin T_iai​∈/Ti​, 1≤i<n1\le i<n1≤i<n. The final tour TnT_nTn​ is the approximation, and INSERT denotes its length. No rule for choosing the aia_iai​ is fixed, and ties between minimizing edges are broken arbitrarily.

Write lg⁡\lglg for the logarithm to base 2 and ⌈x⌉\lceil x\rceil⌈x⌉ for the least integer ≥x\ge x≥x.

Formalization targets

Goal: Theorem 3

For every traveling salesman graph with n≥1n\ge 1n≥1 nodes and every run of every insertion method,

INSERT ≤ (⌈lg⁡n⌉+1)⋅OPTIMAL.\mathrm{INSERT}\ \le\ \bigl(\lceil\lg n\rceil+1\bigr)\cdot\mathrm{OPTIMAL}.INSERT ≤ (⌈lgn⌉+1)⋅OPTIMAL.

Milestones

  1. (2.2), shortcutting: visiting a subset of the nodes in the order of a tour gives a tour of the subset that is no longer.
  2. (2.1): if the numbers l1≥⋯≥lnl_1\ge\dots\ge l_nl1​≥⋯≥ln​ satisfy d(p,q)≥min⁡(lp,lq)d(p,q)\ge\min(l_p,l_q)d(p,q)≥min(lp​,lq​) for distinct p,qp,qp,q, then OPTIMAL≥2∑i=k+1min⁡(2k,n)li\mathrm{OPTIMAL}\ge 2\sum_{i=k+1}^{\min(2k,n)} l_iOPTIMAL≥2∑i=k+1min(2k,n)​li​ for 1≤k≤n1\le k\le n1≤k≤n.
  3. Lemma 1: if d(p,q)≥min⁡(lp,lq)d(p,q)\ge\min(l_p,l_q)d(p,q)≥min(lp​,lq​) for distinct nodes and lp≤12OPTIMALl_p\le\frac12\mathrm{OPTIMAL}lp​≤21​OPTIMAL for all ppp, then
∑plp≤12(⌈lg⁡n⌉+1)OPTIMAL.\sum_p l_p\le\tfrac12\bigl(\lceil\lg n\rceil+1\bigr)\mathrm{OPTIMAL}.p∑​lp​≤21​(⌈lgn⌉+1)OPTIMAL.
  1. Lemma 2: COST(T,k)≤2 d(k,j)\mathrm{COST}(T,k)\le 2\,d(k,j)COST(T,k)≤2d(k,j) for every node jjj of TTT.
  2. (3.7): INSERT=∑i=1n−1COST(Ti,ai)\mathrm{INSERT}=\sum_{i=1}^{n-1}\mathrm{COST}(T_i,a_i)INSERT=∑i=1n−1​COST(Ti​,ai​).
  3. (3.10): COST(Ti,ai)≤2 d(ai,aj)\mathrm{COST}(T_i,a_i)\le 2\,d(a_i,a_j)COST(Ti​,ai​)≤2d(ai​,aj​) whenever j<ij<ij<i.
  4. (3.12): COST(Ti,ai)≤OPTIMAL\mathrm{COST}(T_i,a_i)\le\mathrm{OPTIMAL}COST(Ti​,ai​)≤OPTIMAL for 1≤i<n1\le i<n1≤i<n.

Significance

The result. Theorem 3 is a guarantee for an entire class of algorithms rather than for one. Any rule for choosing the next node, including rules designed for speed or for empirical quality, inherits a worst-case ratio of ⌈lg⁡n⌉+1\lceil\lg n\rceil+1⌈lgn⌉+1 from the insertion step alone. The rule matters only for improving on that: nearest and cheapest insertion achieve the constant 2(1−1/n)2(1-1/n)2(1−1/n) (Theorem 4 and its corollary, the subject of the third mission of this series), while the logarithmic bound remains the best general statement for other rules, such as farthest or arbitrary insertion. Lemma 1 is reusable on its own: it converts "every node carries a charge bounded by half the optimum and by its distance to other nodes" into a logarithmic bound, and the same lemma yields the nearest neighbor bound of Theorem 1.

Formalizing it. The theorem has been proved since 1977; the work here is a machine-checked proof of the known argument together with a reusable library for subtours, insertion and insertion costs. The companion nearest neighbor bound (Theorem 1) is already on the platform as SupplyChainTheory.nearest_neighbor_bound (proved), and nearest insertion with constant 2 as SupplyChainTheory.nearest_insertion_bound; neither covers arbitrary insertion methods or states Lemma 1 separately.

Difficulty

The per-step facts are local: each insertion is cheap relative to a node already present (Lemma 2) and relative to OPTIMAL (3.12). The obvious way to combine them, adding up n−1n-1n−1 costs each at most OPTIMAL, gives only the ratio n−1n-1n−1. The logarithm comes from a global counting argument over all nodes simultaneously (Lemma 1), in which OPTIMAL is compared with tours on nested subsets of nodes of doubling size, and the per-node charges must be matched against the edges of those tours. Formally, the delicate parts are the bookkeeping of subtours as they grow (that every earlier node lies on the current subtour, and that the insertion cost equals the length increase), the shortcutting of a tour to an arbitrary subset, and the ceiling-of-logarithm arithmetic.

Formalization scope

Nodes are Fin n; a tour of all nodes is a permutation τ : Equiv.Perm (Fin n), and OPTIMAL is the minimum of the tour length over the finite, nonempty set of permutations. Subtours are duplicate-free lists of nodes, with closed length d(x0,x1)+⋯+d(xm−1,x0)d(x_0,x_1)+\dots+d(x_{m-1},x_0)d(x0​,x1​)+⋯+d(xm−1​,x0​). TOUR(T,k)(T,k)(T,k) is encoded as inserting kkk at a list position whose resulting length is minimal among all positions; inserting at a position removes exactly one edge of TTT and raises the length by exactly d(x,k)+d(k,y)−d(x,y)d(x,k)+d(k,y)-d(x,y)d(x,k)+d(k,y)−d(x,y), so this is the paper's rule, with every tie-breaking allowed. COST is the minimum length increase over positions. The paper's 1-based subtour index is kept (T1=[a0]T_1=[a_0]T1​=[a0​], TnT_nTn​ final). ⌈lg⁡n⌉\lceil\lg n\rceil⌈lgn⌉ is Nat.clog 2 n. All quantities are real.

Conventions and deviations, each disclosed in the item statements:

  • The distance satisfies d(i,i)=0d(i,i)=0d(i,i)=0, a normalization not in the paper; a loop never enters any length.
  • Ratios are multiplied out (INSERT≤c⋅OPTIMAL\mathrm{INSERT}\le c\cdot\mathrm{OPTIMAL}INSERT≤c⋅OPTIMAL), so the paper's exclusion of the identically zero distance (1.1) is not needed.
  • Condition a) of Lemma 1 is required for distinct nodes only. The page says "for all nodes ppp and qqq", which for p=qp=qp=q would force every lp≤0l_p\le 0lp​≤0 and make the lemma inapplicable in the proof of Theorem 3; the proof uses the condition only on edges of a tour.
  • (2.2) is stated for every subset of the nodes and every tour, which is what the shortcut argument shows; the paper applies it to one specific subset and an optimal tour.
  • (2.1) uses 0-based node labels, so its range k+1,…,min⁡(2k,n)k+1,\dots,\min(2k,n)k+1,…,min(2k,n) becomes k,…,min⁡(2k,n)−1k,\dots,\min(2k,n)-1k,…,min(2k,n)−1.

The goal quantifies over every run: any choice of the inserted nodes aia_iai​ and any minimizing insertion position. Adding a selection rule (nearest, cheapest) or fixing a tie-breaking would state a weaker, different theorem; restricting to instances with OPTIMAL =0=0=0 or to a fixed small nnn would trivialize it.

Reusable beyond this mission: the subtour and insertion library (closed length of a list, TOUR, COST, insertion runs) and Lemma 1, which also yields Theorem 1. Contributions welcome: proofs of the milestones, general lemmas about the closed length of List.insertIdx and of filtered lists, and a proof of Theorem 1 from this mission's Lemma 1.

Selected references

  • D. J. Rosenkrantz, R. E. Stearns, P. M. Lewis II, An Analysis of Several Heuristics for the Traveling Salesman Problem, SIAM Journal on Computing 6(3):563–581, 1977. https://doi.org/10.1137/0206041
  • V. Bafna, B. Kalyanasundaram, K. Pruhs, Not all insertion methods yield constant approximate tours in the Euclidean plane, Theoretical Computer Science 125(2):345–353, 1994.
10 thms2 active usersReviewed
CombinatoricsProbabilityTheoretical Computer Science·Captain: mikedeng1

A Simple Parallel Algorithm for the Maximal Independent Set Problem II: The Round Bound of the Derandomized AlgorithmResearch Paper

Motivation

A maximal independent set (MIS) of a graph is a set of pairwise non-adjacent vertices to which no further vertex can be added. Sequentially an MIS is found greedily in linear time, but the greedy scan is inherently serial. Whether an MIS can be computed by a fast parallel algorithm was a central question of parallel complexity in the early 1980s: Karp and Wigderson gave the first NC algorithm (STOC 1984), and Luby's paper, SIAM J. Comput. 15(4):1036–1053, 1986, gave a much simpler one. MIS is a subroutine of many parallel and distributed graph algorithms (colouring, matching, symmetry breaking), and Luby's randomized algorithm remains the standard one in distributed computing.

The paper's second contribution, the subject of this mission, is a general method for removing randomness: analyse the randomized algorithm under pairwise independence only, then realize pairwise independent random variables on a sample space of polynomial size and try every sample point in parallel. The same method, often attributed jointly to Luby (1986) and to Alon, Babai and Itai (J. Algorithms 7, 1986), became a standard tool of derandomization.

Setting

Let G=(V,E)G = (V, E)G=(V,E) be a finite simple graph with n=∣V∣n = |V|n=∣V∣ vertices labelled 0,…,n−10, \dots, n-10,…,n−1. The algorithm keeps a set III (initially empty) and the current graph G′=(V′,E′)G' = (V', E')G′=(V′,E′), the subgraph of GGG induced on V′V'V′ (initially V′=VV' = VV′=V). For W⊆V′W \subseteq V'W⊆V′ the neighbourhood is N(W)={i∈V′:∃j∈W,(i,j)∈E′}N(W) = \{ i \in V' : \exists j \in W, (i,j) \in E' \}N(W)={i∈V′:∃j∈W,(i,j)∈E′}. Each execution of the loop body selects an independent set I′⊆V′I' \subseteq V'I′⊆V′, adds it to III, and deletes I′∪N(I′)I' \cup N(I')I′∪N(I′) from V′V'V′; the loop runs while V′≠∅V' \ne \emptysetV′=∅. Write d(i)d(i)d(i) for the degree of iii in G′G'G′, YkY_kYk​ for the number of edges of G′G'G′ before the kkk-th execution, and sum(i)=∑j∈adj(i)1/d(j)\mathrm{sum}(i) = \sum_{j \in \mathrm{adj}(i)} 1/d(j)sum(i)=∑j∈adj(i)​1/d(j).

Algorithm B's select step draws a coin coin(i)∈{0,1}\mathrm{coin}(i) \in \{0,1\}coin(i)∈{0,1} for each vertex, with Pr⁡[coin(i)=1]=1/2d(i)\Pr[\mathrm{coin}(i) = 1] = 1/2d(i)Pr[coin(i)=1]=1/2d(i), puts X={i:coin(i)=1}X = \{ i : \mathrm{coin}(i) = 1 \}X={i:coin(i)=1}, and removes from XXX the endpoint of smaller degree of every edge inside XXX (both endpoints on a tie).

The sample space. Fix a prime qqq with n≤q≤2nn \le q \le 2nn≤q≤2n. The sample points are the pairs (x,y)(x, y)(x,y) with 0≤x,y≤q−10 \le x, y \le q-10≤x,y≤q−1, each of probability 1/q21/q^21/q2. With n(i)=⌊q/2d(i)⌋n(i) = \lfloor q/2d(i) \rfloorn(i)=⌊q/2d(i)⌋, the coin of vertex iii at (x,y)(x,y)(x,y) is 111 iff (x+y⋅i) mod q<n(i)(x + y \cdot i) \bmod q < n(i)(x+y⋅i)modq<n(i), so Pr⁡[coin(i)=1]=pi′=⌊q/2d(i)⌋/q\Pr[\mathrm{coin}(i) = 1] = p'_i = \lfloor q/2d(i) \rfloor / qPr[coin(i)=1]=pi′​=⌊q/2d(i)⌋/q, and distinct coins are pairwise independent.

Algorithm D. Each execution of the loop body first moves the isolated vertices of G′G'G′ into III. Then:

  • Case 1. If a vertex iii of maximum degree has d(i)≥n/16d(i) \ge n/16d(i)≥n/16, it joins III, and {i}∪N({i})\{i\} \cup N(\{i\}){i}∪N({i}) is deleted.
  • Case 2. Otherwise all q2q^2q2 sample points are tried, the one whose coins make Algorithm B's select step eliminate the most edges is kept, and its I′I'I′ is used.

No random bits are used.

Formalization targets

Goal: the round bound and correctness of Algorithm D

For every graph GGG on nnn vertices, every prime qqq with n≤q≤2nn \le q \le 2nn≤q≤2n, and every run of Algorithm D (every tie-break among maximum-degree vertices and every maximizing sample point), the loop body is executed exactly kkk times, with

k ≤ log⁡(n2)log⁡(18/17)+16 ≤ 25⋅log⁡2n+16,k \ \le\ \frac{\log(n^2)}{\log(18/17)} + 16 \ \le\ 25 \cdot \log_2 n + 16,k ≤ log(18/17)log(n2)​+16 ≤ 25⋅log2​n+16,

and the output III is a maximal independent set of GGG.

Milestones

  1. The sample space: Lemma 1, Pr⁡[Xi=Rj]=nij/q\Pr[X_i = R_j] = n_{ij}/qPr[Xi​=Rj​]=nij​/q, and Lemma 2, Pr⁡[Xi=Rj,Xi′=Rj′]=nijni′j′/q2\Pr[X_i = R_j, X_{i'} = R_{j'}] = n_{ij} n_{i'j'}/q^2Pr[Xi​=Rj​,Xi′​=Rj′​]=nij​ni′j′​/q2 for i≠i′i \ne i'i=i′.
  2. The Technical Lemma: for p1≥⋯≥pn≥0p_1 \ge \dots \ge p_n \ge 0p1​≥⋯≥pn​≥0 and c>0c > 0c>0, max⁡l(αl−cβl)≥12min⁡{αn,1/c}\max_l (\alpha_l - c\beta_l) \ge \tfrac12 \min\{\alpha_n, 1/c\}maxl​(αl​−cβl​)≥21​min{αn​,1/c}.
  3. The two steps of the proof of Theorem 1: E[Yk−Yk+1]≥12∑id(i)Pr⁡[i∈N(I′)]E[Y_k - Y_{k+1}] \ge \tfrac12 \sum_i d(i) \Pr[i \in N(I')]E[Yk​−Yk+1​]≥21​∑i​d(i)Pr[i∈N(I′)], and 12∑sum(i)≤2d(i) sum(i)+∑sum(i)>2d(i)≥∣E′∣\tfrac12 \sum_{\mathrm{sum}(i) \le 2} d(i)\,\mathrm{sum}(i) + \sum_{\mathrm{sum}(i) > 2} d(i) \ge |E'|21​∑sum(i)≤2​d(i)sum(i)+∑sum(i)>2​d(i)≥∣E′∣.
  4. Lemma C and Theorem 2: with pairwise independent coins of law 1/2d(i)1/2d(i)1/2d(i),
Pr⁡[i∈N(I′)]≥18min⁡{sum(i),1},E[Yk−Yk+1]≥116Yk.\Pr[i \in N(I')] \ge \tfrac18 \min\{\mathrm{sum}(i), 1\}, \qquad E[Y_k - Y_{k+1}] \ge \tfrac{1}{16} Y_k .Pr[i∈N(I′)]≥81​min{sum(i),1},E[Yk​−Yk+1​]≥161​Yk​.
  1. The rounding bound 89pi≤pi′≤pi\tfrac89 p_i \le p'_i \le p_i98​pi​≤pi′​≤pi​ when d(i)<n/16d(i) < n/16d(i)<n/16.
  2. Lemma D and Theorem 3: with pairwise independent coins of law pi′p'_ipi′​ and all d(i)<n/16d(i) < n/16d(i)<n/16,
Pr⁡[i∈N(I′)]≥19min⁡{sum(i),1},E[Yk−Yk+1]≥118Yk.\Pr[i \in N(I')] \ge \tfrac19 \min\{\mathrm{sum}(i), 1\}, \qquad E[Y_k - Y_{k+1}] \ge \tfrac{1}{18} Y_k .Pr[i∈N(I′)]≥91​min{sum(i),1},E[Yk​−Yk+1​]≥181​Yk​.
  1. In Case 2 some sample point eliminates at least 1/181/181/18 of the edges; Case 1 occurs at most 16 times in any run before it terminates.

Significance

The goal is the deterministic half of Luby's result: an MIS is computed in O(log⁡n)O(\log n)O(logn) parallel rounds with no randomness, which places MIS in deterministic NC. The pairwise-independent analysis (Lemmas C, D, Theorems 2, 3) is the reusable part: it shows that the Monte Carlo algorithm's progress guarantee survives when mutual independence is weakened to pairwise independence, which is what makes a sample space of size q2=O(n2)q^2 = O(n^2)q2=O(n2) sufficient. Lemmas 1 and 2 are the standard construction of pairwise independent variables with prescribed rational marginals.

All of these results are proved in the paper. None is formalized on the platform. A related but different object is the platform's dot-product hash family (AlmostLossless.pairwiseIndependent_dotHash), which has uniform marginals over a field and is not the q2q^2q2-point matrix space with prescribed marginals nij/qn_{ij}/qnij​/q. The companion mission A Simple Parallel Algorithm for the Maximal Independent Set Problem I formalizes Theorem 1, the mutually independent analysis of Algorithms A and B.

Difficulty

The obvious route to Theorem 2 repeats the proof of Lemma B, which lower-bounds Pr⁡[i∈N(I′)]\Pr[i \in N(I')]Pr[i∈N(I′)] by a product over independent events. Under pairwise independence the probability of an intersection of three or more coin events is not determined by the marginals, so that product argument fails, and the constant degrades from 18\tfrac1881​ to 116\tfrac1{16}161​.

The round bound needs a separate argument for high-degree vertices. The rounded probabilities pi′p'_ipi′​ are close to pip_ipi​ only when q/2d(i)q/2d(i)q/2d(i) is large, which is why vertices of degree at least n/16n/16n/16 are handled by Case 1. Counting the Case 1 rounds uses the vertex count nnn of the original graph, not of the current one. Correctness at termination requires an invariant linking III, V′V'V′ and GGG across both kinds of rounds and the deletion of isolated vertices.

Formalization scope

Vertices are Fin n with labels 0,…,n−10, \dots, n-10,…,n−1, which is §4.2's indexing of X0,…,Xn−1X_0, \dots, X_{n-1}X0​,…,Xn−1​; the label enters Z/qZ\mathbb{Z}/q\mathbb{Z}Z/qZ as a residue, and labels are distinct mod qqq because n≤qn \le qn≤q. The current graph is the induced subgraph kept on the full vertex type, with deleted vertices isolated. One execution of the loop body is a relation between states (I,V′)(I, V')(I,V′) that leaves the maximizing vertex (Case 1) and the maximizing sample point (Case 2) free, as the page does, and a run is any sequence of states starting at (∅,V)(\emptyset, V)(∅,V) that follows the relation while V′≠∅V' \ne \emptysetV′=∅. The goal asks for the first index kkk with V′=∅V' = \emptysetV′=∅, so a statement about a later state or a bound on kkk without termination does not meet it.

The conditions d(i)≥n/16d(i) \ge n/16d(i)≥n/16 and d(i)<n/16d(i) < n/16d(i)<n/16 are encoded exactly as n≤16 d(i)n \le 16\,d(i)n≤16d(i) and 16 d(i)<n16\,d(i) < n16d(i)<n in N\mathbb{N}N. ⌊q/2d(i)⌋\lfloor q/2d(i) \rfloor⌊q/2d(i)⌋ is natural-number division. The printed code tests (x+y⋅i) mod q≤n(i)(x + y\cdot i) \bmod q \le n(i)(x+y⋅i)modq≤n(i), which puts n(i)+1n(i) + 1n(i)+1 residues in XXX and contradicts pi′=⌊piq⌋/qp'_i = \lfloor p_i q \rfloor / qpi′​=⌊pi​q⌋/q stated on the same page; the formalization uses the strict test.

Lemmas C, D and Theorems 2, 3 quantify over every probability space carrying measurable, pairwise independent (IndepFun for each pair of distinct vertices) coins with the stated marginals at vertices of positive degree. Replacing pairwise by mutual independence, or fixing the probability space, would weaken them. They are stated for a fixed current graph, that is, as the expectation conditional on the state before the round, which is what their proofs establish. Expectations are Bochner integrals of a function with finitely many values and are therefore genuine. Lemma 2 carries the hypothesis i≠i′i \ne i'i=i′, implicit on the page.

The development needs the induced subgraph and degree bookkeeping from Mathlib's SimpleGraph, pairwise independence from ProbabilityTheory.IndepFun, finite counting in ZMod q, and real logarithms. The pairwise-independent analysis (Lemma C to Theorem 3) and the sample-space lemmas are reusable beyond this mission. Contributions to any milestone are welcome.

Selected references

  • M. Luby, A Simple Parallel Algorithm for the Maximal Independent Set Problem, SIAM J. Comput. 15(4):1036–1053, 1986. https://doi.org/10.1137/0215074
  • R. M. Karp and A. Wigderson, A Fast Parallel Algorithm for the Maximal Independent Set Problem, J. ACM 32(4):762–773, 1985. https://doi.org/10.1145/4221.4226
  • N. Alon, L. Babai and A. Itai, A Fast and Simple Randomized Parallel Algorithm for the Maximal Independent Set Problem, J. Algorithms 7(4):567–583, 1986. https://doi.org/10.1016/0196-6774(86)90019-2
16 thms2 active usersReviewed
Linear OptimizationOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Finding Minimum-Cost Circulations by Canceling Negative Cycles: Polynomial Termination of Minimum-Mean Cycle CancelingResearch Paper

Motivation

The minimum-cost circulation problem is a central problem of network optimization: transportation, assignment, shortest-path and maximum-flow problems are all special cases, and it is one of the few classes of linear programs with fast combinatorial algorithms. The oldest algorithm for it, the cycle-canceling algorithm of Klein (1967), repeatedly finds a residual cycle of negative cost and pushes as much flow as possible around it. With an arbitrary choice of cycle it can take exponentially many iterations even on integer data, and it need not terminate at all when capacities are irrational.

Goldberg and Tarjan (J. ACM 36(4), 1989) showed that one simple selection rule repairs this: always cancel a residual cycle whose mean cost (cost divided by number of arcs) is as small as possible. The resulting algorithm is strongly polynomial: its number of iterations is bounded by a polynomial in the number of vertices and arcs alone, independent of the magnitudes of capacities and costs. This mission formalizes that bound.

Timeline:

  • 1967, Klein: the cycle-canceling algorithm, without an iteration bound.
  • 1972, Edmonds and Karp: the first polynomial algorithm for minimum-cost flow (capacity scaling), polynomial in the bit length of the capacities.
  • 1985, Tardos: the first strongly polynomial algorithm, introducing the arc-fixing idea that Theorem 3.8 generalizes.
  • 1987–1989, Goldberg and Tarjan: generalized cost scaling and ε-optimality; in this paper, minimum-mean cycle canceling terminates after O(nm² log n) iterations for real costs (Theorem 3.9) and O(nm log(nC)) for integer costs bounded by C (Theorem 3.7).

Setting

A circulation network is a finite directed graph G=(V,E)G=(V,E)G=(V,E) with n=∣V∣n=|V|n=∣V∣ vertices and m=∣E∣m=|E|m=∣E∣ arcs, which is symmetric ((v,w)∈E(v,w)\in E(v,w)∈E iff (w,v)∈E(w,v)\in E(w,v)∈E, so mmm counts both directions), together with real capacities u(v,w)u(v,w)u(v,w) and real costs c(v,w)c(v,w)c(v,w), the cost being antisymmetric: c(v,w)=−c(w,v)c(v,w)=-c(w,v)c(v,w)=−c(w,v).

A circulation is a real function fff on arcs satisfying f(v,w)≤u(v,w)f(v,w)\le u(v,w)f(v,w)≤u(v,w), f(v,w)=−f(w,v)f(v,w)=-f(w,v)f(v,w)=−f(w,v) on every arc, and conservation ∑v:(w,v)∈Ef(v,w)=0\sum_{v:(w,v)\in E} f(v,w)=0∑v:(w,v)∈E​f(v,w)=0 at every vertex www. Its cost is cost⁡(f)=12∑(v,w)∈Ec(v,w)f(v,w)\operatorname{cost}(f)=\tfrac12\sum_{(v,w)\in E}c(v,w)f(v,w)cost(f)=21​∑(v,w)∈E​c(v,w)f(v,w), and fff is minimum-cost (optimal) if no circulation has smaller cost.

The residual capacity of an arc is uf(v,w)=u(v,w)−f(v,w)u_f(v,w)=u(v,w)-f(v,w)uf​(v,w)=u(v,w)−f(v,w); arcs with uf>0u_f>0uf​>0 are residual arcs. A residual cycle is a simple cycle of residual arcs; its capacity is the minimum residual capacity along it, its cost c(Γ)c(\Gamma)c(Γ) is the sum of its arc costs, and its mean cost is c(Γ)/∣Γ∣c(\Gamma)/|\Gamma|c(Γ)/∣Γ∣. Canceling a residual cycle raises the flow on each of its arcs by its capacity (and lowers the flow on each reverse arc by the same amount).

The minimum-mean cycle-canceling algorithm starts from any circulation and, while some residual cycle has negative cost, cancels a residual cycle whose mean cost is minimum among all residual cycles. Ties are broken arbitrarily, so the algorithm is a nondeterministic process; a run of length KKK is any sequence f0,…,fKf_0,\dots,f_Kf0​,…,fK​ of circulations produced by KKK such iterations.

The analysis uses a price function p:V→Rp:V\to\mathbb Rp:V→R, the reduced cost cp(v,w)=c(v,w)+p(v)−p(w)c_p(v,w)=c(v,w)+p(v)-p(w)cp​(v,w)=c(v,w)+p(v)−p(w), and ε-optimality: for ε≥0\varepsilon\ge0ε≥0, fff is ε-optimal if some ppp gives cp(v,w)≥−εc_p(v,w)\ge-\varepsiloncp​(v,w)≥−ε on every residual arc. The quantity ε(f)\varepsilon(f)ε(f) is the least such ε\varepsilonε, and an arc is ε-fixed if all ε-optimal circulations carry the same flow on it.

Formalization targets

Goal: Theorem 3.9, with the proof's constant

For every circulation network with n≥2n\ge2n≥2 vertices, mmm arcs, arbitrary real capacities and arbitrary real antisymmetric costs, every run of the minimum-mean cycle-canceling algorithm has length

K ≤ n m2 ⌈ln⁡n+1⌉.K\ \le\ n\,m^2\,\lceil \ln n+1\rceil .K ≤ nm2⌈lnn+1⌉.

The statement quantifies over all starting circulations, all tie-breaking choices and all real data; it is the paper's O(nm2log⁡n)O(nm^2\log n)O(nm2logn) with the constant its proof establishes.

Milestones

In the order the proof uses them: Theorem 2.1 (optimal iff no negative residual cycle), Theorem 3.1 (optimal iff some price function has cp≥0c_p\ge0cp​≥0 on residual arcs), Theorem 3.3 (ε(f)=−μ(f)\varepsilon(f)=-\mu(f)ε(f)=−μ(f) for nonoptimal fff, where μ(f)\mu(f)μ(f) is the minimum cycle mean of the residual graph), Lemma 3.5 (a minimum-mean cancellation does not increase ε(f)\varepsilon(f)ε(f)), Lemma 3.6 (mmm cancellations shrink ε(f)\varepsilon(f)ε(f) by a factor 1−1/n1-1/n1−1/n), and Theorem 3.8 (an arc with ∣cp(v,w)∣≥2nε|c_p(v,w)|\ge2n\varepsilon∣cp​(v,w)∣≥2nε is ε-fixed).

Significance

Theorem 3.9 shows that a classical, natural algorithm is strongly polynomial: its iteration count depends only on the combinatorial size of the network. Combined with Karp's O(nm)O(nm)O(nm) minimum-mean cycle algorithm it yields an O(n2m3log⁡n)O(n^2m^3\log n)O(n2m3logn) strongly polynomial algorithm (Theorem 3.10), and its method, measuring progress by the minimum cycle mean and fixing arcs once ε(f)\varepsilon(f)ε(f) is small, underlies the faster cancel-and-tighten algorithm of Section 4 and later strongly polynomial analyses of network-flow and related algorithms.

The theorem has been proved since 1989; this mission's contribution is a machine-checked proof. To the best of the platform's catalogue, no cycle-canceling bound, minimum cycle mean or ε-optimality statement has been formalized. The platform does hold the negative-cycle optimality criterion in a different model (LinearOptimization.network_no_negative_cycle_optimal, Bertsimas–Tsitsiklis Theorem 7.6, with nonnegative flows and supplies) and a flow decomposition theorem (LinearOptimization.network_flow_decomposition); both are related to milestones here but are stated for a different network model.

Difficulty

The obvious potential function, the cost of the circulation, decreases at every iteration but by amounts that depend on the data, so it yields no bound independent of the capacities and costs. The analysis instead has to track ε(f)\varepsilon(f)ε(f), an infimum over price functions, and relate it to the minimum cycle mean of a residual graph that changes after each cancellation, including arcs that appear only because of earlier cancellations. The strongly polynomial part needs a second ingredient: showing that the flow on some arc never changes again, which requires comparing the current circulation with all other ε-optimal circulations of the network, not only those the algorithm visits.

Formalization scope

Vertices form a finite type V; the arc set is E : Finset (V × V); capacities, costs and flows are real functions V → V → ℝ read only on E. nnn is Fintype.card V and mmm is E.card, counting (v,w)(v,w)(v,w) and (w,v)(w,v)(w,v) separately, as in the paper. Cycles are nonempty duplicate-free vertex lists, whose arcs are the cyclically consecutive pairs; one- and two-vertex cycles are allowed and have cost 000. Minimum mean is taken over all residual simple cycles of the current circulation. ε(f)\varepsilon(f)ε(f) is an infimum (sInf) over a set that is nonempty and bounded below for every circulation; its attainment is to be proved, never assumed.

Explicit constants replacing the paper's O(⋅)O(\cdot)O(⋅):

  • Theorem 3.9: the paper prints O(nm2log⁡n)O(nm^2\log n)O(nm2logn); its proof uses groups of k=m n⌈ln⁡n+1⌉k=m\,n\lceil\ln n+1\rceilk=mn⌈lnn+1⌉ iterations, at most mmm of them, so the goal states K≤n m2⌈ln⁡n+1⌉K\le n\,m^2\lceil\ln n+1\rceilK≤nm2⌈lnn+1⌉ with the natural logarithm.
  • The standing assumption n≥2n\ge2n≥2 (p. 874) is kept on the goal; the standing assumption m≥nm\ge nm≥n is not used by the proof and is omitted.

"Terminates after at most BBB iterations" means that every run has length at most BBB. Asserting only that some run is short, or that the process eventually stops, does not formalize the theorem; nor does a step relation that drops negativity, simplicity of the cycle, minimality of the mean over all residual cycles, or the update by exactly the cycle's capacity.

A complete development needs cycle decomposition of the difference of two circulations, LP duality for circulations (Theorem 3.1), and bookkeeping for the residual graph under cancellation. These are reusable for any cycle-canceling or cost-scaling analysis, and contributions of that infrastructure as separate lemmas are welcome. Theorem 3.7 (the integer-cost bound) and Section 4 are outside this mission.

Selected references

  • A. V. Goldberg, R. E. Tarjan, Finding Minimum-Cost Circulations by Canceling Negative Cycles, J. ACM 36(4):873–886, 1989. https://doi.org/10.1145/76359.76368
  • M. Klein, A primal method for minimal cost flows with applications to the assignment and transportation problems, Management Science 14(3):205–220, 1967. https://doi.org/10.1287/mnsc.14.3.205
  • É. Tardos, A strongly polynomial minimum cost circulation algorithm, Combinatorica 5(3):247–255, 1985. https://doi.org/10.1007/BF02579369
  • A. V. Goldberg, R. E. Tarjan, Finding minimum-cost circulations by successive approximation, Mathematics of Operations Research 15(3):430–466, 1990. https://doi.org/10.1287/moor.15.3.430
  • R. M. Karp, A characterization of the minimum cycle mean in a digraph, Discrete Mathematics 23(3):309–311, 1978. https://doi.org/10.1016/0012-365X(78)90011-0
  • J. Edmonds, R. M. Karp, Theoretical improvements in algorithmic efficiency for network flow problems, J. ACM 19(2):248–264, 1972. https://doi.org/10.1145/321694.321699
10 thms2 active usersReviewed
CombinatoricsLinear OptimizationOperations Research·Captain: mikedeng1

Optimum Branchings: The Vertices of the Branching Polyhedron Are Exactly the BranchingsResearch Paper

Motivation

A branching in a directed graph is a set of edges that contains no cycle (even ignoring directions) and in which no two edges point to the same node; a connected branching is an arborescence, a tree rooted at one node with all edges directed away from the root. The optimum branching problem asks, for real weights on the edges, for a branching of maximum total weight. It contains the minimum-cost spanning arborescence problem (the directed analogue of the minimum spanning tree), which appears in network design, in the analysis of broadcast and routing structures, in phylogenetics, and in dependency parsing in computational linguistics, where maximum spanning arborescences are the standard decoding step of graph-based parsers.

J. Edmonds solved the problem in Optimum branchings (J. Res. Nat. Bur. Standards 71B (1967) 233–240). The paper gives an algorithm (the shrinking algorithm usually attributed to Chu–Liu and Edmonds) and, proved together with it, a polyhedral theorem: the linear system that every branching obviously satisfies has no other vertices. This was one of the first integral polyhedron theorems beyond bipartite matching and network flows, and together with Edmonds' matching polytope (1965) it set the pattern of polyhedral combinatorics: describe the convex hull of the combinatorial objects by linear inequalities, and prove optimality by a linear programming dual.

Timeline:

  • 1965: Y. J. Chu and T. H. Liu describe the shrinking algorithm for the maximum arborescence.
  • 1965: Edmonds, Paths, trees, and flowers and Maximum matching and a polyhedron with 0,1-vertices: the matching polytope.
  • 1967: Edmonds, Optimum branchings: the algorithm, Theorem 2 (vertices of the branching polyhedron), and the dual certificate built along the algorithm.
  • 1970–1971: Edmonds' matroid intersection theorem, which contains the branching polyhedron theorem as the intersection of a graphic matroid and a partition matroid.
  • 1977–1986: faster implementations (Tarjan; Gabow, Galil, Spencer and Tarjan).

Setting

A graph GGG consists of a finite set VVV of nodes and a finite set EEE of edges. Each edge eee is directed toward a node front(e)\mathrm{front}(e)front(e), its front end, and away from a different node rear(e)\mathrm{rear}(e)rear(e), its rear end. Parallel edges are allowed; loops are not.

For F⊆EF\subseteq EF⊆E, a node vvv meets kkk edges of FFF if #{e∈F:front(e)=v}+#{e∈F:rear(e)=v}=k\#\{e\in F:\mathrm{front}(e)=v\}+\#\{e\in F:\mathrm{rear}(e)=v\}=k#{e∈F:front(e)=v}+#{e∈F:rear(e)=v}=k. A set B⊆EB\subseteq EB⊆E is a forest if it contains no polygon, i.e. no nonempty F⊆BF\subseteq BF⊆B in which every node meets zero or two edges of FFF; it is a branching if in addition distinct edges of BBB have distinct front ends. The incidence vector xB∈REx^B\in\mathbb R^ExB∈RE of BBB has xeB=1x^B_e=1xeB​=1 for e∈Be\in Be∈B and 000 otherwise.

The branching polyhedron PG⊆REP_G\subseteq\mathbb R^EPG​⊆RE is the set of xxx with

  • (L1)(L_1)(L1​) xe≥0x_e\ge0xe​≥0 for every edge eee;
  • (L2)(L_2)(L2​) ∑e: front(e)=vxe≤1\sum_{e:\,\mathrm{front}(e)=v}x_e\le1∑e:front(e)=v​xe​≤1 for every node vvv;
  • (L3)(L_3)(L3​) ∑e: front(e),rear(e)∈Sxe≤∣S∣−1\sum_{e:\,\mathrm{front}(e),\mathrm{rear}(e)\in S}x_e\le|S|-1∑e:front(e),rear(e)∈S​xe​≤∣S∣−1 for every set SSS of two or more nodes.

A vertex of a set P⊆REP\subseteq\mathbb R^EP⊆RE is a point of PPP that is the unique maximizer over PPP of some linear function x↦∑ecexex\mapsto\sum_e c_ex_ex↦∑e​ce​xe​.

For weights c∈REc\in\mathbb R^Ec∈RE, the dual variables are yhy_hyh​ for each node vhv_hvh​ and ySy_SyS​ for each SSS with ∣S∣≥2|S|\ge2∣S∣≥2; write we=∑S∋front(e),rear(e)ySw_e=\sum_{S\ni\mathrm{front}(e),\mathrm{rear}(e)}y_Swe​=∑S∋front(e),rear(e)​yS​ and (b,y)=∑hyh+∑S(∣S∣−1)yS(b,y)=\sum_hy_h+\sum_S(|S|-1)y_S(b,y)=∑h​yh​+∑S​(∣S∣−1)yS​. Edmonds' conditions are (15) yh≥0y_h\ge0yh​≥0, (16) yS≥0y_S\ge0yS​≥0, (17) yfront(e)+we≥cey_{\mathrm{front}(e)}+w_e\ge c_eyfront(e)​+we​≥ce​ for every edge, and, for a branching BBB, (18) yh≠0⇒y_h\ne0\Rightarrowyh​=0⇒ some edge of BBB enters vhv_hvh​, (19) yS≠0⇒y_S\ne0\RightarrowyS​=0⇒ exactly ∣S∣−1|S|-1∣S∣−1 edges of BBB lie inside SSS, (20) yfront(e)+we=cey_{\mathrm{front}(e)}+w_e=c_eyfront(e)​+we​=ce​ for e∈Be\in Be∈B.

Formalization targets

Goal: Theorem 2 (p. 235)

{x: x is a vertex of PG}  =  {xB: B is a branching of G}.\{x:\ x\text{ is a vertex of }P_G\}\;=\;\{x^B:\ B\text{ is a branching of }G\}.{x: x is a vertex of PG​}={xB: B is a branching of G}.

Both inclusions, for every finite loopless directed multigraph.

Milestones

  1. §5, p. 236: for every branching BBB, xB∈PGx^B\in P_GxB∈PG​.
  2. §5, p. 236: for every branching BBB, xBx^BxB is a vertex of PGP_GPG​.
  3. §6, (12)–(14): if BBB is a branching and yyy satisfies (15)–(20), then (c,xB)=(b,y)(c,x^B)=(b,y)(c,xB)=(b,y), xBx^BxB maximizes (c,x)(c,x)(c,x) over PGP_GPG​, and yyy minimizes (b,y)(b,y)(b,y) subject to (15)–(17).
  4. §7, p. 237: for every c∈REc\in\mathbb R^Ec∈RE there are a branching BBB and a yyy satisfying (15)–(20).
  5. Lemma 1, p. 236: for every c∈REc\in\mathbb R^Ec∈RE some branching vector lies in PGP_GPG​ and maximizes ∑ecexe\sum_ec_ex_e∑e​ce​xe​ over PGP_GPG​.

Significance

Theorem 2 says that the linear program max⁡{(c,x):x∈PG}\max\{(c,x):x\in P_G\}max{(c,x):x∈PG​} always has an optimal solution that is a branching, and that every vertex of PGP_GPG​ is one. Consequently optimum branchings, and after the reductions of the paper's §2 optimum spanning and rooted arborescences, can be computed by linear programming, and their optimality is certified by a dual vector satisfying (15)–(20). The same statement underlies the separation-based treatment of arborescence constraints in integer programming formulations of network design and of the asymmetric travelling salesman problem. The integrality of the dual for integer weights (the paper's §8) yields min–max theorems of König type for branchings.

The result is proved and classical; no machine-checked proof of it in a proof assistant is known. The mission asks for the paper's own proof chain: branching vectors are points and vertices of PGP_GPG​, linear programming optimality from complementary slackness, existence of a dual certificate for every weight vector, and the deduction of Theorem 2. Proofs through matroid intersection or total dual integrality would also establish the goal and are welcome as alternative routes.

Difficulty

The inclusion "branching vectors are vertices" and the certificate criterion are short. The substance is Milestone 4: for arbitrary real weights, a branching and a dual vector satisfying the complementary slackness conditions must exist simultaneously. Finiteness gives an optimum branching at once, but that says nothing about optimality over the fractional points of PGP_GPG​; the difficulty is the dual. The natural attempt, taking yS=0y_S=0yS​=0 for all sets and yhy_hyh​ the largest positive weight entering vhv_hvh​, violates (20) as soon as the greedy choice closes a circuit: the (L3)(L_3)(L3​) duals of nested node sets, arising from repeatedly shrinking circuits, are needed, and they must be kept nonnegative through weight changes of the form c3+c0−c4c_3+c_0-c_4c3​+c0​−c4​ on edges entering a shrunk circuit.

Formalization scope

A graph is a structure Graph V E with front rear : E → V and a proof that front e ≠ rear e; V and E carry Fintype and DecidableEq. Edge sets are Finset E; vectors are E → ℝ; the linear function with weights c is ∑ e, c e * x e. A branching is defined combinatorially (no nonempty edge subset in which every node meets zero or two edges, and distinct front ends), never by counting edges inside node sets, and PGP_GPG​ is the solution set of (L1)(L_1)(L1​)–(L3)(L_3)(L3​), never a convex hull; either shortcut would make half of Theorem 2 true by definition. A vertex is a unique maximizer of a linear function, as on p. 236 (Mathlib's Set.exposedPoints has the same content); the set variables of the dual are a function Finset V → ℝ whose values on sets of fewer than two nodes are ignored. The right side of (L3)(L_3)(L3​) is the real number ∣S∣−1|S|-1∣S∣−1.

Implicit conventions made explicit: the no-loop condition is part of the graph (with a loop eee, the vector of {e}\{e\}{e} is a vertex of PGP_GPG​ but not a branching); parallel edges are allowed; weights have arbitrary sign and the empty branching is allowed. The mission does not model the algorithm of §4 or Theorem 1's notion of a "good" algorithm; Milestone 4 states only the existence of a certificate, which is what Lemma 1 uses.

Useful reusable infrastructure: finite directed multigraphs with an edge type, forests via polygons, and a finite LP duality lemma for max⁡{c⊤x:x≥0, Ax≤b}\max\{c^\top x: x\ge0,\ Ax\le b\}max{c⊤x:x≥0, Ax≤b}; contributions of either are welcome.

Selected references

  • J. Edmonds, Optimum branchings, J. Res. Nat. Bur. Standards Sect. B 71B (1967), 233–240. https://doi.org/10.6028/jres.071b.032
  • Y. J. Chu and T. H. Liu, On the shortest arborescence of a directed graph, Scientia Sinica 14 (1965), 1396–1400.
  • J. Edmonds, Maximum matching and a polyhedron with 0,1-vertices, J. Res. Nat. Bur. Standards 69B (1965), 125–130. https://doi.org/10.6028/jres.069B.013
  • R. E. Tarjan, Finding optimum branchings, Networks 7 (1977), 25–35. https://doi.org/10.1002/net.3230070103
  • H. N. Gabow, Z. Galil, T. Spencer and R. E. Tarjan, Efficient algorithms for finding minimum spanning trees in undirected and directed graphs, Combinatorica 6 (1986), 109–122. https://doi.org/10.1007/BF02579168
  • A. Schrijver, Combinatorial Optimization: Polyhedra and Efficiency, Springer (2003), Chapter 52.
9 thms2 active usersReviewed
CombinatoricsLinear OptimizationOperations Research·Captain: mikedeng1

On Certain Polytopes Associated with Graphs V: Zero-One Optima of the Odd-Cycle Relaxation on Series-Parallel GraphsResearch Paper

Motivation

The stable set problem asks for a largest set of pairwise non-adjacent vertices in a graph; its size is the stability number α(G)\alpha(G)α(G). It is NP-hard in general, and a standard way to attack it in integer programming is to write down linear inequalities valid for all stable sets and solve the resulting linear program. The weakest such relaxation uses only the edge inequalities xv+xw≤1x_v+x_w\le 1xv​+xw​≤1; its optimum can be as large as ∣V∣/2|V|/2∣V∣/2 on graphs with small α(G)\alpha(G)α(G). Adding, for every odd circuit CCC, the inequality ∑u∈Cxu≤12(∣C∣−1)\sum_{u\in C}x_u\le\frac12(|C|-1)∑u∈C​xu​≤21​(∣C∣−1) gives the odd-cycle relaxation, the first strengthening that cuts off the fractional point x≡12x\equiv\frac12x≡21​ on odd cycles.

Section 7 of V. Chvátal, On certain polytopes associated with graphs (J. Combin. Theory Ser. B 18 (1975) 138–154, doi:10.1016/0095-8956(75)90041-6) identifies a graph class on which this relaxation is exact for the all-ones objective, with an integral certificate on the dual side: the series-parallel networks. The paper conjectures (Conjecture 7.3) that for these graphs the odd-cycle inequalities describe the whole stable set polytope; graphs with that property were later called t-perfect.

Timeline:

  • 1960: G. A. Dirac, in "In abstrakten Graphen vorhandene vollständige 4-Graphen und ihre Unterteilungen" (Math. Nachr. 22), proves that graphs containing no subdivided K4K_4K4​ have at least two vertices of degree at most two.
  • 1975: Chvátal introduces the system (7.1) and proves Theorem 7.1 (this mission): on series-parallel networks, max⁡∑uxu\max\sum_u x_umax∑u​xu​ subject to (7.1) and its dual both have zero–one optima. He conjectures the full polyhedral statement.
  • 1979: M. Boulala and J.-P. Uhry, "Polytope des indépendants d'un graphe série-parallèle" (Discrete Math. 27), prove the conjecture: (7.1) defines the stable set polytope of every series-parallel graph.
  • 1986: A. M. H. Gerards and A. Schrijver, "Matrices with the Edmonds–Johnson property" (Combinatorica 6), extend this to graphs with no odd-K4K_4K4​ subdivision.

Setting

All graphs G=(V,E)G=(V,E)G=(V,E) are finite, undirected and loopless, with no parallel edges. A stable set is a set of vertices no two of which are adjacent. We write d(u)d(u)d(u) for the degree of uuu.

A set C⊆VC\subseteq VC⊆V induces an odd circuit if the induced subgraph G[C]G[C]G[C] is a cycle of length 2k+12k+12k+1 with k≥1k\ge1k≥1; triangles count, and such a cycle has no chords. Z(G)Z(G)Z(G) is the set of all such CCC. The odd-cycle system of GGG is

0≤xu≤1(u∈V),xv+xw≤1(vw∈E),∑u∈Cxu≤12(∣C∣−1)(C∈Z(G)).(7.1)\begin{aligned} 0\le x_u&\le 1 && (u\in V),\\ x_v+x_w&\le 1 && (vw\in E),\\ \textstyle\sum_{u\in C}x_u&\le \tfrac12(|C|-1) && (C\in Z(G)). \end{aligned}\tag{7.1}0≤xu​xv​+xw​∑u∈C​xu​​≤1≤1≤21​(∣C∣−1)​​(u∈V),(vw∈E),(C∈Z(G)).​(7.1)

Its linear programming dual for the objective ∑uxu\sum_u x_u∑u​xu​, with x≥0x\ge0x≥0 read as sign constraints, has variables yu≥0y_u\ge0yu​≥0, ze≥0z_e\ge0ze​≥0, wC≥0w_C\ge0wC​≥0 and reads

min⁡ ∑uyu+∑eze+∑C∈Z(G)12(∣C∣−1) wCs.t.yu+∑e∋uze+∑C∋uwC≥1  (u∈V).\min\ \sum_{u}y_u+\sum_{e}z_e+\sum_{C\in Z(G)}\tfrac12(|C|-1)\,w_C\quad\text{s.t.}\quad y_u+\sum_{e\ni u}z_e+\sum_{C\ni u}w_C\ge 1\ \ (u\in V).min u∑​yu​+e∑​ze​+C∈Z(G)∑​21​(∣C∣−1)wC​s.t.yu​+e∋u∑​ze​+C∋u∑​wC​≥1  (u∈V).

A homeomorph of K4K_4K4​ is a graph obtained from K4K_4K4​ by subdividing its edges into paths through new vertices of degree two. GGG is a series-parallel network if no subgraph of GGG is a homeomorph of K4K_4K4​.

Formalization targets

Goal: Theorem 7.1

For every series-parallel network GGG,

∃ x∈{0,1}V feasible for (7.1):  ∑uxu=max⁡{∑uxu′:x′∈RV satisfies (7.1)},\exists\,x\in\{0,1\}^V\ \text{feasible for (7.1)}:\ \ \sum_u x_u=\max\Big\{\sum_u x'_u : x'\in\mathbb R^V\text{ satisfies (7.1)}\Big\},∃x∈{0,1}V feasible for (7.1):  u∑​xu​=max{u∑​xu′​:x′∈RV satisfies (7.1)},

and there is a zero–one dual feasible (y,z,w)(y,z,w)(y,z,w) whose dual objective equals the minimum over all real dual feasible points. Both optimality claims are against real points. Chvátal's statement has no constants to improve; the formal goal is his theorem as printed.

Milestones

  1. Dirac's theorem (§7, p. 150): a series-parallel network with at least two vertices has two distinct vertices of degree at most two.
  2. Case 4 closure (p. 151): if d(u)=2d(u)=2d(u)=2 and the neighbours v,wv,wv,w of uuu are non-adjacent, deleting uuu and identifying vvv with www yields a series-parallel network.
  3. The combinatorial core (p. 151, (i)–(ii)): there are a stable set SSS and a spanning subgraph F≤GF\le GF≤G whose components are isolated vertices, isolated edges and odd circuits, such that with aaa isolated vertices, bbb isolated edges and ckc_kck​ circuits of length 2k+12k+12k+1,
a+b+∑kk ck=∣S∣.a+b+\sum_k k\,c_k=|S|.a+b+k∑​kck​=∣S∣.

Significance

The result. Theorem 7.1 says that on series-parallel networks the odd-cycle relaxation computes α(G)\alpha(G)α(G) exactly, and that the optimum is certified by a covering of the vertex set by single vertices, edges and chordless odd circuits whose total weight equals ∣S∣|S|∣S∣. This is a min–max theorem of König type for a non-bipartite, non-perfect class: odd cycles of length at least five are series-parallel and not perfect, so the clique inequalities of the perfect-graph theory (mission I of this series) do not suffice here. The statement is the unweighted case of the later polyhedral results of Boulala–Uhry and Gerards–Schrijver, and the combinatorial core (milestone 3) is the basis of a polynomial algorithm for α(G)\alpha(G)α(G) on this class, as the paper remarks.

Formalizing it. The theorem has been proved since 1975; neither Mathlib nor the Prove2Me library contains a formal proof of it. A formal proof needs a working notion of graph subdivision (topological minor), which Mathlib does not have, Dirac's degree theorem, the induction of the paper with its four cases, and the passage from the combinatorial core to a pair of LP optima through weak duality. Each of these is reusable: topological minors and the K4K_4K4​-subdivision-free class appear throughout structural graph theory.

Difficulty

The combinatorial core is proved by induction on ∣V∣|V|∣V∣ removing a vertex of degree at most two, and three of the four cases are routine. The obstacle is Case 4 (d(u)=2d(u)=2d(u)=2, neighbours non-adjacent): deleting uuu alone loses the information needed to recover SSS and FFF, so the proof identifies the two neighbours. That requires the class to be closed under this identification, a statement about subdivisions that is not a local edge count, and a lifting of (S′,F′)(S',F')(S′,F′) from the reduced graph with a case split on the component of F′F'F′ containing the merged vertex. A second gap is between FFF and the dual: an odd-circuit component of FFF may have chords in GGG and so need not lie in Z(G)Z(G)Z(G), and the zero–one dual solution must be extracted from it. Finally, Dirac's theorem itself is the one place where the absence of K4K_4K4​ subdivisions is used positively, and it is not a consequence of a degree-counting argument.

Formalization scope

Graphs are SimpleGraph V on a Fintype V with decidable equality and decidable adjacency. Z(G)Z(G)Z(G) is a Finset (Finset V) whose members induce a subgraph isomorphic to Mathlib's cycleGraph (2k+1), k≥1k\ge1k≥1. The dual variables are indexed by V, by the edge set G.edgeSet, and by the subtype of Z(G)Z(G)Z(G); x≥0x\ge0x≥0 is a sign constraint with no dual variable. "Contains a homeomorph of K4K_4K4​" is encoded by four distinct branch vertices and six paths (Walk.IsPath) that avoid other branch vertices and meet only at common endpoints; it is not the K4K_4K4​-minor notion and not the series–parallel composition notion, whose equivalence with it is not part of the paper.

Conventions and implicit hypotheses made explicit:

  • Dirac's theorem is stated with ∣V∣≥2|V|\ge 2∣V∣≥2; as printed it fails for graphs with fewer than two vertices.
  • In Case 4 the identified graph has vertex set V∖{u,w}V\setminus\{u,w\}V∖{u,w}, with vvv representing v≡wv\equiv wv≡w; parallel edges merge.
  • Optimality in the goal is against every real feasible point of each program. A statement comparing the zero–one points only with other zero–one points would reduce the primal half to α(G)≤α(G)\alpha(G)\le\alpha(G)α(G)≤α(G) and is ruled out.
  • In milestone 3 the sum a+b+∑kkcka+b+\sum_k k c_ka+b+∑k​kck​ is written as a sum over the connected components of FFF of 111 (one or two vertices) or (n−1)/2(n-1)/2(n−1)/2 (n≥3n\ge3n≥3 vertices).

Corollary 7.2 (stated without proof) and Conjecture 7.3 are not part of this mission. Contributions welcome: a general topological-minor library, Dirac's theorem, and a proof of the combinatorial core.

Selected references

  • V. Chvátal, On certain polytopes associated with graphs, J. Combin. Theory Ser. B 18 (1975) 138–154. https://doi.org/10.1016/0095-8956(75)90041-6
  • G. A. Dirac, In abstrakten Graphen vorhandene vollständige 4-Graphen und ihre Unterteilungen, Math. Nachr. 22 (1960) 61–85 (reference [6], Satz 5, of the paper).
  • R. J. Duffin, Topology of series-parallel networks, J. Math. Anal. Appl. 10 (1965) 303–318 (reference [7] of the paper).
  • M. Boulala, J.-P. Uhry, Polytope des indépendants d'un graphe série-parallèle, Discrete Math. 27 (1979) 225–243.
  • A. M. H. Gerards, A. Schrijver, Matrices with the Edmonds–Johnson property, Combinatorica 6 (1986) 365–379.
8 thms2 active usersReviewed
🏆Completed
CombinatoricsLinear OptimizationOperations Research·Captain: mikedeng1

On Certain Polytopes Associated with Graphs IV: Adjacent Stable Sets on the Stable Set PolytopeResearch Paper

Motivation

Many combinatorial optimization problems are linear programs over a polytope whose vertices are the zero–one incidence vectors of the feasible objects: matchings, stable sets, spanning trees. The edges of such a polytope (pairs of vertices joined by a one-dimensional face) govern the behaviour of the simplex method and of local-search procedures, which move from vertex to vertex along edges: a pivot of the simplex method on a nondegenerate basis replaces a vertex by one of its neighbours.

In December 1971 M. L. Balinski asked when two matchings M1,M2M_1, M_2M1​,M2​ of a graph are neighbours on the matching polyhedron determined by Edmonds (Edmonds 1965). V. Chvátal answered a more general question in §6 of On certain polytopes associated with graphs (Chvátal 1975): he characterized the neighbours on the stable set polytope of an arbitrary graph. Since matchings of GGG are the stable sets of the line graph L(G)L(G)L(G), Balinski's question is the special case of line graphs (Corollary 6.3 of the paper).

Setting

Let G=(V,E)G=(V,E)G=(V,E) be a finite undirected loopless graph. A stable set is a set of vertices no two of which are adjacent. S(G)S(G)S(G) denotes the set of all zero–one vectors x=(xu:u∈V)x=(x_u : u\in V)x=(xu​:u∈V) such that {u:xu=1}\{u : x_u=1\}{u:xu​=1} is stable, and the stable set polytope is

P(G)=conv⁡S(G)⊆RV.P(G)=\operatorname{conv} S(G)\subseteq \mathbb R^V .P(G)=convS(G)⊆RV.

For y∈S(G)y\in S(G)y∈S(G) the corresponding stable set is Y={u:yu=1}Y=\{u : y_u=1\}Y={u:yu​=1}.

For an integer-valued vector c=(cu:u∈V)c=(c_u : u\in V)c=(cu​:u∈V) write cx=∑u∈Vcuxucx=\sum_{u\in V}c_ux_ucx=∑u∈V​cu​xu​. Two vectors y,zy, zy,z are neighbours in P(G)P(G)P(G) if there is an integer-valued ccc such that yyy and zzz are the only two vectors which maximize cxcxcx over S(G)S(G)S(G); in particular y≠zy\neq zy=z. This is the definition the paper states at the start of the proof of Theorem 6.2.

A bicoloration of a graph TTT is a partition V=B∪RV=B\cup RV=B∪R, B∩R=∅B\cap R=\emptysetB∩R=∅, such that every edge joins BBB to RRR. Every tree has one.

In the Lean development these objects are stableVectors G (S(G)S(G)S(G)), stablePolytope G (P(G)P(G)P(G)), onesSet y (YYY), AreNeighbors G y z and IsBicoloration T B R, all in the namespace ChvatalPolytopes.Neighbors.

Formalization targets

Goal: Theorem 6.2 (p. 149)

For y,z∈S(G)y,z\in S(G)y,z∈S(G) with corresponding stable sets Y,ZY,ZY,Z,

y and z are neighbours in P(G)  ⟺  the subgraph H of G induced by (Y−Z)∪(Z−Y) is connected.y \text{ and } z \text{ are neighbours in } P(G) \iff \text{the subgraph } H \text{ of } G \text{ induced by } (Y-Z)\cup(Z-Y) \text{ is connected.}y and z are neighbours in P(G)⟺the subgraph H of G induced by (Y−Z)∪(Z−Y) is connected.

Milestone: Lemma 6.1 (p. 149)

For a tree T=(V,E)T=(V,E)T=(V,E) with a bicoloration V=B∪RV=B\cup RV=B∪R there are nonnegative integers cuc_ucu​ (u∈Vu\in Vu∈V) and mmm with

∑u∈Vcuxu≤mfor all x∈S(T),\sum_{u\in V}c_ux_u\le m\quad\text{for all } x\in S(T),u∈V∑​cu​xu​≤mfor all x∈S(T),

with equality exactly when xxx is the incidence vector of BBB or of RRR.

Milestone: the certificate of the "if" part (p. 149, proof of Theorem 6.2, (i))

If HHH is connected with spanning tree TTT, and cuc_ucu​ (u∈(Y−Z)∪(Z−Y)u\in (Y-Z)\cup(Z-Y)u∈(Y−Z)∪(Z−Y)), mmm are as in Lemma 6.1 for TTT, extend ccc by cu=1c_u=1cu​=1 on Y∩ZY\cap ZY∩Z and cu=−1c_u=-1cu​=−1 outside Y∪ZY\cup ZY∪Z. Then

∑u∈Vcuxu≤m+∣Y∩Z∣for all x∈S(G),\sum_{u\in V}c_ux_u\le m+|Y\cap Z|\quad\text{for all } x\in S(G),u∈V∑​cu​xu​≤m+∣Y∩Z∣for all x∈S(G),

with equality if and only if x=yx=yx=y or x=zx=zx=z.

Significance

Theorem 6.2 describes the 1-skeleton of the stable set polytope of every graph by a condition that can be checked in linear time, although optimizing over P(G)P(G)P(G) is NP-hard in general and no complete linear description of P(G)P(G)P(G) is known for general graphs. Through line graphs it gives the adjacency criterion for the matching polytope (two matchings are neighbours if and only if their symmetric difference is a single path or cycle), which settled Balinski's question. Characterizations of this type underlie the analysis of simplex-type and pivoting algorithms on combinatorial polytopes and the study of their diameters.

The result has been proved since 1975. The mission asks for a machine-checked proof of the theorem as stated in the paper; no formal proof of Theorem 6.2 or of the matching-polytope corollary is known to exist on Prove2Me or in Mathlib. The two milestones isolate the constructive half (Lemma 6.1 and the weighting built from it), which is reusable for any statement that needs an explicit objective singling out two stable sets.

Difficulty

The "only if" direction and the equality analysis are elementary; the substance lies in the "if" direction. An objective that makes both yyy and zzz optimal is easy to write down, for example c=y+zc=y+zc=y+z; the difficulty is to make them the only optimal vectors. Any stable set that agrees with YYY on some connected pieces of HHH and with ZZZ on others ties with yyy and zzz under naive weightings, so the weights on (Y−Z)∪(Z−Y)(Y-Z)\cup(Z-Y)(Y−Z)∪(Z−Y) must be chosen so that every mixed choice loses strictly. The integrality requirement on ccc and the need to control all of S(G)S(G)S(G), not only the stable sets contained in Y∪ZY\cup ZY∪Z, rule out a direct perturbation argument.

Formalization scope

  • Graphs. VVV is a finite type with decidable equality and GGG is a SimpleGraph V; loops and multiple edges are excluded, as in the paper.
  • S(G)S(G)S(G) and P(G)P(G)P(G). S(G)S(G)S(G) is the set of incidence vectors in V → ℝ of stable finsets; P(G)P(G)P(G) is convexHull ℝ (S G).
  • Neighbours. Defined exactly as on p. 149: y≠zy\ne zy=z and, for some c:V→Zc : V\to\mathbb Zc:V→Z, the set of maximizers of cxcxcx over S(G)S(G)S(G) equals {y,z}\{y,z\}{y,z}. The face-lattice notion of an edge of P(G)P(G)P(G) is not used; its equivalence with this definition is not part of the paper.
  • Induced subgraph and connectedness. HHH is G.induce of the set (Y∖Z)∪(Z∖Y)(Y\setminus Z)\cup(Z\setminus Y)(Y∖Z)∪(Z∖Y), and "connected" is Mathlib's SimpleGraph.Connected, which requires at least one vertex. For y=zy=zy=z both sides of the goal are therefore false.
  • Trees. SimpleGraph.IsTree, which includes connectedness; a spanning tree of HHH is a graph TTT on the vertex set of HHH with T≤HT\le HT≤H and T.IsTree. In Lemma 6.1 the integers cuc_ucu​ and mmm are natural numbers.

A trivializing formalization — defining neighbours through the symmetric-difference condition or through Lemma 6.1's certificate, or omitting y≠zy\neq zy=z from the definition — is excluded: neighbours are defined only through unique maximizers of integer objectives over S(G)S(G)S(G).

A complete development needs only finite graphs, induced subgraphs, spanning trees of connected graphs (available in Mathlib) and finite sums. Contributions welcome beyond the milestones: the equivalence of this notion of neighbours with the one-dimensional faces of P(G)P(G)P(G), and Corollary 6.3 for the matching polytope via line graphs.

Selected references

  • V. Chvátal, On certain polytopes associated with graphs, Journal of Combinatorial Theory, Series B 18 (1975), 138–154. https://doi.org/10.1016/0095-8956(75)90041-6
  • J. Edmonds, Maximum matching and a polyhedron with 0,1-vertices, Journal of Research of the National Bureau of Standards 69B (1965), 125–130. https://doi.org/10.6028/jres.069B.013
  • M. W. Padberg, On the facial structure of set packing polyhedra, Mathematical Programming 5 (1973), 199–215. https://doi.org/10.1007/BF01580121
6 thms2 active usersReviewed
🏆Completed
CombinatoricsLinear OptimizationOperations Research·Captain: mikedeng1

On Certain Polytopes Associated with Graphs II: No Clique Is a Cutset of a Connected α-Critical GraphResearch Paper

Motivation

The stability number α(G)\alpha(G)α(G) of a graph, the largest number of pairwise non-adjacent vertices, is the optimum of an integer program over the stable set polytope P(G)P(G)P(G). Linear programming duality turns any explicit linear description of P(G)P(G)P(G) into a certificate of optimality for α(G)\alpha(G)α(G), which is why the question "which inequalities are needed to describe P(G)P(G)P(G)?" has been central to polyhedral combinatorics since Edmonds' description of the matching polytope (Edmonds 1965). Chvátal's 1975 paper (doi:10.1016/0095-8956(75)90041-6) initiated the systematic study of P(G)P(G)P(G) for arbitrary graphs: which graph operations preserve a known description, and which inequalities are facets, i.e. indispensable in every description.

Section 4 of the paper treats one such operation, gluing two graphs along a complete subgraph, and one family of facets, the "rank" inequality ∑uxu≤α(G)\sum_u x_u\le\alpha(G)∑u​xu​≤α(G) for graphs whose critical edges connect all vertices. Combining the two yields a purely graph-theoretic fact about α\alphaα-critical graphs (graphs in which deleting any edge increases the stability number): no complete subgraph separates such a graph. The fact is due to Berge (Graphes et hypergraphes, 1970, Ch. 13, §3, Corollary 2); Chvátal's derivation obtains it from polyhedral arguments. α\alphaα-critical graphs were studied by Erdős and Gallai, Hajnal, Andrásfai and Lovász, and their structure is closely tied to the facets of P(G)P(G)P(G).

Setting

Graphs are finite, undirected and loopless: G=(V,E)G=(V,E)G=(V,E). A stable set is a set of pairwise non-adjacent vertices; α(G)\alpha(G)α(G) is the largest size of a stable set. The incidence vector of s⊆Vs\subseteq Vs⊆V is χs∈RV\chi^s\in\mathbb R^Vχs∈RV with χus=1\chi^s_u=1χus​=1 for u∈su\in su∈s and 000 otherwise. S(G)S(G)S(G) is the set of incidence vectors of stable sets and

P(G)=conv⁡S(G)⊆RV.P(G)=\operatorname{conv}S(G)\subseteq\mathbb R^V .P(G)=convS(G)⊆RV.

A finite system ∑u∈Vaiuxu≤bi\sum_{u\in V}a_{iu}x_u\le b_i∑u∈V​aiu​xu​≤bi​ (i∈J)(i\in J)(i∈J) is a defining linear system of PPP if its solution set is exactly PPP. An inequality ∑uauxu≤b\sum_u a_ux_u\le b∑u​au​xu​≤b is a facet of PPP if every defining linear system of PPP contains, for some t>0t>0t>0, the inequality ∑utauxu≤tb\sum_u ta_ux_u\le tb∑u​tau​xu​≤tb.

An edge eee of GGG is critical if α(G−e)=α(G)+1\alpha(G-e)=\alpha(G)+1α(G−e)=α(G)+1; E∗E^*E∗ denotes the set of critical edges, G∗=(V,E∗)G^*=(V,E^*)G∗=(V,E∗), and GGG is α\alphaα-critical if every edge is critical. For graphs G1=(V1,E1)G_1=(V_1,E_1)G1​=(V1​,E1​), G2=(V2,E2)G_2=(V_2,E_2)G2​=(V2​,E2​) put G1∩G2=(V1∩V2,E1∩E2)G_1\cap G_2=(V_1\cap V_2,E_1\cap E_2)G1​∩G2​=(V1​∩V2​,E1​∩E2​) and G1∪G2=(V1∪V2,E1∪E2)G_1\cup G_2=(V_1\cup V_2,E_1\cup E_2)G1​∪G2​=(V1​∪V2​,E1​∪E2​). A vertex set KKK is a cutset of GGG if two vertices outside KKK are joined by no path of G−KG-KG−K, the subgraph induced on V∖KV\setminus KV∖K.

In Lean, all objects live in the namespace ChvatalPolytopes.Separation: stablePolytope G, IsFacet P a b, IsCriticalEdge, criticalGraph G (for G∗G^*G∗), IsAlphaCritical G and IsCutset G K.

Formalization targets

Goal: Corollary 4.3 (p. 144)

For a finite connected α\alphaα-critical graph GGG and any K⊆VK\subseteq VK⊆V inducing a complete subgraph,

K is not a cutset of G.K \text{ is not a cutset of } G .K is not a cutset of G.

The goal is pure graph theory; its proof in the paper consists of the two polyhedral theorems below.

Milestones

  1. Proposition 2.1 (pp. 139–140). For a finite nonempty set SSS of solutions of −xu≤0-x_u\le0−xu​≤0 (u∈V)(u\in V)(u∈V), ∑uaiuxu≤bi\sum_u a_{iu}x_u\le b_i∑u​aiu​xu​≤bi​ (i∈J)(i\in J)(i∈J): the solution set equals conv⁡S\operatorname{conv}SconvS if and only if for every c∈ZVc\in\mathbb Z^Vc∈ZV
max⁡{cx:x∈S}=min⁡{∑iλibi:λ≥0, ∑iλiaiu≥cu (u∈V)}.\max\{cx:x\in S\}=\min\Big\{\sum_i\lambda_ib_i:\lambda\ge0,\ \sum_i\lambda_ia_{iu}\ge c_u\ (u\in V)\Big\}.max{cx:x∈S}=min{i∑​λi​bi​:λ≥0, i∑​λi​aiu​≥cu​ (u∈V)}.
  1. Theorem 4.1 (p. 141). If G1∩G2G_1\cap G_2G1​∩G2​ is complete, the union of defining linear systems of P(G1)P(G_1)P(G1​) and P(G2)P(G_2)P(G2​) (each containing its nonnegativity rows) is a defining linear system of P(G1∪G2)P(G_1\cup G_2)P(G1​∪G2​).
  2. Theorem 4.2 (p. 143). If G∗G^*G∗ is connected, then
∑u∈Vxu≤α(G)\sum_{u\in V}x_u\le\alpha(G)u∈V∑​xu​≤α(G)

is a facet of P(G)P(G)P(G).

Significance

Theorem 4.1 says that clique-sums are harmless for linear descriptions of P(G)P(G)P(G): a description of a graph glued along a clique is the union of descriptions of the pieces. It underlies the later decomposition theory of stable set polytopes (clique cutsets appear throughout the study of perfect and ttt-perfect graphs). Theorem 4.2 supplies a large class of facets with a combinatorial certificate, and was the starting point of the study of rank facets. Corollary 4.3 illustrates how polyhedral statements yield structural graph theory: the facet in Theorem 4.2 cannot coexist with a clique cutset.

All three results are proved in the paper, and Berge's corollary was known before it. None of them has, to the knowledge of this mission, a machine-checked proof; Mathlib has stable sets (IsIndepSet, indepNum), cliques and convex hulls, but no stable set polytope, no notion of facet via defining systems, and no α\alphaα-critical graphs. The mission produces these definitions and the formal proofs of Proposition 2.1, Theorems 4.1, 4.2 and Corollary 4.3.

Difficulty

Proposition 2.1 requires LP duality in the form "min = max with both optima attained" together with a separation argument that reduces arbitrary objectives to integral ones; the "if" direction fails without the nonnegativity rows, so the statement is sensitive to the exact form of the system. In Theorem 4.1 the inclusion P(G1∪G2)⊆P(G_1\cup G_2)\subseteqP(G1​∪G2​)⊆ (solutions of the union) is routine; the difficulty is the converse: a point whose restrictions lie in P(G1)P(G_1)P(G1​) and in P(G2)P(G_2)P(G2​) is a convex combination of stable sets on each side, and the two combinations have to be matched on the clique V1∩V2V_1\cap V_2V1​∩V2​ to produce stable sets of G1∪G2G_1\cup G_2G1​∪G2​. Theorem 4.2 concerns every defining linear system, so it cannot be proved by exhibiting one description; the natural route via "affinely independent tight points" is a different definition of facet and needs full-dimensionality of P(G)P(G)P(G) to be equivalent. Finally, the goal requires translating a cutset into a decomposition G=G1∪G2G=G_1\cup G_2G=G1​∪G2​ with complete intersection, and then showing that a union of two systems on smaller vertex sets cannot contain a positive multiple of ∑u∈Vxu≤α(G)\sum_{u\in V}x_u\le\alpha(G)∑u∈V​xu​≤α(G).

Formalization scope

  • Graphs are SimpleGraph V on a Fintype V with DecidableEq V. S(G)S(G)S(G) is a set of functions V → ℝ (incidence vectors of stable finsets), and P(G)P(G)P(G) is convexHull ℝ (stableVectors G).
  • Linear systems are indexed by finite types with real coefficients. "Defining linear system" is equality of the solution set with the polytope. IsFacet quantifies over all finite index types J : Type and all real systems whose solution set equals the polytope; it is the paper's definition, not the affinely-independent-points characterization.
  • Proposition 2.1: "min = max" means an attained minimum equal to the maximum; the hypothesis S≠∅S\neq\emptysetS=∅ is added (the paper's max⁡\maxmax over SSS needs it), and the nonnegativity rows are kept.
  • Theorem 4.1: the glued graph GGG lives on a type VVV with finsets V1∪V2=VV_1\cup V_2=VV1​∪V2​=V; G1,G2G_1,G_2G1​,G2​ are the induced subgraphs on V1,V2V_1,V_2V1​,V2​; "G1∩G2G_1\cap G_2G1​∩G2​ complete" is encoded as "V1∩V2V_1\cap V_2V1​∩V2​ is a clique of GGG and no edge joins V1−V2V_1-V_2V1​−V2​ to V2−V1V_2-V_1V2​−V1​", which is equivalent to the paper's hypotheses. The rows of each system are evaluated on the restriction of xxx.
  • Theorem 4.2: "G∗G^*G∗ connected" is Mathlib's Connected, which requires V≠∅V\neq\emptysetV=∅ — for V=∅V=\emptysetV=∅ the statement would be false. α(G)\alpha(G)α(G) is indepNum, cast to R\mathbb RR.
  • Corollary 4.3: "complete subgraph" is any clique set G.IsClique K, not only maximal cliques (the paper reserves "clique" for maximal complete subgraphs, but the corollary speaks of complete subgraphs), including K=∅K=\emptysetK=∅. "Cutset" means two vertices outside KKK joined by no path of G−KG-KG−K. The formalization "G−KG-KG−K is not connected" is ruled out: under Mathlib's convention it would make K=VK=VK=V a cutset and the statement false for K1K_1K1​ and K2K_2K2​.
  • Reusable infrastructure: the stable set polytope, facets via defining systems, Proposition 2.1 (shared with the other missions of this series), critical edges and α\alphaα-critical graphs. Contributions of intermediate lemmas (LP duality in the attained form, full-dimensionality of P(G)P(G)P(G), the cutset–decomposition equivalence) are welcome.

Selected references

  • V. Chvátal, On certain polytopes associated with graphs, J. Combin. Theory Ser. B 18 (1975) 138–154. https://doi.org/10.1016/0095-8956(75)90041-6
  • C. Berge, Graphes et hypergraphes, Dunod, Paris, 1970 (English translation: Graphs and Hypergraphs, North-Holland, 1973), Chapter 13, §3.
  • J. Edmonds, Maximum matching and a polyhedron with 0,1-vertices, J. Res. Nat. Bur. Standards 69B (1965) 125–130. https://doi.org/10.6028/jres.069B.013
  • M. W. Padberg, On the facial structure of set packing polyhedra, Math. Programming 5 (1973) 199–215. https://doi.org/10.1007/BF01580121
  • L. Lovász, Normal hypergraphs and the perfect graph conjecture, Discrete Math. 2 (1972) 253–267. https://doi.org/10.1016/0012-365X(72)90006-4
8 thms2 active usersReviewed
🏆Completed
CombinatoricsLinear OptimizationOperations Research·Captain: mikedeng1

On Certain Polytopes Associated with Graphs I: Clique Inequalities Define the Stable Set Polytope Exactly for Perfect GraphsResearch Paper

Motivation

Many combinatorial optimization problems ask for the best subset of a finite set subject to combinatorial side conditions. The polyhedral method replaces the finite family of feasible subsets by the convex hull of their incidence vectors and asks for an explicit system of linear inequalities describing that convex hull; once such a system is known, linear programming duality gives min–max theorems and certificates of optimality. The maximum weight stable set problem is the central test case: it is NP-hard in general, so no tractable complete description of its polytope is expected for all graphs, and the question becomes for which graphs a simple description suffices.

V. Chvátal's 1975 paper On certain polytopes associated with graphs answers this question for the two simplest families of valid inequalities, and its Section 3 connects the answer to Berge's perfect graphs. The result is a standard entry point to polyhedral combinatorics and is one of the ingredients behind the later polynomial-time algorithms for stable sets in perfect graphs by Grötschel, Lovász and Schrijver.

Timeline. Berge (1961) introduced perfect graphs and conjectured that a graph is perfect if and only if its complement is. Lovász (Normal hypergraphs and the perfect graph conjecture, Discrete Math. 1972; A characterization of perfect graphs, J. Combin. Theory Ser. B 1972) proved this, together with the characterization of perfection by α(GA) ω(GA)≥∣A∣\alpha(G_A)\,\omega(G_A)\ge|A|α(GA​)ω(GA​)≥∣A∣ and the invariance of perfection under vertex duplication. Fulkerson's theory of antiblocking polyhedra (1971–72) gave a polyhedral route to the same equivalence. Chvátal (received 1972, published 1975) gave the self-contained polyhedral statement formalized here, with a proof based on Lovász's two theorems.

Setting

A graph G=(V,E)G=(V,E)G=(V,E) is finite, undirected and loopless. A stable set is a set of vertices no two of which are adjacent. A clique is a maximal complete subgraph, and C(G)C(G)C(G) is the set of vertex sets W⊆VW\subseteq VW⊆V of the cliques of GGG.

S(G)⊆RVS(G)\subseteq\mathbb R^VS(G)⊆RV is the set of zero–one vectors x=(xu:u∈V)x=(x_u:u\in V)x=(xu​:u∈V) such that {u:xu=1}\{u:x_u=1\}{u:xu​=1} is stable, and the stable set polytope is P(G)=conv⁡S(G)P(G)=\operatorname{conv}S(G)P(G)=convS(G). A finite system of linear inequalities is a defining linear system of P(G)P(G)P(G) if its solution set is exactly P(G)P(G)P(G). For c∈RVc\in\mathbb R^Vc∈RV write cx=∑u∈Vcuxucx=\sum_{u\in V}c_ux_ucx=∑u∈V​cu​xu​.

GGG is perfect (the paper's α\alphaα-perfect) if for every zero–one vector ccc,

max⁡{cx:x∈S(G)}=min⁡{∑W∈C(G)λW: λW∈{0,1}, ∑W∈C(G), u∈WλW≥cu (u∈V)}.\max\{cx:x\in S(G)\}=\min\Big\{\sum_{W\in C(G)}\lambda_W:\ \lambda_W\in\{0,1\},\ \sum_{W\in C(G),\,u\in W}\lambda_W\ge c_u\ (u\in V)\Big\}.max{cx:x∈S(G)}=min{W∈C(G)∑​λW​: λW​∈{0,1}, W∈C(G),u∈W∑​λW​≥cu​ (u∈V)}.

For A⊆VA\subseteq VA⊆V, GAG_AGA​ is the induced subgraph, α(GA)\alpha(G_A)α(GA​) its stability number and ω(GA)\omega(G_A)ω(GA​) its clique number. To duplicate a vertex uuu is to add a new vertex u′u'u′ adjacent to all neighbours of uuu but not to uuu.

In the Lean development these are stableVectors G, stablePolytope G, maximalCliques G, IsPerfect G and duplicate G u in the namespace ChvatalPolytopes.Perfect.

Formalization targets

Goal: Theorem 3.1 (p. 140)

For every graph GGG, the system

−xu≤0(u∈V),∑u∈Wxu≤1(W∈C(G))-x_u\le0\quad(u\in V),\qquad\sum_{u\in W}x_u\le1\quad(W\in C(G))−xu​≤0(u∈V),u∈W∑​xu​≤1(W∈C(G))

is a defining linear system of P(G)P(G)P(G) if and only if GGG is perfect. Both directions are required.

Milestones

  1. Proposition 2.1 (pp. 139–140). For a finite nonempty set SSS of solutions of −xu≤0-x_u\le0−xu​≤0, ∑uaiuxu≤bi\sum_u a_{iu}x_u\le b_i∑u​aiu​xu​≤bi​ (i∈J)(i\in J)(i∈J), the solution set equals conv⁡S\operatorname{conv}SconvS if and only if for every c∈ZVc\in\mathbb Z^Vc∈ZV
max⁡{cx:x∈S}=min⁡{∑iλibi:λ≥0, ∑iλiaiu≥cu (u∈V)}.\max\{cx:x\in S\}=\min\Big\{\sum_i\lambda_ib_i:\lambda\ge0,\ \sum_i\lambda_ia_{iu}\ge c_u\ (u\in V)\Big\}.max{cx:x∈S}=min{i∑​λi​bi​:λ≥0, i∑​λi​aiu​≥cu​ (u∈V)}.
  1. Lovász's first theorem (§3, p. 140). Every nonperfect GGG has A⊆VA\subseteq VA⊆V with α(GA) ω(GA)<∣A∣\alpha(G_A)\,\omega(G_A)<|A|α(GA​)ω(GA​)<∣A∣.
  2. Lovász's second theorem (§3, p. 140). Duplicating a vertex of a perfect graph gives a perfect graph.
  3. Condition (iii) (p. 141). GGG is perfect if and only if for every c∈ZVc\in\mathbb Z^Vc∈ZV
max⁡{cx:x∈S(G)}=min⁡{∑W∈C(G)λW:λW≥0, ∑W∋uλW≥cu (u∈V)}.\max\{cx:x\in S(G)\}=\min\Big\{\sum_{W\in C(G)}\lambda_W:\lambda_W\ge0,\ \sum_{W\ni u}\lambda_W\ge c_u\ (u\in V)\Big\}.max{cx:x∈S(G)}=min{W∈C(G)∑​λW​:λW​≥0, W∋u∑​λW​≥cu​ (u∈V)}.

Significance

The result. The nonnegativity and clique inequalities are valid for P(G)P(G)P(G) for every graph. Theorem 3.1 says they are complete exactly for perfect graphs, so on perfect graphs the maximum weight stable set problem is a linear program over an explicitly described polytope, and weighted min–max theorems (stable sets versus clique covers) follow from LP duality. Combined with the perfect graph theorem, it gives a polyhedral characterization of perfect graphs, and it is the model for later results that identify graph classes by the facets of their stable set polytopes (odd-cycle inequalities, ttt-perfection, Section 7 of the same paper).

Formalizing it. The result is classical and proved. No machine-checked version of it is known, and Mathlib has neither perfect graphs nor stable set polytopes. The mission produces a formal statement of the polyhedral characterization with the paper's own notion of perfection, a formal version of the convex-hull/LP min–max principle (Proposition 2.1), which is reusable for any 0–1 polytope, and formal statements of the two theorems of Lovász that the proof relies on.

Difficulty

Proposition 2.1 reduces Theorem 3.1 to the equivalence of perfection with a fractional min–max for all integer weights. The obvious approach to that equivalence fails in both directions. From perfection one only gets the min–max for zero–one weights and zero–one multipliers; general integer weights do not reduce to zero–one weights by linearity, because the minimum over clique covers is not additive in ccc. Conversely, a fractional clique cover of value α\alphaα does not directly produce an integral one. The paper crosses this gap with two theorems of Lovász: a numerical certificate of nonperfection, and the invariance of perfection under vertex duplication. Both are substantial graph-theoretic results in their own right, and neither follows from the definitions by routine manipulation.

Proposition 2.1 itself needs separation of a point from a polytope by an integral objective and LP strong duality with the nonnegativity rows handled separately.

Formalization scope

Vertices form a finite type V with decidable equality; a graph is a SimpleGraph V. S(G)S(G)S(G) is a set of functions V → ℝ, and P(G)P(G)P(G) is Mathlib's convexHull ℝ of it. C(G)C(G)C(G) is the finset of finsets that are maximal among cliques (Maximal), as on the page; with V=∅V=\emptysetV=∅ the only maximal clique is ∅\emptyset∅. "Defining linear system" is an equality of sets. Every "max = min" is written out in full: there is a value mmm that is the maximum over SSS (attained and an upper bound), some feasible multiplier vector attains mmm, and every feasible multiplier vector has objective at least mmm. Clique multipliers are functions Finset V → ℝ read only on C(G)C(G)C(G).

Explicit conventions and added hypotheses:

  • In Proposition 2.1 the index set JJJ is a finite type, coefficients are real, the nonnegativity rows are kept as a separate conjunct x≥0x\ge0x≥0, and SSS is assumed nonempty (the paper's max⁡\maxmax over SSS needs it).
  • α\alphaα and ω\omegaω are Mathlib's indepNum and cliqueNum (natural numbers) of G.induce A.
  • The duplicated graph lives on Option V, with none the new vertex.

Perfection is the paper's zero–one min–max, not "the clique system defines P(G)P(G)P(G)" (which would make the goal a tautology) and not Berge's χ(GA)=ω(GA)\chi(G_A)=\omega(G_A)χ(GA​)=ω(GA​) (a different definition, equivalent only through the perfect graph theorem). P(G)P(G)P(G) is the convex hull of S(G)S(G)S(G), never the solution set of an inequality system.

Needed infrastructure, all reusable: integral separation from a rational polytope and LP strong duality in the form max⁡{cx:Ax≤b,x≥0}=min⁡{λb:λA≥c,λ≥0}\max\{cx:Ax\le b,x\ge0\}=\min\{\lambda b:\lambda A\ge c,\lambda\ge0\}max{cx:Ax≤b,x≥0}=min{λb:λA≥c,λ≥0}; basic facts about stable sets and maximal cliques of induced subgraphs and of duplicated graphs; invariance of IsPerfect under graph isomorphism and under taking induced subgraphs. Proofs of the Lovász milestones, which have independent value for a Mathlib theory of perfect graphs, are welcome.

Selected references

  • V. Chvátal, On certain polytopes associated with graphs, J. Combin. Theory Ser. B 18 (1975) 138–154. https://doi.org/10.1016/0095-8956(75)90041-6
  • L. Lovász, Normal hypergraphs and the perfect graph conjecture, Discrete Math. 2 (1972) 253–267. https://doi.org/10.1016/0012-365X(72)90006-4
  • L. Lovász, A characterization of perfect graphs, J. Combin. Theory Ser. B 13 (1972) 95–98. https://doi.org/10.1016/0095-8956(72)90045-7
  • D. R. Fulkerson, Anti-blocking polyhedra, J. Combin. Theory Ser. B 12 (1972) 50–71. https://doi.org/10.1016/0095-8956(72)90032-9
  • M. Grötschel, L. Lovász, A. Schrijver, Geometric Algorithms and Combinatorial Optimization, Springer, 1988. https://doi.org/10.1007/978-3-642-97881-4
8 thms2 active usersReviewed
🏆Completed
Operations ResearchTheoretical Computer Science·Captain: mikedeng1

The Design of Competitive Online Algorithms via a Primal-Dual Approach VII: Online Group Steiner TreesTextbook

Motivation

The group Steiner tree problem generalizes the ordinary Steiner tree problem: given a rooted tree and several groups of vertices, find a minimum-cost subtree that connects at least one vertex of each group to the root. It is a canonical instance of the generalized-connectivity family this survey studies in Chapter 11 — a family that also contains the online set-cover problem (Chapter 5 of this series) as a special case. Buchbinder and Naor's chapter shows how to convert the celebrated offline randomized-rounding algorithm of Garg, Konjevod and Ravi [56] into an online one, by imitating its per-edge coupling structure one iteration at a time as the online fractional solution (obtained from this survey's own Chapter 4 framework) evolves. This mission formalizes that online rounding scheme's three defining probabilistic guarantees and the resulting competitive-ratio theorem.

Setting

Fix a rooted tree T = (V, E, r) with non-negative edge costs c : E → ℝ, and k groups g₁, …, g_k ⊆ V, each request (r, gᵢ) arriving online. An online covering algorithm (from Chapter 4's framework, applied to the LP relaxation of this connectivity problem) maintains a monotonically increasing fractional weight w : E → ℝ on the edges, reinterpreted so that wₑ is the maximum flow that can be routed through e to any vertex of its subtree — a technical substitution needed so weights are monotone non-increasing along any root-to-leaf path, the property the rounding algorithm requires. At the end of each iteration in which some weights are augmented from w to w' = w + δ, the rounding algorithm processes every edge e with δₑ > 0, in topological order starting from the root, and randomly decides whether to add it to a growing random edge-cover C ⊆ E: deterministically, if w'ₑ > 1; via a single coin flip, if e is incident to the root or its parent edge's inclusion in C is already certain; via a coin flip conditional on the parent edge already being in C, otherwise. Because a coin is only ever flipped for a child once its parent is (or is already known to be) in C, C always induces a connected subtree containing the root.

Formalization targets

Theorem 11.4 (the goal, p. 231): there is a randomized online algorithm for the group Steiner problem in trees with competitive ratio O(log²n log k), where n is the number of leaves. It is built by running T independent trials of the rounding scheme in parallel and taking the union of the resulting covers, for T chosen (this mission's own explicit derivation — the book gives only the narrative "we run O(log k log N) independent trials... using simple probabilistic analysis") so that every group fails to be covered with probability at most 1/(2k), while the union's expected cost stays at T · log(n) · OPT.

Three milestones, in attack order, each stated exactly as the book states it (p. 230-231), with the book's own caveat "we state the main lemmas and omit the proofs" preserved — no in-source proof exists for any of the three beyond the algorithm's own description, so each is left sorry with no invented proof strategy:

  • Lemma 11.1: at the end of an iteration, ℙ[e ∈ C] = w'ₑ for every edge, and ℙ[e ∈ C] = 1 whenever wₑ > 1 already.
  • Lemma 11.2: the expected cost of C is at most ∑_{e∈T} cₑ w'ₑ (linearity of expectation applied to Lemma 11.1).
  • Lemma 11.3: for a group g of size at most N with total routable flow wg ≥ 1, the probability some vertex of g is covered is Ω(1/log N).

Significance

This is the survey's most involved application of the primal-dual framework: unlike Chapters 5, 9, 10 and 13, which round a single scalar decision per online step, the group Steiner algorithm must couple an entire iteration's worth of edge decisions so that the resulting random set stays a connected subtree — the coin-flip probabilities in the Algorithm box are exactly the minimal adjustment needed to keep marginal probabilities matching the fractional solution while preserving this connectivity invariant online. No formal development of the group Steiner problem (online or offline) was found on the platform as of 2026-09-20; this mission is the first.

Difficulty

Two distinct obstacles. First, faithfully representing "the probability that e ∈ C" for an online, coupled random process without assuming its proof: the mission represents the algorithm's random cover as an abstract finite probability distribution RandomCover E and states each lemma as an implication from the Algorithm box's three coupling rules (transcribed as hypotheses on marginal and conditional probabilities) to the claimed marginal or expected-value conclusion — capturing exactly what the book asserts without proof, rather than either assuming the conclusion trivially or constructing a full multi-iteration coupled process (which the source's own "we omit the proofs" indicates is genuinely nontrivial, citing [56]). Second, Theorem 11.4's own competitive ratio is stated in the book only asymptotically, with a purely narrative derivation ("we run O(log k log N) independent trials... we get a competitive ratio of O(log n log k log N)... probability at least 1 − 1/k") and no displayed formula anywhere in the chapter. Per this series' explicit-constants rule, this mission supplies its own explicit closed form for the number of trials T and the resulting bounds via a standard Chernoff/union-bound argument applied to Lemma 11.3's constant α; this derivation is the mission's own (documented below), not a transcription, since none exists in the source to transcribe.

Formalization scope

RandomCover E is a finite pmf p : Finset E → ℝ (Finset E itself finite since E is Fintype), with marg, condProb and expectedCost/probHits derived from it by ordinary Finset sums — no measure theory, since the sample space is always finite. RoundedTree E bundles parent : E → Option E (e(p)) and a non-negative cost. Lemma 11.3's wg (the flow routable to a group's vertices simultaneously) is left as hypothesis-supplied data rather than defined via an explicit max-flow formalization, which this mission's scope does not require (welcome contribution). Theorem 11.4's number of trials is the explicit closed form T = ⌈(log N · log(2k)) / α⌉, α the (existentially quantified, uniform) constant from Lemma 11.3; its coverage guarantee is 1 − 1/(2k) per group (this mission's own union-bound derivation), not the book's stated 1 − 1/k — the book reaches the stronger bound via an additional shortest-path fallback mechanism for any group the trials miss, which is out of scope here (welcome contribution, along with completing any of the four sorrys and formalizing Theorem 11.5's extension to general graphs via HST embedding, out of scope since it depends on an external embedding result not proved in this book).

Selected references

  • N. Buchbinder, J. Naor. The Design of Competitive Online Algorithms via a Primal-Dual Approach. Foundations and Trends in Theoretical Computer Science, 3(2-3):93-263, 2009. https://doi.org/10.1561/0400000024
  • N. Garg, G. Konjevod, R. Ravi. A polylogarithmic approximation algorithm for the group Steiner tree problem. Journal of Algorithms, 37(1):66-84, 2000 (cited as [56] in the survey).
  • N. Alon, B. Awerbuch, Y. Azar, N. Buchbinder, J. Naor. A general approach to online network optimization problems. ACM Transactions on Algorithms, 2(4):640-660, 2006 (cited as [4], the source of this chapter's results per the Notes, p. 231).
10 thms2 active usersReviewed
🏆Completed
CombinatoricsProbability·Captain: burkh4rt

The Bunkbed Conjecture is FalseResearch Paper

Motivation

Let G=(V,E)G=(V,E)G=(V,E) be a finite connected graph. In Bernoulli bond percolation each edge is independently retained with probability PPP and deleted otherwise, and one writes PP[u↔v]\mathbb{P}_P[u \leftrightarrow v]PP​[u↔v] for the probability that vertices uuu and vvv lie in the same component of the resulting random subgraph. Comparing such connection probabilities is a basic and genuinely hard problem: computing them exactly is #P\#\mathsf{P}#P-hard.

The bunkbed graph is built from two copies of GGG, joined by vertical edges called posts above a chosen set T⊆VT \subseteq VT⊆V of transversal vertices. Percolation is performed on the two copies while every post is retained. Writing vvv for a vertex in the lower copy and v′v'v′ for its counterpart upstairs, Kasteleyn conjectured in 1985 that being connected within a level is always at least as likely as crossing between levels.

The conjecture is intuitively compelling — crossing levels appears to require "using up" a post — and it resisted proof for forty years. A short timeline:

  • 1985 — Kasteleyn formulates the conjecture; it is recorded as Remark 5 of van den Berg–Kahn (2001), which is how the source cites it.
  • Positive results accumulate for special cases: wheels, complete graphs, complete bipartite graphs, graphs symmetric with respect to an automorphism exchanging uuu and vvv, one or two transversal vertices, and in the P↑1P \uparrow 1P↑1 limit.
  • 2024 — Hollom refutes the 333-uniform hypergraph analogue. This alone does not settle the graph case: it is impossible to simulate a single 333-hyperedge by bond percolation on a gadget graph.
  • 2025 — Gladkov, Pak and Zimin disprove the conjecture outright, with an explicit counterexample and without computer assistance.

Section 7 of the source is a candid account of a large-scale machine-learning-guided search that failed to find a counterexample, and of why the problem is unusually ill-suited to experimental testing.

Setting

Fix a finite graph with vertex set VVV and edge set EEE, and a retention function w:E→[0,1]w : E \to [0,1]w:E→[0,1] (the uniform case is w≡Pw \equiv Pw≡P). A configuration is a subset S⊆ES \subseteq ES⊆E of open edges, occurring with probability

P(S)  =  ∏e∈Sw(e)∏e∈E∖S(1−w(e)),\mathbb{P}(S) \;=\; \prod_{e \in S} w(e) \prod_{e \in E \setminus S} \bigl(1 - w(e)\bigr),P(S)=e∈S∏​w(e)e∈E∖S∏​(1−w(e)),

and P[u↔v]\mathbb{P}[u \leftrightarrow v]P[u↔v] is the total probability of those SSS for which uuu and vvv are connected in (V,S)(V, S)(V,S).

Given T⊆VT \subseteq VT⊆V, the bunkbed graph has vertex set V×{0,1}V \times \{0,1\}V×{0,1}. Its edges are a copy of EEE in each level together with a post {(t,0),(t,1)}\{(t,0),(t,1)\}{(t,0),(t,1)} for every t∈Tt \in Tt∈T. In bunkbed percolation the two level-copies are percolated independently while all posts are retained; Pbb\mathbb{P}^{\mathrm{bb}}Pbb denotes the resulting connection probabilities.

Formalization targets

Goal — the bunkbed conjecture is false

¬  (∀ G connected, ∀ T⊆V, ∀ 0<P<1, ∀ u,v∈V:PPbb[u↔v]  ≥  PPbb[u↔v′])\neg\;\Bigl(\forall\,G \text{ connected},\ \forall\,T \subseteq V,\ \forall\,0<P<1,\ \forall\,u,v \in V:\quad \mathbb{P}^{\mathrm{bb}}_P[u \leftrightarrow v] \;\ge\; \mathbb{P}^{\mathrm{bb}}_P[u \leftrightarrow v'] \Bigr)¬(∀G connected, ∀T⊆V, ∀0<P<1, ∀u,v∈V:PPbb​[u↔v]≥PPbb​[u↔v′])

Supporting target — the explicit counterexample (Theorem 1.2)

∃ G, ∣V∣=7,222, ∣E∣=14,442, ∣T∣=3, ∃ u,v:P1/2bb[u↔v]  <  P1/2bb[u↔v′]\exists\, G,\ |V| = 7{,}222,\ |E| = 14{,}442,\ |T| = 3,\ \exists\, u,v:\qquad \mathbb{P}^{\mathrm{bb}}_{1/2}[u \leftrightarrow v] \;<\; \mathbb{P}^{\mathrm{bb}}_{1/2}[u \leftrightarrow v']∃G, ∣V∣=7,222, ∣E∣=14,442, ∣T∣=3, ∃u,v:P1/2bb​[u↔v]<P1/2bb​[u↔v′]

Supporting target — hyperedge simulation (Lemma 4.1)

For the gadget GnG_nGn​ on n+1n+1n+1 vertices,

Pabc Pa∣b∣c  −  Pab∣c Pac∣b  >  (n1−P1+P−1)Pa∣bc.P_{abc}\,P_{a|b|c} \;-\; P_{ab|c}\,P_{ac|b} \;>\; \Bigl(n\tfrac{1-P}{1+P} - 1\Bigr) P_{a|bc}.Pabc​Pa∣b∣c​−Pab∣c​Pac∣b​>(n1+P1−P​−1)Pa∣bc​.

Significance

The result itself. A forty-year-old conjecture in percolation theory is false, and prior positive results are thereby sharpened rather than superseded: it becomes interesting to delimit exactly which families of graphs do satisfy the inequality. The refutation also settles the Counting, Weighted, Alternative and Computational variants listed in §8.1, and shows the random-cluster analogue cannot be pushed from q=2q=2q=2 down to q=1q=1q=1.

Formalizing it. Nothing here is open; the mission produces machine-checked versions of published results, and as a by-product the first percolation theory in Lean. Mathlib currently contains no percolation of any kind — no connection probabilities, no bunkbed graph, no hypergraph percolation. That infrastructure is reusable far beyond this mission. The source itself notes (§8.2) that its central combinatorial lemma was independently verified by computer; a formal proof would replace that check with a certificate.

Difficulty

The obvious approach — exhibit a small graph and compute both probabilities — is hopeless, and the source explains why at length. A graph with mmm edges has 2m2^m2m configurations; for the counterexample here the probability gap is on the order of 10−433110^{-4331}10−4331, so no sampling argument can detect it, and exact enumeration is out of reach. Section 7 records a substantial computational search that found nothing and, in hindsight, could not have.

The proof is instead structural, and its difficulty is concentrated in one place. Hollom's refutation of the hypergraph version cannot be transferred directly, because a single 333-hyperedge cannot be simulated by bond percolation on any gadget graph. The source's answer is to prove a robust version of Hollom's lemma (Lemma 3.3) which survives the inexact simulation that gadget graphs do provide, and this robustness is what Lemma 4.1's inequality quantifies. Lemma 3.3 is proved by constructing a weight-preserving involution on a refined configuration space — the technical heart, and the milestone a solver should expect to spend the most effort on.

Formalization scope

The development commits to the following conventions.

  • Everything is finite and rational-valued, hence computable: connection probabilities are ℚ and evaluate by #eval, and small instances close by decide.
  • A graph is given by an explicit edge Finset and realised through SimpleGraph.fromEdgeSet; connectivity is Mathlib's SimpleGraph.Reachable.
  • Percolation is a sum over the powerset of the edge set, weighted as displayed above, of a reachability indicator. Edge weights are per-edge (Sym2 V → ℚ), since the gadget GnG_nGn​ genuinely needs two different weights: its spokes are retained with probability 1−P1-P1−P and its path edges with probability PPP.
  • In the bunkbed, level 0 is the lower copy; posts over T are unconditionally present and are not percolated. The two levels are percolated independently.
  • ⚠️ Planarity is omitted from the goal. Theorem 1.2 asserts the counterexample is planar, and Mathlib has no notion of a planar graph — no IsPlanar, no Euler formula, no Kuratowski. Building one is a larger project than this mission. The formalized statement of Theorem 1.2 is therefore strictly weaker than the published one, and the goal is instead the negation of the conjecture, which is exactly the source's own "In particular, the BBC is false." Contributions adding planarity are welcome and would strengthen the milestone.
  • Ruling out a trivializing reading: the conjecture must be negated as stated, over all connected graphs, transversal sets and 0<P<10<P<10<P<1. Weakening it to a fixed graph, or to P∈{0,1}P \in \{0,1\}P∈{0,1}, or dropping connectivity, would make the refutation vacuous.

Infrastructure. Mathlib supplies SimpleGraph, boxProd, Reachable with a DecidableRel instance, fromEdgeSet, edgeFinset and Finset.powerset. It supplies no percolation, so this mission ships two definition files: Bernoulli bond percolation with the bunkbed construction and the five triple-partition probabilities, and hypergraph percolation with Hollom's hypergraph and the Wierman–Ziff five-state model. One known gap: Mathlib's Reachable decision procedure enumerates walks and is far too slow to evaluate the 646464-configuration check of Lemma 3.1 by decide. A solver will want a linear-time reachability procedure together with a proof that it agrees with Reachable; that is itself a worthwhile reusable contribution.

Selected references

  • J. van den Berg and J. Kahn, A correlation inequality for connection events in percolation, Ann. Probab. 29 (2001), 123–126 — Kasteleyn's conjecture appears as Remark 5.
  • T. Hollom, A new proof of the bunkbed conjecture in the p↑1p \uparrow 1p↑1 limit, Discrete Math. 347 (2024), 113711.
  • T. Hollom, The bunkbed conjecture is not robust to generalisation, arXiv:2406.01790 (2024).
  • T. Hutchcroft, P. Nizić-Nikolac, A. Kent, The bunkbed conjecture holds in the p↑1p \uparrow 1p↑1 limit, Comb. Probab. Comput. 32 (2023), 363–369.
  • N. Gladkov, I. Pak, A. Zimin, The bunkbed conjecture is false, Proc. Natl. Acad. Sci. USA 122 (2025), no. 24, e2420725122. doi:10.1073/pnas.2420725122; preprint arXiv:2410.02545.
  • J. C. Wierman and R. M. Ziff, Self-dual planar hypergraphs and exact bond percolation thresholds, Electron. J. Combin. 18 (2011).
  • G. R. Grimmett, Percolation, 2nd ed., Springer, 1999.
38 thms2 active usersReviewed
🏆Completed
Combinatorics·Captain: xbgxjack

Gross–Yellen Graph Theory I: Cayley's Tree FormulaTextbook

Motivation

Counting the trees on a fixed, labeled vertex set is one of the oldest enumeration problems in graph theory. Cayley stated the count in 1889 while enumerating isomers of saturated hydrocarbons — each tree corresponds to a possible carbon skeleton — and the same number reappears throughout combinatorics as the number of spanning trees of the complete graph KnK_nKn​, a special case of Kirchhoff's Matrix–Tree Theorem, and as the base case against which more refined tree-counting results (trees with a prescribed degree sequence, forests, spanning trees of general graphs) are measured.

Several independent proofs of the count are known — a direct recursive argument, a determinant computation via the Matrix–Tree Theorem, a double-counting argument on increasing trees — and each exposes a different piece of structure. This mission formalizes the proof via Prüfer sequences, due to Prüfer (1918): an explicit, computable bijection between labeled trees and certain finite sequences, presented here following Gross and Yellen, Graph Theory and Its Applications, 3rd ed. (CRC Press, 2018), Section 3.7, pp. 157–162.

Setting

Fix n≥2n \geq 2n≥2 and take the vertex set to be {1,…,n}\{1, \dots, n\}{1,…,n} (formalized as Fin n). A labeled tree on nnn vertices is a simple graph TTT on this vertex set that is connected and acyclic (Mathlib's SimpleGraph.IsTree). Two labeled trees are the same exactly when their edge sets coincide — the two 4-vertex trees in Figure 3.7.1 of the source are both paths but are different labeled trees, since the labels sit on different vertices.

A Prüfer sequence of length n−2n - 2n−2 is any sequence (s1,…,sn−2)(s_1, \dots, s_{n-2})(s1​,…,sn−2​) of labels drawn from {1,…,n}\{1, \dots, n\}{1,…,n}, repetitions allowed (so there are nn−2n^{n-2}nn−2 of them, by the rule of product).

The encoding of a tree TTT (Algorithm 3.7.1, p. 157) builds its Prüfer sequence by repeating, n−2n-2n−2 times: find the leaf (degree-one vertex) with the smallest label among those not yet removed, record the label of its neighbor, then delete that leaf. The decoding of a sequence (Algorithm 3.7.3, p. 159) reverses this: it rebuilds the tree edge by edge, at each step joining the smallest label not yet used and not appearing later in the sequence to the next label in the sequence, finishing by joining the two labels left over.

Formalization targets

Goal — Cayley's Tree Formula (Theorem 3.7.5, p. 162)

Nat.card⁡ {T:SimpleGraph(Fin n)∣T.IsTree}=n n−2,n≥2.\operatorname{Nat.card}\, \{T : \text{SimpleGraph}(\text{Fin } n) \mid T.\text{IsTree}\} = n^{\,n-2}, \qquad n \geq 2.Nat.card{T:SimpleGraph(Fin n)∣T.IsTree}=nn−2,n≥2.

This is the weakest stable statement: it is exactly the count Cayley identified, phrased without reference to any particular proof method, so it is not tied to properties of Prüfer sequences beyond what is needed to establish the count.

Significance

The identity itself is foundational: it is the base case of Kirchhoff's Matrix–Tree Theorem (which computes the analogous count for spanning trees of an arbitrary graph as a cofactor of its Laplacian) and it appears as an ingredient in random graph theory (counting spanning trees of KnK_nKn​ bounds the number of ways a random graph process can build a tree) and in the analysis of algorithms on trees, where the Prüfer encoding itself is used as a compact serialization of a labeled tree.

The result has been proved by hand for over a century, and its most classical proof (the one formalized here) has not, to this project's knowledge, appeared as a machine-checked Lean proof; Mathlib's Combinatorics.SimpleGraph library has the tree and acyclicity infrastructure this mission builds on, but not the Prüfer bijection or the count itself. Formalizing it here means constructing the encoding and decoding maps explicitly as computable, total recursive functions, and proving they are mutually inverse — the mission's four milestones below are exactly the four supporting results the source uses for this.

Difficulty

The obvious first attempt is to define the encoding by structural recursion, peeling one leaf per step, but this immediately runs into a dependent-typing obstacle: after deleting a vertex, the "remaining graph" naturally lives on a smaller vertex type, so a naive recursive definition changes type at every step and the final sequence's type (length n−2n-2n−2) is not visible to the recursion by construction. The formalization here sidesteps this by keeping the ambient vertex type fixed at Fin n throughout and tracking the shrinking set of "active" vertices as an ordinary Finset (Fin n) parameter, so the recursion is on a natural number step-counter rather than on the type itself; the price is that every step's "leaf" and "neighbor" must be picked out by an explicit Finset.filter/Finset.min computation whose well-definedness (there is always a smallest active leaf, and it always has a unique active neighbor) is exactly the content of Propositions 3.7.1 and 3.7.3 below, rather than something the type system gives for free. The inverse direction has the dual issue in reverse: decoding recurses structurally on the sequence while tracking a shrinking label set, and showing the two recursions undo each other (Proposition 3.7.4) requires the same induction run in both directions simultaneously.

Formalization scope

Trees are SimpleGraph (Fin n) satisfying Mathlib's SimpleGraph.IsTree; no alternate, weaker notion of "tree" is used. Prüfer sequences are functions Fin (n - 2) → Fin n (equivalently, by Fintype.card_fun, exactly the nn−2n^{n-2}nn−2 count needed) rather than List or Vector, so that the final counting step is immediate once the bijection is established. The encoding and decoding functions (pruferEncode, pruferDecode) are supplied as noncomputable definitions in Definitions.Def_GYGraphTheory — noncomputable only because Prop-level decidability of a general SimpleGraph.Adj is classical, not because the algorithm is non-constructive; every step is the literal Prüfer procedure, junk-valued (defaulting to label 0) outside its intended domain in exactly the way a hand proof would say "this step is meaningless once fewer than two active vertices remain." The four milestones give the precise faithful statements of the source's Propositions 3.7.1, Corollary 3.7.2, Proposition 3.7.3, and Proposition 3.7.4; the goal theorem is the immediate corollary once all four are in hand, via Fintype.card_congr and Fintype.card_fun. A trivializing formalization is not available here: IsTree is Mathlib's standard, non-vacuous notion, and the milestones pin down pruferEncode and pruferDecode to the source's specific algorithm rather than leaving the bijection's existence as a free black box. Beyond the four milestones, a full development needs: basic Finset/List manipulation lemmas relating pruferPeel's step-indexed recursion to pruferDecodeAux's list-indexed recursion (reusable in any future mission touching Prüfer-style encodings); and the final cardinality argument tying the bijection to n ^ (n - 2). Contributions connecting this formula to Mathlib's general Matrix–Tree machinery (if and when it exists) would be a natural, welcome extension but are out of scope for this mission.

Selected references

  • A. Cayley, A theorem on trees, Quart. J. Math. 23 (1889), 376–378.
  • H. Prüfer, Neuer Beweis eines Satzes über Permutationen, Archiv der Mathematischen Physik 27 (1918), 742–744.
  • J.L. Gross and J. Yellen, Graph Theory and Its Applications, 3rd ed., CRC Press, 2018, Section 3.7 "Counting Labeled Trees: Prüfer Encoding", pp. 157–162.
8 thms2 active usersReviewed
Combinatorics·Captain: hao jia

Weak Pentagon Colorings of Triangle-Free Cubic Graphs (OPG-434)Open Problem

Motivation

The weak pentagon problem asks for a five-label structure on the edges of every triangle-free cubic graph. Although its wording resembles proper edge coloring, properness is not part of the conjecture. Instead, each individual color class must meet enough odd cycles that deleting that class leaves a bipartite spanning graph. The problem connects odd-cycle transversals, cut structure, and homomorphisms to a fixed sixteen-vertex graph.

Robert Šámal recorded the conjecture on the Open Problem Garden in 2007. DeVos and Šámal proved that sufficiently high-girth subcubic graphs map to the Clebsch graph, with an explicit girth threshold in their theorem; that does not cover all triangle-free cubic graphs. The mission separates the general existence question from two exact reformulations that can be verified independently.

Setting

Let GGG be a finite simple triangle-free cubic graph. A five-edge coloring here is any symmetric assignment

c:E(G)⟶{1,2,3,4,5}.c:E(G)\longrightarrow\{1,2,3,4,5\}.c:E(G)⟶{1,2,3,4,5}.

It need not be proper or surjective. For a color iii, delete all edges with label iii while retaining every vertex. The coloring is a weak-pentagon coloring when each of the five resulting spanning graphs is bipartite.

Equivalently, each color class is an odd-cycle edge transversal: it meets the edge set of every simple odd cycle. The cycles are not required to be induced. This last distinction matters because an odd cycle may have a chord in the original graph and still survive in a deleted-edge spanning subgraph.

A second representation uses the sixteen four-bit vectors. Two vectors are adjacent when their Hamming distance is three or four. This graph is a model of the Clebsch graph. A graph homomorphism sends every edge of GGG to an adjacent pair in this target.

Formalization targets

Weak pentagon conjecture

The root target is

∀G finite, simple, triangle-free, and cubic,∃c:E(G)→[5] ∀i∈[5],G−c−1(i) is bipartite.\forall G\text{ finite, simple, triangle-free, and cubic}, \qquad \exists c:E(G)\to[5]\ \forall i\in[5], \quad G-c^{-1}(i)\text{ is bipartite}.∀G finite, simple, triangle-free, and cubic,∃c:E(G)→[5] ∀i∈[5],G−c−1(i) is bipartite.

No condition is imposed on adjacent edges receiving different labels.

Odd-cycle equivalence

For every fixed graph and fixed five-edge labeling,

(∀i, G−c−1(i) is bipartite)⟺(∀i, c−1(i) meets every odd cycle of G).\bigl(\forall i,\ G-c^{-1}(i)\text{ is bipartite}\bigr) \quad\Longleftrightarrow\quad \bigl(\forall i,\ c^{-1}(i)\text{ meets every odd cycle of }G\bigr).(∀i, G−c−1(i) is bipartite)⟺(∀i, c−1(i) meets every odd cycle of G).

This theorem is graph-general: triangle-freeness and cubicity delimit the root but are not needed for the equivalence.

Sixteen-vertex homomorphism formulation

For every finite simple graph GGG,

G has a weak-pentagon coloring⟺G⟶H16,G\text{ has a weak-pentagon coloring} \quad\Longleftrightarrow\quad G\longrightarrow H_{16},G has a weak-pentagon coloring⟺G⟶H16​,

where H16H_{16}H16​ has vertex set {0,1}4\{0,1\}^4{0,1}4 and edges at Hamming distance three or four. The statement concerns existence of some coloring and some homomorphism; it does not preserve an arbitrarily prescribed coloring.

Significance

The root theorem would establish a uniform parity decomposition for all triangle-free cubic graphs. The transversal form makes every odd cycle use all five colors. The homomorphism form replaces edge labels and five separate bipartitions by one bounded vertex certificate, allowing structural and computational methods to share an exact target.

Formalization prevents several nearby but inequivalent conjectures from being conflated. A weak-pentagon coloring can be improper. Checking only induced odd cycles of the original graph is insufficient. Mapping to a five-cycle is stronger and fails even for familiar positive examples. The explicit four-bit model also avoids relying on the name “Clebsch graph” without fixing its adjacency convention.

Difficulty

The equivalences reorganize the problem but do not create the required object. Five odd-cycle transversals must be pairwise compatible as color fibers; finding one small transversal is not enough. Local deletion and gluing methods must preserve existence of a whole homomorphism, not one chosen boundary assignment.

High-girth results leave finitely many short-cycle configurations only when the girth hypothesis is present. Triangle-free graphs may still contain overlapping five- and seven-cycles, and naive local recoloring can repair one odd cycle while breaking another color complement. Minimum-counterexample arguments also require care because deleting vertices preserves subcubicity but not cubicity.

Formalization scope

Colors are Fin 5. The coloring stores a symmetric value on ordered endpoint pairs, with nonedge values ignored. Cubic means every neighbor set has extended cardinality exactly three. A simple odd cycle is a cyclic list of at least three distinct vertices of odd length; it need not be induced. Bipartiteness is witnessed by a Boolean side assignment after one color is deleted.

The sixteen-vertex relation is defined directly on four-bit functions by Hamming distance, so its cardinality and adjacency are not hidden behind an imported graph name. The repository's transversal proof, normalization, and local homomorphism studies are candidate_only; the mission publishes their clean statements as proof obligations. Contributions may close either equivalence, formalize known high-girth results, prove restricted graph classes, or attack the root. A finite benchmark or a failure of one extension strategy is not a counterexample to the conjecture.

Selected references

  • R. Šámal, Weak pentagon problem, Open Problem Garden, 2007. https://www.openproblemgarden.org/op/weak_pentagon_problem
  • M. DeVos and R. Šámal, High-girth cubic graphs are homomorphic to the Clebsch graph, Journal of Graph Theory 66 (2011), 241–259. https://arxiv.org/abs/math/0602580
  • P. Kolman, B. Lidický, and J.-S. Sereni, On Minimum Fair Odd Cycle Transversal, 2010. https://kam.mff.cuni.cz/kamserie/clanky/2010/s956.pdf
  • Open Problem Garden / UnsolvedMath, OPG-434. https://www.unsolvedmath.com/problems/OPG-434
4 thms2 active usersReviewed
Combinatorics·Captain: hao jia

Two Acyclic Colors for Planar Orientations (OPG-169)Open Problem

Motivation

The dichromatic number of a digraph is the directed analogue of chromatic number: vertices of one color may be adjacent, but each color class must induce an acyclic digraph. The Two Color Conjecture asks whether every orientation of a planar graph has dichromatic number at most two. It is a natural directed-coloring counterpart to planar graph coloring, with the key difference that forbidden monochromatic objects are directed cycles rather than undirected edges.

Critical-digraph theory gives general degree restrictions on minimal counterexamples, and Li and Mohar proved two-colorability under the additional hypothesis that the directed girth is at least four. The unrestricted planar-orientation problem permits directed triangles, so that theorem is a genuine partial result rather than a solution. The project candidate develops the elementary least-order-counterexample consequences needed before any planar structural argument.

Setting

Let GGG be a finite simple planar graph. An orientation DDD assigns exactly one direction to every edge of GGG, with no loops, parallel arcs, or pair of opposite arcs. For X⊆V(D)X\subseteq V(D)X⊆V(D), the induced digraph D[X]D[X]D[X] retains every arc whose two endpoints lie in XXX.

A two-coloring is a map

c:V(D)⟶{0,1}.c:V(D)\longrightarrow\{0,1\}.c:V(D)⟶{0,1}.

It is valid when both induced digraphs D[c−1(0)]D[c^{-1}(0)]D[c−1(0)] and D[c−1(1)]D[c^{-1}(1)]D[c−1(1)] contain no directed cycle. The color classes need not be independent and either color may be unused.

Planarity belongs to the underlying undirected graph. Lean represents it by an injective straight-line embedding with noncrossing nonincident edges. Directed reachability is reflexive, so a singleton orientation is strongly connected under the usual length-zero convention, although it is also acyclic and hence cannot be a counterexample.

Formalization targets

Two Color Conjecture

The goal is

∀D an orientation of a finite simple planar graph,∃c:V(D)→{0,1},D[c−1(0)] and D[c−1(1)] are acyclic.\forall D\text{ an orientation of a finite simple planar graph}, \qquad \exists c:V(D)\to\{0,1\}, \quad D[c^{-1}(0)]\text{ and }D[c^{-1}(1)]\text{ are acyclic}.∀D an orientation of a finite simple planar graph,∃c:V(D)→{0,1},D[c−1(0)] and D[c−1(1)] are acyclic.

Disconnected graphs and empty color classes are included.

Least-order counterexample structure

A supporting theorem states that every counterexample of minimum vertex order is nonempty and strongly connected, and its underlying graph has minimum degree at least three:

D least-order counterexample⟹D strongly connected and δ(U(D))≥3.D\text{ least-order counterexample} \quad\Longrightarrow\quad D\text{ strongly connected and }\delta(U(D))\ge3.D least-order counterexample⟹D strongly connected and δ(U(D))≥3.

The minimum is taken over the full class of finite planar orientations, not over one embedding or an arc-minimal subclass.

Semidegree candidate

A stronger open milestone asks whether every vertex of such a least-order counterexample has at least two incoming and at least two outgoing neighbors. This is recorded separately because it is stronger than the degree-three conclusion and its repository proof remains candidate_only.

Significance

The root theorem would establish a universal two-color bound for planar orientations while allowing directed triangles and arbitrary local degree. A counterexample would demonstrate a sharp obstruction specific to directed cycles, not visible to ordinary planar coloring.

The formalized minimal-counterexample package is reusable regardless of the ultimate answer. Strong connectivity permits arguments inside one component, while the degree and semidegree restrictions narrow discharging configurations and finite searches. Encoding the full induced color classes prevents an invalid shortcut in which only a selected acyclic spanning subdigraph is checked.

Difficulty

Deleting a low-degree vertex is safe only if a valid coloring of the smaller graph can be extended without creating a monochromatic directed cycle through the restored vertex. For a chosen color, obstruction depends on both an incoming and an outgoing neighbor of that color together with a directed return path in the old color class. Merely seeing same-colored in- and out-neighbors is not sufficient.

Strongly connected components can be colored separately because their condensation is acyclic, but that observation only reduces a minimal counterexample to one component. Planarity alone does not eliminate directed triangles or the return paths that block both colors. Results assuming directed girth at least four therefore leave the central case untouched.

Formalization scope

A directed graph is a binary relation, coupled to a SimpleGraph by an orientation predicate that requires exactly one direction on every edge and forbids arcs on nonedges. A directed cycle is a cyclic list of at least three distinct vertices. A color class is acyclic when no such list lies entirely in that class. Strong connectivity is nonempty mutual reflexive-transitive reachability.

The least-order predicate quantifies over every smaller finite planar orientation in the same universe. It does not assert that a counterexample exists. Consequently, its structural theorems may be true vacuously if the root conjecture is true; the read-back must expose that conditional form.

Repository arguments, finite tables, and transport receipts are not machine-checked proofs. Contributions may formalize component gluing, exact vertex-extension criteria, degree or semidegree restrictions, planar reducible configurations, or the root. Any stronger minimum-degree claim must remain distinct from the admitted degree-three target until proved.

Selected references

  • Open Problem Garden / UnsolvedMath, OPG-169: The Two Color Conjecture. https://www.unsolvedmath.com/problems/OPG-169
  • B. Mohar, Eigenvalues and colorings of digraphs, Linear Algebra and its Applications, 2010. https://www.sfu.ca/~mohar/Reprints/Inprint/BM09_LAA09_Mohar_EigenvaluesandColorings.pdf
  • Z. Li and B. Mohar, Planar digraphs of digirth four are 2-colourable, Journal of Combinatorial Theory, Series B, 2017. https://arxiv.org/abs/1606.06114
4 thms2 active usersReviewed
Combinatorics·Captain: hao jia

Circular (20,7)-Coloring of Triangle-Free Subcubic Planar Graphs (OPG-401)Open Problem

Motivation

Circular coloring refines ordinary vertex coloring by placing colors on a cycle and measuring separation modulo the palette size. It records information that an ordinary chromatic-number bound can lose, and it interacts sharply with planarity, forbidden short cycles, and degree constraints. OPG-401 asks for a specific bound at the intersection of those themes: whether triangle-free planar graphs of maximum degree three always admit a circular coloring of ratio 20/720/720/7.

The question appears on Xuding Zhu's open-problem page and in the Open Problem Garden record. Nearby theorems on fractional coloring do not settle it: fractional chromatic number and circular chromatic number are distinct parameters, so the known fractional bounds for subcubic triangle-free graphs cannot simply be substituted for a circular-coloring proof. Work on circular recoloring likewise studies connectivity between colorings that already exist and does not supply the missing universal existence theorem.

Setting

For integers p≥2q>0p\ge 2q>0p≥2q>0, a (p,q)(p,q)(p,q)-coloring of a finite simple graph GGG is a map

φ:V(G)⟶Zp\varphi:V(G)\longrightarrow \mathbb Z_pφ:V(G)⟶Zp​

such that the shortest cyclic distance between φ(u)\varphi(u)φ(u) and φ(v)\varphi(v)φ(v) is at least qqq for every edge uvuvuv. Equivalently, using representatives in {0,…,p−1}\{0,\ldots,p-1\}{0,…,p−1}, the modular difference lies between qqq and p−qp-qp−q, inclusive. The circular chromatic number is the infimum of the ratios p/qp/qp/q for which such a coloring exists.

The root domain consists of all finite simple graphs that are planar, triangle-free, and subcubic. Disconnected and empty graphs are included. Planarity is represented by an injective straight-line drawing with no vertex in the interior of an edge and no intersection between nonincident edges. For finite simple graphs this is the standard straight-line form of planarity.

Formalization targets

Root question

The central target is

G finite, simple, planar, triangle-free, and Δ(G)≤3⟹G has a (20,7)-coloring.G\text{ finite, simple, planar, triangle-free, and }\Delta(G)\le 3 \quad\Longrightarrow\quad G\text{ has a }(20,7)\text{-coloring}.G finite, simple, planar, triangle-free, and Δ(G)≤3⟹G has a (20,7)-coloring.

This is exactly the claim χc(G)≤20/7\chi_c(G)\le 20/7χc​(G)≤20/7 in a form suitable for finite Lean data.

Local extension table

A reusable finite milestone freezes the local palette arithmetic. For a∈Z20a\in\mathbb Z_{20}a∈Z20​, let A(a)A(a)A(a) be the colors at cyclic distance at least seven from aaa. For all a,ba,ba,b,

∣A(a)∩A(b)∣=7−d20(a,b),A(a)∩A(b)≠∅  ⟺  d20(a,b)≤6.|A(a)\cap A(b)|=7-d_{20}(a,b), \qquad A(a)\cap A(b)\ne\varnothing\iff d_{20}(a,b)\le6.∣A(a)∩A(b)∣=7−d20​(a,b),A(a)∩A(b)=∅⟺d20​(a,b)≤6.

This includes equal colors, antipodal colors, tied symmetries, and all twenty residues. It is the exact obstruction encountered when extending a coloring over a deleted degree-two vertex while preserving every old color. The repository artifact supporting this formulation is only candidate_only; the mission publishes the statement as an open formal target rather than claiming it as proved.

Significance

A proof of the root theorem would give the requested sharp circular-coloring guarantee uniformly over a broad planar graph class. It would also separate the circular problem from nearby fractional results by constructing the stronger cyclic palette assignment itself. A counterexample, if one exists, would have to survive the combined restrictions of planarity, triangle-freeness, and maximum degree three, and would identify a genuine boundary for local extension methods.

Formalization adds two concrete assets. First, the cyclic-distance convention is fixed once, avoiding common errors involving directed residues, unrestricted integer lifts, or truncated subtraction. Second, graph reductions can be checked against a precise preservation obligation: deleting a vertex does not help unless the chosen coloring of the smaller graph has compatible boundary colors. The mission therefore welcomes both global structural arguments and verified finite boundary classifications, but finite enumeration alone is not accepted as a proof for arbitrary graph order.

Difficulty

The obvious induction on vertices fails at degree two. A coloring of G−vG-vG−v need not extend over vvv: if its two neighbors receive colors at cyclic distance at least seven, their two allowed sets can be disjoint. The local table characterizes this failure exactly but does not guarantee that a different coloring of G−vG-vG−v has favorable boundary values. Recoloring, reducible configurations, and planar discharging must therefore interact without silently assuming universal extension or connectivity of the recoloring graph.

A second source of difficulty is parameter confusion. Bounds for fractional colorings do not automatically yield (20,7)(20,7)(20,7)-colorings, and a theorem about mixing existing circular colorings does not prove existence. Any proposed bridge must be stated and verified explicitly.

Formalization scope

Lean represents colors by Fin 20 and uses the minimum of the two directed modular differences as cyclic distance. Edge compatibility includes both the lower bound 777 and the formal upper bound 131313. Triangle-freeness is literal absence of three mutually cyclic adjacent vertices, and subcubic means every neighbor set has extended cardinality at most three.

The definition bundle contains no theorem and no sorry. Draft theorem items contain exactly one := by sorry. The local candidate computations and GitHub transport records are provenance, not evidence that either theorem is proved. A complete contribution may formalize the finite palette table, a faithful reducible configuration, a recoloring lemma with all quantifiers exposed, or the root theorem. Every claimed universal reduction must retain finiteness, simplicity, planarity, triangle-freeness, and the degree bound.

Selected references

  • X. Zhu, Circular chromatic number of triangle-free planar graphs with maximum degree three, open-problem page. https://www.math.nsysu.edu.tw/~zhu/open-problems/chic-k3free-planar.htm
  • Open Problem Garden, OPG-401. https://www.unsolvedmath.com/problems/OPG-401
  • X. Zhu, The fractional version of Hedetniemi's conjecture is true, European Journal of Combinatorics, 2011. https://doi.org/10.1016/j.ejc.2011.03.004
  • Z. Dvořák, J.-S. Sereni, and J. Volec, Subcubic triangle-free graphs have fractional chromatic number at most 14/5, Journal of the London Mathematical Society, 2014. https://arxiv.org/abs/1301.5296
3 thms2 active usersReviewed
Combinatorics·Captain: hao jia

Six Colors for Star Edge-Coloring Subcubic Graphs (OPG-37271)Open Problem

Motivation

A star edge coloring is a proper edge coloring with an additional local restriction: no path or cycle of four edges may use only two colors. It sits between ordinary proper edge coloring and strong edge coloring. The problem is local enough to admit finite obstruction searches, but global enough that independently valid local colorings may fail to fit together.

Dvořák, Mohar, and Šámal proved in 2013 that every subcubic multigraph has a star edge coloring with seven colors and conjectured that six always suffice. The Open Problem Garden records the simple-graph version as OPG-37271. The value six would be best possible because the complete bipartite graph K3,3K_{3,3}K3,3​ has star chromatic index six.

Subsequent work has proved the six-color bound under additional hypotheses. Lei, Shi, and Song proved it for subcubic multigraphs with maximum average degree less than 5/25/25/2 and obtained a five-color result below 24/1124/1124/11. Casselgren, Granholm, and Raspaud proved the conjecture for cubic Halin graphs and several bipartite families. These results leave the unrestricted finite subcubic case as the target of this mission.

Setting

Let GGG be a finite simple undirected graph. An edge coloring assigns to each unordered edge of GGG one color from a finite palette. It is proper if two distinct edges incident with the same vertex always have different colors.

A simple path of four edges has five pairwise distinct vertices v0,v1,v2,v3,v4v_0,v_1,v_2,v_3,v_4v0​,v1​,v2​,v3​,v4​ and consecutive edges v0v1,v1v2,v2v3,v3v4v_0v_1,v_1v_2,v_2v_3,v_3v_4v0​v1​,v1​v2​,v2​v3​,v3​v4​. It is bichromatic in a proper coloring exactly when the first and third edges have the same color and the second and fourth edges have the same color. The path need not be induced: additional chords do not remove it. A four-cycle has four pairwise distinct vertices and is bichromatic under the analogous alternating equalities, including the closing edge.

A coloring is a star edge coloring when it is proper and contains neither type of bichromatic four-edge configuration. The star chromatic index χs′(G)\chi'_s(G)χs′​(G) is the least palette size admitting such a coloring. A graph is subcubic when every vertex has at most three neighbors.

Formalization targets

Goal — the six-color conjecture

The main target is the exact OPG-37271 assertion for finite simple graphs:

Δ(G)≤3⟹χs′(G)≤6.\Delta(G)\le 3 \quad\Longrightarrow\quad \chi'_s(G)\le 6.Δ(G)≤3⟹χs′​(G)≤6.

In the Lean statement, this is expressed directly as the existence of a coloring by Fin 6; no separate minimization operator is needed.

Known upper bound

The first literature milestone is the established seven-color theorem:

Δ(G)≤3⟹χs′(G)≤7.\Delta(G)\le 3 \quad\Longrightarrow\quad \chi'_s(G)\le 7.Δ(G)≤3⟹χs′​(G)≤7.

Formalizing this result provides a checked baseline and infrastructure that a six-color argument can reuse.

Sharpness at K3,3K_{3,3}K3,3​

The second literature milestone records both sides of the exact value

χs′(K3,3)=6.\chi'_s(K_{3,3})=6.χs′​(K3,3​)=6.

Thus the mission cannot be completed by weakening the goal to a larger universal constant.

Significance

A proof would determine the universal star chromatic-index bound for graphs of maximum degree three and would match the known lower-bound example K3,3K_{3,3}K3,3​. A counterexample, if one exists, would separate six from the established seven-color bound and identify the first genuinely seven-chromatic subcubic graph.

The formalization contributes a reusable definition of star edge coloring on Mathlib finite simple graphs. In particular, it fixes several conventions that are easy to blur in informal or computational work: forbidden paths have four edges rather than four vertices; they are simple but need not be induced; four-cycles are checked separately; and properness is not inferred merely from the absence of an alternating four-edge pattern. These definitions can support certified bounded searches, verified coloring certificates, and later formalizations of sparse or planar special cases.

The current research repository contains candidate-only local extension criteria and finite certificates. They may motivate future milestones, but they are not treated here as proofs of the conjecture, as admitted evidence, or as replacements for the literature milestones.

Difficulty

A direct greedy coloring argument can fail at a newly inserted edge because a color may be forbidden either by an adjacent edge or by a bichromatic four-edge path created several incidences away. Deleting a low-degree vertex and coloring the remaining graph therefore does not guarantee that the old coloring extends without recoloring. Explicit small configurations already witness failure of this zero-recoloring strategy while remaining globally six-colorable.

The known seven-color proof has one extra color available to break such interactions. Reaching six requires coordinating local recolorings or extracting stronger structure from a minimal counterexample. Finite searches can test configurations and produce certificates, but bounded verification alone cannot establish the universal quantifier over all finite graphs.

Formalization scope

The mission uses SimpleGraph with an arbitrary finite vertex type. Edges are unordered edge-set elements, and palettes are the labeled finite types Fin k. The graph need not be connected, cubic, planar, or nonempty; isolated vertices and the empty graph are included. “Subcubic” means degree at most three, not degree exactly three.

A forbidden path is represented by five pairwise distinct vertices and four consecutive adjacencies. It is not required to be induced. A forbidden cycle is represented separately by four pairwise distinct vertices and four cyclic adjacencies. Under the properness hypothesis, equality of opposite edge colors is precisely the bichromatic alternating pattern.

A complete development should supply the known seven-color theorem, certify the exact value for K3,3K_{3,3}K3,3​, and then address the six-color goal. Contributions formalizing faithful special cases or reusable extension lemmas are welcome, but sampled graph families and successful SAT searches remain finite evidence unless converted into a general Lean proof.

Selected references

  • Z. Dvořák, B. Mohar, and R. Šámal, Star chromatic index, Journal of Graph Theory 72 (2013), 313–326. arXiv:1011.3376
  • H. Lei, Y. Shi, and Z.-X. Song, Star chromatic index of subcubic multigraphs, Journal of Graph Theory 88 (2018), 566–576. arXiv:1701.04105
  • C. J. Casselgren, J. B. Granholm, and A. Raspaud, On star edge colorings of bipartite and subcubic graphs, Discrete Applied Mathematics 298 (2021), 21–33. arXiv:1912.02467
  • Open Problem Garden, Star chromatic index of subcubic graphs, OPG-37271. Problem page
  • Vibe Mathing candidate repository, OPG-37271 star chromatic index of subcubic graphs, candidate-only artifacts at commit ddc49c1978a196490702150bb75264793a658457. Repository
4 thms2 active usersReviewed
Algorithmic Game TheoryOperations Research·Captain: mikedeng1

The Price of Stability for Network Design with Fair Cost Allocation II: Two Players with a Common Terminal in an Undirected Graph Have Price of Stability at Most 4/3, and This Is TightResearch Paper

Motivation

In network design games, selfish users build a shared network and split the cost of every edge among the users of that edge. Anshelevich, Dasgupta, Kleinberg, Tardos, Wexler and Roughgarden (SIAM J. Comput. 38 (2008), DOI 10.1137/070680096) studied the fair connection game, in which the cost of an edge is shared equally (the Shapley value) among its users. In this game the worst equilibrium can cost kkk times the optimum, so the relevant measure is the price of stability: the ratio between the cheapest pure Nash equilibrium and the optimal centralized design. Their Theorem 2.1 bounds it by the harmonic number H(k)=1+12+⋯+1kH(k)=1+\frac12+\dots+\frac1kH(k)=1+21​+⋯+k1​ in every directed graph, and that bound is tight for directed graphs.

For undirected graphs the paper notes that H(k)H(k)H(k) is not tight and calls the correct bound "an interesting open problem". Its Section 4 settles the smallest case: two players with a common terminal. The general theorem gives H(2)=3/2H(2)=3/2H(2)=3/2 there; Claim 4.1 improves this to 4/34/34/3, and a three-node example shows that 4/34/34/3 is the right value.

Timeline. Rosenthal (1973) showed that congestion games have pure Nash equilibria through a potential function. Anshelevich et al. (FOCS 2004; journal version 2008) introduced the price of stability for the fair connection game, proved the H(k)H(k)H(k) bound and the two-player undirected bound 4/34/34/3 treated here. Subsequent work studied the undirected multi-player case, which remains without a matching upper and lower bound in general.

Setting

Let G=(V,E)G=(V,E)G=(V,E) be a finite undirected simple graph, with a cost ce≥0c_e\ge0ce​≥0 on every edge eee. There are two players, a common terminal s∈Vs\in Vs∈V and personal terminals t1,t2∈Vt_1,t_2\in Vt1​,t2​∈V. A strategy of player iii is a set of edges Si⊆ES_i\subseteq ESi​⊆E that connects tit_iti​ with sss: in the graph (V,Si)(V,S_i)(V,Si​), tit_iti​ and sss lie in the same connected component. A profile is a pair S=(S1,S2)S=(S_1,S_2)S=(S1​,S2​) of strategies.

Under fair cost sharing each edge is paid for equally by the players using it. With xe∈{1,2}x_e\in\{1,2\}xe​∈{1,2} the number of players whose strategy contains eee, player iii pays

Ci(S)=∑e∈Sicexe.C_i(S)=\sum_{e\in S_i}\frac{c_e}{x_e}.Ci​(S)=e∈Si​∑​xe​ce​​.

A pure Nash equilibrium is a profile in which no player can lower its payment by switching to another strategy while the other player's strategy stays fixed. The total cost of a profile is the cost of the network it builds,

cost(S)=∑e∈S1∪S2ce.\mathrm{cost}(S)=\sum_{e\in S_1\cup S_2}c_e .cost(S)=e∈S1​∪S2​∑​ce​.

For a set FFF of edges write cost(F)=∑e∈Fce\mathrm{cost}(F)=\sum_{e\in F}c_ecost(F)=∑e∈F​ce​. For a profile (S1,S2)(S_1,S_2)(S1​,S2​), the quantities x1=cost(S1∖S2)x_1=\mathrm{cost}(S_1\setminus S_2)x1​=cost(S1​∖S2​), x2=cost(S2∖S1)x_2=\mathrm{cost}(S_2\setminus S_1)x2​=cost(S2​∖S1​) and x3=cost(S1∩S2)x_3=\mathrm{cost}(S_1\cap S_2)x3​=cost(S1​∩S2​) split the total cost into the private and the shared parts.

The game is an instance of a congestion game, with per-user latency ce/xc_e/xce​/x on edge eee; the mission builds on the published congestion-game layer CongestionPoA.AsymSum.Model.

Formalization targets

Goal: Claim 4.1 and its tightness

If the game has a profile, then some pure Nash equilibrium SSS satisfies

cost(S) ≤ 43 cost(P)for every profile P.\mathrm{cost}(S)\ \le\ \tfrac43\,\mathrm{cost}(P)\qquad\text{for every profile }P.cost(S) ≤ 34​cost(P)for every profile P.

Moreover, in the three-node example (nodes s,t1,t2s,t_1,t_2s,t1​,t2​, edges (s,t1),(s,t2)(s,t_1),(s,t_2)(s,t1​),(s,t2​) of cost 222, edge (t1,t2)(t_1,t_2)(t1​,t2​) of cost 1+ε1+\varepsilon1+ε, with 0<ε<10<\varepsilon<10<ε<1) the cheapest pure Nash equilibrium costs exactly 444 and the optimum costs exactly 3+ε3+\varepsilon3+ε, so the ratio 4/(3+ε)4/(3+\varepsilon)4/(3+ε) approaches 4/34/34/3.

Milestones

  1. (4.1). From every profile (S1,S2)(S_1,S_2)(S1​,S2​), some pure Nash equilibrium (S1′,S2′)(S'_1,S'_2)(S1′​,S2′​) has y1+y2+32y3≤x1+x2+32x3y_1+y_2+\frac32y_3\le x_1+x_2+\frac32x_3y1​+y2​+23​y3​≤x1​+x2​+23​x3​, where yiy_iyi​ are the quantities of (S1′,S2′)(S'_1,S'_2)(S1′​,S2′​).
  2. Deviation inequalities. If (S1′,S2′)(S'_1,S'_2)(S1′​,S2′​) is a Nash equilibrium and each SiS_iSi​ is an inclusion-minimal strategy, then y1+y32≤x1+x2+y22+y32y_1+\frac{y_3}2\le x_1+x_2+\frac{y_2}2+\frac{y_3}2y1​+2y3​​≤x1​+x2​+2y2​​+2y3​​ and symmetrically for player 2.
  3. (4.2). Under the same hypotheses, y12+y22≤2x1+2x2\frac{y_1}2+\frac{y_2}2\le 2x_1+2x_22y1​​+2y2​​≤2x1​+2x2​.
  4. The three-node example, as in the second half of the goal.

Significance

The result shows that the price of stability of fair cost sharing depends on the network: the H(k)H(k)H(k) bound, tight for directed graphs, is not tight for undirected ones even with two players. It is the first undirected bound below H(k)H(k)H(k) and the starting point for the later study of undirected fair network design, where the question for many players is still open.

The theorem is proved in the paper; this mission formalizes it. A search of the Prove2Me library found no formalization of the price of stability of fair connection games. Beyond the theorem itself, the mission produces a reusable undirected layer over the congestion-game library: connectivity strategies stated with Mathlib's graph reachability, fair cost sharing as a congestion game, and the total-cost functional. A checked proof of the potential inequality (4.1) is the two-player case of the potential argument behind Theorem 2.1.

Difficulty

The obvious argument starts from an optimal solution, follows improving moves to an equilibrium and compares potentials. For two players this only yields the factor H(2)=3/2H(2)=3/2H(2)=3/2: the potential counts shared edges with weight 3/23/23/2, so a potential inequality alone cannot rule out an equilibrium in which both players share expensive edges. The improvement to 4/34/34/3 needs a second inequality, (4.2), obtained from a specific deviation of each player in the equilibrium, and that deviation is valid only because of the undirected structure: the private parts of the two optimal paths together connect t1t_1t1​ with t2t_2t2​, and the deviating player can then follow the other player's equilibrium route to sss. Making this connectivity claim precise for edge sets rather than drawn paths is where the formal work lies. It holds when the optimal strategies are inclusion-minimal, which is why the deviation milestones carry that hypothesis.

Formalization scope

  • Vertices form a Fintype with decidable equality; edges are unordered pairs Sym2 V; the graph is a SimpleGraph V. Edge costs are a real function c with 0 ≤ c e for every e.
  • A strategy of player i : Fin 2 (the paper's players 1 and 2 are 0 and 1) is a Finset of edges contained in G.edgeSet such that t i and s are Reachable in SimpleGraph.fromEdgeSet. Strategies are not restricted to paths.
  • The game is a CongestionGame from CongestionPoA.AsymSum.Model with latency ce/xc_e/xce​/x; profiles, player costs and pure Nash equilibria are that library's IsProfile, cost and IsPureNash.
  • "Price of stability at most 4/34/34/3" is stated in existence form: some pure Nash equilibrium costs at most 43\frac4334​ times every profile. A formalization quantifying over all equilibria would be false (the price of anarchy is 222), and one dropping the Nash condition would be trivial; neither is acceptable. The tightness half fixes a concrete instance and asserts both that an equilibrium of cost 444 exists and that every equilibrium costs at least 444.
  • The deviation inequalities and (4.2) assume inclusion-minimal reference strategies; this hypothesis is implicit in the paper and does not appear in the goal, which quantifies over all profiles.

Contributions welcome: a proof of the potential inequality (finite improvement paths in the two-player fair game), the graph-theoretic lemma that the symmetric difference of two simple paths with a common endpoint connects their other endpoints, and a computation of the three-node example.

Selected references

  • E. Anshelevich, A. Dasgupta, J. Kleinberg, É. Tardos, T. Wexler, T. Roughgarden, The Price of Stability for Network Design with Fair Cost Allocation, SIAM Journal on Computing 38(4):1602–1623, 2008. https://doi.org/10.1137/070680096
  • R. W. Rosenthal, A class of games possessing pure-strategy Nash equilibria, International Journal of Game Theory 2:65–67, 1973. https://doi.org/10.1007/BF01737559
  • D. Monderer, L. S. Shapley, Potential games, Games and Economic Behavior 14(1):124–143, 1996. https://doi.org/10.1006/game.1996.0044
  • G. Christodoulou, E. Koutsoupias, The price of anarchy of finite congestion games, STOC 2005, 67–73. https://doi.org/10.1145/1060590.1060600
9 thms1 active userReviewed
CombinatoricsOperations ResearchProbability+1·Captain: mikedeng1

Secretary Problems: Weights and Discounts 5: A 3e-Competitive Algorithm for the Graphic Matroid Secretary ProblemResearch Paper

Motivation

In the secretary problem, nnn items with nonnegative values arrive one at a time in a uniformly random order, and an online algorithm must decide on each arrival, irrevocably, whether to keep it. The classical version keeps one item; the rule that observes a 1/e1/e1/e fraction of the arrivals and then takes the first item better than everything seen picks the best item with probability at least 1/e1/e1/e (Ferguson 1989).

Babaioff, Immorlica and Kleinberg (SODA 2007; journal version J. ACM 2018) introduced the matroid secretary problem: the kept set must be independent in a known matroid. It models online auctions in which the feasible sets of winners have matroid structure, for example hiring along the edges of a network without closing a cycle. They gave a 161616-competitive algorithm when the matroid is graphic, i.e. the items are the edges of a graph and a set is feasible when it contains no cycle.

Timeline for graphic matroids:

  • 2007, Babaioff–Immorlica–Kleinberg: 161616-competitive.
  • 2009, Babaioff–Dinitz–Gupta–Immorlica–Talwar (SODA 2009, Theorem 1.5): 3e≈8.153e\approx 8.153e≈8.15-competitive, through a random reduction to partition matroids. This mission formalizes that result.
  • 2009, Korula–Pál (ICALP 2009): 2e2e2e-competitive, by a different reduction.

Setting

Let G=(V,E)G=(V,E)G=(V,E) be a finite simple graph. Each edge eee has a value v(e)≥0v(e)\ge 0v(e)≥0. A set S⊆ES\subseteq ES⊆E is independent in the graphic matroid of GGG if the graph (V,S)(V,S)(V,S) has no cycle. The offline optimum is

OPT(G,v)=max⁡{∑e∈Sv(e):S⊆E acyclic}.\mathrm{OPT}(G,v)=\max\Big\{\sum_{e\in S}v(e): S\subseteq E\ \text{acyclic}\Big\}.OPT(G,v)=max{e∈S∑​v(e):S⊆E acyclic}.

The edges arrive in a uniformly random order. An algorithm sees each edge and its value on arrival and decides at once whether to select it. The selected set must be acyclic. The algorithm is α\alphaα-competitive if OPT(G,v)≤α⋅E[value of the selected set]\mathrm{OPT}(G,v)\le\alpha\cdot\mathbb E[\text{value of the selected set}]OPT(G,v)≤α⋅E[value of the selected set] for every GGG and every v≥0v\ge 0v≥0.

A partition matroid on a subset U′⊆EU'\subseteq EU′⊆E is given by a family PPP of nonempty, pairwise disjoint parts with union U′U'U′: a set is independent when it lies in U′U'U′ and meets each part at most once. Its max-weight base has value val(P,v)=∑p∈Pmax⁡e∈pv(e)\mathrm{val}(P,v)=\sum_{p\in P}\max_{e\in p}v(e)val(P,v)=∑p∈P​maxe∈p​v(e).

Definition 5.1. A random partition μ\muμ (a probability distribution on such families, chosen from GGG alone) is an α\alphaα-partition scheme if every partition in its support has only acyclic independent sets, and for every v≥0v\ge 0v≥0,

OPT(G,v)≤α⋅EP∼μ[val(P,v)].\mathrm{OPT}(G,v)\le \alpha\cdot\mathbb E_{P\sim\mu}[\mathrm{val}(P,v)].OPT(G,v)≤α⋅EP∼μ​[val(P,v)].

The random partition of Lemma 5.3. Pick an edge {u,w}\{u,w\}{u,w} uniformly at random. With probability 12\tfrac1221​ colour uuu red and www blue, otherwise the reverse. Colour every other vertex red or blue independently with probability 12\tfrac1221​. Each red vertex xxx gets a part: the red-blue edges at xxx. Then repeat on the edges with both endpoints blue, with fresh randomness.

The algorithm. Draw the partition, let the edges arrive, and on each part run the classical secretary rule on that part's arrivals. Output all selected edges.

Formalization targets

Goal: Theorem 1.5

For every finite simple graph GGG and every v≥0v\ge 0v≥0:

  1. every possible output of the algorithm is an acyclic set of edges of GGG;
OPT(G,v)≤3e⋅E[ALG].\mathrm{OPT}(G,v)\le 3e\cdot\mathbb E[\mathrm{ALG}].OPT(G,v)≤3e⋅E[ALG].

Part 1 is needed for the statement to have content: an algorithm that selects every edge would otherwise satisfy part 2.

Milestones

  • Section 2, p. 4. On m≥1m\ge1m≥1 arrivals, the classical rule selects the maximum with probability at least 1/e1/e1/e.
  • Theorem 5.4, first clause. For a fixed partition PPP, the per-part rule outputs a set independent in the partition matroid, and val(P,v)≤e⋅Eπ[ALG]\mathrm{val}(P,v)\le e\cdot\mathbb E_\pi[\mathrm{ALG}]val(P,v)≤e⋅Eπ​[ALG].
  • Lemma 5.3, independence. Every partition the random construction can produce is a partition matroid on a subset of EEE, and each of its independent sets is a forest.
  • Lemma 5.3. The construction is a 333-partition scheme.
  • Section 5, p. 10. Any α\alphaα-partition scheme for a graphic matroid, combined with the per-part rule, gives a feasible, eαe\alphaeα-competitive algorithm.

Significance

The theorem shows that the graphic matroid secretary problem admits a constant-competitive algorithm with a small explicit constant. It does so through a reduction: a random partition matroid that is feasible for the original matroid and loses only a constant factor in expectation. The reduction separates the combinatorics (Lemma 5.3) from the online part (Theorem 5.4). The same framework gives algorithms for uniform and transversal matroids and for the weighted and discounted variants on any matroid with an α\alphaα-partition property.

The result is proved in the paper; it has not been formalized. The mission contributes a machine-checked version of the reduction, a formal treatment of a recursively defined random partition, and the classical secretary bound in a reusable finite form. The constant 3e3e3e is not the best known for graphic matroids (Korula–Pál improve it to 2e2e2e), so the formal goal is this algorithm's guarantee, not the best possible ratio.

Difficulty

The online half is routine once the classical bound is available: the relative order of the edges in each part is uniform, and the parts are disjoint. The difficulty is Lemma 5.3. The natural idea of using a fixed optimal forest to build the partition is ruled out because the partition must be chosen before the values are seen. The expectation bound must therefore hold for every valuation at once, for a law that depends on the graph only. The construction is recursive and random: its expected value is not a closed-form sum, and any bound has to be carried through the random sequence of blue-blue subgraphs. Feasibility needs an invariant across rounds: the parts created later live inside the blue-blue edges of every earlier round.

Formalization scope

  • Graph. A SimpleGraph on a Fintype vertex type with decidable adjacency. The edges are G.edgeFinset, and acyclicity of SSS is (SimpleGraph.fromEdgeSet S).IsAcyclic. Multigraphs are not covered.
  • Values. Values are a real function v : Sym2 V → ℝ with ∀ e, 0 ≤ v e; only the values on edges matter.
  • OPT is a Finset.sup' over acyclic subsets of the edge set. A partition is a finite family of nonempty, pairwise disjoint parts inside the edge set. Its max-weight base value is the sum of the part maxima.
  • Random partition. A PMF defined by well-founded recursion on the number of edges. Empty parts are dropped, and edges with two red endpoints are discarded.
  • Random order. The edges are numbered by a fixed enumeration. An arrival order is a permutation of the numbers, and expectation over the order is the average over all ∣E∣!|E|!∣E∣! permutations.
  • Classical rule. It samples ⌊m/e⌋\lfloor m/e\rfloor⌊m/e⌋ arrivals of a part with mmm edges. Ties are broken by preferring the smaller edge number among equal values.
  • Constants. Competitiveness is multiplicative (OPT≤3e⋅E[ALG]\mathrm{OPT}\le 3e\cdot\mathbb E[\mathrm{ALG}]OPT≤3e⋅E[ALG]), so a zero expectation is not a loophole.
  • Ruling out trivial formalizations. In Definition 5.1 the random partition is fixed before the valuation, and the independence requirement holds for every partition in its support. A partition allowed to depend on vvv would make every matroid 111-partitionable.

A complete development needs the classical secretary bound in finite form, the uniformity of induced sub-orders of a uniform permutation, expectations of PMF.bind along a well-founded recursion, and facts about forests in SimpleGraph. The first two, and a general graphic-matroid layer, are reusable beyond this mission. Proofs of any milestone, alternative proofs of Lemma 5.3, and extensions to the uniform and transversal cases of Theorem 5.2 are welcome.

Selected references

  • M. Babaioff, M. Dinitz, A. Gupta, N. Immorlica, K. Talwar, Secretary Problems: Weights and Discounts, Proc. 20th ACM-SIAM Symposium on Discrete Algorithms (SODA), 2009. https://doi.org/10.1137/1.9781611973068.135
  • M. Babaioff, N. Immorlica, R. Kleinberg, Matroids, secretary problems, and online mechanisms, SODA 2007, pp. 434–443. https://dl.acm.org/doi/10.5555/1283383.1283429
  • M. Babaioff, N. Immorlica, D. Kempe, R. Kleinberg, Matroid Secretary Problems, Journal of the ACM 65(6), 2018. https://doi.org/10.1145/3212512
  • N. Korula, M. Pál, Algorithms for Secretary Problems on Graphs and Hypergraphs, ICALP 2009, LNCS 5556. https://doi.org/10.1007/978-3-642-02930-1_42
  • T. S. Ferguson, Who solved the secretary problem?, Statistical Science 4(3), 1989. https://doi.org/10.1214/ss/1177012493
10 thms1 active userReviewed
CombinatoricsOperations Research·Captain: mikedeng1

The Strong Perfect Graph Theorem I: A Graph Is Perfect If and Only If It Is BergeResearch Paper

Motivation

A perfect graph is one whose coloring problem has a particularly sharp answer on every induced subgraph: the fewest colors needed is exactly the size of its largest clique. This makes a local obstruction, a clique, certify the optimum number of colors throughout the graph. Claude Berge proposed in 1961 that perfection could be recognized by the absence of two kinds of induced odd cycles, one in the graph and one in its complement. The equivalence became known as the strong perfect graph conjecture. Chudnovsky, Robertson, Seymour, and Thomas proved it in their 2006 paper, which also proves a structural decomposition of the graphs under study. The paper connects this question to graph coloring, Shannon capacity, and linear and integer programming. Chudnovsky et al., pp. 51–54

The earlier complement theorem was proved by Lovász in 1972 and appears as Theorem 1.1 in the paper. The strong conjecture remained unresolved for roughly four decades; the authors' Theorem 1.2 settles it. Their proof places a second result, Theorem 1.3, beside the equivalence: a graph with no forbidden odd hole or antihole must either belong to a basic class or admit one of several specified decompositions. The graph classes and decompositions are therefore part of the statement of the route to the main result, not merely vocabulary for a proof. Chudnovsky et al., pp. 52–56

Setting

All graphs here are finite and simple. The complement G‾\overline GG has the same vertices as GGG, and two distinct vertices are adjacent in G‾\overline GG exactly when they are not adjacent in GGG. For a vertex set XXX, the notation G∣XG|XG∣X means the induced subgraph on XXX. A clique is a set of pairwise adjacent vertices. Its largest possible size in a graph HHH is ω(H)\omega(H)ω(H), and χ(H)\chi(H)χ(H) is the minimum number of colors in a proper vertex coloring of HHH.

A hole is an induced cycle of length at least four. An antihole of GGG is a hole in G‾\overline GG. A graph is Berge if every hole and antihole has even length. Thus a perfect graph requires χ(G∣X)=ω(G∣X)\chi(G|X)=\omega(G|X)χ(G∣X)=ω(G∣X) for every X⊆V(G)X\subseteq V(G)X⊆V(G), while a Berge graph satisfies a restriction on induced cycles in both GGG and G‾\overline GG. “Induced” matters: a cycle with a chord is not a hole. Chudnovsky et al., pp. 51–52

For the structural milestones, a basic graph is a bipartite graph, the complement of one, a line graph of a bipartite graph, the complement of such a line graph, or a double split graph. The latter consists of paired vertices ai,bia_i,b_iai​,bi​ and cj,djc_j,d_jcj​,dj​ with the within-pair and between-pair adjacencies specified on pp. 52–53. A proper 2-join partitions the vertices into two sides with two prescribed complete cross-edge blocks, connected-component conditions on both sides, and a special odd-path condition. A proper homogeneous pair is a pair of vertex sets whose outside vertices split into four nonempty adjacency classes. A balanced skew partition has one side disconnected and the other disconnected in the complement, together with parity restrictions on induced paths and antipaths. Chudnovsky et al., pp. 52–54

Formalization targets

Theorem 1.2: perfection and the Berge property

The goal is the exact equivalence for every finite simple graph:

G is perfect⟺G is Berge.G\text{ is perfect}\quad\Longleftrightarrow\quad G\text{ is Berge}.G is perfect⟺G is Berge.

No order bound, chosen graph class, or decomposition hypothesis is attached to the goal. Chudnovsky et al., p. 52, 1.2

Structural and reduction milestones

Theorem 1.1 says that GGG perfect implies G‾\overline GG perfect. Theorem 1.5 says that a minimum imperfect graph, a Berge nonperfect graph with the smallest vertex count among all such graphs, cannot admit a balanced skew partition. Theorem 13.5 says that a recalcitrant graph—a Berge graph with the listed line-graph, double-split, 2-join, homogeneous-pair, and balanced-skew outcomes absent—has GGG or G‾\overline GG bipartite. Theorem 1.3 states the decomposition conclusion:

G Berge⟹G basic ∨ G or G‾ has a proper 2-join ∨ G has a proper homogeneous pair ∨ G has a balanced skew partition.G\text{ Berge}\Longrightarrow G\text{ basic}\ \lor\ G\text{ or }\overline G\text{ has a proper 2-join}\ \lor\ G\text{ has a proper homogeneous pair}\ \lor\ G\text{ has a balanced skew partition}.G Berge⟹G basic ∨ G or G has a proper 2-join ∨ G has a proper homogeneous pair ∨ G has a balanced skew partition.

The milestone order records the two reduction results, the later structural capstone, and the decomposition statement it yields. The paper's other section results that establish 13.5 are posed in the remaining missions of this series. Chudnovsky et al., pp. 52, 54–55, 154

Significance

Theorem 1.2 gives a forbidden-induced-subgraph characterization of perfect graphs. Its cycle condition is intrinsic to the graph and its complement; its coloring condition quantifies over every induced subgraph. Together with Theorem 1.3, it ties a numerical property of colorings to explicit graph structures and separations. The complement theorem and the exclusion of decompositions for a minimum imperfect graph explain why the structural alternatives have the strength needed for the equivalence. Chudnovsky et al., pp. 52–56

The mathematical theorem was proved in the cited paper. This mission poses its statements in Lean and seeks machine-checked proofs; the draft theorem declarations are open targets. The definition layer is useful beyond this mission: induced holes, Berge graphs, perfection, balanced skew partitions, and the decomposition predicates can support the later missions without changing what each source statement means. No machine-checked proof of these draft targets is claimed here.

Difficulty

The forward implication can be tested on induced odd cycles, but that observation does not settle the converse. Excluding odd holes and antiholes does not give an immediate coloring of an arbitrary induced subgraph. The paper instead establishes a detailed account of what a Berge graph can look like when it is not in a basic class. The delicate point in turning this account into Theorem 1.2 is that each decomposition outcome must be incompatible with a minimum imperfect graph. Ordinary skew partitions are too broad for that role; the balanced parity conditions are part of the statement. The structural conclusion 13.5 collects restrictions established across many later sections, so formalizing its prerequisites is a substantial graph-theoretic task. Chudnovsky et al., pp. 52–56, 154

Formalization scope

Lean uses SimpleGraph V with finite vertices, decidable vertex equality, and the Mathlib complement, induced subgraph, chromatic number, clique number, bipartiteness, and line graph. A hole is a list in cyclic order whose adjacency relation agrees exactly with the cycle edges; a path is likewise listed in one orientation with exactly its consecutive edges. Antiholes and antipaths use the complement graph. The empty vertex set is connected, matching p. 54. The double split partition is encoded by an equivalence from the four indexed parts to the whole vertex type, making disjointness and coverage explicit. A minimum imperfect graph is globally minimal by vertex count, among all finite Berge graphs.

No hypothesis beyond the paper's finite, simple graph convention is added to the goal or numbered milestones. In particular, “Berge” includes holes in both GGG and G‾\overline GG; “perfect” ranges over every induced subgraph; and the complement occurs only in those decomposition outcomes where the paper places it. A non-induced cycle or a missing complement condition would make the formal target different. The definitions and Lean proofs of the graph classes, their boundary cases, and the structural milestones are welcome contributions. Later missions pose the paper's intervening numbered results rather than duplicating them here.

Selected references

  • Maria Chudnovsky, Neil Robertson, Paul Seymour, and Robin Thomas, The strong perfect graph theorem, Annals of Mathematics 164 (2006), 51–229. DOI 10.4007/annals.2006.164.51.
15 thms1 active userReviewed
Combinatorics·Captain: mikedeng1

Correspondence Coloring and Its Application to List-Coloring Planar Graphs Without Cycles of Lengths 4 to 8: Every Planar Graph Without Cycles of Lengths 4 to 8 Is 3-ChoosableResearch Paper

Motivation

List colouring asks for a proper colouring of a graph in which every vertex takes its colour from its own prescribed list. A graph is kkk-choosable if such a colouring exists for every assignment of lists of size kkk. Choosability is harder to guarantee than colourability: planar triangle-free graphs are 3-colourable (Grötzsch) but not all are 3-choosable (Voigt, 1995), and planar graphs are 4-colourable but not all 4-choosable (Voigt, 1993), while every planar graph is 5-choosable (Thomassen, 1994).

A long line of work asks which forbidden cycle lengths make a planar graph 3-colourable or 3-choosable, motivated by Steinberg's conjecture (every planar graph without cycles of lengths 4 and 5 is 3-colourable), which was disproved by Cohen-Addad, Hebdige, Král', Li and Salgado (arXiv:1604.05108).

Timeline.

  • 1993–1995: Voigt constructs planar graphs that are not 4-choosable, and planar triangle-free graphs that are not 3-choosable.
  • 1994: Thomassen proves that every planar graph is 5-choosable; in 1995 he proves that planar graphs of girth at least 5 (no cycles of lengths 3 and 4) are 3-choosable.
  • 1996: Borodin proves that planar graphs without cycles of lengths 4 to 9 are 3-colourable; the proof also gives 3-choosability.
  • 2005: Borodin, Glebov, Raspaud and Salavatipour prove 3-colourability when cycles of lengths 4 to 7 are forbidden.
  • 2007: Voigt constructs a planar graph without cycles of lengths 4 and 5 that is not 3-choosable, so the list version of Steinberg's conjecture fails.
  • 2013: Borodin's survey records as open, for more than fifteen years, whether excluding cycles of lengths 4 to 8 suffices for 3-choosability.
  • 2018: Dvořák and Postle (arXiv:1508.03437, J. Combin. Theory Ser. B) answer the question positively. To do so they introduce correspondence colouring, now usually called DP-colouring, which has since become a standard tool.

Setting

All graphs are finite and simple. A list assignment LLL gives each vertex vvv a finite set L(v)L(v)L(v) of colours; an LLL-coloring is a map φ\varphiφ with φ(v)∈L(v)\varphi(v)\in L(v)φ(v)∈L(v) for all vvv and φ(u)≠φ(v)\varphi(u)\ne\varphi(v)φ(u)=φ(v) on every edge uvuvuv. GGG is kkk-choosable if an LLL-coloring exists whenever ∣L(v)∣=k|L(v)|=k∣L(v)∣=k for all vvv.

Write [k][k][k] for a set of kkk colours. A kkk-correspondence assignment CCC assigns to each edge uvuvuv a partial matching CuvC_{uv}Cuv​ between {u}×[k]\{u\}\times[k]{u}×[k] and {v}×[k]\{v\}\times[k]{v}×[k]. A CCC-coloring is a map φ:V(G)→[k]\varphi:V(G)\to[k]φ:V(G)→[k] such that (u,φ(u))(u,\varphi(u))(u,φ(u)) and (v,φ(v))(v,\varphi(v))(v,φ(v)) are not matched in CuvC_{uv}Cuv​ for any edge uvuvuv. Ordinary colouring is the case where every CuvC_{uv}Cuv​ matches equal colours.

For a closed walk W=v0v1…vmW=v_0v_1\dots v_mW=v0​v1​…vm​ (vm=v0v_m=v_0vm​=v0​), CCC is inconsistent on WWW if there are colours c0,…,cmc_0,\dots,c_mc0​,…,cm​ with (vi,ci)(vi+1,ci+1)∈E(Cvivi+1)(v_i,c_i)(v_{i+1},c_{i+1})\in E(C_{v_iv_{i+1}})(vi​,ci​)(vi+1​,ci+1​)∈E(Cvi​vi+1​​) for every i<mi<mi<m and c0≠cmc_0\ne c_mc0​=cm​; otherwise it is consistent on WWW. CCC is consistent if it is consistent on every closed walk. An edge uvuvuv is straight if CuvC_{uv}Cuv​ only matches equal colours, and full if CuvC_{uv}Cuv​ is a perfect matching.

A plane graph is a graph with a fixed drawing in the plane without crossings; its faces are the connected components of the complement of the drawing, and a vertex is incident with a face if it lies in the face's closure. A graph is planar if it has such a drawing.

Formalization targets

Goal: Theorem 1 (p. 3)

Every planar graph G without cycles of lengths 4 to 8 is 3-choosable.\text{Every planar graph } G \text{ without cycles of lengths } 4 \text{ to } 8 \text{ is } 3\text{-choosable.}Every planar graph G without cycles of lengths 4 to 8 is 3-choosable.

Milestones

  • Lemma 5 (p. 6): GGG is kkk-choosable iff GGG is CCC-colorable for every consistent kkk-correspondence assignment CCC.
  • Lemma 7 (p. 10): if every cycle of a subgraph HHH has full edges and CCC is consistent on it, then renaming colours at the vertices of HHH makes every edge of HHH straight.
  • Lemmas 10, 11, 12 (pp. 14–16): properties of a minimal counterexample to Theorem 8 — dense matchings, full triangles next to degree-three vertices, and every tetrad (a path of four degree-three vertices on a face whose end edges lie in triangles) meets the precoloured set.
  • Theorem 8 (p. 11): for a plane graph GGG without cycles of lengths 4 to 8, a set SSS with ∣S∣≤1|S|\le 1∣S∣≤1 or SSS = all vertices of one face, ∣S∣≤12|S|\le 12∣S∣≤12, and a 3-correspondence assignment CCC consistent on closed walks of length 3, every CCC-coloring of G[S]G[S]G[S] extends to a CCC-coloring of GGG.
  • Theorem 6 (p. 7): every planar graph without cycles of lengths 4 to 8 is CCC-colorable for every 3-correspondence assignment CCC consistent on every closed walk of length 3.

Theorem 8 implies Theorem 6 (S=∅S=\emptysetS=∅), and Theorem 6 with Lemma 5 implies Theorem 1.

Significance

The result. Theorem 1 settles Borodin's question and is still the best known forbidden-interval result for 3-choosability of planar graphs with triangles allowed. Theorem 6 is a strengthening in the correspondence setting, and Theorem 8, a precolouring-extension statement, is the form used for induction. The broader contribution is correspondence colouring itself: it allows reductions that identify vertices, which list colouring does not, and it has since been developed by Bernshteyn, Kostochka, Pron and many others as DP-colouring.

Formalizing it. The results are proved in the paper; none has a machine-checked proof. Mathlib has no planarity, no list colouring and no correspondence colouring. This mission produces the first formal definitions of kkk-choosability and correspondence colouring on the platform, the equivalence between list colouring and consistent correspondence colouring (Lemma 5), and a formal statement of the planar result, together with the paper's reduction lemmas as independent targets.

Difficulty

Lemma 5 and Lemma 7 are finite combinatorics. The main obstacle is Theorem 8. The natural list-colouring argument by reducible configurations fails: reductions for ordinary colouring identify two vertices, which is meaningless when their lists differ. Correspondence colouring removes that obstruction only when the identification does not create parallel edges or short cycles, and the main reduction (Lemma 12) needs consistency on triangles, which is why Theorem 6 carries that hypothesis. On the formal side, the proof uses planar topology: faces, the open disk bounded by a cycle, 2-connectedness of a minimal counterexample, and a discharging argument over faces that relies on Euler's formula. None of this exists in Mathlib.

Formalization scope

Conventions committed to in the Lean statements:

  • Graphs are SimpleGraph V on a Fintype vertex type; the paper's graphs are finite and simple (p. 3).
  • kkk-choosability quantifies over an arbitrary colour type α : Type and lists L : V → Finset α of cardinality exactly kkk.
  • A kkk-correspondence assignment is a relation M u c v d on V × Fin k × V × Fin k that lives on edges, is symmetric, and is a partial matching. The paper's [k]={1,…,k}[k]=\{1,\dots,k\}[k]={1,…,k} is Fin k.
  • Consistency is defined on Mathlib closed walks G.Walk v v through getVert. The paper's example of Figure 1(a) (p. 5) was checked against this definition by a sorry-free local proof.
  • Planarity and plane graphs use straight-line drawings in ℝ × ℝ: injective vertex positions, no vertex on a non-incident edge, and disjoint segments for edges with no common end. These are the clauses of the platform's OPG401.IsPlanar. By Fáry's theorem this is equivalent to planarity for finite simple graphs, and every plane graph has a straight-line drawing with the same faces. Faces are components of the complement of the drawing, incidence is membership in the closure, and the outer face is the unbounded face. Theorem 8 is stated for every drawing and any face, not only the outer one.
  • "Renaming on vertices of XXX" between two 3-correspondence assignments is a permutation of [k][k][k] at each vertex of XXX, the identity elsewhere. This is exactly the effect of the paper's sequences of single renamings.
  • A target (p. 11) has its vertex type in Type. The measure s(B)s(B)s(B) counts ordered pairs, which gives the same lexicographic order. A minimal counterexample is minimal among all targets of this kind.

Formalizations that would trivialize or change the problem are ruled out:

  • a girth bound, which excludes triangles;
  • lists drawn from a fixed 3-element palette (3-colourability);
  • a planarity surrogate such as an edge bound;
  • a correspondence that is not a matching;
  • consistency without the closing condition c0≠cmc_0\ne c_mc0​=cm​;
  • consistency on all closed walks in Theorems 6 and 8.

Infrastructure needed and reusable beyond this mission: planar straight-line drawings and their faces (Euler's formula, the Jordan curve theorem for polygons), 2-connectivity and facial cycles, and a DP-colouring library (renaming, consistency, Lemma 5). Contributions to any of these are welcome. So are proofs of Lemma 5 and Lemma 7, which need no topology.

Selected references

  • Z. Dvořák, L. Postle, Correspondence coloring and its application to list-coloring planar graphs without cycles of lengths 4 to 8, J. Combin. Theory Ser. B (2018); cited version arXiv:1508.03437v2 (2016). https://arxiv.org/abs/1508.03437
  • O. V. Borodin, Colorings of plane graphs: a survey, Discrete Math. 313 (2013) 517–539.
  • O. V. Borodin, Structural properties of plane graphs without adjacent triangles and an application to 3-colorings, J. Graph Theory 21 (1996) 183–186.
  • O. V. Borodin, A. N. Glebov, A. Raspaud, M. R. Salavatipour, Planar graphs without cycles of length from 4 to 7 are 3-colorable, J. Combin. Theory Ser. B 93 (2005) 303–311.
  • V. Cohen-Addad, M. Hebdige, D. Král', Z. Li, E. Salgado, Steinberg's conjecture is false, J. Combin. Theory Ser. B (2017). https://arxiv.org/abs/1604.05108
  • C. Thomassen, Every planar graph is 5-choosable, J. Combin. Theory Ser. B 62 (1994) 180–181.
  • C. Thomassen, 3-list-coloring planar graphs of girth 5, J. Combin. Theory Ser. B 64 (1995) 101–107.
  • M. Voigt, List colourings of planar graphs, Discrete Math. 120 (1993) 215–219.
  • M. Voigt, A not 3-choosable planar graph without 3-cycles, Discrete Math. 146 (1995) 325–328.
  • M. Voigt, A non-3-choosable planar graph without cycles of length 4 and 5, Discrete Math. 307 (2007) 1013–1015.
16 thms1 active userReviewed
CombinatoricsOperations Research·Captain: mikedeng1

Graph Minors. V. Excluding a Planar Graph: Bounded Tree-Width without a Planar MinorResearch Paper

Motivation

Tree-width measures how closely a graph resembles a tree. Graphs of bounded tree-width admit dynamic-programming algorithms for problems that are NP-hard in general (colouring, Hamiltonicity, and every property expressible in monadic second-order logic, by Courcelle's theorem), which is why the parameter is central to parameterized complexity and to combinatorial optimization on sparse networks. The question this mission addresses is structural: which excluded substructures force bounded tree-width?

The answer is the Excluded Grid Theorem of Robertson and Seymour: excluding a fixed graph HHH as a minor bounds the tree-width if and only if HHH is planar. The "only if" direction is easy, since grids are planar and have unbounded tree-width. The "if" direction is the content of Graph Minors. V. Excluding a Planar Graph (J. Combin. Theory Ser. B 41 (1986) 92–114). It is a cornerstone of the Graph Minors series that culminates in the Robertson–Seymour theorem (graphs are well-quasi-ordered by the minor relation), and it underlies polynomial-time minor testing for planar HHH (Graph Minors XIII) and the Erdős–Pósa-type results of Sect. 8 of the same paper.

Timeline. Robertson and Seymour, Graph Minors V (1986): tree-width at most an explicit, iterated-exponential function of the grid size. Robertson, Seymour and Thomas, Quickly excluding a planar graph (JCTB 62, 1994): bound 2O(θ5)2^{O(\theta^5)}2O(θ5) for the θ\thetaθ-grid. Chekuri and Chuzhoy (J. ACM 2016): the first polynomial bound. Chuzhoy and Tan (JCTB 2021): O(θ9 polylog θ)O(\theta^9\,\mathrm{polylog}\,\theta)O(θ9polylogθ).

Setting

Graphs are finite. A graph HHH is a minor of GGG if HHH can be obtained by contraction from a subgraph of GGG; equivalently, there are nonempty, pairwise disjoint vertex sets β(w)⊆V(G)\beta(w)\subseteq V(G)β(w)⊆V(G), one per vertex www of HHH, each inducing a connected subgraph, such that every edge ababab of HHH is matched by an edge of GGG between β(a)\beta(a)β(a) and β(b)\beta(b)β(b).

A tree-decomposition of GGG is a tree TTT together with bags Xt⊆V(G)X_t\subseteq V(G)Xt​⊆V(G) (t∈V(T)t\in V(T)t∈V(T)) such that every vertex lies in some bag, both ends of every edge lie in a common bag, and Xt∩Xt′′⊆Xt′X_t\cap X_{t''}\subseteq X_{t'}Xt​∩Xt′′​⊆Xt′​ whenever t′t't′ lies on the path of TTT between ttt and t′′t''t′′. Its width is max⁡t(∣Xt∣−1)\max_t(|X_t|-1)maxt​(∣Xt​∣−1), and the tree-width tw(G)\mathrm{tw}(G)tw(G) is the least width of a tree-decomposition of GGG.

The θ\thetaθ-grid has vertex set {vij:1≤i,j≤θ}\{v_{ij}: 1\le i,j\le\theta\}{vij​:1≤i,j≤θ}, with vijv_{ij}vij​ adjacent to vi′j′v_{i'j'}vi′j′​ exactly when ∣i−i′∣+∣j−j′∣=1|i-i'|+|j-j'|=1∣i−i′∣+∣j−j′∣=1. For even θ≥6\theta\ge 6θ≥6, Fθ\mathcal F_\thetaFθ​ is the class of graphs with no minor isomorphic to the θ\thetaθ-grid. Every planar graph HHH is a minor of some even grid of size at least 6; θ(H)\theta(H)θ(H) denotes the least such size.

The paper fixes explicit parameters. For k≥2k\ge 2k≥2: α(2,n)=n+1\alpha(2,n)=n+1α(2,n)=n+1 and α(k,n)=2nθ4+α(k−1,2nθ4+n+1)\alpha(k,n)=2^{n\theta^4}+\alpha(k-1,2^{n\theta^4}+n+1)α(k,n)=2nθ4+α(k−1,2nθ4+n+1). Then θ1=2α(θ2/2,θ2/2)\theta_1=2\alpha(\theta^2/2,\theta^2/2)θ1​=2α(θ2/2,θ2/2); ϕθ1=θ2/2\phi_{\theta_1}=\theta^2/2ϕθ1​​=θ2/2 and ϕk=ϕk+12ϕk+1θ2\phi_k=\phi_{k+1}2^{\phi_{k+1}\theta^2}ϕk​=ϕk+1​2ϕk+1​θ2; θ2=ϕ0+2ϕ1+⋯+2ϕθ1−1+ϕθ1\theta_2=\phi_0+2\phi_1+\dots+2\phi_{\theta_1-1}+\phi_{\theta_1}θ2​=ϕ0​+2ϕ1​+⋯+2ϕθ1​−1​+ϕθ1​​; θ3=(θ2/2)θ2−1\theta_3=(\theta^2/2)^{\theta_2-1}θ3​=(θ2/2)θ2​−1; θ4=θ2(θ3θ2)+12θ2(θ3θ2/2)\theta_4=\theta_2\binom{\theta_3}{\theta_2}+\tfrac12\theta^2\binom{\theta_3}{\theta^2/2}θ4​=θ2​(θ2​θ3​​)+21​θ2(θ2/2θ3​​); θ5=(θ2/2)θ4−1\theta_5=(\theta^2/2)^{\theta_4-1}θ5​=(θ2/2)θ4​−1; θ6=θ3(θ5θ4)+12θ2(θ5θ2/2)\theta_6=\theta_3\binom{\theta_5}{\theta_4}+\tfrac12\theta^2\binom{\theta_5}{\theta^2/2}θ6​=θ3​(θ4​θ5​​)+21​θ2(θ2/2θ5​​); θ7=α(θ5,θ6)\theta_7=\alpha(\theta_5,\theta_6)θ7​=α(θ5​,θ6​); θ8=3θ5(3θ5−1)/4\theta_8=3\theta_5(3^{\theta_5}-1)/4θ8​=3θ5​(3θ5​−1)/4; θ9=θ7(θ8+1)+1\theta_9=\theta_7(\theta_8+1)+1θ9​=θ7​(θ8​+1)+1.

Two auxiliary structures carry the argument. An (m,n)(m,n)(m,n)-web is a pair of families of paths (A1,…,Am)(A_1,\dots,A_m)(A1​,…,Am​), (B1,…,Bn)(B_1,\dots,B_n)(B1​,…,Bn​), each family vertex-disjoint, every AiA_iAi​ meeting every BjB_jBj​, and all m+nm+nm+n paths pairwise edge-disjoint. An (m,n)(m,n)(m,n)-mesh is the same with arbitrary connected subgraphs in place of paths and without edge-disjointness.

Formalization targets

Goal: (2.1)

For every finite planar graph HHH and every finite graph GGG,

H⪯̸G  ⟹  tw(G)≤θ9(θ(H)).H \not\preceq G \;\Longrightarrow\; \mathrm{tw}(G)\le\theta_9\bigl(\theta(H)\bigr).H⪯G⟹tw(G)≤θ9​(θ(H)).

Principal theorem: (7.3)

For even θ≥6\theta\ge 6θ≥6 and G∈FθG\in\mathcal F_\thetaG∈Fθ​,

tw(G)≤θ9.\mathrm{tw}(G)\le\theta_9.tw(G)≤θ9​.

Intermediate targets

  • Sect. 2: every planar graph is a minor of some even θ\thetaθ-grid, θ≥6\theta\ge 6θ≥6.
  • (3.2): nnn disjoint connected subgraphs meeting each of V1,…,VkV_1,\dots,V_kV1​,…,Vk​, or a hitting set of size <α(k,n)<\alpha(k,n)<α(k,n).
  • (4.1), (4.2), (4.4), (4.5), (4.6): no (θ2,θ2)(\theta_2,\theta_2)(θ2​,θ2​)-web in G∈FθG\in\mathcal F_\thetaG∈Fθ​.
  • (5.1), (5.2), (5.3): no (θ5,θ6)(\theta_5,\theta_6)(θ5​,θ6​)-mesh in G∈FθG\in\mathcal F_\thetaG∈Fθ​.
  • (6.2), (6.3), (6.4): weighted and unweighted balanced-cut lemmas valid for all graphs.
  • (7.1), (7.2): separations of order ≤θ7\le\theta_7≤θ7​ splitting V(G)V(G)V(G), or any X⊆V(G)X\subseteq V(G)X⊆V(G), in ratio 1−θ8−11-\theta_8^{-1}1−θ8−1​.

Significance

The theorem converts a qualitative exclusion (no HHH minor) into a quantitative width bound, and it is the entry point of the structure theory of minor-closed classes: every minor-closed class excluding a planar graph has bounded tree-width, and hence all MSO-definable problems on it are solvable in linear time. It is used in the proof of the graph minor theorem, in minor testing, and in the Erdős–Pósa property for planar minors (Sect. 8 of the paper).

The result is proved and classical; to our knowledge it has not been machine-checked in any proof assistant, and Mathlib has no graph minors, tree-decompositions or Menger's theorem. A formalization produces reusable definitions (branch-set minors, tree-decompositions, separations, grids) and a checked proof of the paper's explicit bound. The goal is stated with the paper's constant θ9\theta_9θ9​, not an optimized one; later improvements are stronger variants, not replacements.

Difficulty

The obvious attempt, building a tree-decomposition greedily from small separations, fails because nothing forces small balanced separations to exist. The whole argument supplies them: a graph without a large grid minor has no large mesh (5.3), and a graph with no large mesh has a balanced separation of bounded order (7.1). The step from no grid to no mesh goes through webs and spiders (Sect. 4) and relies on two results from Graph Minors I ((3.1) and (4.3) of the paper, cited without proof), which themselves depend on Menger's theorem. The balanced-cut lemmas (6.2)–(6.4) rest on Tutte's ordering of 2-connected graphs. None of this infrastructure exists in Mathlib.

Formalization scope

Graphs are Mathlib SimpleGraphs on finite types (Fintype V, DecidableEq V). The paper allows loops and multiple edges; for GGG this changes nothing, since every notion used depends only on adjacency, and for HHH in the goal it specializes the theorem to simple planar graphs. Minors use the branch-set model (IsMinor); planarity (IsPlanar) is the existence of a crossing-free drawing in R2\mathbb R^2R2, mirroring the platform's FourColor.IsPlanar. Tree-width is not defined as an infimum; "tree-width at most www" (TreewidthLE) is the existence of a tree-decomposition with all bags of size ≤w+1\le w+1≤w+1 over a finite tree. θ(H)\theta(H)θ(H) enters the goal as a hypothesis IsLeast {t | Even t ∧ 6 ≤ t ∧ IsMinor H (grid t)} θ, which is satisfiable for every planar HHH by the Sect. 2 milestone, so the goal is not vacuous. Every statement of Sects. 3–7 that mentions θ\thetaθ carries the standing assumption "θ\thetaθ even, θ≥6\theta\ge 6θ≥6" as hypotheses. Rational bounds such as (1−θ8−1)∣V(G)∣(1-\theta_8^{-1})|V(G)|(1−θ8−1​)∣V(G)∣ and 2(3k−1)−1∣V(G)∣2(3^k-1)^{-1}|V(G)|2(3k−1)−1∣V(G)∣ are compared in Q\mathbb QQ.

Two printed statements are corrected. (4.5) is printed for 0≤k<θ20\le k<\theta_20≤k<θ2​ and is stated for 0≤k<θ10\le k<\theta_10≤k<θ1​, the only range on which ϕk+1,ψk+1\phi_{k+1},\psi_{k+1}ϕk+1​,ψk+1​ are defined. (5.1) is false as printed for p=1p=1p=1, q≥1q\ge 1q≥1, so it carries the hypothesis "p=1p=1p=1 implies q=0q=0q=0"; the paper uses it only with p=θ2/2p=\theta^2/2p=θ2/2.

Needed infrastructure, reusable well beyond this mission: Menger's theorem, the Graph Minors I linkage results, Tutte's ordering of 2-connected graphs, and a library of lemmas for minors and tree-decompositions. Proofs of any milestone, of the cited results as separate theorems, and of basic API for the definitions are welcome.

Selected references

  • N. Robertson, P. D. Seymour, Graph Minors. V. Excluding a Planar Graph, J. Combin. Theory Ser. B 41 (1986) 92–114. https://doi.org/10.1016/0095-8956(86)90030-4
  • N. Robertson, P. D. Seymour, Graph Minors. I. Excluding a Forest, J. Combin. Theory Ser. B 35 (1983) 39–61. https://doi.org/10.1016/0095-8956(83)90079-5
  • N. Robertson, P. D. Seymour, R. Thomas, Quickly Excluding a Planar Graph, J. Combin. Theory Ser. B 62 (1994) 323–348. https://doi.org/10.1006/jctb.1994.1073
  • C. Chekuri, J. Chuzhoy, Polynomial Bounds for the Grid-Minor Theorem, J. ACM 63 (2016), Art. 40. https://doi.org/10.1145/2820609
  • J. Chuzhoy, Z. Tan, Towards Tight(er) Bounds for the Excluded Grid Theorem, J. Combin. Theory Ser. B 146 (2021) 219–265. https://doi.org/10.1016/j.jctb.2020.09.010
  • B. Courcelle, The Monadic Second-Order Logic of Graphs. I. Recognizable Sets of Finite Graphs, Information and Computation 85 (1990) 12–75. https://doi.org/10.1016/0890-5401(90)90043-H
28 thms1 active userReviewed
CombinatoricsDiscrete Geometry·Captain: aarontcao

Lovasz Problem 11.8: triangle-free unit vector systems sum to Theta(n^(2/3))Research Paper

Let u1,…,unu_1, \dots, u_nu1​,…,un​ be unit vectors in a Euclidean space such that among any three of them some two are orthogonal. How large can ∥u1+⋯+un∥\|u_1 + \dots + u_n\|∥u1​+⋯+un​∥ be?

The answer is Θ(n2/3)\Theta(n^{2/3})Θ(n2/3).

Attribution, which is commonly given wrong in both halves

Lovasz posed the question, as Problem 11.8 of Combinatorial Problems and Exercises (North Holland, 1979). Konyagin proved the O(n2/3)O(n^{2/3})O(n2/3) upper bound in Systems of vectors in Euclidean space and an extremal problem for polynomials, Mat. Zametki 29 (1981) 63-74, doi:10.1007/BF01142512. Alon gave a matching lower bound in Explicit Ramsey graphs and orthonormal labelings, Electron. J. Combin. 1 (1994) R12, doi:10.37236/1192. The two together pin the exponent exactly.

Where the proof comes from

The hypothesis is a graph condition in disguise. Join iii to jjj when ⟨ui,uj⟩≠0\langle u_i, u_j \rangle \ne 0⟨ui​,uj​⟩=0; then "among any three some two are orthogonal" says that graph is triangle-free.

The proof does not run through Ramsey counting, which is the natural first guess and does not reach the right exponent. It runs through the Lovasz theta function. Kashin and Konyagin bound θ=O(n1/3)\theta = O(n^{1/3})θ=O(n1/3) for graphs of independence number less than 3, that is for complements of triangle-free graphs, and Cauchy-Schwarz turns that into the bound on the norm of the sum. The orthonormal labeling of a graph by unit vectors is not a coincidence of notation: it is the definition of θ\thetaθ that the argument uses.

What this mission will cost

State this honestly rather than discover it later. The Lovasz theta function, orthonormal graph labeling, and Shannon capacity are all absent from Mathlib. So the milestone chain that the upper bound needs cannot be written yet, and this proposal ships with exactly one milestone, which is Alon's lower bound.

google-deepmind/formal-conjectures contains an SDP-form definition of the theta function, with basic bounds such as lovaszThetaFunction_le_card since PR #6100 of 2026-09-18. The proof here needs the orthonormal-labeling form instead, so that file is a starting point rather than a foundation. Building the theta function, proving that the two forms agree, and getting the Kashin-Konyagin bound is the real content of this mission and is larger than the statement of the goal suggests.

The lower bound is the tractable half. It needs explicit Ramsey graphs and an orthonormal labeling of one, and it does not need θ\thetaθ at all.

Notes on the formalization

Both items are stated in Mathlib primitives alone, so the mission omits definition items. The triangle-free hypothesis is written as a condition on triples of indices rather than through SimpleGraph.CliqueFree 3, so that a reader auditing the statement does not have to unfold a graph construction to see what is assumed. Anyone proving it is free to build the graph and use the Mathlib predicate.

2 thms1 active userReviewed
Combinatorics·Captain: Minghui

Formalize the Four Color Theorem in Lean 4Research Paper

Why formalize the Four Color Theorem in Lean 4?

The Four Color Theorem links a short mathematical statement to a large collection of finite checks. For contributors to graph theory and proof assistants, it is a concrete test of whether abstract mathematics, executable verification, and a public theorem statement can share one auditable foundation. The proposed result is a complete Lean 4 formalization, reusing Mathlib and adapting the established proof architecture to Lean.

The mathematical result is established. Robertson, Sanders, Seymour, and Thomas gave a modern computer-assisted proof in 1997. Gonthier subsequently developed a Coq formalization covering both mathematical reasoning and computation, described in his 2005 report and 2008 Notices article. This mission is classified as ResearchPaper because it formalizes these published results. (RSST, Gonthier 2005, Gonthier 2008)

Graphs, drawings, and colors

The root Lean interface uses Mathlib's SimpleGraph: a finite vertex set with a symmetric, irreflexive adjacency relation. Edges in this representation carry no additional identities or multiplicities. The conventional statement also permits parallel edges. Already-proved local infrastructure uses Mathlib's Graph V E to erase parallel edges while preserving a genuine plane drawing and proper vertex colorings; only the actual vertex set must be finite. A proper vertex coloring assigns a color to every vertex and assigns different colors to adjacent vertices. Four available colors means at most four colors are used; there is no requirement that each color occur.

A planar drawing places distinct vertices at distinct points of the real plane and represents each edge by an injective continuous arc joining its endpoints. An arc contains no other vertex, and arcs of different undirected edges meet only at shared endpoints. Reversing the orientation of an edge reverses its parameterization. A graph is planar when such a drawing exists. This is a geometric condition independent of coloring and of the eventual configuration checkers. Gonthier discusses the graph-embedding formulation in Section 2, PDF p. 4 of the 2005 report.

Write VVV for the vertex set, GGG for its adjacency relation, and C={0,1,2,3}C=\{0,1,2,3\}C={0,1,2,3} for the available colors. Empty graphs, isolated vertices, and disconnected graphs are included. The drawing is a witness to a hypothesis; the theorem does not impose coordinates, a prescribed embedding, or a straight-line representation.

Formalization target

For every finite loopless planar graph, establish

∀ G=(V,E),Planar⁡(G)⟹∃c:V→C,∀v,w∈V, {v,w}∈E⟹c(v)≠c(w).\forall\,G=(V,E),\qquad \operatorname{Planar}(G)\Longrightarrow \exists c:V\to C,\quad \forall v,w\in V,\ \{v,w\}\in E\Longrightarrow c(v)\ne c(w).∀G=(V,E),Planar(G)⟹∃c:V→C,∀v,w∈V, {v,w}∈E⟹c(v)=c(w).

The draft Lean target is FourColor.four_color: for every finite vertex type and every SimpleGraph on that type, FourColor.IsPlanar G implies G.Colorable 4. Its graph formulation follows RSST's Section 1, PDF p. 2 of the author-hosted manuscript. The manuscript's PDF page numbers differ from the journal's pagination.

The exact unchanged root signature is:

FourColor.four_color.{u} :
  ∀ (V : Type u) [Finite V] (G : SimpleGraph V),
    FourColor.IsPlanar G → G.Colorable 4

This is an open target signature, not a completed proof. The existing FourColor.FinalAudit.multigraph_four_color_of_necessary_targets conditionally connects the mission obligations to the conventional finite loopless planar multigraph statement. Its drawing has distinct vertex positions and injective continuous arcs for each edge identity; erasing parallel edges is proved to preserve planarity and every proper-coloring constraint. This bridge adds no simplicity, connectedness, triangulation, or nonemptiness assumption to the conventional conclusion. The root target itself remains unchanged.

An equivalent combinatorial formulation is welcome only with the formally verified translations needed to recover this target. If equivalence is claimed, both directions must be proved under precisely stated conventions. In particular, a hypermap coloring theorem alone does not complete this mission.

The original seven structural milestones remain unchanged:

MilestoneDeliverable
1. Graph realizationConstruct a planar plain hypermap whose faces represent exactly the nonisolated graph vertices and whose edge steps encode precisely adjacency.
2. Cubic normalizationConstruct a plain cubic hypermap with six times as many darts, preserving planarity and bridgelessness and transporting a coloring back.
3. Minimal counterexampleChoose a least-dart counterexample within the planar, bridgeless, plain, precubic comparison class.
4. Counterexample structureProve cubicity, connectedness and minimum face arity five as consequences of minimality.
5. Charge conservationProve total face charge 120c120c120c for ccc components under arbitrary rational dart transfers, and a positive-charge face when connected.
6. EliminationComplete the source's reducibility and unavoidability analysis to exclude every minimal counterexample.
7. Hypermap theoremAssemble four-colorability for all planar bridgeless hypermaps.

These correspond to Gonthier's reductions in Section 3, PDF pp. 6–9, and development in Sections 5.1–5.6 of the 2005 report. Exact locations and executable-reference declarations accompany each milestone. Milestones 2, 3 and 6 imply milestone 7; milestones 1 and 7 imply the graph target. Those two conditional implications have been checked in Lean against the exact proposed statements. Milestone 6 now has thirteen concrete supporting targets:

Core targetDeliverable
Catalogue geometryProve geometric admissibility of every one of the fixed 633 configurations.
Catalogue reducibilityKernel-check reducibility of every fixed map and contract using the proved complete checker or a verified refinement.
ReflectionProve that the explicit mirror preserves minimal counterexamples.
Geometric exclusionProve that a C-reducible configuration cannot occur in a minimal counterexample; this includes the Birkhoff and patching arguments.
Presentation soundnessProve the concrete finite presentation checker's generic soundness as one route to coverage.
Seven coverage casesIndependently handle positive hubs of degrees 5, 6, 7, 8, 9, 10 and 11, allowing reflected occurrences and unbounded neighboring arities.
Transfer boundBound each directed transfer by five under the explicit absence-of-configurations hypothesis; proved arithmetic then excludes positive hubs of degree at least 12.

The fixed catalogue and fixed rules are shared by both branches. The local Lean assembly checks that reducibility, geometric exclusion, reflection, the transfer bound, the seven degree cases, and milestones 4–5 imply milestone 6. It then connects to the unchanged hypermap and graph targets. The generic presentation checker offers a sufficient route to the semantic degree targets; its ability to certify every source presentation is not presumed. That route also requires actual presentation certificates and proofs of acceptance for the degree cases. Generic soundness and catalogue geometry alone do not supply those witnesses. Direct proofs of the seven semantic coverage obligations remain valid. Catalogue geometry remains a separate, meaningful finite theorem.

Exact mission obligations

There are 21 open theorem targets: 20 supporting milestones and one root. Every name below has prefix FourColor.. All remain future mission work; the checked conditional assembly is not a proof of any of these targets.

#Exact target nameObligation
1graph_realizationRealize a finite drawn graph by a planar plain hypermap with exact face/adjacency incidence.
2cubic_normalizationConstruct the sixfold plain cubic map with the stated preservation and coloring transport.
3minimal_counterexample_existsSelect a least-dart counterexample in the precubic comparison class.
4minimal_counterexample_structureDerive cubicity, connectedness and face arity at least five from minimality.
5charge_conservationProve total charge and existence of a positive face for a connected host.
6catalogue_embeddableProve the fixed 633 entries satisfy configuration geometry.
7catalogue_reducibility_certificatesEstablish accepted reducibility certificates for every fixed entry.
8mirror_minimal_counterexamplePreserve minimal-counterexample status under the specified mirror.
9reducible_configuration_exclusionExclude a C-reducible occurrence from a minimal counterexample.
10discharge_presentation_soundnessProve generic soundness of the concrete finite presentation checker.
11degree_5_coverageDerive a catalogue occurrence, in either orientation, from a positive degree-5 hub.
12degree_6_coverageEstablish the same semantic occurrence obligation for degree 6.
13degree_7_coverageEstablish the same semantic occurrence obligation for degree 7.
14degree_8_coverageEstablish the same semantic occurrence obligation for degree 8.
15degree_9_coverageEstablish the same semantic occurrence obligation for degree 9.
16degree_10_coverageEstablish the same semantic occurrence obligation for degree 10.
17degree_11_coverageEstablish the same semantic occurrence obligation for degree 11.
18discharge_transfer_boundBound each transfer by five under minimality and absence of catalogue occurrences in either orientation.
19no_minimal_counterexampleAssemble the core argument to exclude all minimal counterexamples.
20hypermap_four_colorAssemble four-colorability of every planar bridgeless hypermap.
21four_colorProve the unchanged finite planar graph root above.

The degree cases quantify over minimal counterexamples with the exact positive score defined by the fixed rules; neighboring degrees have no artificial upper bound. The dependency path uses 16 necessary input targets to derive targets 19, 20 and 21. Targets 6 and 10 support the optional presentation-certificate route. None of targets 19, 20 or 21 is assumed as a shortcut in this assembly.

What completion would provide

The theorem provides a uniform existence guarantee for all finite planar graphs, without a bound on their size. Its Lean development should also make reusable graph embeddings, finite combinatorial maps, coloring transports, and verified finite checkers available to later work.

The existing Rocq development is an executable reference for definitions, dependency structure, and proof behavior. It is not a proof import into Lean. The proposed contribution is a Lean development whose proof objects and computation are justified within Lean's documented foundations. A mechanically translated collection of scripts is not required; contributors should choose abstractions that work well with Mathlib.

Where the difficulty lies

Checking finitely many small graphs does not establish the theorem for arbitrary finite graphs. The development must justify why its finite computational tasks suffice, and must connect their results to the graph statement. The mathematical and computational obligations must meet at explicit, proved interfaces.

There is also a representation gap. The standard target concerns vertex colorings of graphs drawn in the plane, whereas the reference implementation's combinatorial core colors faces of planar bridgeless hypermaps. The latter endpoint is four_color_hypermap in combinatorial4ct.v. Correct treatment of duality, connected components, and isolated vertices is part of the work. Renaming a combinatorial predicate “planar” cannot establish that connection.

Formalization scope and acceptance criteria

Use Lean 4 with a supported, pinned Mathlib revision. The initial draft is checked against Lean v4.30.0 and Mathlib c5ea00351c28e24afc9f0f84379aa41082b1188f. Any later migration must preserve the statements and repeat the relevant checks. Reuse Mathlib's graph and coloring interfaces where appropriate, and develop missing infrastructure as reusable modules. The topological definition must not assume colorability, successful certificate verification, or the conclusion of an intermediate theorem.

The definition layer now provides plane drawings, finite permutation hypermaps, an exact graph/face incidence representation, minimal counterexamples, and rational face charges. Coloring equivalence across a face representation is proved for every positive number of colors, with isolated vertices handled explicitly. Exact Euler equality defines combinatorial planarity; geometric realization is a theorem obligation and cannot be assumed from the name.

The concrete core now defines configurations, ordered boundary traces, contracts, chromograms, Kempe closure, kernel preembeddings and reflected occurrences. The reference reducibility checker has proved soundness and completeness. All 633 maps, rings and contracts are literal data with kernel-validated table/index proofs. The 38 base entries and their 71 symmetrized entries are explicit, and the executable matcher has proved semantic correctness. These infrastructure results do not prove the catalogue's geometric validity, its reducibility, or unavoidability.

The production targets import FourColor.CompactCatalogue.configurations, a compact catalogue containing the same literal maps, rings and contracts. A generic verified decoder constructs validated entries without storing large evaluated proof terms in every import. A separate kernel-checked comparison proves exact ordered equality with the original catalogue, proves that every raw entry is accepted, and proves that none is dropped. The original certificate batches remain available for that audit but are excluded from production target imports. This representation change does not alter any of the 21 mathematical obligations.

Data provenance is pinned to Rocq commit c1d6b1cd5288bea4b067aac13cdde3c18dffe018. Independent fresh-source comparisons check all 633 configurations and every base/expanded rule entry against that snapshot, including actual evaluated Lean payloads. These comparisons establish source correspondence; they are not proofs of reducibility or unavoidability.

The duplicate-data gate rejects unexplained or unintended duplicates and permits verified source-mandated repetition encoding multiplicity or weight. The only repeated rule payload is drule1, deliberately listed twice: the source explains its two-point transfer in discharge.v, lines 17–24 and retains both copies in base_drules (line 145). The Lean rule-match count also counts both copies, preserving weight two. Thus there are 38 base entries with 37 distinct payloads, and 71 expanded entries with 70 distinct payloads. Both copies must remain. No configuration duplicates or other repeated rule payloads are permitted without separately verified source justification.

The reference reducibility evaluator is exponentially expensive. Contributors should implement verified compressed representations or efficient checkers, with acceptance implying the same semantic C-reducibility. Completeness of the reference checker then recovers the stated certificate-existence target. The presentation language is a transparent finite baseline; its generic soundness is an open target, and no completeness claim is made. Source-style quizzes/hubcaps or direct Lean proofs can close the same seven semantic coverage targets. This keeps performance choices separate from the mathematical endpoint.

All computational claims needed by the theorem must be established in Lean. External generators may prepare candidate data or certificates, but their output must be validated by a checker with proved correctness, and the resulting proof must be accepted by the Lean kernel. A recorded successful run of an external program is insufficient. The final theorem and its dependency closure must contain no sorry, admit, unproved custom axiom, or unsupported computational assumption. An axiom audit must identify only Lean/Mathlib's documented foundations. The current 37-declaration conditional/infrastructure audit uses only propext, Classical.choice and Quot.sound; it does not claim an unconditional Four Color proof. Python generators and runtime JSON extraction are outside the mathematical trust boundary and cannot discharge the 21 targets.

Completion requires a reproducible repository in which lake build succeeds from a clean environment and builds the final theorem. Pin toolchain, dependencies, source revisions, and certificate data; document regeneration and verification commands. Maintain a dependency map connecting Lean declarations to exact paper locations and Rocq declarations, and record justified differences in representation. The local multigraph adapter already justifies forgetting parallel-edge multiplicities and transports proper colorings. Any auxiliary restrictions such as connectedness or nonemptiness must be discharged before the root theorem. The current statement and conditional builds verify proposal infrastructure. Success requires proofs of the mission obligations and the final theorem in the reproducible clean build, with no unproved assumptions beyond the documented Lean/Mathlib foundations. All 21 targets remain open at proposal finalization. The submission snapshot records the repository base commit, exact working-file hashes, toolchain, Mathlib revision, payload hashes and audit report; it must not misrepresent uncommitted files as contents of the base commit.

Selected references

  • Georges Gonthier, A Computer-Checked Proof of the Four Colour Theorem, technical report, 2005. Sections 2–5. Microsoft Research PDF.
  • Georges Gonthier, Formal Proof—The Four-Color Theorem, Notices of the AMS 55(11), 1382–1393, 2008. Theorem 1 and the formalization architecture. AMS PDF.
  • Gonthier and Rocq-community contributors, fourcolor, executable formalization, pinned to commit c1d6b1cd5288bea4b067aac13cdde3c18dffe018. Repository.
  • Neil Robertson, Daniel Sanders, Paul Seymour, Robin Thomas, The Four-Colour Theorem, Journal of Combinatorial Theory, Series B 70(1), 2–44, 1997. DOI; author-hosted manuscript.
54 thms1 active userReviewed
PreviousPage 3 of 4Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me