Linear Logic - The Resource Interpretation

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. Antony Hoare (1985)'s classical example of the vending machine can be used to illustrate this idea.

Suppose we represent a candy bar by the atomic proposition candy, and a dollar by $1. To state the fact that a dollar will buy you one candy bar, we might write the implication $1candy. But in ordinary (classical or intuitionistic) logic, from A and AB one can conclude AB. 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, 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 $1candy, we express the property of the vending machine as a linear implication $1candy. From $1 and this fact, we can conclude candy, but not $1candy. In general, we can use the linear logic proposition AB to express the validity of transforming resource A into resource B.

Running with the example of the vending machine, let us 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 (AB) 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 gumdrink. The constant 1 denotes the absence of any resource, and so functions as the unit of ⊗.

Additive conjunction (A & B) 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). We do not write $1 ⊸ (candychipsdrink), which would imply that one dollar suffices for buying all three products together. However, from $1 ⊸ (candy & chips & drink), we can correctly deduce $3 ⊸ (candychipsdrink), where $3 := $1$1$1. The unit ⊤ of additive conjunction can be seen as a wastebasket or garbage collector for irrelevant alternatives. For example, we can write $3 ⊸ (candy ⊗ ⊤) to express that three dollars will buy you a candy bar and something else (we don't care what).

Additive disjunction (AB) 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 ⊸ (candychipsdrink). The constant 0 represents a product that cannot be made, and thus serves as the unit of ⊕ (a machine that might produce A or 0 is as good as a machine that always produces A because it will never succeed in producing a 0).

Multiplicative disjunction (AB) is more difficult to gloss in terms of the resource interpretation, although we can encode back into linear implication, either as A⊥ ⊸ B or B⊥ ⊸ A.

Read more about this topic:  Linear Logic

Famous quotes containing the word resource: