Linear logic

From Wikipedia, the free encyclopedia


In mathematical logic, linear logic is a type of substructural logic that denies the structural rules of weakening and contraction. The interpretation is of hypotheses as resources: every hypothesis must be consumed exactly once in a proof. This differs from usual logics such as classical or intuitionistic logic where the governing judgement is of truth, which may be freely used as many times as necessary. To give an example, from propositions A and AB one may conclude AB as follows:

  1. Modus ponens (or implication elimination) on the assumptions A and AB to conclude B.
  2. Conjunction of the assumption A and (1) to conclude AB.

This is often symbolically represented as a sequent: A, ABAB. Both lines in the above proof "consume" the fact that A is true; this "freeness" of truth is usually what is desired in formal mathematics.

However, truth is often too abstract or unwieldy when applied to statements about the world. For example, suppose one has a quart of milk from which one can make a pound of butter. If all the milk is used to make butter, then it cannot be concluded that one has both milk and butter. Yet, the logical schema outlined above leads one to conclude that milk, milkbuttermilkbutter (here, milk stands for the proposition "has a quart of milk", etc.).

The failure of ordinary logic to accurately model this activity is due to the nature of milk, butter, and resources in general: the quantity of resources is not a free fact to be used or disposed at will, like truth, but rather must be carefully accounted in every "state change". The accurate statement about making butter is:

From a quart of milk and a process to convert a quart of milk into a pound of butter, one may obtain a pound of butter.

In linear logic this is written: milk, milk butterbutter, using different connectives ( instead of ⇒) and a different notion of logical entailment.

Linear logic was proposed by the French logician Jean-Yves Girard in 1987.

Contents

[edit] Linear connectives

The logical connectives are re-examined in this resource-interpretation; each connective splits into multiplicative and additive versions, which correspond to simultaneous and alternative presence, respectively. To motivate the connectives, let us use the example of a vending machine.

Multiplicative conjunction, also called tensor or times (written ), denotes simultaneous occurrence of resources. For example, if one insert 50s cents into a vending machine, then the vending machine simultaneously has cent cent cent (50 of them). If I buy two sticks of gum, them I obtain gum gum. If the machine had four sticks of gum (gum gum gum gum) before, it has two now: gum gum. The constant 1 is used to denote the absence of a resource; it functions as a unit of tensor: A 1 ≡ 1 AA.

Additive conjunction, also known as with (written &) represents alternative occurrence of resources, the choice of which the consumer controls. If in the vending machine there is a packet of chips, a bar of candy, and a bottle of soft drink, all worth 50 cents each, then after inserting 50 cents one can get exactly one of these products. After the purchase, one will have candy & chips & drink, i.e., exactly one of the conjuncts. One cannot use for the outcome because one cannot get all of these products simultaneously with only 50 cents. Additive conjunction has a unit top (written , with A & & AA); it represents the nullary alternative. It is often used when the exact accounting of resources is burdensome or impossible. For example, if one doesn't actually care what he gets from the machine, or indeed could get anything at all, then the outcome may be expressed as . This unit can be used together with to define a minimal composition of resources: if one want a candy bar at least, but possibly something else also, then the desired outcome is candy .

Additive disjunction, also known as plus (written ⊕) represents a choice over which the producer has no control. For example, if the vending machine permits gambling (i.e., "insert 50 cents and win a candy bar, a soft drink, or an all expenses paid vacation to Hawaii") then the outcome of the purchase is candydrinkvacation. It is known that one of the choices will be produced, but the consumer has no control over the result. Note the difference from additive conjunction: if one has candy & drink & vacation, then one could choose the vacation. The unit of ⊕ is written 0, and represents a lack of outcome or catastrophic failure.

Multiplicative disjunction, also called par (written ) represents simultaneous goals that must be reached. It is somewhat harder to motivate using the vending machine metaphor. If there is a particular flavour of candy that one likes very much, but its name has been forgotten, then one can buy multiple bars in order to find the favourite. Each purchase consumes some money, and the purchaser's only control over the outcome of this experiment is by altering the order of selection of the various candy bars. In this case the outcome is candy1 candyn. The unit of is bottom (written ⊥), and stands for the empty goal: imagine refusing to insert any money, or pulling the "coin return" lever without making a selection.

