Linear Logic

Linear Logic

App eared in SIGACT Linear Logic Patrick Lincoln lincolncslsricom SRI and Stanford University Linear Logic Linear logic was intro duced by Girard in Since then many results have supp orted Girards claims such as Linear logic is a resource conscious logic Increasingly computer scientists have recognized linear logic as an expressive and p owerful logic with deep connec tions to concepts from computer science The expressive p ower of linear logic is evidenced by some very natural enco dings of computational mo dels such as Petri nets counter machines Turing machines and others This note presents an intuitive overview of linear logic some recent theoretical results and some interesting applications of linear logic to computer science Other intro ductions to linear logic may b e found in Linear Logic vs Classical and Intuitionistic Logics Linear logic diers from classical and intuitionistic logic in several fundamental ways Clas sical logic may b e viewed as if it deals with static prop ositions ab out the world where each prop osition is either true or false Because of the static nature of prop ositions in classical logic one may duplicate prop ositions P implies P and P Implicitly we learn that one P is as go o d as two Also one may discard prop ositions P and Q implies P Here the prop osition Q has b een thrown away Both of these sentences are valid in classical logic for any P and Q In linear logic these sentences are not valid A linear logician might ask Where did the second P come from and Where did the Q go Of course these questions are nonse quiturs in the classical setting since prop ositions are assumed to b e static unchanging facts ab out the world On the other hand the rules of linear logic imply that linear prop ositions stand for dynamic prop erties or nite resources For example consider the prop ositions D M and C conceived as resources D One Dollar M A pack of Marlb oros C A pack of Camels Consider the following axiomatization of a vending machine D implies M D implies C Then in classical or intuitionistic logic one is able to deduce D implies M and C Which may b e read as With one dollar I may buy b oth a pack of Marlb oros and a pack of Camels Although this deduction is valid in classical logic it is nonsense in the intended interpretation of prop ositions as resources one cannot buy two packs of cigarettes with one dollar from the vending machine describ ed This paradox arises out of the confusion in classical and intuitionistic logic b etween two kinds of conjunction one intuitively meaning I have b oth which is written in linear logic as and another meaning I have a choice written in linear logic Linear logic avoids such paradoxes by distinguishing two kinds of conjunction two kinds of disjunction and by intro ducing a mo dal storage op erator that explicitly marks those prop ositions that can b e arbitrarily reused ? ? ? Linear negation A is involutive that is A A but is yet constructive This is one of the fascinating asp ects of linear logic Linear logic multiplicative conjunction A B stands for the prop osition that one has b oth A and B at the same time The linear logic additive conjunction AB stands for ones own choice b etween A and B but not b oth Dually there are two disjunctions The multiplicative disjunction written A B stands for the prop osition if not A then B Perhaps this disjunction can b e more easily understo o d by considering linear implication ? A B which is dened by A B The formula A B can b e thought of as can B b e derived using A exactly once The additive disjunction A B stands for the p ossibility of either A or B but you dont know which That is someone elses choice For each of these connectives there is a unit is the unit of so A A and A A is the unit of is the unit of and is the unit of Exp onentials To complete the logic there is a mo dal storage op erator of course and its dual why not The formula A may b e thought of as a printing press for As which can generate any numb er of As For example the US government can b e thought to have D ol l ar s and do esnt need to balance its budget while citizens do not have D ol l ar s and thus have to balance their budgets Example To illustrate the use of linear connectives and mo dal op erators here is an example inspired by Girard and Lafont Supp ose for a xed price a restaurant will provide a hamburger a Coke as many french fries as you like onion soup or salad your choice and pie or ice cream some elses choice One may enco de this information in the linear logic formula b eside the menu FixedPrice Menu D D D D D Hamburger Coke H C F O S P I All the french fries you can eat Onion Soup or Salad Pie or Ice Cream dep ending on availability Sequent Calculus Notation for Linear Logic The entire set of Gentzenstyle sequent rules for linear logic are given at the end of this note As explained ab ove the rules dene two conjunctions and two disjunctions as well as mo dal and constant op erators One could add quantiers to form rst or higher order linear logic but for this pap er we will restrict attention to prop ositional linear logic The sequent calculus notation due to Gentzen uses roman letters for prop ositions and greek letters for sequences of formulas A sequent is comp osed of two sequences of formulas separated by a or turnstile symb ol One may read the sequent as asserting that the multiplicative conjunction of the formulas in together imply the multiplicative disjunction of the formulas in A sequent calculus proof rule consists of a set of hyp othesis sequents displayed ab ove a horizontal line and a single conclusion sequent displayed b elow the line as b elow Hyp othesis Hyp othesis Conclusion Connections to Other Logics The most interesting features of linear logic arise from the absence of the rules of contraction and weakening In classical or intuitionistic logic the following rules are allowed A A Contraction Left Weakening Left A A Direct and Ane logic share with linear logic the elimination of the contraction rule ieprop ositions cannot b e arbitrarily copied However b oth of these logics allow weakening Relevance and Pertinent logic disallow weakening but allow contraction ieprop ositions cannot b e arbitrarily discarded but can b e copied Pertinent logic is decidable but Relevance logic adds a distributivity axiom which is absent from linear logic which makes Relevance logic undecidable Linear logic disallows b oth weakening and contraction in general although they are allowed for mo dal and formulas Linear logic arose partly out of a study of intuitionistic implication Girard found that the intuitionistic implication A B could b e decomp osed into two separate connectives A B Girard showed that one could thus translate intuitionistic and also classical logic into linear logic directly simply app ending mo dals to certain subformulas and making the right choice as to which sort of conjunction and disjunction should b e used Here we see a rst glimpse of the substance b ehind the slogan Linear logic is a logic b ehind logics Connections to Computer Science There has b een much recent excitement ab out linear logic in the logicbased theoretical computer science community Most of this excitement stems from the newfound ability to capture dicult resource problems logically For example linear logic provides a natural and simple enco ding of Petri net reachability In linear logic the formula a c b may b e used to enco de a Petri net transition taking tokens from place a and c and adding a token to place b Similarly the formula b d d c d may b e seen as a transition taking one token from b and two tokens from d and adding one token to c These transitions are presented graphically b elow A B a c b b d d c d J a c d d J J J J J C D J J Thus one can enco de Petri net transitions as reusable linear implications Tokens are represented as atomic prop ositions and a reachability problem may b e presented as a se quent a c b b d d c d a c d d c d This sequent is provable in linear logic if and only if there is a sequence of Petri net rule applications that transform the token set fa c d dg to fc dg This connection has b een wellstudied and extended to cover other mo dels of concurrency Linear logic has also b een applied to several other areas of computer science One key application of the resourcesensitive asp ect of the logic was the development of a functional programming language implementation in which garbage collection was replaced by explicit duplication op erations based on linear logic More recent work has attempted to nd a linear logical basis for many optimizations in lazy functional programming language implementations by concentrating on linear logic as a typ e system Other applications include analyzing the control structure of logic programs general ized logic programming and natural language pro cessing A natural characteri zation of p olynomial time computations can b e given in a b ounded version of linear logic obtained by limiting reuse to sp ecied b ounds ie by b ounding the numb er of references to each datum in memory We now turn our attention to some questions of a more theoretical nature Complexity Results for Linear Logic Although prop ositional linear logic was known to b e very expressive for some time it was thought to b e decidable However prop ositional linear logic was recently shown to b e un decidable Several other complexity results are

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us