On Signal Temporal Logic

Size: px
Start display at page:

Download "On Signal Temporal Logic"

Transcription

1 On Signal Temporal Logic Alexandre Donzé University of California, Berkeley February 3, 2014 Alexandre Donzé EECS Spring / 52

2 Outline Signal Temporal Logic From LTL to STL Robust Semantics 2 Robust Monitoring of STL 3 STL Problems PSTL and Parameter Synthesis Falsification Specification Mining Alexandre Donzé Signal Temporal Logic EECS Spring / 52

3 Outline Signal Temporal Logic From LTL to STL Robust Semantics 2 Robust Monitoring of STL 3 STL Problems PSTL and Parameter Synthesis Falsification Specification Mining Alexandre Donzé Signal Temporal Logic EECS Spring / 52

4 Temporal logics in a nutshell Temporal logics specify patterns that timed behaviors of systems may or may not satisfy. The most intuitive is the Linear Temporal Logic (LTL), dealing with discrete sequences of states. Based on logic operators (,, ) and temporal operators: next, always (G), eventually (F) and until (U) Alexandre Donzé Signal Temporal Logic EECS Spring / 52

5 Linear Temporal Logic An LTL formula ϕ is evaluated on a sequence, e.g., w = aaabbaaa... At each step of w, we can define a truth value of ϕ, noted χ ϕ (w, i) LTL atoms are symbols: a, b: i = w = a a a b b a a a... χ a (w, i) = χ b (w, i) = Alexandre Donzé Signal Temporal Logic EECS Spring / 52

6 LTL, Temporal Operators ( next ), G ( globally ), F ( eventually ) and U ( until ). They are evaluated at each step wrt the future of sequences Trace w = a a a b b a a a... b (next) χ b (w, i) = ?... G a (always) χ Ga (w, i) = ? 1? 1?... F b (eventually) χ Fb (w, i) = ? 0? 0?... a U b (until) χ aub (w, i) = ? 0? 0?... Remarks χ is acausal: it depends on future events Finite sequences semantics allows to define a unique value (w, i) Notation: w = ϕ χ ϕ (w, 0) = 1 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

7 LTL, Temporal Operators ( next ), G ( globally ), F ( eventually ) and U ( until ). They are evaluated at each step wrt the future of sequences Trace w = a a a b b a a a... b (next) χ b (w, i) = ?... G a (always) χ Ga (w, i) = ? 1? 1?... F b (eventually) χ Fb (w, i) = ? 0? 0?... a U b (until) χ aub (w, i) = ? 0? 0?... Remarks χ is acausal: it depends on future events Finite sequences semantics allows to define a unique value (w, i) Notation: w = ϕ χ ϕ (w, 0) = 1 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

8 LTL, Temporal Operators ( next ), G ( globally ), F ( eventually ) and U ( until ). They are evaluated at each step wrt the future of sequences Trace w = a a a b b a a a... b (next) χ b (w, i) = ?... G a (always) χ Ga (w, i) = ? 1? 1?... F b (eventually) χ Fb (w, i) = ? 0? 0?... a U b (until) χ aub (w, i) = ? 0? 0?... Remarks χ is acausal: it depends on future events Finite sequences semantics allows to define a unique value (w, i) Notation: w = ϕ χ ϕ (w, 0) = 1 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

9 LTL, Temporal Operators ( next ), G ( globally ), F ( eventually ) and U ( until ). They are evaluated at each step wrt the future of sequences Trace w = a a a b b a a a... b (next) χ b (w, i) = ?... G a (always) χ Ga (w, i) = ? 1? 1?... F b (eventually) χ Fb (w, i) = ? 0? 0?... a U b (until) χ aub (w, i) = ? 0? 0?... Remarks χ is acausal: it depends on future events Finite sequences semantics allows to define a unique value (w, i) Notation: w = ϕ χ ϕ (w, 0) = 1 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

10 LTL, Temporal Operators ( next ), G ( globally ), F ( eventually ) and U ( until ). They are evaluated at each step wrt the future of sequences Trace w = a a a b b a a a... b (next) χ b (w, i) = ?... G a (always) χ Ga (w, i) = ? 1? 1?... F b (eventually) χ Fb (w, i) = ? 0? 0?... a U b (until) χ aub (w, i) = ? 0? 0?... Remarks χ is acausal: it depends on future events Finite sequences semantics allows to define a unique value (w, i) Notation: w = ϕ χ ϕ (w, 0) = 1 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

11 Model-Checking Suppose w are execution traces of some system M System M aaaabbbaa... Property ϕ Model-checking: proving that M = ϕ where M = ϕ For all w in traces(m), χ ϕ (w, 0) = 1 Monitoring: computing χ ϕ (w, 0) for finite sets of w Remark: Statistical model checking Doing statistics on χ ϕ (w, 0) for populations of w Alexandre Donzé Signal Temporal Logic EECS Spring / 52

12 Model-Checking Suppose w are execution traces of some system M System M aaaabbbaa... Property ϕ Model-checking: proving that M = ϕ where M = ϕ For all w in traces(m), χ ϕ (w, 0) = 1 Monitoring: computing χ ϕ (w, 0) for finite sets of w Remark: Statistical model checking Doing statistics on χ ϕ (w, 0) for populations of w Alexandre Donzé Signal Temporal Logic EECS Spring / 52

13 Model-Checking Suppose w are execution traces of some system M System M aaaabbbaa... Property ϕ Model-checking: proving that M = ϕ where M = ϕ For all w in traces(m), χ ϕ (w, 0) = 1 Monitoring: computing χ ϕ (w, 0) for finite sets of w Remark: Statistical model checking Doing statistics on χ ϕ (w, 0) for populations of w Alexandre Donzé Signal Temporal Logic EECS Spring / 52

14 Temporal Logics in the Wild Model checking temporal logics successful in formal verification and synthesis for hardware digital circuits Most on-going research in model checking aims at software But growing interest/needs in even scarier fields such as analog/mixed-signal circuits, systems biology, cyber-physical systems Tendency to move from discrete-time discrete systems to hybrid (discrete-continuous) systems Alexandre Donzé Signal Temporal Logic EECS Spring / 52

15 Temporal Logics in the Wild Model checking temporal logics successful in formal verification and synthesis for hardware digital circuits Most on-going research in model checking aims at software But growing interest/needs in even scarier fields such as analog/mixed-signal circuits, systems biology, cyber-physical systems Tendency to move from discrete-time discrete systems to hybrid (discrete-continuous) systems Alexandre Donzé Signal Temporal Logic EECS Spring / 52

16 Temporal Logics in the Wild Model checking temporal logics successful in formal verification and synthesis for hardware digital circuits Most on-going research in model checking aims at software But growing interest/needs in even scarier fields such as analog/mixed-signal circuits, systems biology, cyber-physical systems Tendency to move from discrete-time discrete systems to hybrid (discrete-continuous) systems Alexandre Donzé Signal Temporal Logic EECS Spring / 52

17 Temporal Logics in the Wild Model checking temporal logics successful in formal verification and synthesis for hardware digital circuits Most on-going research in model checking aims at software But growing interest/needs in even scarier fields such as analog/mixed-signal circuits, systems biology, cyber-physical systems Tendency to move from discrete-time discrete systems to hybrid (discrete-continuous) systems Alexandre Donzé Signal Temporal Logic EECS Spring / 52

18 Temporal Logics in the Wild Vdd ids1 ids2 Vd1 C C Vd2 Vctrl L R R L IL1 IL2 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

19 Temporal Logics in the Wild Alexandre Donzé Signal Temporal Logic EECS Spring / 52

20 Temporal Logics in the Wild Alexandre Donzé Signal Temporal Logic EECS Spring / 52

21 Temporal Logics in the Wild On Temporal Logic and Signal Processing, A. Donzé, O. Maler, E. Bartocci, D. Nickovic, R. Grosu, S. Smolka ATVA 2012 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

22 From LTL to STL Extension of LTL with real-time and real-valued constraints Ex: request-grant property LTL G( r => F g) Boolean predicates, discrete-time Alexandre Donzé Signal Temporal Logic EECS Spring / 52

23 From LTL to STL Extension of LTL with real-time and real-valued constraints Ex: request-grant property LTL G( r => F g) Boolean predicates, discrete-time Alexandre Donzé Signal Temporal Logic EECS Spring / 52

24 From LTL to STL Extension of LTL with real-time and real-valued constraints Ex: request-grant property LTL G( r => F g) Boolean predicates, discrete-time MTL G( r => F [0,.5s] g ) Boolean predicates, real-time Alexandre Donzé Signal Temporal Logic EECS Spring / 52

