From MTL to Deterministic Timed Automata Dejan Nickovic Nir - - PowerPoint PPT Presentation

from mtl to deterministic timed automata
SMART_READER_LITE
LIVE PREVIEW

From MTL to Deterministic Timed Automata Dejan Nickovic Nir - - PowerPoint PPT Presentation

From MTL to Deterministic Timed Automata Dejan Nickovic Nir Piterman IST Austria Imperial College London (University of Leicester) Introduction Property-based analysis and synthesis of digital systems Specification Temporal Logic LTL


slide-1
SLIDE 1

From MTL to Deterministic Timed Automata

Dejan Nickovic IST Austria Nir Piterman Imperial College London (University of Leicester)

slide-2
SLIDE 2

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of digital systems

Monitoring Model Checking Controller Synthesis Specification

Temporal Logic LTL

slide-3
SLIDE 3

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of digital systems

Monitoring Model Checking Controller Synthesis Specification

Temporal Logic LTL

Non−Deterministic Automaton

slide-4
SLIDE 4

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of digital systems

On−the−fly

Monitoring Model Checking Controller Synthesis Specification

Temporal Logic LTL

Determinization

Non−Deterministic Automaton

slide-5
SLIDE 5

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of digital systems

Subset On−the−fly

Monitoring

Finite Automaton Deterministic

Model Checking Controller Synthesis Specification

Temporal Logic LTL

Construction Determinization

Non−Deterministic Automaton

slide-6
SLIDE 6

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of digital systems

Subset Safra’s On−the−fly

Monitoring

Finite Automaton Deterministic

Model Checking Controller Synthesis

Deterministic

Specification

Temporal Logic LTL

Construction Construction Determinization

Non−Deterministic Automaton

ω-Automaton

slide-7
SLIDE 7

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of real-time systems

Monitoring Model Checking Controller Synthesis Specification Real−time

MITL

slide-8
SLIDE 8

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of real-time systems

On−the−fly

Monitoring Model Checking Controller Synthesis

Determinization

Non−Deterministic

Specification Real−time

MITL

Timed Automaton

slide-9
SLIDE 9

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of real-time systems

On−the−fly

Monitoring

Finite Automaton

Model Checking Controller Synthesis

Deterministic

Determinization

Non−Deterministic

Specification Real−time

MITL

Timed Automaton Deterministic Timed

?? ??

Timed ω-Automaton

slide-10
SLIDE 10

Introduction

From MTL to Deterministic Timed Automata

Property-based analysis and synthesis of real-time systems

On−the−fly

Monitoring

Finite Automaton

Model Checking Controller Synthesis

Deterministic

Determinization

Non−Deterministic

Specification Real−time

MITL

Timed Automaton Deterministic Timed

?? ??

Timed ω-Automaton

Timed automata are non-determinizable in general!!

slide-11
SLIDE 11

Metric Temporal Logic - MTL

From MTL to Deterministic Timed Automata

  • AP - set of atomic propositions
  • Signal over AP - w : R≥0 → 2AP
  • wp - projection of w to proposition p ∈ AP

Syntax: ϕ :== p | ¬ϕ1 | ϕ1 ∨ ϕ2 | ϕ1UIϕ2 where p belongs to the set AP of atomic propositions and I is an interval

  • f the form [b, b], [a, b], [a, b), (a, b], (a, b), [a, ∞), (a, ∞) where 0 ≤ a < b.
  • Derived operators: ✸Iϕ = T UIϕ and ✷Iϕ = ¬✸I¬ϕ
  • MITL - restricion of MTL to non-singular modalities
slide-12
SLIDE 12

MTL - Metric Temporal Logic

From MTL to Deterministic Timed Automata

Semantics: (w, t) | = p ↔ wp[t] = 1 (w, t) | = ¬ϕ ↔ (w, t) | = ϕ (w, t) | = ϕ1 ∨ ϕ2 ↔ (w, t) | = ϕ1 or (w, t) | = ϕ2 (w, t) | = ϕ1UIϕ2 ↔ ∃t′ ∈ t + I st (w, t) | = ϕ2∧ ∀t′′ ∈ (t, t′) (w, t′′) | = ϕ1 Formula ϕ satisfied by w if (w, 0) | = ϕ

