modelling specification and verification of reactive
play

Modelling, Specification and Verification of Reactive Systems - PowerPoint PPT Presentation

Introduction to CCS Syntax of CCS Semantics of CCS Value Passing CCS Modelling, Specification and Verification of Reactive Systems Milners Calculus of Communicating Systems (CCS) Plan for this part of the course: Informal introduction to


  1. Introduction to CCS Syntax of CCS Semantics of CCS Value Passing CCS Modelling, Specification and Verification of Reactive Systems Milner’s Calculus of Communicating Systems (CCS) Plan for this part of the course: Informal introduction to CCS Syntax of CCS Semantics of CCS Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  2. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming How to Describe LTSes? Syntax Semantics − → unknown entity known entity what (denotational) or − → programming language how (operational) it computes − → Labelled Transition Systems ??? CCS (Milner 1980) Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  3. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming How to Describe LTSes? Syntax Semantics − → unknown entity known entity what (denotational) or − → programming language how (operational) it computes − → Labelled Transition Systems ??? CCS (Milner 1980) Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  4. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming How to Describe LTSes? Syntax Semantics − → unknown entity known entity what (denotational) or − → programming language how (operational) it computes − → Labelled Transition Systems ??? CCS (Milner 1980) Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  5. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming How to Describe LTSes? Syntax Semantics − → unknown entity known entity what (denotational) or − → programming language how (operational) it computes − → Labelled Transition Systems ??? CCS (Milner 1980) Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  6. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming Calculus of Communicating Systems CCS Process algebra called “Calculus of Communicating Systems”. Insight of Robin Milner (1980, developed from earlier work) Concurrent (parallel) processes have an algebraic structure. P 1 op P 2 ⇒ P 1 op P 2 Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  7. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming Process Algebra Basic Principle 1 Define a few atomic processes (modelling the simplest process behaviour). 2 Define new composition operations (building more complex process behaviour from simpler ones). Example 1 atomic instruction: assignment (e.g. x:=2 and x:=x+2) 2 new operators: sequential composition ( P 1 ; P 2 ) parallel composition ( P 1 | P 2 ) Now e.g. (x:=1 | x:=2); x:=x+2; (x:=x-1 | x:=x+5) is a process. Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  8. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming Process Algebra Basic Principle 1 Define a few atomic processes (modelling the simplest process behaviour). 2 Define new composition operations (building more complex process behaviour from simpler ones). Example 1 atomic instruction: assignment (e.g. x:=2 and x:=x+2) 2 new operators: sequential composition ( P 1 ; P 2 ) parallel composition ( P 1 | P 2 ) Now e.g. (x:=1 | x:=2); x:=x+2; (x:=x-1 | x:=x+5) is a process. Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  9. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming A CCS Process: Black-Box View What is a CCS Process to its Environment? A CCS process is a computing agent that may communicate with its environment via its interface. Interface = Collection of communication ports/channels, together with an indication of whether they are used for input or output. Example: A Computer Scientist Process interface: coffee (input port) coin, pub (output ports) Question: How do we describe the behaviour of the “black-box”? Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  10. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming A CCS Process: Black-Box View What is a CCS Process to its Environment? A CCS process is a computing agent that may communicate with its environment via its interface. Interface = Collection of communication ports/channels, together with an indication of whether they are used for input or output. Example: A Computer Scientist Process interface: coffee (input port) coin, pub (output ports) Question: How do we describe the behaviour of the “black-box”? Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  11. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming CCS Basics (Sequential Fragment) Nil (or 0) process (the only atomic process) action prefixing ( a . P ) names and recursive definitions ( def =) nondeterministic choice (+) This is Enough to Describe Sequential Processes Any finite LTS can be described (up to isomorphism) by using the operations above. Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  12. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming CCS Basics (Sequential Fragment) Nil (or 0) process (the only atomic process) action prefixing ( a . P ) names and recursive definitions ( def =) nondeterministic choice (+) This is Enough to Describe Sequential Processes Any finite LTS can be described (up to isomorphism) by using the operations above. Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  13. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming CCS Basics (Parallelism and Renaming) parallel composition ( | ) (synchronous communication between two components = handshake synchronization) restriction ( P � L ) relabelling ( P [ f ]) Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  14. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming CCS Basics (Parallelism and Renaming) parallel composition ( | ) (synchronous communication between two components = handshake synchronization) restriction ( P � L ) relabelling ( P [ f ]) Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  15. Introduction to CCS Calculus of Communicating Systems Syntax of CCS Process Algebra Semantics of CCS CCS Intuitively Value Passing CCS Parallelism and Renaming CCS Basics (Parallelism and Renaming) parallel composition ( | ) (synchronous communication between two components = handshake synchronization) restriction ( P � L ) relabelling ( P [ f ]) Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  16. Introduction to CCS Notation Syntax of CCS CCS Process Expressions Semantics of CCS CCS Defining Equations Value Passing CCS Definition of CCS (channels, actions, process names) Let A be a set of channel names (e.g. tea , coffee are channel names) L = A ∪ A be a set of labels where A = { a | a ∈ A} (elements of A are called names and those of A are called co-names) by convention a = a Act = L ∪ { τ } is the set of actions where τ is the internal or silent action (e.g. τ , tea , coffee are actions) K is a set of process names (constants) (e.g. CM). Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

  17. Introduction to CCS Notation Syntax of CCS CCS Process Expressions Semantics of CCS CCS Defining Equations Value Passing CCS Definition of CCS (channels, actions, process names) Let A be a set of channel names (e.g. tea , coffee are channel names) L = A ∪ A be a set of labels where A = { a | a ∈ A} (elements of A are called names and those of A are called co-names) by convention a = a Act = L ∪ { τ } is the set of actions where τ is the internal or silent action (e.g. τ , tea , coffee are actions) K is a set of process names (constants) (e.g. CM). Milner’s Calculus of Communicating Systems (CCS) Reactive Systems: Mod., Spec. and Ver.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend