Manuscript Offprint
arXiv:2611.02256Exact Shortest Paths and Maximum Flow in Planar Networks in the CONGEST Model
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In the CONGEST model, exact single-source shortest paths (SSSP) in directed planar networks with nonnegative weights and exact maximum -flow in directed planar networks have both been solved in rounds, where is the hop diameter, while the lower bound is . Given the approximate distance labels of a recent preprint [1], which we use as a black box, we give an algorithm for exact directed SSSP in rounds. It rests on a lemma that answers queries from a virtual source with the labels, and on a corrected discretization of the reduction of exact to approximate distances of [3]. All further bounds of the form and use these labels as well. Through the reduction of [6], SSSP with negative weights, or the detection of a negative cycle, takes rounds with high probability. We weight the face-disjoint graph of [9] so that its distances are dual distances, which turns distance problems in the dual into problems in a planar network of hop diameter . This gives exact maximum -flow in directed planar networks in rounds with high probability, and in rounds when and lie on a common face. In undirected planar networks, the value of a minimum -cut and a minimum cut take rounds. For this we repair the auxiliary graphs of [15] at and , and we show that its recursion, as we read it, can miss the minimum cut, also with exact shortest paths: on a network with 11 vertices it reports 37 for a minimum cut of 15. We prove that two more shortest-path computations per level make it exact. The algorithms not stated with high probability add no randomness to the labels and the planar embedding. The virtual-source lemma, the weighting of the face-disjoint graph and the corrected discretization are machine-checked in Lean 4 with Mathlib; the CONGEST algorithms, their round counts and all other arguments are proved on paper only. Numerical checks support the constructions but are not used in any proof.
1 Introduction
We study three problems. In single-source shortest paths (SSSP), every edge has an integer weight of polynomial size, and every vertex has to learn from a given source and its parent in a shortest-path tree. In the directed version the two directions of an edge have their own weights, and an edge may be usable in one direction only. With negative weights the algorithm also has to detect negative cycles. In maximum -flow, every edge has an integer capacity of polynomial
| Problem | Rounds | |
|---|---|---|
| Exact SSSP, directed, | [8, 16] | |
| -approximate SSSP, directed | [1] (preprint) | |
| Exact maximum -flow, directed | [9, 7] | |
| SSSP in the dual graph, negative lengths | [9] | |
| Maximum -flow, undirected, on a common face, -approximate | [9] | |
| Maximum -flow value and minimum -cut, undirected, -approximate | [15] |
Table 1: Previous bounds on planar networks. The bounds of [8, 16, 9] hold with high probability. The bounds of [1] and [15] are stated as deterministic, the first with polynomial local time.
size in each direction, and the algorithm has to compute the value of a maximum flow from to and the flow on every edge. The value of a maximum -flow is the capacity of a minimum -cut, and in undirected networks we also ask for this value alone, together with a minimum cut. Each of these problems needs rounds on planar networks, since information has to cross the network.
On general graphs the known bounds for these problems are polynomial in . Exact directed SSSP takes rounds [2, 3] or rounds [4], for constant a -approximation of directed SSSP takes rounds [5], SSSP with negative weights takes rounds [6], and exact maximum flow takes rounds [7]. The bounds for exact SSSP of [2, 3, 4] and for negative weights of [6] are randomized.
1.2 Previous work on planar networks
Planar graphs have balanced cycle separators, and the bounded diameter decomposition of [8] makes them usable in CONGEST: it is a recursive decomposition of height whose bags have spanning trees of small diameter. With it, exact SSSP was solved in rounds with high probability, for undirected networks in [8, Thm. 1.6] and for directed networks in [16, Lemma 4]. The same bound was obtained in [9] for exact maximum -flow in directed planar networks, through SSSP with negative lengths in the dual graph; for large , the bound of [7] for excluded-minor graphs is smaller. In a recent preprint [1], -approximate directed SSSP is solved in rounds, with distance labels that are built bottom up over the decomposition. In [15], the value of a maximum -flow and a minimum -cut in undirected planar networks are approximated within a factor in rounds, deterministically; there, approximate SSSP is used “for the lack of almost--rounds exact distributed SSSP”. Table 1 lists the previous bounds.
One open question is stated in [9, Sec. 2.4]: to find better SSSP algorithms in the primal graph, which is called “the bottleneck to overcome in order to obtain better distributed planar algorithms”, and, before attacking maximum flow, to “first improve the bound of the (easier) directed SSSP problem (even with non-negative weights)”.
1.3 Results
Each of our results is an algorithm. Table 2 lists them.
Given the labels, the Exact SSSP Theorem answers the open question of [9] on directed SSSP. The new term in the Maximum Flow Theorem is smaller than once exceeds .
| Problem | Algorithm | Rounds | Previous |
|---|---|---|---|
| Exact SSSP, directed, | EXACTSSSP | [8, 16] | |
| Exact SSSP, negative weights | NEGATIVESSSP | as stated in [15, Sec. 1.1]; bounds for general graphs [6] | |
| Exact maximum st-flow, directed | DUALFLOW | [9, 7] | |
| The same, on a common face | COMMONFACEFLOW | approximate and undirected only [9, 15] | |
| Value of a minimum st-cut and a minimum cut, undirected | EXACTMINCUT | [9]; -approximate in [15] | |
| SSSP in the dual, nonnegative lengths | EXACTSSSP on | [9] | |
| SSSP in the dual, negative lengths | NEGATIVESSSP on | [9] |
Table 2: Results, which are the Exact SSSP Theorem, the Negative Weights Theorem, the Maximum Flow Theorem, the Common-Face Flow Theorem, the Minimum Cut Theorem and the Dual SSSP Corollary. All of them except the branch of DUALFLOW rest on the Label Hypothesis, which is modelled on the distance labels of [1]. The algorithms for nonnegative weights and for undirected networks add no randomness to the labels and the planar embedding; the others hold with high probability.
The Minimum Cut Theorem does not compute the flow on every edge; for that, the Maximum Flow Theorem is the best bound we know.
1.4 How the algorithms fit together
Figure 1 shows how the results build on one another. Every algorithm of this paper calls EXACTSSSP, directly or through NEGATIVESSSP.
ExactSSSP. The reduction of [3] turns exact SSSP into calls to an approximate oracle, it is noted in [3, Sec. 3.1] that this boosting works in distributed models, and distance labels as in [1] answer the calls. Two ingredients are needed beyond this combination. First, the calls ask for distances from a virtual source, which the query of [1] does not provide. The Virtual Source Lemma answers such calls with a minimum over all bags on the chain of a vertex. Second, the discretization of the reduction is only sketched in [3, App. C.1]; done as written, an update can drive an arc length to . We use as the base of every update and prove the resulting contraction and exactness in the Discretized Boosting Lemma.
NegativeSSSP. This is the reduction of [6] with EXACTSSSP as its oracle. We simulate its minor-aggregation steps with the low-congestion shortcuts of planar networks.
DualFlow and CommonFaceFlow. We weight the face-disjoint graph of [9]: weight 0 on the cycles around faces, the dual lengths on the edges that cross primal edges, and a large weight on the star edges. The Dual Distance Lemma shows that then has a negative cycle exactly when

Figure 1: How the algorithms depend on each other. Boxes with a double frame are the results of other works that we use as black boxes or repair.
the dual has one, and that its distances between corners are the dual distances between their faces. Since is a planar network of hop diameter at most that simulates with a factor 2 in rounds [9], primal algorithms solve dual distance problems. Maximum flow then follows by the reduction of [10] as used in [9, Sec. 6.1], and by the method of [11] for and on a common face.
ExactMinCut. This is the technical core of the paper. The algorithm of [15] computes levels of shortest paths in annuli of the dual and approximates the minimum cut in rounds, for lack of an exact SSSP algorithm. We run one exact SSSP on the whole auxiliary graph of a level, with weights of the same kind as in the Dual Distance Lemma, so that the losses of the approximation disappear. This alone is not enough. As we read [15, Remark 3.3], the auxiliary graphs lack, at and , the properties proved for them in [15]; we repair them and prove these properties in the Annulus Lemma and the Repaired Graph Lemma. The recursion of [15, Alg. 3] drops indices whose witness, by [15, Claim 2.4], can lie outside the range of the current annulus. On a network with 11 vertices it reports 37 for a minimum cut of 15, also with exact shortest paths. Two more shortest paths per level make it exact, which the Witness Interval Lemma, the Incision Lemma and the Repaired Recursion Lemma prove. Their proofs fill the appendices.
1.5 Verification and status
Three statements are machine-checked in Lean 4 with Mathlib (Section 8): the Virtual Source Lemma, the Dual Distance Lemma for every graph with the face, dual and star structure of , including its construction from a combinatorial map, and the discretized boosting step with base . In each case the hypotheses are stated in Section 8. The CONGEST algorithms, their round counts, every argument that uses planarity and the whole proof of the Minimum Cut Theorem are proved on paper only. Section 7 reports numerical checks of the sequential meaning of the statements. They test finite families, not round counts, and no proof relies on them.
The Exact SSSP Theorem, the Negative Weights Theorem, the Maximum Flow Theorem and the Common-Face Flow Theorem are proved given the Label Hypothesis and the other cited results. We completed the proofs of [1] where this was needed, replacing some intermediate statements; our public repository holds them, and Remark 3.1 gives the details. The Minimum Cut Theorem is proved given [15], the Exact SSSP Theorem, and the five lemmas named above, whose proofs are in Appendices A to C. The proofs of these lemmas have had two referee passes by separate AI referees and an adversarial pass, which found no counterexample; each referee pass was followed by a revision in answer to it. The proof of the Minimum Cut Theorem rests on our readings of the recursion of [15], which we state in Section 6. The proofs were developed and checked with AI assistance and have not yet been checked by a human expert (see the section on the use of AI).
Section 2 recalls the model, the reduction of [3] and the face-disjoint graph of [9]. Section 3 gives EXACTSSSP, Section 4 gives NEGATIVESSSP, Section 5 gives DUALFLOW and COMMON-FACEFLOW, and Section 6 gives EXACTMINCUT. Sections 7 and 8 describe the numerical checks and the formal verification, and Section 9 lists open questions. Appendix A defines the repaired graphs and proves the Annulus Lemma and the Repaired Graph Lemma, Appendix B proves the Incision Lemma, and Appendix C proves the Witness Interval Lemma and the Repaired Recursion Lemma.
2 Preliminaries
2.1 Model, plane graphs and duals
The network is connected, with vertices and hop diameter . Every vertex has a distinct identifier of bits. All vertices know a polynomial upper bound on and on the largest absolute weight or capacity , so that every weight, every distance and every identifier fits into messages. For the randomized results, every vertex has private random bits. In a directed network every edge carries the arc , the arc , or both, each with its own integer weight or capacity. For a digraph with arc lengths, a walk from to has as length the sum of the lengths of its arcs, and is the infimum of the lengths of these walks, or if there is none. For a vertex set , is the induced subgraph. The notation hides factors polylogarithmic in , and with high probability means with probability at least for an arbitrary fixed constant .
Embeddings. A combinatorial embedding gives every vertex a cyclic order of its incident edges, its rotation; indices are taken modulo . As in [1, 8, 9], every vertex knows its rotation in a fixed planar embedding of . Such an embedding is computed in rounds [12]. We also use the embedding as a drawing of in the sphere . The corner is the angle at between and ; it lies in one face of . Every edge has two darts, and , and is the reverse of a dart . We write left and right for the faces on the left and on the right of ; they coincide for a bridge. The dual graph has a node for every face of and, for every dart , a dual dart from right to left.
Determinism. Our reductions add no randomness of their own to two steps: the planar embedding and the labels of the Label Hypothesis. We call an algorithm deterministic relative to the labels if it is deterministic once these two steps are, for and for the auxiliary planar networks that we simulate on . We do not claim that these steps are deterministic. If they succeed only with high probability, a union bound over the polylogarithmically many calls carries this over. The algorithm of [1, Thm. 4] is stated as deterministic, while the decomposition that its proof cites from [8] uses a randomized separator and is stated as randomized in [9, Lemma 5.1]; a deterministic decomposition is stated in [13, Cor. 1], which we have not checked. The embedding algorithm of [12] is used as deterministic in [14, 15]; we could not read the full text of [12].
2.2 Exact distances from approximate ones
Let be a source in a digraph with nonnegative arc lengths . In [3, Def. 1.5, 1.6], an estimate is smoothly -approximate if for every , and for all ; in particular for every arc . Algorithm 1 of [3] sets and, for with , where bounds the distances, asks an oracle for a smoothly -approximate estimate for and sets
It outputs rounded to the nearest integer, which equals for integer lengths [3, Lemma 3.1]. By [3, Thm. 1.7], Algorithm 3 of [3] computes smoothly -approximate estimates with calls to a -approximate distance oracle, on graphs with weights in . With , exact SSSP therefore takes iterations of Algorithm 1 with oracle calls each, so calls to a -approximate oracle with [3, Lemma 3.1, Thm. 1.7, App. C.1]. The calls are made on with new arc lengths and some arcs deleted (the cross-level edges of the level graphs of [3, Def. 5.7]), from or from a virtual vertex that is joined to every vertex by an arc of nonnegative length . Outside the oracle every step is local: an arc needs the estimates at its two ends, which costs one round. Since Algorithm 1 can make arc lengths much smaller than 1, it is sketched in [3, App. C.1] how to add to every arc when the oracle is called, and then to scale and discretize. It is noted in [3, Sec. 3.1] that the boosting works in sequential, parallel and distributed models.
2.3 The face-disjoint graph
The face-disjoint graph of [9, Sec. 3] has a star centre for every vertex of and a corner node for every corner of . Its edges come in three sets (Figure 2):
-
the star edges , which form ;
-
the set , with two edges for each edge of , one for each side, joining the corner nodes of and that are consecutive along the boundary walk of the face on that side; so every face of becomes a cycle of edges through the corner nodes of , and these cycles are vertex-disjoint;
-
the set , with one edge for each edge of , joining the two corner nodes at one end of that lie on the two sides of .
By [9, Sec. 3, Properties 1 to 3 and 5], is planar and is built in rounds, every vertex hosting its star centre and its corner nodes; its hop diameter is at most between star centres, hence at most ; every -round algorithm on runs in rounds on ; and the edges of correspond one to one to the edges of , with both ends knowing the weight and direction of the corresponding dual edge.
3 Exact SSSP with nonnegative weights
Exact SSSP Theorem. Let be a planar digraph with integer weights in , hop diameter and source . Given the Label Hypothesis, the algorithm EXACTSSSP computes, for every vertex , the distance and the parent of in a shortest-path tree, in rounds. It is deterministic relative to the labels, and outside the labels its local computation is polynomial.

Figure 2: The face-disjoint graph of a 4-cycle with a diagonal. The faces and the outer face become vertex-disjoint cycles of edges. Each edge of is crossed by one edge between two corners at one of its ends. The Dual Distance Lemma weights with 0, with the dual dart lengths and with a large .
The algorithm has three parts: distance labels modelled on [1], which we state as the Label Hypothesis; the Virtual Source Lemma, which answers distance queries from a virtual source with the labels; and the reduction of [3], with a discretization that we prove in the Discretized Boosting Lemma.
3.1 Bag hierarchies and the labels
Let be a digraph with arc lengths in . A bag hierarchy is a finite rooted tree whose nodes , the bags, carry a vertex set , a set of arcs of with both ends in , and a set of hubs, such that:
(V1) the root bag contains every vertex and every arc;
(V2) every vertex of lies in exactly one child of ;
(V3) every arc of with both ends in lies in for some child of .
A leaf has no children, so by (V2) all its vertices are hubs. We write for distances in the digraph . The chain of a vertex starts at the root and, from a bag with , continues with the child of that contains , which is unique by (V2). So the chain has one bag per depth and ends at the first bag in which is a hub.
Label Hypothesis. Let be a planar network with a known embedding, with integer arc lengths in for some and arcs in both directions on every edge, and let with . A CONGEST algorithm computes, in rounds, a bag hierarchy of height such that:
(L1) every bag has a tree of edges of that spans and has diameter ; for non-leaf bags, and every leaf has vertices; for every depth, every edge of lies in at most two of the trees of bags of that depth; every vertex knows the bags of its chain and, for each of its edges, the bags whose tree or arc set contains it;
(L2) for every non-leaf bag , every vertex with on its chain and every hub of , the vertex knows values with and ; these values have polylogarithmically many bits.
The hypothesis is modelled on [1]. There, the bags are those of [1, Lemma 9], with the arcs of , the tree , and the set of [1] for a non-leaf bag and for a leaf. In this notation (V1) to (V3) correspond to [1, Lemma 9 (1) and (7)], (L1) to [1, Lemma 9 (2), (4), (5), (6) and Lemma 10], the chain of to the sequence of [1, Def. 4], and (L2) to [1, Thm. 9]. The form that we obtain has other bags and trees; see Remark 3.1. The bounds in (L2) hold whether the values approximate distances in , as in [1, Def. 4], or distances in the bag, as in the construction of [1, Lemma 16], and a two-sided approximation takes this form after scaling. Polynomial local time is stated in [1, Thm. 4], whose proof consists of these labels and one query.
Remark 3.1 (status of the hypothesis). All results of this paper that use -round SSSP are stated given the Label Hypothesis, since no single statement of [1] has this form and [1] is a preprint. While working through the proofs of [1], we completed them where this was needed, replacing some intermediate statements. The completed proofs are in the file notes/LEMMA15.md of the repository named in Section 8. They give the hypothesis from the black boxes listed there, for bags whose are the arcs of a subgraph of , in place of the induced subgraphs of [1]. All arguments below use only the properties stated above, so they apply to these bags. The completed proofs find planar realizations by exhaustive search, which CONGEST does not charge. A polynomial bound on local computation, as stated in [1, Thm. 4], would need a realization algorithm that respects a prescribed cyclic order of the terminals, which we have not established. The completed proofs are not part of this paper. Like the rest of this work, they have been checked by AI referees, adversarial passes and numerical tests, and not by a human expert.
3.2 Queries from a virtual source
Let be offsets. A virtual source is joined to every vertex by an arc of length , so
Virtual Source Lemma. Let , and let a bag hierarchy satisfy (V1) to (V3). Suppose that for every bag , every vertex with on its chain and every there are values with and . Let
Then for every vertex v.
Proof. Lower bound. Let u attain . Then
Upper bound. We may assume that . Lengths are nonnegative and the graph is finite, so some and some walk from to attain . Start at the root, which contains all vertices and arcs of by (V1) and lies on the chains of and of . Let be a bag that contains all vertices of , with all arcs of in and with on the chains of and of . If has no hub of , then every vertex of lies in exactly one child by (V2). For an arc of , (V3) gives a child with , so , and by uniqueness the child of is the child of . Hence all vertices of lie in one child , by (V3) and uniqueness again all its arcs lie in , and since and are no hubs of , the bag lies on their chains. So we can move to . Since the tree is finite and all vertices of a leaf are hubs, we reach a bag with these properties and a hub of on . Split at into from to and from to . Both lie in , so
The minimum must run over the whole chain: the lowest bag that separates from depends on , and the best is not known in advance. Only the lower bound by distances in and the upper bound by distances in the bag are used, so the lemma covers both kinds of labels above.
Corollary 3.2. Given the labels of the Label Hypothesis, -approximate distances from a virtual source with offsets that every vertex knows for itself take further rounds, and these rounds are deterministic.
Proof. Every leaf broadcasts its arcs and their lengths over . By (L1) and planarity it has arcs, so this takes rounds, and then every vertex of knows on . With these values for the leaves and (L2) for the other bags, the Virtual Source Lemma applies. For every bag and hub , the value is a minimum of values known to vertices of . One convergecast over computes the minima of a bag, pipelined, and one broadcast returns them, in rounds. The bags of one depth run in parallel, since every edge lies in at most two of their trees by (L1), and the depths run one after the other. Then every computes locally.
3.3 Exact distances from approximate ones
Algorithm 1 of [3] with the perturbation of [3, App. C.1] calls its oracle on the lengths . If the update is applied with base , as written, a length can become negative: take one arc with , and the answer , . It is smooth for and does not underestimate, and the update gives . We therefore use as the base.
Let be a finite digraph with vertices, source , integer lengths , and every vertex reachable from . Let and . A run consists of lengths and estimates such that for all :
(O1) ;
(O2) for every vertex ;
(O3) for every arc ;
and for every arc. A smoothly -approximate estimate for the lengths satisfies (O1) to (O3). Write and .
Discretized Boosting Lemma. In every run, for all and all vertices :
(a) the lengths are nonnegative on every arc, so the oracle sees lengths at least ;
(b) the distances contract: ;
(c) hence ;
(d) the estimates telescope: ;
(e) if and , then rounding to the nearest integer gives .
For this is [3, Lemma 3.1].
Proof. (a) By induction on . By (O3), .
For a walk from to with arcs, summing the update along gives
(*)
Algorithm 1 EXACTSSSP: exact distances from a virtual source
Require: planar network , integer weights , integer offsets on a set , all of polynomial size
Ensure: every vertex learns and a parent in a shortest-path tree
1: and on shortest paths for the new stay shortest for the old
2: Offsets of a source : on and elsewhere; , with these offsets as arcs from
3: for do ,
4: rounded up to multiples of and divided by integers, at least
5: Run Algorithm 3 of [3] on with accuracy ; at each of its oracle calls:
6: merge the sources into offsets on , and give deleted arcs and missing directions a large length
7: compute the labels of the Label Hypothesis with accuracy
8: compute by a convergecast for all bags and hubs , and at every
9: the estimate of Algorithm 3, multiplied by
10: for every arc, the arcs from included
11: Every rounds to the integer ; means unreachable, and otherwise
12: Every reachable picks as parent , if and , or an in-neighbour with
Lower step. For a walk from to , (*) and (O1) give , so .
Upper step. By (a) the lengths are nonnegative, so some walk from to with at most arcs has . By (*), .
(b) Every walk is at least as long under as under , so (O2) gives . With the upper step, .
(c) By induction from (b), using .
(d) Sum the lower and the upper step over .
(e) is an integer , since is integral. By (d), (c) and ,
The Discretized Boosting Lemma needs (O3) only on the arcs, and its bounds hold at every vertex, so no sum over the vertices enters.
3.4 The algorithm
We state EXACTSSSP for a virtual source joined to a set of vertices by arcs of integer lengths , , as in the oracle of [6, Def. 24]; the source is the case , . NEGATIVESSSP and EXACTMINCUT use this form.
Proof of the Exact SSSP Theorem. Tree. Replace every weight by and every offset by . A shortest path for from has , where is its number of arcs in , so it is a shortest path for , and . Once every vertex knows , a vertex that is reachable picks as parent either , if and , or an in-neighbour with , in one round. Since
, the distance strictly decreases along parent pointers between vertices of , so they form a shortest-path tree. From now on all weights and offsets are the new ones; let be the largest weight and the largest offset.
Offsets. Fix an integer and replace by a virtual source with for and for . Every vertex is then reachable, which the Discretized Boosting Lemma needs, and . Every finite is less than , so the value means that is unreachable from ; since the output is exact, every vertex can tell.
Iterations. EXACTSSSP runs Algorithm 1 of [3] with base on with the source , where the virtual arcs are updated like all other arcs, so that each vertex keeps its current offset . Take , and , so that the hypotheses of part (e) of the Discretized Boosting Lemma hold, with vertices, and . In iteration the estimate is computed as follows.
(W1) Round every length up to a multiple of and divide by . The result is an integer, at least . The rounding never shortens a walk and stretches it by a factor of at most .
- Run Algorithm 3 of [3] with accuracy on , from . By [3, Thm. 1.7] it returns a smoothly -approximate estimate for after calls to a -approximate oracle. The first call asks for accuracy 1, and every later call [3, Alg. 4, line 3] for accuracy with and [3, Alg. 3, lines 2 and 3], where bounds the distances; so . Multiplied by , this estimate satisfies (O1) to (O3) for with the factor .
(W2) Every oracle call of Algorithm 3 is on the network with some arcs deleted and with lengths that are a common factor times , from a virtual source . In the first call and [3, Alg. 3, line 4]. In the level graphs of [3, Def. 5.7] a new virtual vertex is joined to every vertex, included; the source written in [3, Alg. 4, line 3] is this . Since has no entering arc other than the one from , the two merge into the offsets on the vertices of , where the second term is left out when the arc is deleted; the one value is broadcast in rounds. Give every deleted arc and every missing direction of an edge the length , for an integer that one aggregation makes known to all vertices. Every vertex has , so no walk through such an arc is shorter than , and the distances from do not change. Compute the labels of the Label Hypothesis for the integer lengths and with accuracy , and multiply them by . Then Corollary 3.2 answers the call.
The lengths stay polynomial. By (O1) and (O3) along a shortest walk, , using part (c) of the Discretized Boosting Lemma. So every iteration raises a length by at most , and after iterations all and all offsets are bounded by a polynomial in , as the Label Hypothesis needs. After iterations, every vertex outputs rounded to an integer, which is by part (e) of the Discretized Boosting Lemma.
Rounds. Algorithm 1 and Algorithm 3 act locally between oracle calls: an update of an arc needs the estimates at its two ends, one round. There are iterations with oracle calls each, and every call costs rounds by the Label Hypothesis and Corollary 3.2. In total this is . Lengths, offsets and estimates are sums over levels of rationals with polynomial numerators and denominators, and label values have polylogarithmically many bits by (L2), so each takes messages, which absorbs. Local computation outside the labels is polynomial: minima, shortest paths in leaves and arithmetic on these numbers.
Determinism. The reduction of [3] is deterministic, and so is Corollary 3.2, so EXACTSSSP adds no randomness to the labels. □
Remark 3.3. The Discretized Boosting Lemma counts iterations of Algorithm 1, each with one call of Algorithm 3, which makes oracle calls. So the reduction makes oracle calls; the count “” in [3, App. C.1] refers to the calls of Algorithm 3.
4 Negative weights
Negative Weights Theorem. Let be a planar digraph with integer weights of polynomial size, possibly negative, hop diameter and source . Given the Label Hypothesis, the algorithm NEGATIVESSSP, which is the reduction of [6] with EXACTSSSP as its oracle, either computes for every vertex or reports that has a negative cycle, in rounds with high probability.
Proof. By [6, Thm. 2], an algorithm for SSSP with nonnegative integer weights in rounds gives negative-weight SSSP in rounds with high probability. We go through the proof and bound each term on planar networks.
Oracle calls. All calls to the nonnegative SSSP oracle are calls to the oracle of [6, Def. 24]: the network with new nonnegative integer weights of polynomial size, some arcs removed by a large polynomial weight, and a virtual source joined to a set of vertices by arcs with given integer lengths. EXACTSSSP answers such a call exactly in rounds, so . In [6, Thm. 26], the oracle is answered with the reduction of [3], whose own virtual source merges with that of the call into one set of offsets; EXACTSSSP merges them in the same way.
The term . It enters only through [6, Thm. 14], which simulates the steps of the Distributed Minor-Aggregation Model in CONGEST rounds. This simulation is used in [6, Cor. 27, Cor. 33, Cor. 40] and in the proof of [6, Cor. 58]; every other step is an oracle call or local computation. On planar networks, part-wise aggregation takes rounds with low-congestion shortcuts [9, Cor. 4.6], so a step of the minor-aggregation model costs rounds [9, Lemma 4.8].
Negative cycles. By [6, Thm. 60], Algorithm 5 of [6] outputs ERROR if has a negative cycle, and otherwise computes all distances from with high probability. Its remaining global steps are a constant number of aggregations, in rounds each.
Substituting and for gives .
5 Dual distances and maximum flow
5.1 The weighted face-disjoint graph
Let every dual dart of carry an integer length , of any sign, with . We weight the face-disjoint graph of Section 2.3 as follows. Both arcs of every edge get length 0. The edge of an edge joins the corner nodes of the two faces of at one end of ; for each dart of , the arc of this edge from the corner node in right to the corner node in left gets length . Both arcs of every edge get length , where
Every corner node lies in one face of , which we call the face of . The graph may have parallel edges, at vertices of degree 2, and loops, at vertices of degree 1, where the loop is the dual of a bridge. A negative loop is a negative cycle of both and ; its host detects it locally.
Dual Distance Lemma. With these weights:
(i) the graph has a negative cycle if and only if has one;
(ii) if has no negative cycle, then for all corner nodes and with faces and , if , and otherwise.
Planarity is not used: the statement holds for the face-disjoint graph of a graph embedded in any surface.
Proof. Projection. A walk in that avoids the star centres consists of arcs and arcs. An arc joins two corner nodes of the same face, and an arc for goes from a corner node of right to one of left. Replacing every corner node by its face, dropping the arcs and replacing every arc for by gives a walk in of the same length, closed if the walk was closed.
Lift. Conversely, let be a walk in from to , and let be corner nodes of and . The edges of a face form a cycle through all its corner nodes, of length 0 in both directions. Replace every dual dart of by the arc for and join consecutive arcs, and and to the ends, by paths inside the faces. The result is a walk from to in of the same length as , which avoids the star centres.
Star centres. A simple cycle or path of through a star centre uses two arcs and at most other arcs, each of length at least . Its length is at least .
(i) A negative cycle of lifts to a negative closed walk of , which contains a negative simple cycle. A negative simple cycle of avoids the star centres, by the previous paragraph, and projects to a negative closed walk of , which contains a negative cycle.
(ii) By (i), has no negative cycle, so is attained by a simple path, or is . Such a path either avoids the star centres and projects to a walk from to , so its length is at least , or it has length greater than . If , a shortest path from to in has fewer than darts, so , and its lift gives . Hence . If , every path from to passes a star centre, so .
The weights on , with their directions, are already given in [9, Sec. 3, Property 5], where serves to simulate minor aggregation in the dual. The lengths 0 on and on make the distances of equal to dual distances, so that primal algorithms run on solve dual distance problems. Problems that change when the zero-length cycles are contracted, such as the girth, are not covered.
Dual SSSP Corollary. Let be a planar network with a known embedding, and let every dual dart carry an integer length of polynomial size. Given the Label Hypothesis, for a face , given by one of its corners, every vertex learns for the face of each of its corners:
(a) in rounds if the lengths are nonnegative, deterministically relative to the labels;
(b) in rounds with high probability in general, where the algorithm reports a negative cycle if has one.
Proof. Every vertex builds its star centre, its corner nodes and their edges, with the lengths above and , in rounds [9, Sec. 3, Property 1]. The proof of planarity in [9, App. A] gives an embedding of that every vertex derives from its own rotation. The graph has
Algorithm 2 DUALFLOW: maximum flow by negative-cycle tests in the dual
Require: directed planar network , integer capacities , terminals
Ensure: the value of a maximum -flow and the flow on every edge
1: Alongside, in alternate rounds, run the algorithm of [9, Thm. 1.2]; stop with the first to finish
2: Compute a path from to in a breadth-first tree
3: Binary search for the largest such that with the lengths has no negative cycle, each test by the Dual SSSP Corollary(b)
4: For this , compute the distances in from a fixed face by the Dual SSSP Corollary(b)
5: Every dart gets the flow
nodes and integer lengths of polynomial size, its hop diameter is at most 3D between star centres [9, Property 2] and hence at most 3D + 2, and an -round algorithm on runs in 2r rounds on [9, Property 3]. The hosts check for negative loops, drop the other loops and, of parallel edges, keep the lightest arc in each direction, which changes no distance, no planarity and no hop bound. Run EXACTSSSP, or NEGATIVESSSP, on from the given corner node of . The Dual Distance Lemma turns the result into dual distances: a negative cycle of is reported exactly when has one, and otherwise a distance of at least means that the face is unreachable. Here EXACTSSSP uses the embedding of above. Everything else is local, which gives the determinism in (a).
Part (a) improves the of [9, Lemma 2.2] for nonnegative lengths, and part (b) improves it once exceeds .
5.2 Maximum flow
A flow is given on darts: , and every dart has a capacity , the capacity of its direction, which is 0 for a direction that the network does not have. A flow is feasible if for every dart, and an -flow of value is a feasible flow whose net outflow is at , at and 0 elsewhere. We use two standard facts about a connected plane graph. First, for a function on the faces, is a circulation: the darts leaving a vertex, in rotation order, share faces with their neighbours, and the sum telescopes. Second, the darts whose duals form a simple directed cycle of are the darts of a cut that leave one side of it.
Maximum Flow Theorem. Let be a directed planar network with terminals and integer capacities in . Given the Label Hypothesis, the algorithm DUALFLOW computes the value of a maximum -flow and the flow on every edge. With high probability it takes rounds. The algorithm of [9, Thm. 1.2], which it runs alongside, gives rounds alone, without the hypothesis.
Proof. DUALFLOW (Algorithm 2) is the reduction of [10] in the form of [9, Sec. 6.1], with the Dual SSSP Corollary as the negative-cycle test.
Compute a path from to in a breadth-first tree, as a sequence of darts, in rounds. For let for , for , and otherwise, and give every dual dart the length . An -flow of value exists if and only if a circulation with exists: subtract or add along . Such a circulation exists if and only if has no negative cycle. If is a distance function in without negative cycles, the circulation satisfies by the triangle inequality on . Every dual dart
Algorithm 3 COMMONFACEFLOW: maximum flow with and on a common face
Require: directed planar network , integer capacities , terminals on a common face
Ensure: a maximum -flow and its value
1: Find a common face and corners in it: run EXACTSSSP on with weight 0 on , weight elsewhere, offset at corner of , and offset at all other nodes
2: Add a chord from to through and , with infinite capacity; it splits into
3: Split the corner nodes of in along ; run EXACTSSSP on this graph from a corner node of , with the lengths of the Dual Distance Lemma for , to get dual distances
4: Every dart gets the flow ; the value is
exists, so is strongly connected and is finite. Conversely, a circulation has net flow 0 across every cut, so every simple dual cycle has length at least 0.
The maximum flow value is an integer in , where is the largest capacity, so a binary search on takes negative-cycle tests. Each is part (b) of the Dual SSSP Corollary in rounds. For the largest feasible , the same corollary gives at every corner. The tail of a dart holds the corner nodes of left and right next to and knows whether or lies on , so it computes the flow locally. The minimum in the round bound comes from the run alongside the algorithm of [9, Thm. 1.2]: the first to finish tells all vertices over a breadth-first tree, in more rounds, and the other stops.
A minimum -cut follows from the set of vertices reachable from in the residual graph, which the Exact SSSP Theorem computes in rounds with weight 0 on every residual arc.
Common-Face Flow Theorem. If in addition and lie on a common face, then, given the Label Hypothesis, the algorithm COMMONFACEFLOW computes a maximum -flow, its value and the flow on every edge in rounds. It is deterministic relative to the labels.
Proof. COMMONFACEFLOW (Algorithm 3) uses the method of [11], which works for darts and so for directed networks, as noted in [9].
A common face. Number the corners of as in rotation order, and let broadcast . Run the Exact SSSP Theorem on with weight 0 on both arcs of every edge, weight on all other arcs, and a virtual source with offset at the corner node of corner of and offset at all other nodes. The edges of a face form a cycle through its corner nodes, so a corner node of gets distance exactly when corner is the corner of of smallest number in its face, and distance at least when its face has no corner of . The vertex picks a corner of smallest distance , which lies in a common face since and have one, and broadcasts and in rounds. Then knows its corner in . This takes rounds.
The chord. Add a chord from to inside , through the corners and , with infinite capacity. It splits into and . Let be the distance from in , where every dual dart has the length . This dual graph is the dual of with contracted, which is connected, so is finite.
Computing . In , split the corner nodes of and into two each, one for each side of , hosted by and . Each new copy keeps the edge of the old node and those of its and edges that belong to the edge of on its side of . This cuts the cycle of into two paths, one through the corner nodes of and one through those of , and gets no edge. The value is taken for the new number of nodes. This split comes before the hosts drop loops and parallel edges as in the proof of the Dual SSSP Corollary, since a loop at a terminal of degree 1 can stop being one. The proof of the Dual Distance Lemma uses of the edges of a face only that they connect its corner nodes with length 0, so it applies to this graph and to . The modified graph is still planar, has hop diameter at most , and is simulated by with a factor 2, since the split nodes are hosted locally and no edge of an edge of is removed. The Exact SSSP Theorem on it, from a corner node of , gives in rounds.
Flow. Set for every dart of , and . This is a circulation in , and for every dart of by the triangle inequality. Restricted to , it is an -flow of value , since it returns units from to through . A shortest path from to in can be taken simple, and with it forms a simple dual cycle. Its darts leave one side of a cut of , and since , from to , is among them, the darts of form an -cut of of capacity . So the flow is maximum. Every vertex computes the flow on its darts from at its corners.
Determinism. The two runs of EXACTSSSP on graphs derived from use embeddings that the vertices derive locally. All other steps are local or broadcasts.
The Common-Face Flow Theorem improves the -approximation for undirected networks in rounds of [9, Thm. 1.3], whose proof uses the same method with an approximate dual SSSP and finds the common face by part-wise aggregation. For any and in undirected networks, the Minimum Cut Theorem below gives the exact value of a minimum -cut in rounds, but not the flow on every edge.
6 Minimum cuts in undirected networks
Minimum Cut Theorem. Let be an undirected planar network with integer capacities in , hop diameter , and terminals whose identifiers all vertices know. Given the Label Hypothesis, the algorithm EXACTMINCUT computes the value of a minimum st-cut, which is the value of a maximum st-flow, in rounds. Every vertex learns this value, its side of a minimum st-cut, and which of its edges cross that cut. It is deterministic relative to the labels.
EXACTMINCUT does not compute the flow on every edge; for that, the Maximum Flow Theorem is the best bound we know.
The exact value of a minimum st-cut takes rounds by [9, Thm. 1.2], for directed and hence for undirected networks, or rounds by the Maximum Flow Theorem, both with high probability. In rounds, a -approximation for undirected networks is computed deterministically in [15, Thm. 1.1], with approximate SSSP “for the lack of almost--rounds exact distributed SSSP”. EXACTMINCUT combines that algorithm with EXACTSSSP. The combination needs two repairs. The auxiliary graphs of [15], on which we run EXACTSSSP, need a repair at and ; the Annulus Lemma and the Repaired Graph Lemma state what the repaired graphs provide. The recursion of [15, Alg. 3] can miss the minimum cut, also with exact shortest paths; with two more shortest paths per level it is exact, by the Witness Interval Lemma, the Incision Lemma and the Repaired Recursion Lemma. The proofs of these lemmas are in Appendices A, B and C, and Algorithm 4 states the whole algorithm.
The algorithm of [15]. It implements the algorithm of [17] in the dual graph. A shortest path is computed from a face of to a face of , and the dual is cut open along , which gives an annulus in which every node of has two copies and . For the middle index , a shortest path from to is computed, and the annulus is cut open along into two annuli, one for the indices below and one for those above; this is repeated on levels. The nodes of an annulus are node-parts, pieces of faces of [15, Def. 2.9], the face-part of a node-part is the part of the boundary of its face that it keeps [15, Claim 2.13], the annuli of one level are connected and disjoint [15, Claim 2.12], and every edge of is incised at most once [15, Lemma 2.6], so it has at most two copies on one level. The algorithm reports the least length of a computed path as the value of a minimum -cut; we describe the recursion that computes these paths, and repair it, below. All shortest paths are computed in lines 2, 7, 8 and 11 of [15, Alg. 3], on all annuli of one level at once (on level 0, which computes , the only annulus is ), through [15, Thm. 4.1]: given a source node-part in every annulus of level , it computes a shortest-path tree of rooted at such that
(R1) obeys the approximate triangle inequality [15, Def. A.1];
(R2) for every node-part of , every vertex of knows the length of the path from to in ;
(R3) every vertex knows, for each of its edges , in which trees a copy of lies, and the identifiers of its ends there.
In [15] the trees are -approximate, and (R1) means that every subpath of a tree path is -approximately shortest. The Exact Trees Lemma below gives exact trees, for which every subpath of a tree path is a shortest path.
The graph . For a level whose incision paths are stored at the vertices as in [15, Def. 3.2], the graph of [15, Thm. 3.1] has, for every vertex of , a star centre, a copy for every corner of , and copies and at corners next to incised edges. Its edges join the copies of one vertex in a tree of depth two, its edges are copies of edges of , and each edge joins two copies of one vertex and represents an edge of the dual. For the graph as defined in [15], the following holds.
-
Every vertex of has at most copies, and is built in rounds [15, Lemma 3.15]. A CONGEST round on takes four rounds on , since and edges join copies of one vertex [15, Lemma 3.16].
-
The graph is planar [15, Lemma 3.5]. Its hop diameter is at most between star centres [15, Lemma 3.4], and every copy of is within two hops of the star centre of , so the hop diameter is at most .
(1) Every node-part of level is represented by a path of edges that contains a copy of every vertex of , and these paths are vertex-disjoint components of [15, Thm. 3.1(1), Lemma 3.6].
(2) For every edge between node-parts and of a level- annulus there is exactly one edge between and , and there is none if and are not adjacent on level [15, Thm. 3.1(2), Lemma 3.13]. The other edges represent dual edges outside every annulus.
- Every vertex knows, for each node-part with , an identifier of , a leader vertex of , and the identifier of the annulus that contains [15, Lemma 3.17], or that lies in no annulus [15, Claim 5.8].
Endpoint-case edges. Let , and let be its primal edges, where has on one side and on the other. To cut the dual open along , the vertex chooses an endpoint-case edge , an edge of on the face whose dual is not on , and chooses on
in the same way [15, Sec. 5]. The face is split into the node-parts and at the corner of between and the next edge, and is adjusted at and for this in [15, Remark 3.3]. As we read that remark, the resulting graph can violate (1) or (2) at or in three ways, which a simulation found (Section 7).
(D1) If an incision path of a later level incises , the remark handles “just like any other incised edge”. Then the copy at the corner that the cut along splits receives an copy of as well as the copy of the next edge of , so that in a leaf annulus the pieces of and lie on one path and have distance 0. The same happens at . In the smallest instance found, has the vertices 0, 1, 2, 3, the edges 03, 01, 12, 23 of capacity 1 and 13 of capacity 5, the rotations (03, 01), (12, 13, 01), (12, 23) and (23, 03, 13) at 0, 1, 2 and 3, and , . The faces are 031, 3012 and 213, the path crosses 03 and 12, the endpoint-case edges are 13 and 23, and the incision path of level 1 incises 23. The minimum cut has capacity 2, and the algorithm of the Minimum Cut Theorem with this graph in place of the repaired one reports 0.
(D2) The edge of an endpoint-case edge that is not incised is always placed at the other end of . If and , this edge does not join the paths of the two node-parts that the dual of joins. For the network that consists of the single edge , both edges are loops, and the two node-parts of are joined only through edges.
(D3) The copy of the remark is placed on the face of the corner that follows at , which is only if is chosen with this corner on . The rule of [15, Sec. 5] allows every edge of on whose dual is not on . With that rule taken literally, was placed on the other face of in 3,724 of 6,000 runs.
We use the following choice and repair; away from and , the graph is the graph of [15], built from the set below. As in [15], the corner of lies between the edges and of .
-
Choice. The vertex fixes a corner of on and an edge whose dual is not on . If , the copy of at the corner is the copy of [15, Remark 3.3] (mode ); if , it is a copy with left and right exchanged (mode ). Such a choice exists (part (5) of the Repaired Graph Lemma), any of them can be taken, and sends it to its neighbours once; it is the same on all levels. Every edge that the rule of [15, Sec. 5] allows is or for a corner of on , so it can be read as such a choice. The same holds for at , with in place of .
-
Repair (a). If is incised at a later level, the copy of attached to in [15], at the corner that the cut along splits, is attached to a fresh copy of instead, which is joined to by an edge. The corner stays split. The same holds for at .
-
Repair (b). Every edge connects two copies of an edge of at an end of ; it joins the two copies of to which these copies are attached.
The choice and the repair are local at , at and at the other ends of and , and they add at most two copies and two edges. From now on, denotes the repaired graph. Appendix A defines it in terms of labelled darts and fixes the end of each edge that carries its edges.
Pieces. The Annulus Lemma describes the annuli of [15] by labelled darts. Let be the set of edges of incised before level : the edges of and of every incised part of a level below . The vertices store this set, in the place of the whole paths of [15, Def. 3.2], and , and . A dart of an edge outside carries one token , and a dart of an edge in carries two, and . The tokens of an edge form pairs: if the edge is not in , and and if it is. A pair is a copy of the dual edge on level . In the boundary walk of every face, list the tokens in walk order, with before , and cut the list between and for every dart of an edge in and, for , at the two corners and that the choice above fixes at and . A piece of level is a maximal run of tokens with no cut inside; a face without a cut is one cyclic piece. The token graph has the pieces as nodes and the pairs as edges, a pair joining the pieces of its two tokens. The parent of a token of is itself if the edge of is in , and otherwise. On level 1, the token graph is the dual cut open along an arc that leaves through the corner , crosses once each and enters through . Every face of splits into two pieces and , on the two sides of , and every other face is one piece. An annulus of level is live if the recursion of [15, Alg. 3] is called on it at depth .
Annulus Lemma. Let .
(a) Every live annulus of level is a connected component of . So its node-parts are pieces and its edges are pairs, and with a token it contains the other token of its pair. The other components of are called residual.
(b) Every piece of level refines one piece of level : the parents of its tokens lie in that piece. The pieces of level 0 are the faces of .
(c) The live annulus of level 1 is . Let every pair have the capacity of its edge as its length, and let be the value of a minimum st-cut. Every walk in from to has length at least , and for some there is such a path of length .
All three parts hold for every choice of the corners and .
Repaired Graph Lemma. Let , and let the endpoint data be any choice allowed above. The repaired graph has the following properties.
(1) For every piece of level , the edges of its tokens form a path , a cycle if is cyclic, which contains a copy of every vertex of . The paths of distinct pieces are vertex-disjoint, and every copy except the star centres lies on one of them. With part (a) of the Annulus Lemma, this is [15, Thm. 3.1(1)] for every node-part of a live annulus.
(2) The edges correspond one to one to the pairs, and the edge of a pair joins and , where and are the pieces of and . So every edge of a live annulus of level has exactly one edge, which joins the paths of its two ends, and every other edge joins the paths of two pieces of one residual component. An edge is a loop only if its host has degree 1, and then its pair is a dual loop.
(3) The graph is planar. Every vertex of computes a planar rotation at each of its copies (Appendix A.3) from its own rotation, from which of its edges are in , from the identifiers of its neighbours and from the endpoint data of and , within rounds.
(4) The hop diameter of is at most . A vertex has at most copies, and and have at most . Once is stored, is built in rounds, and a CONGEST round on takes four rounds on .
(5) The choice of the endpoint data always exists: has a corner on , and every such corner has a flank whose dual is not on . The same holds for and .
(6) The statement of [15, Lemma 3.17] holds for : every copy, the fresh ones included, learns the identifiers of its node-part and of its annulus, and the leader of is a copy of a vertex of . In the local phase of its proof, copies are matched across levels by their tokens instead of by name.
This covers an endpoint edge in , also one incised anew on level (D1); , incised or not (D2); mode (D3); terminals of degree 1 or 2; parallel edges; several corners of on and an endpoint edge with both darts on ; and . On level 0 no edge is incised and no corner is cut, and is the graph of [15, Sec. 3.1].
The statements about that the algorithm uses besides these, [15, Lemma 3.14, Claim 3.30, Cor. 3.23, Thm. 3.26], are derived in [15] from them, from the hop diameter and from planarity. The failures (D1) to (D3) may come from a misreading of [15] on our side, and we have not checked whether they affect the approximate algorithm of [15].
Positive capacities. Loops cross no st-cut and are deleted, and parallel edges are merged into one edge whose capacity is their sum. This changes no cut value, and an edge crosses a cut exactly when its merged edge does. So is simple from now on, with for and for . The algorithm of [15] takes positive weights. Replace every capacity by . An st-cut has with , so a minimum -cut is a minimum -cut and its -value is . From now on all capacities are the positive integers , and lengths in are capacities of the primal edges.
Exact paths lose nothing. With exact trees, the three places where the algorithm of [15] loses a factor lose nothing.
-
Non-crossing paths. In [15], the distance between the two copies of a node of can grow by a factor from an annulus to its child [15, Lemma 2.7 and Claim A.2], and the overlap rule of the recursion rests on [15, Claim 2.3]. With exact paths, (INV) of the Incision Lemma below shows that in every live annulus the distance between its two copies of is the distance in , for every index of its range. Its proof (Claim 17) replaces the part of a shortest walk between its first and its last node on the incised part by the part of in between, lifted to the called side, which holds exactly one part of each node of ; the parts of the walk off stay on their side. In place of [15, Claim 2.3], (C23) of the Incision Lemma (Claim 19) shows that every common node of and a bound lies on a shortest walk between the two copies of for every index that the overlap rule serves, so that rule computes these distances exactly. Ties do no harm, since only the existence of an equally short walk is used. In place of [15, Claim 2.4] we use the Witness Interval Lemma. Whole paths can cross along parts that are not incised. This does no harm, since only the incised parts bound annuli.
-
The flow value. In [15, Sec. 5.2] the value of the cut is divided by to obtain a flow value. With exact paths the value of the minimum cut is the maximum flow value.
-
A simple cycle. In [15, Sec. 5.2] the computed path of least length is turned into a simple cycle of . Since P is a shortest path, this does not increase the length; we prove this under The cut below.
So it suffices to prove [15, Thm. 4.1] with exact trees in rounds, and to repair the recursion. We do the first on the repaired graph , with weights in the spirit of the Dual Distance Lemma.
Exact Trees Lemma. The statement of [15, Thm. 4.1] holds with exact shortest-path trees in rounds: every path of from is a shortest path of , and so is every subpath of it. The algorithm is deterministic relative to the labels.
Proof. Multigraph. The graph can have parallel edges, at vertices of degree 2, loops, at vertices of degree 1, and at a terminal of degree 1 an edge parallel to an edge (part (2) of the Repaired Graph Lemma and Appendix A), as can have the first two (Section 5). Their host drops the loops and, of parallel edges of any type, keeps the lightest; this is local and changes no distance below, and no hop distance. A dropped edge belongs to a dual loop or to a parallel dual edge and is in no shortest-path tree.
Weights. Let and , where is aggregated in rounds. By part (4) of the Repaired Graph Lemma, , which is less than since is simple. Both arcs of every edge get length 0. An edge whose ends lie on paths and of node-parts of one live annulus represents an edge of that annulus, the copy of the dual of a primal edge ; both of its arcs get length . All other arcs, those of and of the other edges, get length . The host of an edge sets its lengths locally, since it knows the annulus of each copy (part (6) of the Repaired Graph Lemma) and whether it is live. The recursion decides this as described under Naming and sides below. All lengths are integers of polynomial size.
Distances. Let be node-parts of one live annulus of level , and let
over all paths from to in , where is the number of edges of . We claim that for all and , and that every walk of length less than that starts on some stays on the paths of the annulus of . For the upper bound, replace every edge of a minimizing by its edge, which exists by part (2) of the Repaired Graph Lemma, and join consecutive ones along the paths , whose arcs have length 0. Every length is at least 1, so a minimizing is a simple path. It has fewer edges than has node-parts, and the paths are disjoint and nonempty, so . Every edge of has at most two copies on level , so and . For the lower bound, take a walk of length less than from a vertex of . It uses only arcs and arcs of live annuli. An arc stays on one path , since by part (1) of the Repaired Graph Lemma these paths are the components of apart from the star centres. By part (2) of the Repaired Graph Lemma, an arc of a live annulus that leaves a vertex of goes to a path with an edge of that annulus, and since the paths are vertex-disjoint, this is the annulus of . So stays in the annulus of , and replacing its arcs by the edges of they represent gives a walk in of length . Finally, since a minimizing has , it is a shortest path for , and .
SSSP. Let be the source in , for the annuli that have one in this call. Join a virtual source to the copy of the leader vertex of on with offset 0, for every such , and to every other vertex of with offset . By the claim, every vertex on a path , with a node-part of , has , since every walk from another source or through an offset has length at least . EXACTSSSP covers virtual sources with integer offsets. We run it on , which is planar by part (3) of the Repaired Graph Lemma, has vertices and hop diameter at most , in rounds on and hence on . Its embedding is the rotation of part (3) of the Repaired Graph Lemma, which every vertex computes locally for its copies.
Trees. All copies on one path have the same distance. Every node-part of picks as its parent the arc with and of smallest identifier, by one part-wise aggregation over the paths , in rounds [15, Claim 3.30, Cor. 3.23]. Such an arc exists, since a shortest walk from to has length below and enters through an arc of . Every length is positive, so distances strictly decrease along parents, and the parents form a tree rooted at . Its path from to is a path of with , hence a shortest path for , and so is every subpath of it. This is (R1) with ratio 1. For (R2), every vertex of reads at its copy on . For (R3), the parent arc of belongs to an edge that one end of a primal edge hosts; it tells the other end of in one round, with the identifiers of the node-parts from part (6) of the Repaired Graph Lemma.
The recursion. We use [15, Alg. 3] in the following form. A piece of a live annulus that refines , through part (b) of the Annulus Lemma applied level by level, is a piece of ; by part (c) of the Incision Lemma below, a live annulus has at most one, which we call . Every live annulus has an index range [15, Sec. 5.1], and has the range . If , then is a leaf and computes shortest paths and , where runs from to . Otherwise let . The annulus computes , read from ; if the tree was rooted at , the path is reversed first. Let and be the least and the greatest index of a piece of a face of on , let be the index of the last piece of some on , and the index of the first piece of some after it. The part of between them runs from a piece of to a piece of , has no piece of a face of inside, and is the part that is incised [15, Remark 2.5, Lemma 5.7]. Incising splits into subgraphs on two sides, the -side and the -side. The annulus is bounded by at most two bounds, the copies in of incised parts of earlier levels, on its -side and on its -side; has neither. If shares a node with , the -side gets no call, and the overlap rule [15, Alg. 3, lines 9 to 14] grows a shortest-path tree in from a common node and reads from it a path from to for every . Otherwise the -side is called with the range , if this range is not empty. The -side is symmetric, with , the range and the overlap rule for . A subgraph that contains a bad edge, an edge of or that is not on and has an end on or on , is discarded [15, Claim 5.8]. The called subgraphs are the live annuli of the next level. The algorithm outputs the least length of a computed path , so not of , and a cut of that capacity is read off as in [15, Sec. 5.2].
Five points of this description are our reading of [15]; two further changes, the names and sides below and the indices and in the proof of the Minimum Cut Theorem, are stated where they are used.
-
The bound is the incised copy. The overlap test of [15, Alg. 3, lines 9 to 12; Claim 2.3; Def. 2.8] is written with the whole path of an earlier level. We read it with the copy in A of the incised part of that path, the bound . Only under this reading does the bad-edge rule of [15, Claim 5.8] make sense: with whole paths, the copies of edges of P on the parts outside the incised part would count as bad edges. The test is then local: by the invariant of Appendix B.3, the nodes of and are exactly the nodes of A that carry an old token of an edge off P. The two readings differ, since can meet the parts of the earlier path outside its incised part.
-
No call on a side with overlap. This follows [15, Def. 2.8]. The implementation of [15] decides by bad edges [15, Claim 5.8], whose converse fails (Section 7), so we test overlap directly, as .
-
No call on a side with an empty range. In [15, Alg. 3, line 18], the side with the range is called also when ; its leaf step would then look for a piece of that the side need not have.
-
Incised parts are stored. The set holds all incised parts of earlier levels, while in [15, Def. 3.2] the vertices store whole paths and use those that bound annuli of level . The token form of the Annulus Lemma needs our set (Section 7).
-
The range of the overlap rule. It serves , where [15, Alg. 3] has with the index of the bound. Below the annulus has no pieces of these faces, so this form
is needed.
The two call rules only remove calls. The whole-path reading of the overlap test gave the right value on all test instances (Section 7), but the Incision Lemma does not cover it, and we do not use it.
Naming and sides. The names above must be computable. On level 1, let be the piece of whose first token in walk order follows the cut at , for , or the cut inside the dart of in . The pair of , with in , joins two such pieces, so the names agree along . The enumeration of [15, Sec. 5] with one aggregation over the paths on level 1 tells every corner of a face of its index and its name, and later pieces inherit them. Let be the dart of a new edge of at its end nearer to . Then the copy lies on the -side and on the -side (Claim 11). The hosts store this with the edge, which also tells a node of a bound which of the two bounds it is on. A level then runs in this order. On the annuli of the previous level, one aggregation computes the flags for overlap, for an empty range and for a part without a new edge. Then build , obtain the identifiers of the components from part (6) of the Repaired Graph Lemma, aggregate the stored sides and these flags over every component, set the weights of the Exact Trees Lemma, and run SSSP. A called side is one subgraph that holds one copy of every edge of (part (b) of the Incision Lemma), so a component is the called child of a side exactly when it holds a copy of a new edge of of that side. If has no new edge, nothing is cut, and the one component lies on the side given by part (a) of the Incision Lemma.
The defect. After computing , the recursion drops every index with : the children get the ranges and [15, Alg. 3, lines 15 to 19; Lemma 5.6]. The reason given is [15, Claim 2.4]: or is no longer than . The proof of [15, Lemma 5.6] assumes that the subpath of from to has two copies in , that is, that holds only the copies of the faces of its range. Then and lie in , and the end of every range is computed. But an annulus can hold copies of faces of outside its range. Then the witness or lies outside the range of , and another annulus may have dropped it already. Two drops can rest on each other, and then no computed path has the minimum length.
Example 6.1. Section 7 gives a simple planar network with 11 vertices and 22 edges whose minimum st-cut has capacity 15, while the recursion reports 37; lengths here are the capacities. For the faces of and and the corners chosen in the run, has the eight faces , and the minimum cut is a dual triangle through , and a face off (faces off are numbered as in the script). It uses the edge of between and , so it is a shortest walk for both indices 4 and 5. On level 1, with the range , the path has length 99, so and . Index 4 is dropped with as its witness, and the children have the ranges and . On level 2, the annulus with the range also holds copies of and , and the distance between its pieces of and is 15. Its path has length 37, so : index 5 is dropped with as its witness, which level 1 has dropped already. The recursion reports 37, which is 2.47 times the minimum. For the lengths below, every path that the run computes is unique, so no tie-breaking rule changes the outcome. The sub-ranges of [15, Sec. 5.1] change only the overlap rule, whose one use in the run serves the indices 1 to 3, with lengths at least 99, in an annulus with no piece of or .
As we read [15], its recursion is the same with approximate trees, and exact trees are a special case of approximate ones. The step of [15, Sec. 5.2] that says that the leaf annuli cover all of P is where the defect enters.
Algorithm 4 EXACTMINCUT: the recursion of [15] with exact paths and its repair
Require: undirected planar network , integer capacities , terminals
Ensure: every vertex learns the value of a minimum -cut, its side and which of its edges cross
1: Delete loops, merge parallel edges, , and use the lengths with
2: Compute a shortest path in from a face of to a face of ; choose the corners and the endpoint-case edges
3: Cut open along into the annulus , with the range and no bound
4: for each of the levels , while there is a live annulus do
5: Build the repaired graph ; every shortest path of this level comes from one call of the Exact Trees Lemma on it, for all live annuli at once
6: for every live annulus with range and bounds do
7: if then compute and ; is a leaf
8: else
9: ; compute from to
10: Let be the least and the greatest index of a piece of a face of on
11: Compute and for and the repair; skip one equal to
12: Incise the part of between the last 0-piece and the first 1-piece after it
13: if meets then read for all from a tree grown at a common node
14: else if then call the -side with the range
15: if meets then read for all from a tree grown at a common node
16: else if then call the -side with the range
17: Report the least -length of a computed path or walk ; its value for is ; read off the cut
The repair. In every live annulus that is not a leaf, once , and are known, also compute shortest paths and in , where
and skip one that equals . Nothing else changes: the same indices are dropped, and the children, the incisions and the graphs stay the same. The two paths are computed like , each by one call of the Exact Trees Lemma with one source per annulus and all annuli of a level at once; so a level makes two more calls. Every node of knows and after [15, Lemma 5.6] and and by [15, Sec. 5.1], so it computes and locally, and the source is elected as for . The two paths are marked as tree paths [15, Lemma 5.2] and enter the final minimum and the cut extraction of [15, Sec. 5.2], which gives a cut whose capacity is the length of the path for them too. Among computed paths of least length, the one with the least index is taken, then the first computed, then the one of the annulus with the least identifier.
Lengths. In the Witness Interval Lemma, the Incision Lemma and the Repaired Recursion Lemma, every dual edge, and every copy of it in an annulus, has the length , with as in the Exact Trees Lemma. These lengths are positive, and exceeds the number of edges of every simple path in an annulus, since every node-part has its own nonempty path in . By the Exact Trees Lemma, every computed path, included, is a -shortest path in its annulus. For an index , let be the -distance in from to , let , and let be the value of a minimum -cut. By part (c) of the Annulus Lemma, every walk in from to has -length at least and hence -length at least , and for some there is a simple path of -length with fewer than edges. So . By the Annulus Lemma, every walk in a live annulus maps to a walk in of the same length, and a piece of maps to .
Witness Interval Lemma. Let be a walk in from to of length . Let be the index of the last piece of some on and the index of the first piece of some after , and let and be the least and the greatest index of a piece of a face of on . Then and , and for every with ,
This is an interval form of [15, Claim 2.4], and it is proved in alone. By (INV) of the Incision Lemma, the path of a live annulus has length , so its image in is a walk as in the Witness Interval Lemma, with the same and . The interval of the witnesses reaches or itself, which can lie outside ; this is what the recursion of [15] misses.
Appendix B draws and the incised parts as curves in the sphere. There, is drawn as an arc from a point of in the face to a point of in the face , and is a simple closed curve. Its low side is the side that contains the part of before and , and its other side is the high side. The low side is the -side of [15] and the high side the -side; this is the reading of [15, Def. 2.2, Remark 2.5] that the Annulus Lemma also makes. The invariant (I) is defined in Appendix B.3. An edge, pair or token is old on level if its edge is in , and new otherwise.
Incision Lemma. Suppose that all live annuli of level satisfy the invariant (I), and let be one of them that is not a leaf; the annulus satisfies (I), and so does every called child of an annulus that satisfies it. Let and be as above.
(a) Sides. Every subgraph obtained by incising lies on one side of . The pieces of of for and of for lie on the low side, and those for and for on the high side. If the edge of at is new, splits into its part below the cut, on the low side, and its part above it, on the high side. If that edge is old, it is the first edge of or of , and does not split; it lies on the high side if the edge is on and on the low side if it is on . Then meets that path at , so the side of that path gets no call, and the called side, if any, holds all of . The same holds at , with the last edge of . For strictly between and such that has pieces of and of , every walk in between them meets a node of .
(b) The called side. A side on which does not meet the bounding path of that side is one subgraph. It has no bad edge, and it holds exactly one copy of each edge of . A bad edge in a subgraph of the -side is an edge of , and on the -side an edge of .
(c) Pieces. Every live annulus has at most one piece of each and at most one piece of each face off .
(INV) For every live annulus and every such that has pieces of and of , in particular for every , their distance in is .
(C23) Let and be the indices of the ends of , a piece of and a piece of . If meets in a node , then for every , an interval that contains . Symmetrically, if meets in a node , the same holds for every , where and are the indices of the ends of .
So the overlap rule computes for every : the tree from a common node gives a walk from to of length at most , and every such walk has length at least by (INV). The equality in (C23) fails beyond in general (Section 7).
Repaired Recursion Lemma. With the repair, every computed path or walk from a piece of to a piece of has -length at least , and some computed path has -length . So the least -length of a computed path or walk is , the value of a minimum -cut.
The cut. Let be a computed path or walk of least length, from a piece of to a piece of , and let be its -length. A walk of the overlap rule is a shortest walk by (C23), and , so is simple. Let be the index of the last piece of some on and the index of the first piece of some after it, and write with the part between them. Its image in has as a walk between and and as a walk between and . The path is a shortest path for with fewer than edges, hence for , so and , and the union of these two subpaths contains . So the closed walk made of the image of and has -length at most . The internal nodes of are off and, by part (c) of the Incision Lemma, are pieces of distinct faces. No edge of is a copy of an edge of , since such a copy joins two pieces on one side of (Appendix B.2), while an edge of has an end off or joins a 0-piece to a 1-piece. The edges of are copies of distinct edges of , since a live annulus has at most one pair of each edge off , by (Old) in Appendix B.3. So is a simple dual cycle, or a loop if and has one edge. Draw the pairs and nodes of as curves as in the proof of part (c) of the Annulus Lemma, and close the curve along between its two ends, on one side of . The closed curve meets only in edges of and crosses exactly once, so separates from . Hence , and is a minimum -cut. Since , removing its edges leaves exactly two components, which the bisection of [15, Sec. 5.2] finds. The vertices mark for it: is a tree path or two tree paths through a common node, so [15, Lemma 5.7] applies, the indices and are broadcast, and the edge knows . The two ends of an edge then compare their sides in one round.
Proof of the Minimum Cut Theorem. Delete loops, merge parallel edges and replace by as above; a bound on is known, and one aggregation gives . EXACTMINCUT runs [15, Alg. 3] on the capacities , with the endpoint data chosen as above, on the repaired graphs , with every call of [15, Thm. 4.1] answered by the Exact Trees Lemma, and with the repair of the recursion. By the Repaired Recursion Lemma, the least -length of a computed path or walk is . By the last paragraph, its cut is a minimum -cut, hence a minimum -cut, whose value every vertex obtains as . Ranges halve from level to level, so there are levels, and each makes calls of the Exact Trees Lemma: those of [15, Alg. 3], and two more for the paths and of the repair. Each call takes rounds. All other steps of [15] are unchanged and take rounds, since they use only the properties of in the Repaired Graph Lemma: the simulation of minor aggregation [15, Thm. 3.26], the tree primitives and the steps of [15, Lemmas 5.2 and 5.4 to 5.7], and the bisection. Two of them need a remark. The indices and are taken over all pieces of faces of in , by one aggregation, in place of the assumption in the proof of [15, Lemma 5.6] that holds only the faces of its range. And [15, Lemma 5.5] needs values per face of , which holds since the ranges of one level share only end indices. The algorithm of [15] is deterministic given the planar embedding [15, Thm. 1.1], and the repair of the recursion adds only local steps and calls of the Exact Trees Lemma, so EXACTMINCUT adds no randomness to the labels and the embedding.
| Statement | Script | Runs, all without a failed check |
|---|---|---|
| Virtual Source Lemma, along chains, with values in , in the bag and mixed; all-bags form | check.py; attack/lemmaV.py | 80 instances; 300 with adversarial overestimates |
| Dual Distance Lemma | check.py, attack/ | 80 instances (33 distances, 47 negative cycles); 600 more |
| Maximum Flow Theorem | check.py, attack/ | 80 instances; 600 more |
| Common-Face Flow Theorem | check.py, attack/ | 69 instances; about 440 more |
| EXACTMINCUT, the reduction | thmD/thmD.py | 64,000 instances in eight families |
| EXACTMINCUT, repaired graphs | thmD/thmD.py | 79,000 runs; 1,848 graphs planar with hop diameter at most |
| Annulus Lemma, Repaired | thmD/repair/ | 98,000 instances with 260,625 levels, and 12 named networks |
| Graph Lemma | 6.9 million level-1 corner pairs, 1.3 million graph builds, 3.5 million instances of the recursion | |
| Adversarial search on these two lemmas | thmD/attackR/ | 1,440,000 instances |
| Repaired recursion | thmD/ | 342,000 instances with 232,868 incisions; 162,000 with 118,856 incisions |
| Witness Interval Lemma, Incision Lemma, invariant | thmD/lemma0/, referee0/ | 240,000 runs |
| Referee simulator for the Minimum Cut Theorem | thmD/refereeD/ | 25,109,452 runs |
| Adversarial pass on the recursion | thmD/attackS0/ | 25,109,452 runs |
Table 3: Numerical checks. The script names are relative to sim/.
The Exact SSSP Theorem is not a minor-aggregation algorithm, so it cannot run on each annulus directly, whose hop diameter can be large; this is why an approximate SSSP algorithm through minor aggregation is used in [15]. One exact SSSP on all of , with the weights above, needs only CONGEST on a planar network of hop diameter .
7 Numerical checks
The scripts are in the directory sim/ of the repository named in Section 8 and need Python 3 with numpy, scipy and networkx. They implement the sequential meaning of the statements on finite families of instances. They do not test round counts, they do not cover all inputs, and no proof in this paper relies on them. No check in Table 3 failed. The notes and scripts in the repository use older names: Theorems A, B, C, C' and D for the Exact SSSP Theorem, the Negative Weights Theorem, the Maximum Flow Theorem, the Common-Face Flow Theorem and the Minimum Cut Theorem, and Lemmas V, D, N, R, S1, O and S2 for the Virtual Source Lemma, the Dual Distance Lemma, the Annulus Lemma, the Repaired Graph Lemma, the Witness Interval Lemma, the Incision Lemma and the Repaired Recursion Lemma.
The checks of the reduction, the repaired graphs and the adversarial search on them have negative controls with a deliberately broken input or construction, which failed as they should. With as we read [15, Remark 3.3], 10,673 of 30,000, 1,617 of 4,000 and 3,245 of 15,000 runs of the reduction failed, every one through (D1) or (D2). With the weight in place of , with , and with +1 on 30% of the arcs, the checks flagged 1,561, 2,913 and 2,841 of 3,000 runs. The adversarial search also found the instance on which the converse of [15, Claim 5.8] fails (seed 308940), and the defect of the recursion.
The runs of thmD/thmD.py in Table 3 predate the repair of the recursion, and none of them met its defect. That script builds from a smaller set than : the edges of and of the paths that bound the live annuli. The scripts in thmD/repair/ use . On 256,056 of their levels the two sets agree and both builders gave the same edges, and on the other 4,569 levels has 10,929 more edges. With the smaller set in the place of , 2,000 instances gave 482 tokens without a parent token and 272 pieces that refine no single piece of the previous level.
The adversarial pass on the recursion. The directory thmD/attackS0/ holds every run of the recursion, up to a cap of runs per instance, on all connected loopless maps with at most 8 edges and several capacity vectors; the cap was reached on one instance with 7 edges and on 534 with 8. It also holds adversarial choices of corners, modes and ties, hill-climbing, the saved instances on which the recursion without the repair fails, and direct checks of the Witness Interval Lemma on 3,185,392 annuli. Its file logs/summary.txt has the counts. On the saved instances, the recursion without the repair gives a wrong value in about a fifth of the runs.
The recursion. The network of Example 6.1 has the vertices and the edges with the ends , , , , , , , , , , , , , , , , , , , , , and the capacities . The dart leaves the first end of edge and the dart the second, and the rotations at the vertices are , , , , , , , , , and . The terminals are and . The minimum cut has capacity 15 and consists of the edges 4, 8 and 16; the rotation system is planar. With the faces numbered as in thmD/thmD.py, the run of the example has through the faces . That script reports 37 on 2 of 80 runs of this network, which differ in the faces of and and in the corners. The file thmD/attackR/logs/trace_min_simple0.txt holds a trace of the run. On the 25 instances that the adversarial search saved, 12 runs each, the script gives a wrong value in 161 of 300 runs without the repair and in none of 300 with it, and on 1,200,000 instances of its own families it gives 6 wrong values without the repair.
The incision lemma. The equality of (C23) of the Incision Lemma held in all 415,821 checks on and failed beyond : in 1,669 of 12,044 checks on and in 84,996 of 184,078 beyond (and symmetrically on the -side). Under the whole-path reading of the overlap test, 1,561 sides in 162,000 instances overlap that do not overlap under our reading; a copy of the script with this test gave the right value on all of its 84,000 instances and in the adversarial pass, 738,496 further runs.
8 Formal verification
The formalization is in the directory lean/SsspFlow/ of the repository
https://github.com/ssenge/ExactShortestPathsAndFlowsOnPlanarGraphs,
at the tag arxiv-v1. It uses Lean 4 with the toolchain leanprover/lean4:v4.36.0-rc1 and Mathlib at the revision
d875a8de5222f62cf1c2fafc7984588adadc990a, which is pinned in lean/lakefile.toml and in lean/lake-manifest.json. No proof uses sorry. The command lake env lean SsspFlow/Axioms.lean prints the axioms of all theorems named below. The output is recorded in lean/axioms.txt, and it lists only pronext, Classical.choice and Quot.sound. In a fresh clone, lake exe cache get before lake build avoids compiling Mathlib from source. The repository holds further Lean files, on the steps of its notes on [1], which this paper does not use. Distances are infima over walks throughout.
LemmaVChain.lean. The theorem RHierarchy.lemmaV_chain of the namespace SsspFlow is the Virtual Source Lemma: a digraph with arc lengths in , offsets in , and a well-founded bag hierarchy (RHierarchy, in LemmaVRegion.lean) whose bags carry arc sets (arc), where the root carries every vertex and arc (root_bag, root_arc), arcs of a bag have their ends in it (arc_bag), non-hub vertices lie in exactly one child (cover, uniq), and an arc of a bag between two non-hubs is an arc of some child (edge). Chains are the inductive Chain. The values are hypotheses along chains, with the bounds of the lemma, and . No finiteness is assumed; stands for unreachable. Not formalized: the CONGEST algorithm and its rounds, the construction of the hierarchy and of the values.
LemmaD.lean. The structure Setup describes a graph with corner nodes, star centres, a ring relation whose reflexive-transitive closure joins exactly the corners of each face (ring_face, ring_conn), one arc per dual dart from a corner of its tail face to a corner of its head face (src_face, dst_face), and spokes in both directions; parallel arcs and loops are allowed. With and , Setup.negCycle_iff is part (i) of the Dual Distance Lemma for closed walks, and with no negative closed dual walk Setup.walks gives the lift and the projection. With , every face having a corner, and no negative closed dual walk, Setup.lemmaD is part (ii) of the Dual Distance Lemma, with distances in the extended reals. The definition rotSetup builds from a combinatorial map (corners are darts, faces are orbits of the face permutation), rot_pair shows that each edge gets one edge whose two arcs join the same two corners, and rot_lemmaD is the Dual Distance Lemma for this graph. Planarity is not used. Not formalized: the planarity, hop diameter and simulation properties of from [9], and the algorithms run on it.
Boost.lean. The structure Run is the run of the Discretized Boosting Lemma: , every vertex reachable, integer input lengths, the update with base , and (O1) to (O3) as hypotheses on the estimates. The statements Run.len_nonneg, Run.contract and Run.exact are parts (a), (b) and (e) of the Discretized Boosting Lemma, with (c) and (d) as Run.decay and Run.sum_bounds. The lemma c1_negative is the one-arc instance in which the base gives . Not formalized: the oracle (Algorithm 3 of [3] and the labels), the choice of , the rounding (W1), and the round count.
Proved on paper only. The CONGEST algorithms and their round counts; the planarity, diameter and simulation properties of ; the Exact Trees Lemma; and the proofs of the Exact SSSP Theorem, the Negative Weights Theorem, the Maximum Flow Theorem, the Common-Face Flow Theorem and the Minimum Cut Theorem from these parts. The Minimum Cut Theorem is not formalized in Lean: no part of its proof, including the Annulus Lemma, the Repaired Graph Lemma, the Witness Interval Lemma, the Incision Lemma and the Repaired Recursion Lemma, has a Lean counterpart.
9 Open questions
-
As we read [15], its recursion with approximate shortest-path trees drops indices as in Example 6.1, so the approximation ratio of [15, Thm. 1.1] may fail in the same way. Does it, and do the endpoint failures (D1) to (D3) affect it? The two extra paths of the repair can be added there as well, but our proof of the Repaired Recursion Lemma uses exact distances, through (INV) and (C23) of the Incision Lemma.
-
The overlap test of [15, Alg. 3] is written with the whole path of an earlier level; we read it with the incised part of that path (Section 6). Is the recursion with the whole-path test also exact? It gave the right value on all our test instances, but the Incision Lemma does not cover the common nodes outside the incised part.
-
The Minimum Cut Theorem gives the value of a maximum st-flow in an undirected planar network and a minimum cut, but not the flow on every edge. Can the flow on every edge be computed in rounds?
-
Directed global minimum cut in planar networks takes rounds [9, Thm. 1.5]. It needs a shortest cycle of simple darts in the dual. Since has cycles of length 0, the girth of does not give it. Can it be done in rounds?
-
The weighted girth of planar digraphs is computed in rounds with high probability [16, Lemma 4]. Can it be computed in rounds?
-
Can the factor in the Negative Weights Theorem and the Maximum Flow Theorem be removed? This would need a reduction for negative weights with polylogarithmic overhead.
-
Are the Negative Weights Theorem and the Maximum Flow Theorem deterministic? This needs deterministic versions of the reduction of [6] and of the remaining steps of [9].
Use of AI
The proofs, the code and the Lean files were developed with Claude Opus 5.5 (Anthropic), which was also used to search the literature and to draft the text. They were reviewed by separate AI referees, by adversarial AI agents that searched for counterexamples, and by the numerical scripts of Section 7. No human expert has checked them yet.
A The repaired graphs: proofs of the Annulus Lemma and the Repaired Graph Lemma
Throughout, is connected and planar with a fixed rotation system, and . The proof of the Minimum Cut Theorem makes simple, but the proofs below allow parallel edges; loops are excluded. Every edge has two darts, rev is the reverse of the dart , and pos() is the index of in the rotation at its tail.
Corners and faces. As in Section 2.1, the corner lies between and . Its in-dart in(c) := rev enters , and its out-dart out(c) := leaves ; the edges of and are the two flanks of . A dart has the tail corner , the corner with out(c) = , and the head corner , the corner with in(c) = . A face is a cyclic walk of darts in which is followed by out(), and the corner lies between and its successor. So every dart and every corner lies in exactly one face, and the walk of a face alternates darts and corners. The corner of a vertex in [15] is the pair of edges, so its in-dart runs along and its out-dart along .
The incised sets. The path and the sets are as in Section 6; is allowed. Here is the maximal subpath of that is internally disjoint from the copies of [15, Alg. 3, line 16]. Edges that shares with a path that bounds its annulus are not incised again [15, Remark 2.5], but they are in already. Every vertex knows its edges in before the subgraphs of level are built and tested for liveness.
A.1 The definition
Endpoint data. The vertex fixes a corner of in and a flank of that is not in . The mode is if is the edge of , and if it is the edge of ; if , both flanks are and either mode may be chosen. The vertex sends to its neighbours in one round, and the data stay fixed for all levels. The same rule at , with in place of , gives , and . This is the choice of Section 6: mode L gives the copy of [15, Remark 3.3], and mode R its mirror image .
Tokens, pairs, cuts and pieces. These are defined in Section 6. No piece is empty: , and a corner cut and a dart cut never sit at the same place of a walk, so a token lies between any two cuts.
Copies. Every vertex has a star centre , a copy for each corner of , a copy for each corner of such that the edge of is in , and a copy for each corner of such that the edge of is in . In addition, there is one fresh copy for each of and .
edges. Each token of a dart is one edge , where is a copy of the tail and a copy of the head of :
Repair (a). Let be a cut corner with mode . If , let be the token of with , that is, or , and set . If , let be the token of with , that is, or , and set . The token is the moved token of ; it is a token of the endpoint edge.
edges. The edges for each corner of , and , and where these copies exist.
edges. Every pair has a host , an end of its edge. For an edge in , the pair is hosted at the tail of . If , its pair is hosted at the end other than , which is if . If and , its pair is hosted at the end other than . Every other pair is hosted at the end with the smaller identifier. For a token and an end of its edge, is if is the tail of the dart of , and otherwise. Repair (b). The edge of is with ; both of its ends are copies of .
Remarks. With no moved token, the edges are those of [15, Sec. 3.1], and the edges are its edges and ; so the repair changes only at the copies of and . If , the copy is the copy or of the choice; if , it is the fresh copy of repair (a). The literal reading of [15, Remark 3.3] differs in three ways: if , no token moves and the corner is not cut (D1); the edge for is always , also when one of these copies has lost its token to the cut at (D2); and there is only mode L (D3). For an edge outside , either end may host its pair: its edge is a rim edge at both ends (proof of (3)), and the proofs below do not use which end it is. For an edge in the host is forced: hosted at the head of , the pair would get the edge , which is not a rim edge, and can be non-planar. The graph is this definition with and without endpoint data: no corner is cut, there is no copy , and every face is one cyclic piece. It is the graph of [15, Sec. 3.1], and the proofs below cover it.
A.2 The token graph and the Annulus Lemma
The rotation of at a piece lists its tokens in walk order; for a linear piece, the gap between its last and its first token closes the list into a cycle. This is the embedding that incisions inherit from . A piece is linear if its face has a cut, and cyclic otherwise. The ends of a linear piece are its first and its last token. A token is followed by the cut inside , so it is the last token of its piece, and is a first token. Hence every token of an edge in is an end of its piece.
We read a node-part of [15] as a run of the walk of its face, that is, as a sequence of tokens. A node-part is described in [15, Def. 2.9] by an interval of the dual edges at a node; a dual loop at , which is a bridge of with on both sides, occurs twice in that order, once for each dart, and tokens keep the two occurrences apart. This reading is ours.
The incision along . In words, is the sphere cut along the arc that leaves through the corner into , crosses once each, and enters through . It has one segment in each face , and the two ends of that segment are the two cuts of . So splits into two pieces, and every other face is one cyclic piece. If , then is one segment of from to . The arc is simple, since visits each face once, and it meets only at , at and once in each . Appendix B.2 draws explicitly and names the two pieces of as and by the side of on which they lie. This agrees with [15, Def. 2.2, Remark 3.3] when both modes are and the other face of (of ) differs from (from ). It also covers the cases left open there: mode ; several corners of on , where the corner fixes the point at which meets ; an endpoint edge with both darts on , whose dual is a loop at ; and , where both flanks of are .
Facts used from [15]. Let be a live annulus of level that is not a leaf, and let and be the incised parts that bound it; near or one of them is missing, and on level 1 both are. In [15, Alg. 3], is computed in , its part is incised, and some of the resulting subgraphs are discarded.
(N1) [15, Alg. 3, lines 8 and 15 to 17; Remark 2.5]. The part is a simple path in A. Its endpoints are node-parts of faces of P, and its internal nodes are not. Its edges that are not in are incised now; the others lie on or and are not incised again.
(N2) [15, Def. 2.2, Remark 2.5, proof of Claim 2.10]. Nodes off do not change. An internal node of splits into its parts on the two sides of , and each newly incised edge gets one copy on each side. An endpoint of whose edge on is newly incised splits into two runs that share only that edge; any other endpoint does not change. An internal node of that an earlier incision split lies on or on .
(N3) [15, Claim 5.8; Alg. 3, lines 9 to 19]. A resulting subgraph is discarded if it contains a bad edge. A side on which meets or , and a side whose index range is empty, get no call either; these two rules, and and as the copies of incised parts, are our reading of [15] (Section 6). The remaining subgraphs are the live annuli of level , and none of the others is incised again. The first sentence is stated in [15, Claim 5.8] as an equivalence, but the converse fails: a side can overlap without a bad edge (Section 7). Only the direction stated here is used.
(N4) [15, Claim 2.12]. Every annulus is connected.
(N5) [15, Lemma 2.6]. An edge is incised at most once, so it has at most four tokens.
Proof of parts (a) and (b) of the Annulus Lemma. Refinement. Merge and into for every dart of an edge in . This maps the walk of each face on level onto its walk on level , by taking parents. Every cut of level is a cut of level , since and the corner cuts are the same on every level (level 0 has none). So a run with no cut of level inside maps into a run with no cut of level inside. This proves (b). We prove (a) by induction on .
Level 1. We have , so it remains to show that is connected; the cases listed above lie outside [15, Claim 2.12].
-
Fix a vertex and an index , and let . The out-token of the corner is the token of labelled 0 or 1, and the in-token of is the token of rev labelled 0 or 2. These two tokens form a pair. So consecutive corners of are joined by pairs. At a corner that is not cut, the in-token and the out-token lie in one piece. Hence all pieces that hold a token at a corner of are connected: a cut corner only separates its own in-token and out-token, and the chain around reaches both.
-
If is not in , its token is the out-token of at and the in-token of at . This joins the pieces around to those around .
-
is the edge set of a simple path of , so it contains no cycle of , hence no bond of , and is connected.
-
Every token is the in-token or the out-token of some corner.
So is connected.
Step from to . Every live annulus of level is a child of a live annulus of level that is not a leaf, made by incising in . By induction, is a component of . A new edge of , one not in , has its pair in , so its two new cuts lie in pieces of that are nodes of . Let be a piece of . The two sides of at an internal node of are the two arcs of the rotation of between the two tokens of at .
(i) is not on . No new cut lies in , so is a piece of , and by (N2) it does not change.
(ii) is a cyclic internal node of . Its face has no cut, hence no incised dart, so both tokens of at are new. The two new cuts split into two runs, which are the two sides of at , and both are pieces of . No endpoint of is cyclic: by (N1) it is a node-part of a face of , and those faces are cut on level 1.
(iii) is an endpoint of . Let be its token on . If is new, the cut inside its dart splits into the run that ends with the first half of and the run that starts with the second half. These are the two runs of (N2) that share only the edge of , and both are pieces. If is old, no new cut lies in , and by (N2) does not change.
(iv) is a linear internal node of . Let and be its two tokens on , with before in . The face of has a cut, and by (N1) it is not a face of ; so the cut is inside a dart that an earlier incision cut, and by (N2) lies on , say. By (N1), is not a node-part of a face of , while the endpoints of are; so is an internal node of . Every edge of is in , so both tokens of at are ends of . They are distinct, so they are and , and both are old. The two sides of at are and , which runs through the gap. If and , both are old, no new cut lies in , and does not change. Otherwise contains or . That token is neither nor , since comes before , so it belongs to an edge of at that is not on , because meets only in and . Since , this edge is bad, and by (N3) the subgraph that contains is discarded. The run starts right after the new cut in the dart of if is new; if is old, it starts at , since an old token is an end and comes before . It ends at in the same way. No cut lies inside , so it is a piece of .
Pairs. Pairs of old edges, and of edges not on , do not change. Let be a new edge of , with its dart in the node and rev in . In the rotation of , the sector of just before is at the corner , and the sector of just after rev is at the corner rev. Both are corners of the tail of next to , so both sectors lie on the side of at the tail of , and hence on the same side of . On that side, keeps the run that ends with and the run that starts with . So the copy of on the side of the tail of is , and the other copy is . These are the pairs of level .
Conclusion. Let be a live annulus of level , a child of . By (i) to (iv), its node-parts are pieces of , and by the last paragraph its edges are pairs. Each token of a node-part of lies in a pair that is an edge of at that node-part, and the other token of the pair lies in the node-part at the other end. So the pieces of are closed under pairs, and is a union of components of . By (N4) it is connected, so it is one component.
Proof of part (c) of the Annulus Lemma. () Let be a walk in from to . Draw each pair of as a curve across its edge: across an edge outside at any point, and for the pair of an edge of between the tail of and the point where crosses the edge. Inside a piece, join consecutive crossings by a curve on the side of of that piece. Close by a curve in that crosses once. The closed curve crosses exactly once and meets only in edges of . A closed curve that crosses an arc from to an odd number of times separates from . So every path from to in uses an edge of , and the length of is at least .
() A minimum -cut is a simple dual cycle that separates from [15, Fact 1.2]. By the exchange argument of [15, Claim 2.1], can be chosen to cross only once. If crosses more than once, it does so at least three times, and since the algebraic crossing number is , two crossings consecutive along have the part of between them on one side of . That part is replaced by the part of between the same faces, which is no longer, since is a shortest path. Cut at that crossing, in a face , the cycle lifts to a walk in from one piece of to the other, of length . A shortest such walk is a path, and by () its length is .
Both directions use only as a simple arc from to that runs through and meets only at , at and once in each . Every corner of in and of in gives such an arc, so (c) holds for every choice of the endpoint data. The same holds for (a) and (b), whose proofs do not use the choice.
A.3 The rotation table of the copies
All lists follow the rotation sense of .
-
: the copies of the corners of , in rotation order.
-
, for a corner of with and : the list , , , , , , , with absent entries skipped. Here is the edge of the pair whose token of ends at , listed only if that pair is hosted at , and is the edge of the pair whose token of starts at , listed only if that pair is hosted at . These are the edges at across the flank of and across the flank of ; if , they are the two ends of one loop. If the edge of is not in , then is the token of and is absent; otherwise is under option (i) and under option (ii). If the edge of is not in , then is the token of and is absent; otherwise is under option (i) and under option (ii).
-
At a cut corner of the terminal , the entry of the moved token at is the edge to . The end of the edge that moved to is not listed at ; this is in mode L and in mode R. If , then and are the two ends of one rim loop; only the end on the side of moves, and the other end stays at , as in mode L and as in mode R.
-
and have two edges each, so their order is immaterial.
-
: the list , , in mode L, and , , in mode R, where is the edge of the pair of , present if that pair is hosted at the vertex of .
-
Option (ii) is used for exactly one kind of dart: the dart out() of a cut corner in mode R, when its edge is in . Every other dart of an edge in uses option (i). The option is chosen per dart and is the same at both of its ends.
A.4 Proof of the Repaired Graph Lemma
(5) The choice. The face is a face at [15, Alg. 1, line 1, and Alg. 3, line 1], so has a corner in . Let be such a corner, and let and be its flanks, the edges of and . Both have on the side of . An edge of has and on its two sides, and is simple, so is the only edge of with on a side, and there is none if . Suppose that both flanks are in . Then . Since has no loops, has one dart at , so the darts and at the corner coincide and . Then both sides of lie in the face of , which is , so is a dual loop, which a simple dual path with does not use. Hence one flank is not in , and the choice can take it, with mode L if it is and mode R if it is . If , both flanks are allowed.
In both modes the cut is at ; the mode only decides which flank is and which token moves. So the pieces and the annuli depend on but not on the mode. Under [15, Sec. 5], may pick any edge of outside with on one side. One of the two corners of next to lies in ; the choice reads as mode L at that corner if is its in-flank, and as mode R if is its out-flank. So every choice allowed in [15] has a legal reading. The formula of [15, Remark 3.3] is the mode-L reading in both cases; in the second case it cuts the corner on the other side of , which lies in the other face of , and this is (D3). The argument for is the same, with and .
(1) Pieces become disjoint paths.
Claim 1 ( degrees). The star centres have no edge. The copy carries the in-token of , the token of in(c) labelled 0 or 2, and the out-token of , the token of out(c) labelled 0 or 1. These are two distinct edges, except at a cut corner, where keeps one of them and the moved token sits at . The copies , and carry exactly one edge each.
Proof. By the definition of , only for the token of in(c) labelled 0 or 2, and only for the token of out(c) labelled 0 or 1; each dart has exactly one such token. Also, only for (in(c),1), only for (out(c),2), and is an end only of . Repair (a) moves from to . The darts in(c) and out(c) are distinct, and for every token, since has no loops.
Claim 2 (links). Let and be consecutive tokens of a face walk with no cut between them. Then they share the copy of the corner between them. Conversely, the two tokens at a copy with two edges are consecutive in one piece.
Proof. The cut between and is always present, so is the last token of a dart and the first token of , and is not a cut corner. Then is the in-token and the out-token of , and repair (a) did not move them. By Claim 1, a copy with two edges is for a corner that is not cut, and its tokens are the in-token and the out-token of . These are consecutive in the walk of the face of , with no cut between them.
Let be a linear piece. The edges form the walk , by Claim 2. Its interior vertices are the of the corners between consecutive tokens, and these corners are distinct, since a face walk passes each corner once. The piece starts just after a cut, so carries one edge: after a dart cut, is , and after the corner cut it is in mode L and in mode R. Likewise carries one edge. So both ends differ from the interior vertices, which carry two. They also differ from each other: a copy that equals both and carries and , so and , which is impossible. Hence is a path with edges and distinct vertices. A cyclic piece is a whole face without cuts, and its tokens close up into a cycle through the of all its corners. By Claim 2, the paths of different pieces share no copy, and by Claim 1, every copy other than a star centre has an edge and lies on exactly one . Every vertex of is an end of a dart of , so the edge of that token ends in a copy of . With part (a) of the Annulus Lemma, this gives [15, Thm. 3.1(1)] for every node-part of a live annulus.
This step replaces the proof of [15, Lemma 3.11] near and . That proof treats the endpoint case “as if had two incident edge copies in and one of them (the one corresponding to the endpoint-case edge) got deleted”, which fails when . In mode L, the piece then lies between the cut inside and the cut at . Under repair (a) its path is the single edge . Without the repair it ends at , which also carries the out-token of , and the two pieces merge into one path, as in (D1).
(2) edges. Every pair gets exactly one edge, and distinct pairs get distinct edges, so the edges correspond one to one to the pairs. The copy is an end of the edge , so by (1) it lies on for the piece of . Hence the edge of joins and . By part (a) of the Annulus Lemma, every live annulus of level is a component of . So if lies in a node-part of , then lies in as well, and the pair is a dual edge of ; conversely, each dual edge of is such a pair. If one token of a pair lies in a residual piece, so does the other, since residual pieces form whole components. The residual components are the leaves and discarded subgraphs of earlier levels, the subgraphs discarded on this level [15, Claim 5.8, Cor. 2.11], and the sides that get no call (N3); a discarded node-part of [15] can consist of two pieces ( in case (iv) of the proof of the Annulus Lemma).
For the loops: and are copies at the two corners of that flank the edge, or for a moved token. They coincide only if and neither token moved at ; then and are consecutive at the single corner of , so they lie in one piece, and the pair is a dual loop. If the pair of is hosted at the terminal of and , its edge is , parallel to the edge . This happens for with , for with , and for an unincised with .
This step replaces the endpoint paragraph of the proof of [15, Lemma 3.13], which assumes that the edge at the other end is unaffected. That fails when and (D2). For the single edge , is the loop , while under repair (b) the edge is , which joins the pieces and .
(3) Planarity. We extend the proof of [15, Lemma 3.5], which turns into through four local steps and leaves the embedding implicit, and we give the embedding explicitly.
Step A: the graph . Let be the graph of the definition with no moved token and no copy , and with, at every end of every edge , the rim edge that joins the copies and of the two corners of next to . These are the edges of [15] at both ends of every edge, so is the graph after steps 1 to 3 of the proof of [15, Lemma 3.5], with step 1 adding all rim edges, which its argument covers. We draw as follows.
-
Fix a planar drawing of that realizes its rotation system. Take small disjoint disks around the vertices, each meeting only the edges at , in radial segments, and thin disjoint strips around the edges outside the disks. For a face , let be minus the disks and strips. It is an open disk, and its boundary follows the walk of once: along one side of the strip of each dart of , and along the arc of inside each corner of .
-
Put at and on the arc of inside . Each edge is a radial segment.
-
The rim edge at across an edge runs inside between the copies of the two corners next to . It crosses the radial segment of and nothing else, and it reaches each of its ends from the side of .
-
An unincised token runs along from to , where is the face of .
-
An incised dart gets a lens: a near arc along and a far arc parallel to it inside , both from the corner arc of to that of . Under option (i), the near arc is , from to , and the far arc is , from to ; the copy lies on between and the strip of , and lies just inside next to , on the side of . Under option (ii), the near arc is , from to , and the far arc is , from to ; then lies on between the strip of and , and just inside next to , on the side of . Under both options lies at the corner on the side of in(c), and on the side of out(c); the rotation table depends on this. The edges and are short segments.
Nothing crosses. Radial segments and rim edges lie inside the disks and meet only at the copies . Near arcs lie on the curves , which are disjoint for distinct faces, and the near arcs of one face use disjoint stretches of . Far arcs of one face run at one small distance from , along disjoint stretches. At a corner , the entries on the side of in(c) leave towards one flank and those on the side of out(c) towards the other. So is planar, and reading the drawing around each copy gives the rotation table, with both rim edges at every .
Step B: the repair. This replaces step 4 of the proof of [15, Lemma 3.5]. For each cut corner at a terminal z:
-
Subdivide the edge next to by the new vertex . The part between and becomes the edge . In the drawing, is a point of the corner arc of , so it sits in the corner that it cuts. Subdivision keeps planarity.
-
If the pair of is hosted at , its edge is the rim edge at on the side of : in mode L, where is a token of in, and in mode R. In the rotation table this rim edge is next to at . In mode L, is : the token of an unincised in, or (in under option (i). In mode R, is : the token of an unincised out, or (out under option (ii); this is why option (ii) is used at corners in mode R. So the rim edge can be rerouted along to end at without crossing anything. This is repair (b) at , and the rotation at is then the one in the rotation table.
-
Delete every rim edge that is not an edge of the definition. Deleting edges keeps planarity. Each edge of the definition is a rim edge of . For an unincised edge this holds with either end as host: at the tail of the edge is , and at the head it is , both rim edges. For an incised edge it needs the host rule: at the tail of , the pair gets the rim edge , while at the head it would get , which is not a rim edge of . At most one end of an edge is rerouted, because two moved tokens at one host would need two cut corners at one vertex. The result is , so is planar.
The two options never conflict. A dart needs option (ii) only as out of a corner in mode R, which is its tail corner. It would need option (i) at its head only if it were also in of a corner in mode L with incised. Then and both lie in the face of , so and . With the annulus of level 1 is a leaf [15, Def. 2.8; Alg. 2, line 5], so no edge is ever incised.
Local computation. The rotation table at uses the rotation at ; which edges at are in ; the host of each edge at , which needs the identifiers of the neighbours and whether the edge is or ; whether is or , with its corner and mode ; and, for the option at the head of a dart, whether the dart is out of a corner in mode R at its tail. The terminals send their endpoint data to their neighbours in one round. So each vertex computes the rotations of all its copies within rounds, and the Exact SSSP Theorem receives an embedding of that is computed locally from that of .
(4) Diameter, size and simulation. A copy of is within distance 2 of : at distance 1, and , and at distance 2 through . Let be an edge of . For a token of , the path , , , , with the steps through where needed, has 3 hops plus one for each end of at a copy , or . Unincised tokens have copies at both ends unless moved, and incised tokens have exactly one end at or before repair (a). Repair (a) moves at most one token of at and one at , and it moves only ends at copies . If is unincised, either one token is moved at both ends and the other has no end at , or , or each token has at most one such end; either way some token gives at most 4 hops. If is incised, at most two of its four tokens are moved, so an unmoved token gives 4 hops. So the distance between and is at most 4 for every edge of , and the hop diameter of is at most ; the bound in [15, Lemma 3.4] is , without the two hops at each end. The edges only shorten distances.
A vertex has one star centre, copies , at most copies , one per corner with an incised in-dart, at most copies , and a copy only if . So .
For the construction [15, Lemma 3.15], besides the stored set , the vertex v needs the index of each of its edges in the rotation of the other end (one round) and the endpoint data of s and t
(one round). The identifier of a copy is the identifier of followed by a number in . For the simulation [15, Lemma 3.16]: edges join copies of one vertex, and by the host rule so do edges; each edge of has at most four tokens (N5), so a round on takes four rounds on . Repair (a) only changes which copy of or holds a token.
(6) The statement of [15, Lemma 3.17]. Global phase. The global phase of [15, Lemma 3.17] runs connectivity on and on , with part-wise aggregations on [15, Cor. 3.23], which needs only (3) and (4). By (1), the components of , apart from the isolated star centres, are exactly the paths of the pieces, and lies on for the piece of . By (2) and part (a) of the Annulus Lemma, the component of that contains , for a node-part of a live annulus , is the union of the paths for the node-parts of and of the edges of . So receives the right identifiers of its node-part and of its annulus, with no new case. The leader of is its copy of largest identifier. If that copy is , the leader vertex is or , which lies in because is a token of an edge at that terminal. The Minimum Cut Theorem uses exactly these outputs: the annulus of each copy, for the weights and the test for liveness, and the leader copy of , for the virtual source.
Local phase, item 1 (the node-part and annulus of each incident edge). The vertex reads them at the copy , for each token of an edge at , included. There is no new case.
Local phase, item 2 (from level to level ). The local phase of [15] matches copies of and by name and ; cases (a) to (c) there). We replace this by a rule on tokens. Rule : for a token of level at , with parent , the vertex declares the node-part of in to be contained in the node-part of in . Since , the parent is a token of level for every , so the rule is defined everywhere.
Claim 3. Let be a token of a piece of level , and let be the piece of level that refines (part (b) of the Annulus Lemma). Then lies on . If is a node-part of a live annulus , then is a node-part of the parent annulus of .
Proof. The parent lies in by part (b) of the Annulus Lemma, and is an end of the edge , which lies on by (1) on level . For , is a face and its cycle in . For the second part, the pieces of arise from those of its parent by the new cuts of the step in the proof of part (a) of the Annulus Lemma, so is a piece of .
So Rule M is correct for every piece, residual or not; it is [15, Claim 2.15] in the form of tokens. It is local, since knows , and the endpoint data, and hence the attachments on both levels. Away from and it reproduces cases (a) to (c) of [15]. At in mode L, with , it gives:
| on levels and | copies of at in , and their match in |
|---|---|
| unincised, unincised | |
| unincised, incised anew | , holding , and , holding , both , which held |
| incised, incised | and |
| ( has no ) | , the copy of on the cycle of in |
| any |
Since grows with , an incised stays incised. Mode R is the mirror image, with and in place of and : if is incised anew, holds and holds , and both map to , which held . This copy is the mirrored of the choice.
The endpoint paragraph of case 2(c) in the proof of [15, Lemma 3.17] says that the paths of and in both correspond to the path of in . Under the repair the second copy is , not , and corresponds to . In the graph as literally defined, carries both and the out-token of , whose node-parts have different parents, so the stated correspondence is wrong there; this is (D1) again.
Local phase, items 3 and 4 (the parent annulus, and the identifiers of all ancestor node-parts) follow from items 1 and 2 by the argument of [15], unchanged. This proves (6).
Degenerate cases. An endpoint edge in moves (in, 2) or (out, 1) to ; Claim 1 still holds, since or carries the other token, and step B uses option (i) or (ii). If , the edges use : an unincised edge has one pair, hosted at and ending at , and an incised edge has each pair hosted at its own end, where it may end at . An endpoint edge incised anew is covered because the definition is per level and grows with (Rule M). If , the two flanks of are the same edge , and and are its two darts; nothing above assumes distinct flanks, and in the Annulus Lemma, is a bridge with both darts in . If , there are two rim edges between the two copies of , hence parallel edges. Parallel edges of give 2-cycles for faces of length 2, and is allowed. For several corners of in , the endpoint data fix one, and meets there. An endpoint edge with both darts in has a dual loop at , and tokens keep its two darts apart. If , then carries both corner cuts, is one segment of , and no edge is ever incised.
B Proof of the Incision Lemma
The proof is an induction over the levels. Along with the Incision Lemma it proves an invariant (I) of the live annuli (Appendix B.3), and the Incision Lemma is stated for annuli that satisfy (I). The model is a drawing of the token graph in the sphere , in which every incision is a curve and every side is a side of a simple closed curve.
B.1 Setting
We use the notation of Section 6 and Appendix A. The graph is connected and drawn in , is the shortest path of the algorithm, and the dual of joins and . Lengths are , and is the distance in from to .
• On level , every old token is an end of its piece (Appendix A).
- A -piece is a piece of a face of . A piece of level is a piece of if it refines the piece of , through part (b) of the Annulus Lemma applied level by level. Other pieces are off .
• The annulus is the only live annulus of level 1.
• Bounding paths. The annulus has none. Let be live and not a leaf, and the part that it incises. The child on the low side -side, range has the -bound of as its -bound and the copy of on the low side as its -bound. The child on the high side -side, range has the copy of on the high side as its -bound and the -bound of as its -bound. We write and for the -bound and the -bound of ; either may be absent. A bound is the copy in of the incised part of the path of an ancestor, not of its whole path; this is a reading of [15] (Section 6). The ends of are a piece of and a piece of , and those of a piece of and a piece of (Claim 18). If is absent, set ; if is absent, set .
- The step in . Let be live and not a leaf, with range and . Then is a shortest path in from to , which exist and are unique by (Pieces) below,
computed exactly and read from . The indices and , the part from to , and and are as in Section 6. Since , and lie on , we have and .
-
The part . It is a subpath of a shortest path, so it is a simple path and a shortest path between any two of its nodes. Its internal nodes are off , by the choice of and . No edge of is a copy of an edge of : such a copy joins two pieces on the same side of (Appendix B.2), while an edge of has an end off or joins a 0-piece to a 1-piece.
-
Incision in token form. Another annulus of level cuts only darts in its own pieces: a new edge of its incised part has its only pair in , and is a component of by (Comp), so no piece of holds a dart of that edge. So the cuts of level in the pieces of are its cuts of level and one cut inside each dart of each new edge of . Let be the graph whose nodes are the pieces of level that refine pieces of , and whose edges are the pairs of level whose tokens lie in these pieces. The subgraphs obtained by incising are the components of . Nodes of off and old pairs do not change, and a new edge of gets the two pairs and . This is the incision of [15, Remark 2.5] in the reading of the Annulus Lemma.
-
Calls. As in Section 6: if meets , that is, shares a node with it, the -side gets no call and the overlap rule computes, from a common node, a path for every ; the -side and are symmetric. By (Old) in Appendix B.3, the nodes of and are exactly the nodes of that carry an old token of an edge off , so every node knows locally whether it lies on a bound. Overlap is tested directly, and not through bad edges. A side without overlap is called if its range is not empty. The two call rules are readings of [15]. Claim 15 shows that a called side is one subgraph, so the call is well defined.
B.2 The curve model
All curves are polygonal, for a fixed piecewise linear structure on in which the drawing of is polygonal. An arc is a simple curve with two distinct ends, and a Jordan domain is a component of the complement of a simple closed curve. We use four standard facts.
-
Jordan. A simple closed curve splits into two connected open sets, its sides, each with boundary . A connected set disjoint from lies in one of them.
-
-curve. Let be a Jordan domain, and let be an arc with distinct ends on and interior in . Then has two components, and each is a Jordan domain bounded by and one of the two arcs of between the ends of .
-
Parity. Two closed curves in general position cross an even number of times.
-
One crossing. If a curve crosses a simple closed curve transversally at one point and meets nowhere else, its two ends lie on different sides of .
Moreover, two distinct points of the boundary of a Jordan domain are joined by an arc whose interior lies in the domain.
The thickened drawing. Replace each vertex of by a small closed disk and each edge by a thin closed strip that joins the disks of its ends. Each face of becomes a component of the complement of the union of these sets. Since is connected, is an open disk and is a simple closed curve, also when the boundary walk of repeats vertices or edges. The curve
follows the walk of : one side segment of for each dart of , and one corner arc of for each corner. The boundaries of distinct faces are disjoint.
-
A token is the side segment of . For an incised dart , the cut point is the midpoint of its side segment, is the half before in walk order, and the half after it; for a token of , . The corner cuts at and are points of the corner arcs of these corners.
-
For an incised edge with darts and , the cut line is a segment across from to . The pair consists of the two halves at the tail of , and the pair of the two halves at its head. So the two pairs of an incised edge lie in the two components of , the half-strips.
-
The arc arc(g) of a piece g is the closed sub-arc of made of the segments and halves of its tokens, the corner arcs between consecutive tokens and, for a piece next to or , the part of the corner arc up to that corner cut; for a cyclic piece it is . Its ends are cut points, and the arcs of distinct pieces meet at most in their ends.
The arc . It starts at the corner cut of , runs through to the cut point of the dart of in , along , through to the cut point of the dart of in , and so on, and it ends through at the corner cut of . Its part in is an arc from its entry (the cut at , or the cut point of in ) to its exit (the cut point of in , or the cut at ), with interior in . The arc is simple, because visits each face once. We orient from to and say that a point of precedes another.
The arc has two local sides. By the -curve fact, splits the closed disk of into two halves, each bounded by and the arc of one of the two pieces of . The drawing realizes the rotation system, so walk order keeps on one hand of for every face ; we call this hand the left. Side 0 of is its right side and side 1 its left side. Let be the half on side , and let be the piece whose arc bounds it. The boundary of , with on the left, runs along the arc of and back along , so this arc runs in walk order from the entry to the exit of . This is the naming of Section 6. For a piece of on a later level, the low end of arc is its end nearer to the entry of along arc, and the other end is its high end. The pair of whose halves lie on side of joins and . So in , the copies of form two paths, for , and on later levels a copy of an edge of joins two pieces on the same side of , since has been in since level 1 and its tokens refine their pieces of .
Incision curves, slots, collars and drawings. Every incision of a part in a live annulus adds a curve (Claim 6). Let be the union of and of the curves of all incisions on levels below , in all annuli; so .
-
A chord of in a face is an arc of some whose interior lies in and whose ends are cut points on or points of . The set meets the closed disk of in its chords and, if , in . It meets a strip in if , and not at all otherwise.
-
The slot of a piece of a live annulus is the component of that contains the points of near the interior of arc. Since meets only in cut points, such points exist and lie in one component.
-
The collar col(g) is a thin closed band in along arc(g) minus small neighbourhoods of its ends, or along all of if is cyclic.
-
The curve of a pair with tokens in the pieces and runs from across the strip of its edge to : anywhere across the strip if the edge is new, and inside the half-strip that holds the pair if the edge is old. It enters the collars only near the middle of its two token segments.
-
The drawing of a walk is the union of the collars of its nodes and the curves of its pairs. It is connected and avoids , and inside it a curve runs from any point of the collar of the first node to any point of the collar of the last node. The drawing of a subgraph is defined in the same way.
Claim 4 (disjoint drawings). Let and be walks in a live annulus with no common node. Then .
Proof. Collars of distinct pieces are disjoint: in distinct faces they lie in distinct disks, and in one face they lie along arcs that meet at most in their ends, which collars avoid. The curve of a pair meets only the collars of its own two pieces. The walks have no common pair, since a common pair would give a common node. The curves of pairs of distinct edges lie in distinct strips, and the two pairs of one old edge lie in the two half-strips.
B.3 The invariant
A live annulus of level satisfies the invariant if the following hold. We write for the piece of in , where (Pieces) makes it unique.
(Comp) is a component of .
(Geom) (a) If a piece of off is cyclic, then . If it is linear, is a Jordan domain bounded by and one chord of that joins the two ends of .
(b) If is a piece of , then is a Jordan domain whose boundary consists of , a sub-arc with , the -part of , and up to two chords: one from the low end of to , and one from the high end to . A chord is absent where the end of is the entry or the exit of , which is then or .
(c) A component of contains the slots of all pieces of and, for every pair of , the part of its strip on its side of the cut line, or the whole open strip if its edge is new. Distinct live annuli of level have distinct such components.
(d) If exists, it was created by an incision whose curve contains for every edge of and runs from a point of , which it reaches from side 0, to a point of , which it reaches from side 1. The curve is simple and closed, and . Symmetrically for , with and , and with . (The sides Lo and Hi are defined in Claim 7.)
(Bound) is a path in from to , its internal nodes are off , and the cut points of its first and its last token are the low ends of the arcs of these two pieces. The same holds for , with high ends. The paths and have no common node.
(Pieces) has at most one piece of each face off and at most one piece of each . It has a piece of exactly for and a piece of exactly for , and .
(Old) Every old pair of is a copy of an edge of or a pair of or of , and has at most one pair of each old edge off .
(Dist) For every such that has and , their distance in is .
Claim 5. The annulus satisfies (I).
Proof. (Comp) holds since is connected by part (a) of the Annulus Lemma. (Geom): ; a face off has one cyclic piece and no chord, so its slot is , and the slot of is the open half , bounded by and , with no chord. The set is connected, so it is , and there are no bounding paths. (Bound) is empty. (Pieces): has one piece of each and of each other face, and . (Old): the old edges on level 1 are the edges of . (Dist) is the definition of .
From now on, is a live annulus of level that satisfies (I) and is not a leaf, and and are as above. Let be the token of the first edge of at and the token of its last edge at . For an internal node of , let and be its two tokens on .
B.4 One incision
Claim 6 (the curve of ). Draw
-
for each new edge of , a cut line across (for an old edge, lies in already);
-
for each internal node of , a chord from to with interior in ;
-
a chord from to a point inside the -part of , with interior in , and a chord from to a point inside the -part of , with interior in . The last part of and of is a straight segment perpendicular to . The points and are distinct and differ from the ends of all chords of , and the points and chosen by all annuli of level are pairwise distinct.
Let be the union of these chords and of the cut lines of all edges of , and let . Then:
(a) the drawing is possible, is an arc from to with , and is a simple closed curve;
(b) lies in the closure of ;
(c) meets a strip only in , and only if is an edge of or an edge of whose cut line lies in ; and meets the closed disk of a face only in the chords of in , two if and and at most one otherwise, and in .
Proof. (a) For an internal node , , and and are distinct points of : the midpoint of the segment of a new token lies inside , and the cut point of an old token, which is an end of , is an end of . By (Geom), is a Jordan domain whose boundary contains , so exists. The same holds at and , whose -parts have interior points by (Geom b). The internal nodes of are distinct pieces off , so by (Pieces) they lie in distinct faces off . The pieces and lie in faces of , in distinct halves if . So the chords lie in pairwise disjoint slots. The edges of are copies of distinct edges of : a new edge has one pair, an old edge off has one pair in by (Old), and is simple. So the cut lines lie in distinct strips. A chord meets only in its ends, and a cut line meets the face disks only in its ends. Along , consecutive parts of share one cut point, and all these cut points are distinct, since they belong to distinct darts. So is an arc. It meets only in and : the edges of are not edges of , so their strips miss ; the faces of the internal nodes are off ; and the interiors of and lie in slots, which avoid .
(b) Slots of pieces of lie in , and so does the open strip of a new edge of (Geom c). The cut line of an old edge of bounds the half-strip of its pair in , which lies in . The ends of the chords lie on the boundaries of their slots.
(c) follows from the construction.
Claim 7 (sides along ). Let be the side of that contains the points of before , the low side, and the other side, the high side. Then:
(a) the points of after lie in ;
(b) let be a point of other than , and the ends of chords. Points near on side 0 of lie in if precedes , and in if precedes . Points near on side 1 lie in if precedes , and in if precedes .
Proof. Let be a closed disk around , so thin that consists of , a part of the final segment of that reaches from side 0, and a part of the final segment of that reaches from side 1; both segments are perpendicular to . The other parts of are compact and disjoint from , so such a exists. Its boundary is a simple closed curve made of the 0-bank, parallel to on side 0, the 1-bank, and two short end arcs around the ends of . The curve crosses exactly twice, transversally: on the 0-bank by , and on the 1-bank by . So consists of two arcs, through the end arc at and through the end arc at , and by the one-crossing fact they lie on different sides of . Points of before are joined to by short arcs inside that miss , and points after are joined to in the same way. This gives (a) and shows that lies in . For (b), fix and shrink , if needed, so that its width is less than half the distance from to and to ; the sides of do not depend on . Inside , the final segments of and lie within the width of from and . A point near on side 0 is joined to the 0-bank by a segment perpendicular to , which lies within the width of from . So the segment misses and both final segments. The part of the 0-bank before its crossing with lies in , and the part after it in . Side 1 is the same, with .
The low side is the -side and the high side the -side. Claims 9 and 15 justify the names: the low side holds the -pieces with the small indices, and when it is called it gets the range .
Claim 8 (every subgraph on one side). Draw with collars inside the slots of level and outside , and with curves of pairs as above for the incised set . This drawing is disjoint from J. Hence the drawing of each component of lies in or in , and we say that the component, its pieces and its pairs lie on that side.
Proof. Let be a piece of that refines the piece of . If is not a node of , no part of lies in (Claim 6(c)), and misses . If is a node of , then meets only in the interior of , and meets only in its ends there. These ends are ends of the arcs of the parts of : a new cut point is where splits, and an old cut point is an end of . So a collar along the interior of can be chosen in . The curve of a pair lies in its strip away from the cut line, and it enters collars only near the middle of token segments, away from the chords; by Claim 6(c) it misses . The drawing of a component is connected, so the Jordan fact applies.
Claim 9 (P-pieces and the ends of ). (a) For , lies in if and in if . For , lies in if and in if .
(b) If is new, splits at into two pieces; the one whose arc runs from the low end of to lies in , and the other in . If is old, does not change; it lies in if is the low end of , and in if it is the high end. The same holds for and .
(c) If is old, its pair is the first edge of or of , and is the first node of that path; lies in if the path is , and in if it is . If is old, its pair is the last edge of or of ; lies in if the path is , and in if it is .
Proof. (a) For , is not a node of , since the only 0-piece of is . So it does not change, and is disjoint from : it misses , and the chords of lie in the closures of the slots of the nodes of , which are other slots (Claim 6(c)). By (Geom b), its boundary contains a -part in with interior points, so contains points on side 0 near interior points of . All of precedes if , and follows it if . Claim 7(b) gives the side. The pieces of the are the same, with and .
(b) By (Geom b), consists of from its low end to its high end, then the chord to or nothing, then back from to , then the chord to the low end or nothing. The chord joins on to inside the -part. By the -curve fact, has two components: , bounded by , the part of from its low end to , the old chord from the low end to if there is one, and the part of the -part from to ; and , bounded by , the part of from to its high end, the old chord from the high end to if there is one, and the part of the -part from to . Both are connected and miss (Claim 6(c)). The domain contains points on side 0 near points of before , so it lies in , and lies in for the same reason. If is new, the collar of each part of lies in the component along its arc. If is old, is an end of , and all of lies on the boundary of if it is the low end, and of if it is the high end.
(c) Since is old, by (Old) its pair is a copy of an edge of or a pair of or of , and it is not a copy of an edge of , since it is an edge of . Say it is a pair of . Then is a node of , and the only 0-piece on is its first node (Bound). So the pair is the first edge of , and is the first token of , whose cut point is the low end of by (Bound). Now apply (b). On the cut point is the high end. At , the only 1-piece on a bounding path is its last node, and (Bound) gives the low end on and the high end on .
Claim 10 (local parity). (a) If , the two half-strips of lie on different sides of . In particular, the two pairs of a new edge of lie on different sides.
(b) If a node g of Q is cut at a new cut point c, the two parts of g that meet at c lie on different sides of J.
Proof. (a) A short segment in that crosses once meets nowhere else (Claim 6(c)); apply the one-crossing fact. (b) Near , leaves into and separates the ends of the two collars near . A short arc near joins them, crosses once and meets nowhere else; apply the one-crossing fact.
Claim 11 (the copies of a new edge). Let be a new edge of , and let be its dart in the node of nearer to . Then the pair lies in and the pair in .
Proof. Traverse from to . It leaves into side 0, the right side of , perpendicular to , so the points on side 0 just before lie on its right. They lie in by Claim 7(b). Since is a simple closed curve, lies on the right of all along. The curve crosses along from to . In walk order the face of lies on the left of its side segment, so the strip lies on the right, and turns right into the strip. So the half-strip at the tail of lies on the right of cl(e). It holds the pair , and it misses apart from (Claim 6(c)), so this pair lies in . The other pair lies in by Claim 10(a).
Claim 12 (the bounding paths). Suppose that exists. Then:
(a) precedes , precedes , and ;
(b) the pair of A of an edge of that is not on Q lies in , and so does every node of that is not on Q;
(c) the pair of A of an edge of that is on Q lies in .
Symmetrically, if exists, then precedes , precedes , , the pairs and nodes of off lie in , and the pair of of an edge of on lies in .
Proof. (a) The slot lies in (Geom c, d) and contains points on side 0 near . By Claim 7(b) for , which applies since reaches its ends as does, these points lie in if precedes . Since , precedes ; side 1 is the same. Now : lies in the closure of , which lies in ; and lies after , where lies either on , between and , or in , after both (Claim 7(a) for ). The set is connected, so it lies on one side of . It contains the points of before , which precede and so lie in .
(b), (c) Let be an edge of . By (Geom d), , so by Claim 10(a) for the half-strip of opposite to the pair of lies in , hence in . The edge is not an edge of , since a pair of has an end off or joins a 0-piece to a 1-piece. If is not on , then misses (Claim 6(c)), so the pair of lies in too. If is on , then , and by Claim 10(a) the pair of lies on the other side, . A node of that is not on does not change, and its collar meets the curve of an edge of at it, which is not on ; so it lies in as well. The case of is the mirror image, with .
Claim 13 (nodes and edges of ). Suppose that has no node of . Then every node of has exactly one part in , and every edge of has exactly one pair in that lies in . These high parts and pairs form a path from a piece of to a piece of . Symmetrically, if has no node of , the same holds with , which gives a path .
Proof. Edges. A new edge has two pairs, on different sides (Claim 10(a)). An old edge of Q is, by (Old), a pair of or of , and not of , since its ends would be nodes of . The annulus A has one pair of it (Old), and that pair lies in (Claim 12(c)).
Internal nodes. Let be an internal node of , in the face . If is cyclic, its face has no cut, so and are new. Then splits at and into two parts that meet at both points, and by Claim 10(b) they lie on different sides. Let be linear. Its end tokens are old, since the cuts at its ends are dart cuts: corner cuts lie in faces of . Since is off , by (Old) their pairs are pairs of or of , and not of , since is not a node of . So is a node of , and an internal one (Bound). The two tokens of at are distinct, old, and hence ends of , so they are its first token and its last token , with . Let come before in . If and , both edges of at are edges of , no new cut lies in , and lies in , because the pair of does (Claim 12(c)) and its curve meets . Otherwise splits into , from to , and one or two pieces of : the run from to the cut in if , and the run from the cut in to if . A token of among and belongs to an edge of that is not on , since meets only in and . By Claim 12(b), each piece of lies in . If , then is not an end of , so it is new, and meets a piece of at the new cut point ; by Claim 10(b), lies in . If , then , and the same holds at .
Ends. If is new, has one part on each side (Claim 9(b)). If is old, its pair is on , not on , and lies in as a whole (Claim 9(c)). The same holds at .
Path. The curve of the high pair of an edge of lies in and meets the collars of the parts that hold its tokens, so these parts are the high parts of the two ends. The high parts are distinct pieces, so is a path. Its first node is a part of , a piece of , and its last node a part of , a piece of .
Claim 14 (separation on level ). Let lie strictly between and , and suppose that has and . Then every walk in from to meets a node of .
Proof. Let be such a walk with no node on . Then its nodes and pairs do not change, is a walk in , and its drawing is connected and misses (Claim 8). If , then lies in and in (Claim 9(a)); if , it is the other way round. Either way joins the two sides, a contradiction.
Claim 15 (the called side). Suppose that has no node of . Then:
(a) every component of contains a part of a node of ;
(b) the high side is one subgraph , which contains , so it holds exactly one pair of each edge of ;
(c) has no bad edge;
(d) a bad edge in a subgraph of the j-side is an edge of .
Symmetrically, if has no node of , the low side is one subgraph, which contains , has no bad edge, and holds one pair of each edge of ; and a bad edge on the k-side is an edge of .
Proof. (a) Let be a component of and a node of that is not a part of a node of . Then is a node of off . The annulus is connected (Comp); let be a shortest path in from to a node of . Its nodes before the last are off , so without its last node is a walk in , and its last pair, which has an end off and is not an edge of , is a pair of that joins it to a part of the last node.
(b) By (a) and Claim 13, every component on the high side contains the high part of some node of . All high parts lie on the connected path . So there is one component on the high side, and it contains . Its pairs of edges of are those of , one for each edge, since the other pair of each new edge is low (Claim 13).
(c) Since has no node of , no edge of is bad. A bad edge of is an edge of that is not on , so not on , and by Claim 12(b) it lies in .
(d) An edge of that is not on is not on , so it lies in by Claim 12.
Parts (a) and (d) hold without the hypothesis on . When meets , the low side can consist of several subgraphs; it gets no call.
Claim 16 (pieces of the children). Every called child of has at most one piece of each and of each face off . If it is the high side, it has a piece of exactly for and a piece of exactly for ; if it is the low side, exactly for and .
Proof. Take the high side; the low side is symmetric. Since it is called, has no node of . By part (b) of the Annulus Lemma, each piece of refines a piece of , and has at most one piece of each kind (Pieces). A piece of off does not change. A node of has exactly one part in (Claim 13), and lies in . So has at most one piece of each kind. The 0-pieces of are the with (Pieces), and lies in this interval, since is one of them. Those with lie in (Claim 9(a)) and hence in (Claim 15(b)); has a high part (Claim 13), which lies on ; and those with lie in . The 1-pieces are the same, with .
Claim 17 (distances in the called side). Suppose that has no node of , and let be the high side. If has a piece of and a piece of , their distance in is . The low side is symmetric.
Proof. () By part (b) of the Annulus Lemma, pieces of refine pieces of , and pairs are copies of edges of the same length, so a walk in between the two pieces maps to a walk in from to of the same length, which is at least .
() The pieces of and in refine and , so by (Dist) has a walk from to of length . For a node of , let if is off , and let be the high part of if is on (Claim 13); for an edge of , let of it be its high pair.
-
If has no node on , it is a walk in that misses , and it contains , which does not change and is the piece of in . So lies in .
-
Otherwise let be the first and the last position of at a node of , with nodes and , and split at and . Let be the part of between and , a single node if . Since is a shortest path in , has length at most .
-
Lifting . If , the nodes of before are off , and its pairs have an end off , so without is a walk in that misses and contains ; hence it lies in . Its last pair joins a node of to a part of , so that part lies in and is , the only high part of . If , then is a 0-piece on , so and , and is the piece of in (Claim 16). The part is the same at the other end; if is the last position, then and is the piece of in .
-
is the part of between and , a path in of the same length.
So , with the ends of and attached to and , is a walk in between its pieces of and of length at most .
This covers or , where the new walk starts or ends with , and a walk that meets in one node, where is that node and both and attach to its unique high part. The proof uses that the called side holds exactly one part of every node of , which fails on a side with overlap.
Claim 18 (the invariant passes on). Every called child of satisfies (I).
Proof. Take the high child , so that has no node of ; the low child is symmetric. Its bounding paths are and , with and , and its range is .
(Comp) is a union of components of : a pair of level with a token in a piece of is a copy of an edge with a pair in , and is closed under pairs (Comp for ). By Claim 15(b), is one component of , so it is a component of .
(Geom) The set adds to the curves of all incisions of level . The curve of another annulus lies in the closure of (Claim 6(b)), which misses (Geom c). So the only new chords in the slots of the pieces of are those of , and each lies in the slot of its own node. Let be a piece of that refines .
• If is not on , then , and (Geom a, b) carry over.
-
If is an internal node of , then is the component of along . If is cyclic, then by the -curve fact it is bounded by and . If is linear, is bounded by and one chord, and by the -curve fact the component along is bounded by , from to , and . This includes the case , .
-
If , then is of Claim 9. Its boundary is the part of from to the high end, which is all of if is old, the old chord at the high end or none, the -part with , and the new chord from to . So (Geom b) holds with as the low chord. The piece is the same.
For (Geom c), the slots and half-strips of lie in and miss ; is connected, and a slot and the half-strip of a pair at it are joined across the open token segment, which misses . So they lie in one component of , and , since it is connected, misses and meets . Two children of one annulus lie on different sides of , and children of distinct annuli lie in the distinct sets . (Geom d): the -curve of is , which contains the cut lines of all edges of and runs from , reached from side 0, to , reached from side 1, and ; the -curve is , and .
(Bound) is a path in from the piece of in to that of , with internal nodes off (Claims 13 and 15). If is new, the high part of has its arc from to the high end, and the token of the first pair of there is the half of the segment of next to , so its cut point is the low end. If is old, it is the first token of , at the low end of (Claim 9(c)), and does not change. The same holds at . The path has no node on , so its nodes and pairs do not change; they lie in (Claim 12) and hence in , and (Bound) for carries over. The paths and have no common node, because has none on .
(Pieces) Claim 16 gives the pieces, with and . For the range, and .
(Old) The old pairs of are copies of edges of P; pairs of A of old edges, which are pairs of or , where those of off Q lie in (Claim 12(b)) and are not in , those of on Q lie on , and those of are on ; and the high pairs of the new edges of Q, which lie on . The child has one pair of each edge of Q (Claim 15(b)) and at most one pair of every other old edge off P, since A has.
(Dist) is Claim 17.
Claim 19 (C23). Suppose that exists and that meets in a node . Then for every ,
By (Pieces), , and every common node works. Symmetrically, if meets in , the equality holds for every .
Proof. For , has and (Pieces), and their distance in is (Dist). The left side is at least , since two shortest paths through form a walk from to . For , lies on , which has length , so equality holds. Let , and let be a shortest walk in from to , of length .
Step 1: meets . Suppose not. Build a closed curve from four parts.
• : a curve in the drawing of from to .
- The connector: from along the curve of a pair of at , of the edge , then inside the half-strip of to a point of .
• , followed from that point backwards to .
- The 0-run: from forward along on side 0, at small distance, to a point inside the -part of , then into and to the start of in . The -part of follows , because (Claim 7(b) for ).
Build a second closed curve: a curve in from to , closed by an arc in the face . The arc runs inside the half from to a point near on side 0, crosses once at a point , and runs inside to . Choose inside after if , and after if . This is possible: if , the chord of in splits it, by the -curve fact, into a part before and a part after , and lies in the part after, since lies in ; so avoids that chord. The same holds in if . The parts of outside a thin neighbourhood of avoid it.
We count the crossings of with .
• and : and have no common node, so their drawings are disjoint (Claim 4).
• and the connector: does not visit , so it does not use , and has no other pair of (Old). So misses and .
• and : lies in , which misses .
- and the 0-run: collars avoid small neighbourhoods of cut points, and curves of pairs of edges of cross their strips away from , so misses a thin neighbourhood of . In , the run meets only the collar of , which does not visit.
and , and and the connector: inside , has only the pieces and (Pieces), and visits neither, since would meet it; for the same reason is neither.
and : the parts of in are its chords at the ends of , if or , and avoids them.
and the 0-run: crosses once, at , and the run passes on side 0, because precedes (, or the choice of if ) and precedes (). So crosses the run exactly once.
So the closed curves and cross exactly once, against the parity fact.
Step 2: meets . Build in the same way from the drawing of , the connector at , from to , and the 1-run on side 1 from forward to the -part of . The same count, with after if , gives exactly one crossing.
Step 3: exchange. Let be a node of on and one on . Replace the part of between its visits to and , in whichever order makes them, by the part of between and , read in the same direction. That part passes through , and as a subpath of the shortest path it is no longer than the part it replaces. So there is a walk from to through of length at most , and the left side is at most .
For , mirror the construction: the runs go from the face forward to and , and need and .
B.5 Proof of the Incision Lemma
By Claim 5, satisfies (I), and by Claim 18, every called child of an annulus that satisfies (I) does too; so by induction every live annulus satisfies (I). Let A be one that is not a leaf.
(a) Every subgraph obtained by incising Q lies on one side of J (Claim 8). The sides of the pieces of the are given by Claim 9(a), and those of and by Claim 9(b) and (c). If the end edge at is old and lies on , say, then meets at , so the j-side gets no call, and the high side, if called, holds all of ; the other cases are the same. The separation is Claim 14.
(b) is Claim 15.
(c) is (Pieces) for every live annulus.
(INV) is (Dist) for every live annulus, and (Pieces) gives the pieces for every .
(C23) is Claim 19.
The Witness Interval Lemma is not used.
Degenerate cases. If , then and are the two pieces of in , in different halves, and and lie in in either order; Claim 7 does not depend on the order, and Claim 14 is empty. If has one edge, is ; if that edge is old, it is the first edge of (or ) at and its last edge at , so the bounding path is this single edge and equals . If runs along or , its old edges are edges of these paths (Old), its linear internal nodes lie on them (Claim 13), and shares cut lines, and possibly ends of chords, with or , which Claims 6 and 12 allow. If , all of lies on the high side, the low side is empty (Claim 15(a)), the -side overlaps, and the -side child is itself with the range and the same bounding paths. The invariant records all -pieces of , also those with an index outside ; Claims 9 and 16 hold for all indices, and Claim 19 reaches below . The low end of is the cut at , the entry of , and the high end of is the cut at ; chords of incision curves end at midpoints of side segments of edges off , never at these cuts. The mode and the moved token change , not the token graph, so they do not enter. If , then is a leaf and nothing is incised. The thickened drawing gives every dart its own side segment, so a bridge with one face on both sides has two segments in that face, and the corner arc of a vertex of degree 1 runs around the end of its strip. If or is absent, the claims about it are empty, and with or , (Pieces) still holds. On level 1 all internal nodes of are cyclic, and both ends split. An end piece of that consists of one old token cannot occur in . A cut lies inside an incised dart or at or , so a piece made of one old token has or as an end of its arc and lies in or . In , the cut at is the entry of and so the low end of the arc; the cut point of the token is the high end, and by Claim 9(c), (Bound) and (Old) its pair lies on , with this piece as an end. Then or , so by (Pieces), and is a leaf. In the mirror argument puts the pair on , so .
What is taken from [15]. The structure of the recursion [15, Alg. 3]: in a live annulus that is not a leaf, is computed for the middle index, its part is incised, the overlap rule of lines 9 to 14 runs on a side where meets the bounding path, and the two sides are called with the ranges and . Our readings are listed in Section 6. Three of them are used here: a bound is the copy of an incised part, not of a whole path; a side with overlap gets no call, and overlap is tested directly; and a side with an empty range gets no call. The two call rules only remove calls. Incision as a split of nodes [15, Def. 2.2, Remark 2.5], used in the token form of the Annulus Lemma, with the two sides of [15] read as the low and the high side of ; this reading is also made by the Annulus Lemma. The proof does not use [15, Claim 2.3], nor (N2), (N4) or (N5), nor the converse of [15, Claim 5.8]: the parts of them that are needed are proved above. In particular, the internal nodes of that an earlier incision split and the old edges of lie on or (Claims 9 and 13), live annuli are components of the token graph ((Comp) and Claim 15), and a discarded part lies on the side of its bounding path (Claim 15(c), (d)).
C Proofs of the Witness Interval Lemma and the Repaired Recursion Lemma
C.1 Setting
Lengths are on dual edges and on their copies. They are positive, and exceeds the number of edges of every simple path in an annulus (Section 6). The path is a -shortest path in (the Exact Trees Lemma). For indices and , let be the -length of the part of between and . It is additive along : if lies between and , and if .
The annulus has one piece and one piece of each face , and the copies of in it form two paths , (Appendix B.2). Let be the part of the path on side from to , of length . A piece of a face of maps to and a pair of an edge to , so a walk in maps to a walk in of the same length. By part (b) of the Annulus Lemma, a walk in a live annulus maps to a walk in of the same length, and a piece of maps to ; we use these maps without naming them.
For a walk in from to , let be the index of its last visit to a 0-piece and the index of its first visit to a 1-piece after it; it has one, since it ends at . The part of between these two visits runs from to and has no piece of a face of inside. For the image of , which is read from , these are the and of Section 6, and is the image of .
C.2 Four facts in
Claim 20 (P). A walk in from a piece of to a piece of has length at least .
Proof. Its image is a walk in from to , and the part of between them is a shortest path.
Claim 21 (B). If is a walk in from to , then for every index .
Proof. is a walk from to .
Claim 22 (W). Let be a walk in from to that visits and , in either order. Then for every between and .
Proof. Let be the part of between a visit to and a visit to , read from to . The two other parts of run from to one of and and from the other to , so by Claim 20, . By Claim 21, . The function is constant between and and grows away from them, so its value at is at most its value at for every in the stated range.
Claim 23 (Sep). Let be a walk in from to with no piece of a face of inside, and let lie strictly between and . Then every walk in from to meets a node of .
Proof. We use the curve model of Appendix B.2 on level 1, where , the slot of is the open half , and satisfies (I) (Claim 5). Suppose that meets no node of . By Claim 4, ; this covers the two copies of an edge of , whose curves lie in the two half-strips of its strip, and the two pieces of a face of , whose collars lie in its two halves. Collars avoid small neighbourhoods of the ends of their arcs, and the curve of a copy of an edge of stays in its half-strip away from . So there is a thin closed neighbourhood of that meets no collar and no curve of a pair, and hence misses and .
Let be a curve in from a point of to a point of , and close it by an arc in the face : from through into , across once at a point , and through to . Let be a curve in from a point of to a point of , and close it by a curve : from through into , inside on side 1 of along to the face , across once inside , and through to . Both closed curves may be non-simple, since and may repeat nodes. We count their crossings.
• and are disjoint.
and : misses . Outside , lies in and , where could meet only the collars of and , which are nodes of and so not visited by . A visit of to or puts collars in the other halves, which enters only inside .
and : lies in the closed disk of , and misses it, since visits no piece of : differs from and , and has no piece of a face of inside. Curves of pairs lie in strips.
and : outside they lie in distinct faces, since . Inside , is a short segment across . Since lies strictly between and , the run of on side 1 passes all of , and its crossing of lies in . So crosses exactly once, near on side 1.
So the two closed curves cross exactly once, against the parity fact, which also holds for closed curves that are not simple.
C.3 Proof of the Witness Interval Lemma
Write , with from to and from to . As has length , it is no longer than any walk in from to .
(a) and . The bounds hold by Claim 20. The walks and run from to , which gives the bounds . So .
(b) The indices. A visit of to a piece of splits into two walks, and Claim 20 gives . Since is additive and positive between distinct indices, lies between and . This holds for 1-pieces on as well. In the same way, the pieces of faces of on have indices between and , and has no such piece inside. Since and lie on , we get and .
Let , , let be the set of indices between and , and let . Then is constant on , and off , , where is the end of nearer to .
(c) Two bounds. By Claim 21 with , for every . Let be a shortest walk in from to . Then runs from to , so , and by (a),
Now let .
Case 1: or . Say ; the other case is symmetric. Then forces , so , and . Since lies between and , , and (c) gives . For every , , so . This is the interval . If , the same argument gives .
Case 2: . By Claim 23, meets at a node . Split and at visits to , with from and from . The walks and run from to , so by (a)
Let if and if . Then lies between and , so , and the interval between and is if and if .
• If , let , a walk from to . Then
visits and , so by Claim 22, for every between and .
• If , let . In the same way , and visits and , so for every between and .
This proves the Witness Interval Lemma. Only (P), (B), (W) and (Sep) in are used.
C.4 Proof of the Repaired Recursion Lemma
Soundness. The lengths that the recursion compares are of two kinds: the length of a path computed in a live annulus between its pieces of and , which are unique by part (c) of the Incision Lemma (the paths , , and the paths of the leaves); and the length of a walk of the overlap rule from through a node to . Either maps to a walk in from to of the same length, so its length is at least , and by part (c) of the Annulus Lemma its -length is at least .
Good annuli. Call a live annulus good if for some . The annulus , with the range , is good. We show that if is good, then a path or walk of length is computed in , or a called child of is good. The ranges of the children are shorter than that of , since when is not a leaf, so the recursion is finite, and a path or walk of length is computed somewhere. Fix with .
- A is a leaf. It computes and , of lengths and by (INV) of the Incision Lemma, and t is one of these two indices.
. By (INV), has length , so its image in is a walk as in the Witness Interval Lemma, with the same and . By the Witness Interval Lemma, for all or for all . Since , we have and , and both lie in . By (INV), the repair computes paths of lengths and (or itself, if one of these indices is ), and one of these lengths is at most , hence equal to it.
• . Then . If meets , the overlap rule computes, from a common node , a walk from through to of length , which is by (C23) of the Incision Lemma. Otherwise the -side is called with the range , which contains ; by part (b) of the Incision Lemma it is one subgraph without bad edges, so it is a live annulus of the next level, and it is good.
• . This is symmetric, with , the range and the second part of (C23).
The -length. A computed path or walk of -length has -length at least by soundness, and at most since times its -length is less than its -length (Section 6). Every other computed path or walk has -length at least by soundness. The tree paths of the Exact Trees Lemma have fewer than edges, so (R2) reads their -lengths exactly, and a walk of the overlap rule is the union of two of them. So the least -length that the recursion reads is . This proves the Repaired Recursion Lemma.
References
[1] H. Le, H. Tierno, S. Yang. Planar Embedding of Okamura-Seymour Quasimetrics in Polynomial Time with an Application to Distributed SSSP. arXiv:2606.31192 (v2, 2026).
[2] N. Cao, J. T. Fineman. Parallel Exact Shortest Paths in Almost Linear Work and Square Root Depth. SODA 2023.
[3] V. Rozhoň, B. Haeupler, A. Martinsson, C. Grunau, G. Zuzic. Parallel Breadth-First Search and Exact Shortest Paths and Stronger Notions for Approximate Distances. STOC 2023, arXiv:2210.16351 (v1).
[4] S. Chechik, D. Mukhtar. Single-source shortest paths in the CONGEST model with improved bound. PODC 2020.
[5] N. Cao, J. T. Fineman, K. Russell. Brief announcement: an improved distributed approximate single source shortest paths algorithm. PODC 2021.
[6] V. Ashvinkumar, A. Bernstein, N. Cao, C. Grunau, B. Haeupler, Y. Jiang, D. Nanongkai, H. H. Su. Parallel, Distributed, and Quantum Exact Single-Source Shortest Paths with Negative Edge Weights. ESA 2024, arXiv:2303.00811 (v2).
[7] T. de Vos. Minimum Cost Flow in the CONGEST Model. SIROCCO 2023, arXiv:2304.01600.
[8] J. Li, M. Parter. Planar Diameter via Metric Compression. STOC 2019, arXiv:1912.11491 (v1).
[9] Y. Abd-Elhaleem, M. Dory, M. Parter, O. Weimann. Distributed Maximum Flow in Planar Graphs. PODC 2025, arXiv:2411.11718 (v4).
[10] G. L. Miller, J. Naor. Flow in planar graphs with multiple sources and sinks. SIAM J. Comput. 24(5), 1995.
[11] R. Hassin. Maximum flow in planar networks. Inform. Process. Lett. 13(3), 1981.
[12] M. Ghaffari, B. Haeupler. Distributed Algorithms for Planar Networks I: Planar Embedding. PODC 2016.
[13] B. Jauregui, P. Montealegre, I. Rapaport. Deterministic Distributed DFS and Other Problems via Cycle Separators in Planar Graphs. PODC 2025, arXiv:2504.21620 (v2).
[14] Y. Abd-Elhaleem, M. Dory, O. Weimann. A Simple Distributed Deterministic Planar Separator. SIROCCO 2026, arXiv:2602.22916.
[15] Y. Abd-Elhaleem, M. Dory, O. Weimann. Optimal Distributed Maximum Flow Approximation in Undirected Planar Graphs. DISC 2026 (shortened version), arXiv:2608.09500 (v1).
[16] M. Parter. Distributed Planar Reachability in Nearly Optimal Time. DISC 2020.
[17] J. H. Reif. Minimum s-t cut of a planar undirected network in time. SIAM J. Comput. 12(1), 1983.