slide-13
SLIDE 13

MTL and Non-Determinism

From MTL to Deterministic Timed Automata

1. Unbounded variability

p

memorize changes

t t + a t + b q p → ✸(a,b)q

2. Acausality

t t + b p q t + a t′ pU(a,b)q

slide-14
SLIDE 14

Signals with Bounded Variability

From MTL to Deterministic Timed Automata

  • Signal w is of bounded variability k if for every proposition p, it

changes its value at most k times in every interval of length 1

t t + 1 1 2 3 k − 1 k

  • Reasonable assumption for many applications
  • Almost all systems have a bound on the frequency they operate
  • From now on, we assume that every input signal is of bounded

variability

slide-15
SLIDE 15

From MTL to Deterministic Timed Automata - Overview

From MTL to Deterministic Timed Automata

  • Translation from MTL to deterministic TA assuming bounded

variability of input signals

MTL Specification

slide-16
SLIDE 16

From MTL to Deterministic Timed Automata - Overview

From MTL to Deterministic Timed Automata

  • Translation from MTL to deterministic TA assuming bounded

variability of input signals

Prediction Generator Proposition Monitor Non−Deterministic TA

Translation

MTL Specification

Deterministic TA Non−Deterministic Dependent TA

slide-17
SLIDE 17

From MTL to Deterministic Timed Automata - Overview

From MTL to Deterministic Timed Automata

  • Translation from MTL to deterministic TA assuming bounded

variability of input signals

Prediction Generator Proposition Monitor Non−Deterministic TA

Translation passive use of clocks discrete predictions memorizes events deterministic by construction

MTL Specification

Deterministic TA Non−Deterministic Dependent TA

slide-18
SLIDE 18

From MTL to Deterministic Timed Automata - Overview

From MTL to Deterministic Timed Automata

  • Translation from MTL to deterministic TA assuming bounded

variability of input signals

Prediction Generator Proposition Monitor Prediction Generator Monitor Deterministic TA

Deterministic TA

Non−Deterministic TA

Translation Determinization passive use of clocks discrete predictions memorizes events deterministic by construction

MTL Specification

Deterministic TA Dependent TA Deterministic Non−Deterministic Dependent TA

Proposition

slide-19
SLIDE 19

Evaluating MTL Formulas - Overview

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t with a delay at

time t + f where f is a bound

p p p q t t + a t + b

memorize

pU(a,b)q

evaluate

(w, t) | = pU(a,b)q

slide-20
SLIDE 20

Evaluating MTL Formulas - Overview

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t with a delay at

time t + f where f is a bound

t t + a t + b

memorize

pU(a,b)q

evaluate

(w, t) | = pU(a,b)q q p q

slide-21
SLIDE 21

Evaluating MTL Formulas - Overview

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t with a delay at

time t + f where f is a bound

t t + a t + b

memorize

pU(a,b)q

evaluate

p q q (w, t) | = pU(a,b)q

slide-22
SLIDE 22

Evaluating MTL Formulas - Overview

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t with a delay at

time t + f where f is a bound

t t + a t + b

memorize

pU(a,b)q

evaluate

p q q (w, t) | = pU(a,b)q p p p q t

memorize evaluate

p U(a,∞)q (w, t) | = p U(a,∞)q t + a

slide-23
SLIDE 23

Evaluating MTL Formulas - Overview

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t with a delay at

time t + f where f is a bound

t t + a t + b

memorize

pU(a,b)q

evaluate

p q q (w, t) | = pU(a,b)q t

memorize evaluate

q p q p U(a,∞)q

???

t + a

slide-24
SLIDE 24

Evaluating MTL Formulas - Overview

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t with a delay at

time t + f where f is a bound

t t + a t + b

memorize

pU(a,b)q

evaluate

p q q (w, t) | = pU(a,b)q t

memorize evaluate

q p q p U(a,∞)q t + a

predict p Uq

slide-25
SLIDE 25

Evaluating MTL Formulas - future Function

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t by looking in the

interval [t, t + future(ϕ)) future(p) = p future(¬ϕ1) = future(ϕ1) future(ϕ1 ∨ ϕ2) = max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,b)ϕ2) = b + max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,∞)ϕ2) = 2 + a + max(future(ϕ1), future(ϕ2))

  • Why 2 additional lookaheads for future(ϕ1 U(a,∞)ϕ2)?