25 From LTL to STL Extension of LTL with real-time and real-valued constraints Ex: request-grant property LTL G( r => F g) Boolean predicates, discrete-time MTL G( r => F [0,.5s] g ) Boolean predicates, real-time STL G( x[t] > 0 => F [0,.5s] y[t] > 0 ) Predicates over real values, real-time Alexandre Donzé Signal Temporal Logic EECS Spring / 52

26 STL Syntax MTL/STL Formulas ϕ := µ ϕ ϕ ψ ϕ U [a,b] ψ = Eventually is F [a,b] ϕ = U [a,b] ϕ Always is G [a,b] ϕ = ( F [a,b] ϕ) STL Predicates STL adds an analog layer to MTL. Assume signals x 1 [t], x 2 [t],..., x n [t], then atomic predicates are of the form: µ = f (x 1 [t],..., x n [t]) > 0 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

27 STL Syntax MTL/STL Formulas ϕ := µ ϕ ϕ ψ ϕ U [a,b] ψ = Eventually is F [a,b] ϕ = U [a,b] ϕ Always is G [a,b] ϕ = ( F [a,b] ϕ) STL Predicates STL adds an analog layer to MTL. Assume signals x 1 [t], x 2 [t],..., x n [t], then atomic predicates are of the form: µ = f (x 1 [t],..., x n [t]) > 0 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

