Lectures onType Theory
Chapter 40
Chapter 40Optional

Proof Nets, Correctness Criteria, and Cut Elimination

Prerequisites. Direct starred prerequisites: none. No later core chapter depends on this route.

A focused derivation suppresses many bad search schedules, but it is still a tree. If two rules act on disjoint formula occurrences, putting the first rule above the second or the second above the first produces two derivation trees. The resource flow has not changed. We want an object in which that irrelevant order is absent.

A graph records the flow directly. It also creates a new problem. Connecting dual atoms and logical links is mechanical; most such graphs do not come from proofs.

“Classical one-sided” is an interface choice, not a missing antecedent. A two-sided classical sequent ΓΔ is represented by Γ,Δ,Γ=A1,,Amwhen Γ=A1,,Am. Involutive negation therefore moves a formula across the turnstile and turns it into its dual. Classical logic permits a multiset of conclusions and treats the two sides symmetrically. An intuitionistic sequent has one distinguished conclusion and no primitive involutive negation, so merely moving its hypotheses to the right would change the logic rather than change notation.

The proof tree remembers too much

Fix a countably infinite set of propositional names p,q,r,. A literal is a name p or its formal dual p. Formulas and linear negation are generated by A,B::=ppABAB, (p)=p,(AB)=AB,(AB)=AB. Thus A⟂⟂=A. The order in a binary formula remains visible, although the surrounding sequent is a multiset. The superscript () always denotes linear negation. It is not a falsehood formula or the multiplicative unit often printed with a similar bottom glyph; neither unit belongs to this chapter. Par is the multiplicative disjunction dual to tensor. In classical linear logic one may define AB as AB; this chapter keeps par primitive so that duality is visible in every rule. Operationally, AB is the linear function space from A to B: par packages the two conclusions that a surrounding linear interaction may connect. This is an intuition for the connective, not an additional rule.

Definition 40.1 — The calculus MLL^-

The judgment is Γ, where Γ is a finite multiset of formulas. Both Γ and Δ always denote such multisets here, never the ordered context words of chapter 38 and never program-variable contexts. The rules are Xp,pAxΓ,A,BΓ,ABPar Γ,AB,ΔΓ,AB,ΔTensorΓ,AA,ΔΓ,ΔCut. The axiom is atomic. The cut-free calculus consists of the first three rules.

The split in Tensor has the same resource-partition shape as the context partition of chapter 18: both distribute linear resources between two simultaneous premises. Here, however, resources are formula occurrences in a classical one-sided proof rather than variables in a term-typing judgment. The two premises of Tensor have disjoint derivation occurrences. By contrast, Par combines two formulas already present in one premise.

Lemma 40.2 — Expanded identity

For every MLL formula A, the sequent A,A has a cut-free derivation.

Proof of Lemma 40.2 — Expanded identity

Proof. Induct on A. The literal cases are Ax, up to the implicit exchange of the multiset. Suppose first that A=BC. The induction hypotheses end in B,B and C,C. Apply Tensor to the occurrences B,C, then Par to their two duals: B,BC,CBC,B,CTensorBC,BCPar. If A=BC, apply the same two induction hypotheses, first Tensor to B,C, then Par to B,C. The conclusion is BC,BC, as required. ◻

Two axioms followed by tensor and par derive pq,pq. The complete derivation is Xp,pAxXq,qAxp,pq,qTensorpq,pqPar.

Let T=((pq)r)s. Repeated use of Tensor on four axioms gives a derivation Π of p,q,r,s,T. There are then two derivations of pq,rs,T: Πpq,r,s,TParpq,rs,TPar and the tree obtained by reversing the two displayed Par rules. Both trees contain the same four axiom occurrences, the same three tensor occurrences forming T, and the same two par occurrences; they differ only in which disjoint par rule is written first. A proof structure is the graph that retains formula-tree incidence, axiom matchings, and external conclusions while forgetting rule height. It has no edge ordering these two par vertices, so both trees translate to the same proof structure.

Here is that common proof structure. Solid edges are formula-tree edges and dashed edges are the four axiom matchings; the two par roots and T are the external conclusions. Mathematical diagramDiagram

Exercise 40.1

★★☆ Write the second derivation in full. Mark the two principal formula occurrences of each Par rule and verify that neither is a subformula of the other. Then erase rule heights and pair each literal with the dual literal from the same axiom. Check that the two erased pictures coincide.

Proof structures and switchings

Erasing rule height must not erase formula occurrence. If the same atom name appears twice, its two occurrences remain distinct vertices.

Definition 40.3 — Cut-free proof structure

A cut-free proof structure N consists of:

  1. the disjoint syntax forest of a nonempty sequent A1,,An; and

  2. a perfect matching of its literal leaves, each matching edge joining an occurrence of p to an occurrence of p for the same name p.

In that forest, every formula occurrence is a vertex. A tensor or par occurrence has two edges to the vertices of its immediate subformulas; a literal has no formula-tree child. Different occurrences carrying the same printed formula remain different vertices. The extra matching edges are the axiom links. Formula roots point toward conclusions and leaves away from them. Thus an ancestor of A lies on the unique formula-tree path from A to its conclusion root, while a descendant lies in the formula tree rooted at A. The words above and below mean ancestor and descendant, respectively, independently of how a figure is rotated on the page. An internal formula vertex labeled is a tensor link; one labeled is a par link. The roots A1,,An are the conclusions. A proof structure is only a well-formed candidate; it is not yet called a proof net.

The two-axiom derivation of pq,pq displayed above translates to the following structure. Solid edges are formula-tree edges; dashed edges are axiom links. Mathematical diagramDiagram The drawing is not part of the definition. Moving vertices on the page does not change the incidence graph.

Definition 40.4 — Translation

