A Spatial Logic for Concurrency

Size: px
Start display at page:

Download "A Spatial Logic for Concurrency"

Transcription

1 A Spatial Logic for Concurrency (Part I) Luís Caires Departamento de Informática FCT/UNL, Lisboa, Portugal Luca Cardelli Microsoft Research, Cambridge, UK Abstract We present a logic that can express properties of freshness, secrecy, structure, and behavior of concurrent systems. In addition to standard logical and temporal operators, our logic includes spatial operations corresponding to composition, local name restriction, and a primitive fresh name quantifier. Properties can also be defined by recursion; a central aim of this paper is then the combination of a logical notion of freshness with inductive and coinductive definitions of properties. 1 Introduction We present a logic for describing the behavior and spatial structure of concurrent systems. Logics for concurrent systems are certainly not new [22, 14, 29, 16], but the intent to describe spatial properties seems to have arisen only recently. The spatial properties that we consider here are essentially of two kinds: whether a system is composed of two or more identifiable subsystems, and whether a system restricts the use of certain resources to certain subsystems. Previous work [10] has considered also whether a system is composed of named locations; in that case, the notion of spatial structure is particularly natural. The initial motivation for studying these logics was to be able to specify systems that deal with fresh or secret resources such as keys, nonces, channels, and locations. In previous papers [10, 6], we have found that the spatial properties of process composition and of location structures are fairly manageable. Instead, the properties of restriction are much more challenging, and are closely related to the study of logical notions of freshness [20, 19, 31]. The main aim of this paper is to advance the study of restriction started in [11, 6] and to build a closer correspondence with treatments of freshness [19]. For simplicity, we use a basic process calculus (the asynchronous -calculus) that includes composition and restriction. We omit locations in this paper because they are easy to add along the lines of [10], and are comparatively easier to handle than composition or restriction. It will become clear that our general approach is fairly insensitive to the details of specific process calculi, and is largely insensitive to the dynamics (reduction behavior) of specific calculi. Therefore, it can be easily adapted to other calculi, and perhaps even generalized to process frameworks [21]. 1

2 A formula in our logic describes a property of a particular part of a concurrent system at a particular time; therefore it is modal in space as well as in time. This dual modality can be captured by standard box and diamond operators, reflecting reachability in space and in time [10, 6]. As a further contribution of this paper, though, we wish to investigate a more general framework akin to the -calculus [25], where formulas can be recursive and can subsume box and diamond operators. Moreover, by combining spatial and temporal connectives with recursion, we can then define new and interesting modalities, such as under an arbitrary number of restrictions. The most technically challenging part of the paper is then the interaction of recursive formulas, already present in [6, 9, 16], with logical notions of freshness, composition, and name restriction, already present in [6, 11]. We now give a brief overview of the constructs of the logic, before moving on to the formal treatment. Let È be the set of (asynchronous -calculus) processes. A property is a set of processes; a subset of È. A closed formula denotes a property, namely, it denotes the collection of processes satisfying that formula. The collection of all properties (which is not quite the powerset of È, as we shall discuss) has the structure of a Boolean Algebra under set inclusion, so we naturally get boolean connectives(we take F, and µ as primitive). The above propositional fragment is extended to predicate logic via a universal quantifier Ü. This quantifier has standard properties, but the bound variable Ü ranges always over the countable set of channel names of the process calculus. The collection of all properties has also the structure of a quantale, induced by the parallel composition operator over processes. In the logic, this is reflected by the operators (the tensor, or parallel composition, of two properties), ¼ (the unit of the tensor, or collection of void processes), and º (the linear implication associated with the tensor). This last operator corresponds to context-system specifications, which are the concurrency theory equivalent of pre/post conditions. In addition, º is a first class formula that can be freely and usefully combined with other operators. In much the same way that parallel process composition induces the quantale structure, process restriction induces a pair of operators ÒÖ and «Ò, called revelation and hiding, that give us a basis for describing restricted processes at the logical level. The notion of fresh name is introduced by a quantifier ÁÜ ; a process È satisfies ÁÜ if È satisfies for some name fresh in È and ÁÜ. This quantifier allows us to then derive a hidden name quantifier [11, 6]. ÁÜ is defined along the lines of the freshness quantifier of Gabbay-Pitts [19]: the connections will be discussed. A similar ÁÜ quantifier is studied in [11] (in absence of recursion), but is handled as a meta-level construct, and not as a proper formula that can be mixed with recursion. A logical operator Ò Ñ allows us to assert that a message Ñ is present over channel Ò, giving us some minimal power to observe the behavior of processes. A next step temporal operator,, allows us to talk about the behavior of a process after a single (unspecified) reduction step. Finally, a second-order quantifier enables us to quantify over the collection of all properties. Combining with other operators of our logic, we then define a maximal fixpoint operator (provided is monotonic in ), and a dual minimal fixpoint operator. From these recursive formulas, we can then define operators for temporal and spatial modalities, for instance denoting that holds anytime in the future, and, meaning that holds everywhere in space. 2

3 Related Work A logic for a process calculus including a tensor operator and a hidden name quantifier was developed in [6, 2], but a satisfactory semantic treatment for the latter connective not was achieved before the contributions of [11] and of the present paper. Initial versions of spatial logics for the Ambient Calculus were introduced in [10], which also investigated connections with linear logic. We now target the logic towards a more standard -calculus. Following the initial approach of Hennessy-Milner [22], modal logics for the - calculus have been proposed in [29, 16, 17]. The main difference between our logic and these more standard logics of concurrency is the presence in our case of structural operations: namely, of a tensor operator that corresponds to process composition, and of a revelation operator that corresponds to name restriction. Usually, those other logics require formulas to denote processes up to bisimulation, which is difficult to reconcile with a tensor operator that can make distinctions between bisimilar processes (however, such an operator was anticipated in [15]). In our case, we only require formulas to denote processes up to structural equivalence, so that a tensor operator makes easy sense. Sangiorgi has shown, for a closely related logic, that the equivalence induced by the logic is then essentially structural equivalence [33]. The connections between name restriction and Gabbay-Pitts notions of freshness [20, 19, 31], first studied in [11], are further explored in this paper. The work on Bunched Logics [30] and Separation Logic [32] is closely related to ours, at least in intent. Spatial logics for trees and graphs have also been investigated in [9, 7, 8]. Organization of the paper We start with a concise review of the asynchronous - calculus. In Section 3 we give a detailed presentation of the syntax of the spatial logic. In Section 4, we introduce the central notion of property set, we define satisfaction, and we proceed with the analysis of semantical aspects of the logic. In Section 4.3 we then study an appropriate notion of logical validity. In Sections 5 and 6 we motivate and discuss fresh and hidden name quantification, and the recursive definition of properties. In Section 7 we discuss in more detail the arguments that lead to our choices. 2 Preliminaries on the asynchronous -calculus We review the syntax and operational semantics of the asynchronous -calculus [1, 24], following the notations of [27]. We base our presentation of «-equivalence on the use of transpositions (simple name replacements), which become prominent later in the paper. Definition 2.1 (Processes) Given a countable set of names, the set È of processes is given by the following abstract syntax Ñ Ò Ô ¾ (Names) È É Ê ¼ (Void) È É (Par) ÒµÈ (Restriction) Ñ Ò (Message) Ñ Òµ È (Input) È (Replication) 3

4 We write na È µ for the set of all names that textually occur in a process È (either bound or free). Definition 2.2 (Free names in Processes) For any process È, the set of free names of È, written fn È µ, is inductively defined as follows. fn ¼µ ¼ fn È Éµ fn È µ fn ɵ fn Ñ Ò µ Ñ Ò fn ÒµÈ µ fn È µ Ò Ò fn Ñ Òµ È µ fn È µ Ò Ò µ Ñ fn È µ fn È µ In restriction ÒµÈ and input Ñ Òµ È, the distinguished occurrence of the name Ò is binding, with scope the process È. We write bn È µ for the set of names which occur bound in the process È, and c Æ for the set È Æ fn È µ of processes that contain all names in Æ free. If Æ is a finite set of names, and Æ ¼ is a any set of names, a substitution Æ Æ ¼ of domain Æ and codomain Æ ¼ is a mapping assigning Òµ ¾ Æ ¼ to each Ò ¾ Æ, and Ò to each Ò ¾ Æ. Thus, outside its domain, any substitution behaves like the identity. Given a substitution, we denote by µ its domain. The image of a substitution, written Á µ, is the set Òµ Ò ¾ µ. We write Ò Ñ for the singleton substitution of domain Ò that assigns Ñ to Ò. Substitutions that just interchange a pair of names will play a special role in technical developments to follow. More precisely, the transposition of Ò and Ñ, noted Ò Ñ, denotes the substitution Ñ Ò Ñ Ò such that Òµ Ñ and ѵ Ò. Note that Ò Ñ Ñ Ò. Before defining safe substitution on processes, we first introduce transposition, and then define «-congruence in the style of [19]. Definition 2.3 (Transposition) Given a process È and a transposition, we denote by È the process inductively defined as follows. ¼ ¼ Ñ Ò Ñµ Òµ È Éµ È µ ɵ ÒµÈ µ Òµµ È Ô Òµ È µ Ôµ Òµµ È µ È µ È Proposition 2.4 For all processes È and É, and transpositions, 1. È È 2. Ñ Ò È Ñµ Òµ È Proof. By induction on the structure of È. Definition 2.5 (Congruence) A binary relation on processes is a congruence whenever for all processes È, É and Ê, È È È É µ É È È É É Ê µ È Ê È É µ È Ê É Ê È É µ Ê È È É È É µ ÒµÈ ÒµÉ È É µ Ñ Òµ È Ñ Òµ É È É µ È É (Cong Refl) (Cong Symm) (Cong Trans) (Cong Parl) (Cong Parr) (Cong Res) (Cong In) (Cong Repl) 4

