robustness of temporal logic specifications for signals
play

Robustness of Temporal Logic Specifications for Signals Georgios - PowerPoint PPT Presentation

Robustness of Temporal Logic Specifications for Signals Georgios Fainekos dissertation series - Part I Akshay Rajhans ECE Department, CMU SVC Seminar: Aug 21, 2008 Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21,


  1. Robustness of Temporal Logic Specifications for Signals Georgios Fainekos dissertation series - Part I Akshay Rajhans ECE Department, CMU SVC Seminar: Aug 21, 2008 Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 1 / 42

  2. Outline Background and definitions 1 Boolean satisfaction of a specification by a signal - Boolean abstraction 2 Robust satisfaction of a specification by a signal - “Robustness degree” 3 Robust TL semantics - “Robustness estimate” 4 Discrete time signals, timed state sequences and their robustness 5 Continuous time reasoning using discrete time analysis 6 Monitoring algorithm and software tool 7 Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 2 / 42

  3. Background and definitions Outline Background and definitions 1 Boolean satisfaction of a specification by a signal - Boolean abstraction 2 Robust satisfaction of a specification by a signal - “Robustness degree” 3 Robust TL semantics - “Robustness estimate” 4 Discrete time signals, timed state sequences and their robustness 5 Continuous time reasoning using discrete time analysis 6 Monitoring algorithm and software tool 7 Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 3 / 42

  4. Background and definitions Background On the use of temporal logic (TL) TL useful in software and hardware verification But verification undecidable/expensive in continuous and hybrid systems Testing of the systems or numerical simulation of the system models are preferred choices in these cases; steady state properties can be fairly easily tested or numerically simulated Important idea Use TL as a specification language for testing Oded Maler and Dejan Nickovic. Monitoring temporal properties of continuous signals . FORMATS, 2004 Advantage: Transient properties can be specified (and hence tested) if we use temporal logic. Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 4 / 42

  5. Background and definitions Typical structure for testing using TL Signal We either give an analytical formula or some samples of the signal Specification We use metric interval temporal logic to specify some formula Observation map: is a Boolean abstraction map from signal space to true/false Intuition: We specify that the signal must be within this range during this time span Monitoring algorithm We have some sort of algorithm to check whether or not the signal was indeed within that range during that time span Result If yes, we get a ‘true’ result; ‘false’ otherwise Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 5 / 42

  6. Background and definitions Continuous time signal Formal definition A signal s is a map s : T → X , where T is a time domain, some subset of R ≥ 0 X is a metric space, to be defined in the next slide Example: s 1 = sin ( t ) + sin (2 t ), T = [0 , 7 π ] Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 6 / 42

  7. Background and definitions Metric space, metric, ε -ball Metric space A metric space ( X , d ) is an ordered pair of a set X and a metric d . Metric A metric d is a non-negative function d : X × X → R ≥ 0 , such that ∀ x 1 , x 2 , x 3 ∈ X , we have: d ( x 1 , x 2 ) = 0 ⇔ x 1 = x 2 d ( x 1 , x 2 ) = d ( x 2 , x 1 ) d ( x 1 , x 3 ) ≤ d ( x 1 , x 2 ) + d ( x 2 , x 3 ) ε -ball An ε -ball B d ( x , ε ) is defined as B d ( x , ε ) = { y ∈ X | d ( x , y ) < ε } Ball in L 2 or Euclidian norm Ball in L ∞ or sup norm Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 7 / 42

  8. Background and definitions Signed distance Formal definition Let x ∈ X be a point, C ⊆ X be a set and d be a metric. Then, the signed distance from x to C is: � − dist d ( x , C ) , if x / ∈ C Dist d ( x , C ) = (1) depth d ( x , C ) , if x ∈ C where, dist d ( x , C ) = inf { d ( x , y ) | y ∈ Cl ( C ) } depth d ( x , C ) = dist d ( x , X \ C ) Pictorially: Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 8 / 42

  9. Background and definitions Metric (Interval) Temporal Logic - Syntax Inductive grammar ϕ = T | ⊥ | p |¬ ϕ | ϕ 1 ∨ ϕ 2 | ϕ 1 ∧ ϕ 2 | ϕ 1 U I ϕ 2 | ϕ 1 R I ϕ 2 Note that: In MTL, I can be any bounded or unbounded but non-empty interval of R ≥ 0 e.g. [ a , b ] , [ a , b ) , ( a , b ] , ( a , b ) , where 0 ≤ a ≤ b In addition, MITL requires I to be non-singleton, i.e. a � = b If a = 0 and b = ∞ , the M(I)TL formula is equivalent to LTL formula ‘Eventually’ and ‘Always’ operators can be derived as follows: ♦ I ϕ = T U I ϕ and � I ϕ = ⊥ R I ϕ Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 9 / 42

  10. Boolean satisfaction of a specification by a signal - Boolean abstraction Outline Background and definitions 1 Boolean satisfaction of a specification by a signal - Boolean abstraction 2 Robust satisfaction of a specification by a signal - “Robustness degree” 3 Robust TL semantics - “Robustness estimate” 4 Discrete time signals, timed state sequences and their robustness 5 Continuous time reasoning using discrete time analysis 6 Monitoring algorithm and software tool 7 Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 10 / 42

  11. Boolean satisfaction of a specification by a signal - Boolean abstraction Boolean satisfaction of a specification by a signal Boolean abstraction We specify an observation map Observation map labels regions of state space with atomic propositions, e.g. O ( p 1 ) = [4 , 7] The signal satisfies p 1 if its value is between 4 and 7, otherwise does not satisfy p 1 Preimage of observation map: O − 1 ( x ) = { p ∈ AP | x ∈ O ( p ) } Rewriting MITL semantics for testing We rewrite ( O − 1 ◦ s , t ) | = ϕ as ≪ ϕ, O ≫ = T If the mapping O remains constant, we can drop it for brevity and write ≪ ϕ ≫ = T Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 11 / 42

  12. Boolean satisfaction of a specification by a signal - Boolean abstraction Boolean satisfaction of a specification by a signal Rewriting the MTL grammar for testing: ⊓ means min and ⊔ means max ; Subscript C : continuous time signals Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 12 / 42

  13. Boolean satisfaction of a specification by a signal - Boolean abstraction An example MTL specification ϕ = ♦ [1 , 3] p where O ( p ) is the set of reals strictly greater than 10 Last graph shows ≪ ϕ ≫ ( s , t ) where t is time. When we are talking about ≪ ϕ ≫ ( s , 0) we drop 0 for brevity and write ≪ ϕ ≫ ( s ) Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 13 / 42

  14. Boolean satisfaction of a specification by a signal - Boolean abstraction Problems with a Boolean result Vulnerability to perturbations We cannot distinguish between good and better satisfactions (nor between bad and worse) Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 14 / 42

  15. Robust satisfaction of a specification by a signal - “Robustness degree” Outline Background and definitions 1 Boolean satisfaction of a specification by a signal - Boolean abstraction 2 Robust satisfaction of a specification by a signal - “Robustness degree” 3 Robust TL semantics - “Robustness estimate” 4 Discrete time signals, timed state sequences and their robustness 5 Continuous time reasoning using discrete time analysis 6 Monitoring algorithm and software tool 7 Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 15 / 42

  16. Robust satisfaction of a specification by a signal - “Robustness degree” ‘Robust’ satisfaction of a specification by a signal Definition of ‘robustness degree’ Given a signal s , we define the robustness degree ε as ε = Dist ρ ( s , L ( φ )) [This is a signed distance] where ρ ( s , s ′ ) = sup t { d ( s ( t ) , s ′ ( t )) | t ∈ T } and where L ( φ ) is the set of all signals that satisfy φ Note that the robustness degree is the radius of the largest (open) ball centered at s that you can fit within L ( φ ) Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 16 / 42

  17. Robust satisfaction of a specification by a signal - “Robustness degree” An example where the robustness degree can be computed A simple example s ( t ) = sin ( t ) + sin (2 t ) ϕ 0 = � p 1 and O ( p 1 ) = [ − 2 , 2] Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 17 / 42

  18. Robust satisfaction of a specification by a signal - “Robustness degree” An example where the robustness degree can be computed A simple example Here, ε can be computed as 0.2398 In general, robustness degree cannot be computed directly, since we don’t know ‘the set of all signals that satisfy the given formula’. Akshay Rajhans (ECE, CMU) Robustness of TL for signals SVC Seminar: Aug 21, 2008 18 / 42

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

Recommend


More recommend