The cut-free translation N(D) is defined by induction on a derivation D. Rule Ax creates two literal vertices and their axiom edge. Rule Par places a par vertex above the two selected conclusion roots. Rule Tensor takes the disjoint union of its premise structures and places a tensor vertex above the two selected conclusion roots. All unselected conclusions remain conclusions.

This definition explains why the two Par schedules have the same graph: each adds the same vertex and the same two incidence edges, and disjoint union has no chronology.

An arbitrary well-formed structure can still lie. The tempting local test accepts whenever every link has its prescribed arity and every axiom joins dual literals. To expose its failure, first retain all axiom and tensor edges and choose one premise edge at every par link. The resulting undirected graph is a correction graph; the choice of one premise edge at every par link is a switching. All formula vertices remain, including an unchosen par-premise vertex.

Example 40.5 — A cyclic switching

Take conclusions pq,pq and match equal names. Every local arity and duality check succeeds. There is no par link, so there is only one switching, and its correction graph contains the cycle pqqpp. Thus the local test accepts a cyclic global graph.

Example 40.6 — A disconnected switching

Take conclusions pp,qq and match equal names. Again every local check succeeds. Choose the left premise at each par link. One component contains the p-axiom and its par root; the other contains the q-axiom and its par root. This correction graph is disconnected.

The failed local test motivates the global repair.

Definition 40.7 — Danos–Regnier correctness

Let N be a cut-free proof structure. For every switching σ, let Gσ(N) be its correction graph as constructed above. The Danos–Regnier correctness criterion requires every Gσ(N) to be a tree, that is, connected and acyclic. A proof structure satisfying this criterion is a proof net.

This is the connected–acyclic criterion of Danos and Regnier for unit-free multiplicatives [DR89]. The local development below proves its soundness and sequentialization consequences rather than importing them from that paper.

The criterion rejects both preceding structures. In the running structure there is one par link and hence two switchings. If the left premise is retained, the unique path through all six vertices is qqpp; if the right premise is retained, it is ppqq. Both are trees. This is a proof net.

The left switching is the following correction graph; the omitted par-premise edge is precisely the switching choice. Mathematical diagramDiagram

The two failures have different global shapes: Mathematical diagramDiagram The left correction graph closes a loop. The right switching has two tree components; changing a par choice may move a leaf but cannot justify ignoring the universal quantifier over switchings.

Notice the quantifier in definition 40.7: one bad switching rejects a structure. One good switching proves nothing about the others.

Exercise 40.2

★★☆ Perform three complete checks.

  1. List both switchings of pq,pq, and give the unique path between its two conclusion roots in each.

  2. Count vertices and edges in example 40.5, then exhibit its cycle.

  3. List all four switchings in example 40.6; for each, list the two connected components.

Exercise 40.3

★★☆ Refute the following tempting test: “accept a structure when every link has the prescribed local arity and every axiom joins dual literals.” Give one counterexample failing only acyclicity and one failing connectedness. Explain why inspecting a fixed-radius neighborhood of a link cannot see the displayed global failure.

Proofs always pass the switching test

Soundness is a graph calculation that uses the asymmetric switching rules for tensor and par.

Lemma 40.8 — Rule preservation

The translation of Ax is correct. If the premise translations of a cut-free rule are correct, so is its conclusion translation.

Proof of Lemma 40.8 — Rule preservation

Proof. An axiom structure is one edge joining two vertices, hence a tree.

For Par, fix a switching of the conclusion. Its restriction to the premise is a switching of the premise net, hence a tree. The new par vertex is attached to that tree by exactly the one selected edge. Attaching one new leaf preserves connectedness and acyclicity.

For Tensor, fix switchings of the two premise nets. Their correction graphs are disjoint trees. The new tensor vertex is joined by one edge to a conclusion in each tree. The two edges and new vertex connect the trees, and they cannot create a cycle because there was no path between the disjoint premises. The result is again a tree. ◻

Theorem 40.9 — Soundness of the switching criterion

If Π is a cut-free MLL derivation, then N(Π) is a proof net with the same conclusion sequent.

Proof of Theorem 40.9 — Soundness of the switching criterion

Proof. Induct on Π. The three possible last rules are precisely the three cases of lemma 40.8. ◻

Exercise 40.4

★☆☆ Modify the switching definition so that a par link retains both premise edges. Apply the modified test to the translated derivation of pq,pq. Locate the cycle and the exact sentence in the Par case of lemma 40.8 that becomes false.

Recovering the missing proof tree

Soundness says that a proof produces a correct graph. Sequentialization says that correctness has not admitted anything else. Induction on the number of links handles a conclusion AB: delete its terminal par link, apply the induction hypothesis to the smaller net with conclusions A,B, and reapply Par. Deleting the terminal link preserves the switching-tree condition because that link is a leaf in every switching. The obstruction occurs when no conclusion is a par. Literal conclusions may still remain, but if the net is larger than one axiom there must also be a tensor conclusion. We must find one whose deletion separates the graph exactly into the two premises required by Tensor.

The splitting tensor is obtained by recording which part of a net can itself form a correct subnet.

Not every conclusion tensor splits. Start with the two p- and q-axioms, introduce T1=pq, and then introduce P=pq. Combine this proof with the r-axiom by a final tensor on P and r: T1, r, T2,T2=Pr. This is a proof net because it is the translation of that sequence of sequent rules. Deleting the root of T1, however, leaves the path ppPqq through the internal par link, so its two premises do not separate in the full structure. The later tensor T2 is splitting. The selection argument therefore needs an order that prefers T2 to the earlier T1.

Definition 40.10 — Subnet, door, kingdom, and empire

A substructure of a proof net N is a downward-closed syntax subforest: whenever it contains a formula occurrence, it contains that occurrence’s entire formula tree below it. It is also closed under axiom matching, so it never contains exactly one endpoint of an axiom link. A subnet is a nonempty substructure which is itself a proof net. Its conclusion occurrences are its doors.

