a uniform theory of hybrid automata
play

A Uniform Theory of Hybrid Automata Renato Neves and Lu s S. - PowerPoint PPT Presentation

A Uniform Theory of Hybrid Automata Renato Neves and Lu s S. Barbosa November 6, 2018 INESC TEC (HASLab) & University of Minho 1 Introduction Hybrid Systems Computational devices that interact with their physical environment 2


  1. A Uniform Theory of Hybrid Automata Renato Neves and Lu´ ıs S. Barbosa November 6, 2018 INESC TEC (HASLab) & University of Minho 1

  2. Introduction

  3. Hybrid Systems Computational devices that interact with their physical environment 2

  4. Preliminaries Hybrid Automata The standard formalism for designing hybrid systems 3

  5. Preliminaries Hybrid Automata The standard formalism for designing hybrid systems They are classical automata enriched with machinery to specify continuous evolutions and discrete resets [Henzinger, 1996] 3

  6. � � Preliminaries Hybrid Automata The standard formalism for designing hybrid systems They are classical automata enriched with machinery to specify continuous evolutions and discrete resets [Henzinger, 1996] Example Water level regulator; it raises the water level ( l ) periodically t ≥ c ˙ ˙ t :=0 l = 2 l = 0 ˙ ˙ t = 1 t = 1 t ≤ c t ≤ c t ≥ c t :=0 3

  7. Motivation The notion of hybrid automata has several variants, e.g. • Deterministic [Henzinger, 1996] • Non-deterministic [Henzinger, 1996] • Probabilistic [Sproston, 2000] • Reactive [Liu et al., 1999] • Weighted [Bouyer, 2006] 4

  8. Motivation The notion of hybrid automata has several variants, e.g. • Deterministic [Henzinger, 1996] • Non-deterministic [Henzinger, 1996] • Probabilistic [Sproston, 2000] • Reactive [Liu et al., 1999] • Weighted [Bouyer, 2006] No uniform framework for hybrid automata 4

  9. Coalgebras Coalgebras can help us solving this issue 5

  10. Coalgebras Coalgebras can help us solving this issue For this particular case we will see that they provide, 1. generic semantics, 5

  11. Coalgebras Coalgebras can help us solving this issue For this particular case we will see that they provide, 1. generic semantics, 2. generic notions of bisimulation 5

  12. Coalgebras Coalgebras can help us solving this issue For this particular case we will see that they provide, 1. generic semantics, 2. generic notions of bisimulation 3. and observational behaviour, 5

  13. Coalgebras Coalgebras can help us solving this issue For this particular case we will see that they provide, 1. generic semantics, 2. generic notions of bisimulation 3. and observational behaviour, 4. and ‘regular expression’-like languages. 5

  14. Hybrid Automata as Coalgebras

  15. Coalgebras Definition Given a functor F : C → C, an F -coalgebra is a C-morphism of the type X → FX Key idea The functor F determines the branching type 6

  16. Coalgebras Definition Given a functor F : C → C, an F -coalgebra is a C-morphism of the type X → FX Key idea The functor F determines the branching type Examples 1. (Kripke Frames) Powerset functor P : Set → Set 6

  17. Coalgebras Definition Given a functor F : C → C, an F -coalgebra is a C-morphism of the type X → FX Key idea The functor F determines the branching type Examples 1. (Kripke Frames) Powerset functor P : Set → Set 2. (Deterministic Automata) ( − ) Σ × 2 : Set → Set 6

  18. Coalgebras Definition Given a functor F : C → C, an F -coalgebra is a C-morphism of the type X → FX Key idea The functor F determines the branching type Examples 1. (Kripke Frames) Powerset functor P : Set → Set 2. (Deterministic Automata) ( − ) Σ × 2 : Set → Set 3. (Markov Chain) Distribution functor D : Set → Set 6

  19. Hybrid Automata Definition ([Henzinger, 1996]) A hybrid automaton is a tuple ( M , E , X , dyn , inv , asg , grd ) where • M is a finite set of modes, E is a transition relation E ⊆ M × M , and X is a finite set of real-valued variables { x 1 , . . . , x n } . • dyn is a function that associates to each mode a predicate over the variables in X ∪ ˙ X , where ˙ X = { ˙ x 1 , . . . , ˙ x n } represents the first derivatives of the variables in X . • inv is a function that associates to each mode a predicate over the variables in X . • asg is a function that given an edge returns an assignment over X . The function grd associates each edge with a guard. 7

  20. � Hybrid Automata Example The bouncing ball p = v ˙ p = 0 ∧ v ≤ 0, v = g ˙ v := v × − 0 . 5 p ≥ 0 8

  21. � Hybrid Automata Example The bouncing ball p = v ˙ p = 0 ∧ v ≤ 0, v = g ˙ v := v × − 0 . 5 p ≥ 0 Its observable behaviour consists of continuous evolutions intercalated with resets 8

  22. � � Hybrid Automata Example Water level regulator t ≥ c ˙ ˙ t :=0 l = 2 l = 0 ˙ ˙ t = 1 t = 1 t ≤ c t ≤ c t ≥ c t :=0 9

  23. � � Hybrid Automata Example Water level regulator t ≥ c ˙ ˙ t :=0 l = 2 l = 0 ˙ ˙ t = 1 t = 1 t ≤ c t ≤ c t ≥ c t :=0 Its observable behaviour also consists of continuous evolutions intercalated with resets 9

  24. A Surprisingly Useful Remark Hybrid automata are classical automata but with decorated states and edges. 10

  25. A Surprisingly Useful Remark Hybrid automata are classical automata but with decorated states and edges. M → P ( M × Asg × Grd ) × DifEq × StInv 10

  26. A Surprisingly Useful Remark Hybrid automata are classical automata but with decorated states and edges. M → P ( M × Asg × Grd ) × DifEq × StInv This immediately gives, • a uniform notion of hybrid automata, • bisimulation and languages 10

  27. A Surprisingly Useful Remark Hybrid automata are classical automata but with decorated states and edges. M → P ( M × Asg × Grd ) × DifEq × StInv This immediately gives, • a uniform notion of hybrid automata, • bisimulation and languages We can now start studying hybrid automata in a uniform way 10

  28. A Zoo of Hybrid Automata M → F ( M × Asg × Grd ) × DifEq × StInv 11

  29. A Zoo of Hybrid Automata M → F ( M × Asg × Grd ) × DifEq × StInv Id ⇒ Deterministic hybrid automata 11

  30. A Zoo of Hybrid Automata M → F ( M × Asg × Grd ) × DifEq × StInv Id ⇒ Deterministic hybrid automata P ⇒ Classical hybrid automata 11

  31. A Zoo of Hybrid Automata M → F ( M × Asg × Grd ) × DifEq × StInv Id ⇒ Deterministic hybrid automata P ⇒ Classical hybrid automata D ⇒ Markov hybrid automata 11

  32. A Zoo of Hybrid Automata M → F ( M × Asg × Grd ) × DifEq × StInv Id ⇒ Deterministic hybrid automata P ⇒ Classical hybrid automata D ⇒ Markov hybrid automata PD ⇒ Probabilistic hybrid automata 11

  33. A Zoo of Hybrid Automata M → F ( M × Asg × Grd ) × DifEq × StInv Id ⇒ Deterministic hybrid automata P ⇒ Classical hybrid automata D ⇒ Markov hybrid automata PD ⇒ Probabilistic hybrid automata W ⇒ Weighted hybrid automata 11

  34. A Zoo of Hybrid Automata M → F ( M × Asg × Grd ) × DifEq × StInv Id ⇒ Deterministic hybrid automata P ⇒ Classical hybrid automata D ⇒ Markov hybrid automata PD ⇒ Probabilistic hybrid automata W ⇒ Weighted hybrid automata We can additionally consider an input dimension 11

  35. Semantics of Hybrid Automata

  36. Semantics of Hybrid Automata We will show how to build a ‘semantics’ functor � − � : HybAt( F ) → Category of coalgebras 12

  37. Semantics of Hybrid Automata We will show how to build a ‘semantics’ functor � − � : HybAt( F ) → Category of coalgebras Reminder The observable behaviour of hybrid automata consists of continuous evolutions intercalated with resets 12

  38. Semantics of Hybrid Automata Notation Let X be a topological space. The set HX denotes � X [0 , r ] r ∈ [0 , ∞ ) the set of all continuous trajectories over intervals [0 , r ]. 13

  39. Semantics of Hybrid Automata Notation Let X be a topological space. The set HX denotes � X [0 , r ] r ∈ [0 , ∞ ) the set of all continuous trajectories over intervals [0 , r ]. Assumption The function dyn only outputs differential equations with exactly one solution. This induces a function flow : M × R n × [0 , ∞ ) → R n 13

  40. Semantics of Hybrid Automata Assumption (for simplicity) As soon as an edge is enabled the current state must switch Let us omit state invariants; they complicate the theory and can be added straightfowardly later on 14

  41. Semantics of Hybrid Automata Assumption (for simplicity) As soon as an edge is enabled the current state must switch Let us omit state invariants; they complicate the theory and can be added straightfowardly later on Semantics M × R n → F ( M × Asg × Grd ) × DifEq ⇒ M × R n → F ( M × Asg × Grd ) × ( R n ) [0 , ∞ ) ⇒ M × R n → F � M × Asg × Grd × ( R n ) [0 , ∞ ) � ⇒ M × R n → F ( M × Asg × ( H ( R n ) + 1)) ⇒ M × R n → F ( M × Asg × H ( R n ) + M × Asg × 1) ⇒ M × R n → F ( M × R n × H ( R n ) + 1) 14

  42. Semantics of Hybrid Automata Assumption (for simplicity) As soon as an edge is enabled the current state must switch Let us omit state invariants; they complicate the theory and can be added straightfowardly later on Semantics M × R n → F ( M × Asg × Grd ) × DifEq ⇒ M × R n → F ( M × Asg × Grd ) × ( R n ) [0 , ∞ ) ⇒ M × R n → F � M × Asg × Grd × ( R n ) [0 , ∞ ) � ⇒ M × R n → F ( M × Asg × ( H ( R n ) + 1)) ⇒ M × R n → F ( M × Asg × H ( R n ) + M × Asg × 1) ⇒ M × R n → F ( M × R n × H ( R n ) + 1) We obtain a coalgebra for F ( − × H ( R n ) + 1) 14

  43. Semantics of Hybrid Automata The previous calculation determines a ‘semantics’ functor � − � : HybAt( F ) → CoAlg ( F ( − × H ( R n ) + 1)) 15

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