Unique perfect matchings, forbidden transitions and proof nets for linear logic with Mix
L\^e Th\`anh D\~ung Nguy\^en

TL;DR
This paper connects linear logic proof net correctness with perfect matching uniqueness in graph theory, providing new efficient algorithms and characterizations for MLL+Mix proof nets using graph algorithms.
Contribution
It introduces a novel equivalence between proof net correctness and perfect matching uniqueness, leading to linear-time correctness criteria and new graph-theoretic insights.
Findings
Linear-time correctness criterion for MLL+Mix proof nets
Quasi-linear sequentialization algorithm
Characterization of sub-polynomial complexity of correctness problem
Abstract
This paper establishes a bridge between linear logic and mainstream graph theory, building on previous work by Retor\'e (2003). We show that the problem of correctness for MLL+Mix proof nets is equivalent to the problem of uniqueness of a perfect matching. By applying matching theory, we obtain new results for MLL+Mix proof nets: a linear-time correctness criterion, a quasi-linear sequentialization algorithm, and a characterization of the sub-polynomial complexity of the correctness problem. We also use graph algorithms to compute the dependency relation of Bagnol et al. (2015) and the kingdom ordering of Bellin (1997), and relate them to the notion of blossom which is central to combinatorial maximum matching algorithms. In this journal version, we have added an explanation of Retor\'e's "RB-graphs" in terms of a general construction on graphs with forbidden transitions. In fact, it…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\WarningFilter
captionUnsupported document class \WarningFilterhyperrefComposite letter \WarningFilterhyperrefGlyph not defined \lmcsdoi16127 \lmcsheadingLABEL:LastPageJan. 30, 2019Feb. 28, 2020
\titlecomment\lsuper
*Extended version of a FSCD 2018 paper
Unique
perfect matchings, forbidden transitions
and proof nets for linear logic with Mix
Lê Thành Dũng Nguyễn
Université publique, France
Abstract.
This paper establishes a bridge between linear logic and mainstream graph theory, building on previous work by Retoré (2003). We show that the problem of correctness for MLL+Mix proof nets is equivalent to the problem of uniqueness of a perfect matching. By applying matching theory, we obtain new results for MLL+Mix proof nets: a linear-time correctness criterion, a quasi-linear sequentialization algorithm, and a characterization of the sub-polynomial complexity of the correctness problem. We also use graph algorithms to compute the dependency relation of Bagnol et al. (2015) and the kingdom ordering of Bellin (1997), and relate them to the notion of blossom which is central to combinatorial maximum matching algorithms.
In this journal version, we have added an explanation of Retoré’s “RB-graphs” in terms of a general construction on graphs with forbidden transitions. In fact, it is by analyzing RB-graphs that we arrived at this construction, and thus obtained a polynomial-time algorithm for finding trails avoiding forbidden transitions; the latter is among the material covered in another paper by the author focusing on graph theory.
Key words and phrases:
correctness criteria, matching algorithms
The manifesto https://pageperso.lif.univ-mrs.fr/~sylvain.sene/affiliation.html (in French; archived on 2020–02–12 on the Internet Wayback Machine (https://archive.org/)) explains the given affiliation.
1. Introduction
1.1. Algorithmics of proofs in linear logic
One of the major innovations introduced at the birth of linear logic [Gir87] was a representation of proofs as graphs, instead of trees as in natural deduction or sequent calculus. A distinctive property of these proof nets is that checking that a proof is correct cannot be done merely by a local verification of inference steps: among the graphs which locally look like proof nets, called proof structures, some are invalid proofs. Hence the correctness problem: given a proof structure, is it a real proof net?
A lot of work has been devoted to this decision problem, and in the case of the multiplicative fragment of linear logic (MLL), whose proof nets are the most satisfactory, it can be considered solved from an algorithmic point of view. Indeed, Guerrini [Gue11] and Murawski and Ong [MO06] have found linear-time tests for MLL correctness; the problem has also been shown to be -complete by Jacobé de Naurois and Mogbil [JdNM11]. Both the linear-time algorithms we mentioned also solve the corresponding search problem: computing a sequentialization of a MLL proof net, i.e., a translation into sequent calculus.
However, for MLL extended with the Mix rule [FR94] (MLL+Mix), the precise complexity of deciding correctness has remained unknown (though a polynomial-time algorithm was given by Danos [Dan90]). Thus, one of our goals in this paper is to study the following problems:
Problem 1** (MixCorr).**
Given a proof structure , is it an MLL+Mix proof net?
Problem 2** (MixSeq).**
Reconstruct a sequent calculus proof for an MLL+Mix proof net.
1.2. Proof nets vs graph theory
It turns out that a linear-time algorithm for MixCorr follows immediately from already known results111A similar historical remark can be made about correctness for MLL without Mix, see Remark 23., see Theorem 22. The key is to use a construction by Retoré [Ret99, Ret03] to reduce it to the problem of uniqueness of a given perfect matching, which can be solved in linear time [GKT01]:
Problem 3** (UniquenessPM).**
Given a graph , together with a perfect matching of , is the only perfect matching of ? Equivalently, is there no alternating cycle for ?
This brings us to the central idea of this paper: from the point of view of algorithmics, MLL+Mix proof nets and unique perfect matchings are essentially the same thing. This allows us to apply matching theory to the study of proof nets, leading to several new results. Indeed, one would expect graph algorithms to be of use in solving problems on proof structures, since they are graphs! But for this purpose, a bridge between the theory of proof nets and mainstream graph theory is needed, whereas previous work on the former mostly made use of “homemade” objects such as paired graphs (an exception being Murawski and Ong’s use of dominator trees). By building on Retoré’s discovery of a connection with perfect matchings, this paper proposes such a bridge.
Thus, proof structures are revealed to be part of a family of graph-theoretic objects which admit equivalent (as shown by Szeider [Sze04]) “structure from acyclicity” properties. In linear logic, the corresponding acyclicity property has been known for a long time: it is the Danos–Regnier correctness criterion [DR89], a necessary and sufficient condition for a proof structure to be a proof net. These connections have also inspired new results concerning other members of this family, not only perfect matchings but also, e.g., “edge-colored graphs”; that is the subject of another paper by the author [Ngu19].
Another occurrence of an equivalent “structure from acyclicity” result, of historical interest for us, is Retoré’s “aggregates” [Ret93, Chapter 2]222To be more accurate, in the reference given, which is a PhD thesis written in French, they are called “agrégats”. However, the word “aggregate” is indeed the official translation, and appeared in the title of the never published note Graph theory from linear logic: Aggregates (Preprint 47, Équipe de Logique, Université Paris 7). That title is also a good summary for what we try to achieve in the present paper and in [Ngu19]., an early attempt to define a purely graph-theoretic counterpart to the theory of MLL+Mix correctness. It turns out that these aggregates occur naturally in graph theory as a tractable case of the “rainbow path problem” as we show in [Ngu19].
1.3. Contributions
First, we establish our equivalence by giving a translation from graphs equipped with perfect matchings to proof structures (Section 3) — Retoré’s pre-existing construction takes care of the converse direction333This is a first difference with the conference version, which did not include Retoré’s translation.. We also propose later an alternative to Retoré’s translation (Section 5.1), having better properties with respect to sequentialization; this yields a new graph-theoretic proof of the sequentialization theorem, i.e., the equivalence between MLL+Mix proof nets and Danos–Regnier acyclic proof structures.
1.3.1. Complexity of problems on proof nets
As already mentioned, we give the first linear-time algorithm for MixCorr (Section 4.1). As for its sub-polynomial complexity (Section 4.2), we show that MixCorr is in randomized and in (informally, is the class of problems with efficient parallel algorithms). On the other hand, we have a sort of hardness result: if MixCorr were in — in particular, if it were in , as for MLL without Mix — this would imply a solution to a long-standing conjecture by Lovász (Conjecture 28) concerning the related unique perfect matching problem:
Problem 4** (UniquePM [KVV85, GKT01, HMT06]).**
Given a graph , determine whether it admits exactly one perfect matching and, if so, find this matching.
We then turn to the sequentialization problem, for which we provide a graph-theoretic reformulation — thanks to our new translation in Section 5.1 — and an algorithm relying on this reformulation. This gives us a quasi-linear time444More precisely, time. Both this and our algorithms rely on very recent advances, respectively on dynamic bridge-finding data structures [HRT18] and on the perfect matching existence problem [ST17]. Any further progress on these problems would lead to an improvement of our complexity bounds. solution to MixSeq (Section 5.2); to our knowledge, this beats previous algorithms for MixSeq.
As a demonstration of our matching-theoretic toolbox, we also show how to compute some information on the set of all sequentializations, namely Bellin’s kingdom ordering [Bel97] of the links of a MLL+Mix proof net (rediscovered by Bagnol et al. [BDS15] under the name of order of introduction). We give a polynomial time and a algorithm (Section 6), both relying on an effective characterization of this ordering.
1.3.2. Further connections to graph theory
We also show that this notion of kingdom ordering admits a direct counterpart in unique perfect matchings. The above-mentioned characterization, when rephrased in the language of graph theory (Section 6.2), turns out to involve objects which play a major role in matching algorithms, namely blossoms [Edm65]. In this way, we obtain a new result of independent interest in combinatorics. The appendix of the conference version of this paper contained a direct proof of this result; instead of reproducing it here, we have moved it to the companion paper [Ngu19], and limit ourselves here to the equivalence with the already known [Bel97] proof net version.
Finally, in Section 7 — a new section added for this journal version555This results of that new section were previously claimed without proof in a contributed talk at the 1st International Workshop on Trends in Linear Logic and Applications (TLLA 2017). — we analyse Retoré’s “RB-graphs” reduction [Ret03], and show that it can be understood in terms of graphs with forbidden transitions [Sze03] which can be seen as the generalized paired graphs. This reveals a minor subtlety about what kind of cycles RB-graphs actually detect in paired graphs.
Contents
-
2.2 Perfect matchings, alternating cycles and sequentialization
-
2.3 Proof structures, proof nets and the correctness criterion
-
3.1 From proof structures to perfect matchings: Retoré’s RB-graphs
-
8.1 Further hardness results: pomset logic and visible acyclicity
-
8.3 Other variants of proof nets through the lens of graph theory
2. Preliminaries
2.1. Terminology
2.1.1. Graph theory
By default, “graph” refers to an undirected graph. Our paths and cycles are not allowed to contain repeated vertices666This choice of terminology is common, see, e.g., [BJG09, §1.4]. The adjective “elementary” is sometimes used to refer to such paths and cycles.; we will sometimes identify them with their sets of edges (which characterize them) and apply set operations on them. A bridge of a graph is an edge whose removal increases the number of connected components.
For directed graphs, the notion of connectedness we consider is weak connectedness, i.e., connectedness of the graph obtained by forgetting the edge directions. A predecessor (resp. successor) of a vertex is the source (resp. target) of some incoming (resp. outgoing) edge.
2.1.2. Complexity classes
We refer to [JdNM11, §1.4] for the logarithmic space classes (deterministic) and (non-deterministic) and to [CSV84] for the class of constant-depth circuits. The class (resp. [Bar92]) consists of the problems which can be solved by a uniform777For and , we may take this to mean that there is a deterministic logarithmic space Turing machine which, given in unary, computes the circuit for inputs of size . We will not enter into the details of uniformity. family of circuits of depth and polynomial (resp. quasi-polynomial, i.e., ) size; and .
It is well-known that .
2.2. Perfect matchings, alternating cycles and sequentialization
{defi}
Let be a graph. A matching (resp. perfect matching) in is a subset of such that every vertex in is incident to at most one (resp. exactly one) edge in . An alternating path (resp. cycle) for is a path (resp. cycle) where, for every pair of consecutive edges, one of them is in the matching and the other one is not.
Testing the existence of a perfect matching in a graph — or, more generally, finding a maximum cardinality matching — is one of the central computational problems in graph theory. Combinatorial maximum matching algorithms, starting888Note that the problem was solved long before in the special case of bipartite graphs. In fact, a solution for this case was found in Jacobi’s posthumous papers [Jac65, JO09]. with Edmonds’s blossom algorithm [Edm65]999This paper is one of the first to propose defining efficient algorithms as polynomial-time algorithms; it also contributed to the birth of the field of polyhedral combinatorics., use alternating paths to iteratively increase the size of the matching; similarly, alternating cycles are important for the problems UniquenessPM and UniquePM because they witness the non-uniqueness of perfect matchings.
Lemma 5** (Berge [Ber57]).**
Let be a graph and be a perfect matching of . Then if is a perfect matching, the symmetric difference is a vertex-disjoint union of cycles, which are alternating for both and . Conversely, if is an alternating cycle for , then is another perfect matching.
As an example, consider Figure 1(a). The matching on the left admits an alternating cycle, the outer square; by taking the symmetric difference between this matching and the set of edges of the cycle, one gets the matching on the right. Conversely, the symmetric difference between both matchings (which, in this case, is their union) is the square. Note also that in Figure 1(b), there is no alternating cycle because vertex repetitions are disallowed.
Another approach to finding perfect matchings, using linear algebra, was initiated by Lovász [Lov79] and leads to a randomized algorithm by Mulmuley et al. [MVV87]. Recently, Svensson and Tarnawski have shown that this algorithm can be derandomized to run in deterministic [ST17].
There is also a considerable body of purely mathematical work on matchings, starting from the 19th century. Let us mention for our purposes a result dating from 1959.
Theorem 6** (Kotzig [Kot59]).**
Let be a graph. Suppose that admits a unique perfect matching . Then contains a bridge of .
As shown by Retoré [Ret03], Kotzig’s theorem leads to an inductive characterization of the set of graphs equipped with a unique perfect matching.
Theorem 7** **(Sequentialization for unique perfect
matchings [Ret03]).
The class of graphs equipped with an unique perfect matching is inductively generated as follows:
- •
The empty graph (with the empty matching) is in .
- •
The disjoint union of two non-empty members of is in .
- •
Let and , with and disjoint. Let , such that (resp. ) unless (resp. ) is the empty graph, and let be two fresh vertices not in nor . Then , where
- –
**
- –
**
- –
**
Remark 8**.**
By relaxing the non-emptiness condition on and , the disjoint union operation becomes unnecessary; this is actually the original statement [Ret03, Theorem 1]. Our motivation for this change is to get a good fit with Theorem 35: we want the disjoint union of graphs to correspond to the Mix rule on proof nets.
The inspiration for the above theorem comes from linear logic: it is a graph-theoretic version of the sequentialization theorems for proof nets, with Kotzig’s theorem being analogous to the “splitting lemmas” which appear in various proofs of sequentialization. Section 5 is dedicated to investigating this connection further.
2.3. Proof structures, proof nets and the correctness criterion
A proof structure is some kind of graph-like object with the precise definition varying in the literature (we will come back to this point in Remark 17). Since our aim is to apply results from graph theory, it will be helpful to commit to a representation of proof structures as graphs.
We write for the indegree and for the outdegree of a vertex.
{defi}
A proof structure is a non-empty directed acyclic multigraph with a labeling of the vertices such that, for :
- •
if , then and ,
- •
if , then and .
Vertices of a proof structure will also be called links. A terminal link is a link with outdegree 0. A sub-proof structure is a vertex-induced subgraph which is a proof structure.
Remark 9**.**
It is customary to add “dangling outgoing edges” from the terminal links and to consider them to be the conclusions of the proof net. See Definition 3.1 and Remark 17.
{defi}
The set of MLL proof nets is the subset of proof structures inductively generated by the following rules:
- •
-rule: a proof structure with a single -link is a proof net.
- •
-rule: if and are proof nets, is a link of and is a link of , then taking the disjoint union of and , adding a new -link , an edge from to and an edge from to gives a proof net, as long as the resulting graph is a proof structure (i.e., the degree constraints are satisfied).
- •
-rule: if is a proof net and are links of , then adding a new -link , an edge from to and an edge from to gives a proof net, with the same proviso as above.
The set of MLL+Mix proof nets is inductively generated by the above rules together with the Mix rule: if and are proof nets, their disjoint union is a proof net.
A proof structure is said to be correct if it is a MLL+Mix proof net.
Remark 10**.**
As with any inductively defined set, membership proofs for the set of MLL (resp. MLL+Mix) proof nets may be presented as inductive derivation trees, which are isomorphic to the usual sequent calculus proofs of MLL (resp. MLL+Mix): see Figure 2 for an example, and Figure 3 for the inference rules of the sequent calculus. An example of inductive construction presented directly on proof nets is given in Figure 4.
Remark 11**.**
The proof structures and proof nets defined here are cut-free. This restriction is without loss of generality, since a cut link has exactly the same behavior as a terminal -link with respect to correctness and sequentialization.
To tackle the problem of correctness, it is useful to have non-inductive characterizations of proof nets, called correctness criteria, at our disposal. Many of them are formulated using the notion of paired graphs. We will state a criterion first discovered by Danos and Regnier for MLL [DR89] and extended to MLL+Mix by Fleury and Retoré [FR94].
{defi}
A paired graph consists of an undirected graph and a set of unordered pairs of edges such that:
- •
if , then and have a vertex in common;
- •
the pairs are disjoint: if and , then .
When , the edges and are said to be paired.
A switching is a set of edges containing exactly one from every pair in . The switching graph for is the spanning subgraph of , where is the union of all pairs in . A switching path (resp. cycle) is a path (resp. cycle) which intersects each pair of at most once.
Remark 12**.**
Equivalently, switching cycles are cycles which exist in some switching graph.
{defi}
Let be a proof structure. Its correctness graph is the paired graph obtained by forgetting the directions of the edges and the labels of the vertices in , and pairing together two edges when their targets101010That is, the targets of the directed edges in they come from. are the same -link.
A switching path (resp. cycle) in is a sequence of edges of whose image in is a switching path (resp. cycle).
Examples of switchings graphs of a correctness graph are given in Figure 5.
Theorem 13** (Danos–Regnier correctness criterion).**
A proof structure is a MLL (resp. MLL+Mix) proof net if and only if all the switching graphs of are trees (resp. forests).
Remark 14**.**
Equivalently, is a MLL+Mix proof net if and only if it contains no switching cycle.
The above is usually called a sequentialization theorem: it means that a proof structure which satisfies the correctness criterion admits a sequent calculus derivation.
The analogy with Theorem 7 is that proof nets are to proof structures what unique perfect matchings are to perfect matchings. The next section is dedicated to formalizing this analogy into an equivalence.
3. An equivalence through mutual reductions
We will now see how to turn a proof structure into a graph equipped with a perfect matching, in such a way that switching cycles become alternating cycles, and vice versa. Such a translation from proof structures to perfect matchings was first proposed by Retoré [Ret03], under the name of RB-graphs. After recalling the definition of RB-graphs and their properties in Section 3.1, we propose our own translation in the converse direction — which we call the proofification construction — in Section 3.2.
Thus, this section sets up the reductions (in the sense of complexity theory) that will be exploited in Section 4. But further developments in Section 5 and Section 6 will require the introduction of a new translation (graphification) from proofs to graphs.
Remark 15**.**
The nature of the object corresponding to a matching edge in a proof structure will vary depending on the translation considered: for RB-graphs, they correspond to edges or terminal links, whereas in the case of proofifications, they are translated into -links. (And in the graphifications of Section 5.1, they correspond to links.)
Thus, by taking the proofification of a RB-graph of a proof structure, one gets a different proof structure, with the edges of the former being sent to -links of the latter. It is unclear whether this transformation has any meaning in terms of linear logic; in particular it does not preserve correctness for MLL without Mix.
3.1. From proof structures to perfect matchings:
Retoré’s RB-graphs
To define RB-graphs, it is more convenient to start from a slightly altered definition of proof structures.
{defi}
A proof structure with conclusions is a non-empty directed acyclic multigraph with a partial labeling of the vertices such that, for :
- •
if , then and ;
- •
if , then and ;
- •
else, is unlabeled, and then and .
In the latter case, is called a conclusion vertex and its unique incoming edge is called a conclusion edge.
Compared with Definition 2.3, the bounds on the outdegree have become equalities, while a new kind of vertex has been added. The idea is that, when the inequality on the outdegree is strict, there are “missing” outgoing edges, which are materialized here as conclusion edges. Yet the object being manipulated is still fundamentally the same; indeed, the following is immediate (see Figure 6 for an example):
Proposition 16**.**
Given a proof structure with conclusions, the subgraph induced by the labeled vertices is a proof structure according to Definition 2.3. This correspondence is bijective: conversely, there is a unique way to add unlabeled conclusions to a proof structure.
Remark 17**.**
Here we are confronted with the fact that there is no single canonical definition of MLL proof structures (although two given definitions are always canonically isomorphic). Depending on the task at hand, different combinatorial formalizations of the same object may be more or less convenient. To define proof nets inductively, it was easier to use proof structures without conclusions and rely on the notion of terminal link. This will also prove useful for the sequentialization algorithm of Section 5.2. But the conclusion edges are logically significant111111An annoying point, however, is that the conclusion vertices have no significance, so sometimes proof structures are defined with “dangling edges” with no target. However, dangling edges drag us out of the world of graphs, and into hypergraphs — indeed, they are hyperedges of arity 1. Proof structures are also often defined as the dual hypergraph: links are hyperedges, and formulas are vertices. For our purposes, we have chosen to keep proof structures as actual graphs, to make the connections with graph theory clearer.: they correspond to the formulas in the sequent being proven.
Starting from this, we can now introduce RB-graphs. The definition we use is taken from Straßburger’s lecture notes at ESSLLI’06 [Str06], and differs slightly from Retoré’s original one (edges are handled more uniformly in Straßburger’s version).
{defiC}
[[Ret03, Str06]] Let be a proof structure with conclusions. The corresponding RB-graph is a graph equipped with a perfect matching such that:
- •
is in bijection with the directed edges ;
- •
the non-matching edges of are derived from the labeling of the links, following the rules of Figure 7 (conclusion vertices do not induce non-matching edges).
An example of RB-graph is given in Figure 8. The interest of this translation lies in:
Proposition 18** (implicit in [Ret03]).**
The switching cycles in a proof structure are in bijection with the alternating cycles in its RB-graph.
Corollary 19** (Retoré’s correctness criterion [Ret03]).**
A proof structure satisfies the Danos–Regnier criterion for MLL+Mix if and only if the perfect matching of its RB-graph is unique.
3.2. From perfect matchings to proof structures
The translation we present below involves “-ary -links”. When , these are just binary trees of -links (correctness is independent of the choice of binary tree: semantically, this is associativity of ) with leaves (incoming edges) and a single root (outgoing edge); the case corresponds to a single edge and no link.
{defi}
Let be a graph and be a perfect matching of . We define the proofification of as the proof structure built as follows:
- •
For each non-matching edge , we create an -link whose two outgoing edges we will call and .
- •
For each vertex , if , we add a -ary -link with , whose incoming edges are the for all neighbors of such that , and we call its outgoing edge . If , we add an -link calling one of its outgoing edges .
- •
For each matching edge , we add an -link whose incoming edges are and . These -links are the terminal links of .
Examples of proofification are provided in Figure 9 (annotated figure) and Figure 10.
Proposition 20**.**
Let be a graph and be a perfect matching of . The alternating cycles for in are in bijection with the switching cycles in the proofification of .
Proof 3.1**.**
Let be the proofification of . Any switching cycle in changes direction only at -links and -links, and therefore can be partitioned into an alternation of -links, corresponding to matching edges, and of paths starting with some , ending with some and crossing some , corresponding to non-matching edges . Therefore, it corresponds to an alternating cycle for , and the mapping defined this way is bijective.
We end this section on a property of the sequentializations of .
Proposition 21**.**
Let be a graph with a unique perfect matching and let be the proofification of . A matching edge is a bridge of if and only if its corresponding -link is introduced by the last rule of some sequentialization of .
Proof 3.2**.**
This follows from the fact that a -link may be introduced by the last rule of a sequentialization if and only if it is splitting, i.e., its removal disconnects its two precedessors.
This is consistent with the discussion at the end of Section 2.2: a bridge in a unique perfect matching may be taken as a “last rule” in its “sequentialization” in the sense of Theorem 7. However, RB-graphs do not satisfy a property analogous to the above proposition. This is one of the motivations for the introduction of our new translation (Section 5.1), cf. Theorem 35.
4. On the complexity of MLL+Mix correctness
Through the translations of the previous section, MLL+Mix proof nets become unique perfect matchings and conversely: these translations provide reductions between the problems MixCorr and UniquenessPM, allowing us to draw complexity-theoretic conclusions on proof nets from known results in graph theory. We first look at the time complexity of MixCorr, then turn to its complexity under constant-depth () reductions.
4.1. An immediate linear-time algorithm
Computing Retoré’s RB-graphs (Section 3.1) and deciding UniquenessPM [GKT01, §3] can both be done in linear time, so:
Theorem 22**.**
MixCorr* can be decided in linear time.*
Remark 23**.**
By using the “Euler–Poincaré lemma” (an old part of the linear logic folklore, written down in, e.g., [BDS15]) to count the uses of the Mix rule in a proof net, this also allows us to decide the correctness of a proof structure for MLL without Mix in linear time.
Historically, all the necessary ingredients for Theorem 22 and for its corollary for MLL already existed before the announcement (at LICS’99, in July 1999) of Guerrini’s linear-time correctness criterion for MLL [Gue11]. Indeed, Retoré first presented his RB-graphs at the 1996 Linear Logic Tokyo Meeting [Ret96], and Gabow et al.’s algorithm [GKT01] was published at the STOC’99 conference in May 1999.
Yet this does not make Guerrini’s work obsolete: the latter also gives a way to compute a sequentialization in linear time for MLL proof nets. The other previously known linear-time algorithm for MLL correctness [MO06] also provides a linear-time sequentialization procedure. For MLL+Mix, we do not quite manage to match this complexity, though we obtain a quasi-linear algorithm, cf. Section 5.2.
This is because the methods used in [Gue11, MO06] are quite different from ours: instead of using the Danos–Regnier switching acyclicity criterion, their starting points are respectively contractibility (cf. Remark 25) and translation to essential nets (cf. Section 8.3.2), which does not work with the Mix rule. Therefore, linear time correctness for MLL+Mix is absolutely not a trivial generalization of the previous literature on MLL without Mix. The discussion at the start of Section 6 makes a similar point with respect to sequentialization.
Remark 24**.**
Our decision procedure has the advantage of being simpler to describe than the aforementioned algorithms for MLL correctness. That said, this apparent simplicity is due to our use of the algorithm of Gabow et al. [GKT01] as a black box. Looking inside the black box reveals, for instance, that it uses the incremental tree set union data structure of Gabow and Tarjan [GT85], which, intringuingly, is also a crucial ingredient of both [Gue11, MO06].
Finding an alternating cycle is indeed more tricky than in appears at first sight. Naively, one would perform a graph traversal which visits alternatively matching edges and non-matching edges. The issue is that this would not not ensure that the alternating cycle found is elementary, i.e., that there are no vertex repetitions, which is an essential condition (that we have included in our definition of “cycle” in Section 2.1). The difficulty of the problem indeed lies in the interaction of this global constraint with the local alternation condition. The analogous issue, seen directly on proof structures, is that the traversal does not remember whether a premise of a -link has already been traversed before (in fact the standard path-finding algorithms rely on a kind of history independence: it does not matter how you reached some intermediate vertex, as long as your path was of minimum length).
Remark 25**.**
Gabow et al.’s algorithm for UniquenessPM relies on the technique of blossom shrinking pioneered by Edmonds [Edm65], a kind of graph contraction which may remind us of Danos’s contractibility correctness criterion [Dan90] for MLL without Mix. Indeed, there exists a formal connection: a rewrite step of big-step contractibility [BDS15] corresponds, when translated to either Retoré’s RB-graphs or our graphifications (Section 5.1), to contracting a blossom. However, not all blossoms are redexes for big-step contractibility. See Section 6.2 for further discussion of blossoms.
4.2. Characterizing the sub-polynomial complexity
For MLL proof nets without Mix, correctness is known to be -complete under reductions thanks to the Mogbil–Naurois criterion [JdNM11]. What about MLL+Mix? Since the reductions of Section 3 can be computed in constant depth, we have:
Theorem 26**.**
MixCorr* and UniquenessPM are equivalent under reductions.*
Thus, it will suffice to study the complexity of UniquenessPM. Let us start with a positive result, using the parallel algorithms for perfect matchings mentioned in Section 2.2.
Proposition 27**.**
UniquenessPM* is in randomized and in deterministic .*
Proof 4.1**.**
Let be a graph and be a perfect matching of . is not unique if and only if, for some , the graph has a perfect matching. To test the uniqueness of , run the parallel instances, one for each , of a randomized [MVV87] or deterministic [ST17] algorithm for deciding the existence of a perfect matching, and compute the disjunction of their answers in .
Being in is a much weaker121212In fact, one can show that , and the problem of finding a perfect matching lies in the latter, according to Svensson and Tarnawski’s analysis. result than being in . But as we shall now see, even showing that UniquenessPM is in (recall that ) would be a major result. It would answer in the affirmative the following conjecture dating back from the 1980’s:
Conjecture 28** **(Lovász131313The conjecture is attributed to Lovász by a
paper by Kozen et al. [KVV85] which claims to solve it. But Hoang et al. [HMT06] note that “this was later retracted in a personal communication by the authors”. Still, the proposed solution works for bipartite graphs.).
UniquePM* is in .*
Indeed, the following shows that (and the converse follows from the definitions).
Proposition 29**.**
There is a reduction from UniquePM to UniquenessPM.
Proof 4.2**.**
This is a consequence of a algorithm by Rabin and Vazirani [RV89, §4] which, given a graph , computes a set of edges such that if admits a unique perfect matching, then is this matching. Starting from any graph , run this algorithm and test whether its output is a perfect matching. If not, then does not admit a unique perfect matching; if it is, then is a positive instance of UniquePM if and only if is a positive instance of UniquenessPM.
To sum up these results about UniquenessPM, which apply to MixCorr:
Theorem 30**.**
MixCorr* is in randomized and in deterministic ; it is in deterministic if and only if Conjecture 28 is true.*
5. Tackling sequentialization via an appropriate translation
We are now interested in using our graph-theoretical tools to deal with problems concerning the order of logical rules, typically that of computing a sequentialization (problem MixSeq from the introduction). However, there is a mismatch between RB-graphs and proof nets: a bridge in a RB-graph does not necessarily correspond to the last rule of some sequentialization of the proof net — in fact, it generally does not even correspond to a terminal link. The key issue is indeed that the successor relation (called in section 6.1), i.e., “there is a directed edge from to ” is forgotten by the translation to RB-graphs.
A toy case to witness the inconvenience caused by this mismatch is the following: we would like to deduce the sequentialization theorem for the Danos–Regnier criterion (Theorem 13) as an immediate corollary of Retoré’s sequentialization for unique perfect matchings (Theorem 7). But this is not possible with RB-graphs – instead, one must resort to a proof by induction using Kotzig’s theorem (Theorem 6), see [Ret99, §2.4].
5.1. A new encoding: graphification
To fulfill the desiderata mentioned above, we introduce the following construction, which involves a trick to encode the successor relation.
{defi}
Let be a proof structure and be its set of links. The graphification of is the graph equipped with a perfect matching with
- •
the matching edges corresponding to the links: , ,
- •
and the remaining edges in reflect the incoming edges of the -links and -links, as specified by Figure 11(a).
Figure 11(b) shows an example of this construction. As another example, Figure 1(b) from Section 2.2 is actually the graphification of Figure 6 from Section 3.1.
Remark 31**.**
There is an ambiguity about the “ of ” configuration (cf. Figure 12) that can occur in correct proof nets: should it result in a multigraph with parallel non-matching edges, or in a simple graph? For simplicity we choose the simple graph option, since that is the setting for most of the literature on matchings, but this detail has very little importance.
Remark 32**.**
To extend Remark 15, there is no clear relationship between graphifications and either of the two translations seen until now (RB-graphs and proofifications).
Just like RB-graphs, graphifications provide a linear time and reduction from MixCorr to UniquenessPM: the complexity results of the previous section could have been obtained using graphifications (as was done in the conference version). We focus on the soundness of the reduction, since its complexity is more or less intuitive.
Proposition 33** (Graphification-based correctness criterion).**
A proof structure satisfies the Danos–Regnier correctness criterion for MLL+Mix if and only if the perfect matching of its graphification is unique.
Proof 5.1**.**
By negating the two sides of the equivalence, the goal becomes proving that a proof structure contains a switching cycle if and only if its graphification contains an alternating cycle.
Consider any alternating cycle for in of length , and take the -indexed sequence of vertices corresponding to the matching edges in the cycle. By construction of the graphification, if two edges in are incident to a common non-matching edge, then the corresponding links in are adjacent: thus, in our sequence, each vertex is adjacent to the previous and the next one, and thus we have a cycle. If it were not a switching cycle, it would contain three consecutive links with a -link and its predecessors141414To expand on this point: this is because we have prohibited vertex repetitions in our definition of cycles. This is legitimate since a graph is a forest if and only if it does not contain a non-vertex-repeating cycle.; but then the alternating cycle would have to cross two incident non-matching edges (from to and from to ), which is impossible. Thus, contains a switching cycle.
To show the converse we will exhibit a right inverse to the map from alternating cycles to switching cycles defined above. Consider a switching cycle: it can be partitioned into directed paths from -links to -links. Let be an intermediate link in such a path, and be matching edges corresponding respectively to , its predecessor, and its successor in the directed path. has a unique endpoint which is incident to both endpoints of ; has a unique endpoint which is not incident to both endpoints of . To join with , we use the edge . By taking all these non-matching edges for all maximal directed paths in the cycle, as well as a choice of two edges incident to each matching edge corresponding to an -link, and the matching edges corresponding to all the links in the cycle, we get an alternating cycle.
The situation was a bit nicer for RB-graphs, with an actual bijection between cycles (Proposition 18) unlike the case of graphifications. That said, the main technical advantages of the latter that we sought are summarized by the following properties.
Lemma 34**.**
Let be a proof structure with graphification and be a link of such that is a bridge of . Then is a terminal link in , and if is a -link, then removing from disconnects its predecessors.
Proof 5.2**.**
Suppose for contradiction that is not a terminal link, and let be a successor of . Then for some endpoint of , and are both edges in , and they make up a path between and not going through . Thus, cannot be a bridge.
The fact that is a bridge means that by removing this edge, and are in different connected components; if is a -link, each of these connected components contain the matching edge corresponding to one predecessor of .
Theorem 35**.**
Let be a proof structure and be its graphification. There is a bijection between the sequent calculus proofs corresponding to (if any) and the sequentializations (i.e., the derivation trees for the inductive definition of Theorem 7) of (if any), through which occurrences of Mix rules correspond to disjoint unions and conversely.
This entails, in particular, the analogous property to Proposition 21 for graphifications.
Proof 5.3**.**
We convert a sequentialization of into a sequentialization of inductively as follows. Since , the last rule of is either a disjoint union or the introduction of a bridge by joining together and with respective sequentializations and . In the latter case, is a terminal link of .
- •
If , then is an -link, and consists of a single -rule.
- •
If and , then is a -link, and the removal of from yields a proof structure whose graphification is . then consists of a -rule introducing applied to the sequentialization of corresponding to .
- •
If and , then is a -link. Since is a bridge, the removal of from yields two proof structures and whose respective graphifications are and . then consists of an -rule applied to the translations of and .
If the last rule of is a disjoint union rule, it is translated into a Mix rule in .
The bijectivity can be proven by defining the inverse transformation and by checking that it is indeed its inverse.
In particular, is a MLL+Mix proof net if and only admits a sequentialization, that is, according to Theorem 7, if and only if is the only perfect matching of . Proposition 33 tells us that this is equivalent to satisfying the Danos–Regnier acyclicity criterion. Therefore, this criterion characterizes MLL+Mix proof nets: as we wanted, we just proved the sequentialization theorem for MLL+Mix (Theorem 13).
5.2. A sequentialization algorithm for MLL+Mix proof nets
In Section 4.1, we saw how to decide MLL+Mix correctness in linear time, matching the known time complexity for MLL correctness. But the algorithms for MLL correctness still have an advantage: they can compute a sequentialization in linear time, whereas we only have a decision procedure for MixCorr which returns a yes/no answer151515It can find a switching cycle, witnessing incorrectness, but cannot produce a certificate of correctness.. We do not know how to compute MLL+Mix sequentializations in linear time. Nevertheless, by applying our bridge between proof nets and graph theory, we get the first quasi-linear time algorithm for MixSeq. The beginning of the next section will discuss why the problem seems harder with Mix.
Our algorithm proceeds by first determining the root of the derivation tree and the link it introduces. To obtain the children of the root, it suffices to recurse on the connected components created by removing this link.
Furthermore, through the correspondence of Theorem 35, finding a link which is introduced by the last rule of some sequentialization amounts to finding a bridge in the matching of the graphification of the proof net (cf. Section 5.1). This is in fact a bit more convenient with graphifications than with general unique perfect matchings, thanks to the following property:
Lemma 36**.**
All bridges in the graphification of some proof structure are matching edges.
Proof 5.4**.**
Let be a non-matching edge. Then there are matching edges and such that the link corresponding to is the predecessor of the one for , and . The non-matching edge is then also present in the graph, and so cannot be a bridge.
The algorithm will alternate between finding and deleting bridges; a deletion may cut cycles and thus create new bridges, which we want to detect without traversing the entire graph each time. To do so, we use a dynamic bridge-finding data structure designed for this kind of use case by Holm et al. [HRT18]. It keeps an internal state corresponding to a graph, whose set of vertices is immutable but whose set of edges may vary, and supports the following operations in amortized time:
- •
updating the graph by inserting or deleting an edge;
- •
computing the number of vertices of the connected component of a given vertex;
- •
finding a bridge in the connected component of a given vertex;
- •
determining whether two vertices are in the same connected component.
Theorem 37**.**
MixSeq* can be solved in time.*
Proof 5.5**.**
Let be a MLL+Mix proof net with links, and be its graphification. Both and have cardinality (in fact, and ).
The algorithm starts by initializing the bridge-finding data structure with the graph , computing the weakly connected components of in linear time, and selecting a link in each component. On each selected link , we call the following recursive procedure; its role is to sequentialize the sub-proof net of containing whose graphification is a current connected component of ( and being mutable global variables):
- •
Let be one endpoint of the matching edge corresponding to . Using the bridge-finding structure, find a bridge in the component of ; necessarily, . Remove the edge from (and reflect this change on with a deletion operation).
- •
If both and are isolated vertices, corresponds to an -link and the entire sub-proof net consisted of this link. In this case, return a sequentialization with a single -rule.
- •
If one of and is isolated, and the other is not — by symmetry, let us assume the latter is — then corresponds to a -link . Let and be its predecessors.
- –
Remove all edges incident to .
- –
If the matching edges corresponding to and are in the same connected component of , recurse on , add a final -link and return the resulting sequentialization.
- –
If and are in different connected components of , recurse on and , use the results as the two premises of a Mix rule, add a final -link and return the resulting sequentialization.
- •
If neither nor is isolated, corresponds to a -link. This is handled similarly to the +Mix case above.
Let us evaluate the time complexity. At each recursive call, one bridge is eliminated from , so the number of recursive calls is . The cost of each recursive call is except for the updates and queries of the bridge-finding data structure. In total, there are deletions, bridge queries, and at most connectedness tests, and each of those takes amortized time. Hence the bound.
Remark 38**.**
If we want to compute a sequentialization for a unique perfect matching, in general, a complication is the existence of bridges which are not in the matching.
Interestingly, one can determine whether a bridge is in without looking at : it is the case if and only if both of the connected components created by removing have an odd number of vertices. This leads to an algorithm for UniquePM; it is virtually the same as the one proposed by Gabow et al. [GKT01, §2]161616Not to be confused with their algorithm for UniquenessPM [GKT01, §3] that we used in Section 4.1. They only claim a bound of because the best dynamic 2-edge-connectivity data structure known at the time has operations in amortized time., from which we took our inspiration.
Remark 39**.**
One needs to use a sparse representation for derivation trees: the size of a fully written-out sequent calculus proof is, in general, not linear in the size of its proof net.
6. On the kingdom ordering of links
One may wonder if we could not have just tweaked an algorithm for MLL sequentialization into an algorithm for MixSeq. In order to argue to the contrary, let us briefly mention a difference between Bellin and van de Wiele’s study of the sub-proof nets of MLL proof nets [BvdW95] and its extension to the MLL+Mix case by Bellin [Bel97]. Any MLL sub-proof net of a MLL proof net may appear in the sequentialization of the latter; however, for MLL+Mix, Figure 13 serves as a counterexample: the sub-proof structure containing all links but the -link is correct for MLL+Mix, but it cannot be an intermediate step in a sequentialization of the entire proof net. A normality condition is needed to distinguish those sub-proof nets which may appear in a sequentialization, and this is why sequentialization algorithms which are morally based on a greedy parsing strategy, such as Guerrini’s linear-time algorithm [Gue11], do not adapt well to the presence of the Mix rule.
Any link in a MLL+Mix proof net admits a minimum normal sub-proof net of containing , its kingdom [Bel97]. Bellin’s kingdom ordering is the partial order on links corresponding to the inclusion between kingdoms. We give an algorithm to compute this order for any MLL+Mix proof net: this is yet another application of matching theory. It uses a characterization of the kingdom ordering in terms of a relation called dependency by Bagnol et al. [BDS15] (who, in turn, take this name from the closely related dependency graph of Mogbil and Naurois [JdNM11]). We will also see how this dependency relation can be reformulated, through our correspondence between proof structures and perfect matchings, in terms of the blossoms mentioned in Section 2.2 and Section 4.1.
One may in fact define the kingdom ordering, written , without reference to the notion of normal sub-proof net (we will not introduce the latter formally here):
{defi}
Let be a MLL+Mix proof net. For any two links of , if and only if, in any sequentialization of , the rule introducing has, among its premises, a proof net containing .
From this point of view, the kingdom ordering gives us information about the set of all sequentializations. Let us give some examples. The proof net of Figure 10 admits a unique sequentialization, so this directly gives us the kingdom ordering: for instance the middle -link is the greatest element. On the other hand, in the proof net of Figure 13, both -links may be introduced by a last rule, so there is no greatest element. In fact, the kingdom ordering coincides with the predecessor relation. So it does not distinguish between the 3 terminal links even though, unlike the 2 others, the -link cannot be introduced last.
Before proceeding further, here is another property of MLL proof nets which is contradicted by Figure 13 for MLL+Mix proof nets, providing more evidence that MixSeq is trickier algorithmically than MLL sequentialization.
Proposition 40**.**
Let be a MLL proof net and be a maximal link for . Then there exists a sequentialization of whose last rule introduces .
Proof 6.1**.**
If is a terminal -link, no other assumption is needed for the existence of such a sequentialization. Else, is a terminal -link and it suffices to show that is splitting, i.e., that the removal of splits into two connected components.
Suppose that it is not the case, and consider some sequentialization of : it must contain a -rule, applied to a sub-proof net for which is splitting, which turns it into a sub-proof net for which is not splitting anymore. Let be the -link introduced by that rule; its predecessors lie in different connected components of . Since is a MLL proof net, the predecessors of are connected by a switching path in , which must cross . This shows that is a dependency of in the sense of Definition 6.1, contradicting the maximality of . (This only uses the fact that , which is the “easy” part of Bellin’s theorem.)
6.1. Computing the kingdom ordering
{defi}
Let be a proof structure. We write for the dependency relation defined as follows: for any two links of , is a dependency of when is a -link and there exists a switching path between the predecessors of going through .
For instance, in the proof net of Figure 10 (Section 3.2), the left -link depends on the left -link, but not on the other -links or -links; the middle -link has no dependency. In the case of Figure 13, the dependency relation is empty.
Theorem 41** **(Bellin [Bel97, Lemma 2]171717This theorem
was rediscovered by Bagnol et al. [BDS15, Theorem 11] in the special case of MLL proof nets without Mix (they refer to the kingdom ordering as the “order of introduction”). We borrow the notations and from them.).
Let be a MLL+Mix proof net. The transitive closure of is , where means that is a predecessor of .
The dependency relation can be computed by reduction to a matching problem in the case of MLL+Mix proof nets: even though it is well-defined in arbitrary proof structures, we need MLL+Mix correctness to compute it, because our matching algorithm relies on the absence of alternating cycles. It is mostly a matter of applying a lemma from our paper [Ngu19]; since the latter has not been peer-reviewed as of the time of writing, we reproduce the proof in the appendix.
Lemma 42** ([Ngu19] / Appendix A).**
Let be a matching of some graph . Suppose that:
- •
there are no alternating cycles for — equivalently, is the unique perfect matching of the subgraph induced by the vertices matched by ;
- •
there are exactly two unmatched vertices .
Then the existence of an alternating path for with endpoints and crossing a prescribed matching edge can be reduced in to the existence of a perfect matching; furthermore, such a path can be found in linear time.
Remark 43**.**
An alternating path between unmatched vertices is often called an augmenting path; combinatorial maximum matching algorithms generally work by iteratively searching for augmenting paths, see, e.g., [Tar83, Chapter 9].
Theorem 44**.**
Let be a MLL+Mix proof net with a link and a -link . Deciding whether can be done in linear time, in randomized and in .
Proof 6.2**.**
A degenerate case is when is a predecessor of : in this case, depending on is equivalent to becoming incorrect if is turned into a -link, and thus the complexity is the same as that of (the complement of) the correctness problem.
When is not a predecessor of , the definition of dependency translates into the problem defined in the above lemma by taking the graphification of , and removing the matching edge corresponding to . The endpoints of this edge then become unmatched, and we choose as prescribed intermediate edge the matching edge corresponding to . The fact that is a proof net ensures that the acyclicity assumption of Lemma 42 is satisfied.
We directly obtain the linear time complexity, and since the existence of a perfect matching can be decided in randomized or (cf. Section 2.2), so can our problem.
A transitive closure can be computed in polynomial time, and reachability in a directed graph can be decided in , so we get in the end:
Corollary 45**.**
There are a polynomial-time algorithm and a algorithm to compute the kingdom ordering of any MLL+Mix proof net .
6.2. Dependencies and blossoms in unique perfect matchings
We will now see how, through the correspondence of Section 3, Bellin’s theorem can be rephrased as a statement on unique perfect matchings.
{defi}
Let be a graph and be a perfect matching of . A blossom for is a cycle whose vertices are all matched within the cycle, except for one, its root. The matching edge incident to the root is called the stem of the blossom.
That is, a blossom consists of an alternating path between two vertices, starting and ending with a matching edge, together with a non-matching edge from the root to each of these two vertices. See Figure 14 for an illustration; as another example, in Figure 1(b), the two triangles are blossoms with a common stem. The stem of a blossom is not part of the cycle. Blossoms are central to combinatorial matching algorithms, e.g., [Edm65, GKT01], as we have previously mentioned.
{defi}
When is in some blossom with stem , we write .
This is the graph-theoretical counterpart of the dependency relation, as is shown by the following two propositions.
Proposition 46**.**
Let be a MLL+Mix proof net and be its graphification. Let be links in with corresponding matching edges . Then if and only if is a dependency of or a predecessor of , i.e., .
Both the cases and occur in the proof net of Figure 2, see respectively Figure 15 and Figure 16.
Proof 6.3**.**
If , then by construction there exists a blossom of length 3 containing with stem . If , then for the same reason as Proposition 33, we can get, from the switching path between the predecessors of visiting , an alternating path for starting and ending with the edges corresponding to those predecessors and crossing the edge corresponding to . By adding two non-matching edges to the same endpoint of the matching edge for , we get a blossom with stem .
Conversely, let be a link, the corresponding matching edge, and be a blossom with stem . Let us first note that if contains a non-matching edge joining with the matching edge corresponding to a successor of , then by replacing this non-matching edge with its twin incident to the other endpoint of , we get an alternating cycle; this is impossible because we have assumed to be a MLL+Mix proof net. Therefore, the first and last matching edges in are both precedessors of . If they are the same — that is, if has length 3 and contains a single matching edge — then this edge corresponds to a predecessor of . Otherwise, gives an alternating path between two distinct predecessors of ; necessarily is a -link (otherwise, there would be an alternating cycle), and all links corresponding to matching edges in are dependencies of .
Proposition 47**.**
Let be a graph, be a perfect matching of and be the proofification of . Let with corresponding -links . Then if and only if is a dependency of some -link from which is reachable (by a directed path).
Proof 6.4**.**
Let be a blossom with stem , whose two non-matching edges incident to are and . translates into a switching path between and in . Now, and are also leaves of a binary tree of -links whose root has the single successor ; by taking to be the lowest common ancestor of and in this tree, is reachable from , and every link in the path between and depends on . Conversely, any switching path between the two predecessors of a -link corresponds to a blossom for in .
Remark 48**.**
In Proposition 46, the “if” direction holds even for incorrect proof structures; in Proposition 47, note that no uniqueness property is required of the perfect matching.
Thus, we see that Bellin’s theorem is equivalent to the following theorem where is the transitive closure of .
Theorem 49**.**
Let be a graph with a unique perfect matching , and . The edge occurs before in all sequentializations for if and only if .
For instance, in Figure 1(b), the middle edge is the only bridge, and it is the stem of the two triangular blossoms which contain the other matching edges.
This graph-theoretic version is somewhat simpler to state than the original theorem: one takes the transitive closure of a single relation, instead of a union of two unrelated relations. And as far as we know, this is a new result in graph theory. We have included it in the companion paper [Ngu19], aimed at a broader audience of graph theorists, where we present a direct combinatorial proof with no mention of proof nets.
7. A reconstruction of RB-graphs via forbidden transitions
In this section, we come back to Retoré’s RB-graphs (Section 3.1) and factorize Retoré’s correctness criterion (Corollary 19) as a composition of:
- •
the Danos–Regnier correctness graph (Definition 2.3);
- •
a reduction to the UniquenessPM problem for a general notion of constrained cycles, namely closed trails avoiding forbidden transitions.
We introduced the latter in [Ngu19], but here the logical order of exposition is the reverse of the order of discovery: it was by attempting to understand Retoré’s RB-graphs that we found this reduction.
{defiC}
[[Sze03]] Let be a graph. A transition graph for a vertex is a graph whose vertices are the edges incident to : . A transition system on is a family of transition graphs.
A graph equipped with a transition system is called a graph with forbidden transitions.
A path is said to be compatible if for , and are adjacent in . For a cycle, we also require and to be adjacent in . (So the edges of actually specify the allowed transitions.)
Remark 50**.**
By “transition” we mean a pair of consecutive edges in a path/cycle. A transition system could equivalently be specified by literally giving the set of forbiden transitions, i.e., of edge pairs that cannot occur consecutively. This generalizes paired graphs (Definition 2.3) by dropping the disjointness requirement on pairs: switching graphs do not make sense anymore, but switching cycles (generalized to compatible cycles) still do.
Finding a compatible path is proved to be -complete in [Sze03]. As in the case of alternating paths in matchings (cf. Remark 24), the difficulty is in the interaction of a local constraint — any transition (pair of consecutive edges) must be allowed — and a global one, namely the fact there must be no repeated vertices. Indeed, recall from Section 2.1 that by definition, paths and cycles cannot repeat vertices twice. This is important to ensure that Berge’s lemma for alternating cycles (Lemma 5) holds. Following the terminology of [BJG09, §1.4], let us introduce a relaxation of this global condition. {defi} A trail (resp. closed trail) is a “path” (resp. “cycle”) in which we allow vertex repetitions, but edge repetitions are prohibited. Compatible trails and compatible closed trails in a graph with forbidden transitions are defined analogously to the above definition.
Remark 51**.**
For perfect matchings, an alternating cycle is the same as an alternating closed trail: repeating a vertex would imply repeating its unique matching edge. However, this is not true for general graphs with forbidden transitions: see Figure 17(a) for an example with compatible closed trails, but no compatible cycles.
The relevance of this notion is that for compatible trails, we showed the problem to be tractable [Ngu19] by using an “edge-colored line graph” construction. This construction has other uses but, in the case of compatible (closed) trails, it can be replaced by a version using perfect matchings that we define below — which in fact is the edge-colored line graph composed with a previously known reduction, see [Ngu19] for details. All this arguably goes to show that the objects which we manipulate are not contrived to fit with RB-graphs: they arise naturally from other considerations.
{defi}
Let be a graph and be a transition system on . The PM-line graph is defined as the graph:
- •
with vertex set ;
- •
with edge set , where
[TABLE]
- •
equipped with the perfect matching .
{propC}
[[Ngu19]] Closed trails of length in compatible with correspond bijectively to alternating cycles of length in .
An example is given by Figure 17(b): it contains two alternating cycles corresponding to the compatible closed trails of Figure 17(a).
Finally, we relate the PM-line graph construction to RB-graphs.
Proposition 52**.**
Let be a proof structure with conclusions (Definition 3.1) and its correctness graph (adapting Definition 2.3 to handle conclusion vertices/edges). Let be the transition system corresponding to the paired edges of .
Then is exactly the RB-graph for .
Proof 7.1**.**
Immediate by comparing Figure 7 with Definition 7.
The moral of the story is that the actual function of RB-graphs is to detect compatible closed trails. It turns out that for the correctness graphs of proof structures, this is the same as switching cycles, but as Figure 17(a) shows this is not true in general. The particularity of correctness graphs that entails this equivalence is that if a vertex is incident to two edges that are paired together, then it is incident to at most one unpaired edge (which corresponds to the outgoing edge of a link in the proof structure).
8. Conclusion
We have presented a correspondence between proof nets and perfect matchings, and demonstrated its usefulness through several applications of graph theory to linear logic: our results give the best known complexity for MLL+Mix correctness and sequentialization, by taking advantage of sophisticated graph algorithms. Beyond that, we have also contextualized this correctness problem as a member of a family of equivalent constrained cycle-finding problems in graphs, and used this to shed some light on earlier work on proof nets. These connections also have some benefits for graph theory, as the rephrasing of Bellin’s theorem and our discovery of the “PM-line graph” construction illustrate; this is what we attempt to demonstrate in the companion paper [Ngu19]. In general, we hope to see fruitful interactions arise between those two domains.
8.1. Further hardness results: pomset logic and visible acyclicity
To take advantage of this connection, one can peruse the literature on graphs to look for results with potential applications to proof nets. For instance, there is a -hardness result for a certain constrained path-finding problem on arc-colored directed graphs [GLMM13]. From this, we deduced in [Ngu19] that finding an alternating circuit — for a certain notion of perfect matching in a directed graph — is -hard. In other words, the absence of alternating circuits — one possible generalization of the UniquenessPM problem to directed graphs (for which Berge’s lemma doesn’t hold) — is -hard.
It turns out that circuits (i.e., directed cycles) also appear in the study of proof nets:
- •
Retoré’s pomset logic [Ret97] is a conservative extension of MLL+Mix with a self-dual non-commutative connective . The extension of the Danos–Regnier correctness criterion to pomset logic proof nets allows both premises of a -link to be traversed consecutively by a “switching cycle”, but only if the left premise is taken before the right one: the direction of the cycle therefore becomes relevant. In [Ngu20], we show that the correctness problem for pomset logic is -complete181818This contradicts (assuming that ) the polynomial time claim of [Ret97, Proposition 5], whose purported proof relies on a “standard breadth search algorithm” to find an alternating path for a perfect matching in a digraph. Remark 24 explains the subtle issue with this argument. A similar mistake appears in Hughes’s paper on combinatorial proofs: he claims that a “simple breadth-first search” [Hug06, Footnote 3] can determine, in linear time, some condition that amounts to the correctness of a MLL+Mix proof structure. In that case, the mistake is harmless, thanks to our Theorem 22., by adapting our proofification construction to take directed graphs as input. A direct proof of the -hardness of the directed alternating cycle problem is also provided in [Ngu20].
- •
The visible acyclicity condition was first introduced by Pagani for as a relaxation of the usual correctness criterion for MELL+Mix (by MELL we mean Multiplicative-Exponential Linear Logic) proof structures [Pag06]; it was later extended to differential interaction nets [Pag12]. It is defined as the absence of certain “visible cycles”, which become directed when exponential boxes are present. One can show that visible acyclicity is -hard (a result that we first announced at the DICE 2018 workshop) by imitation of the proof for pomset logic. However, we do not know whether it is in .
Interestingly, both pomset logic correctness and visible acyclicity were motivated by semantic considerations: they are necessary and sufficient conditions for the soundness of the denotation of proof structures in coherence spaces.
8.2. Open questions
Now that we have shed a new light on MLL+Mix proof nets, it would be interesting to revisit the well-studied theory of MLL proof nets. Therefore, we would like to find the right graph-theoretical counterpart to the connectedness condition in the Danos–Regnier criterion for MLL. The goal would be to extract the combinatorial essence of the statics of MLL proof structures, forgetting about logic; without having to handle the dynamics (cut-elimination), one could hope to distill some simpler combinatorial object, in the same way that perfect matchings are simpler than MLL+Mix proof structures.
But unique perfect matchings do not seem to be the right setting to do so; and one year after the conference version of this paper, despite the connections described here with, e.g., forbidden transitions, we still have not found a natural graph-theoretic decision problem equivalent to correctness for MLL without Mix. (As far as naturality is concerned, perfect matchings set a high bar, given their importance in discrete mathematics!)
Here by “equivalent” we mean, in particular, through low-complexity reductions (hopefully computable both in linear time and in ). Though the -completeness of MLL correctness means that it is equivalent to directed reachability, Mogbil and Naurois’s correctness criterion [JdNM11] uses a subroutine for connectivity in undirected forests, a -complete problem, in its reduction. A related question is to understand why all known linear-time correctness criteria for MLL — including the one presented here — rely on the same sophisticated data structure, as mentioned in Remark 24. (Namely, “incremental tree set union”: a restricted union-find data structure with amortized operations.)
In the same vein, the present paper does not treat at all — except for the short Remark 25 — the contractibility criterion introduced by Danos [Dan90], despite its importance in recent developments in proof nets (e.g., [HH16, BH18]). It is also part of the divide between MLL and MLL+Mix proof nets: contractibility, reformulated as graph parsing, underlies a linear-time sequentialization algorithm for MLL [Gue11], while no such algorithm is known for MLL+Mix. Aside from the obvious question of sequentalizing MLL+Mix nets in linear time, looking for a mainstream graph-theoretic account of contractibility is also of interest.
Another question191919This was suggested to the author by Gianluigi Bellin. would be to give a graph-theoretic account of the notion of empire in proof nets, similarly to our treatment of kingdoms in Section 6. Empires were used in Girard’s original proof of the first correctness criterion (the so-called “long trip” criterion) [Gir87]; while the kingdom of a link in a MLL+Mix proof net is the minimum normal subnet having as a conclusion, the empire of is, dually, the maximum such subnet. To achieve this goal, the obvious place to start would be the characterization of empires in proof nets given in [Bel97, Lemma 3] using certain paths (“chains”) in proof nets.
8.3. Other variants of proof nets through the lens of graph theory
We gather here miscellaneous ideas on extending the graph-theoretic viewpoint beyond MLL+Mix, that we have not had the time to pursue further. Any assertion that we make below should therefore be seen as purely speculative.
8.3.1. Jumps and quantifiers
We have argued that our graphification construction (Section 5.1) faithfully reflects the intrinsic order of logical rules in a proof net. It should therefore be possible to incorporate jumps, which are a way to prescribe sequentiality constraints on proof nets. By doing so, one would extend our results to MLL+Mix with (first-order or second-order) quantifiers : the technology of jumps was first introduced to handle proof nets with quantifiers [Gir91]. This treatment should also accomodate more general uses of jumps such as [DGF08].
8.3.2. Essential nets
Larmarche’s essential nets for intuitionistic MLL admit a correctness criterion formulated using a standard notion on graphs, namely the domination between vertices in a control flow graph. This is at the heart of Murawski and Ong’s linear time algorithm for MLL correctness [MO06]. So it would be interesting, in view of the aforementioned goal of understanding why the “incremental tree set union” data structure of [GT85] seems necessary to decide MLL correctness in linear time (it occurs in the computation of a “dominator tree” in [MO06]), to compare this domination criterion with the criteria based on unique perfect matchings.
A first remark is that, via a classical correspondence between directed graphs and graphs equipped with bipartite perfect matchings, the essential net obtained from a MLL proof structure by the reduction of [MO06] (the so-called “trip translation”) can be identified with a maximal bipartite subgraph of its RB-graph. The missing piece is to understand whether this is an instance of a purely graph-theoretic reduction from the domination condition to the UniquenessPM problem.
Acknowledgments
This work started as a side project during an internship in the Operations Research team at the Laboratoire d’Informatique de Paris 6, supervised by Christoph Dürr, who taught the author the expressive power of perfect matchings; this paper would not exist without him. Thanks also to Kenji Maillard, Michele Pagani, Marc Bagnol, Antoine Amarilli, Alexis Saurin, Stefano Guerrini and Virgile Mogbil for discussions, references and encouragements, and to Thomas Seiller for his writing advice on the initial conference version.
We are also grateful to the anonymous reviewers for their useful and detailed feedback on previous versions of this paper.
Appendix A Proof of Lemma 42
We rely on a version of Berge’s lemma (Lemma 5) for paths:
Lemma 53** (Berge [Ber57]).**
Let be a graph and be a matching of . If is an augmenting path for — i.e., an alternating path whose endpoints are unmatched — then is a matching and . (Thus, adding “augments” , hence the name.) Conversely, if is a matching with , then is a vertex-disjoint union of:
- •
* augmenting paths for ;*
- •
some (possibly zero) cycles which are alternating for both and .
Let be the unmatched vertices. If there is an augmenting path for in , its endpoints must be and , and this is equivalent to the existence of a perfect matching in . Let , and .
Suppose admits a perfect matching . Then the symmetric difference consists of two vertex-disjoint alternating paths for whose endpoints are , by Berge’s lemma for paths; indeed, our assumptions prevent the existence of alternating cycles for , and therefore for as well.
We claim that these paths either go from to and to , or from to and to . Otherwise, there would be an alternating path from to for in , and together with , this would give us an alternating cycle for in .
In both cases, let us join the two paths together by adding . We get a path starting with , ending with , crossing and alternating for in . Conversely, from such a path, one can get a perfect matching in .
It is clear that the reduction is in . For the linear time complexity, we exploit the fact that we already have at our disposal a matching of which leaves only 4 vertices unmatched. A perfect matching can then be found as follows: find a first augmenting path for in linear time, and then a second one for , both steps being done in linear time (using a similar (but simpler) algorithm than for UniquenessPM, see [GT85] and [Tar83, Section 9.4]). If both augmenting paths exist, then is a perfect matching, and conversely, if admits a perfect matching, then the procedure succeeds in finding some and . (This does not mean that and are the same as the paths in the previous part of the proof, since they may not be vertex-disjoint.)
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[Bar 92] David A. Mix Barrington. Quasipolynomial size circuit classes. In [1992] Proceedings of the Seventh Annual Structure in Complexity Theory Conference , pages 86–93, June 1992.
- 2[BDS 15] Marc Bagnol, Amina Doumane, and Alexis Saurin. On the dependencies of logical rules. In FOSSACS, 18th International Conference on Foundations of Software Science and Computation Structures , London, United Kingdom, April 2015.
- 3[Bel 97] Gianluigi Bellin. Subnets of proof-nets in multiplicative linear logic with MIX. Mathematical Structures in Computer Science , 7(6):663–669, December 1997.
- 4[Ber 57] Claude Berge. Two Theorems in Graph Theory. Proceedings of the National Academy of Sciences , 43(9):842–844, September 1957.
- 5[BH 18] Gianluigi Bellin and Willem B. Heijltjes. Proof Nets for Bi-Intuitionistic Linear Logic. In Hélène Kirchner, editor, 3rd International Conference on Formal Structures for Computation and Deduction (FSCD 2018) , volume 108 of Leibniz International Proceedings in Informatics (LIP Ics) , pages 10:1–10:18, Dagstuhl, Germany, 2018. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik.
- 6[BJG 09] Jørgen Bang-Jensen and Gregory Gutin. Digraphs. Theory, algorithms and applications. 2nd ed. London: Springer, 2nd ed. edition, 2009.
- 7[Bvd W 95] Gianluigi Bellin and Jacques van de Wiele. Subnets of Proof-nets in MLL-. In Proceedings of the Workshop on Advances in Linear Logic , pages 249–270, New York, NY, USA, 1995. Cambridge University Press.
- 8[CSV 84] Ashok K. Chandra, Larry Stockmeyer, and Uzi Vishkin. Constant depth reducibility. SIAM Journal on Computing , 13(2):423–439, May 1984.
