Process Algebra (2IF45) Basic Process Algebra (Soundness proof) Dr. Suzana Andova.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

CommUnity, Tiles and Connectors joint work with Roberto Bruni José Luiz Fiadeiro Antónia Lopes Ugo Montanari Ivan Lanese Dipartimento di Informatica Università.
Possible World Semantics for Modal Logic
Process Algebra (2IF45) Some Extensions of Basic Process Algebra Dr. Suzana Andova.
Process Algebra (2IF45) Recursion in Process Algebra Suzana Andova
Process Algebra (2IF45) Abstraction in Process Algebra Suzana Andova.
Process Algebra (2IF45) Abstraction and Recursions in Process Algebra Suzana Andova.
(CSC 102) Discrete Structures Lecture 14.
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
Basic Properties of Relations
Process Algebra (2IF45) Dr. Suzana Andova. 1 Process Algebra (2IF45) Practical issues Lecturer - Suzana Andova - Group: Software Engineering and Technology.
Process Algebra (2IF45) Probabilistic extension: semantics Parallel composition Dr. Suzana Andova.
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 22 By Herbert I. Gross and Richard A. Medeiros next.
A Semantic Characterization of Unbounded-Nondeterministic Abstract State Machines Andreas Glausch and Wolfgang Reisig 1.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Introduction to Computability Theory
1 Introduction to Computability Theory Lecture7: PushDown Automata (Part 1) Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture2: Non Deterministic Finite Automata (cont.) Prof. Amos Israeli.
Winter 2004/5Pls – inductive – Catriel Beeri1 Inductive Definitions (our meta-language for specifications)  Examples  Syntax  Semantics  Proof Trees.
1 Single Final State for NFAs and DFAs. 2 Observation Any Finite Automaton (NFA or DFA) can be converted to an equivalent NFA with a single final state.
07/06/98 知的インタフェース特論 1 Operational Semantics Again, the question? Operational Model = Labeled Transition System If P and Q yields a same LTS. How to define.
1 Regular Grammars Generate Regular Languages. 2 Theorem Regular grammars generate exactly the class of regular languages: If is a regular grammar then.
Operational Semantics Semantics with Applications Chapter 2 H. Nielson and F. Nielson
Dr. Alexandra I. Cristea CS 319: Theory of Databases: C3.
An algebra of Connectors for modeling CommUnity with Tiles joint work with Roberto Bruni Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan.
Gateway Quiz Reminders: The next Gateway will be given in class next week or the week after )check your course calendar.) Before then, each student who.
Relations Chapter 9.
Applied Discrete Mathematics Week 13: Boolean Algebra
Copyright © Cengage Learning. All rights reserved.
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
Process Algebra (2IF45) Probabilistic Branching Bisimulation: Exercises Dr. Suzana Andova.
MATH 224 – Discrete Mathematics
Chapter 4.1 Solving Systems of Linear Equations in two variables.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
1 Section 1.1 A Proof Primer A proof is a demonstration that some statement is true. We normally demonstrate proofs by writing English sentences mixed.
Functions of Several Variables Copyright © Cengage Learning. All rights reserved.
Reactive systems – general
Rewriting Logic Model of Compositional Abstraction of Aspect-Oriented Software FOAL '10Mar. 15, 2010 Yasuyuki Tahara, Akihiko Ohsuga The University of.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
 Polynomials Lesson 3 Multiplying and Factoring Polynomials using the Distributive Method.
