
Relating Reasoning Methodologies in Linear Logic and Process Algebra∗ Yuxin Deng Iliano Cervesato Robert J. Simmons Carnegie Mellon University Carnegie Mellon University Carnegie Mellon University and Shanghai Jiao Tong University Doha, Qatar Pittsburgh, PA [email protected] [email protected] [email protected] We show that the proof-theoretic notion of logical preorder coincides with the process-theoretic no- tion of contextual preorder for a CCS-like calculus obtained from the formula-as-process interpreta- tion of a fragment of linear logic. The argument makes use of other standard notions in process alge- bra, namely simulation and labeled transition systems. This result establishes a connection between an approach to reason about process specifications and a method to reason about logic specifications. 1 Introduction By now, execution-preserving relationships between (fragments of) linear logic and (fragments of) pro- cess algebras are well-established (see [5] for an overview). Abramsky observed early on that linear cut elimination resembles reduction in CCS and the p-calculus [15], thereby identifying processes with (some) linear proofs and establishing the process-as-term interpretation [1]. The alternative process-as- formula encoding, pioneered by Miller around the same time [14], maps process constructors to logical connectives and quantifiers, with the effect of relating reductions in process algebra with proof steps, in the same way that logic programming achieves computation via proof search. This interpretation has been used extensively in a multitude of domains [3, 4, 5, 14], e.g., programming languages and security. Not as well established is the relationship between the rich set of notions and techniques used to reason about process specifications and the equally rich set of techniques used to reason about (linear) logic. Indeed, a majority of investigations have attempted to reduce some of the behavioral notions that are commonplace in process algebra to derivability within logic. For example, Miller identified a fragment of linear logic that could be used to observe traces in his logical encoding of the p-calculus, thereby obtaining a language that corresponds to the Hennessy-Milner modal logic, which characterizes observational equivalence [14]. A similar characterization was made in [12], where a sequent G ` D in a classical logic augmented with constraints was seen as process state G passing test D. Extensions of linear logic were shown to better capture other behavioral relations: for example, adding definitions allows expressing simulation as the derivability of a linear implication [13], but falls short of bisimulation, for which a nominal logic is instead an adequate formalism [17]. This body of work embeds approaches for reasoning about process specifications (e.g., bisimulation or various forms of testing) into methods for reasoning with logic (mainly derivability). Little investi- gation has targeted notions used to reason about logic (e.g., proof-theoretic definitions of equivalence). More generally, techniques and tools developed for each formalism rarely cross over — and may very well be rediscovered in due time. Tellingly, process-based definitions and proofs are often coinductive in nature, while techniques based on proof-theory are generally inductive. ∗Partially supported by the Qatar National Research Fund under grant NPRP 09-1107-1-168. c Y. Deng, I. Cervesato & R.J. Simmons Submitted to: This work is licensed under the LINEARITY 2012 Creative Commons Attribution License. 2 Relating some Reasoning Methodologies in Linear Logic and Process Algebra G;A;D;A ` C init clone G;a ` a G;A;D ` C G;D1 ` A G;D2 ` B G;D;A;B ` C G;D ` C ⊗R ⊗L 1R 1L G;D1;D2 ` A⊗B G;D;A ⊗ B ` C G;· ` 1 G;D;1 ` C G;D ` A G;D ` B G;D;Ai ` C &R &Li >R G;D ` A&B G;D;A1 &A2 ` C G;D ` > (no rule >L) G;D;a ` B G;D1 ` a G;D2;B ` C G;· ` A G;A;D ` C (R (L !R !L G;D ` a(B G;D1;D2;a(B ` C G;· ` !A G;D;!A ` C Figure 1: A Fragment of Dual Intuitionistic Linear Logic This paper outlines one such relationship — between the inductive methods used to reason about logic and the coinductive methods used to reason about process calculi. On the linear logic side, we focus on the inductively-defined notion of logical preorder (obtained by forsaking symmetry from derivability- based logical equivalence). On the process-algebraic side, we consider an extensional behavioral relation adapted from the standard coinductive notion of contextual preorder. We prove that, for a fragment of linear logic and a matching process calculus, these notions coincide. Our proofs rely on other standard process algebraic notions as stepping stones, namely simulation and labeled transition systems. The rest of the paper is organized as follows. In Section 2, we briefly review the fragment of lin- ear logic we are focusing on and define the logical preorder. Then, in Section 3, we recall its standard process-as-formula interpretation and define the contextual preorder. In Section 4, we prove their equiv- alence through the intermediary of a simulation preorder defined on the basis of a labeled transition system. Full proofs of all results in this paper can be found in the accompanying technical report [7]. 2 Logical Preorder The fragment of linear logic considered in this paper is given by the following grammar: A;B;C ::= a j 1 j A⊗B j > j A&B j a(B j !A where a is an atomic formula. This language is propositional and, as often the case in investigations of CCS-like process algebras [3, 4, 5], the antecedent of linear implication is restricted to atomic formulas (see the remarks in Section 5 about lifting these constraints). Derivability for this language is given in terms of dual intuitionistic linear logic (DILL) sequents [2, 5] of the form G;D ` A, where the unrestricted context G and the linear context D are multisets of formulas. Formally, they are defined by the productions G;D ::= · j D;A where “·” represents the empty context, and “D;A” is the context obtained by adding the formula A to the context D. As usual, we tacitly treat “;” as an associative and commutative context union operator “D1;D2” with “·” as its unit. The fairly standard inference rules defining derivability are given in Figure 1. A DILL sequent G;D ` A corresponds to !G;D ` A in Girard’s original presentation [9]. We take the view, common in practice, that the context part of the sequent (G;D) represents the state of some system component and that the consequent A corresponds to some property satisfied by this system. Y. Deng, I. Cervesato & R.J. Simmons 3 We will be interested in a relation, the logical preorder, that compares specifications on the basis of the properties they satisfy, possibly after the components they describe are plugged into a larger system. This relation, written l, is given by the following definition. Definition 1 (Logical preorder) The logical preorder is the smallest relation l such that (G1;D1) l 0 0 0 0 0 0 (G2;D2) if, for all G , D , and C, we have that (G ;G1);(D ;D1) ` C implies (G ;G2);(D ;D2) ` C. ut This relation is reflexive and transitive, and therefore a preorder [7, Theorem 2.5]; we could define logical equivalence as the symmetric closure of l. The above definition is extensional in the sense that it refers to all contexts G0 and D0 and formulas C. It has also an inductive characterization based on derivability [7, Theorem 2.8]: N N Property 2 (G1;D1) l (G2;D2) iff G2;D2 ` !G1 ⊗ D1 N Here, D1 denotes the conjunction of all formulas in D1 (or 1 if it is empty) and !G1 is the linear context obtained by prefixing every formula in G1 with “!”. The logical preorder has other interesting properties, such as harmony [7, Proposition 2.6]: Property 3 (Harmony) G;D ` A if and only if (·;A) l (G;D). ut In the accompanying technical report, we show that a deductive system satisfies harmony if and only if the rules of identity and cut are admissible: G;D ` A G0;D0;A ` C identity cut G;A ` A (G;G0);(D;D0) ` C In particular, this means that harmony holds not only for our restricted fragment of DILL, but for full DILL and most other syntactic fragments of DILL as well [7, Section 2.3]. 3 Contextual Preorder The subset of linear logic just introduced has a natural interpretation as a fragment of CCS [15] with CSP-style internal choice [10]. It is shown in Figure 2. We will now switch to this reading, which is known as the conjunctive process-as-formula interpretation of linear logic [14, 5]. Therefore, for the most of the rest of this section, we understand A as a process. Under this reading, contexts (G;D) are process states, i.e., systems of parallel processes understood as the parallel composition of each process in D and, after restoring the implicit replication, in G. In process algebra, parallel composition is considered associative and commutative and has the null process as its unit. This endows process states with the following structural congruences: (G; D;·) ≡ (G; D)(G;·; D) ≡ (G; D) (G; D1;D2) ≡ (G; D2;D1)(G1;G2; D) ≡ (G2;G1; D) (G; D1;(D2;D3)) ≡ (G; (D1;D2);D3)(G1;(G2;G3); D) ≡ ((G1;G2);G3; D) (G;A;A; D) ≡ (G;A; D) which amount to asking that D and G be commutative monoids. The last equality on the right merges identical replicated processes, making G into a set.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages7 Page
-
File Size-