For a formula occurrence A in N, let k(A) be the least subnet having A as a door and e(A) the greatest such subnet. They are called the kingdom and empire of A. Write AB when A belongs to k(B).

In the running net, let T=pq and P=pq. The kingdom k(T) contains the two axiom links and the tensor root, but not the par root; its doors are T,p,q. Its empire is the whole running net, whose doors are T,P. The kingdom k(P) is already the whole net: axiom closure forces in p,q, and connectedness then forces the tensor link. Thus “door” means a conclusion of the selected subnet, not necessarily a conclusion of the ambient net. This small example is the vocabulary used in the splitting proof below.

For completeness, the six occurrences in that net have

X k(X) e(X)
p, p the p-axiom the p-axiom, k(T), respectively
q, q the q-axiom the q-axiom, k(T), respectively
T both axioms and the tensor root the whole net
P the whole net the whole net

The two entries in each literal row follow the displayed left-to-right order: for example e(p) is only its axiom, while e(p)=k(T).

Mathematical diagramDiagram

Kingdom and empire containment in the running two-axiom net.

The least and greatest objects in this definition require proof.

Lemma 40.11 — Subnet algebra

Let S,T be subnets of one proof net.

  1. If ST is nonempty, then both ST and ST are subnets.

  2. Every formula occurrence A is a door of some subnet.

  3. Consequently k(A) and e(A) exist.

Proof of Lemma 40.11 — Subnet algebra

Proof. Unions and intersections of substructures preserve downward formula closure and axiom closure. Every switching of every substructure is acyclic, because a cycle would also be a cycle in an extension of that switching to N. Thus only connectedness needs attention.

For the first clause, a switching of ST restricts to trees on S and T. Their nonempty intersection connects those two trees. For two vertices in ST, the path between them inside S and the path inside T must coincide: two different paths would form a cycle in ST. That common path lies in the intersection, so the intersection is connected as well.

For the second clause, fix A. Given a switching σ, if the formula-tree edge immediately above A occurs in Gσ(N), delete it and let Cσ(A) be the component containing A. If that edge is absent or A is already a conclusion, put Cσ(A)=Gσ(N). Intersect these components over every switching, retaining the axiom matching and restoring a formula-tree edge whenever both endpoints and its link remain. Call the resulting substructure SA.

First, A is a door of SA. Suppose instead that an ancestor B of A survived. Choose a switching σ^ which, at every par on the formula-tree path from A to B, retains the edge on that path. The edge immediately above A is therefore present and is deleted in Cσ^(A). Since B nevertheless lies in that component, there is an alternative path from A to B avoiding the deleted edge. Compare it with the formula-tree path in the original correction graph. At a first re-entry into that tree path, a par cannot supply the off-path edge, because σ^ deleted it. Thus the re-entry uses the sibling edge of an intervening tensor. Choose the uppermost such tensor. The alternative path below it and the retained formula-tree segment give two distinct paths between the tensor’s path child and A. This contradicts the unique-path property of the tree Gσ^(N).

Mathematical diagramDiagram

The forbidden re-entry in the subnet-existence argument. An alternative path avoiding the deleted edge can re-enter the retained tree only through a tensor sibling; together with the solid segment it would create two paths in one correction tree.

On the running two-axiom net this check is completely concrete. Put A=p and let its ancestor B be the tensor root T=pq. Choose the switching that retains the p-edge at the par root and delete the edge pT. One component is the path ppP, while the other contains Tqq; there is no alternative path back to T. Choosing the other par premise only shortens the first component to pp. The schematic figure describes the only hypothetical way a larger net could reconnect those components: its first re-entry would have to use the sibling of an intervening tensor, and the retained tree segment would then give the forbidden second path. Thus the abstract “uppermost tensor” is a contradiction witness, not an unlabeled vertex hidden in this small example.

The intersection also satisfies the two structural closure conditions in definition 40.10. Axiom closure is immediate: an axiom edge occurs in every switching and is never the deleted formula-tree edge, so its endpoints always lie in the same component. For downward closure, fix a surviving formula vertex X. Both child edges of a tensor occur in every switching, so both tensor children survive. At a par, compare two switchings that agree away from X and select opposite children there. If one child left the A-component, the unique path from that child to X would cross the deleted edge. Flipping the par choice makes the other child leave instead. The two paths from X to the deleted edge then first diverge along the two par branches and later meet. Choosing the uppermost meeting point gives two distinct paths between that point and X in one of the two correction trees, a contradiction. Hence both par children survive. Induction down the formula tree proves downward closure. Restoring a formula-tree edge when its two endpoints survive therefore changes only the presentation of the induced subforest; it adds no vertex.

It remains to check connectedness rather than assume it from the intersection. Let τ be a switching of SA, and extend its par choices arbitrarily to a switching τ~ of N. Axiom closure and the definition of the restored formula edges make Gτ(SA) the restriction of Cτ~(A) to SA. For any XSA, the unique path from A to X in Cτ~(A) cannot leave and re-enter SA: at the first missing vertex, choose a switching whose A-component omitted it; the path in that component and the retained segment of the τ~-path would, by the same uppermost-tensor argument, give two paths in one correction tree. Hence the unique path lies in SA. Thus every Gτ(SA) is connected. It is acyclic as a subgraph of a correction tree, so SA is a subnet with door A.

The family of subnets with door A is finite and nonempty. Repeated nonempty intersection gives its least member, while repeated union gives its greatest member, by the first clause. These are k(A) and e(A). ◻

Lemma 40.12 characterizes crossing an empire boundary by membership in the kingdom of the crossed conclusion.

Lemma 40.12 — Crossing an empire boundary

