A logical characterisation for input output conformance simulation - - PowerPoint PPT Presentation

a logical characterisation for input output conformance
SMART_READER_LITE
LIVE PREVIEW

A logical characterisation for input output conformance simulation - - PowerPoint PPT Presentation

Motivation Formal Definitions Logic Characteristic formula Future Work A logical characterisation for input output conformance simulation iocos (Work in Progress) Luca Aceto Ignacio F abregas Carlos Gregorio-Rodr guez Anna Ing


slide-1
SLIDE 1

Motivation Formal Definitions Logic Characteristic formula Future Work

A logical characterisation for input output conformance simulation iocos (Work in Progress)

Luca Aceto Ignacio F´ abregas Carlos Gregorio-Rodr´ ıguez Anna Ing´

  • lsfd´
  • ttir

ICE-TCS, School of Computer Science Reykjavik University, Iceland. Departamento Sistemas Inform´ aticos y Computaci´

  • n

Universidad Complutense de Madrid, Spain

NWPT 2015 Friday, 23rd October

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-2
SLIDE 2

Motivation Formal Definitions Logic Characteristic formula Future Work

Formal Methods

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-3
SLIDE 3

Motivation Formal Definitions Logic Characteristic formula Future Work

Formal Methods Model Based Testing Model

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-4
SLIDE 4

Motivation Formal Definitions Logic Characteristic formula Future Work

Formal Methods Model Based Testing Model Model Checking Model Properties ↓ ↓ Operational description | = Logic formula ↓ ’Minimal’ and ’equivalent’ | = Logic formula

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-5
SLIDE 5

Motivation Formal Definitions Logic Characteristic formula Future Work

Our Model

LTS Non Determinism Inputs Outputs Explicit quiescence Input enabled (not requiered) b? x! a? c? x! a? δ! δ! δ! δ! δ!

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-6
SLIDE 6

Motivation Formal Definitions Logic Characteristic formula Future Work

Our Model

LTS Non Determinism Inputs Outputs Explicit quiescence Input enabled (not requiered) b? x! a? c? x! a? δ! δ! δ! δ! δ!

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-7
SLIDE 7

Motivation Formal Definitions Logic Characteristic formula Future Work

Our Model

LTS Non Determinism Inputs Outputs Explicit quiescence Input enabled (not requiered) b? x! a? c? x! a? δ! δ! δ! δ! δ!

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-8
SLIDE 8

Motivation Formal Definitions Logic Characteristic formula Future Work

Our Model

LTS Non Determinism Inputs Outputs Explicit quiescence Input enabled (not requiered) b? x! a? c? x! a? δ! δ! δ! δ! δ!

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-9
SLIDE 9

Motivation Formal Definitions Logic Characteristic formula Future Work

Our Model

LTS Non Determinism Inputs Outputs Explicit quiescence Input enabled (not requiered) b? x! a? c? x! a? δ! δ! δ! δ! δ!

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-10
SLIDE 10

Motivation Formal Definitions Logic Characteristic formula Future Work

Our Model

LTS Non Determinism Inputs Outputs Explicit quiescence Input enabled (not requiered) b? x! a? c? x! a?

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-11
SLIDE 11

Motivation Formal Definitions Logic Characteristic formula Future Work

Our Model

LTS Non Determinism Inputs Outputs Explicit quiescence Input enabled (not requiered) b? x! a? c? x! a?

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-12
SLIDE 12

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 1

i b? x! a? c? x! a? s b? c? x! a? iocos is a branching semantic. i / iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-13
SLIDE 13

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 1

i b? x! a? c? x! a? s b? c? x! a? iocos is a branching semantic. i / iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-14
SLIDE 14

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 1

i b? x! a? c? x! a? s b? c? x! a? iocos is a branching semantic. i / iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-15
SLIDE 15

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 2

i x! a? b? x! s x! y! a? z! a? b? x! y! iocos is a conformance semantic. input actions in the specification should be implemented. All outputs in the implementation must be allowed by the specification. i iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-16
SLIDE 16

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 2

i x! a? b? x! s x! y! a? z! a? b? x! y! iocos is a conformance semantic. input actions in the specification should be implemented. All outputs in the implementation must be allowed by the specification. i iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-17
SLIDE 17

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 2

i x! a? b? x! s x! y! a? z! a? b? x! y! iocos is a conformance semantic. input actions in the specification should be implemented. All outputs in the implementation must be allowed by the specification. i iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-18
SLIDE 18

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 2

i x! a? b? x! s x! y! a? z! a? b? x! y! iocos is a conformance semantic. input actions in the specification should be implemented. All outputs in the implementation must be allowed by the specification. i iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-19
SLIDE 19

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 3

i x! y! a? s x! y! a? z! a? x! y! b? i must be able to do all the inputs specify by s. i / iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-20
SLIDE 20

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 3

i x! y! a? s x! y! a? z! a? x! y! b? i must be able to do all the inputs specify by s. i / iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-21
SLIDE 21

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 3

i x! y! a? s x! y! a? z! a? x! y! b? i must be able to do all the inputs specify by s. i / iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-22
SLIDE 22

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 4

