Process Algebra (2IF45) Recursion in Process Algebra Suzana Andova

Slides:



Advertisements
Similar presentations
Solve a System Algebraically
Advertisements

Process Algebra (2IF45) Some Extensions of Basic Process Algebra Dr. Suzana Andova.
Process Algebra (2IF45) Abstraction in Process Algebra Suzana Andova.
Process Algebra (2IF45) Abstraction and Recursions in Process Algebra Suzana Andova.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
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.
Solving Equations In Quadratic Form There are several methods one can use to solve a quadratic equation. Sometimes we are called upon to solve an equation.
Solve an equation with variables on both sides
Solving Linear Equations – Part 2 A Linear Equation in One Variable is any equation that can be written in the form It is assumed that you have already.
Algebra 1: Solving Equations with variables on BOTH sides.
Write decimal as percent. Divide each side by 136. Substitute 51 for a and 136 for b. Write percent equation. Find a percent using the percent equation.
Warm Up 1) Is (-3, 4) a solution to the system? 2)Solve the system by graphing y = -2x + 5 2y = x - 2.
Process Algebra (2IF45) Basic Process Algebra (Soundness proof) Dr. Suzana Andova.
Process Algebra (2IF45) Probabilistic Branching Bisimulation: Exercises Dr. Suzana Andova.
3x – 5y = 11 x = 3y + 1 Do Now. Homework Solutions 2)2x – 2y = – 6 y = – 2x 2x – 2(– 2x) = – 6 2x + 4x = – 6 6x = – 6 x = – 1y = – 2x y = – 2(– 1) y =
Orders of Operations Section 1.6. Objective Perform any combination of operations on whole numbers.
Mathematical Operational Semantics and Finitary System Behaviour Stefan Milius, Marcello Bonsangue, Robert Myers, Jurriaan Rot.
Reactive systems – general
3-2 Solving Equations by Using Addition and Subtraction Objective: Students will be able to solve equations by using addition and subtraction.
2G1516 Formal Methods2005 Mads Dam IMIT, KTH 1 CCS: Operational Semantics And Process Algebra Mads Dam Reading: Peled 8.3, 8.4, 8.6 – rest of ch. 8.
Equations Reducible to Quadratic
1.4 Solving Linear Equations. Blitzer, Algebra for College Students, 6e – Slide #2 Section 1.4 Linear Equations Definition of a Linear Equation A linear.
Systems of Linear Equations The Substitution Method.
© Kenneth C. Louden, Chapter 11 - Functional Programming, Part III: Theory Programming Languages: Principles and Practice, 2nd Ed. Kenneth C. Louden.
Factoring to Solve Quadratic Equations
Inequalities Symbols and line graphs. Symbols  < is less than  > is greater than  < is less than or equal to  > is greater than or equal to points.
ALGEBRA 1 LESSON 3-6 Solve and check |a| – 3 = 5. |a| – 3 = 5 Add 3 to each side |a| = 8Simplify. a = 8 or a = –8Definition of absolute value. Check:
§ 2.2 The Addition Property of Equality. Angel, Elementary Algebra, 7ed 2 Linear Equations A linear equation in one variable is an equation that can be.
Example 3 Solving an Equation Using Addition The solution is ANSWER Original equation 13=4.5c– Add 4.5 to each side. (Addition property of equality)
2G1516 Formal Methods2005 Mads Dam IMIT, KTH 1 CCS: Processes and Equivalences Mads Dam Reading: Peled 8.5.
Process Algebra (2IF45) Basic Process Algebra (Completeness proof) Dr. Suzana Andova.
Process Algebra (2IF45) Abstraction Parallel composition (short intro) Suzana Andova.
Topic 6.5. Solve Systems by Substitution Objectives: Solve Systems of Equations using Substitution Standards: Functions, Algebra, Patterns. Connections.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
Solving Inequalities Using Addition and Subtraction
Process Algebra (2IF45) Assignments Dr. Suzana Andova.
Algebra Review. Systems of Equations Review: Substitution Linear Combination 2 Methods to Solve:
Lesson 8.1. » A statement where two mathematical expressions are. » Think of an equation as a balance scale or teeter-totter. The left side must always.
EXAMPLE 1 Evaluate recursive rules Write the first six terms of the sequence. a. a 0 = 1, a n = a n – b. a 1 = 1, a n = 3a n – 1 SOLUTION a. a 0.
Holt McDougal Algebra 2 Multiplying and Dividing Rational Expressions Multiplying and Dividing Rational Expressions Holt Algebra 2Holt McDougal Algebra.
Process Algebra (2IF45) Extending Process Algebra: Abstraction
Solving Rational Equations and Inequalities
Algebra Bell-work 9/13/17 Turn in your HW! 1.) 7x – 6 = 2x + 9
Solve an equation by multiplying by a reciprocal
Process Algebra (2IF45) Expressiveness of BPArec
Solving Equations by Adding or Subtracting
3.2 Solve Linear Systems Algebraically
6-2 Solving Systems Using Substitution
הוראת מיומנויות של עבודה בקבוצה מחקר פעולה
Do Now 1) t + 3 = – 2 2) 18 – 4v = 42.
Objective Solve equations in one variable that contain variable terms on both sides.
Solve an equation by combining like terms
Solving Multi-Step Equations
- Finish Unit 1 test - Solving Equations variables on both sides
Lesson 12: more on Equations
SECTION 2-4 : SOLVING EQUATIONS WITH THE VARIABLE ON BOTH SIDES
Objective Solve equations in one variable that contain variable terms on both sides.
Example 2B: Solving Linear Systems by Elimination
Example 5A: Solving Simple Rational Equations
3-6 Absolute Value Equations and Inequalities
Bell Work Solve for “x” and check your solution
8.5 Using Recursive Rules with Sequences
Example 1: Solving Rational Equations
Copyright © Cengage Learning. All rights reserved.
Definition of logarithm
One-step addition & subtraction equations: fractions & decimals
Warm- Up: Solve by Substitution
Solving Systems of Linear Equations by Elimination
Presentation transcript:

