Linear logic
Template:Short description Template:Use dmy dates Script error: No such module "redirect hatnote". 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.Template:Sfn 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 (because linear logic can be seen as the logic of quantum information theory),Template:Sfn as well as linguistics,Template:Sfn 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 (the structural rules) 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 (closed) categories by symmetric monoidal (closed) categories, or the interpretation of classical logic by replacing Boolean algebras by C*-algebras.Script error: No such module "Unsubst".
Connectives, duality, and polarity
Syntax
Script error: No such module "anchor". The language of classical linear logic (CLL) is defined inductively by the BNF notation
| AScript error: No such module "Check for unknown parameters". | ::= | p ∣ p⊥Script error: No such module "Check for unknown parameters". |
| ∣Script error: No such module "Check for unknown parameters". | A ⊗ A ∣ A ⊕ AScript error: No such module "Check for unknown parameters". | |
| ∣Script error: No such module "Check for unknown parameters". | A & A ∣ A ⅋ AScript error: No such module "Check for unknown parameters". | |
| ∣Script error: No such module "Check for unknown parameters". | 1 ∣ 0 ∣ ⊤ ∣ ⊥Script error: No such module "Check for unknown parameters". | |
| ∣Script error: No such module "Check for unknown parameters". | !A ∣ ?AScript error: No such module "Check for unknown parameters". |
Here pScript error: No such module "Check for unknown parameters". and p⊥Script error: No such module "Check for unknown parameters". 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:
| Symbol | Name | |||
|---|---|---|---|---|
| ⊗ | multiplicative conjunction | times | tensor | |
| ⊕ | additive disjunction | plus | ||
| & | additive conjunction | with | ||
| Script error: No such module "anchor".⅋ | multiplicative disjunction | par | ||
| ! | of course | bang | ||
| ? | why not | quest | ||
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 AScript error: No such module "Check for unknown parameters". in CLL has a dual A⊥Script error: No such module "Check for unknown parameters"., defined as follows:
| (p)⊥ = p⊥Script error: No such module "Check for unknown parameters". | (p⊥)⊥ = pScript error: No such module "Check for unknown parameters". | ||||
| (A ⊗ B)⊥ = A⊥ ⅋ B⊥Script error: No such module "Check for unknown parameters". | (A ⅋ B)⊥ = A⊥ ⊗ B⊥Script error: No such module "Check for unknown parameters". | ||||
| (A ⊕ B)⊥ = A⊥ & B⊥Script error: No such module "Check for unknown parameters". | (A & B)⊥ = A⊥ ⊕ B⊥Script error: No such module "Check for unknown parameters". | ||||
| (1)⊥ = ⊥Script error: No such module "Check for unknown parameters". | (⊥)⊥ = 1Script error: No such module "Check for unknown parameters". | ||||
| (0)⊥ = ⊤Script error: No such module "Check for unknown parameters". | (⊤)⊥ = 0Script error: No such module "Check for unknown parameters". | ||||
| (!A)⊥ = ?(A⊥)Script error: No such module "Check for unknown parameters". | (?A)⊥ = !(A⊥)Script error: No such module "Check for unknown parameters". |
| add | mul | exp | |
|---|---|---|---|
| pos | ⊕ 0 | ⊗ 1 | ! |
| neg | & ⊤ | ⅋ ⊥ | ? |
Observe that (-)⊥Script error: No such module "Check for unknown parameters". is an involution, i.e., A⊥⊥ = AScript error: No such module "Check for unknown parameters". for all propositions. A⊥Script error: No such module "Check for unknown parameters". is also called the linear negation of AScript error: No such module "Check for unknown parameters"..
The columns of the table suggest another way of classifying the connectives of linear logic, termed Template:Em: the connectives negated in the left column (⊗, ⊕, 1, 0, !) are called positive, while their duals on the right (⅋, &, ⊥, ⊤, ?) are called negative; cf. table on the right.
Template:Em is not included in the grammar of connectives, but is definable in CLL using linear negation and multiplicative disjunction, by A ⊸ B := A⊥ ⅋ BScript error: No such module "Check for unknown parameters".. 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 ΓScript error: No such module "Check for unknown parameters". and ΔScript error: No such module "Check for unknown parameters". to range over lists of propositions A1, ..., AnScript error: No such module "Check for unknown parameters"., also called contexts. A sequent places a context to the left and the right of the turnstile, written Γ ΔScript error: No such module "Check for unknown parameters".. Intuitively, the sequent asserts that the conjunction of ΓScript error: No such module "Check for unknown parameters". entails the disjunction of ΔScript error: No such module "Check for unknown parameters". (though we mean the "multiplicative" conjunction and disjunction, as explained below). Girard describes classical linear logic using only one-sided sequents (where the left-hand context is empty), 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.Template:Sfn
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:
| Γ, A1, A2, ΔScript error: No such module "Check for unknown parameters". |
| Γ, A2, A1, ΔScript error: No such module "Check for unknown parameters". |
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 maintain 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 (which can be divided into the completeness of atomic initial sequents and the cut-elimination theorem, inducing a notion of analytic proof) 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 (e.g., verification and falsification). In a one-sided presentation, one instead makes use of negation: the right-rules for a connective (say ⅋) effectively play the role of left-rules for its dual (⊗). So, we should expect a certain "harmony" between the rule(s) for a connective and the rule(s) 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 (i.e., they are admissible rules in LK).
Additives
The rules for additive conjunction (&) and disjunction (⊕) :
|
|
| ||||||||||||||||||||
and for their units:
|
(no rule for 0Script error: No such module "Check for unknown parameters".) | ||||||||||
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 (Γ, ΔScript error: No such module "Check for unknown parameters".) is split up between the premises, whereas for the additive case connective (&) the context of the conclusion (ΓScript error: No such module "Check for unknown parameters".) 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 ?Script error: No such module "Check for unknown parameters".'d propositions:Template:Sfn
|
|
and use the following logical rules, in which ?ΓScript error: No such module "Check for unknown parameters". stands for a list of propositions each prefixed with ?Script error: No such module "Check for unknown parameters".:
|
|
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 !Script error: No such module "Check for unknown parameters". and ?Script error: No such module "Check for unknown parameters".. This situation is remedied in alternative presentations of CLL (e.g., the LU presentation).
Remarkable formulas
In addition to the De Morgan dualities described above, some important equivalences in linear logic include:
- Distributivity
| A ⊗ (B ⊕ C) ≣ (A ⊗ B) ⊕ (A ⊗ C)Script error: No such module "Check for unknown parameters". |
| (A ⊕ B) ⊗ C ≣ (A ⊗ C) ⊕ (B ⊗ C)Script error: No such module "Check for unknown parameters". |
| A ⅋ (B & C) ≣ (A ⅋ B) & (A ⅋ C)Script error: No such module "Check for unknown parameters". |
| (A & B) ⅋ C ≣ (A ⅋ C) & (B ⅋ C)Script error: No such module "Check for unknown parameters". |
By definition of A ⊸ BScript error: No such module "Check for unknown parameters". as A⊥ ⅋ BScript error: No such module "Check for unknown parameters"., the last two distributivity laws also give:
| A ⊸ (B & C) ≣ (A ⊸ B) & (A ⊸ C)Script error: No such module "Check for unknown parameters". |
| (A ⊕ B) ⊸ C ≣ (A ⊸ C) & (B ⊸ C)Script error: No such module "Check for unknown parameters". |
(Here A ≣ BScript error: No such module "Check for unknown parameters". is (A ⊸ B) & (B ⊸ A)Script error: No such module "Check for unknown parameters"..)
- Exponential isomorphism
| !(A & B) ≣ !A ⊗ !BScript error: No such module "Check for unknown parameters". |
| ?(A ⊕ B) ≣ ?A ⅋ ?BScript error: No such module "Check for unknown parameters". |
- Linear distributions
A map that is not an isomorphism yet plays a crucial role in linear logic is:
| (A ⊗ (B ⅋ C)) ⊸ ((A ⊗ B) ⅋ C)Script error: No such module "Check for unknown parameters". |
Linear distributions are fundamental in the proof theory of linear logic. The consequences of this map were first investigated in Cockett & Seely (1997) and called a "weak distribution".Template:Sfn 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:
| !A ⊗ !B ⊸ !(A ⊗ B)Script error: No such module "Check for unknown parameters". |
| !A ⊕ !B ⊸ !(A ⊕ B)Script error: No such module "Check for unknown parameters". |
| ?(A ⅋ B) ⊸ ?A ⅋ ?BScript error: No such module "Check for unknown parameters". |
| ?(A & B) ⊸ ?A & ?BScript error: No such module "Check for unknown parameters". |
| (A & B) ⊗ C ⊸ (A ⊗ C) & (B ⊗ C)Script error: No such module "Check for unknown parameters". |
| (A & B) ⊕ C ⊸ (A ⊕ C) & (B ⊕ C)Script error: No such module "Check for unknown parameters". |
| (A ⅋ C) ⊕ (B ⅋ C) ⊸ (A ⊕ B) ⅋ CScript error: No such module "Check for unknown parameters". |
| (A & C) ⊕ (B & C) ⊸ (A ⊕ B) & CScript error: No such module "Check for unknown parameters". |
Encoding classical/intuitionistic logic in linear logic
Both intuitionistic and classical implication can be recovered from linear implication by inserting exponentials: intuitionistic implication is encoded as !A ⊸ BScript error: No such module "Check for unknown parameters"., while classical implication can be encoded as !?A ⊸ ?BScript error: No such module "Check for unknown parameters". or !A ⊸ ?!BScript error: No such module "Check for unknown parameters". (or a variety of alternative possible translations).Template:Sfn 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.
The resource interpretation
Lafont (1993) 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 (1985)'s classic example of the vending machine can be used to illustrate this idea.
Suppose we represent having a candy bar by the atomic proposition candyScript error: No such module "Check for unknown parameters"., and having a dollar by $1Script error: No such module "Check for unknown parameters".. To state the fact that a dollar will buy you one candy bar, we might write the implication $1 ⇒ candyScript error: No such module "Check for unknown parameters".. But in ordinary (classical or intuitionistic) logic, from AScript error: No such module "Check for unknown parameters". and A ⇒ BScript error: No such module "Check for unknown parameters". one can conclude A ∧ BScript error: No such module "Check for unknown parameters".. So, ordinary logic leads us to believe that we can buy the candy bar and keep our dollar! Of course, we can avoid this problem by using more sophisticated encodings,Script error: No such module "Unsubst". although typically such encodings suffer from the frame problem. However, the rejection of weakening and contraction allows linear logic to avoid this kind of spurious reasoning even with the "naive" rule. Rather than $1 ⇒ candyScript error: No such module "Check for unknown parameters"., we express the property of the vending machine as a linear implication $1 ⊸ candyScript error: No such module "Check for unknown parameters".. From $1Script error: No such module "Check for unknown parameters". and this fact, we can conclude candyScript error: No such module "Check for unknown parameters"., but not $1 ⊗ candyScript error: No such module "Check for unknown parameters".. In general, we can use the linear logic proposition A ⊸ BScript error: No such module "Check for unknown parameters". to express the validity of transforming resource AScript error: No such module "Check for unknown parameters". into resource BScript error: No such module "Check for unknown parameters"..
Running with the example of the vending machine, consider the "resource interpretations" of the other multiplicative and additive connectives. (The exponentials provide the means to combine this resource interpretation with the usual notion of persistent logical truth.)
Multiplicative conjunction (A ⊗ B)Script error: No such module "Check for unknown parameters". denotes simultaneous occurrence of resources, to be used as the consumer directs. For example, if you buy a stick of gum and a bottle of soft drink, then you are requesting gum ⊗ drinkScript error: No such module "Check for unknown parameters".. The constant 1 denotes the absence of any resource, and so functions as the unit of ⊗.
Additive conjunction (A & B)Script error: No such module "Check for unknown parameters". represents alternative occurrence of resources, the choice of which the consumer controls. If in the vending machine there is a packet of chips, a candy bar, and a can of soft drink, each costing one dollar, then for that price you can buy exactly one of these products. Thus we write $1 ⊸ (candy & chips & drink)Script error: No such module "Check for unknown parameters".. We do not write $1 ⊸ (candy ⊗ chips ⊗ drink)Script error: No such module "Check for unknown parameters"., which would imply that one dollar suffices for buying all three products together. However, from ($1 ⊸ (candy & chips & drink)) ⊗ ($1 ⊸ (candy & chips & drink)) ⊗ ($1 ⊸ (candy & chips & drink))Script error: No such module "Check for unknown parameters"., we can correctly deduce $3 ⊸ (candy ⊗ chips ⊗ drink)Script error: No such module "Check for unknown parameters"., where $3 := $1 ⊗ $1 ⊗ $1Script error: No such module "Check for unknown parameters".. The unit ⊤ of additive conjunction can be seen as a wastebasket for unneeded resources. For example, we can write $3 ⊸ (candy ⊗ ⊤)Script error: No such module "Check for unknown parameters". to express that with three dollars you can get a candy bar and some other stuff, without being more specific (for example, chips and a drink, or $2, or $1 and chips, etc.).
Additive disjunction (A ⊕ B)Script error: No such module "Check for unknown parameters". represents alternative occurrence of resources, the choice of which the machine controls. For example, suppose the vending machine permits gambling: insert a dollar and the machine may dispense a candy bar, a packet of chips, or a soft drink. We can express this situation as $1 ⊸ (candy ⊕ chips ⊕ drink)Script error: No such module "Check for unknown parameters".. The constant 0 represents a product that cannot be made, and thus serves as the unit of ⊕ (a machine that might produce AScript error: No such module "Check for unknown parameters". or 0Script error: No such module "Check for unknown parameters". is as good as a machine that always produces AScript error: No such module "Check for unknown parameters". because it will never succeed in producing a 0). So unlike above, we cannot deduce $3 ⊸ (candy ⊗ chips ⊗ drink)Script error: No such module "Check for unknown parameters". from this.
Other proof systems
Proof nets
Script error: No such module "Labelled list hatnote".
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
Script error: No such module "Unsubst".
Algebraic semantics
Script error: No such module "Labelled list hatnote".
Decidability/complexity of entailment
The entailment relation in full CLL is undecidable.Template:Refn When considering fragments of CLL, the decision problem has varying complexity:
- Multiplicative linear logic (MLL): only the multiplicative connectives. MLL entailment is NP-complete, even restricting to Horn clauses in the purely implicative fragment,Template:Sfn or to atom-free formulas.Template:Sfn
- Multiplicative-additive linear logic (MALL): only multiplicatives and additives (i.e., exponential-free). MALL entailment is PSPACE-complete.[1]
- Multiplicative-exponential linear logic (MELL): only multiplicatives and exponentials. By reduction from the reachability problem for Petri nets,Template:Sfn MELL entailment must be at least EXPSPACE-hard, although decidability itself has had the status of a longstanding open problem. In 2015, a proof of decidability was published in the journal Theoretical Computer Science,Template:Sfn but was later shown to be erroneous.Template:Sfn
- Affine linear logic (that is linear logic with weakening, an extension rather than a fragment) was shown to be decidable, in 1995.Template:Sfn
Variants
Many variations of linear logic arise by further tinkering with the structural rules:
- Affine logic, which forbids contraction but allows global weakening (a decidable extension).
- Strict logic or relevant logic, which forbids weakening but allows global contraction.
- Non-commutative logic or ordered logic, which removes the rule of exchange, in addition to barring weakening and contraction. In ordered logic, linear implication divides further into left-implication and right-implication.
Different intuitionistic variants of linear logic have been considered. When based on a single-conclusion sequent calculus presentation, like in ILL (Intuitionistic Linear Logic), the connectives ⅋, ⊥, and ? are absent, and linear implication is treated as a primitive connective. In FILL (Full Intuitionistic Linear Logic) the connectives ⅋, ⊥, and ? are present, linear implication is a primitive connective and, similarly to what happens in intuitionistic logic, all connectives (except linear negation) are independent. There are also first- and higher-order extensions of linear logic, whose formal development is somewhat standard (see first-order logic and higher-order logic).
See also
Script error: No such module "Portal".
- Chu spaces
- Computability logic
- Game semantics
- Geometry of interaction
- Intuitionistic logic
- Linear logic programming
- Linear type system, a substructural type system
- Ludics
- Proof nets
- Uniqueness type
Notes
<templatestyles src="Reflist/styles.css" />
- ↑ Cite error: Script error: No such module "Namespace detect".Script error: No such module "Namespace detect".
Script error: No such module "Check for unknown parameters".
References
- Script error: No such module "Citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "Citation/CS1".
- Script error: No such module "Citation/CS1".
Further reading
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
External links
- Template:Sister-inline
- A Linear Logic Prover (llprover) Template:Webarchive, available for use online, from: Naoyuki Tamura / Dept of CS / Kobe University / Japan
- Click And Collect interactive linear logic prover, available online