Let A be an immediate subformula of A, and let B be an immediate subformula of a distinct occurrence B. If Be(A), then Be(A)Ak(B).

Proof of Lemma 40.12 — Crossing an empire boundary

Proof. The occurrence B belongs to both e(A) and k(B). Subnet algebra says that their intersection and union are subnets. If Be(A) and Ak(B), their union is a subnet with door A strictly larger than e(A), a contradiction. Conversely, if Be(A) and Ak(B), their intersection is a subnet with door B strictly smaller than k(B), again a contradiction. ◻

Lemma 40.13 — Kingdom of a tensor

For a tensor occurrence A1A2, k(A1A2)=k(A1)k(A2){A1A2}, where the last summand includes the tensor root and its two premise edges.

Proof of Lemma 40.13 — Kingdom of a tensor

Proof. The two premise kingdoms are disjoint. If they intersected, subnet algebra would make their union a subnet; a correction path inside that union would join A1 to A2, and adding the two tensor edges would form a cycle. Their disjoint union, joined through the tensor root, is therefore a proof net with door A1A2. Minimality gives k(A1A2)k(A1)k(A2){A1A2}. Conversely, intersect k(Ai) with k(A1A2). The intersection is nonempty at Ai, is a subnet by lemma 40.11, and still has Ai as a door. Minimality of k(Ai) forces k(Ai)k(A1A2) for i=1,2. The tensor root and its edges also belong to its kingdom. This proves the reverse inclusion. ◻

Lemma 40.14 — Kingdom nesting

If Ak(B), then k(A)k(B).

Proof of Lemma 40.14 — Kingdom nesting

Proof. The intersection k(A)k(B) is nonempty at A, so lemma 40.11 makes it a subnet. Occurrence A remains a door of the intersection. Minimality of k(A) gives k(A)=k(A)k(B), which is the required inclusion. ◻

Lemma 40.15 — Kingdom order

On nonliteral formula occurrences, is a partial order.

Proof of Lemma 40.15 — Kingdom order

Proof. Reflexivity follows because B is a door of k(B). Two applications of lemma 40.14 prove transitivity.

For antisymmetry, suppose distinct nonliteral A,B satisfy Ak(B) and Bk(A). Then the two minimal subnets coincide. Call the common subnet K. Both A and B are doors of K. If A=A1A2, delete the par root and promote A1,A2 to doors. In every switching of K, the par root was a leaf attached by the one selected premise edge, because A was a door. Deleting that leaf therefore leaves a tree. The resulting smaller subnet still has B as a door, contradicting minimality of k(B). If A=A1A2, lemma 40.13 says that its kingdom is the union of the kingdoms of its two premises together with the tensor root. Occurrence B therefore lies in, say, k(A1). Since B is nonliteral, one of its immediate subformulas B also lies in k(A1)e(A1). The mutual-containment assumption includes Ak(B). The boundary calculation of lemma 40.12, applied to A1 below A and B below B, now gives Be(A1). This contradicts Bk(A1)e(A1). Thus A=B. ◻

Lemma 40.16 — Splitting tensor

Let N be a cut-free proof net with at least two axiom links. If no conclusion has par at its root, then some conclusion tensor AB is splitting: deleting that tensor root and its two premise edges separates N into exactly two proof nets, one having conclusion A and the other having conclusion B. Every remaining conclusion, including every literal conclusion, belongs to exactly one of the two nets.

Proof of Lemma 40.16 — Splitting tensor

Proof. There is a tensor conclusion. Otherwise all conclusions would be literals, so the structure would be a disjoint union of axiom edges; connectedness and more than one axiom link are incompatible. Choose a tensor conclusion AB maximal among the nonliteral conclusions in the finite kingdom order of lemma 40.15. We show that N={AB}e(A)e(B), with the two empires disjoint.

The two empires cannot intersect. Otherwise their union would be a subnet containing a path from A to B; adding the two tensor edges would create a cycle in every switching. In particular, an ancestor chain starting in e(A) cannot reach the selected tensor through its B-premise.

By definition 40.10, every subnet having a conclusion D as door contains every descendant occurrence of D; in particular, if C is below D, then Ck(D). This is the only ancestor-to-kingdom implication used next.

Besides the selected edge AAB, suppose that e(A) had a formula-tree edge crossing its boundary. Choose the first such edge CC, with Ce(A) and Ce(A). Following ancestors from the nonliteral occurrence C reaches a nonliteral conclusion. It is not the selected tensor, because its selected edge was excluded, and it cannot be par by hypothesis; write it as DE. Downward closure gives Ck(DE). By lemma 40.12, ABk(C)k(DE), where the inclusion is lemma 40.14; this contradicts maximality. Thus no formula-tree edge escapes either empire except through the selected tensor root.

The coverage now follows from connectedness, not from the boundary statement alone. Fix a switching and suppose a vertex X lay outside e(A)e(B){AB}. A correction path from X to the selected tensor must enter that union for the first time. It cannot cross an axiom edge, because each empire is closed under axiom matching. It cannot cross a formula-tree edge, because the only boundary edges are the two edges from the selected tensor to A and B, and the selected tensor has no edge toward the outside. This contradicts connectedness. Hence the displayed union covers N, including all literal conclusions.

Therefore deleting the root leaves the two disjoint proof nets e(A) and e(B), as claimed. ◻

The splitting lemma partitions the net at the selected tensor into subnet conclusions Γ,A and B,Δ. Therefore Tensor is the last rule of the reconstructed proof: Mathematical diagramDiagram The dashed cut is a drawing aid, not a proof-net link. Literal side conclusions are carried in exactly one of Γ or Δ.

Theorem 40.17 — Sequentialization

A cut-free proof structure is Danos–Regnier correct if and only if it is the translation of a cut-free MLL derivation.

