towards a formal semantics for fhm part i
play

Towards a Formal Semantics for FHM, Part I FPL Away Days 2011 - PowerPoint PPT Presentation

Towards a Formal Semantics for FHM, Part I FPL Away Days 2011 Henrik Nilsson Joint work with Joey Capper School of Computer Science University of Nottingham Towards a Formal Semantics for FHM, Part I p.1/31 Hybrid Systems Hybrid system:


  1. Towards a Formal Semantics for FHM, Part I FPL Away Days 2011 Henrik Nilsson Joint work with Joey Capper School of Computer Science University of Nottingham Towards a Formal Semantics for FHM, Part I – p.1/31

  2. Hybrid Systems Hybrid system: dynamical system with both discrete and continuous components. Towards a Formal Semantics for FHM, Part I – p.2/31

  3. Hybrid Systems Hybrid system: dynamical system with both discrete and continuous components. • Systems that inherently are hybrid; e.g., an automobile engine with digitally controlled fuel injection. Towards a Formal Semantics for FHM, Part I – p.2/31

  4. Hybrid Systems Hybrid system: dynamical system with both discrete and continuous components. • Systems that inherently are hybrid; e.g., an automobile engine with digitally controlled fuel injection. • Models of continuous systems where simplifying assumptions leads to a hybrid formulation; e.g. ideal diode, bouncing ball. Towards a Formal Semantics for FHM, Part I – p.2/31

  5. Hybrid Automata (1) Hybrid Automata: Standard approach for semantics of hybrid systems: Thomas A. Henzinger. The Theory of Hybrid Automata. In Logic in Computer Science (LICS), 1996. Towards a Formal Semantics for FHM, Part I – p.3/31

  6. Hybrid Automata (1) Hybrid Automata: Standard approach for semantics of hybrid systems: Thomas A. Henzinger. The Theory of Hybrid Automata. In Logic in Computer Science (LICS), 1996. • Variables : finite set X = { x 1 , . . . , x n } of real-valued variables - ˙ X denotes first derivatives - X ′ denotes values after discrete change. Towards a Formal Semantics for FHM, Part I – p.3/31

  7. Hybrid Automata (2) • Control graph : finite directed multigraph ( V, E ) ; - vertices V called control modes - edges E called control switches Towards a Formal Semantics for FHM, Part I – p.4/31

  8. Hybrid Automata (2) • Control graph : finite directed multigraph ( V, E ) ; - vertices V called control modes - edges E called control switches • Initial, invariant, flow conditions : vertex labelling functions assigning predicate over X , X , and X ∪ ˙ X respectively to each control mode v ∈ V Towards a Formal Semantics for FHM, Part I – p.4/31

  9. Hybrid Automata (2) • Control graph : finite directed multigraph ( V, E ) ; - vertices V called control modes - edges E called control switches • Initial, invariant, flow conditions : vertex labelling functions assigning predicate over X , X , and X ∪ ˙ X respectively to each control mode v ∈ V • Jump condition : edge labelling function assigning predicate over X ∪ X ′ to each control switch e ∈ E Towards a Formal Semantics for FHM, Part I – p.4/31

  10. Hybrid Automata (3) • Events : finite set Σ of events and an edge labelling function E → Σ assigning event to each control switch e ∈ E . Towards a Formal Semantics for FHM, Part I – p.5/31

  11. Hybrid Automata (3) • Events : finite set Σ of events and an edge labelling function E → Σ assigning event to each control switch e ∈ E . Note : Hybrid Automata arguably unrealistically expressive as events can be enforced at specific real-valued points in time. “Robust” or “Fuzzy” Hybrid Automata address this, but theory said to not differ significantly. Towards a Formal Semantics for FHM, Part I – p.5/31

  12. Thermostat Hybrid Automaton Towards a Formal Semantics for FHM, Part I – p.6/31

  13. Hybrid Automata Semantics (1) Idea: • States Q, Q 0 ⊆ V × R n such that invariants and, for Q 0 , initial conditions satisfied. Towards a Formal Semantics for FHM, Part I – p.7/31

  14. Hybrid Automata Semantics (1) Idea: • States Q, Q 0 ⊆ V × R n such that invariants and, for Q 0 , initial conditions satisfied. σ • Discrete transitions ( v, x ) → ( v ′ , x ′ ) iff control switch e from v to v ′ , jump( e )[ X, X := x , x ′ ] , and event( e ) = σ . Towards a Formal Semantics for FHM, Part I – p.7/31

  15. Hybrid Automata Semantics (1) Idea: • States Q, Q 0 ⊆ V × R n such that invariants and, for Q 0 , initial conditions satisfied. σ • Discrete transitions ( v, x ) → ( v ′ , x ′ ) iff control switch e from v to v ′ , jump( e )[ X, X := x , x ′ ] , and event( e ) = σ . Note : Typically infinite state space. Towards a Formal Semantics for FHM, Part I – p.7/31

  16. Hybrid Automata Semantics (2) • For δ ∈ R ≥ 0 , continuous transitions δ → ( v, x ′ ) iff there exists a differentiable ( v, x ) function f : [0 , δ ] → R n with first derivative ˙ f such that f (0) = x , f ( δ ) = x ′ , and invariants and flow condititions satisfied for f ( ǫ ) and ˙ f ( ǫ ) for all ǫ ∈ (0 , δ ) . Towards a Formal Semantics for FHM, Part I – p.8/31

  17. Hybrid Automata Semantics (2) • For δ ∈ R ≥ 0 , continuous transitions δ → ( v, x ′ ) iff there exists a differentiable ( v, x ) function f : [0 , δ ] → R n with first derivative ˙ f such that f (0) = x , f ( δ ) = x ′ , and invariants and flow condititions satisfied for f ( ǫ ) and ˙ f ( ǫ ) for all ǫ ∈ (0 , δ ) . Note : Transition relation is generally highly non-deterministic. Towards a Formal Semantics for FHM, Part I – p.8/31

  18. Hybrid Automata Semantics (2) • For δ ∈ R ≥ 0 , continuous transitions δ → ( v, x ′ ) iff there exists a differentiable ( v, x ) function f : [0 , δ ] → R n with first derivative ˙ f such that f (0) = x , f ( δ ) = x ′ , and invariants and flow condititions satisfied for f ( ǫ ) and ˙ f ( ǫ ) for all ǫ ∈ (0 , δ ) . Note : Transition relation is generally highly non-deterministic. Note : Additional liveness assumption: divergent time; i.e. there must exist sequences of transitions such that the sum of the labels goes to infinity. Towards a Formal Semantics for FHM, Part I – p.8/31

  19. Thermostat Behaviour Towards a Formal Semantics for FHM, Part I – p.9/31

  20. FHM in a Nutshell (1) • Functional Hybrid Modelling (FHM) : A functional approach to domain-specific languages for modelling and simulation of (physical) systems that can be described by an evolving set of differential equations. Towards a Formal Semantics for FHM, Part I – p.10/31

  21. FHM in a Nutshell (1) • Functional Hybrid Modelling (FHM) : A functional approach to domain-specific languages for modelling and simulation of (physical) systems that can be described by an evolving set of differential equations. • Undirected equations: non-causal modelling . (Differential Algebraic Equations, DAE) Towards a Formal Semantics for FHM, Part I – p.10/31

  22. FHM in a Nutshell (1) • Functional Hybrid Modelling (FHM) : A functional approach to domain-specific languages for modelling and simulation of (physical) systems that can be described by an evolving set of differential equations. • Undirected equations: non-causal modelling . (Differential Algebraic Equations, DAE) • Two-level design: - equation level for modelling components - functional level for spatial and temporal composition of components Towards a Formal Semantics for FHM, Part I – p.10/31

  23. FHM in a Nutshell (2) • Equations system fragments are first-class entities at the functional level; viewed as relations on signal, or signal relations . Towards a Formal Semantics for FHM, Part I – p.11/31

  24. FHM in a Nutshell (2) • Equations system fragments are first-class entities at the functional level; viewed as relations on signal, or signal relations . • Spatial composition: signal relation application ; enables modular, hierarchical, system description. Towards a Formal Semantics for FHM, Part I – p.11/31

  25. FHM in a Nutshell (2) • Equations system fragments are first-class entities at the functional level; viewed as relations on signal, or signal relations . • Spatial composition: signal relation application ; enables modular, hierarchical, system description. • Temporal composition: switching from one structural configuration or control mode into another. Towards a Formal Semantics for FHM, Part I – p.11/31

  26. Hybrid Automata vs. FHM FHM thus differs from Hybrid Automata in two central ways: Towards a Formal Semantics for FHM, Part I – p.12/31

  27. Hybrid Automata vs. FHM FHM thus differs from Hybrid Automata in two central ways: • Modular, hierarchical way to describe the system. Towards a Formal Semantics for FHM, Part I – p.12/31

  28. Hybrid Automata vs. FHM FHM thus differs from Hybrid Automata in two central ways: • Modular, hierarchical way to describe the system. • A priori unbounded structural dynamism : the next control mode computed as part of a discrete transition. Towards a Formal Semantics for FHM, Part I – p.12/31

  29. Hybrid Automata vs. FHM FHM thus differs from Hybrid Automata in two central ways: • Modular, hierarchical way to describe the system. • A priori unbounded structural dynamism : the next control mode computed as part of a discrete transition. The latter enables modelling of “highly” structurally dynamic systems: systems where the number of structural configurations or modes is too large for an explicit enumeration to be practical or possible. Towards a Formal Semantics for FHM, Part I – p.12/31

  30. A Priori Unbounded Struct. Dynamism Towards a Formal Semantics for FHM, Part I – p.13/31

Recommend


More recommend