5 In this paper we essentially make use of two congruences: «-congruence and structural congruence. As usual, «-congruence «is the congruence that identifies processes up to the safe renaming of bound names. Definition 2.6 («-congruence) «-congruence «is the least congruence on processes such that, ÒµÈ «Ôµ Ò Ô È where Ô ¾ na È µ (Alpha Res) Ñ Òµ È «Ñ Ôµ Ò Ô È where Ô ¾ na È µ (Alpha In) Definition 2.7 (Safe substitution) For any process È and substitution we denote by È µ the process inductively defined as follows: ¼µ ¼ Ñ Ò µ ѵ Òµ È Éµ È µ ɵ ÒµÈ µ Ôµ È Ò Ô µ where Ô ¾ µ Á µ fn È µ Ñ Òµ È µ ѵ Ôµ È Ò Ô µ where Ô ¾ µ Á µ fn È µ È µ È µ The name Ô in the clauses for restriction and input is chosen fresh, hence safe substitution is well-defined mapping on «-equivalence classes of processes, as usual. We write È for È µ when has the form Ò Ñ or Ò Ñ. We have Lemma 2.8 Let È be a process. Then 1. È «È µ where is any transposition 2. È Ò Ô «Ò Ô È where Ô ¾ fn È µ Proof. By induction on the structure of È. From Lemma 2.8 the usual characterization of «-congruence follows: Proposition 2.9 «-congruence is the least congruence on processes such that ÒµÈ «ÔµÈ Ò Ô where Ô ¾ fn È µ Ñ Òµ È «Ñ Ôµ È Ò Ô where Ô ¾ fn È µ As expected, safe substitution preserves «-congruence: Proposition 2.10 If È «É then È µ «Éµ. Proof. Standard. Definition 2.11 (Structural congruence) Structural congruence is the least congruence on processes such that È «É µ È É È ¼ È È É É È È É Êµ È Éµ Ê Ò ¾ fn È µ µ È ÒµÉ Òµ È Éµ Ò Ô Ò Ñ µ ÒµÔ Ñµ È Ô Ñµ ÒµÈ Òµ¼ ¼ Òµ ÑµÈ Ñµ ÒµÈ ¼ ¼ È È È È Éµ È É È È (Struct Alpha) (Struct Par Void) (Struct Par Comm) (Struct Par Assoc) (Struct Res Par) (Struct Res Inp) (Struct Res Void) (Struct Res Comm) (Struct Repl Void) (Struct Repl Copy) (Struct Repl Par) (Struct Repl Repl) 5

6 Although the axiom (Struct Res Inp) is absent from standard presentations of -calculi, the general consensus seems to be that such an axiom is quite sensible as a structural congruence. (Struct Res Inp) is implicit in early work of Boudol on the chemical abstract machine, and is harmless as far as extensional properties of processes (e.g., behavioral equivalence) are concerned. On the other hand, it has some convenient consequences in the setting of a more intensional logic like ours. Moreover, Engelfriet and Gelsema have shown the decidability of structural congruence in the presence of the (Struct Repl Void/Par/Repl) and (Struct Res Inp) axioms [18]. Proposition 2.12 (Basic properties of ) For all processes È and É, 1. If È É then fn È µ fn ɵ. 2. If Ò ¾ fn È µ then ÒµÈ È. 3. For all transpositions, È É if and only if È µ ɵ. 4. For all substitutions, if È É, then È µ ɵ. Proof. Standard. Proposition 2.13 (Inversion) For all processes È and É, 1. If ÒµÈ ¼ then È ¼. 2. If ÒµÈ Ê É then there are Ê ¼ and É ¼ such that È Ê ¼ É ¼ and either Ê ÒµÊ ¼ and É É ¼ and Ò ¾ fn ɵ, or Ê Ê ¼ and É ÒµÉ ¼ and Ò ¾ fn ʵ. 3. If ÒµÈ ÑµÉ then either È Ò Ñ É or there are È ¼ and É ¼ such that È ÑµÈ ¼, É ÒµÉ ¼ and È ¼ É ¼. Versions of Proposition 2.13(1 2) for the Ambient Calculus have been proved in [13] and [12]. Proposition 2.13(3) has a simple proof based on results in [18], as suggested by J. Engelfriet. The dynamics of processes is captured by reduction: Definition 2.14 (Reduction) Reduction is the least binary relation on processes inductively defined as follows. Ñ Ò Ñ Ôµ È È Ô Ò É É ¼ µ È É È É ¼ È É µ ÒµÈ ÒµÉ È È ¼ È ¼ É ¼ É ¼ É µ È É (Red React) (Red Par) (Red Res) (Red Struct) Proposition 2.15 (Basic properties of ) For all processes È and É, 1. If È É then fn ɵ fn È µ. 2. For all substitutions, if È É, then È µ ɵ. 3. If È É and É ÒµÉ ¼ for some É ¼, then there is È ¼ such that È ÒµÈ ¼ and È ¼ É ¼. 6

7 Ü Ý Þ ¾ Î (Name variables) ¾ (Propositional variables) ¾ Î (Names or name variables) F (False) (Conjunction) µ (Implication) ¼ (Void) (Composition) º (Guarantee) Ö (Revelation) «(Hiding) ¼ (Message) Ü (First-order universal quantification) ÁÜ (Fresh name quantification) (Next step) (Propositional variable) (Second-order universal quantification) Figure 1: Formulas. Proof. (1 2) Standard. (3) By induction on the derivation of È É (see Remark 2.16 below). Remark 2.16 Proposition 2.15(3) is a consequence of Proposition 2.13(3) and does not hold for versions of -calculi where does not satisfy (Struct Res Inp). E.g., consider È Ô Ô Ô Ñµ ÒµÑ Ò : we have È ÒµÉ ¼ where É ¼ Ô Ò. Now, pick any È ¼ such that È ÒµÈ ¼. Then, we can show that for all Ê such that È ¼ Ê we have Ê ÒµÉ ¼ É ¼. However, if we admit (Struct Res Inp), we have È Òµ Ô Ô Ô Ñµ Ñ Ò µ, so we can take È ¼ Ô Ô Ô Ñµ Ñ Ò. Remark 2.17 Reduction as defined in Definition 2.14 is almost the same as the usual one in the following sense. Let be the the standard structural congruence of [27] restricted to the asynchronous -calculus. Thus. Likewise, let be the standard reduction of the asynchronous -calculus. It is clear that. We also have that for all processes È and É, if È É then there is a process Ê such that È Ê and É Ê. 3 Syntax of the Spatial Logic Basic constructs of our spatial logic include propositional, spatial, and temporal operators, first-order and second-order quantifications, and freshness quantification (cf. [19]). As shown later, from this basic set of connectives we can define a quite expressive set of properties, including fixpoint combinators (supporting inductive and coinductive definition of properties) and an internal satisfiability modality [10]. 7

8 Definition 3.1 (Formulas) Given an infinite set Î of name variables, and an infinite set of propositional variables (mutually disjoint from ), formulas are defined as shown in Fig. 1. The meaning of these formulas was briefly discussed in the introduction; their semantics is given later in Definition We highlight here some of the more unusual operators. The formula ¼ is satisfied by any process in the structural congruence class of ¼. The formula is satisfied by any process that can be decomposed into processes that satisfy respectively and. Guarantee is the logical adjunct of composition: º is satisfied by those processes whose composition with any process satisfying results in a process satisfying. The formula ÒÖ is satisfied by all processes congruent with some process ÒµÈ, where È satisfies. The formula «Ò is satisfied by any process È such that ÒµÈ satisfies ; i.e., by a process that satisfies after hiding Ò. Message Ñ Ò holds of processes structurally congruent to a message Ñ Ò. The formula ÁÜ denotes fresh name quantification; a process satisfies ÁÜ if for (some/all) fresh names Ò (fresh in the process and in the formula), it satisfies Ü Ò. This quantifier exhibits the universal/existential ambivalence typical of freshness: a property holding of some fresh names should also hold of any other fresh name. As we shall see, combining the fresh name quantifier with revelation will enable us to define a hidden name quantifier, that is a quantifier over names that are locally restricted in the process at hand. In formulas of the form Ü, ÁÜ, and the distinguished occurrences of Ü and are binding, with scope the formula. We define on formulas the relation «of «-congruence in the standard way, that is, as the least congruence identifying formulas modulo safe renaming of bound (name and propositional) variables. We consider formulas always modulo «-congruence. Definition 3.2 (Free names and variables in formulas) For any formula, we introduce the following sets, inductively defined in Fig. 2. fn µ fv µ fpv µ free names in free name variables in free propositional variables in By fnv µ we mean the set fv µ fn µ. A formula is name-closed if it has no free name variables, and closed if it has no free variables whatsoever. We extend the previously given notion of substitution to name variables and formulas as follows. When Ë is a finite set of either variables and names, and Æ is a set of names, Ë Æ means that is a substitution assigning a name in Æ to each variable or name in Ë. If Ë Æ is a substitution then Ü denotes the substitution of domain Ë Ò Ü and codomain Æ defined by Ü Ýµ ݵ, for all Ý ¾ Ë Ò Ü. Definition 3.3 (Safe substitution) For any formula and substitution we denote by µ the formula inductively defined as follows. Fµ F ¼µ ¼ µ µ µ µ µ µ µ µ µ µ µ º µ µ º µ ¼ µ µ ¼ µ Ö µ µö µ «µ µ«µ ÁÜ µ ÁÜ Ü µ Ü µ Ü Ü µ µ µ µ µ µ 8

