Towards a Language for Multi-Model CPS Integration Properties Ivan - - PowerPoint PPT Presentation

towards a language for multi model cps integration
SMART_READER_LITE
LIVE PREVIEW

Towards a Language for Multi-Model CPS Integration Properties Ivan - - PowerPoint PPT Presentation

Towards a Language for Multi-Model CPS Integration Properties Ivan Ruchkin, Bradley Schmerl, David Garlan Institute for Software Research Carnegie Mellon University CPS V&V I&F Workshop May 12, 2017 Semantic Gaps in CPS Models


slide-1
SLIDE 1

Towards a Language for Multi-Model CPS Integration Properties

Ivan Ruchkin, Bradley Schmerl, David Garlan Institute for Software Research Carnegie Mellon University

CPS V&V I&F Workshop May 12, 2017

slide-2
SLIDE 2

2

Semantic Gaps in CPS Models

Models of Cyber-Physical Systems (CPS)

Diverse engineering disciplines Heterogeneous formalisms Disparate levels of abstraction Partial overlap of referents

slide-3
SLIDE 3

3

Semantic Gaps in CPS Models

Models of Cyber-Physical Systems (CPS)

Diverse engineering disciplines Heterogeneous formalisms Disparate levels of abstraction Partial overlap of referents

Challenge: semantic gaps

Difgerences in meaning Implicit overlaps How to express properties

  • f both models?
slide-4
SLIDE 4

4

System Example

Mission: navigate to the goal

Multiple ways to reach the goal Limited battery capacity Can recharge at power stations

slide-5
SLIDE 5

5

System Example

slide-6
SLIDE 6

6

System Example

slide-7
SLIDE 7

7

System Example

slide-8
SLIDE 8

8

System Example

slide-9
SLIDE 9

9

System Example

slide-10
SLIDE 10

10

System Example

Property: “Robot does not run out of power between charging stations”

slide-11
SLIDE 11

11

Relating with architectural views

  • A. Bhave, B.H. Krogh, D. Garlan, and B. Schmerl. “View Consistency in Architectures for Cyber-Physical Systems.” In ICCPS 2011.
slide-12
SLIDE 12

12

Problem

How do we specify and check properties

  • f several CPS models?

Requirements for solution

Expressiveness: mixed-model properties, “natural” syntax Decidability: procedure for automated verifjcation of properties Semantic modularity: models not dependent on each other

slide-13
SLIDE 13

13

Our Approach In a Nutshell

slide-14
SLIDE 14

14

Our Approach In a Nutshell

slide-15
SLIDE 15

15

Our Approach In a Nutshell

First-order quantifcation Linear temporal modalities

slide-16
SLIDE 16

16

Integration Property

slide-17
SLIDE 17

17

Integration Property

slide-18
SLIDE 18

18

Integration Property Language (IPL)

Syntax

Declarative, one formula = one property Scope: one (dynamic) model and n (static) views Combines symbols from views and the model

slide-19
SLIDE 19

19

Integration Property Language (IPL)

Syntax

Declarative, one formula = one property Scope: one (dynamic) model and n (static) views Combines symbols from views and the model

Semantics

Gives meaning to formulas allowed by the syntax Reduces subformulas to either view or model semantics Enables a verifjcation algorithm

slide-20
SLIDE 20

20

Verifcation of IPL Formulas

IPL verifcation: views, model ⊨ formula

slide-21
SLIDE 21

21

Verifcation of IPL Formulas

IPL verifcation: views, model ⊨ formula Model checking: for all traces ω in a model, determine if ω ⊨ model_formula

slide-22
SLIDE 22

22

Verifcation of IPL Formulas

IPL verifcation: views, model ⊨ formula

SMT solving: determine all values of variables μ s.t. views, μ ⊨ view_formula(μ)

Model checking: for all traces ω in a model, determine if ω ⊨ model_formula

slide-23
SLIDE 23

23

Verifcation of IPL Formulas

IPL verifcation: views, model ⊨ formula

SMT solving: determine all values of variables μ s.t. views, μ ⊨ view_formula(μ)

Model checking: for all traces ω in a model, determine if ω ⊨ model_formula

Y/N

slide-24
SLIDE 24

24

Technique: Rigid & Flexible

Flexible terms/formulas – can change with time

E.g., current position of robot curPos Only interpretable at model level

slide-25
SLIDE 25

25

Technique: Rigid & Flexible

Flexible terms/formulas – can change with time

E.g., current position of robot curPos Only interpretable at model level

Rigid terms/formulas – cannot change with time

E.g., map of the location map Interpretable at view level (and sometimes at model level)

slide-26
SLIDE 26

26

Technique: Rigid & Flexible

Flexible terms/formulas – can change with time

E.g., current position of robot curPos Only interpretable at model level

Rigid terms/formulas – cannot change with time

E.g., map of the location map Interpretable at view level (and sometimes at model level)

Syntactic constraint on interleaving models/views

Contributes to semantic modularity

slide-27
SLIDE 27

27

IPL Syntax

Rigid terms

slide-28
SLIDE 28

28

IPL Syntax

Rigid terms T erms

slide-29
SLIDE 29

29

IPL Syntax

Rigid terms T erms Atomic rigid formulas Atomic formulas

slide-30
SLIDE 30

30

IPL Syntax

Rigid terms T erms Atomic rigid formulas Atomic formulas IPL formulas

slide-31
SLIDE 31

31

Application of IPL

SMT solver Model checker

Verifjcation algorithm

Encoding of property

slide-32
SLIDE 32

32

Requirements Revisited

Expressiveness – provided:

IPL expresses behavioral properties of one model Multiple views give “shallow” semantics of other models

Decidability – guaranteed:

Decision procedure reduces to other decidable problems

Semantic modularity – preserved:

Models are completely oblivious of views & each other Views have no behavioral semantics

slide-33
SLIDE 33

33

When IPL Works Well

When models are implicitly related

slide-34
SLIDE 34

34

When IPL Works Well

When models are implicitly related When models & views are available

slide-35
SLIDE 35

35

When IPL Works Well

When models are implicitly related When models & views are available With behavioral models equivalent to automata

Anything that can be verifjed against a modal formula

slide-36
SLIDE 36

36

Limitations

Fundamental: reliant on existing formal methods

Satisfjability solvers Model checkers Theorem provers

slide-37
SLIDE 37

37

Limitations

Fundamental: reliant on existing formal methods

Satisfjability solvers Model checkers Theorem provers

Fundamental: reliant on the model-view fwk

Soundness and completeness of model-view abstraction Soundness of view-view mappings Quality of integration with IPL quality of models ≤

slide-38
SLIDE 38

38

Limitations

Fundamental: reliant on existing formal methods

Satisfjability solvers Model checkers Theorem provers

Fundamental: reliant on the model-view fwk

Soundness and completeness of model-view abstraction Soundness of view-view mappings Quality of integration with IPL quality of models ≤

Incidental: reliant on linear temporal logic

Other temporal logics possible (e.g., metric, signal, comp. tree) Other models possible

slide-39
SLIDE 39

39

What is Next?

More expressive behavioral properties

Integrals, difgerential/difgerence equations Hybrid/probabilistic models

Implementation for IPL

Parser Verifjcation engine

Application to other systems

Expressiveness Compare performance of verifjcation to other approaches Pointers to properties & models welcome!

slide-40
SLIDE 40

40

Summary