p q t t + a q [t, t + a) never sufficient to determine

whether p U(a,∞) holds at t

slide-26
SLIDE 26

Evaluating MTL Formulas - future Function

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t by looking in the

interval [t, t + future(ϕ)) future(p) = p future(¬ϕ1) = future(ϕ1) future(ϕ1 ∨ ϕ2) = max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,b)ϕ2) = b + max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,∞)ϕ2) = 2 + a + max(future(ϕ1), future(ϕ2))

  • Why 2 additional lookaheads for future(ϕ1 U(a,∞)ϕ2)?

t t + a [t, t + a) never sufficient to determine

whether p U(a,∞) holds at t

p q q

slide-27
SLIDE 27

Evaluating MTL Formulas - future Function

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t by looking in the

interval [t, t + future(ϕ)) future(p) = p future(¬ϕ1) = future(ϕ1) future(ϕ1 ∨ ϕ2) = max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,b)ϕ2) = b + max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,∞)ϕ2) = 2 + a + max(future(ϕ1), future(ϕ2))

  • Why 2 additional lookaheads for future(ϕ1 U(a,∞)ϕ2)?

p q t t + a q

whether p U(a,∞) holds at t

t + a + 1 [t, t + a + 1) sometimes sufficient to determine

slide-28
SLIDE 28

Evaluating MTL Formulas - future Function

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t by looking in the

interval [t, t + future(ϕ)) future(p) = p future(¬ϕ1) = future(ϕ1) future(ϕ1 ∨ ϕ2) = max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,b)ϕ2) = b + max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,∞)ϕ2) = 2 + a + max(future(ϕ1), future(ϕ2))

  • Why 2 additional lookaheads for future(ϕ1 U(a,∞)ϕ2)?

t t + a t + a + 1 p q q q

Elimination of 0-duration errors

slide-29
SLIDE 29

Evaluating MTL Formulas - future Function

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t by looking in the

interval [t, t + future(ϕ)) future(p) = p future(¬ϕ1) = future(ϕ1) future(ϕ1 ∨ ϕ2) = max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,b)ϕ2) = b + max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,∞)ϕ2) = 2 + a + max(future(ϕ1), future(ϕ2))

  • Why 2 additional lookaheads for future(ϕ1 U(a,∞)ϕ2)?

t t + a t + a + 1 p q q q

Elimination of 0-duration errors predict ϕ does not hold at t

slide-30
SLIDE 30

Evaluating MTL Formulas - future Function

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t by looking in the

interval [t, t + future(ϕ)) future(p) = p future(¬ϕ1) = future(ϕ1) future(ϕ1 ∨ ϕ2) = max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,b)ϕ2) = b + max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,∞)ϕ2) = 2 + a + max(future(ϕ1), future(ϕ2))

  • Why 2 additional lookaheads for future(ϕ1 U(a,∞)ϕ2)?

t t + a t + a + 1 p q q q

Elimination of 0-duration errors predict ϕ does not hold at t prediction immediatly aborted!

slide-31
SLIDE 31

Evaluating MTL Formulas - future Function

From MTL to Deterministic Timed Automata

  • Computation of the truth value of a formula ϕ at time t by looking in the

interval [t, t + future(ϕ)) future(p) = p future(¬ϕ1) = future(ϕ1) future(ϕ1 ∨ ϕ2) = max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,b)ϕ2) = b + max(future(ϕ1), future(ϕ2)) future(ϕ1 U(a,∞)ϕ2) = 2 + a + max(future(ϕ1), future(ϕ2))

  • Why 2 additional lookaheads for future(ϕ1 U(a,∞)ϕ2)?

t t + a t + a + 1 p q q q t + a + 2

Elimination of 0-duration errors predict ϕ does not hold at t prediction immediatly aborted!

slide-32
SLIDE 32

Timed Automata

From MTL to Deterministic Timed Automata

  • Variant of timed automata
  • Reads multi-dimensional Boolean signals
  • Clock assignments of the form x := 0, x := y and x := ⊥
  • Generalized B¨

uchi and parity accepance conditions

pq x := 0 x ≤ 2 pq p x ≥ 1 y := x x ≥ 1 q y := 0 y := 0 y ≤ 3 y ≤ 5 y ≥ 2

init state assignment clock clock guard inputs final state invariant

x := ⊥ y := ⊥

  • Run ξ: alternation of discrete and time steps
slide-33
SLIDE 33

Deterministic Timed Automata

From MTL to Deterministic Timed Automata

  • A timed automaton is deterministic if the following conditions hold:

1. For any 2 transitions with the same source state, either the labels

  • f the 2 target states are different or the intersection of the 2

transition guards is unsatisfiable 2. For any transition, either the labels of the source and target states are different, or the intersection between the source state invariant and the transition guard is either empty or isolated

p p x < 2 x ≥ 1 pq pq x ≥ 4 x ≤ 2

non-deterministic deterministic

pq x ≥ 2 x ≤ 4 pq pq pq p x ≥ 1 p x < 1

non-deterministic deterministic

slide-34
SLIDE 34

Dependent Timed Automata

From MTL to Deterministic Timed Automata

  • DTA → transducers of runs of TA
  • Both input and output alphabets
  • Input/output labels on states
  • Output labels on transitions
  • Passive read of clock of TA (no assignments)

x ≤ 2 x ≥ 1 y ≤ 3 y ≤ 5 y ≥ 2

init state clock guard final state invariant

pq/u p/u pq/u q/u x ≥ 1

inputs/outputs

u u u u y ≥ 3 u u

slide-35
SLIDE 35

Composition of TA and DTA

From MTL to Deterministic Timed Automata

1. Composition of two TAs

TA TA TA

||

L(A1 || A2) = L(A1) × L(A2) 2. Composition of two DTAs

DTA DTA DTA

For every run ξ and signal w, B1 ⊗ B2(w, ξ) = B2(B1(w, ξ)) 3. Composition of a TA and a DTA

TA TA DTA

L(A1 ⊗B2) = {w | ∃ξ1 accepting run of A1 carrying w and B2(w, ξ1) = ∅}

slide-36
SLIDE 36

From MTL to Non-Deterministic Timed Automata - Overview

From MTL to Deterministic Timed Automata

  • Novel construction for conversion of MTL formulas into

non-deterministic timed automata

  • Distinguishes between discrete guesses about the future and

accumulation of knowledge with clocks

  • Proposition monitors: deterministic TA that memorize information

about the input

  • Non-deterministic sequence of DTAs that handle arbitrary MTL

formulas

slide-37
SLIDE 37

Proposition Monitor

From MTL to Deterministic Timed Automata

  • Proposition monitor for p, where f = future(ϕ)
  • Requires 2 · ⌈fk

2 ⌉ clocks, where k is the bounded variability of p

x1 := 0 y1 := 0 x2 := 0 y1 < f y2 := 0 y1 < f x1 := 0 y1 = f x1 := 0 x2 := ⊥ y1 = f x1 := x2 y1 := 0 x2 := ⊥ y1 = f x1 := ⊥ y1 := ⊥ y1 = f x1 := x2 y1 := ⊥ x2 := ⊥ y1 = f x1 := x2 y2 := ⊥ x2 := ⊥ y2 := ⊥ p p p p p y1 < f y1 < f y1 < f

slide-38
SLIDE 38

Dependent Timed Automaton for ϕ1U(a,b)ϕ2

From MTL to Deterministic Timed Automata

pU(a,b)q q (w, t) | = pU(a,b)q q p t t + a t + b p q q q q (w, t) | = pU(a,b)q

slide-39
SLIDE 39

Dependent Timed Automaton for ϕ1U(a,∞)ϕ2

From MTL to Deterministic Timed Automata

u u u I1 I2 I3 I4 u u g2 g2 g4 u g4 u g3 u u g1 u g3 u u g1

slide-40
SLIDE 40

Dependent Timed Automaton for ϕ1U(a,∞)ϕ2

From MTL to Deterministic Timed Automata

u u u I1 I2 I3 I4 u u g2 g2 g4 u g4 u g3 u u g1 u g3 u u g1 t t + a t + a + 1 t + a + 2 p q

slide-41
SLIDE 41

Dependent Timed Automaton for ϕ1U(a,∞)ϕ2

From MTL to Deterministic Timed Automata

u u u I1 I2 I3 I4 u u g2 g2 g4 u g4 u g3 u u g1 u g3 u u g1 t t + a t + a + 1 t + a + 2 q p

slide-42
SLIDE 42

Dependent Timed Automaton for ϕ1U(a,∞)ϕ2

From MTL to Deterministic Timed Automata

u u u I1 I2 I3 I4 u u g2 g2 g4 u g4 u g3 u u g1 u g3 u u g1 t t + a t + a + 1 t + a + 2 p q

slide-43
SLIDE 43

Dependent Timed Automaton for ϕ1U(a,∞)ϕ2

From MTL to Deterministic Timed Automata

u u u I1 I2 I3 I4 u u g2 g2 g4 u g4 u g3 u u g3 u u g1 t t + a t + a + 2 p q u g1 t + a + 1 t′

slide-44
SLIDE 44

Summary: MTL to Non-deterministic TA

From MTL to Deterministic Timed Automata

  • Inductive construction of a timed automaton Aϕ that accepts the

language of arbitrary MTL formula ϕ

  • For every MTL formula ϕ with m propositions, n unbounded temporal
  • perators, and inputs of bounded variability k, there exists a

non-deterministic TA with 2m⌈ k·future(ϕ)

2

⌉ + 1 clocks and ((2⌈ k·future(ϕ)

2

⌉)m + 1)(2 · 4n + 1) states

slide-45
SLIDE 45

Determinizing Timed Automata Obtained from MTL Formulas

From MTL to Deterministic Timed Automata

  • Construction for the conversion of MTL formulas to non-deterministic

timed automata

  • → can be determinized!!
  • Subset construction for finite and infinite words
  • Piterman’s variation of Safra’s construction
  • Slight adaptations - mostly syntactic
  • Take into account ‘asynchronicity’ of transitions from a set of states
  • Non-deterministic DTA B → deterministic DTA D
  • For every deterministic TA A, L(A ⊗ B) = L(A ⊗ D)
  • For every MTL formula ϕ with m propositions, n unbounded temporal
  • perators, and inputs of bounded variability k, there exists a

deterministic TA with 2m⌈ k·future(ϕ)

2

⌉ + 1 clocks and ((2⌈ k·future(ϕ)

2

⌉)m + 1) · 22nlogn) states

slide-46
SLIDE 46

Determinizing Timed Automata Obtained from MTL Formulas

From MTL to Deterministic Timed Automata

  • Construction for the conversion of MTL formulas to non-deterministic

timed automata

  • → can be determinized!!
  • Subset construction for finite and infinite words
  • Piterman’s variation of Safra’s construction
  • Slight adaptations - mostly syntactic
  • Take into account ‘asynchronicity’ of transitions from a set of states
  • Non-deterministic DTA B → deterministic DTA D
  • For every deterministic TA A, L(A ⊗ B) = L(A ⊗ D)
  • For every MTL formula ϕ with m propositions, n unbounded temporal
  • perators, and inputs of bounded variability k, there exists a

deterministic TA with 2m⌈ k·future(ϕ)

2

⌉ + 1 clocks and ((2⌈ k·future(ϕ)

2

⌉)m + 1) · 22nlogn) states

slide-47
SLIDE 47

Conclusions and Future Work

From MTL to Deterministic Timed Automata

Conclusions:

  • Novel construction for translating MTL to timed automata under

bounded variability assumption

  • Unified framework for model checking, monitoring and controller

synthesis

  • Exponentially improves on the complexity of securing deterministic

timed automata

  • Avoids doubly exponential number of clocks
  • Consider MTL with past operators
  • Optimize and improve the translation
  • Implementation
slide-48
SLIDE 48

Conclusions and Future Work

From MTL to Deterministic Timed Automata

Conclusions:

  • Novel construction for translating MTL to timed automata under

bounded variability assumption

  • Unified framework for model checking, monitoring and controller

synthesis

  • Exponentially improves on the complexity of securing deterministic

timed automata

  • Avoids doubly exponential number of clocks

Future Work:

  • Consider MTL with past operators
  • Optimize and improve the translation
  • Implementation