9 fn µ fv µ fpv µ F ¼ µ º fn µ fn µ fv µ fv µ fpv µ fpv µ ¼ ¼ ¼ Î Ö fn µ µ fv µ ε fpv µ «Ü ÁÜ fn µ fv µ Ò Ü fpv µ fn µ fv µ fpv µ fn µ fv µ fpv µ Ò Figure 2: Free names in formulas. When and are formulas, we denote by the capture avoiding substitution of all free occurrences of in by, defined in the expected way. By we denote a formula context with possibly multiple occurrences of the hole. Then, whenever is a formula, we denote by the formula obtained by textually replacing every occurrence of the hole in the context by. Note that free (name or propositional) variables in will be captured by binders present in ; cf., the standard notion of context substitution. 4 Semantics The semantics of formulas is defined by assigning to each formula a set of processes  Ã, namely the set of all processes that satisfy the property denoted by formula. However not any set of processes can denote a property in a proper way. For instance, it is sensible to require  à to be closed under structural congruence. That is, if a process È satisfies some property, then any process É such that É È must also satisfy. We also want to be able to express freshness of names with relation to  Ã. Suppose we have È ¾  Ã, Ò ¾ fn µ but Ò ¾ fn È µ. Since Ò ¾ fn µ, the free occurrences of Ò in È are fresh for the formula. Now, the particular choice of the name Ò should not depend on itself, since it is natural to consider that all fresh names for are to be treated uniformly. Therefore, it is natural to require that also È Ò Ñ ¾  Ã, where Ñ is any other fresh name for and È, that is Ñ ¾ fn È µ fn µ. Hence, we say that a set of processes is supported by the set of names Æ if, for all Ñ Ò not in the support Æ, if È belongs to then È Ò Ñ is also in. We then take as properties only those sets of processes that have a finite support. Intuitively, the support of a property is the semantic counterpart of the set of free names of a formula; the least support of the denotation of a formula is included in the set of free names of the formula. Sets with infinite support could only correspond to formulas that have an 9

10 infinite set of free names, and are therefore excluded. Moreover, the notion of finite support seems crucial for the semantics of the fresh name quantifier, ÁÜ, and consequently for the semantics of the derived hidden name quantifier HÜ. The semantics of the spatial logics of [11, 10, 6] is given in terms of sets of processes that are closed only under structural congruence, but if we try to extend that semantics to recursive formulas, we run into a problem: ÁÜ is not a monotonic operator, and could not be used together with recursion. This discussion is continued in more detail in Section Property Sets The above observations motivate the following notion of property set. A property set is a set of processes closed under structural congruence and finitely supported. Definition 4.1 (Property Set) A property set (Pset) is a set of processes such that 1. (Closure under ) For all É, if È ¾ and È É then É ¾. 2. (Finite support) There is a finite set of names Æ such that, for all Ò Ñ ¾ Æ, if È ¾ then Ò Ñ È ¾. Definition 4.2 (Collections of Property Sets) 1. È Æ is the set of all Psets supported by the finite set of names Æ. 2. È is the set of all Psets. The finite set Æ mentioned in Definition 4.1(2) is referred to as a support of the Pset. We use and to range over property sets. A support Æ plays for a Pset a role similar to (a bound on) the set of free names of a formula, and enables the definition of a notion of name freshness with respect to a possibly infinite set of processes. We use the notation Ë to denote the closure under structural congruence of an arbitrary set of processes Ë. Lemma 4.3 (Operations on Psets) For all finite Æ, 1. If Æ Æ ¼ then È Æ È Æ ¼. 2. (Bottom and Top) ¾ È Æ and È ¾ È Æ. 3. (Meet and Join) If Ë È Æ then Ì Ë ¾ È Æ and Ë Ë ¾ È Æ. 4. (Inverse) If ¾ È Æ then È Ò ¾ È Æ. Proof. See appendix. We can also extend the application of transpositions (not of arbitrary substitutions!) to Psets as follows: if is a transposition and is a Pset, define µ È µ È ¾. Note that Lemma 4.3(2-4) implies Proposition 4.4 (Lattice) For all finite Æ, we have 1. È Æ is a complete lattice. 2. È Æ is a Boolean algebra. 10

11 Remark 4.5 Note that È is neither closed under arbitrary unions nor closed under arbitrary intersections. For instance, let Ñ ½ Ñ ¾ be a linear ordering of, let È ¼ ¼ and for any ¼, È Ñ Òµ È Ë ½. Then È is finitely supported (with support Ñ ½ Ñ ) for any ¼, but ¼ È is not. Thus the collection of all Psets È is not a complete lattice. However, we can recover closure under all basic set-theoretic operations, by restricting to a cumulative hierarchy of finitely supported sets [19]. Definition 4.6 For any finite set of names Æ, a collection Ë of Psets is finitely supported by Æ if for all Ñ Ò ¾ Æ and ¾ Ë we have Ñ Ò µ ¾ Ë. Definition 4.7 È ¾ Æ names Æ. is the set of all collections of Psets supported by the finite set of Lemma 4.8 If Ë ¾ È ¾ Æ then Ë Ë ¾ È Æ and Ì Ë ¾ È Æ. Ë Ë Proof. If È ¾ Ë then È ¾ for some ¾ Ë Ë. If É È then É ¾ Ë ¾ Ë. Let Ñ Ò with Ñ Ò ¾ Æ. Since µ ¾ Ë, we also have È µ ¾ Ë Ë. The case for Ì Ë is similar. Definition 4.9 (Tensor and Unit) For every È Æ, define operations Å È Æ È Æ È Æ ½ È Æ by letting, for all ¾ È Æ Å È Exists É Ê. È É Ê and É ¾ and Ê ¾ ½ È È ¼ In [10] it is shown that the set of all -closed subsets of È gives rise to a commutative quantale. The same result still holds for domains of Psets. Proposition 4.10 (Quantale) For all finite Æ, È Æ Ë Å ½ is a commutative quantale, that is: 1. È Æ Ë is a complete join semilattice. 2. È Æ Å ½ is a commutative monoid. 3. Å Ë Ë Ë Å ¾ Ë, for all ¾ È Æ and Ë È Æ. Proof. See appendix. Lemma 4.11 (Transposing Psets) We have 1. For any process È and Pset, È ¾ µ if and only if È µ ¾. 2. ¾ È Æ if and only if µ ¾ È Æµ. 3. If Ñ Ò ¾ Æ and ¾ È Æ then Ñ Ò µ. Proof. See appendix. 11

12 Definition 4.12 (Support) Let Æ be a set of names. A Pset is supported by Æ whenever every permutation that fixes Æ also fixes. Moreover is finitely supported by Æ if supported by Æ and Æ is finite. We also have Proposition 4.13 (Least Support) Let ¾ È Æ. Then 1. There is a least set of names supp µ such that ¾ Èsupp µ. 2. For any transposition, supp µµ supp µµ. Proof. See appendix. Intuitively, the set of names supp µ represents the set of free names of the Pset (in the sense of Lemma 4.11(3)), hence supp µ is the semantic counterpart of the set fn µ of free names of a formula. Remark 4.14 We can verify that a Pset supported by Æ is finitely supported by Æ in the precise sense of [19]: A name permutation over is an injective name substitution such that µ Á µ. Let Ë be the group of all name permutations; recall that any permutation can be expressed as a composition of transpositions. For any Pset, µ ¾ È, by Lemma 4.11(2). Hence È is an Ë set. Now, let ¾ È Æ. Pick any ¾ Ë and assume that is not the identity permutation. This implies that there is some permutation ¼, such that ¼ ѵ ѵ for all Ñ ¾ and ¼ ѵ Ñ, for all Ñ ¾ ¼ µ. Assume that for all Ò ¾ Æ, Òµ Ò. Then, for all Ò ¾ Æ, ¼ Òµ Ò. We can see that Æ is disjoint from ¼ µ Á ¼ µ. Hence, ¼ can be written as a composition of transpositions ½ such that Ô Õ and Ô Õ ¾ Æ, for all ½. Therefore ¼ µ µ. This means that Æ (finitely) supports. We conclude that È is a perm µ-set with the finite support property. 4.2 Satisfaction We define the denotation of a formula by a Pset  à ¾ È Ò µ. However, since may contain free occurrences of propositional variables, its denotation depends on the denotation of such variables, which is given by a valuation. Definition 4.15 (Valuation) A valuation Ú is a mapping from a finite subset of (the propositional variables), assigning to each propositional variable in its domain Úµ a Pset. Given a formula, a valuation for is any valuation Ú such that fpv µ Úµ. Thus, the role of valuations is to interpret free propositional variables occurring in the formula. When Ú is a valuation, we write Ú to denote the valuation of domain Úµ that assigns to the propositional variable, and Ú µ to any other propositional variable. For any valuation Ú, we let fn Úµ supp Ú µµ ¾ Úµ Taking into account the extra information yielded by a valuation, we now give a refined characterization of the free names of a formula as follows 12

13 ÂFÃÚ Â ÃÚ Â ÃÚ Â ÃÚ Â µ ÃÚ È if È ¾  ÃÚ then È ¾  ÃÚ Â¼ÃÚ ½  ÃÚ Â ÃÚ Å Â ÃÚ Â º ÃÚ È Forall É if É ¾  ÃÚ then È É ¾  ÃÚ ÂÒÖ ÃÚ È Exists É È ÒµÉ and É ¾  ÃÚ Â «ÒÃÚ È ÒµÈ ¾  ÃÚ ÂÑ Ò ÃÚ È È Ñ Ò Â Ü ÃÚ ÌÒ¾ Â Ü Ò Ã Ú ÂÁÜ ÃÚ ËÒ ¾ Ò Ú µ Â Ü Ò Ã Ú Ò È Ò ¾ fn È µ µ  ÃÚ È Exists É È É and É ¾  ÃÚ Â ÃÚ Ú µ  ÃÚ Ì ¾È Â Ã Ú Figure 3: Denotation of formulas. Definition 4.16 (Free names under a valuation) If is a formula and Ú a valuation for, we define the set Ò Ú µ of free names of under Ú by Ò Ú µ fn µ supp Ú µµ ¾ fpv µ The set Ò Ú µ is used in an essential way in the definition of the semantics of the fresh name quantifier, where the quantification witness is tested for freshness with respect to the property set denoted by the formula, where the formula may contain free occurrences of propositional variables. Definition 4.17 (Denotation and Satisfaction) The denotation map  ÃÚ, inductively defined in Fig. 3, is the function that assigns a set of processes  ÃÚ to each nameclosed formula and valuation (for ) Ú. We write È Ú whenever È ¾  ÃÚ: this means that È satisfies formula under valuation Ú. The boolean connectives (F, and µ) are interpreted as expected, while the spatial operations related to composition (¼, ) are interpreted in terms of the quantale operations in Definition 4.9. Then º is given the expected semantics for the adjunct operator of the tensor. The spatial operations related to name hiding (revelation and hiding) are defined along similar lines. In the semantics of name quantification the quantified name variable is ranged over the set of all names. The semantics given to the freshness quantifier is such that a process È satisfies ÂÁÜ ÃÚ if and only if È satisfies Â Ü Ò ÃÚ for some name Ò fresh in and È : this is the reason for subtracting È Ò ¾ fn È µ, as further discussed in Section 5. Since in general may contain free occurrences of propositional variables, freshness with relation to formula must be defined in terms of Ò Ú µ, as already mentioned; this is justified in more detail in Section 5.2, where alternative definitions for the semantics of ÁÜ are also discussed. The denotation of second order quantification is also defined as expected, except that the quantified propositional variable ranges over all property sets (rather than all sets of processes). 13