28 STL Semantics The satisfaction of a formula ϕ by a signal x = (x 1,..., x n ) at time t is (x, t) = µ f (x 1 [t],..., x n [t]) > (x, t) = ϕ ψ (x, t) = ϕ (x, t) = ψ (x, t) = ϕ ((x, t) = ϕ) (x, t) = ϕ U [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ t [t, t ], (x, t ) = ϕ} Eventually is F [a,b] ϕ = U [a,b] ϕ (x, t) = F [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ Always is G [a,b] ϕ = ( F [a,b] ϕ) (x, t) = G [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ Alexandre Donzé Signal Temporal Logic EECS Spring / 52

29 STL Semantics The satisfaction of a formula ϕ by a signal x = (x 1,..., x n ) at time t is (x, t) = µ f (x 1 [t],..., x n [t]) > (x, t) = ϕ ψ (x, t) = ϕ (x, t) = ψ (x, t) = ϕ ((x, t) = ϕ) (x, t) = ϕ U [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ t [t, t ], (x, t ) = ϕ} Eventually is F [a,b] ϕ = U [a,b] ϕ (x, t) = F [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ Always is G [a,b] ϕ = ( F [a,b] ϕ) (x, t) = G [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ Alexandre Donzé Signal Temporal Logic EECS Spring / 52

30 STL Semantics The satisfaction of a formula ϕ by a signal x = (x 1,..., x n ) at time t is (x, t) = µ f (x 1 [t],..., x n [t]) > (x, t) = ϕ ψ (x, t) = ϕ (x, t) = ψ (x, t) = ϕ ((x, t) = ϕ) (x, t) = ϕ U [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ t [t, t ], (x, t ) = ϕ} Eventually is F [a,b] ϕ = U [a,b] ϕ (x, t) = F [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ Always is G [a,b] ϕ = ( F [a,b] ϕ) (x, t) = G [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ Alexandre Donzé Signal Temporal Logic EECS Spring / 52

31 STL Examples Alexandre Donzé Signal Temporal Logic EECS Spring / 52

32 STL Examples The signal is never above 3.5 ϕ := G (x[t] < 3.5) Alexandre Donzé Signal Temporal Logic EECS Spring / 52

33 STL Examples Between 2s and 6s the signal is between -2 and 2 ϕ := G [2,6] ( x[t] < 2) s 6 s 2 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

34 STL Examples Always x >0.5 after 1 s, x settles under 0.5 for 1.5 s ϕ := G(x[t] >.5 F [0,.6] ( G [0,1.5] x[t] < 0.5)) s 1.5 s 1 s 1.5 s 1 s 1.5 s Alexandre Donzé Signal Temporal Logic EECS Spring / 52

35 Model-Checking STL Models are generally hybrid systems producing hybrid traces Model-Checking untractable except in restrictive cases, resort to monitoring Quantitative satisfaction of STL can accomodate noise/approximations and more Hybrid System ẋ = f q (x) q 1 q 0 q 2 Simulation q 0 q 1 Tool Support: Breach Toolbox Alexandre Donzé Signal Temporal Logic EECS Spring / 52

36 Model-Checking STL Models are generally hybrid systems producing hybrid traces Model-Checking untractable except in restrictive cases, resort to monitoring Quantitative satisfaction of STL can accomodate noise/approximations and more Hybrid System ẋ = f q (x) q 1 q 0 q 2 Simulation q 0 q 1 x(t) STL monitoring Property ϕ G [ q 0 F[0, 1] q 2U[0,.2](x.5) ] ok ok Tool Support: Breach Toolbox Alexandre Donzé Signal Temporal Logic EECS Spring / 52

37 Model-Checking STL Models are generally hybrid systems producing hybrid traces Model-Checking untractable except in restrictive cases, resort to monitoring Quantitative satisfaction of STL can accomodate noise/approximations and more ok Hybrid System ẋ = f q (x) q 0 q 1 q 2 Simulation q 0 q 1 x(t) ± ε STL monitoring Property ϕ G [ q 0 F[0, 1] q 2U[0,.2](x.5) ] Tool Support: Breach Toolbox ok Alexandre Donzé Signal Temporal Logic EECS Spring / 52

38 Model-Checking STL Models are generally hybrid systems producing hybrid traces Model-Checking untractable except in restrictive cases, resort to monitoring Quantitative satisfaction of STL can accomodate noise/approximations and more ok Hybrid System ẋ = f q (x) q 0 q 1 q 2 Simulation q 0 q 1 x(t) ± ε STL monitoring Property ϕ G [ q 0 F[0, 1] q 2U[0,.2](x.5) ] ε Tool Support: Breach Toolbox ok Alexandre Donzé Signal Temporal Logic EECS Spring / 52

39 Outline Signal Temporal Logic From LTL to STL Robust Semantics 2 Robust Monitoring of STL 3 STL Problems PSTL and Parameter Synthesis Falsification Specification Mining Alexandre Donzé Signal Temporal Logic EECS Spring / 52

40 STL Semantics The validity of a formula ϕ with respect to a signal x = (x 1,..., x n ) at time t is (x, t) = µ f (x 1 [t],..., x n [t]) > 0 (x, t) = ϕ ψ (x, t) = ϕ (x, t) = ψ (x, t) = ϕ ((x, t) = ϕ) (x, t) = ϕ U [a,b] ψ t [t + a, t + b] such that (x, t ) = ψ t [t, t ], (x, t ) = ϕ} Alexandre Donzé Signal Temporal Logic EECS Spring / 52

41 STL Satisfaction Function The semantics can be defined as function χ ϕ (x, t) such that: x, t = ϕ χ ϕ (x, t) = Considering Booleans (B, <, ) as an order with involution: χ µ (x, t) = f (x 1 [t],..., x n [t]) > 0 χ ϕ (x, t) = χ ϕ (x, t) χ ϕ 1 ϕ 2 (x, t) = min(χ ϕ 1 (x, t), χ ϕ 2 (w, t)) χ ϕ 1 U [a,b] ϕ 2 (x, t) = max τ t+[a,b] (min(χϕ 2 (x, τ), min s [t,τ] χϕ 1 (x, s)) Alexandre Donzé Signal Temporal Logic EECS Spring / 52

42 Example Consider a simple piecewise affine signal: x t Satisfaction signal of : ϕ = x 2 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

43 Example Consider a simple piecewise affine signal: x t Satisfaction signal of : ϕ = x 2 Alexandre Donzé Signal Temporal Logic EECS Spring / 52

44 Example Consider a simple piecewise affine signal: x t Satisfaction signal of : ϕ = x 2 ϕ = F(x 2) Alexandre Donzé Signal Temporal Logic EECS Spring / 52

45 Example Consider a simple piecewise affine signal: x t Satisfaction signal of : ϕ = x 2 ϕ = F [0,0.5] (x 2) Alexandre Donzé Signal Temporal Logic EECS Spring / 52

46 Robust Satisfaction Signal The Reals (R, <, ) also form an order with involution: ρ µ (x, t) = f (x 1 [t],..., x n [t]) ρ ϕ (x, t) = ρ ϕ (x, t) ρ ϕ 1 ϕ 2 (x, t) = min(ρ ϕ 1 (x, t), ρ ϕ 2 (w, t)) ρ ϕ 1 U [a,b] ϕ 2 (x, t) = sup (min(ρ ϕ 2 (x, τ), τ t+[a,b] inf s [t,τ] ρϕ 1 (x, s)) Alexandre Donzé Signal Temporal Logic EECS Spring / 52

47 Property of Robust Satisfaction Signal Sign indicates satisfaction status ρ ϕ (x, t) > 0 x, t ϕ ρ ϕ (x, t) < 0 x, t ϕ Absolute value indicates tolerance x, t ϕ and x x ρ ϕ (x, t) x, t ϕ x, t ϕ and x x ρ ϕ (x, t) x, t ϕ Alexandre Donzé Signal Temporal Logic EECS Spring / 52

48 Property of Robust Satisfaction Signal Sign indicates satisfaction status ρ ϕ (x, t) > 0 x, t ϕ ρ ϕ (x, t) < 0 x, t ϕ Absolute value indicates tolerance x, t ϕ and x x ρ ϕ (x, t) x, t ϕ x, t ϕ and x x ρ ϕ (x, t) x, t ϕ Alexandre Donzé Signal Temporal Logic EECS Spring / 52

49 Outline Signal Temporal Logic From LTL to STL Robust Semantics 2 Robust Monitoring of STL 3 STL Problems PSTL and Parameter Synthesis Falsification Specification Mining Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

50 Robust Monitoring A robust STL monitor is a transducer that transform x into ρ ϕ (x,.) In practice Trace: time words over alphabet R, linear interpolation Input: x( ) (t i, x(t i )) i N 0utput: ρ ϕ (x, ) (r j, z(r j )) j N Continuity, and piecewise affine property preserved Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

51 Robust Monitoring A robust STL monitor is a transducer that transform x into ρ ϕ (x,.) x[t] STL Monitor Formula ϕ ρ ϕ (x, )/χ ϕ (x, ) Quant. sat Bool. sat In practice Trace: time words over alphabet R, linear interpolation Input: x( ) (t i, x(t i )) i N 0utput: ρ ϕ (x, ) (r j, z(r j )) j N Continuity, and piecewise affine property preserved Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

52 Robust Monitoring A robust STL monitor is a transducer that transform x into ρ ϕ (x,.) x[t] STL Monitor Formula ϕ ρ ϕ (x, )/χ ϕ (x, ) Quant. sat Bool. sat In practice Trace: time words over alphabet R, linear interpolation Input: x( ) (t i, x(t i )) i N 0utput: ρ ϕ (x, ) (r j, z(r j )) j N Continuity, and piecewise affine property preserved Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

53 Computing the Robust Satisfaction Function ( Donze, Ferrere, Maler, Efficient Robust Monitoring of STL Formula, CAV 13) Atomic transducers compute in linear time in the size of the input Key idea is to exploit efficient streaming algorithm (Lemire s) computing the max and min over a moving window The function ρ ϕ (x, t) is computed inductively on the structure of ϕ linear time complexity in size of x is preserved exponential worst case complexity in the size of ϕ Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

54 Boolean operators Negation Input signal: (t i, x(t i )) i nx Output signal: (t i, x(t i )) i nx Conjunction Input signals: (t i, x(t i )) i nx, (t i, x (t i)) i nx Output signal: (r i, z(r i )) i nz Time sequence r contains t, t, and punctual intersections x x Value z(r i ) = min{x(r i ), x (r i )} Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

55 Boolean operators Negation Input signal: (t i, x(t i )) i nx Output signal: (t i, x(t i )) i nx Conjunction Input signals: (t i, x(t i )) i nx, (t i, x (t i)) i nx Output signal: (r i, z(r i )) i nz Time sequence r contains t, t, and punctual intersections x x Value z(r i ) = min{x(r i ), x (r i )} Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

56 Until Rewrite Property Boolean Semantics ϕu [a,b] ψ G [0,a] ϕ F [a,b] ψ F {a} (ϕuψ) Quantitative Semantics ρ ϕu[a,b]ψ (x, t) = ρ G [0,a]ϕ F [a,b] ψ F {a} (ϕuψ) (x, t) Combines untimed until and timed eventually Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

57 Until Rewrite Property Boolean Semantics ϕu [a,b] ψ G [0,a] ϕ F [a,b] ψ F {a} (ϕuψ) Quantitative Semantics ρ ϕu[a,b]ψ (x, t) = ρ G [0,a]ϕ F [a,b] ψ F {a} (ϕuψ) (x, t) Combines untimed until and timed eventually Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

58 Untimed Until Computed by backward induction: For all s < t, we note x [s,t) the restriction of x to [s, t). Boolean Semantics x, s ϕuψ iff x [s,t), s ϕuψ or ( x [s,t), s Gϕ and x, t ϕuψ ) Quantitative Semantics ρ ϕuψ (x, s) = max { ρ ϕuψ (x [s,t), s), min{ρ(gϕ, x [s,t), s), ρ(ϕuψ, x, t)} } Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

59 Untimed Until Computed by backward induction: For all s < t, we note x [s,t) the restriction of x to [s, t). Boolean Semantics x, s ϕuψ iff x [s,t), s ϕuψ or ( x [s,t), s Gϕ and x, t ϕuψ ) Quantitative Semantics ρ ϕuψ (x, s) = max { ρ ϕuψ (x [s,t), s), min{ρ(gϕ, x [s,t), s), ρ(ϕuψ, x, t)} } Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

60 Timed Eventually Definition: ρ F [a,b]ϕ (x, t) = sup ρ ϕ (x, t) = sup x t [t+a,t+b] [t+a,t+b] Computation: the maximum is reached at t + a, t + b, or at sample point in {t i t i (t + a, t + b]} max{x(t i ) t i (t + a, t + b]} computed by Lemire s algorithm: we maintain an ordered set M such that max{x(t i ) i M } = max{x(t i ) t i (t + a, t + b]} Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

61 Timed Eventually: two steps in Lemire s algorithm a b Maximum candidates {x(t i ) i M } = {u 1, u 2, u 3, u 4 } Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

62 Timed Eventually: two steps in Lemire s algorithm t+a t+b Maximum candidates {x(t i ) i M } = {u 1, u 2, u 3 } Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

63 Timed Eventually: two steps in Lemire s algorithm t+a t+b Maximum candidates {x(t i ) i M } = {u 2, u 3 } Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

64 Performance Results ϕ = 50,Time ρ n y Computation Time (s) ϕ = 25,Time ρ n y 0.5 ϕ = 1,Time ρ n y 0 0 2e4 4e4 6e4 8e4 10e4 Signal size n y Alexandre Donzé Robust Monitoring of STL EECS Spring / 52

65 1 Signal Temporal Logic From LTL to STL Robust Semantics 2 Robust Monitoring of STL 3 STL Problems PSTL and Parameter Synthesis Falsification Specification Mining Alexandre Donzé STL Problems EECS Spring / 52

66 Parametric STL Informally, a PSTL formula is an STL formula where (some) numeric constants are left unspecified, represented by symbolic parameters. Definition (PSTL syntax) ϕ := µ(x[t]) > π ϕ ϕ ψ ϕ U [τ1,τ 2 ] ψ where π is a scale parameter τ 1, τ 2 are time parameters Alexandre Donzé STL Problems EECS Spring / 52

67 Parametric STL - Illustration After 2s, the signal is never above 3 ϕ := F [2, ] (x[t] < 3) Alexandre Donzé STL Problems EECS Spring / 52

68 Parametric STL - Illustration After 2s, the signal is never above 3 ϕ := F [2, ] (x[t] < 3) Alexandre Donzé STL Problems EECS Spring / 52

69 Parametric STL - Illustration After τ s, the signal is never above π ϕ := G [τ, ] (x[t] < π) τ? π? Alexandre Donzé STL Problems EECS Spring / 52

70 Parameter synthesis for PSTL Problem Given a system S with a PSTL formula with n symbolic parameters ϕ(p 1,..., p n ), find a tight valuation function v such that x, t = ϕ(v(p 1 ),..., v(p n )), Informally, a valuation v is tight if there exists a valuation v in a δ-close neighborhood of v, with δ small, such that x, t =/ ϕ(v (p 1 ),..., v (p n )) Alexandre Donzé STL Problems EECS Spring / 52

71 Example ( ) ϕ := G x[t] > π F [0,τ1 ] ( G [0,τ2 ] x[t] < π) Valuation 1: π 1.5, τ 1 1s, τ s Valuation 2 (tight): π.5, τ s, τ 2 2 s Alexandre Donzé STL Problems EECS Spring / 52

72 Example ( ) ϕ := G x[t] > π F [0,τ1 ] ( G [0,τ2 ] x[t] < π) Valuation 1: π 1.5, τ 1 1s, τ s Valuation 2 (tight): π.5, τ s, τ 2 2 s π τ 1 s τ 2 s Alexandre Donzé STL Problems EECS Spring / 52

73 Example ( ) ϕ := G x[t] > π F [0,τ1 ] ( G [0,τ2 ] x[t] < π) Valuation 1: π 1.5, τ 1 1s, τ s Valuation 2 (tight): π.5, τ s, τ 2 2 s π τ 1 s τ 2 s Alexandre Donzé STL Problems EECS Spring / 52

74 Parameter synthesis Challenges Multiple solutions: which one to chose? Tightness implies to optimize the valuation v(p i ) for each p i The problem can be greatly simplified if the formula is monotonic in each p i. Definition A PSTL formula ϕ(p 1,, p n ) is monotonically increasing wrt p i if x = ϕ(v(p 1 ),..., v(p i ),...) x, v, v, v(p j ) = v (p j ), j i x = ϕ(v (p 1 ),..., v (p i ),...) v (p i ) v(p i ) It is monotonically decreasing if this holds when replacing v (p i ) v(p i ) with v (p i ) v(p i ). Alexandre Donzé STL Problems EECS Spring / 52

75 Parameter synthesis Challenges Multiple solutions: which one to chose? Tightness implies to optimize the valuation v(p i ) for each p i The problem can be greatly simplified if the formula is monotonic in each p i. Definition A PSTL formula ϕ(p 1,, p n ) is monotonically increasing wrt p i if x = ϕ(v(p 1 ),..., v(p i ),...) x, v, v, v(p j ) = v (p j ), j i x = ϕ(v (p 1 ),..., v (p i ),...) v (p i ) v(p i ) It is monotonically decreasing if this holds when replacing v (p i ) v(p i ) with v (p i ) v(p i ). Alexandre Donzé STL Problems EECS Spring / 52

76 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) Exact D(x, ϕ) p 2 Alexandre Donzé STL Problems EECS Spring / 52

77 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) x p 2 Alexandre Donzé STL Problems EECS Spring / 52

78 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) x p 2 Alexandre Donzé STL Problems EECS Spring / 52

79 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) x p 2 Alexandre Donzé STL Problems EECS Spring / 52

80 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) x p 2 Alexandre Donzé STL Problems EECS Spring / 52

81 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) x x p 2 Alexandre Donzé STL Problems EECS Spring / 52

82 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) x x x p 2 Alexandre Donzé STL Problems EECS Spring / 52

