Linear logic


Linear logic is a substructural logic proposed by French logician Jean-Yves Girard as a refinement of classical and intuitionistic logic, joining the dualities of the former with many of the constructive properties of the latter. Although the logic has also been studied for its own sake, more broadly, ideas from linear logic have been influential in fields such as programming languages, game semantics, and quantum physics, as well as linguistics, particularly because of its emphasis on resource-boundedness, duality, and interaction.
Linear logic lends itself to many different presentations, explanations, and intuitions.
Proof-theoretically, it derives from an analysis of classical sequent calculus in which uses of contraction and weakening are carefully controlled. Operationally, this means that logical deduction is no longer merely about an ever-expanding collection of persistent "truths", but also a way of manipulating resources that cannot always be duplicated or thrown away at will. In terms of simple denotational models, linear logic may be seen as refining the interpretation of intuitionistic logic by replacing cartesian categories by symmetric monoidal categories, or the interpretation of classical logic by replacing Boolean algebras by C*-algebras.

Notation comparison

This article follows Girard's notation. For readers who are familiar with different notations, the following table, compiled by Paoli 2002, compares the notations for linear-logic connectives and constants across several sources.

Connectives, duality, and polarity

Syntax

The language of classical linear logic is defined inductively by the BNF notation
Here and range over logical atoms. For reasons to be explained below, the connectives ⊗, ⅋, 1, and ⊥ are called multiplicatives, the connectives &, ⊕, ⊤, and 0 are called additives, and the connectives ! and ? are called exponentials.
We can further employ the following terminology:
Binary connectives ⊗, ⊕, & and ⅋ are associative and commutative; 1 is the unit for ⊗, 0 is the unit for ⊕, ⊥ is the unit for ⅋ and ⊤ is the unit for &.
Every proposition in CLL has a dual, defined as follows:
addmulexp
pos⊕ 0⊗ 1!
neg& ⊤⅋ ⊥?

Observe that is an involution, i.e., for all propositions. is also called the linear negation of.
The columns of the table suggest another way of classifying the connectives of linear logic, termed : the connectives negated in the left column are called positive, while their duals on the right are called negative; cf. table on the right.
is not included in the grammar of connectives, but is definable in CLL using linear negation and multiplicative disjunction, by. The connective ⊸ is sometimes pronounced "lollipop", owing to its shape.

Sequent calculus presentation

One way of defining linear logic is as a sequent calculus. We use the letters and to range over finite lists of propositions, also called contexts. A sequent places a context to the left and the right of the turnstile, written. Intuitively, the sequent asserts that the conjunction of entails the disjunction of . Girard describes classical linear logic using only one-sided sequents, and we follow here that more economical presentation. This is possible because any premises to the left of a turnstile can always be moved to the other side and dualised.
We now give inference rules describing how to build proofs of sequents.
First, to formalize the fact that we do not care about the order of propositions inside a context, we add the structural rule of exchange:
Note that we do not add the structural rules of weakening and contraction, because we do care about the absence of propositions in a sequent, and the number of copies present.
Next we add initial sequents and cuts:
The cut rule can be seen as a way of composing proofs, and initial sequents serve as the units for composition. In a certain sense these rules are redundant: as we introduce additional rules for building proofs below, we will obtain the property that arbitrary initial sequents can be derived from atomic initial sequents, and that whenever a sequent is provable it can be given a cut-free proof.
Ultimately, this canonical form property lies behind the applications of linear logic in computer science, since it allows the logic to be used in proof search and as a resource-aware lambda-calculus.
Now, we explain the connectives by giving logical rules. Typically in sequent calculus one gives both "right-rules" and "left-rules" for each connective, essentially describing two modes of reasoning about propositions involving that connective.
In a one-sided presentation, one instead makes use of negation: the right-rules for a connective effectively play the role of left-rules for its dual.
So, we should expect a certain "harmony" between the rule for a connective and the rule for its dual.

Multiplicatives

The rules for multiplicative conjunction and disjunction :
and for their units:
Observe that the rules for multiplicative conjunction and disjunction are admissible for plain conjunction and disjunction under a classical interpretation
.

Additives