i a? x! b? x! y! a? x! c? s x! y! a? x! c? The implementation can add new behaviours for the inputs. i iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-23
SLIDE 23

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 4

i a? x! b? x! y! a? x! c? s x! y! a? x! c? The implementation can add new behaviours for the inputs. i iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-24
SLIDE 24

Motivation Formal Definitions Logic Characteristic formula Future Work

Example 4

i a? x! b? x! y! a? x! c? s x! y! a? x! c? The implementation can add new behaviours for the inputs. i iocos s.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-25
SLIDE 25

Motivation Formal Definitions Logic Characteristic formula Future Work

Input-Output Conformance relation

An iocos relation R is an iocos-relation iff for any (i, s) ∈ R:

1 ins(s) ⊆ ins(i) 2 a? ∈ ins(s) i a?

− − → i′ then s

a?

− − → s′, (i′, s′) ∈ R

3 x! ∈ outs(i) i x!

− − → i′ then s

x!

− − → s′, (i′, s′) ∈ R iocos iocos = {R | R is a iocos-relation} (i, s) ∈ iocos ↔ i iocos s

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-26
SLIDE 26

Motivation Formal Definitions Logic Characteristic formula Future Work What has already be done?

Offline testing

Soundness p pass T for any T ∈ T (p) Completeness ∀T ∈ T (s) i pass T iff i iocos s “C. Gregorio-Rodr´ ıguez, L. Llana, R. Mart´ ınez-Torres: Input Output Conformance Simulation (iocos) for Model Based Testing. FORTE 2013”

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-27
SLIDE 27

Motivation Formal Definitions Logic Characteristic formula Future Work What has already be done?

Online testing

“C. Gregorio-Rodr´ ıguez, L. Llana,

  • R. Mart´

ınez-Torres: Effectiveness for Input Output Conformance Simulation iocos. FORTE 2014”

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-28
SLIDE 28

Motivation Formal Definitions Logic Characteristic formula Future Work What has already be done?

Implementations

General Coarser Partition Problem (GCPP) Can be effectively computed using the GCPP algorithm. This allows to perform iocos-minimisation. Given process p, compute q s.t. q iocos≡ p and q has a minimal LTS.

mCRL2 tool (Jan Friso Groote, TU Eindhoven (CWI, Twente. . . )) Implementation of iocos in mCRL2.

“C. Gregorio-Rodr´ ıguez, L. Llana, R. Mart´ ınez-Torres: Extending mCRL2 with ready simulation and iocos input-output conformance simulation. SAC 2015”

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-29
SLIDE 29

Motivation Formal Definitions Logic Characteristic formula Future Work

Logic for iocos

Model Checking Model Properties ↓ ↓ Operational description | = Logic formula ↓ ’Minimal’ and ’equivalent’ | = Logic formula We present a logic that characterizes iocos.

Both, preorder and equivalence.

Is a subset of the Hennessy-Milner Logic.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-30
SLIDE 30

Motivation Formal Definitions Logic Characteristic formula Future Work

Definitions

Syntax of Liocos φ ::= tt | ff | φ ∧ φ | φ ∨ φ | |a?| φ | x!φ. Semantics of Liocos Standard interpretations for tt, ff, ∧ and ∨. p | = x!φ iff p′ | = φ for some p

x!

− − → p′. p | = |a?| φ iff p

a?

− − − − → or p′ | = φ for some p

a?

− − → p′.

  • |a?|

φ is logically equivalent to [ a? ]ff ∨ a?φ.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-31
SLIDE 31

Motivation Formal Definitions Logic Characteristic formula Future Work

Definitions

Syntax of Liocos φ ::= tt | ff | φ ∧ φ | φ ∨ φ | |a?| φ | x!φ. Semantics of Liocos Standard interpretations for tt, ff, ∧ and ∨. p | = x!φ iff p′ | = φ for some p

x!

− − → p′. p | = |a?| φ iff p

a?

− − − − → or p′ | = φ for some p

a?

− − → p′.

  • |a?|

φ is logically equivalent to [ a? ]ff ∨ a?φ.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-32
SLIDE 32

Motivation Formal Definitions Logic Characteristic formula Future Work

Some results

Liocos characterizes the preorder i iocos s iff (∀φ ∈ Liocos i | = φ then s | = φ). Liocos characterizes the induced equivalence i iocos≡ s iff (∀φ ∈ Liocos i | = φ iff s | = φ). Corollary For all φ in Liocos if we want to check p | = φ, it is equivalent to minimise p to q (using GCPP) and solve q | = φ

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-33
SLIDE 33

Motivation Formal Definitions Logic Characteristic formula Future Work An Alternative logic

An Alternative logic

Liocos follows a standard approach to the characterisation of simulation semantics. However, iocos was originated in the model based testing environment.

The natural reading for a logical characterisation would be “every formula produced by the specification should be also proved correct in the implementation”.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-34
SLIDE 34

Motivation Formal Definitions Logic Characteristic formula Future Work An Alternative logic

  • Liocos

