词条 | Linear logic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
释义 |
Linear logic is a substructural logic proposed by 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.[1] 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),[2] as well as linguistics,[3] 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{{Citation needed|date=October 2015}}. Connectives, duality, and polaritySyntaxThe language of classical linear logic (CLL) is defined inductively by the BNF notation
Here {{math|p}} and {{math|p⊥}} 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 {{math|A}} in CLL has a dual {{math|A⊥}}, defined as follows:
Observe that {{math|(-)⊥}} is an involution, i.e., {{math|A⊥⊥ {{=}} A}} for all propositions. {{math|A⊥}} is also called the linear negation of {{math|A}}. The columns of the table suggest another way of classifying the connectives of linear logic, termed polarity: 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. Linear implication is not included in the grammar of connectives, but is definable in CLL using linear negation and multiplicative disjunction, by {{math|A ⊸ B :{{=}} A⊥ ⅋ B}}. The connective ⊸ is sometimes pronounced "lollipop", owing to its shape. Sequent calculus presentationOne way of defining linear logic is as a sequent calculus. We use the letters {{math| Γ}} and {{math| Δ}} to range over list of propositions {{math|A1, ..., An}}, also called contexts. A sequent places a context to the left and the right of the turnstile, written {{math|Γ {{tee}} Δ}}. Intuitively, the sequent asserts that the conjunction of {{math| Γ}} entails the disjunction of {{math| Δ}} (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.[4] 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 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. MultiplicativesThe 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). AdditivesThe 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 ({{math|Γ, Δ}}) is split up between the premises, whereas for the additive case connective (&) the context of the conclusion ({{math|Γ}}) is carried whole into both premises. ExponentialsThe exponentials are used to give controlled access to weakening and contraction. Specifically, we add structural rules of weakening and contraction for ?'d propositions:[5]
and use the following logical rules:
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 (e.g., the LU presentation). Remarkable formulaeIn addition to the De Morgan dualities described above, some important equivalences in linear logic include:
(Here Assume that ⅋ is any of the binary operators times, plus, with or par (but not linear implication). The following is not in general an equivalence, only an implication:
A map which is not an isomorphism yet plays a crucial role in linear logic is: {{math|(A ⊗ (B ⅋ C)) ⊸ ((A ⊗ B) ⅋ C)}}Linear distributions are fundamental in the proof theory of linear logic. The consequence of this map were first investigated in [6] and called a "weak distribution". In subsequent work it was renamed to "linear distribution" to reflect the fundamental connection to linear logic. Encoding classical/intuitionistic logic in linear logicBoth intuitionistic and classical implication can be recovered from linear implication by inserting exponentials: intuitionistic implication is encoded as {{math|!A ⊸ B}}, while classical implication can be encoded as {{math|!?A ⊸ ?B}} or {{math|!A ⊸ ?!B}} (or a variety of alternative possible translations).[7] 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 formulae of intuitionistic logic to formulae of linear logic in a way which 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 interpretationLafont (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 having a candy bar by the atomic proposition {{math|candy}}, and having a dollar by {{math|$1}}. To state the fact that a dollar will buy you one candy bar, we might write the implication {{math|$1 ⇒ candy}}. But in ordinary (classical or intuitionistic) logic, from {{math|A}} and {{math|A ⇒ B}} one can conclude {{math|A ∧ B}}. 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,{{what|reason=It is difficult to guess what this might mean without a link|date=May 2015}} 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 {{math|$1 ⇒ candy}}, we express the property of the vending machine as a linear implication {{math|$1 ⊸ candy}}. From {{math|$1}} and this fact, we can conclude {{math|candy}}, but not {{math|$1 ⊗ candy}}. In general, we can use the linear logic proposition {{math|A ⊸ B}} to express the validity of transforming resource {{math|A}} into resource {{math|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 {{math|(A ⊗ B)}} 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 {{math|gum ⊗ drink}}. The constant 1 denotes the absence of any resource, and so functions as the unit of ⊗. Additive conjunction {{math|(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 {{math|$1 ⊸ (candy & chips & drink)}}. We do not write {{math|$1 ⊸ (candy ⊗ chips ⊗ drink)}}, which would imply that one dollar suffices for buying all three products together. However, from {{math|$1 ⊸ (candy & chips & drink)}}, we can correctly deduce {{math|$3 ⊸ (candy ⊗ chips ⊗ drink)}}, where {{math|$3 :{{=}} $1 ⊗ $1 ⊗ $1}}. The unit ⊤ of additive conjunction can be seen as a wastebasket for unneeded resources. For example, we can write {{math|$3 ⊸ (candy ⊗ ⊤)}} 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 {{math|(A ⊕ B)}} 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 {{math|$1 ⊸ (candy ⊕ chips ⊕ drink)}}. The constant 0 represents a product that cannot be made, and thus serves as the unit of ⊕ (a machine that might produce {{math|A}} or {{math|0}} is as good as a machine that always produces {{math|A}} because it will never succeed in producing a 0). Multiplicative disjunction {{math|(A ⅋ B)}} is more difficult to gloss in terms of the resource interpretation, although we can encode back into linear implication, either as {{math|A⊥ ⊸ B}} or {{math|B⊥ ⊸ A}}. Other proof systemsProof nets{{main|Proof net}}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. SemanticsAlgebraic semantics{{see also|Quantale}}Decidability/complexity of entailmentThe entailment relation in full CLL is undecidable.[8] When considering fragments of CLL, the decision problem has varying complexity:
VariantsMany variations of linear logic arise by further tinkering with the structural rules:
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{{Portal|Logic}}
References1. ^{{cite journal|last1=Girard|first1=Jean-Yves|date=|year=1987|title=Linear logic|url=http://girard.perso.math.cnrs.fr/linear.pdf|journal=Theoretical Computer Science|volume=50|issue=1|pages=1–102|doi=10.1016/0304-3975(87)90045-4|via=|author1-link=Jean-Yves Girard}} 2. ^{{cite journal|first1=John|last1=Baez|author1-link=John Baez|first2=Mike|last2=Stay|year=2008|title=Physics, Topology, Logic and Computation: A Rosetta Stone|editor=Bob Coecke|journal=New Structures of Physics|url=http://math.ucr.edu/home/baez/rosetta.pdf}} 3. ^{{cite book|title=Dagstuhl Seminar 99341 on Linear Logic and Applications|first1=V.|last1=de Paiva|author1-link= Valeria de Paiva |first2=J.|last2=van Genabith|first3=E.|last3=Ritter|year=1999|url=http://www.dagstuhl.de/Reports/99/99341.pdf}} 4. ^Girard (1987), p.22, Def.1.15 5. ^Girard (1987), p.25-26, Def.1.21 6. ^ Cockett and Seely "Weakly distributive categories" JPAA 114(2) 133-173, 1997 7. ^Di Cosmo, Roberto. The Linear Logic Primer. Course notes; chapter 2. 8. ^1 For this result and discussion of some of the fragments below, see: {{cite journal|first1=Patrick|last1=Lincoln|first2=John|last2=Mitchell|first3=Andre|last3=Scedrov|first4=Natarajan|last4=Shankar|year=1992|title=Decision Problems for Propositional Linear Logic|journal=Annals of Pure and Applied Logic|volume=56|pages=239–311|doi=10.1016/0168-0072(92)90075-B}} 9. ^{{Cite conference| doi = 10.1109/LICS.1992.185533| conference = Seventh Annual IEEE Symposium on Logic in Computer Science, 1992. LICS '92. Proceedings| pages = 200–210| last = Kanovich| first = Max I.| title = Horn programming in linear logic is NP-complete| booktitle = Seventh Annual IEEE Symposium on Logic in Computer Science, 1992. LICS '92. Proceedings| date = 1992-06-22}} 10. ^{{cite journal|first1=Patrick|last1=Lincoln|first2=Timothy|last2=Winkler|year=1994|title=Constant-only multiplicative linear logic is NP-complete|journal=Theoretical Computer Science|volume=135|pages=155–169|doi=10.1016/0304-3975(94)00108-1}} 11. ^{{Cite conference| conference = Tenth International Conference on Application and Theory of Petri Nets. Proceedings| pages = 174-191| last1 = Gunter| first1 = C. A.| last2 = Gehlot| first2 = V.| year = 1989}} 12. ^{{Cite journal| doi = 10.1016/j.tcs.2015.06.019| issn = 0304-3975| volume = 597| pages = 1–17| last = Bimbó| first = Katalin| title = The decidability of the intensional fragment of classical linear logic| journal = Theoretical Computer Science| date = 2015-09-13}} 13. ^{{Cite conference| doi = 10.1109/LICS.1995.523283|url=http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.23.9226| conference = Tenth Annual IEEE Symposium on Logic in Computer Science, 1995. LICS '95. Proceedings| pages = 496–504| last = Kopylov| first = A. P.| title = Decidability of linear affine logic| booktitle = , Tenth Annual IEEE Symposium on Logic in Computer Science, 1995. LICS '95. Proceedings| date = 1995-06-01}} Further reading
External links
3 : Linear logic|Non-classical logic|Substructural logic |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。