The rules for additive conjunction and disjunction :
and for their units:
Observe that the rules for additive conjunction and disjunction are again admissible under a classical interpretation.
But now we can explain the basis for the multiplicative/additive distinction in the rules for the two different versions of conjunction: for the multiplicative connective, the context of the conclusion is split up between the premises, whereas for the additive case connective the context of the conclusion is carried whole into both premises.

Exponentials

The exponentials are used to give controlled access to weakening and contraction. Specifically, we add structural rules of weakening and contraction for 'd propositions:
and use the following logical rules, in which stands for a list of propositions each prefixed with :
One might observe that the rules for the exponentials follow a different pattern from the rules for the other connectives, resembling the inference rules governing modalities in sequent calculus formalisations of the normal modal logic S4, and that there is no longer such a clear symmetry between the duals and.
This situation is remedied in alternative presentations of CLL.

Remarkable formulas

In addition to the De Morgan dualities described above, some important equivalences in linear logic include:
; Distributivity:
By definition of as, the last two distributivity laws also give:
; Exponential isomorphism:
; Linear distributions:
A map that is not an isomorphism yet plays a crucial role in linear logic is:
Linear distributions are fundamental in the proof theory of linear logic. The consequences of this map were first investigated in Cockett & Seely and called a "weak distribution". In subsequent work it was renamed to "linear distribution" to reflect the fundamental connection to linear logic.
; Other implications:
The following distributivity formulas are not in general an equivalence, only an implication:

Extending classical/intuitionistic logic

Both intuitionistic and classical implication can be recovered from linear implication by inserting exponentials: intuitionistic implication is encoded as, while classical implication can be encoded as or . The idea is that exponentials allow us to use a formula as many times as we need, which is always possible in classical and intuitionistic logic.
Formally, there exists a translation of formulas of intuitionistic logic to formulas of linear logic in a way that guarantees that the original formula is provable in intuitionistic logic if and only if the translated formula is provable in linear logic. Using the Gödel–Gentzen negative translation, we can thus embed classical first-order logic into linear first-order logic.

Proof systems

Proof nets

Introduced by Jean-Yves Girard, proof nets have been created to avoid the bureaucracy, that is all the things that make two derivations different in the logical point of view, but not in a "moral" point of view.
For instance, these two proofs are "morally" identical:
The goal of proof nets is to make them identical by creating a graphical representation of them.

Semantics

Multiple distinct semantics have been developed for linear logic, reflecting its complex nature as a resource-sensitive logical system. Unlike classical or intuitionistic logic, linear logic distinguishes between different ways of combining formulas and treats assumptions as finite resources that are consumed during proof rather than being endlessly reproducible.
The main semantic approaches include:
; Phase semantics: An early model focusing on provability.
; Categorical semantics: An algebraic framework that models proofs as morphisms. The appropriate category is a subcategory of complete, separated, bornological vector space with continuous linear maps.
; Game semantics: An interactive model that interprets formulas as games and proofs as strategies.
; Denotational semantics: A model that interprets proofs as mathematical objects.
The algebraic semantics of linear logic is that of quantales.
In linguistics, linear logic models grammatical parsing as deduction. In that circumstance, a valid parse tree corresponds to proving the existence of a sentence using implication rules encoding the grammar.

The resource interpretation

Lafont first showed how intuitionistic linear logic can be explained as a logic of resources, so providing the logical language with access to formalisms that can be used for reasoning about resources within the logic itself, rather than, as in classical logic, by means of non-logical predicates and relations. Tony Hoare used purchases at a vending machine to illustrate the logic, and culinary transactions have become the traditional example to describe use of the connectives.
In particular, a prix fixe menu corresponds to a linear implication from the price to the meal; either
or equivalently
depending on if implication or par is taken to be the primitive connective. Different courses are then conjoined using tensor, as a purchased meal is guaranteed to consist of both. For example, one might define as
The customer's choice is conjoined using &:
indicating that the customer must choose either a soup or a salad. Contrariwise, the restaurant's choice is disjoined using ⊕: if the dessert is seasonal fruits, then it might be well-modeled as
Finally, an all-you-can-eat/drink item is modeled with !:
In the resource interpretation, the constant 1 denotes the absence of any resource, and so functions as the unit of ⊗. ⊤ is the unit for & and consumes any unneeded resources; 0 represents a product that cannot be made, and thus serves as the unit of ⊕ ; and ⊥ denotes unconsumable resources.