Process Algebra (2IF45) Recursion in Process Algebra Suzana Andova

1 Language: BPA(A) Signature: 0, 1, (a._ ) a  A, +, … Language terms T(BPA(A)) Closed terms C(BPA(A)) Process Algebra (2IF45) 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)  ⑥ Equational theory: terms and LTSs Axioms of BPA(A): (A1) x+ y = y+x (A2) (x+y) + z = x+ (y + z) (A3) x + x = x (A4) x+ 0 = x coin.coffee.1 coin coffee

2 Language: BPA(A) Signature: 0, 1, (a._ ) a  A, +, … Language terms T(BPA(A)) Closed terms C(BPA(A)) Process Algebra (2IF45) 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 Equational theory: terms and LTSs Axioms of BPA(A): (A1) x+ y = y+x (A2) (x+y) + z = x+ (y + z) (A3) x + x = x (A4) x+ 0 = x coin.coffee.1 coin.coffee.1 + coin.coffee.1 coin coffee coin.coffee.1 = coin.coffee.1 + coin.coffee.1 coin coffee coin coffee

3 Recursive processes Process Algebra (2IF45) Socrates_thinks Socrates_eats getHungry goThinking thinking eating

4 Recursive processes Process Algebra (2IF45) Socrates_thinks Socrates_eats getHungry goThinking Socrates_thinks = getHungry.Socrates_eats Socrates_eats = goThinking.Socrates_thinks thinking eating