83 Monotonic Validity Domains The validity domain D of ϕ and x is the set of valuations v s.t. x = ϕ(v) A tight valuation is a valuation in D close to its boundary 100 D 120 In case of monoticity, D has the structure of a Pareto front which can be estimated with generalized binary search heuristics p 1 D(x, ϕ) D(x, ϕ) x x x p 2 Alexandre Donzé STL Problems EECS Spring / 52

84 Deciding Monotonicity Simple cases f (x) > π Deciding monotonicity can be encoded in an SMT query However, the problem is undecidable, due to undecidabilty of STL f (x) < π G [0,τ] ϕ F [0,τ] ϕ etc General case In practice, monotonicity can be decided easily (in our experience so far) Alexandre Donzé STL Problems EECS Spring / 52

85 Deciding Monotonicity Simple cases f (x) > π Deciding monotonicity can be encoded in an SMT query However, the problem is undecidable, due to undecidabilty of STL f (x) < π G [0,τ] ϕ F [0,τ] ϕ etc General case In practice, monotonicity can be decided easily (in our experience so far) Alexandre Donzé STL Problems EECS Spring / 52

86 1 Signal Temporal Logic From LTL to STL Robust Semantics 2 Robust Monitoring of STL 3 STL Problems PSTL and Parameter Synthesis Falsification Specification Mining Alexandre Donzé STL Problems EECS Spring / 52

87 Solving the Falsification problem Problem Given the system: u(t) System S S(u(t)) Find an input signal u U such that S(u(t)), 0 =/ ϕ In practice We parameterize U and reduce the problem to a parameter synthesis problem within some set P u The search of a solution is guided by the quantitative measure of satisfaction of ϕ Alexandre Donzé STL Problems EECS Spring / 52

88 Solving the Falsification problem Problem Given the system: u(t) System S S(u(t)) Find an input signal u U such that S(u(t)), 0 =/ ϕ In practice We parameterize U and reduce the problem to a parameter synthesis problem within some set P u The search of a solution is guided by the quantitative measure of satisfaction of ϕ Alexandre Donzé STL Problems EECS Spring / 52

89 Parameterizing the Input Space Input parameter set P u Input signals u(t) U Note The set of input signals generated by P u is in general a subset of U I.e., we do not guarantee completeness. Alexandre Donzé STL Problems EECS Spring / 52

90 Falsification with Quantitative Satisfaction Given a formula ϕ, a signal x and a time t, recall that we have: ρ ϕ (x, t) > 0 x, t ϕ ρ ϕ (x, t) < 0 x, t ϕ ok p u System S x(t) STL Monitor ϕ ρ ϕ (x, t) As x is obtained by simulation using input parameters p u, the falsification problem can be reduced to solving If ρ < 0, we found a counterexample. ρ = min p u P u ρ ϕ (x, 0) ok Alexandre Donzé STL Problems EECS Spring 2014 / 52

91 Falsification with Quantitative Satisfaction Given a formula ϕ, a signal x and a time t, recall that we have: ρ ϕ (x, t) > 0 x, t ϕ ρ ϕ (x, t) < 0 x, t ϕ ok p u System S x(t) STL Monitor ϕ ρ ϕ (x, t) As x is obtained by simulation using input parameters p u, the falsification problem can be reduced to solving If ρ < 0, we found a counterexample. ρ = min p u P u ρ ϕ (x, 0) ok Alexandre Donzé STL Problems EECS Spring 2014 / 52

92 Optimizing Satisfaction Function Solving ρ = min p u P u F(p u ) = ρ ϕ (x, 0) is difficultin general, as nothing can be assumed on F. In practice, use of global nonlinear optimization algorithms Success will depend on how smooth is F u, its local optima, etc Critical is the ability to compute ρ efficiently. Alexandre Donzé STL Problems EECS Spring / 52

93 Smoothing Quantitative Satisfaction Functions Depending on how ρ is defined, the function to optimize can have different profiles Alexandre Donzé STL Problems EECS Spring / 52

94 Smoothing Quantitative Satisfaction Functions Depending on how ρ is defined, the function to optimize can have different profiles (not (ev_[0, 5] (gear4w))) and (not ((ev (speed[t]>70)) and (alw_[, inf] (speed[t]<30)))) Quantitative Satisfaction throttle_u dt_u0 Alexandre Donzé STL Problems EECS Spring / 52

95 Smoothing Quantitative Satisfaction Functions Depending on how ρ is defined, the function to optimize can have different profiles (not (ev_[0, 5] (gear4w))) and (not ((ev (speed[t]>70)) and (alw_[, inf] (speed[t]<30)))) Quantitative Satisfaction throttle_u dt_u0 Alexandre Donzé STL Problems EECS Spring / 52

96 1 Signal Temporal Logic From LTL to STL Robust Semantics 2 Robust Monitoring of STL 3 STL Problems PSTL and Parameter Synthesis Falsification Specification Mining Alexandre Donzé STL Problems EECS Spring / 52

97 Specification Mining Problem Consider the following automatic transmission system: 1 throttle Ti Throttle speed up_th Engine down_th Ne ShiftLogic ImprellerTorque EngineRPM gear CALC_TH Ne gear Ti OutputTorque Tout Nout Transmission Vehicle RPM 3 gear down_th run() gear up_th throttle ThresholdCalculation 2 TransmissionRPM VehicleSpeed 1 speed What is the maximum speed that the vehicule can reach? What is the minimum dwell time in a given gear? etc Alexandre Donzé STL Problems EECS Spring / 52

98 Specification Synthesis Our approach takes two major ingredients PSTL to formulate template specifications A counter-example guided inductive synthesis loop alternating parameter synthesis and falsification Alexandre Donzé STL Problems EECS Spring / 52