Syntax φ ::= tt | ff | φ ∧ φ | φ ∨ φ | a?φ | [ x! ]φ. Semantics Standard interpretations for tt, ff, ∧ and ∨. p | = [ x! ]φ iff p′ | = φ for each p

x!

− − → p′. p | = a?φ iff p

a?

− − → and p′ | = φ for each p

a?

− − → p′. a?φ is logically equivalent to a?tt ∧ [ a? ]φ.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-35
SLIDE 35

Motivation Formal Definitions Logic Characteristic formula Future Work An Alternative logic

  • Liocos

Syntax φ ::= tt | ff | φ ∧ φ | φ ∨ φ | a?φ | [ x! ]φ. Semantics Standard interpretations for tt, ff, ∧ and ∨. p | = [ x! ]φ iff p′ | = φ for each p

x!

− − → p′. p | = a?φ iff p

a?

− − → and p′ | = φ for each p

a?

− − → p′. a?φ is logically equivalent to a?tt ∧ [ a? ]φ.

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-36
SLIDE 36

Motivation Formal Definitions Logic Characteristic formula Future Work An Alternative logic

Some results

  • Liocos characterizes the preorder

i iocos s iff (∀φ ∈ Liocos s | = φ then i | = φ).

  • Liocos characterizes the induced equivalence

i iocos≡ s iff (∀φ ∈ Liocos s | = φ iff i | = φ). Corollary For all φ in Liocos if we want to check p | = φ, it is equivalent to minimise p to q (using GCPP) and solve q | = φ

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-37
SLIDE 37

Motivation Formal Definitions Logic Characteristic formula Future Work An Alternative logic

Relation between Liocos & Liocos

Bijection T : Liocos → Liocos : T (tt) = ff. T (ff) = tt. T (φ1 ∧ φ2) = T (φ1) ∨ T (φ2). T (φ1 ∨ φ2) = T (φ1) ∧ T (φ2). T ( |a?| φ) = a?T (φ). T (x!φ) = [ x! ]T (φ). The inverse function T −1 : Liocos → Liocos is defined in the

  • bvious way.
  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-38
SLIDE 38

Motivation Formal Definitions Logic Characteristic formula Future Work

Characteristic formula

Definition A formula φ is characteristic for s iff s | = φ and for all i it holds that i | = φ if and only if i iocos s. Bisimulation χ(p) =

  • a,p

a

− − →p′ aχ(p′) ∧

  • a∈A

[ a ]

  • p

a

− − →p′ χ(p′)

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-39
SLIDE 39

Motivation Formal Definitions Logic Characteristic formula Future Work

Characteristic formula χ(p) =

  • a?∈ins(p)

a?

  • p

a?

− − →p′ χ(p′) ∧

  • x!∈O

[ x! ]

  • p

x!

− − →p′ χ(p′) Theorem Applying a result in “L. Aceto, A. Ing´

  • lfsd´
  • ttir, and J. Sack.

Characteristic formulae for fixed-point semantics: A general

  • framework. EXPRESS 2009”.
  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-40
SLIDE 40

Motivation Formal Definitions Logic Characteristic formula Future Work

Characteristic formula χ(p) =

  • a?∈ins(p)

a?

  • p

a?

− − →p′ χ(p′) ∧

  • x!∈O

[ x! ]

  • p

x!

− − →p′ χ(p′) Theorem Applying a result in “L. Aceto, A. Ing´

  • lfsd´
  • ttir, and J. Sack.

Characteristic formulae for fixed-point semantics: A general

  • framework. EXPRESS 2009”.
  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-41
SLIDE 41

Motivation Formal Definitions Logic Characteristic formula Future Work

Characteristic formula χ(p) =

  • a?∈ins(p)

a?

  • p

a?

− − →p′ χ(p′) ∧

  • x!∈O

[ x! ]

  • p

x!

− − →p′ χ(p′) Theorem Applying a result in “L. Aceto, A. Ing´

  • lfsd´
  • ttir, and J. Sack.

Characteristic formulae for fixed-point semantics: A general

  • framework. EXPRESS 2009”.
  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-42
SLIDE 42

Motivation Formal Definitions Logic Characteristic formula Future Work

Characteristic formula χ(p) =

  • a?∈ins(p)

a?

  • p

a?

− − →p′ χ(p′) ∧

  • x!∈O

[ x! ]

  • p

x!

− − →p′ χ(p′) Theorem Applying a result in “L. Aceto, A. Ing´

  • lfsd´
  • ttir, and J. Sack.

Characteristic formulae for fixed-point semantics: A general

  • framework. EXPRESS 2009”.
  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)

slide-43
SLIDE 43

Motivation Formal Definitions Logic Characteristic formula Future Work

Future Work

Relation of Liocoswith other logics in the literature

Ready simulation logic, covariant-contravariant simulation logic and µ-calculus.

Expressive logic for iocos

ACTL

  • L. Aceto, I. F´

abregas, C. Gregorio-Rodr´ ıguez, A. Ing´

  • lsfd´
  • ttir

A logical characterisation for iocos (WIP)