14 We now show that the denotation map is well-defined. Since we are considering formulas up to «-congruence, we start by verifying that the denotation map is welldefined on the corresponding equivalence classes. Lemma 4.18 For all formulas and valuations Ú for and, if «, then  ÃÚ Â ÃÚ. Proof. Induction on the structure of. Note that assignments to propositional variables that do not occur free in the interpreted formula do not affect its denotation. Therefore, valuations can always be weakened and thinned whenever appropriate. Remark 4.19 For any formula, Pset and valuation Ú for, if ¾ fpv µ then  ÃÚ Â Ã Ú. We now extend the application of transpositions to valuations, this is done in the expected way: when Ú is a valuation, let Úµ be the valuation with same domain as Ú and defined by Úµ µ Ú µµ, for all ¾ Úµ. Lemma 4.20 For any formula, valuation Ú and transposition, if Ñ Ò and Ñ Ò ¾ fn Úµ then  ÃÚ Â Ã Úµ. Proof. For any ¾ Úµ we have Ñ Ò ¾ supp Ú µµ and Ú µ ¾ Èsupp Ú µµ. Thus supp µµ supp µ by Lemma 4.11(3). Hence Úµ Ú. Fundamental properties of the denotation mapping are stated in the following main theorem, from which all correctness properties of the semantics follow. Theorem 4.21 For all formulas and appropriate valuations Ú 1.  ÃÚ ¾ È ÒÚ µ. 2. For all transpositions,  ÃÚµ  µã Úµ. Proof. See Appendix. The property expressed in Theorem 4.21(2) corresponds to the equivariance property of [19], and essentially means that the denotation of a formula depends on the distinctions between the names that occur on it, rather than on the particular identities of such names. Lemma 4.22 For any formula and valuation Ú for we have supp  ÃÚµ Ò Ú µ Proof. By Theorem 4.21(1)  ÃÚ ¾ È ÒÚ µ; hence by Proposition 4.13 there is a least set Æ supp  ÃÚµ such that  ÃÚ ¾ È Æ. So supp  ÃÚµ Ò Ú µ. Remark 4.23 By inspection of the proof of Theorem 4.21 we can verify Assume  ÃÚ ¾ È Æ and  ÃÚ ¾ È Å. Then ÂFÃÚ ¾ È Â¼ÃÚ ¾ È ÂÔ Õ ÃÚ ¾ È Ô Õ Â ÃÚ ¾ È Æ Å Â µ ÃÚ ¾ È Æ Å Â ÃÚ ¾ È Æ Å Â º ÃÚ ¾ È Æ Å ÂÒÖ ÃÚ ¾ È Æ Ò Â «ÒÃÚ ¾ È Æ Ò Â ÃÚ ¾ È Æ Â ÃÚ ¾ Èsupp Ú µµ 14

15 If Â Ü Ò ÃÚ ¾ È Æ Ò for all Ò ¾, then Â Ü ÃÚ ¾ È Æ If Â Ü Ò ÃÚ ¾ È Æ Ò for all Ò ¾ Ò Ú µ, then ÂÁÜ ÃÚ ¾ È Æ If Â Ã Ú ¾ È ¾ È ¾ Æ then Â Ã Ú ¾ È Æ Lemma 4.24 Let be any formula, Ú a valuation for and, and any formula in which does not occur free. Then  ÃÚ Â Ã Ú Â Ã Ú Proof. Induction on the structure of formula. Another consequence of the closure property stated in Theorem 4.21(2) is that the relation of satisfaction between processes and formulas is closed under fresh name renaming. Lemma 4.25 (Fresh renaming) Let È be a process and a closed formula such that È. If Ñ ¾ fn µ fn È µ then È Ò Ñ Ò Ñ. Proof. Since Ñ ¾ fn È µ fn µ, by Lemma 2.8(2) we have È Ò Ñ È Ò Ñ, and Ò Ñ Ò Ñ. We conclude by Theorem 4.21(2). It should be stressed that the use of transpositions, as suggested to us by A. Pitts, together with the notion of support, yields for Lemma 4.25 a proof that is much simpler than direct ones (e.g., [2, 10]). Further motivation and alternatives for the present semantics will be discussed in the next sections Basic Derived Connectives Some derived connectives of basic interest are defined as shown next. µ F (Negation) T F (True) µ µ (Disjunction) µ (Decomposition) Ü Ü (Existential quantification) (Second order existential quantification) º F (Unsatisfiability) (Validity) c ÖT (Free name) ¼ c º c «¼ µ (Inequality) ¼ ¼ µ (Equality) (All next) Standard operations of the classical predicate calculus, namely (Negation), Ü (Existential quantification), (Disjunction) and T (True) are defined as expected. Another interesting connective is, the DeMorgan dual of composition, which supports the definition of a form of spatial quantification. A process satisfies if and only if every component of È with respect to composition, satisfies either or. A process È satisfies if there does not exists any process É that satisfies. Hence is valid if some process satisfies [10]. A process satisfies c if the name denoted by is free in it [11]. Then, any process satisfies ¼ if, in presence of a process 15

16 containing free, if we hide ¼ we still have a process that contains free: this can only hold true if ¼ and ¼ denote distinct names. We also have the modality, which is the dual of : a process satisfies if and only if all processes to which it reduces in one step satisfy. Proposition 4.26 For every process È and names Ò Ô we have 1. È ¾  c ÒÃÚ if and only if Ò ¾ fn È µ. 2. È ¾ ÂÒ ÔÃÚ if and only if Ò Ô. Proof. 1. See [11]. 2. We verify that È ¾  c Ò º c Ò«ÔµÃÚ if and only if Ò Ô. Suppose È ¾  c Ò º c Ò«ÔµÃÚ. Then, for every É such that Ò ¾ fn ɵ we have É È ¾  c Ò«ÔÃÚ. This implies Ò ¾ fn Ôµ É È µµ, and thus Ò Ô. Conversely, if Ò Ô and Ò ¾ fn ɵ then Ò ¾ fn Ôµ É È µµ and Ò ¾ fn É È µ, for all È. Thus, for every É such that Ò ¾ fn ɵ, we have É È ¾  c Ò«ÔÃÚ for all È. 4.3 Validity We now introduce a notion of logical validity. A formula is valid if all of its ground instances, under all valuations, are satisfied by all processes. Definition 4.27 (Valid Formula) A formula is valid if for all substitutions with fv µ µ, and for all valuations Ú such that fpv µ Úµ, we have  µãú È. We use the meta-level statement valid µ to assert validity of formula. Logical validity satisfies the following general principles. Proposition 4.28 (Instantiation) Let be any formula context. We have 1. For any and formula, valid µ µ valid Ü µ. 2. For any formula, valid µ µ valid µ Proof. 1. Assume valid µ. Then for all substitutions where fv µ µ, for all valuations Ú such that fpv µ Úµ, we have È Â µãú. Let ¼ be any substitution with fv Ü µ ¼ µ and define ¼ Ü Æ Ü ¼ µ. Now, fv µ µ. Thus È Â µãú for any appropriate valuation Ú. Since µ ¼ Ü µ, we are done. 2. Similar to proof of Lemma 4.29 (induction in the size of ). Lemma 4.29 (Substitutivity) Let  µãú  µãú for all substitutions and valuations Ú, and let be a formula context. Then, for all substitutions and valuations Û we have  µãû  µãû. Proof. See appendix. A direct consequence of substitutivity is Proposition 4.30 (Replacement of equivalents) Let be any formula context. We have valid µ µ valid µ. Proof. Assume valid µ. Then  µãú  µãú for any valuation Ú for and substitution. Let Û be any valuation for ; we must show that  µãû  µãû, for any substitution. But this follows directly from Lemma