Proof of Theorem 40.17 — Sequentialization

Proof. If the structure is a translation, correctness follows from theorem 40.9. Conversely, suppose that the structure is correct and induct on the number of logical links. With none, connectedness forces a single axiom link, which is Ax.

If a conclusion has par root, delete that root. In every switching the root was a leaf, so its deletion leaves a tree. The smaller net sequentializes by the induction hypothesis; append Par.

Otherwise no conclusion has par root. By correctness, this branch has at least two axiom links: with only one axiom, any logical link would be a tensor joining its two literal branches and would create a cycle in the unique switching. By lemma 40.16, choose a splitting conclusion AB. Its deletion produces two smaller proof nets and distributes every literal side conclusion between them. Sequentialize them independently and append Tensor. The reconstructed derivation translates to the original occurrence graph at each step. ◻

Exercise 40.5

★★☆ Starting only from the proof net for pq,pq, run the proof of theorem 40.17 backward. Record the par deletion, the splitting tensor, the two axiom components, and the complete reconstructed derivation. Compare it with the derivation before definition 40.3.

Exercise 40.6

★★☆ Let T=((pq)r)s and use the proof structure with conclusions pq,rs,T, matching each leaf of T with the displayed dual leaf. After deleting the two conclusion par roots, identify the unique conclusion tensor, verify that it is splitting, list the two resulting conclusion multisets and reconstruct the last three tensor rules.

A checker and its exact cost

The definition already gives a small reference checker. Number the k par links and represent a switching by a bit vector in {0,1}k.

Definition 40.18 — Direct switching checker

For a cut-free proof structure, for every bit vector b{0,1}k, construct the correction graph selected by b. Run depth-first search from an arbitrary vertex while recording parent edges. Reject if an edge reaches an already visited vertex other than its parent, or if any vertex remains unvisited. Accept after all bit vectors have passed.

The parent-vertex test is sound because the unit-free structures of definition 40.3 have simple correction graphs: no two distinct edges join the same pair of occurrences. A generalized representation with parallel edges must record and compare parent edge identities instead.

Both rejection tests matter. Merely checking that a correction graph has |V|1 edges confuses a disconnected graph containing a cycle with a tree.

Proposition 40.19 — Correctness and complexity of the direct checker

For a cut-free proof structure N with n vertices and links and k par links, the direct checker accepts exactly the Danos–Regnier correct structures. With adjacency lists it uses O(n+k) space and O(2kn) time. On an accepted family for which every switching has Θ(n) edges, this implementation takes Θ(2kn) time.

Proof of Proposition 40.19 — Correctness and complexity of the direct checker

Proof. The bit vectors enumerate each switching exactly once. Depth-first search accepts a finite undirected graph exactly when it is connected and acyclic. This proves functional correctness. One adjacency representation and the search arrays are linear. There are 2k searches, each linear in the size of a correction graph. On an accepted input no search stops early, so the stated family realizes the lower bound for this implementation. ◻

The exponential cost belongs to this literal enumeration algorithm, not to proof-net correctness itself.

Theorem 40.20 — Linear correctness checking

For cut-free unit-free multiplicative proof structures without constants, represented nonredundantly on a random-access machine with word operations of the standard logarithmic size, Danos–Regnier correctness and a sequentialization can be computed in O(n) time, where n is the representation size.

Proof of Theorem 40.20 — Linear correctness checking

Proof. Guerrini’s sequential-unification algorithm proves this bound. Definitions 1–4 and Theorem 5, proceedings pp. 455–456, identify the structure and the Danos–Regnier/sequentialization problem. Section 5.5 and Theorem 15, proceedings p. 463, prove the linear bound for sequential unification, including the ordered special case of disjoint-set union used by the algorithm [Gue99]. The source explicitly excludes multiplicative constants; it notes that adding them changes the complexity boundary. We use the theorem only for the signature in definition 40.1. ◻

The sequential-unification data structure and its union–find invariant are not reproduced here. The theorem is available as a cited complexity boundary, but the locally implementable algorithm in this chapter is the direct switching checker of definition 40.18.

Checking a fixed cut-free structure is therefore linear-time. By contrast, deciding whether a unit-free MLL sequent has a proof net is NP-complete [LMSS92]. The latter problem must also choose an axiom matching; the number of possible matchings, not the Danos–Regnier test for one chosen structure, accounts for the complexity gap.

The executable companion may therefore have two modes: the direct mode of definition 40.18, whose traces expose individual switchings, and an optimized sequential-unification mode. Agreement on positive and negative corpora tests the implementation. It is not a proof of theorem 40.17 or theorem 40.20.

Exercise 40.7

★★☆ Trace the direct checker on the positive sequent pq,pq, the cyclic structure of example 40.5, and the disconnected structure of example 40.6. Match equal atom names in all three. First fix the par-link order and the depth-first vertex order. Report the first rejecting bit vector for each negative structure and whether cycle or disconnectedness caused rejection.

Cuts become local graph reductions

The graph presentation earns its keep when a cut is removed.

Definition 40.21 — Proof structures with cuts

A proof structure with cuts has the formula forest, atomic axiom matching, and external conclusions of definition 40.3, together with finitely many degree-two vertices cutA. Such a vertex has one edge to a conclusion occurrence A of one formula tree and one to a conclusion occurrence A of another formula tree; those two occurrences cease to be external conclusions. A switching chooses one premise edge at every par link as in definition 40.7 and retains both edges of every cut vertex. The structure is correct, and is called a proof net with cuts, when every resulting correction graph is a tree.

Thus a cut is always a vertex with two incident edges, never sometimes a vertex and sometimes a single edge.