99 Template Specification Examples the speed is always below π 1 and RPM below π 2 ϕ sp_rpm (π 1, π 2 ) := G ( (speed < π 1 ) (RPM < π 2 ) ). the vehicle cannot reach 100 mph in τ seconds with RPM always below π ϕ rpm100 (τ, π) := ( F [0,τ] (speed > 100) G(RPM < π)). whenever it shift to gear 2, it dwells in gear 2 for at least τ seconds (( ) ) gear 2 ϕ stay (τ) := G G F [0,ε] gear = 2 [ε,τ] gear = 2. Alexandre Donzé STL Problems EECS Spring / 52

100 Template Specification Examples the speed is always below π 1 and RPM below π 2 ϕ sp_rpm (π 1, π 2 ) := G ( (speed < π 1 ) (RPM < π 2 ) ). the vehicle cannot reach 100 mph in τ seconds with RPM always below π ϕ rpm100 (τ, π) := ( F [0,τ] (speed > 100) G(RPM < π)). whenever it shift to gear 2, it dwells in gear 2 for at least τ seconds (( ) ) gear 2 ϕ stay (τ) := G G F [0,ε] gear = 2 [ε,τ] gear = 2. Alexandre Donzé STL Problems EECS Spring / 52

101 Template Specification Examples the speed is always below π 1 and RPM below π 2 ϕ sp_rpm (π 1, π 2 ) := G ( (speed < π 1 ) (RPM < π 2 ) ). the vehicle cannot reach 100 mph in τ seconds with RPM always below π ϕ rpm100 (τ, π) := ( F [0,τ] (speed > 100) G(RPM < π)). whenever it shift to gear 2, it dwells in gear 2 for at least τ seconds (( ) ) gear 2 ϕ stay (τ) := G G F [0,ε] gear = 2 [ε,τ] gear = 2. Alexandre Donzé STL Problems EECS Spring / 52

102 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1.7, π 1 2, π 2 3 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

103 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1.7, π 1 2, π 2 3 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

104 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1.7, π 1 2, π 2 3 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

105 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1.7, π 1 2, π 2 3 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

106 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1.7, π 1 2, π 2 3 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

107 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1.7, π 1 2, π 2 3 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

108 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1 1.1, π 1 3.7, π 2 5 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

109 Specification Synthesis Algorithm init e u + Controller Plant Model y Simulation Traces Counterexample Traces Counterexample Found FindParam F [0,τ1](x 1 < π 1 G [0,τ2](x 2 > π 2 )) Template Specification Candidate Specification τ 1 1.1, π 1 3.7, π 2 5 FalsifyAlgo No Counterexample F [0,1.1] (x 1 < 3.7 G [0,5] (x 2 > 0.1)) Inferred Specification Alexandre Donzé STL Problems EECS Spring / 52

110 Results the speed is always below π 1 and RPM below π ϕ sp_rpm (π 1, π 2 ) := G ( (speed < π 1 ) (RPM < π 2 ) ). the vehicle cannot reach 100 mph in τ seconds with RPM always below π ϕ rpm100 (τ, π) := ( F [0,τ] (speed > 100) G(RPM < π)). whenever it shift to gear 2, it dwells in gear 2 for at least τ seconds (( ) ) gear 2 ϕ stay (τ) := G G F [0,ε] gear = 2 [ε,τ] gear = 2. Template Parameter values Fals. Synth. #Sim. Sat./x ϕ sp_rpm(π 1, π 2 ) (155 mph, 4858 rpm) s 23.1 s s ϕ rpm100(π, τ) ( rpm, s) s s s ϕ rpm100(τ, π) (4997 rpm, s) s s s ϕ stay(π) 1.79 s s s s Alexandre Donzé STL Problems EECS Spring / 52

111 0 Results on Industrial-scale Model 00+ Simulink blocks Look-up tables nonlinear dynamics Attempt to mine maximum observed settling time: stops after 4 iterations gives answer tsettle = simulation time horizon... Alexandre Donzé STL Problems EECS Spring / 52

112 0 Results on Industrial-scale Model The above trace found an actual (unexpected) bug in the model The cause was identified as a wrong value in a look-up table Alexandre Donzé STL Problems EECS Spring / 52

113 Conclusion A lot of work still to be done: Online monitoring and mining STL and timed/hybrid automa Better falsification/optimization of satisfaction functions STL templates mining (beyond parameters in PSTL) Helping designers writing and using STL Alexandre Donzé Conclusion EECS Spring / 52

Specification Mining of Industrial-scale Control Systems

Specification Mining of Industrial-scale Control Systems 100 120 Specification Mining of Industrial-scale Control Systems Alexandre Donzé Joint work with Xiaoqing Jin, Jyotirmoy V. Deshmuck, Sanjit A. Seshia University of California, Berkeley May 14, 2013 Alexandre

More information

Efficient Robust Monitoring for STL

Efficient Robust Monitoring for STL 100 120 Efficient Robust Monitoring for STL Alexandre Donzé 1, Thomas Ferrère 2, Oded Maler 2 1 University of California, Berkeley, EECS dept 2 Verimag, CNRS and Grenoble University May 28, 2013 Efficient

More information

Mining Requirements from Closed-Loop Control Models

Mining Requirements from Closed-Loop Control Models Mining Requirements from Closed-Loop Control Models Xiaoqing Jin Univ. of California Riverside jinx@cs.ucr.edu Alexandre Donzé Univ. of California Berkeley donze@eecs.berkeley.edu Sanjit A. Seshia Univ.

More information

Mining Requirements from Closed-Loop Control Models

Mining Requirements from Closed-Loop Control Models 1 Mining Requirements from Closed-Loop Control Models Xiaoqing Jin, Alexandre Donzé, Jyotirmoy V. Deshmukh, Sanjit A. Seshia Abstract Formal verification of a control system can be performed by checking

More information

Assertions and Measurements for Mixed-Signal Simulation

Assertions and Measurements for Mixed-Signal Simulation Assertions and Measurements for Mixed-Signal Simulation PhD Thesis Thomas Ferrère VERIMAG, University of Grenoble (directeur: Oded Maler) Mentor Graphics Corporation (co-encadrant: Ernst Christen) October

More information

Trace Diagnostics using Temporal Implicants

Trace Diagnostics using Temporal Implicants Trace Diagnostics using Temporal Implicants ATVA 15 Thomas Ferrère 1 Dejan Nickovic 2 Oded Maler 1 1 VERIMAG, University of Grenoble / CNRS 2 Austrian Institute of Technology October 14, 2015 Motivation

More information

Formal Methods meets Machine Learning: Explorations in Cyber- Physical System Design

Formal Methods meets Machine Learning: Explorations in Cyber- Physical System Design Formal Methods meets Machine Learning: Explorations in Cyber- Physical System Design Sanjit A. Seshia Professor UC Berkeley Joint work with: Jyo Deshmukh, Tommaso Dreossi, Alex Donze, Dorsa Sadigh, Susmit

More information

Testing System Conformance for Cyber-Physical Systems

Testing System Conformance for Cyber-Physical Systems Testing System Conformance for Cyber-Physical Systems Testing systems by walking the dog Rupak Majumdar Max Planck Institute for Software Systems Joint work with Vinayak Prabhu (MPI-SWS) and Jyo Deshmukh

More information

arxiv: v1 [cs.ro] 12 Mar 2019

arxiv: v1 [cs.ro] 12 Mar 2019 Arithmetic-Geometric Mean Robustness for Control from Signal Temporal Logic Specifications *Noushin Mehdipour, *Cristian-Ioan Vasile and Calin Belta arxiv:93.5v [cs.ro] Mar 9 Abstract We present a new

More information

Model Checking Algorithms

Model Checking Algorithms Model Checking Algorithms Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan November 14, 2018 Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, 2018 1 / 56 Outline

More information

Benchmarks for Temporal Logic Requirements for Automotive Systems

Benchmarks for Temporal Logic Requirements for Automotive Systems EPiC Series in Computer Science Volume 34, 5, Pages 5 3 ARCH4-5. st and nd International Workshop on Applied verification for Continuous and Hybrid Systems Benchmarks for Temporal Logic Requirements for

More information

Integrating Induction and Deduction for Verification and Synthesis

Integrating Induction and Deduction for Verification and Synthesis Integrating Induction and Deduction for Verification and Synthesis Sanjit A. Seshia Associate Professor EECS Department UC Berkeley DATE 2013 Tutorial March 18, 2013 Bob s Vision: Exploit Synergies between