17 5 Fresh and Hidden Name Quantification In this section the semantics of Section 4 is used to investigate basic properties of the fresh name quantifier and of the derived hidden name quantifier. 5.1 The Fresh Name Quantifier As we have seen, freshness plays a central role in the spatial logic, but uses of the freshness quantifier ÁÜ can be rather subtle. Consider, as an example, the formula ÁÜ Ü Ñ, satisfied by any process È such that, for any Ò fresh in È and different from Ñ, È satisfies Ò Ñ. But if È satisfies Ò Ñ, it must be congruent to Ò Ñ, and hence it must contain Ò. Therefore, Ò is not fresh in È, a contradiction. In fact, the denotation of ÁÜ Ü Ñ is empty. This shows that many simple uses of Á are vacuous, when the fresh name maps directly to a free name of the process. There are, however, two basic ways of making good use of the fresh quantifier. The first way is to use Á in conjunction with Ö, so that the fresh name is used to reveal a restricted name of the process (then the fresh name does not map to a free name of the original process). In this situation, we definitely do not want the name used to reveal a restricted name to clash with some other name of the process. This is one of the reasons that motivates the use of Ò È Ò ¾ fn È µ in the semantics of ÁÜ (Fig. 3), to eliminate such a possibility. The combination of Á and Ö is discussed further in Section 5.3. The second way is to use Á in conjunction with º, so that the fresh name maps to a free name of the context, but not of the process. For example, consider the formula ÁÜ Ý Ü Ý º Ü Ý Tµµ This formula holds of all processes È that verify the following: if a message on a fresh channel Ü is composed in parallel with È, then no reduction from the resulting process consumes such a message. Intuitively, we expect such a property to hold of every process. In fact, let È be any process, Ò some name not free in È, and Ñ any name. Pick any process É such that É Ú Ò Ñ. So, É Ò Ñ. Now, we verify that if É È Ê, then Ê Ò Ñ È ¼, where È È ¼, because È Ò Õµ Ê ¼ Ê ¼¼. Thus È Ú Ò Ñ º Ò Ñ Tµ. Since Ñ is arbitrary, È Ú Ý Ò Ý º Ò Ý Tµ. Since Ò is neither free in È nor belongs to Ò Ú Ý Ü Ý º Ü Ý Tµµ, we conclude È Ú ÁÜ Ý Ü Ý º Ü Ý Tµ. A fundamental consequence of closure of satisfaction under fresh renaming (Lemma 4.25) is the following characterisation of fresh name quantification, that makes clear the universal/existential ambivalence of freshness: if some property holds of a fresh name, it holds of all fresh names. Proposition 5.1 (Gabbay-Pitts Property) Let ÁÜ be a name-closed formula, È a process, and Ú a valuation for ÁÜ. Then, the following statements are equivalent 1. È Ú ÁÜ. 2. There is Ò ¾ fn È µ Ò Ú µ such that È Ú Ü Ò. 3. For all Ò ¾ fn È µ Ò Ú µ we have È Ú Ü Ò. Proof. (½ µ ¾) By definition. (¾ µ ) By Remark 4.19, there is Ò such that Ò ¾ fn È µ Ò Ú µ and È Ú Ü Ò, where Ú is the restriction of Ú to 17

18 the free propositional variables of. Now, pick Ñ ¾ fn È µ Ò Ú µ, and let Ñ Ò. By Theorem 4.21(2), we conclude È µ Ú µ Ü Ò µ, that is, È Ú µ Ü Ñ. Note that Ñ Ò ¾ fn Ú µ; hence È Ú Ü Ñ, by Lemma 4.20(1). Hence È Ú Ü Ñ, by Remark ( µ ½) Immediate. A corollary of the previous proposition is Proposition 5.2 Let be a name-closed formula and Ú a valuation for and. We have 1. Â Ü ÃÚ ÂÁÜ ÃÚ Â Ü ÃÚ 2. ÂÁÜ µ µãú ÂÁÜ µ ÁÜ ÃÚ Proof. 2. (Left to right) Assume È ¾ ÂÁÜ µ µãú and È ¾ ÂÁÜ ÃÚ. Then È ¾ Â Ü Ò ÃÚ for some Ò ¾ fn È µ Ò Ú µ, and È ¾ Â Ü Ñ µ Ü Ñ ÃÚ for some Ñ ¾ fn È µ Ò Ú µ µ. By Proposition 5.1(3), for all Ò ¾ fn È µ Ò Ú µ we have È ¾ Â Ü Ò ÃÚ. In particular, È ¾ Â Ü Ñ ÃÚ, thus È ¾ Â Ü Ñ ÃÚ. We conclude È ¾ ÂÁÜ ÃÚ. (Right to left) Assume È ¾ ÂÁÜ µ ÁÜ ÃÚ. Pick Ñ ¾ fn È µ Ò Ú µ µ and assume È ¾ Â Ü Ñ ÃÚ. Then È ¾ ÂÁÜ ÃÚ, this implies È ¾ ÂÁÜ ÃÚ. By Proposition 5.1(3), È ¾ Â Ü Ñ ÃÚ. Hence È ¾ ÂÁÜ µ µãú. Fresh quantification distributes over all boolean connectives, not only implication (cf., Proposition 5.2(2), it suffices to note that (trivially) ÂÁÜ FÃÚ ÂFÃÚ). In the next lemma, we list some other distribution properties of freshness quantification. Lemma 5.3 (Distribution properties of Á) We have 1. ÂÁÜ µãú ÂÁÜ ÁÜ ÃÚ 2. ÂÁÜ º µãú ÂÁÜ º ÁÜ ÃÚ 3. ÂÁÜ ÃÚ Â ÁÜ ÃÚ 4. ÂÁÜ ÒÖ ÃÚ ÂÒÖÁÜ ÃÚ 5. ÂÁÜ Ý ÃÚ Â Ý ÁÜ ÃÚ 6. ÂÁÜ ÃÚ Â ÁÜ ÃÚ Proof. See Appendix. It is not hard to see that properties 5. and 6. above are not strict equalities: for a counterexample to Ý ÁÜ ÁÜ Ý consider, e.g., Ü Ý. 5.2 Discussion In [19] a Á-quantifier is defined, such that ÁÜ Ò Ü Ò is cofinite There is a quite close connection between this Á-quantifier and ours, superficial differences being related to the fact that we are working in a modal logic. In our case, we have Proposition 5.4 È Ú ÁÜ if and only if Ò È Ú Ü Ò is cofinite. Proof. (Left to right) Pick È Ú ÁÜ. Thus there is Ò ¾ Ò Ú µ fv È µ such that È Ú Ü Ò. By Gabbay-Pitts (Proposition 5.1(3)) we have that for all Ò if Ò ¾ Ò Ú µ fv È µ then È Ú Ü Ò. Hence Ò È Ú Ü Ò is cofinite. (Right to left) Assume Ë Ò È Ú Ü Ò is cofinite. Then, there 18

19 is a finite set Å Ò Ëµ such that for all Ò, if Ò ¾ Å then È Ú Ü Ò. Pick Ñ ¾ Ò Ú µ fn È µ Å. Then È Ú Ü Ñ, hence È Ú ÁÜ. Now, let us define the following (meta-level) quantifier Á Ü Ò ¾ Ü Ò is cofinite where is a meta-level statement of the (informal) theory of Psets of Section 4. Note that Á Ü is defined exactly as the Á-quantifier of Gabbay-Pitts. Then, we can read the statement of the previous proposition as: È ¾ ÂÁÜ ÃÚ if and only if Á Ò È ¾ Â Ü Ò ÃÚµ It is interesting to discuss alternative freshness quantifiers. Our semantics of ÁÜ is such that È Ú ÁÜ holds if and only if there is a name Ò, fresh both in and È, such that È Ü Ò (cf., Proposition 5.1). It is natural then to ask what happens if Ò only is required to be fresh in. Let us define for this propose a different quantifier FÜ where È ¾ ÂFÜ Ã if and only if Ò ¾ fn µ such that È ¾ Â Ü Ò Ã One could then attempt to define ÁÜ as FÜ c ܵ. Although ÂFÜ Ã is a Pset, the main problems with FÜ, with respect to ÁÜ, are a failure of monotonicity (Proposition 6.5), a failure of the substitutivity property (Lemma 4.29), and a failure of the Gabbay-Pitts property (Proposition 5.1) relating to a proper notion of freshness. For substitutivity, we have that ÂÒ Ò Ò Ò Ã ÂTÃ. So, we would expect that ÂFÜ Ò Ò Ò Ò µ Ü Ü µã ÂFÜ T Ü Ü µã. But Ò Ò ¾ ÂFÜ T Ü Ü µã, while Ò Ò ¾ ÂFÜ Ò Ò Ò Ò µ Ü Ü µã. So, FÜ is not a proper compositional logical operator. While, rather amazingly, ÁÜ is. For monotonicity, consider Õ Õ Ô Ô Õ Õ Note that ¾ È Ô Õ, Ò Ú Ü Ü µ Õ and Ò Ú Ü Ü µ Ô Õ. On the one hand, Õ Õ Ô Ô ¾ ÂFÜ Ü Ü Ã Ú, because there is Ò ¾ Õ (namely Ô) such that Õ Õ Ô Ô ¾ Â Ò Ò Ã Ú. On the other hand, we have Õ Õ Ô Ô ¾ ÂFÜ Ü Ü µã Ú, because there is no Ò out of Ô Õ such that Õ Õ Ô Ô ¾ Â Ò Ò Ã Ú. So ÂFÜ Ü Ü µã Ú ÂFÜ Ü Ü µã Ú. We conclude that FÜ cannot be used with recursive formulas. For the Gabbay-Pitts property, consider whether Ô Ô ¾ ÂFÜ Ü Ü Ã. This means, by definition: there is a name Ò such that Ô Ô ¾ Â Ò Ò Ã. This is true, take any Ò Ô. If we had a Gabbay-Pitts property for FÜ we would obtain that for all names Ò, Ô Ô ¾ ÂÒ Ò Ã. But this is false: take Ò Ô. So, by the interpretation of the Gabbay-Pitts property, the candidate FÜ is not a proper freshness quantifier. 5.3 The Hidden Name Quantifier When combined with revelation, the fresh name quantifier gives rise to a natural operation of quantification over hidden (restricted) names in a process. Intuitively, a hidden name is revealed under a fresh identity, and then a property is asserted of the process where the name is hidden. HÜ ÁÜ ÜÖ 19