Linear implication. The conjunctions and disjunctions above define the state of the world, but the description is static. For state change, linear logic defines the connective of linear implication (written ), sometimes also known as entails, multimap, or lolli because of its lollipop-like shape. The proposition A B means: consume resource A to achieve resource B. If one buys a candy bar with two quarters, the transaction can be described as quarter quarter candy. Note that the implication itself is a resource that must obey the principle of single consumption.

Exponential connectives. The collection of connectives so far are excellent for describing state and transitions, but they are too weak if one needs the usual notion of truth. This is obviously very desirable because a discussion about the actual world should not preclude standard mathematical reasoning. Linear logic uses an idea from modal logic to embed the usual logic by means of a pair of exponential operators.

  • Re-use or copying is allowed for propositions using the "of course" exponential operator (written !). Logically, two occurrences of !A as hypotheses may be contracted into a single occurrence.
  • The collection of goals is allowed to be extended with propositions using the "why not" operator (written ?). Logically, any fact can be weakened by including an additional conclusion ?A.

Under the resource interpretation, ! encodes arbitrary production and ? encodes arbitrary consumption.

[edit] Flavours of linear logic

Linear logic has many restrictions and variants. The primary axis of variation is along the classical/intuitionistic divide. Classical linear logic (CLL) is the original linear logic as proposed by Girard. In CLL every connective has a dual. The following is a two-sided presentation of CLL as a sequent calculus:

Image:Sequent_calculus_for_classical_linear_logic.png

Any proof can be transformed into one that doesn't use the cut rule. Linear implication is definable in terms of linear negation and multiplicative disjunction in CLL: A BA B. This is familiar from other classical logics: for example, the usual implication ⇒ is similarly definable: AB ≡ ? A B. Such definitions of course require a notion of negation, but in classical logic one can use duals: the dual of A, written A is defined as follows.

(A B) = A B
(A & B) = AB
(AB) = A & B
(A B) = A B

The logical units have similar duals; for example: = 0.

Intuitionistic linear logic (ILL) allows only a single conclusion. Unlike CLL, connectives in ILL do not have perfect duals. Indeed, the connectives par and why not (?), and the propositional constant bottom (⊥), are absent in ILL because their introduction requires multiple conclusions. As a result, linear implication is a basic connective in ILL.

Other variants of linear logic variously allow or disallow certain connectives, giving rise to logics with varying complexity. The following are the most common variants.

  • Multiplicative linear logic or MLL. This variant allows only the multiplicative connectives tensor and par (and their units). It is decidable, but the decision problem is NP-complete.
  • Multiplicative additive linear logic or MALL, which adds the additive connectives to MLL. This variant is also decidable with a PSPACE-complete decision problem.
  • Multiplicative exponential linear logic or MELL, which is MLL plus the exponential operators. The decision problem for MELL is currently open.
  • Multiplicative additive exponential linear logic or MAELL, which has all the above connectives. This variant is undecidable.

There are also first- and higher-order extensions of linear logic, but their development is standard (See first-order logic and higher-order logic.)

The closest sub-structural cousins of linear logic are:

  • Affine logic, which extends linear logic with the structural rule of weakening. The connectives one and top are indistinguishable in affine logic.
  • Strict logic or relevant logic, which extends linear logic with the structural rule of contraction.
  • Non-commutative logic or ordered logic which removes the structural rule of exchange from linear logic. Multiplicative conjunction divides further into a pair of fuses (left fuse and right fuse).

[edit] See also

[edit] References

  • Girard, Jean-Yves. Linear logic, Theoretical Computer Science, London Mathematical 50:1, pp. 1-102, 1987.
  • Girard, Jean-Yves, Lafont, Yves, and Taylor, Paul. Proofs and Types. Cambridge Press, 1989. (An electronic version is online at [1].)
  • Troelstra, A.S. Lectures on Linear Logic. CSLI (Center for the Study of Language and Information) Lecture Notes No. 29. Stanford, 1992.

[edit] External links

In other languages