More information

Model Checking: An Introduction

Model Checking: An Introduction Model Checking: An Introduction Meeting 3, CSCI 5535, Spring 2013 Announcements Homework 0 ( Preliminaries ) out, due Friday Saturday This Week Dive into research motivating CSCI 5535 Next Week Begin foundations

More information

Symbolic Trajectory Evaluation (STE): Orna Grumberg Technion, Israel

Symbolic Trajectory Evaluation (STE): Orna Grumberg Technion, Israel Symbolic Trajectory Evaluation (STE): Automatic Refinement and Vacuity Detection Orna Grumberg Technion, Israel Marktoberdort 2007 1 Agenda Model checking Symbolic Trajectory Evaluation Basic Concepts

More information

FMCAD 2013 Parameter Synthesis with IC3

FMCAD 2013 Parameter Synthesis with IC3 FMCAD 2013 Parameter Synthesis with IC3 A. Cimatti, A. Griggio, S. Mover, S. Tonetta FBK, Trento, Italy Motivations and Contributions Parametric descriptions of systems arise in many domains E.g. software,

More information

Automata-Theoretic Model Checking of Reactive Systems

Automata-Theoretic Model Checking of Reactive Systems Automata-Theoretic Model Checking of Reactive Systems Radu Iosif Verimag/CNRS (Grenoble, France) Thanks to Tom Henzinger (IST, Austria), Barbara Jobstmann (CNRS, Grenoble) and Doron Peled (Bar-Ilan University,

More information

Quantifying Conformance using the Skorokhod Metric

Quantifying Conformance using the Skorokhod Metric Noname manuscript No. will be inserted by the editor) Quantifying Conformance using the Skorokhod Metric Jyotirmoy V. Deshmukh Rupak Majumdar Vinayak S. Prabhu the date of receipt and acceptance should

More information

Computation Tree Logic (CTL) & Basic Model Checking Algorithms

Computation Tree Logic (CTL) & Basic Model Checking Algorithms Computation Tree Logic (CTL) & Basic Model Checking Algorithms Martin Fränzle Carl von Ossietzky Universität Dpt. of Computing Science Res. Grp. Hybride Systeme Oldenburg, Germany 02917: CTL & Model Checking

More information

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39 Bounded Model Checking with SAT/SMT Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39 Recap: Symbolic Model Checking with BDDs Method used by most industrial strength model checkers:

More information

Using Valued Booleans to Find Simpler Counterexamples in Random Testing of Cyber-Physical Systems

Using Valued Booleans to Find Simpler Counterexamples in Random Testing of Cyber-Physical Systems Using Valued Booleans to Find Simpler Counterexamples in Random Testing of Cyber-Physical Systems Koen Claessen Nicholas Smallbone Johan Eddeland, Zahra Ramezani Knut Åkesson Department of Computer Science

More information

ESE601: Hybrid Systems. Introduction to verification

ESE601: Hybrid Systems. Introduction to verification ESE601: Hybrid Systems Introduction to verification Spring 2006 Suggested reading material Papers (R14) - (R16) on the website. The book Model checking by Clarke, Grumberg and Peled. What is verification?

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

Vacuity Aware Falsification for MTL Request-Response Specifications

Vacuity Aware Falsification for MTL Request-Response Specifications Vacuity Aware Falsification for MTL Request-Response Specifications Adel Dokhanchi, Shakiba Yaghoubi, Bardh Hoxha, and Georgios Fainekos Abstract We propose a method to improve the automated test case

More information

Formal Inductive Synthesis -- Theory and Applications

Formal Inductive Synthesis -- Theory and Applications Formal Inductive Synthesis -- Theory and Applications Sanjit A. Seshia EECS Department UC Berkeley Acknowledgments to several Ph.D. students, postdoctoral researchers, and collaborators, and to the students

More information

Specification-based Monitoring of Cyber-Physical Systems: A Survey on Theory, Tools and Applications

Specification-based Monitoring of Cyber-Physical Systems: A Survey on Theory, Tools and Applications Specification-based Monitoring of Cyber-Physical Systems: A Survey on Theory, Tools and Applications Ezio Bartocci 1, Jyotirmoy Deshmukh 2, Alexandre Donzé 3, Georgios Fainekos 4, Oded Maler 5, Dejan Ničković

More information

Chapter 6: Computation Tree Logic

Chapter 6: Computation Tree Logic Chapter 6: Computation Tree Logic Prof. Ali Movaghar Verification of Reactive Systems Outline We introduce Computation Tree Logic (CTL), a branching temporal logic for specifying system properties. A comparison

More information

Integrating Induction, Deduction and Structure for Synthesis

Integrating Induction, Deduction and Structure for Synthesis Integrating Induction, Deduction and Structure for Synthesis Sanjit A. Seshia Associate Professor EECS Department UC Berkeley Students & Postdocs: S. Jha, W.Li, A. Donze, L. Dworkin, B. Brady, D. Holcomb,

More information

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

More information

Model Checking with CTL. Presented by Jason Simas

Model Checking with CTL. Presented by Jason Simas Model Checking with CTL Presented by Jason Simas Model Checking with CTL Based Upon: Logic in Computer Science. Huth and Ryan. 2000. (148-215) Model Checking. Clarke, Grumberg and Peled. 1999. (1-26) Content

More information

Formal Inductive Synthesis -- Theory and Applications

Formal Inductive Synthesis -- Theory and Applications Formal Inductive Synthesis -- Theory and Applications Sanjit A. Seshia Professor EECS Department UC Berkeley Acknowledgments to several Ph.D. students, postdoctoral researchers, and collaborators, and

More information

Chapter 5: Linear Temporal Logic

Chapter 5: Linear Temporal Logic Chapter 5: Linear Temporal Logic Prof. Ali Movaghar Verification of Reactive Systems Spring 94 Outline We introduce linear temporal logic (LTL), a logical formalism that is suited for specifying LT properties.

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Software Verification using Predicate Abstraction and Iterative Refinement: Part 1

Software Verification using Predicate Abstraction and Iterative Refinement: Part 1 using Predicate Abstraction and Iterative Refinement: Part 1 15-414 Bug Catching: Automated Program Verification and Testing Sagar Chaki November 28, 2011 Outline Overview of Model Checking Creating Models

More information

arxiv: v2 [cs.lo] 28 Aug 2017

arxiv: v2 [cs.lo] 28 Aug 2017 An Active Learning Approach to the Falsification of Black Box Cyber-Physical Systems Simone Silvetti 1,2, Alberto Policriti 2,3, and Luca Bortolussi 4,5,6 arxiv:1705.01879v2 [cs.lo] 28 Aug 2017 1 Esteco

More information

Verification of analog and mixed-signal circuits using hybrid systems techniques

Verification of analog and mixed-signal circuits using hybrid systems techniques FMCAD, November 2004, Austin Verification of analog and mixed-signal circuits using hybrid systems techniques Thao Dang, Alexandre Donze, Oded Maler VERIMAG Grenoble, France Plan 1. Introduction 2. Verification

More information

Robustness of Temporal Logic Specifications for Continuous-Time Signals

Robustness of Temporal Logic Specifications for Continuous-Time Signals Robustness of Temporal Logic Specifications for Continuous-Time Signals Georgios E. Fainekos a, George J. Pappas a,b a Department of Computer and Information Science, University of Pennsylvania, 3330 Walnut

More information

Model for reactive systems/software

Model for reactive systems/software Temporal Logics CS 5219 Abhik Roychoudhury National University of Singapore The big picture Software/ Sys. to be built (Dream) Properties to Satisfy (caution) Today s lecture System Model (Rough Idea)

More information

Overview. Discrete Event Systems Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for?

Overview. Discrete Event Systems Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for? Computer Engineering and Networks Overview Discrete Event Systems Verification of Finite Automata Lothar Thiele Introduction Binary Decision Diagrams Representation of Boolean Functions Comparing two circuits

More information

Automata on Infinite words and LTL Model Checking

Automata on Infinite words and LTL Model Checking Automata on Infinite words and LTL Model Checking Rodica Condurache Lecture 4 Lecture 4 Automata on Infinite words and LTL Model Checking 1 / 35 Labeled Transition Systems Let AP be the (finite) set of

More information

Formal Requirement Debugging for Testing and Verification of Cyber-Physical Systems