5 Process Algebra (2IF45) 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)  ⑥ Recursive specifications and LTSs Language: BPA(A) Signature: 0, 1, (a._ ) a  A, +, … Language terms T(BPA(A)) Closed terms C(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 goThinking getHungry Socrates_thinks = getHungry.Socrates_eats Socrates_eats = goThinking.Socrates_thinks

6 Process Algebra (2IF45) 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)  ⑥ Recursive specifications and LTSs Language: BPA(A) Signature: 0, 1, (a._ ) a  A, +, … Language terms T(BPA(A)) Closed terms C(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 GoThinking GetHungry Socrates_thinks = getHungry.Socrates_eats Socrates_eats = goThinking.Socrates_thinks

7 Process Algebra (2IF45) Recursive equations and specifications E = { X = a.0 } E 1 = { X = a.Y, Y = b.0 }

8 Process Algebra (2IF45) Recursive Equations and Rec. Specification in Equational Theory E = { X = a.Y + c.0,Y = b.X} BPA(A), E ├ X = a.Y +c.0 = a.(b.X) +c.0 = a.(b.(a.Y + c.))) + c.0 Language: BPA(A) Signature: 0, 1, (a._ ) a  A, +, … Language terms T(BPA(A)) Closed terms C(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 Recursive specification E

9 Process Algebra (2IF45) Solutions of recursive equations Example: 1. E = { X = a.0 } 2. E 1 = { X = a.Y, Y = b.0 }

10 Process Algebra (2IF45) Solutions of recursive equations Example: 1. E = { X = X } 2. E 1 = { X = X + a.0 }

11 Process Algebra (2IF45) Solutions of recursive equations Example: 1. E = { X = a.X } 2. E 1 = { X = a.(a.(X+1)) +1 }

12 Process Algebra (2IF45) Solutions of recursive specifications E 1 = { X = a.(a.(X+1)) +1 } X a a.(X+1) a a X+1 This is a solution for X in the recursive spec. E1 Substitute it on the left-hand side and on the right-hand side and check bisimilarity.

13 This is also recursion …. Process Algebra (2IF45)

14 Process Algebra (2IF45) 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)  ⑥ Semantics of Recursive specifications 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

15 Process Algebra (2IF45) 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)  ⑥ Semantics of Recursive specifications Language: BPA rec (A) Signature: 0, 1, (a._ ) a  A, +, X 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

16 Process Algebra (2IF45) Semantics of Recursive specifications

17 Process Algebra (2IF45) Semantics of Recursive specifications t X,E  w, X=t in E X  w a a

18 Process Algebra (2IF45) 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)  ⑥ Semantics of Recursive specifications Language: BPA rec (A) Signature: 0, 1, (a._ ) a  A, +, X E Language terms T(BPA rec (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 GoThinking GetHungry Socrates_thinks = getHungry.Socrates_eats Socrates_eats = goThinking.Socrates_thinks a term ….

19 Process Algebra (2IF45) 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)  ⑥ Semantics of Recursive specifications Language: BPA rec (A) Signature: 0, 1, (a._ ) a  A, +, X E Language terms T(BPA rec (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 GoThinking GetHungry Socrates_thinks = getHungry.Socrates_eats Socrates_eats = goThinking.Socrates_thinks a term ….

20 Term model T(BPA rec (A)) and BPA rec (A) Bisimulation is congruence Soundness holds (it is a model indeed) Ground completeness does not hold Every recursive specification has a solution Not every recursive specification has unique solution Process Algebra (2IF45)

21 Equational theories with recursion Model vs. Solution of recursive specification Two important points for “useful models” Every recursive specification has a solution Every recursive specification has a unique solution Process Algebra (2IF45)

22 Recursive Definition Principle (RDP) For every recursive specification there is a solution in the model Process Algebra (2IF45)

23 Guarded recursions Does E = {X = a.Y, Y = Z, Z = b.X} has a solution and is this unique in T(BPA rec (A))? Process Algebra (2IF45)

24 Recursive Specification Principle (RSP) Every guarded recursive specification has at most one solution. Process Algebra (2IF45)

25 Restricted Recursive Definition Principle (RSP - ) Every guarded recursive specification has a solution. Process Algebra (2IF45)

26 Combining principles RDP - + RSP implies Every guarded recursive specification has a unique solution. Example E = {X = a.X} E’ = {X’ = a.a.X’} Process Algebra (2IF45)