The translation extends to a derivation ending in Cut: take the disjoint union of the two premise structures, add cutA and its two edges to the selected roots, and remove those roots from the external interface. The same tree calculation as for Tensor shows that this rule preserves correction-graph connectedness and acyclicity. Consequently every MLL derivation, including one with cuts, translates to a correct net with cut vertices. This is the cut case omitted from the cut-free translation in definition 40.4, theorem 40.9.

Definition 40.22 — Local cut reduction

There are two reductions.

  1. The multiplicative contraction Mult-Cut cuts AB against AB removes the tensor root, par root, and old cut, and introduces two cuts, between A,A and between B,B.

  2. The atomic splice Atomic-Cut applies when a cut lies on an alternating path xaxpcutppaxy. It removes the cut vertex and the two cut atoms and splices the path to the axiom edge xaxy. The dual orientation is the same rule. Correctness forbids the two cut atoms from being axiom-linked directly to each other, since the two cut edges and that axiom edge would form a cycle in every switching.

Reduction is closed under the surrounding net, and one such step is written NN; its reflexive-transitive closure is NN. There is no rule for a unit, box, additive choice, or exponential contraction because none is in the signature.

For a compound identity cut, the first step is therefore cut(pq,pq)cut(p,p),cut(q,q). The two atomic steps then splice the two axiom paths. Independent atomic cuts may be contracted in either order. The atomic operation itself is the following five-vertex contraction: Mathematical diagramDiagram Consequently the compound identity cut has the complete schedule N0=cut(pq,pq)MultCutN1={cut(p,p),cut(q,q)}AtomicCutN2={the spliced p-axiom path,cut(q,q)}AtomicCutN3={the two spliced axiom paths}, and N3 is cut free. Contracting the q-cut before the p-cut gives the same occurrence graph. Mathematical diagramDiagram The rewrite removes both logical roots and replaces one compound cut vertex by two smaller cut vertices. It does not reconnect any remote part of the net.

Lemma 40.23 — Correctness is preserved

If a correct MLL net with cuts reduces by one rule of definition 40.22, the reduct is correct.

Proof of Lemma 40.23 — Correctness is preserved

Proof. For an atomic step, every correction graph replaces one path by one edge. Path contraction preserves connectedness and acyclicity.

Consider a multiplicative step and fix a switching outside its redex. Delete the tensor root, the par root, the cut link, and all their incident edges; call the remaining forest R. Its four boundary vertices are A,B,A,B. Switching the old par to A gives a tree; therefore the components of R containing A,B,A must be pairwise distinct. Every component of R must contain one of those three vertices, since the old redex connects no other component. Switching instead to B shows that the components containing A,B,B are pairwise distinct. The only possible partition is therefore {A},{B},{A,B}, where braces name components, not necessarily singleton vertex sets. The reduct adds two cut vertices and their four incident edges. Suppressing each degree-two cut vertex leaves the two connections AA and BB; they join the three tree components without a cycle, so the result is a tree. The argument applies to every outside switching. ◻

Proof of Lemma 40.24 — Termination