Formal Requirement Debugging for Testing and Verification of Cyber-Physical Systems Formal Requirement Debugging for Testing and Verification of Cyber-Physical Systems arxiv:1607.02549v3 [cs.sy] 18 May 2017 Adel Dokhanchi, Bardh Hoxha, and Georgios Fainekos School of Computing, Informatics

More information

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem. 1 More on NP In this set of lecture notes, we examine the class NP in more detail. We give a characterization of NP which justifies the guess and verify paradigm, and study the complexity of solving search

More information

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either Introduction to Temporal Logic The purpose of temporal logics is to specify properties of dynamic systems. These can be either Desired properites. Often liveness properties like In every infinite run action

More information

Double Header. Model Checking. Model Checking. Overarching Plan. Take-Home Message. Spoiler Space. Topic: (Generic) Model Checking

Double Header. Model Checking. Model Checking. Overarching Plan. Take-Home Message. Spoiler Space. Topic: (Generic) Model Checking Double Header Model Checking #1 Two Lectures Model Checking SoftwareModel Checking SLAM and BLAST Flying Boxes It is traditional to describe this stuff (especially SLAM and BLAST) with high-gloss animation

More information

Propositional Calculus

Propositional Calculus Propositional Calculus Dr. Neil T. Dantam CSCI-498/598 RPM, Colorado School of Mines Spring 2018 Dantam (Mines CSCI, RPM) Propositional Calculus Spring 2018 1 / 64 Calculus? Definition: Calculus A well

More information

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

THEORY OF SYSTEMS MODELING AND ANALYSIS. Henny Sipma Stanford University. Master class Washington University at St Louis November 16, 2006

THEORY OF SYSTEMS MODELING AND ANALYSIS. Henny Sipma Stanford University. Master class Washington University at St Louis November 16, 2006 THEORY OF SYSTEMS MODELING AND ANALYSIS Henny Sipma Stanford University Master class Washington University at St Louis November 16, 2006 1 1 COURSE OUTLINE 8:37-10:00 Introduction -- Computational model

More information

Alan Bundy. Automated Reasoning LTL Model Checking

Alan Bundy. Automated Reasoning LTL Model Checking Automated Reasoning LTL Model Checking Alan Bundy Lecture 9, page 1 Introduction So far we have looked at theorem proving Powerful, especially where good sets of rewrite rules or decision procedures have

More information

From Liveness to Promptness

From Liveness to Promptness From Liveness to Promptness Orna Kupferman Hebrew University Nir Piterman EPFL Moshe Y. Vardi Rice University Abstract Liveness temporal properties state that something good eventually happens, e.g., every

More information

Temporal Logic. Stavros Tripakis University of California, Berkeley. We have designed a system. We want to check that it is correct.

Temporal Logic. Stavros Tripakis University of California, Berkeley. We have designed a system. We want to check that it is correct. EE 244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2016 Temporal logic Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 244, Fall 2016

More information

arxiv: v2 [cs.sy] 31 May 2014

arxiv: v2 [cs.sy] 31 May 2014 Conformance Testing as Falsification for Cyber-Physical Systems arxiv:1401.5200v2 [cs.sy] 31 May 2014 ABSTRACT Houssam Abbas, Bardh Hoxha, and Georgios Fainekos CPS Lab, Arizona State University, Tempe,

More information

Formal Verification Techniques. Riccardo Sisto, Politecnico di Torino

Formal Verification Techniques. Riccardo Sisto, Politecnico di Torino Formal Verification Techniques Riccardo Sisto, Politecnico di Torino State exploration State Exploration and Theorem Proving Exhaustive exploration => result is certain (correctness or noncorrectness proof)

More information

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876

More information

Georgios E. Fainekos and George J. Pappas

Georgios E. Fainekos and George J. Pappas FORMATS 2007 Georgios E. Fainekos and George J. Pappas Department of Computer and Information Science University of Pennsylvania fainekos @ seas.upenn.edu http://www.seas.upenn.edu/~fainekos/ Motivation

More information

On the Quantitative Semantics of Regular Expressions over Real-Valued Signals

On the Quantitative Semantics of Regular Expressions over Real-Valued Signals On the Quantitative Semantics of Regular Expressions over Real-Valued Signals Alexey Bakhirkin 1, Thomas Ferrère 2, Oded Maler 1, and Dogan Ulus 1 1 Université Grenoble-Alpes, VERIMAG, F-38000 Grenoble,

More information

Chapter 4: Classical Propositional Semantics

Chapter 4: Classical Propositional Semantics Chapter 4: Classical Propositional Semantics Language : L {,,, }. Classical Semantics assumptions: TWO VALUES: there are only two logical values: truth (T) and false (F), and EXTENSIONALITY: the logical

More information

The Polyranking Principle

The Polyranking Principle The Polyranking Principle Aaron R. Bradley, Zohar Manna, and Henny B. Sipma Computer Science Department Stanford University Stanford, CA 94305-9045 {arbrad,zm,sipma}@theory.stanford.edu Abstract. Although

More information

An Introduction to Hybrid Systems Modeling

An Introduction to Hybrid Systems Modeling CS620, IIT BOMBAY An Introduction to Hybrid Systems Modeling Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS620: New Trends in IT: Modeling and Verification of Cyber-Physical

More information

Notes. Corneliu Popeea. May 3, 2013

Notes. Corneliu Popeea. May 3, 2013 Notes Corneliu Popeea May 3, 2013 1 Propositional logic Syntax We rely on a set of atomic propositions, AP, containing atoms like p, q. A propositional logic formula φ Formula is then defined by the following

More information

Advanced Verification and Validation Methods for Cyber-Physical Systems

Advanced Verification and Validation Methods for Cyber-Physical Systems Advanced Verification and Validation Methods for Cyber-Physical Systems James Kapinski, Joint work with Hisahiro Ito, Ken Butts, Jyotirmoy Deshmukh, and Xiaoqing Jin October, 2017 Outline 1. Cyber-physical

More information

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa Scalable and Accurate Verification of Data Flow Systems Cesare Tinelli The University of Iowa Overview AFOSR Supported Research Collaborations NYU (project partner) Chalmers University (research collaborator)

More information

Pattern Matching with Time Theory and Applications

Pattern Matching with Time Theory and Applications Thesis Defense Pattern Matching with Time Theory and Applications Doğan Ulus January 15, 2018 Grenoble, France Supervisor Reviewers Examiners Invited Oded Maler Rajeev Alur Saddek Bensalem Eugene Asarin

More information

Efficient Model-Checking of Weighted CTL with Upper-Bound Constraints

Efficient Model-Checking of Weighted CTL with Upper-Bound Constraints Software Tools for Technology Transfer manuscript No. (will be inserted by the editor) Efficient Model-Checking of Weighted CTL with Upper-Bound Constraints Jonas Finnemann Jensen, Kim Guldstrand Larsen,

More information

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège Temporal logics and explicit-state model checking Pierre Wolper Université de Liège 1 Topics to be covered Introducing explicit-state model checking Finite automata on infinite words Temporal Logics and

More information

Integrating Induction, Deduction and Structure for Synthesis

Integrating Induction, Deduction and Structure for Synthesis Integrating Induction, Deduction and Structure for Synthesis Sanjit A. Seshia Associate Professor EECS Department UC Berkeley Students: S. Jha, W.Li, L. Dworkin, D. Sadigh Collaborators: A. Tiwari, S.

More information

AMT 2.0: Qualitative and Quantitative Trace Analysis with Extended Signal Temporal Logic

AMT 2.0: Qualitative and Quantitative Trace Analysis with Extended Signal Temporal Logic * Evaluated * TACAS * Artifact * AEC AMT 2.0: Qualitative and Quantitative Trace Analysis with Extended Signal Temporal Logic Dejan Ničković 1, Olivier Lebeltel 2, Oded Maler 2, Thomas Ferrère 3, Dogan

More information

Deductive Verification of Continuous Dynamical Systems

Deductive Verification of Continuous Dynamical Systems Deductive Verification of Continuous Dynamical Systems Dept. of Computer Science, Stanford University (Joint work with Ashish Tiwari, SRI International.) 1 Introduction What are Continuous Dynamical Systems?

More information

Chapter 4: Computation tree logic

Chapter 4: Computation tree logic INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification

More information

FAIRNESS FOR INFINITE STATE SYSTEMS

FAIRNESS FOR INFINITE STATE SYSTEMS FAIRNESS FOR INFINITE STATE SYSTEMS Heidy Khlaaf University College London 1 FORMAL VERIFICATION Formal verification is the process of establishing whether a system satisfies some requirements (properties),

More information