CS6133 Software Specification and Verification
Integration Copyright © Cengage Learning. All rights reserved.
INM175 Topic 8 1 Module INM175 Discrete Mathematics Topic 8 Algebraic Theories.
Lecture 1 Overview Topics 1. Proof techniques: induction, contradiction Proof techniques June 1, 2015 CSCE 355 Foundations of Computation.
Process Algebra (2IF45) Basic Process Algebra (Completeness proof) Dr. Suzana Andova.
Gateway Quiz Reminders: The next Gateway will be given in class next week (check your course calendar.) Before then, each student who did not score 8/8.
Process Algebra (2IF45) Abstraction Parallel composition (short intro) Suzana Andova.
Process Algebra (2IF45) Analysing Probabilistic systems Dr. Suzana Andova.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
Expression Term Equation Coefficient Identity Function Polynomial Root
Process Algebra (2IF45) Assignments Dr. Suzana Andova.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
2.5 The Fundamental Theorem of Game Theory For any 2-person zero-sum game there exists a pair (x*,y*) in S  T such that min {x*V. j : j=1,...,n} =
Boolean Algebra.
Notions & Notations - 1ICOM 4075 (Fall 2010) UPRM Department of Electrical and Computer Engineering University of Puerto Rico at Mayagüez Fall 2010 ICOM.
CHAPTER 2 Boolean algebra and Logic gates
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
CSCE 355 Foundations of Computation
WARM UP Find each equation, determine whether the indicated pair (x, y) is a solution of the equation. 2x + y = 5; (1, 3) 4x – 3y = 14; (5, 2)
4 Integration.
2.5 and 2.6 Properties of Equality and Congruence
Process Algebra (2IF45) Extending Process Algebra: Abstraction
FIRST ORDER DIFFERENTIAL EQUATIONS
Process Algebra (2IF45) Expressiveness of BPArec
CSCE 355 Foundations of Computation
Systems of Equations and Inequalities
Copyright © Cengage Learning. All rights reserved.
Algebra 1 Section 12.1.
Presentation transcript:

Process Algebra (2IF45) Basic Process Algebra (Soundness proof) Dr. Suzana Andova

1 Outline of today lecture Soundness property of BPA(A) Example: cooking your own process algebra Process Algebra (2IF45)

2 Process Algebra – ingredients Process Algebra (2IF45) Language (signature) Set of constants and operators term  term 1  term 2 label Deduction rules Terms (Expressions) built from constants, operators and variables Equivalence relation on LTSs Set of Axioms (basic equalities) term 1 = term 2 Derivation gives more (derived) equalities Axiom ├ term 1 = term 2

3 Process Algebra (2IF45) BPA(A) Process Algebra – soundness property Language: BPA(A) Signature: 0, 1, (a._ ) a  A, + Language terms T(BPA(A)) Axioms of BPA(A): (A1) x+ y = y+x (A2) (x+y) + z = x+ (y + z) (A3) x + x = x (A4) x+ 0 = x Deduction rules for BPA(A): x  x’ x + y  x’ a a  11  x  (x + y)   a.x  x  a  y  y’ x + y  y’ a a y  (x + y)  ⑥ Bisimilarity of LTSsEquality of terms

4 Process Algebra (2IF45) Towards axiomatization. Consistency in mind! Summary: We have (so far) defined the language of BPA(A) We have (so far) defined the SOS semantics of BPA(A) process terms We have proved that bisimilarity is congruence relation on T(BPS(A)) NEXT: We aim to define a set of axioms for the language of BPA(A) which is consistent with the semantics, for any process terms s and t if ├ s = t then s t (soundness property) if s t then ├ s = t (completeness property)

5 Soundness property of BPA(A) wrt to Process Algebra (2IF45) Soundness property: If BPA(A) ├ t = r then t r, for any terms t and r in T(BPA(A)). Proof: All we need to show is that each axiom is sound, that is, 1.t + r r + t, for any terms t,r  T(BPA(A)) 2.(t + r) + s (t + r) + s, for any terms t, r, s  T(BPA(A)) 3.t + t t, for any term t  T(BPA(A)) 4.t + 0 t, for any term t  T(BPA(A)). WHY IS THIS (considering only axioms) SUFFICIENT?