20 A formula HÜ reads there is a restricted name Ü such that holds for the process under the restriction. From the above definition, we get the following direct semantic characterization of the name-closed formula HÜ ÂHÜ ÃÚ É É ÒµÈ and Ò ¾ fn ɵ Ò Ú µ and È ¾ Â Ü Ò ÃÚ The hidden name quantifier makes it possible to express properties of processes that depend on (or need to mention) some secret name. For a quite simple example, consider the closed formula Ý HÜ Ý Ü Tµ We can verify that a process satisfies this formula if there is some name Ò such that È satisfies the formula HÜ Ò Ü Tµ. But this means that there is some name Ñ, fresh with respect to È and HÜ Ò Ü Tµ, such that È ÒµÉ and É Ò Ñ Ê for some É and Ê. In summary, È satisfies Ý HÜ Ý Ü Tµ if and only if È Ñµ Ò Ñ Êµ for some Ñ and Ò Ñ (hence Ò is public). We conclude that the formula Ý HÜ Ý Ü Tµ is satisfied by those processes that are ready to send a secret name over a public channel. As a further example, let Ü be some formula with a free occurrence of the name variable Ü, and consider Keeps Ü µ HÜ Ü T º HÜ Ü Tµ A process that satisfies Keeps Ü µ is always able to guarantee, until the next step, persistence of property with respect to some secret Ü it owns, even when attacked by some other arbitrary process. Let É be the process ѵ Ñ Ò Ôµ Ñ Õµ Ñ Ô µ We have fn ɵ Ò. Now define Msg Ü Ýµ Ü Ý Tµ. We can verify that É satisfies Keeps Ý Msg Ü Ýµµ. As a further example, consider the formula NoRes HÜ c Ü A process È satisfies NoRes if and only if it is not the case that there is a process É and a name Ò such that È ÒµÉ and Ò ¾ fn ɵ. In other words, È satisfies NoRes if and only if for all processes É and names Ò such that È ÒµÉ we have Ò ¾ fn ɵ. Intuitively, this means that È has no genuine restricted hidden name at the outermost level, because if È ÒµÉ for some É and Ò, then È É (Ò ¾ fn ɵ implies ÒµÉ É). So, we will call restriction-free any process that satisfies NoRes. For instance Ò Ñ satisfies NoRes, and so does ÒµÑ Ñ if Ñ Ò, but ÒµÒ Ò does not. Lemma 5.5 (Some properties of H) We have 1. ÂHÜ c ܵÃÚ ÂÁÜ ÃÚ 2. If Ü ¾ fn µ then ÂHÜ c ܵµÃÚ Â HÜ µ ÃÚ 3. ÂHÜ ÁÜ ÃÚ ÂHÜ µãú 4. ÂHÜ ÃÚ Â HÜ ÃÚ 20

21 Proof. 1. (Left to right inclusion) Pick some process È ¾ ÂHÜ c ܵÃÚ. By the characterization given above, this means that È ÒµÉ for some É and Ò such that Ò ¾ fn È µ Ò Ú µ and É ¾ Â Ü Ò c ÒÃÚ. But then, Ò ¾ fn ɵ and É ¾ Â Ü Ò ÃÚ. We conclude È ÒµÉ É, by Proposition 2.12(2). Therefore, È ¾ ÂÁÜ ÃÚ. In the other direction the proof is similar. 2. (Left to right inclusion) Let È ¾ ÂHÜ c ܵµÃÚ. Then È Òµ É Êµ, here Ò ¾ fn È µ Ò Ú HÜ c ܵµµ, É Ú, Ê Ú and Ò ¾ fn ʵ. Then È ÒµÉ Ê, and we conclude È Ú HÜ. The converse inclusion is also immediate, using Proposition (Left to right inclusion) Let È ¾ ÂHÜ ÁÜ ÃÚ. Then È É Ê where for all Ò ¾ fn ɵ Ò Ú µ there is É ¼ such that É ÒµÉ ¼ and É ¼ Ú Ü Ò, and Ê Ü Ô for all Ô ¾ fn ʵ Ò Ú µ, by Proposition 5.1. Pick Ñ ¾ fn ɵ Ò Ú µ Ò Ú µ fn ʵ. Hence Ê Ú Ü Ñ. Moreover, there is É ¼¼ such that É ÑµÉ ¼¼ and É ¼¼ Ú Ü Ô. So É ¼¼ Ê µ Ü Ñ, and thus ѵ É ¼¼ ʵ HÜ µ. To conclude, note that È Ñµ É ¼¼ ʵ. 4. (Left to right inclusion) Pick some process È ¾ ÂHÜ ÃÚ. So, È ÒµÉ for some É and Ò such that É É ¼ and É ¼ ¾ Â Ü Ò ÃÚ, where Ò is fresh with respect to È and. But then È ÒµÉ ¼. Since Ò is also fresh w.r.t. ÒµÉ ¼, we conclude ÒµÉ ¼ ¾ ÂHÜ ÃÚ. Hence È ¾  HÜ ÃÚ. (Right to left inclusion) Take some process È ¾  HÜ ÃÚ. Then there is É such that È É and É ¾ ÂHÜ ÃÚ. Then É ÒµÊ where Ê ¾ Â Ü Ò ÃÚ and Ò ¾ fn ɵ Ò Ú µ. Now, since È É, by Proposition 2.15(3) there are È ¼ and Ê ¼ such that È ÒµÈ ¼, È ¼ Ê ¼ and Ê ¼ Ê. This means that È ¾ ÂHÜ Ã. In the next section, we give further examples using the hidden name quantifier together with recursion. 6 Recursive Definitions The possibility of defining properties by induction and coinduction is a major source of expressiveness of our spatial logic. Of particular interest is the combination of properties involving recursion and freshness. 6.1 Encoding Recursion We show that recursive definitions can be expressed in the logic via second order quantification and the guarantee operator. We begin by encoding validity of a formula by (see Section 4.2.1): µ Fµ º F (Validity) We compute:  ÃÚ Â µ Fµ º FÃÚ È Forall Ê Ê ¾  µ FÃÚ µ È Ê ¾ È Forall Ê Ê ¾  µ FÃÚ È Forall Ê Ê ¾  ÃÚ if  ÃÚ È then È else Next, we can use  µ µãú to say that  ÃÚ is included in  ÃÚ: µ µ µ (Entailment) 21

22 Then  µ ÃÚ Â µ µãú if  µ ÃÚ È then È else if È È ¾  ÃÚ µ È ¾  ÃÚ È then È else if  ÃÚ Â ÃÚ then È else Finally, we can use the following formula to define the greatest property such that, provided is monotonic in : µ µ (Greatest fixpoint) We can verify Ë Â ÃÚ Â µ µãú ¾È if Â Ã Ú then È else µ Ë ¾ È and Â Ã Ú We now show that the last line above defines a greatest fixpoint. Lemma 6.1 For any formula and valuation Ú with fpv µ Úµ the mapping Ú given by µ Ú µ µ Â Ã Ú is a mapping È È. Proof. Let ¾ È. Then ¾ È Å for some finite set of names Å. Let Å ¼ Å Ò Ú µ. Since Ò Ú µ Å Å ¼ by Theorem 4.21(1) we conclude Â Ã Ú ¾ È Å Å ¼ È. A mapping È È is monotonic if implies µ µ for all Psets and. For any mapping È È, a fixpoint of is a Pset ¾ È such that µ. The -greatest (respectively -smallest) fixpoint of, if it exists, is denoted by gfix µ (respectively lfix µ). We say that a formula is monotonic in if for all valuations Ú the mapping Ú is monotonic. We have µ Lemma 6.2 Let be a formula monotonic in. Then Ú has a unique greatest µ fixpoint given by gfix Ú µ µ Â Ã Ú Proof. First, note that although È is not a complete lattice we still have  ÃÚ ¾ È by Theorem 4.21 (1), since is definable in the logic. Let  ÃÚ and Ú µ µ  à Ú. We verify that. We first check that. If È ¾ then È ¾ for some ¾ È such that  à Ú. Since, by monotonicity, we have Â Ã Ú and thus È ¾. On the other hand, since, by monotonicity, we have Â Ã Ú Â Ã Ú. Then  ÃÚ. Finally, if some ¾ È verifies Â Ã Ú then. Hence we conclude the result. Note that Lemmas 4.24 and 6.2 imply soundness of the unfolding principle for, that is we have  ÃÚ Â ÃÚ. Similarly we can define the least fixpoint operator µ µ µ (Least fixpoint) and note that  ÃÚ Ì ¾ È and  à Ú. We then have 22

On Urquhart s C Logic

On Urquhart s C Logic On Urquhart s C Logic Agata Ciabattoni Dipartimento di Informatica Via Comelico, 39 20135 Milano, Italy ciabatto@dsiunimiit Abstract In this paper we investigate the basic many-valued logics introduced

More information

General Patterns for Nonmonotonic Reasoning: From Basic Entailments to Plausible Relations

General Patterns for Nonmonotonic Reasoning: From Basic Entailments to Plausible Relations General Patterns for Nonmonotonic Reasoning: From Basic Entailments to Plausible Relations OFER ARIELI AND ARNON AVRON, Department of Computer Science, School of Mathematical Sciences, Tel-Aviv University,

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

More information

Chapter 4: Computation tree logic

Chapter 4: Computation tree logic INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification

More information

A Language for Task Orchestration and its Semantic Properties

A Language for Task Orchestration and its Semantic Properties DEPARTMENT OF COMPUTER SCIENCES A Language for Task Orchestration and its Semantic Properties David Kitchin, William Cook and Jayadev Misra Department of Computer Science University of Texas at Austin

More information

A Propositional Dynamic Logic for Instantial Neighborhood Semantics

A Propositional Dynamic Logic for Instantial Neighborhood Semantics A Propositional Dynamic Logic for Instantial Neighborhood Semantics Johan van Benthem, Nick Bezhanishvili, Sebastian Enqvist Abstract We propose a new perspective on logics of computation by combining

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

TREE LOGIC WITH RECURSION AND MODEL CHECKING ALGORITHM

TREE LOGIC WITH RECURSION AND MODEL CHECKING ALGORITHM TREE LOGIC WITH RECURSIO AD MODEL CHECKIG ALGORITHM Taolue Chen Tingting Han Jian Lu State Key Laboratory of ovel Software Technology, anjing University, anjing, Jiangsu, P.R.China 210093 email: ctl@ics.nju.edu.cn

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

A generalization of modal definability

A generalization of modal definability A generalization of modal definability Tin Perkov Polytechnic of Zagreb Abstract. Known results on global definability in basic modal logic are generalized in the following sense. A class of Kripke models

More information

Propositional Logic Language

Propositional Logic Language Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite

More information

Chapter 6: Computation Tree Logic

Chapter 6: Computation Tree Logic Chapter 6: Computation Tree Logic Prof. Ali Movaghar Verification of Reactive Systems Outline We introduce Computation Tree Logic (CTL), a branching temporal logic for specifying system properties. A comparison

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Proving Completeness for Nested Sequent Calculi 1