Theoretical Foundations of the UML

Theoretical Foundations of the UML Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.

More information

Computer-Aided Program Design

Computer-Aided Program Design Computer-Aided Program Design Spring 2015, Rice University Unit 3 Swarat Chaudhuri February 5, 2015 Temporal logic Propositional logic is a good language for describing properties of program states. However,

More information

Formally Analyzing Adaptive Flight Control

Formally Analyzing Adaptive Flight Control Formally Analyzing Adaptive Flight Control Ashish Tiwari SRI International 333 Ravenswood Ave Menlo Park, CA 94025 Supported in part by NASA IRAC NRA grant number: NNX08AB95A Ashish Tiwari Symbolic Verification

More information

Safe Control under Uncertainty

Safe Control under Uncertainty Safe Control under Uncertainty Dorsa Sadigh UC Berkeley Berkeley, CA, USA dsadigh@berkeley.edu Ashish Kapoor Microsoft Research Redmond, WA, USA akapoor@microsoft.com ical models [20] have been very popular

More information

IC3 and Beyond: Incremental, Inductive Verification

IC3 and Beyond: Incremental, Inductive Verification IC3 and Beyond: Incremental, Inductive Verification Aaron R. Bradley ECEE, CU Boulder & Summit Middle School IC3 and Beyond: Incremental, Inductive Verification 1/62 Induction Foundation of verification

More information

Robust Linear Temporal Logic

Robust Linear Temporal Logic Robust Linear Temporal Logic Paulo Tabuada 1 and Daniel Neider 2 1 Department of Electrical Engineering, University of California at Los Angeles, Los Angeles, CA 90095, USA tabuada@ucla.edu 2 Department

More information

Resilient Formal Synthesis

Resilient Formal Synthesis Resilient Formal Synthesis Calin Belta Boston University CDC 2017 Workshop: 30 years of the Ramadge-Wonham Theory of Supervisory Control: A Retrospective and Future Perspectives Outline Formal Synthesis

More information

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson Natural Deduction Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. An example 1. Validity by truth table 2. Validity by proof 2. What s a proof 1. Proof checker 3. Rules of

More information

Linear Temporal Logic and Büchi Automata

Linear Temporal Logic and Büchi Automata Linear Temporal Logic and Büchi Automata Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 Yih-Kuen Tsay (SVVRL @ IM.NTU) Linear Temporal Logic and Büchi Automata

More information

Stability and Stabilization of polynomial dynamical systems. Hadi Ravanbakhsh Sriram Sankaranarayanan University of Colorado, Boulder

Stability and Stabilization of polynomial dynamical systems. Hadi Ravanbakhsh Sriram Sankaranarayanan University of Colorado, Boulder Stability and Stabilization of polynomial dynamical systems Hadi Ravanbakhsh Sriram Sankaranarayanan University of Colorado, Boulder Proving Asymptotic Stability: Lyapunov Functions Lyapunov Function:

More information

Lecture Notes on Software Model Checking

Lecture Notes on Software Model Checking 15-414: Bug Catching: Automated Program Verification Lecture Notes on Software Model Checking Matt Fredrikson André Platzer Carnegie Mellon University Lecture 19 1 Introduction So far we ve focused on

More information

Introduction to Logic in Computer Science: Autumn 2006

Introduction to Logic in Computer Science: Autumn 2006 Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Today s class will be an introduction

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

More information

GUARANTEED TERMINATION IN THE VERIFICATION OF LTL PROPERTIES OF NON-LINEAR ROBUST DISCRETE TIME HYBRID SYSTEMS

GUARANTEED TERMINATION IN THE VERIFICATION OF LTL PROPERTIES OF NON-LINEAR ROBUST DISCRETE TIME HYBRID SYSTEMS International Journal of Foundations of Computer Science World Scientific Publishing Company GUARANTEED TERMINATION IN THE VERIFICATION OF LTL PROPERTIES OF NON-LINEAR ROBUST DISCRETE TIME HYBRID SYSTEMS

More information

Lecture 2: Symbolic Model Checking With SAT

Lecture 2: Symbolic Model Checking With SAT Lecture 2: Symbolic Model Checking With SAT Edmund M. Clarke, Jr. School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213 (Joint work over several years with: A. Biere, A. Cimatti, Y.

More information

Logic. Propositional Logic: Syntax

Logic. Propositional Logic: Syntax Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

Mathematical Logic Part Three

Mathematical Logic Part Three Mathematical Logic Part hree riday our Square! oday at 4:15PM, Outside Gates Announcements Problem Set 3 due right now. Problem Set 4 goes out today. Checkpoint due Monday, October 22. Remainder due riday,

More information

On Real-time Monitoring with Imprecise Timestamps

On Real-time Monitoring with Imprecise Timestamps On Real-time Monitoring with Imprecise Timestamps David Basin 1, Felix Klaedtke 2, Srdjan Marinovic 1, and Eugen Zălinescu 1 1 Institute of Information Security, ETH Zurich, Switzerland 2 NEC Europe Ltd.,

More information

Optimal Control of Mixed Logical Dynamical Systems with Linear Temporal Logic Specifications

Optimal Control of Mixed Logical Dynamical Systems with Linear Temporal Logic Specifications Optimal Control of Mixed Logical Dynamical Systems with Linear Temporal Logic Specifications Sertac Karaman, Ricardo G. Sanfelice, and Emilio Frazzoli Abstract Recently, Linear Temporal Logic (LTL) has

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction

More information

CPSGrader: Auto-Grading and Feedback Generation for Cyber-Physical Systems Education

CPSGrader: Auto-Grading and Feedback Generation for Cyber-Physical Systems Education CPSGrader: Auto-Grading and Feedback Generation for Cyber-Physical Systems Education Garvit Juniwal Electrical Engineering and Computer Sciences University of California at Berkeley Technical Report No.

More information

Algorithmic Verification of Stability of Hybrid Systems

Algorithmic Verification of Stability of Hybrid Systems Algorithmic Verification of Stability of Hybrid Systems Pavithra Prabhakar Kansas State University University of Kansas February 24, 2017 1 Cyber-Physical Systems (CPS) Systems in which software "cyber"

More information

A Constructor-Based Reachability Logic for Rewrite Theories

A Constructor-Based Reachability Logic for Rewrite Theories A Constructor-Based Reachability Logic for Rewrite Theories Stephen Skeirik, Andrei Stefanescu, Jose Meseguer October 10th, 2017 Outline 1 Introduction 2 Reachability Logic Semantics 3 The Invariant Paradox

More information

Abstracting real-valued parameters in parameterised boolean equation systems

Abstracting real-valued parameters in parameterised boolean equation systems Department of Mathematics and Computer Science Formal System Analysis Research Group Abstracting real-valued parameters in parameterised boolean equation systems Master Thesis M. Laveaux Supervisor: dr.

More information

Lecture Notes on Emptiness Checking, LTL Büchi Automata

Lecture Notes on Emptiness Checking, LTL Büchi Automata 15-414: Bug Catching: Automated Program Verification Lecture Notes on Emptiness Checking, LTL Büchi Automata Matt Fredrikson André Platzer Carnegie Mellon University Lecture 18 1 Introduction We ve seen

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19 PROPOSITIONAL LOGIC VL Logik: WS 2018/19 (Version 2018.2) Martina Seidl (martina.seidl@jku.at), Armin Biere (biere@jku.at) Institut für Formale Modelle und Verifikation BOX Game: Rules 1. The game board

More information

Propositional Reasoning

Propositional Reasoning Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS

More information

Monitoring Distributed Controllers

Monitoring Distributed Controllers Monitoring Distributed Controllers When an Efficient LTL Algorithm on Sequences is Needed to Model-Check Traces A. Genon T. Massart C. Meuter Université Libre de Bruxelles Département d Informatique August

More information

Math 267a - Propositional Proof Complexity. Lecture #1: 14 January 2002

Math 267a - Propositional Proof Complexity. Lecture #1: 14 January 2002 Math 267a - Propositional Proof Complexity Lecture #1: 14 January 2002 Lecturer: Sam Buss Scribe Notes by: Robert Ellis 1 Introduction to Propositional Logic 1.1 Symbols and Definitions The language of

More information

Homework 2: Temporal logic

Homework 2: Temporal logic ICS-E5010 Computer-Aided Verification and Synthesis, Spring 2016 Stavros Tripakis Homework 2: Temporal logic Assigned: January 20, 2016 Due: February 1, 2016 Total: 235 points. 1. (20 points) Two formulae

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic

More information