Proof. Let |p|=|p|=0 and |AB|=|AB|=1+|A|+|B|. Order nets lexicographically by (c a cut|Ac|,#{cc is an atomic cut}), where Ac is either side of cut c. A multiplicative step decreases the first coordinate by one; it may increase the second. An atomic redex contributes zero to the first sum, so its contraction leaves that sum unchanged and decreases the second coordinate by one. Hence every step decreases this pair lexicographically. ◻

Corollary 40.25 — Cut-step bound

If the initial net has c cut vertices and m=d a cut|Ad|, then every complete reduction has at most c+2m steps.

Proof of Corollary 40.25 — Cut-step bound

Proof. Each multiplicative step lowers the connective-size sum by exactly one, so there are at most m such steps. It replaces one cut by two and hence increases the cut count by one. After those steps, at most c+m atomic cuts remain, each removed in one step. Thus the total is at most m+(c+m)=c+2m. ◻

Lemma 40.26 — Local confluence

If N reduces in one step to N1 and to N2, then the two reducts have a common reduct.

Proof of Lemma 40.26 — Local confluence

Proof. Two multiplicative redexes are disjoint formula occurrences and their steps commute. A multiplicative and an atomic redex are likewise disjoint. Two atomic redexes either are disjoint or occupy adjacent cut edges of one alternating axiom–cut path. In the adjacent case, either contraction shortens that path; contracting the remaining cut produces the same single spliced axiom edge. These are all overlaps because a formula occurrence is the premise of at most one logical or cut link and belongs to exactly one axiom link when literal. ◻

Lemma 40.27 — Newman's lemma

If a relation is strongly normalizing and locally confluent, then it is confluent.

Proof of Lemma 40.27 — Newman's lemma

Proof. Use well-founded induction on the source x under the transitive reduction order. Suppose xy and xz. If one path is empty, the other endpoint is already a common reduct. Otherwise write the first steps as xy1y and xz1z. Local confluence gives w with y1w and z1w (one-step joins are allowed to be reflexive on either side). Apply the induction hypothesis at y1 to join y with w, and at z1 to join z with w. The two resulting reducts of w are joined by one final induction application at w. All three sources are strict reducts of x, so the induction is well founded. ◻

This is Newman’s well-founded confluence argument [New42]; the proof is included so that only its attribution, not its conclusion, is imported.

Theorem 40.28 — Cut normalization and confluence

On correct unit-free MLL proof nets, local cut reduction preserves correctness, is strongly normalizing, and is confluent. Every net therefore has a unique cut-free normal form as an occurrence graph.

Proof of Theorem 40.28 — Cut normalization and confluence

Proof. Preservation and strong normalization are lemma 40.23, lemma 40.24. Local confluence is lemma 40.26. Lemma 40.27 applies to a strongly normalizing, locally confluent relation and yields confluence. Normal forms contain no cut: a cut formula is either literal, when the atomic rule applies, or has dual tensor/par roots, when the multiplicative rule applies. Confluence then gives uniqueness. ◻

Corollary 40.29 — Sequent cut elimination

Every MLL derivation with cuts has a cut-free derivation of the same conclusion sequent.

Proof of Corollary 40.29 — Sequent cut elimination

Proof. Translate the derivation with the cut clause above. Normalize its cut vertices by theorem 40.28; correctness and the external conclusion multiset are preserved. The normal net is cut free, so sequentialize it by theorem 40.17. The resulting cut-free derivation has exactly the original conclusions. ◻

Corollary 40.30 — Subformula property and a nonprovability consequence

Every derivable MLL sequent has a derivation in which every formula occurrence is a subformula of a conclusion formula. In particular, no sequent consisting of one literal is derivable.

Proof of Corollary 40.30 — Subformula property and a nonprovability consequence

Proof. By corollary 40.29, choose a cut-free derivation. Read it from conclusion to premises. Rule Par replaces its principal formula by its two immediate subformulas, rule Tensor does the same while partitioning the side conclusions, and Ax contains only its two literal conclusions. Induction on the derivation therefore gives the subformula property. A one-literal sequent cannot end in Ax, Par, or Tensor, so it has no cut-free derivation and hence no derivation. ◻

This theorem is deliberately not a statement about MLL with units, MELL, MALL, or classical proof nets. Their links and critical pairs differ.

What focusing chooses and a net forgets

The focused calculus of chapter 39 is intuitionistic and structural; it is not the present linear calculus. We therefore do not map its judgments into these nets. The exact comparison is internal to MLL.

Definition 40.31 — Independent adjacent rules

Two adjacent Par or Tensor occurrences are independent when their principal formula occurrences are distinct and incomparable in the conclusion formula forest, and each principal occurrence is carried unchanged through the premise containing the other rule. For a Tensor, this also requires the other principal occurrence and all of its side conclusions to lie wholly in one tensor premise. An allowed adjacent permutation exchanges exactly such a pair, preserving the two rule names, occurrence identifiers, axiom leaves, and conclusion multiset. Thus the generating schemes are Par/Par, Par/Tensor, and Tensor/Tensor subject to these disjoint-occurrence and whole-premise conditions; no principal occurrence may cross its ancestor or be split across two tensor premises.

The predicate is decidable from an occurrence-labelled derivation tree: test formula-tree ancestry and, at a tensor node, the premise containing every side conclusion of the other rule. It therefore defines the finite permutation relation of definition 40.31 without an informal independence test.

Call a cut-free derivation phase ordered when no Par rule can be commuted downward past an independent Tensor rule. This is the multiplicative analogue of exhausting invertible work before making a split.

Lemma 40.32 — Phase ordering

Every cut-free MLL derivation can be transformed into a phase-ordered derivation by commuting adjacent independent rules. The translation N is unchanged by every such commutation.

Proof of Lemma 40.32 — Phase ordering

Proof. Count pairs consisting of a Par above an independent Tensor that can be exchanged. Commuting the par downward decreases this inversion count and creates no new inversion below it. Repetition terminates at a phase-ordered derivation. In the translated structure, the exchanged rules add the same two logical vertices and the same incidence edges; only their heights in the derivation tree changed. Thus N is invariant. ◻

Lemma 40.33 — Terminal-rule permutation

Let Π be a cut-free MLL derivation.

  1. If a conclusion occurrence has par at its root, allowed adjacent permutations transform Π into a derivation whose last rule introduces that occurrence.

  2. If a conclusion tensor is splitting in N(Π), allowed adjacent permutations transform Π into a derivation whose last rule is that tensor and whose two premises translate to the two components obtained by deleting it.

Proof of Lemma 40.33 — Terminal-rule permutation

Proof. Count the rules below the rule that introduced the selected conclusion occurrence. For a par conclusion, every lower rule has an incomparable principal occurrence. If that rule is a tensor, the selected par and all of its side conclusions lie wholly in one tensor premise. The two rules are therefore independent by definition 40.31; commute the par one step downward. The count decreases, so repetition makes it last.

For a splitting tensor, deleting its root partitions the translated net into two components. Every lower rule acts wholly inside one component. A lower tensor joining occurrences from both components would leave a logical edge between them after the selected root was deleted, contradicting the splitting hypothesis. Hence each lower rule satisfies the whole-premise condition of definition 40.31 and commutes upward past the selected tensor. Again the number of lower rules decreases. When the selected tensor is last, its premise occurrence graphs are exactly the two components, because translation is unchanged by every commute. ◻

Focusing chooses a disciplined schedule, but it need not choose a unique tensor split. Proof nets make the further quotient by every independent rule schedule.

Theorem 40.34 — Proof nets as a quotient of proofs

Let ΠΠ mean that two cut-free MLL derivations are connected by adjacent permutations of rules acting on independent formula occurrences. Translation induces a bijection {cut-free derivations of Γ}/{proof nets with conclusions Γ}. The same quotient may be taken after restricting the left side to phase-ordered derivations.

Proof of Theorem 40.34 — Proof nets as a quotient of proofs

Proof. By lemma 40.32, every equivalence class has a phase-ordered representative and translation is constant on a class. Surjectivity is theorem 40.17. For injectivity, run sequentialization on the common net. At a par conclusion, apply lemma 40.33 to put that par last in both proofs. Delete it and apply induction to the common smaller net. When no par conclusion remains, choose the same maximal splitting tensor among the nonliteral conclusions by lemma 40.16. Apply lemma 40.33 to put that tensor last in both proofs and identify their two premise graphs with the same two subnet components. Literal conclusions lie on the unique component fixed by the occurrence graph. Induction on each smaller component transforms the two pairs of premise derivations into the same reconstructed premises. Reapplying the common last rule shows that the original derivations differ only by permitted permutations. ◻

Phase ordering removes bad schedules while retaining a derivation tree. The proof-net quotient removes the residual order between independent rule occurrences. Neither statement identifies the intuitionistic focused derivations of chapter 39 with classical linear proof nets.

Geometry of interaction as path dynamics

A cut-reduction sequence erases the vertices through which a computation has passed. Geometry of interaction instead records the alternating paths that cross those vertices. In the dynamic-algebra presentation, left and right premise traversals receive generators and reversed traversals receive their involutions. A path is regular when its product is nonzero; it is maximal when it has no regular extension.

For the linear fragment, each local proof-net reduction induces a bijection between the maximal regular paths before and after the step, preserving their endpoint weights. The resulting execution formula is therefore invariant under cut reduction. This is the path-correspondence theorem developed in Danos and Di Cosmo, §4.3, through Theorem 4.3.5 and the path construction immediately after it [DC97]. Their Remark 4.3.6 marks the boundary: contraction and weakening change the degree of sharing, so the linear path calculation does not by itself handle copied or erased data. Interaction-net agents isolate that operational problem; no geometry-of-interaction theorem is transferred to their local rewrite rules.

Exact signature boundary

For the signature of definition 40.1, we proved translation soundness, the Danos–Regnier criterion, sequentialization with literal side conclusions retained by a visible splitting tensor, a direct checker and its exponential bound, local cut preservation, strong normalization and confluence, and the commuting-conversion quotient. The only external result retained here is the optimized linear-time checker; the direct checker and its bound are proved locally.

Units add nullary links, additives add explicit choices, exponentials add controlled copying, and mix changes the connectedness criterion. Ordered systems require an order-sensitive correctness condition. Each change alters the local graph language or the switching theorem rather than merely extending the formula grammar.

Suggested first pass.

Begin with exercise 40.8, exercise 40.9, exercise 40.10; then use the remaining problems to test algorithmic and signature boundaries.

None of these problems is a prerequisite for a later chapter. They form an optional second pass from correction graphs through reconstructed proofs and normal forms.

Exercise 40.8

★★☆ Take conclusions (pq)r,(pq)r, with equal-name axiom links. Enumerate all four switchings, list their edges, and prove each is a tree without appealing to sequentialization.

Exercise 40.9

★★★ Sequentialize the net in exercise 40.8. At every recursive call, name the deleted par or splitting tensor and write the two premise sequents. Produce two derivations that differ by a commuting conversion and show directly that their translations coincide.

Exercise 40.10

★★★ Put A=(pq)r. Index the net of exercise 40.8 by 0, take a second expanded-identity net indexed by 1, and cut A0 against A1. The surviving conclusions are A0,A1. Draw these two maximal schedules:

  1. outer compound, inner compound, then atomic p,q,r;

  2. outer compound, atomic r, inner compound, then atomic q,p.

At each atomic step name the two indexed axiom endpoints being spliced. Record the lexicographic measure from lemma 40.24 after all five steps and verify that both schedules end in the same cut-free identity net on A0,A1.

Exercise 40.11

★★★ Practical project.proof-net-checker Use Kappa to test finite occurrence graphs, not to mechanize the metatheory. Implement definition 40.18 over a data representation that assigns a stable integer to every formula occurrence. Maintain this depth-first invariant: the visited set is exactly the explored part of the root component; every visited nonroot has its recorded parent edge; and a visited nonparent neighbour is a cycle witness. Include the three small structures of exercise 40.2. The four-par positive is the expanded identity net of lemma 40.2 for ((((pq)r)s)t). For the last-switch negative, take four conclusions (LiRi)Si and one four-leaf tensor conclusion. Link each Li into the central tensor component and each Ri into the next outer conclusion cyclically. Enumerate left before right at each par, so the all-right vector is switching 16. The required outcomes are: accept the running net after (2) switchings and reconstruct (4) rules; reject the cyclic and disconnected structures at switching (1) for the stated reasons; accept all (16) switchings of the four-par positive and reconstruct (13) rules; and reject the last-switch negative at switching (16) for a cycle. Explain why passing this corpus is implementation evidence, not a proof of proposition 40.19. Appendix E records the acceptance commands, and appendix F gives the construction stages.

Exercise 40.12

★★★ For each k1, construct a proof structure with k par links for which at least one switching is a tree and at least one switching fails. Prove both claims by giving the two bit vectors and their correction graphs. Conclude that checking one distinguished switching is not a correctness criterion.

Exercise 40.13

★★☆ Suppose formulas are extended by dual units 1u=u and u=1u, where the subscript distinguishes the unit from the formula negation of definition 40.1, with rules X1uOneΓΓ,uBottom. Translate each nullary unit link as one vertex with no premise edge, while leaving the old switching criterion unchanged. Derive 1u,u and show that its two vertices form a disconnected correction graph. Thus the old criterion rejects a derivable sequent. Identify the missing unit case in lemma 40.8; do not propose a repaired criterion.

Source note.

Girard introduced proof structures and empires [Gir87]. His sequentialization proof uses a splitting-tensor argument. Danos and Regnier introduced the connected–acyclic switching criterion [DR89]. Straßburger gives the unit-free multiplicative calculus, proof-net translation, switching criterion, sequentialization, and local cut reductions [Str06]. For the displayed signature, theorem 40.17 proves that every correct net sequentializes. Termination and uniqueness of cut-free normal form follow from theorem 40.28; theorem 40.34 identifies exactly the permitted commuting conversions.

The linear complexity boundary is Guerrini’s theorem, cited exactly in theorem 40.20. The NP-completeness citation classifies sequent provability, while proposition 40.19, theorem 40.20 classify checking a fixed axiom matching. No theorem from the original Danos–Regnier paper substitutes for a local proof here.

Search the book

Type to search the local edition.