Proving Completeness for Nested Sequent Calculi 1 Proving Completeness for Nested Sequent Calculi 1 Melvin Fitting abstract. Proving the completeness of classical propositional logic by using maximal consistent sets is perhaps the most common method there

More information

Bisimulation for conditional modalities

Bisimulation for conditional modalities Bisimulation for conditional modalities Alexandru Baltag and Giovanni Ciná Institute for Logic, Language and Computation, University of Amsterdam March 21, 2016 Abstract We give a general definition of

More information

Syntactic Characterisations in Model Theory

Syntactic Characterisations in Model Theory Department of Mathematics Bachelor Thesis (7.5 ECTS) Syntactic Characterisations in Model Theory Author: Dionijs van Tuijl Supervisor: Dr. Jaap van Oosten June 15, 2016 Contents 1 Introduction 2 2 Preliminaries

More information

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Homomorphism Preservation Theorem. Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain

Homomorphism Preservation Theorem. Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain Homomorphism Preservation Theorem Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain Structure of the talk 1. Classical preservation theorems 2. Preservation theorems in finite model

More information

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

More information

The Connectivity of Boolean Satisfiability: Computational and Structural Dichotomies

The Connectivity of Boolean Satisfiability: Computational and Structural Dichotomies The Connectivity of Boolean Satisfiability: Computational and Structural Dichotomies Parikshit Gopalan Georgia Tech. parik@cc.gatech.edu Phokion G. Kolaitis Ý IBM Almaden. kolaitis@us.ibm.com Christos

More information

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations preprint Lauri Hella University of Tampere Antti Kuusisto University of Bremen Abstract This article investigates

More information

Tree sets. Reinhard Diestel

Tree sets. Reinhard Diestel 1 Tree sets Reinhard Diestel Abstract We study an abstract notion of tree structure which generalizes treedecompositions of graphs and matroids. Unlike tree-decompositions, which are too closely linked

More information

A Graph Rewriting Semantics for the Polyadic π-calculus

A Graph Rewriting Semantics for the Polyadic π-calculus A Graph Rewriting Semantics for the Polyadic π-calculus BARBARA KÖNIG Fakultät für Informatik, Technische Universität München Abstract We give a hypergraph rewriting semantics for the polyadic π-calculus,

More information

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

Applied Logic for Computer Scientists. Answers to Some Exercises

Applied Logic for Computer Scientists. Answers to Some Exercises Applied Logic for Computer Scientists Computational Deduction and Formal Proofs Springer, 2017 doi: http://link.springer.com/book/10.1007%2f978-3-319-51653-0 Answers to Some Exercises Mauricio Ayala-Rincón

More information

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION KRIPKE S THEORY OF TRUTH RICHARD G HECK, JR 1. INTRODUCTION The purpose of this note is to give a simple, easily accessible proof of the existence of the minimal fixed point, and of various maximal fixed

More information

Proof Theoretical Studies on Semilattice Relevant Logics

Proof Theoretical Studies on Semilattice Relevant Logics Proof Theoretical Studies on Semilattice Relevant Logics Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω 1 Preliminaries In this chapter we first give a summary of the basic notations, terminology and results which will be used in this thesis. The treatment here is reduced to a list of definitions. For the

More information

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS 1 Language There are several propositional languages that are routinely called classical propositional logic languages. It is due to the functional dependency

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

A Tableau Calculus for Minimal Modal Model Generation

A Tableau Calculus for Minimal Modal Model Generation M4M 2011 A Tableau Calculus for Minimal Modal Model Generation Fabio Papacchini 1 and Renate A. Schmidt 2 School of Computer Science, University of Manchester Abstract Model generation and minimal model

More information

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Chapter 2 An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Assertions In this chapter, we give a more detailed exposition of the assertions of separation logic: their meaning,

More information

First-order resolution for CTL

First-order resolution for CTL First-order resolution for Lan Zhang, Ullrich Hustadt and Clare Dixon Department of Computer Science, University of Liverpool Liverpool, L69 3BX, UK {Lan.Zhang, U.Hustadt, CLDixon}@liverpool.ac.uk Abstract

More information

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking Jaromír Malenko and Petr Štěpánek Charles University, Malostranske namesti 25, 11800 Prague, Czech Republic, Jaromir.Malenko@mff.cuni.cz,

More information

Boolean Algebras. Chapter 2

Boolean Algebras. Chapter 2 Chapter 2 Boolean Algebras Let X be an arbitrary set and let P(X) be the class of all subsets of X (the power set of X). Three natural set-theoretic operations on P(X) are the binary operations of union

More information

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007)

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007) Löwenheim-Skolem Theorems, Countable Approximations, and L ω 0. Introduction David W. Kueker (Lecture Notes, Fall 2007) In its simplest form the Löwenheim-Skolem Theorem for L ω1 ω states that if σ L ω1

More information

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages)

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages) Krivine s Intuitionistic Proof of Classical Completeness (for countable languages) Berardi Stefano Valentini Silvio Dip. Informatica Dip. Mat. Pura ed Applicata Univ. Torino Univ. Padova c.so Svizzera

More information

Exercises 1 - Solutions

Exercises 1 - Solutions Exercises 1 - Solutions SAV 2013 1 PL validity For each of the following propositional logic formulae determine whether it is valid or not. If it is valid prove it, otherwise give a counterexample. Note

More information

Design of Distributed Systems Melinda Tóth, Zoltán Horváth

Design of Distributed Systems Melinda Tóth, Zoltán Horváth Design of Distributed Systems Melinda Tóth, Zoltán Horváth Design of Distributed Systems Melinda Tóth, Zoltán Horváth Publication date 2014 Copyright 2014 Melinda Tóth, Zoltán Horváth Supported by TÁMOP-412A/1-11/1-2011-0052

More information

arxiv:math/ v1 [math.lo] 5 Mar 2007

arxiv:math/ v1 [math.lo] 5 Mar 2007 Topological Semantics and Decidability Dmitry Sustretov arxiv:math/0703106v1 [math.lo] 5 Mar 2007 March 6, 2008 Abstract It is well-known that the basic modal logic of all topological spaces is S4. However,

More information

First-Order Logic. Chapter Overview Syntax

First-Order Logic. Chapter Overview Syntax Chapter 10 First-Order Logic 10.1 Overview First-Order Logic is the calculus one usually has in mind when using the word logic. It is expressive enough for all of mathematics, except for those concepts

More information

A New Category for Semantics

A New Category for Semantics A New Category for Semantics Andrej Bauer and Dana Scott June 2001 Domain theory for denotational semantics is over thirty years old. There are many variations on the idea and many interesting constructs

More information

A Discrete Duality Between Nonmonotonic Consequence Relations and Convex Geometries

A Discrete Duality Between Nonmonotonic Consequence Relations and Convex Geometries A Discrete Duality Between Nonmonotonic Consequence Relations and Convex Geometries Johannes Marti and Riccardo Pinosio Draft from April 5, 2018 Abstract In this paper we present a duality between nonmonotonic

More information

MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC

MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC Bulletin of the Section of Logic Volume 45:3/4 (2016), pp. 143 153 http://dx.doi.org/10.18778/0138-0680.45.3.4.01 Anna Glenszczyk MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC Abstract We investigate

More information

A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice

A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice Luis Pino*, Filippo Bonchi** and Frank Valencia* (Presented by: Jorge A. Pe rez) *E quipe Come te, LIX, Laboratoire

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Part V. 17 Introduction: What are measures and why measurable sets. Lebesgue Integration Theory

Part V. 17 Introduction: What are measures and why measurable sets. Lebesgue Integration Theory Part V 7 Introduction: What are measures and why measurable sets Lebesgue Integration Theory Definition 7. (Preliminary). A measure on a set is a function :2 [ ] such that. () = 2. If { } = is a finite

More information

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

More information

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Packet #1: Logic & Proofs. Applied Discrete Mathematics Packet #1: Logic & Proofs Applied Discrete Mathematics Table of Contents Course Objectives Page 2 Propositional Calculus Information Pages 3-13 Course Objectives At the conclusion of this course, you should

More information

Part 4. Spatial Logics. Luca Cardelli Andy Gordon Luis Caires

Part 4. Spatial Logics. Luca Cardelli Andy Gordon Luis Caires Part 4 Spatial Logics Luca Cardelli Andy Gordon Luis Caires Properties of Secure Mobile Computation We would like to express properties of unique, private, hidden, and secret names: The applet is placed

More information

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

More information

On minimal models of the Region Connection Calculus

On minimal models of the Region Connection Calculus Fundamenta Informaticae 69 (2006) 1 20 1 IOS Press On minimal models of the Region Connection Calculus Lirong Xia State Key Laboratory of Intelligent Technology and Systems Department of Computer Science

More information

The Locally Nameless Representation

The Locally Nameless Representation Noname manuscript No. (will be inserted by the editor) The Locally Nameless Representation Arthur Charguéraud Received: date / Accepted: date Abstract This paper provides an introduction to the locally

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

Expressing Security Properties Using Selective Interleaving Functions

Expressing Security Properties Using Selective Interleaving Functions Expressing Security Properties Using Selective Interleaving Functions Joseph Halpern and Sabina Petride August 8, 2008 Abstract McLean s notion of Selective Interleaving Functions (SIFs) is perhaps the

More information

Propositional and Predicate Logic. jean/gbooks/logic.html

Propositional and Predicate Logic.   jean/gbooks/logic.html CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/

More information

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ NICOLAS FORD Abstract. The goal of this paper is to present a proof of the Nullstellensatz using tools from a branch of logic called model theory. In

More information

Automorphism groups of wreath product digraphs

Automorphism groups of wreath product digraphs Automorphism groups of wreath product digraphs Edward Dobson Department of Mathematics and Statistics Mississippi State University PO Drawer MA Mississippi State, MS 39762 USA dobson@math.msstate.edu Joy

More information

Prefixed Tableaus and Nested Sequents