6 Towards the proof that it is indeed “good” Soundness property of axioms wrt to Process Algebra (2IF45) Soundness property: If BPA(A) ├ t = r then t r, for any terms t and r in T(BPA(A)). Proof: All we need to show is that each axiom is sound, that is, 1.t + r r + t, for any terms t,r  T(BPA(A)) 2.(t + r) + s (t + r) + s, for any terms t, r, s  T(BPA(A)) 3.t + t t, for any term t  T(BPA(A)) 4.t + 0 t, for any term t  T(BPA(A)). WHY IS THIS SUFFICIENT? Soundness of A4. We define a relation R = {(p+0, p) | p  T(BPA(A))}. Is it bisimulation relation? Check all 4 transfer conditions for Def. of bisimulation. 1.Assume that p +0 makes a transition, p+0 –a-> p’, for some a  A and q  T(BPA(A)). It can be only (from the rules) that p -a-> p’. We have it almost, but is (p’, p’)  R?! Opsss! R is (again) not defined good. We extend it to R = {(p+0,p) | p  T(BPA(A))}  {(p, p) | p  T(BPA(A))} With this improved definition of R we have it exactly that the target process terms p’ and p’ are R related. NOTE: It is not always the case that the target process terms are the same. In opposite, this is a trivial case.

7 Towards the proof that it is indeed “good” Soundness property of axioms wrt to Process Algebra (2IF45) Soundness property: If BPA(A) ├ t = r then t r, for any terms t and r in T(BPA(A)). Soundness of A4 (cont). R = {(p+0,p) | p  T(BPA(A))}  {(p, p) | p  T(BPA(A))} 2. Checking the second transfer condition. Assume that p makes a transition, p –a-> p’, for some a  A and q  T(BPA(A)). Directly from the deduction rule  it follows that p +0 -a-> p’, and the target process terms are (trivially) related, (p’, p’)  R. 3. Checking the third transfer condition. Assume that (p+0) . Either rule  or ⑥ could have been applied to obtain this, meaning that either p  or 0 . But since is NOT 0  then it must be p . This proves that, (p+0)  implies p . 4. Checking the fourth transfer condition. Assume that p . Directly from rule  we obtain that (p +0) . This proves that, p  implies (p+0) . We have to make similar proofs for other three axioms.

8 Process Algebra (2IF45) BPA(A) Process Algebra – soundness property Language: BPA(A) Signature: 0, 1, (a._ ) a  A, + Language terms T(BPA(A)) Axioms of BPA(A): (A1) x+ y = y+x (A2) (x+y) + z = x+ (y + z) (A3) x + x = x (A4) x+ 0 = x Deduction rules for BPA(A): x  x’ x + y  x’ a a  11  x  (x + y)   a.x  x  a  y  y’ x + y  y’ a a y  (x + y)  ⑥ Bisimilarity of LTSsEquality of terms

9 Example: making a process algebra Our first own BPA(A) extension We extend BPA(A) basic process algebra with an unary operator D(_). D(x) “doubles” every action that x can execute Examples: D(a.b.0) = a.a.b.b.0 D(a.b.1 + c.0) = a.a.b.b.1 + c.c.0 … Construct the BPAD(A) process algebra! Process Algebra (2IF45)

10 Example: recipe Follow the steps: Define axioms for the new operator Define SOS rules for the new operator Mix the ingredients: check whether they all fit well! −Congruence of with respect to the new operator −Soundness of the new axioms −Completeness q.e.d. Process Algebra (2IF45)

11 Example: Our first own BPA(A) extension Process Algebra (2IF45) Solution: Axioms of BPAD(A) are those of BPA(A) and: D(0) = 0 D(1) = 1 D(a.x) = a.a.D(x) D(x + y) = D(x) + D(y) SOS rules for the term-deduction system of BPAD(A) includes the SOS rules of BPA(A) and the following two rules: For the proofs of congruence of with respect to the new D operator and the soundness proof for the new axioms you should use the proof strategies seen already. x  x’ D(x)  a.D( x’) a a x  D(x) 