Prefixed Tableaus and Nested Sequents Prefixed Tableaus and Nested Sequents Melvin Fitting Dept. Mathematics and Computer Science Lehman College (CUNY), 250 Bedford Park Boulevard West Bronx, NY 10468-1589 e-mail: melvin.fitting@lehman.cuny.edu

More information

Chapter 1 : The language of mathematics.

Chapter 1 : The language of mathematics. MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :

More information

A Proof Theory for Generic Judgments

A Proof Theory for Generic Judgments A Proof Theory for Generic Judgments Dale Miller INRIA/Futurs/Saclay and École Polytechnique Alwen Tiu École Polytechnique and Penn State University LICS 2003, Ottawa, Canada, 23 June 2003 Outline 1. Motivations

More information

In N we can do addition, but in order to do subtraction we need to extend N to the integers

In N we can do addition, but in order to do subtraction we need to extend N to the integers Chapter 1 The Real Numbers 1.1. Some Preliminaries Discussion: The Irrationality of 2. We begin with the natural numbers N = {1, 2, 3, }. In N we can do addition, but in order to do subtraction we need

More information

arxiv: v1 [math.fa] 14 Jul 2018

arxiv: v1 [math.fa] 14 Jul 2018 Construction of Regular Non-Atomic arxiv:180705437v1 [mathfa] 14 Jul 2018 Strictly-Positive Measures in Second-Countable Locally Compact Non-Atomic Hausdorff Spaces Abstract Jason Bentley Department of

More information

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

Partially commutative linear logic: sequent calculus and phase semantics

Partially commutative linear logic: sequent calculus and phase semantics Partially commutative linear logic: sequent calculus and phase semantics Philippe de Groote Projet Calligramme INRIA-Lorraine & CRIN CNRS 615 rue du Jardin Botanique - B.P. 101 F 54602 Villers-lès-Nancy

More information

From Constructibility and Absoluteness to Computability and Domain Independence

From Constructibility and Absoluteness to Computability and Domain Independence From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main

More information

Metainduction in Operational Set Theory

Metainduction in Operational Set Theory Metainduction in Operational Set Theory Luis E. Sanchis Department of Electrical Engineering and Computer Science Syracuse University Syracuse, NY 13244-4100 Sanchis@top.cis.syr.edu http://www.cis.syr.edu/

More information

HANDOUT AND SET THEORY. Ariyadi Wijaya

HANDOUT AND SET THEORY. Ariyadi Wijaya HANDOUT LOGIC AND SET THEORY Ariyadi Wijaya Mathematics Education Department Faculty of Mathematics and Natural Science Yogyakarta State University 2009 1 Mathematics Education Department Faculty of Mathematics

More information

A Structuralist Account of Logic

A Structuralist Account of Logic Croatian Journal of Philosophy Vol. VIII, No. 23, 2008 Majda Trobok, Department of Philosophy University of Rijeka A Structuralist Account of Logic The lynch-pin of the structuralist account of logic endorsed

More information

Forcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus

Forcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus Forcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus Hugo Herbelin 1 and Gyesik Lee 2 1 INRIA & PPS, Paris Université 7 Paris, France Hugo.Herbelin@inria.fr 2 ROSAEC center,

More information

Introduction to Metalogic 1

Introduction to Metalogic 1 Philosophy 135 Spring 2012 Tony Martin Introduction to Metalogic 1 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: (i) sentence letters p 0, p 1, p 2,... (ii) connectives,

More information

Mathematical Reasoning & Proofs

Mathematical Reasoning & Proofs Mathematical Reasoning & Proofs MAT 1362 Fall 2018 Alistair Savage Department of Mathematics and Statistics University of Ottawa This work is licensed under a Creative Commons Attribution-ShareAlike 4.0

More information

Notes. Corneliu Popeea. May 3, 2013

Notes. Corneliu Popeea. May 3, 2013 Notes Corneliu Popeea May 3, 2013 1 Propositional logic Syntax We rely on a set of atomic propositions, AP, containing atoms like p, q. A propositional logic formula φ Formula is then defined by the following

More information

Kleene realizability and negative translations

Kleene realizability and negative translations Q E I U G I C Kleene realizability and negative translations Alexandre Miquel O P. D E. L Ō A U D E L A R April 21th, IMERL Plan 1 Kleene realizability 2 Gödel-Gentzen negative translation 3 Lafont-Reus-Streicher

More information

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either Introduction to Temporal Logic The purpose of temporal logics is to specify properties of dynamic systems. These can be either Desired properites. Often liveness properties like In every infinite run action

More information

Theoretical Foundations of the UML

Theoretical Foundations of the UML Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.

More information

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello.

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello. logic s Lectures 17-20: logic in 2 / 40 logic s Interpreting first-order logic in In Logic, first-order s are a wide class of formal s used for talking about structures of any kind (where the restriction

More information

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws Index absolute value, 135 141 additive identity, 254 additive inverse, 254 aleph, 465 algebra of sets, 245, 278 antisymmetric relation, 387 arcsine function, 349 arithmetic sequence, 208 arrow diagram,

More information

2.5.2 Basic CNF/DNF Transformation

2.5.2 Basic CNF/DNF Transformation 2.5. NORMAL FORMS 39 On the other hand, checking the unsatisfiability of CNF formulas or the validity of DNF formulas is conp-complete. For any propositional formula φ there is an equivalent formula in

More information

hal , version 1-21 Oct 2009

hal , version 1-21 Oct 2009 ON SKOLEMISING ZERMELO S SET THEORY ALEXANDRE MIQUEL Abstract. We give a Skolemised presentation of Zermelo s set theory (with notations for comprehension, powerset, etc.) and show that this presentation

More information

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P. First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable

More information

In N we can do addition, but in order to do subtraction we need to extend N to the integers

In N we can do addition, but in order to do subtraction we need to extend N to the integers Chapter The Real Numbers.. Some Preliminaries Discussion: The Irrationality of 2. We begin with the natural numbers N = {, 2, 3, }. In N we can do addition, but in order to do subtraction we need to extend

More information

Automated Synthesis of Tableau Calculi

Automated Synthesis of Tableau Calculi Automated Synthesis of Tableau Calculi Renate A. Schmidt 1 and Dmitry Tishkovsky 1 School of Computer Science, The University of Manchester Abstract This paper presents a method for synthesising sound

More information

Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs

Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs Mirosław Truszczyński Department of Computer Science, University of Kentucky, Lexington, KY 40506, USA Abstract. We present

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

More information

LTCS Report. A finite basis for the set of EL-implications holding in a finite model

LTCS Report. A finite basis for the set of EL-implications holding in a finite model Dresden University of Technology Institute for Theoretical Computer Science Chair for Automata Theory LTCS Report A finite basis for the set of EL-implications holding in a finite model Franz Baader, Felix

More information

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Propositional logic. First order logic. Alexander Clark. Autumn 2014 Propositional logic First order logic Alexander Clark Autumn 2014 Formal Logic Logical arguments are valid because of their form. Formal languages are devised to express exactly that relevant form and

More information

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero Chapter Limits of Sequences Calculus Student: lim s n = 0 means the s n are getting closer and closer to zero but never gets there. Instructor: ARGHHHHH! Exercise. Think of a better response for the instructor.

More information

Measures and Measure Spaces

Measures and Measure Spaces Chapter 2 Measures and Measure Spaces In summarizing the flaws of the Riemann integral we can focus on two main points: 1) Many nice functions are not Riemann integrable. 2) The Riemann integral does not

More information

Modal and temporal logic

Modal and temporal logic Modal and temporal logic N. Bezhanishvili I. Hodkinson C. Kupke Imperial College London 1 / 83 Overview Part II 1 Soundness and completeness. Canonical models. 3 lectures. 2 Finite model property. Filtrations.

More information

CS632 Notes on Relational Query Languages I

CS632 Notes on Relational Query Languages I CS632 Notes on Relational Query Languages I A. Demers 6 Feb 2003 1 Introduction Here we define relations, and introduce our notational conventions, which are taken almost directly from [AD93]. We begin

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

Madhavan Mukund Chennai Mathematical Institute

Madhavan Mukund Chennai Mathematical Institute AN INTRODUCTION TO LOGIC Madhavan Mukund Chennai Mathematical Institute E-mail: madhavan@cmiacin Abstract ese are lecture notes for an introductory course on logic aimed at graduate students in Computer

More information

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees Francesc Rosselló 1, Gabriel Valiente 2 1 Department of Mathematics and Computer Science, Research Institute

More information

Chapter One. The Real Number System

Chapter One. The Real Number System Chapter One. The Real Number System We shall give a quick introduction to the real number system. It is imperative that we know how the set of real numbers behaves in the way that its completeness and

More information

Entailment with Conditional Equality Constraints (Extended Version)

Entailment with Conditional Equality Constraints (Extended Version) Entailment with Conditional Equality Constraints (Extended Version) Zhendong Su Alexander Aiken Report No. UCB/CSD-00-1113 October 2000 Computer Science Division (EECS) University of California Berkeley,

More information

Lecture Notes on Classical Linear Logic

Lecture Notes on Classical Linear Logic Lecture Notes on Classical Linear Logic 15-816: Linear Logic Frank Pfenning Lecture 25 April 23, 2012 Originally, linear logic was conceived by Girard [Gir87] as a classical system, with one-sided sequents,

More information

Equivalent Types in Lambek Calculus and Linear Logic

Equivalent Types in Lambek Calculus and Linear Logic Equivalent Types in Lambek Calculus and Linear Logic Mati Pentus Steklov Mathematical Institute, Vavilov str. 42, Russia 117966, Moscow GSP-1 MIAN Prepublication Series for Logic and Computer Science LCS-92-02

More information

On the Boolean Algebra of Shape Analysis Constraints

On the Boolean Algebra of Shape Analysis Constraints On the Boolean Algebra of Shape Analysis Constraints Viktor Kuncak and Martin Rinard Computer Science and Artificial Intelligence Laboratory Massachusetts Institute of Technology Cambridge, MA 02139, USA

More information