Nonlinear Real Arithmetic and δ-satisfiability. Paolo Zuliani

Size: px
Start display at page:

Download "Nonlinear Real Arithmetic and δ-satisfiability. Paolo Zuliani"

Transcription

1 Nonlinear Real Arithmetic and δ-satisfiability Paolo Zuliani School of Computing Science Newcastle University, UK (Slides courtesy of Sicun Gao, UCSD) 1 / 27

2 Introduction We use hybrid systems for modelling and verifying biological and cyber-physical system models: atrial fibrillation (CMSB 2014) prostate cancer therapy (HSCC 2015) psoriasis UVB treatment (HVC 2016) artificial pancreas (this tutorial paper coming soon) Hybrid systems combine continuous dynamics with discrete state changes. 2 / 27

3 Why Nonlinear Real Arithmetic and Hybrid Systems? (I) A prostate cancer model 1 ( ) ) dx dt = α x β x 1 + e (k 1 z)k e (z k m 1 (1 zz0 c 1 x + c 2 3)k 4 ) ( ) ) dy dt =m 1 (1 zz0 z x + (α y 1 d 0 β y y z 0 dz dt = zγ c 3 v =x + y v - prostate specific antigen (PSA) x - hormone sensitive cells (HSCs) y - castration resistant cells (CRCs) z - androgen 1 A.M. Ideta, G. Tanaka, T. Takeuchi, K. Aihara: A mathematical model of intermittent androgen suppression for prostate cancer. Journal of Nonlinear Science, 18(6), (2008) 3 / 27

4 Why Nonlinear Real Arithmetic and Hybrid Systems? (I) Intermittent androgen deprivation therapy on-therapy dx dt = α x β x 1 + e k 1 z k e z k 3 k m 1 1 z c 4 z 1 x + c 2 0 dy dt = m 1 1 z z 0 dz dt = zγ + c 3 x + α y 1 d 0z z 0 β y x + y r 0 x + y r 1 off-therapy dx dt = α x β x 1 + e k 1 z k e z k 3 k m 1 1 z c 4 z 1 x + c 2 0 dy dt = m 1 1 z z 0 dz dt = z 0 z γ + c 3 x + α y 1 d 0z z 0 β y 4 / 27

5 Why Nonlinear Real Arithmetic and Hybrid Systems? (II) A model of psoriasis development and UVB treatment 2 dsc dt dta = dt ω(1 SC+λSC d )SC SCmax = γ (ω 1)( TA+TA β 1In A SC d ) P n ta,h k 1a,s ωsc 1 + (ω 1)( TA+TA + d ) P n ta,h k 1s ω 1 + (ω 1)( TA+TA d ) P n SC + k 1 TA ta,h 2k 1sω 1 + (ω 1)( TA+TA d ) P n + γ 2 GA β 2 In A TA k 2s TA k 1 TA ta,h dga = (k 2a,s + 2k 2s )TA k 2 GA k 3 GA β 3 GA dt dsc d = γ 1d (1 SC + SC d SC d β 1d In A SC d k 1sd SC d kpsc 2 d dt SC max,t ka 2 + SC d 2 + k 1d TA d ) dta d dt dga d dt = k 1a,sd SC d + 2k 1sd SC d + γ 2d TA d + k 2d GA d β 2d In A TA d k 2sd TA d k 1d TA d = (k 2a,sd + 2k 2sd )TA d k 2d GA d k 3d GA d β 3d GA d Therapy episode: 48 hours of irradiation + 8 hours of rest 2 H. Zhang, W. Hou, L. Henrot, S. Schnebert, M. Dumas, C. Heusèle, and J. Yang. Modelling epidermis homoeostasis and psoriasis pathogenesis. Journal of The Royal Society Interface, 12(103), / 27

6 Why Nonlinear Real Arithmetic and Hybrid Systems? (II) A model of psoriasis development and UVB treatment 2 dsc dt dta = dt ω(1 SC+λSC d )SC SCmax = γ (ω 1)( TA+TA β d ) P n 1 In ASC ta,h k 1a,s ωsc 1 + (ω 1)( TA+TA + d ) P n ta,h k 1s ω 1 + (ω 1)( TA+TA d ) P n SC + k 1 TA ta,h 2k 1sω 1 + (ω 1)( TA+TA d P ta,h ) n + γ 2 GA β 2 In A TA k 2s TA k 1 TA dga = (k 2a,s + 2k 2s )TA k 2 GA k 3 GA β 3 GA dt dsc d = γ 1d (1 SC + SC d SC d β 1d In A SC d k 1sd SC d kpsc 2 d dt SC max,t ka 2 + SC d 2 + k 1d TA d ) dta d dt dga d dt = k 1a,sd SC d + 2k 1sd SC d + γ 2d TA d + k 2d GA d β 2d In A TA d k 2sd TA d k 1d TA d = (k 2a,sd + 2k 2sd )TA d k 2d GA d k 3d GA d β 3d GA d Therapy episode: 48 hours of irradiation + 8 hours of rest Therapy episode = multiply β 1 and β 2 by a constant In A 2 H. Zhang, W. Hou, L. Henrot, S. Schnebert, M. Dumas, C. Heusèle, and J. Yang. Modelling epidermis homoeostasis and psoriasis pathogenesis. Journal of The Royal Society Interface, 12(103), / 27

7 Bounded Reachability Reachability is a key property in verification, also for hybrid systems. Reachability is undecidable even for linear hybrid systems (Alur, Courcoubetis, Henzinger, Ho. 1993). [Bounded Reachability] Does the hybrid system reach a goal state within a finite time and number of (discrete) steps? Can a 5-episode UVB therapy remit psoriasis for a year? 6 / 27

8 Bounded Reachability Reachability is a key property in verification, also for hybrid systems. Reachability is undecidable even for linear hybrid systems (Alur, Courcoubetis, Henzinger, Ho. 1993). [Bounded Reachability] Does the hybrid system reach a goal state within a finite time and number of (discrete) steps? Can a 5-episode UVB therapy remit psoriasis for a year? Nonlinear arithmetics over the reals is undecidable (Tarski 1951, Richardson 1968). Hence, the problem needs to be simplified if we want to solve it algorithmically! 6 / 27

9 Formal Reasoning for Nonlinear Arithmetics Novak and Woźniakowski (J of Complexity, 1992) studied the relaxed verification problem: verify that a candidate is close to a problem solution introduce a parametric safety zone for which either answer is deemed correct focus on computational complexity 7 / 27

10 Formal Reasoning for Nonlinear Arithmetics Novak and Woźniakowski (J of Complexity, 1992) studied the relaxed verification problem: verify that a candidate is close to a problem solution introduce a parametric safety zone for which either answer is deemed correct focus on computational complexity Fränzle s work on hybrid automata (since 1999). 7 / 27

11 Formal Reasoning for Nonlinear Arithmetics Novak and Woźniakowski (J of Complexity, 1992) studied the relaxed verification problem: verify that a candidate is close to a problem solution introduce a parametric safety zone for which either answer is deemed correct focus on computational complexity Fränzle s work on hybrid automata (since 1999). Ratschan s work on constraint solving (since 2001). 7 / 27

12 Formal Reasoning for Nonlinear Arithmetics Novak and Woźniakowski (J of Complexity, 1992) studied the relaxed verification problem: verify that a candidate is close to a problem solution introduce a parametric safety zone for which either answer is deemed correct focus on computational complexity Fränzle s work on hybrid automata (since 1999). Ratschan s work on constraint solving (since 2001). Gao, Avigad, Clarke (LICS 2012): bounded δ-satisfiability over the reals is decidable: δ-complete decision procedure. 7 / 27

13 Background: Type 2 Computability Turning machines operate on finite strings, i.e., integers, which cannot capture real-valued functions. Real numbers can be encoded on infinite tapes. Real numbers are functions over integers. Real functions can be computed by machines that take infinite tapes as inputs, and output infinite tapes encoding the values. Definition (Name of a real number) A real number a can be encoded by an infinite sequence of rationals γ a : N Q such that i N a γ a (i) < 2 i. 8 / 27

14 Background: Type 2 Computability A function f (x) = y is computable if any name of x can be algorithmically mapped to a name of y y 1 y k.... k input tapes... } M } work tapes y... output tape f M (y 1,...,y k )=y Writing on any finite segment of the output tape takes finite time. 9 / 27

15 Background: Type 2 Computability Type 2 computability implies continuity. Numerically computable roughly means Type 2 computable. Approximation up to arbitrary numerical precisions. Ker-I Ko. Complexity Theory of Real Functions / 27

16 Background: Type 2 Computability Type 2 Computable: polynomials, sin, exp,... numerically feasible ODEs, PDEs,... Type 2 Complexity: sin, exp, etc. are in P [0,1] Lipschitz-continuous ODEs are in PSPACE [0,1] ; in fact, can be PSPACE [0,1] -complete (Kawamura, CCC 2009). See Ko s book for many more results / 27

17 L RF -Formulas (Gao, Avigad, and Clarke. LICS 2012) Let F be the class of all Type 2 computable real functions. Definition (L RF -Formulas) First-order language over >, F : t := x f (t( x)) ϕ := t( x) > 0 ϕ ϕ ϕ x i ϕ x i ϕ Example Let dx/dt = f (x) be an n-dimensional dynamical system. Lyapunov stability is expressed as: ε δ t x 0 x t. ( t x 0 < δ x t = x 0 + f (s)ds ) x t < ε 0 12 / 27

18 Hybrid Automata A hybrid automaton is a tuple H = X, Q, {flow q ( x, y, t) : q Q}, {jump q q ( x, y) : q, q Q}, {inv q ( x) : q Q}, {init q ( x) : q Q} X R n for some n N Q = {q 1,..., q m } is a finite set of modes Other components are finite sets of quantifier-free L RF -formulas. 13 / 27

19 Example: Nonlinear Bouncing Ball X = R 2 and Q = {q u, q d }. flow qd (x 0, v 0, x t, v t, t), dynamics in the falling phase: t t (x t = x 0 + v(s)ds) (v t = v 0 + g(1 + βv(s) 2 )ds) 0 0 jump qu q d (x, v, x, v ): inv qd : (x >= 0 v >= 0). init qd : (x = 10 v = 0). (v = 0 x = x v = v) 14 / 27

20 Encode Reachability Continuous case: init( x 0 ) flow( x 0, t, x t ) goal( x t ) Make one jump: init( x 0 ) flow( x 0, t, x t ) jump( x t, x t) goal( x t) 15 / 27

21 Encode Reachability: invariant-free case X x 0 X x 0 t X x k X x k t [0,M] t 0 [0,M] t k ( ) init q ( x 0 ) flow q ( x 0, x 0, t t 0 ) q Q k 1 i=0 ( q,q Q (goal q ( x k t )) q Q (There s some simplification here.) ( ) ) jump q q ( x i t, x i+1 ) flow q ( x i+1, x i+1, t t i+1 ) 16 / 27

22 Difficulty Suppose F is {+, }. R = a b c (ax 2 + bx + c > 0)? Decidable [Tarski 1948] but double-exponential lower-bound. Suppose F further contains sine. R = x, y, z (sin 2 (πx) + sin 2 (πy) + sin 2 (πz) = 0 x 3 + y 3 = z 3 )? Undecidable. 17 / 27

23 Towards δ-decisions Defining δ-decision problems of L RF -formulas leads to a totally different outlook. 18 / 27

24 Bounded L F -Sentences Definition (Normal Form) Any bounded L F -sentence ϕ can be written in the form Q [u 1,v 1 ] 1 x n Q [un,vn] n x n ( t( x) > 0 t( x) 0) Negations are pushed into atoms. Bounded quantifiers: the bounds can use any terms that contain previously-quantified variables. 19 / 27

25 δ-variants Definition (Numerical Perturbation) Let δ Q + {0}. The δ-weakening ϕ δ of ϕ is Q [u 1,v 1 ] 1 x 1 Q n [un,vn] x n ( t( x) > δ t( x) δ) Obviously, ϕ ϕ δ (but not the other way round!) δ-strengthening ϕ +δ is defined by replacing δ by δ. 20 / 27

26 δ-decisions Let δ Q + be arbitrary. Definition (δ-decisions) Decide, for any given bounded ϕ and δ Q +, whether ϕ is false, or ϕ δ is true. When the two cases overlap, either answer can be returned. The dual can be defined on δ-strengthening. 21 / 27

27 δ-decisions There is a grey area that a δ-complete algorithm can be wrong about. UNSAT delta SAT SAT Corollary In undecidable theories, it is undecidable whether a formula falls into this grey area. 22 / 27

28 δ-decidability Let F be an arbitrary collection of Type 2 computable functions. Theorem The δ-decision problem over R F is decidable. See [Gao et al. LICS 2012]. It stands in sharp contrast to the high undecidability of simple formulas containing sine. 23 / 27

29 δ-robustness A bounded L R -sentence φ is δ-robust iff φ δ φ. φ is robust if it is δ-robust for some δ > 0. Suppose φ is robust if φ is true, then δ > 0 : φ δ φ, if φ is false, then δ > 0 : φ φ δ. Theorem Given a robust bounded L R -sentence φ, there exists δ > 0 for which a δ-complete decision procedure correctly decides whether φ is true or false. Thus, robustness decidability. However, decidability robustness. 24 / 27

30 Complexity Let S be some class of L F -sentences such that all the terms appearing in S are in Type 2 complexity class C. Then for any δ Q + : Theorem The δ-decision problem for a Σ k -sentence from S is in (Σ P k )C. Corollary F = {+,, exp, sin,...}: Σ P k -complete. F = {ODEs with P right-hand sides}: PSPACE-complete. These are very reasonable! 25 / 27

31 Exactness The definition of δ-decisions is exact in the following sense. Theorem If F is allowed to be arbitrary, then ϕ is decidable iff we consider bounded δ-decisions. Theorem Bounded sentences are δ-decidable iff F is computable. 26 / 27

32 Conclusions The notion of δ-complete decision procedures allows formal analysis and use of numerical algorithms in decision procedures. Standard completeness is impossible. δ-completeness: strong enough and achievable. Correctness guarantees on both sides 27 / 27

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

Nonlinear Control as Program Synthesis (A Starter)

Nonlinear Control as Program Synthesis (A Starter) Nonlinear Control as Program Synthesis (A Starter) Sicun Gao MIT December 15, 2014 Preliminaries Definition (L RF ) L RF is the first-order language over the reals that allows arbitrary numerically computable

More information

ProbReach: Probabilistic Bounded Reachability for Uncertain Hybrid Systems

ProbReach: Probabilistic Bounded Reachability for Uncertain Hybrid Systems ProbReach: Probabilistic Bounded Reachability for Uncertain Hybrid Systems Fedor Shmarov, Paolo Zuliani School of Computing Science, Newcastle University, UK 1 / 41 Introduction ProbReach tool for probabilistic

More information

δ-complete Analysis for Bounded Reachability of Hybrid Systems

δ-complete Analysis for Bounded Reachability of Hybrid Systems δ-complete Analysis for Bounded Reachability of Hybrid Systems Sicun Gao Soonho Kong Wei Chen Edmund M. Clarke July 16, 2014 CMU-CS-14-111 School of Computer Science Carnegie Mellon University Pittsburgh,

More information

Computable Analysis, Hybrid Automata, and Decision Procedures (Extended Thesis Abstract)

Computable Analysis, Hybrid Automata, and Decision Procedures (Extended Thesis Abstract) Computable Analysis, Hybrid Automata, and Decision Procedures (Extended Thesis Abstract) Sicun Gao 1 Introduction 1.1 Overview Cyber-Physical Systems (CPS) are systems that integrate digital computation

More information

Reducibility in polynomialtime computable analysis. Akitoshi Kawamura (U Tokyo) Wadern, Germany, September 24, 2015

Reducibility in polynomialtime computable analysis. Akitoshi Kawamura (U Tokyo) Wadern, Germany, September 24, 2015 Reducibility in polynomialtime computable analysis Akitoshi Kawamura (U Tokyo) Wadern, Germany, September 24, 2015 Computable Analysis Applying computability / complexity theory to problems involving real

More information

Umans Complexity Theory Lectures

Umans Complexity Theory Lectures Complexity Theory Umans Complexity Theory Lectures Lecture 1a: Problems and Languages Classify problems according to the computational resources required running time storage space parallelism randomness

More information

Formal methods in analysis

Formal methods in analysis Formal methods in analysis Jeremy Avigad Department of Philosophy and Department of Mathematical Sciences Carnegie Mellon University May 2015 Sequence of lectures 1. Formal methods in mathematics 2. Automated

More information

Automata-theoretic analysis of hybrid systems

Automata-theoretic analysis of hybrid systems Automata-theoretic analysis of hybrid systems Madhavan Mukund SPIC Mathematical Institute 92, G N Chetty Road Chennai 600 017, India Email: madhavan@smi.ernet.in URL: http://www.smi.ernet.in/~madhavan

More information

CS151 Complexity Theory. Lecture 1 April 3, 2017

CS151 Complexity Theory. Lecture 1 April 3, 2017 CS151 Complexity Theory Lecture 1 April 3, 2017 Complexity Theory Classify problems according to the computational resources required running time storage space parallelism randomness rounds of interaction,

More information

15-251: Great Theoretical Ideas in Computer Science Lecture 7. Turing s Legacy Continues

15-251: Great Theoretical Ideas in Computer Science Lecture 7. Turing s Legacy Continues 15-251: Great Theoretical Ideas in Computer Science Lecture 7 Turing s Legacy Continues Solvable with Python = Solvable with C = Solvable with Java = Solvable with SML = Decidable Languages (decidable

More information

Robust computation with dynamical systems

Robust computation with dynamical systems Robust computation with dynamical systems Olivier Bournez 1 Daniel S. Graça 2 Emmanuel Hainry 3 1 École Polytechnique, LIX, Palaiseau, France 2 DM/FCT, Universidade do Algarve, Faro & SQIG/Instituto de

More information

Lipschitz Robustness of Finite-state Transducers

Lipschitz Robustness of Finite-state Transducers Lipschitz Robustness of Finite-state Transducers Roopsha Samanta IST Austria Joint work with Tom Henzinger and Jan Otop December 16, 2014 Roopsha Samanta Lipschitz Robustness of Finite-state Transducers

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Lecture 5 Reductions Undecidable problems from language theory Linear bounded automata given by Jiri Srba Lecture 5 Computability and Complexity 1/14 Reduction Informal Definition

More information

Discrete abstractions of hybrid systems for verification

Discrete abstractions of hybrid systems for verification Discrete abstractions of hybrid systems for verification George J. Pappas Departments of ESE and CIS University of Pennsylvania pappasg@ee.upenn.edu http://www.seas.upenn.edu/~pappasg DISC Summer School

More information

APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1. Antoine Girard A. Agung Julius George J. Pappas

APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1. Antoine Girard A. Agung Julius George J. Pappas APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1 Antoine Girard A. Agung Julius George J. Pappas Department of Electrical and Systems Engineering University of Pennsylvania Philadelphia, PA 1914 {agirard,agung,pappasg}@seas.upenn.edu

More information

Liveness in L/U-Parametric Timed Automata

Liveness in L/U-Parametric Timed Automata Liveness in L/U-Parametric Timed Automata Étienne André and Didier Lime [AL17] Université Paris 13, LIPN and École Centrale de Nantes, LS2N Highlights, 14 September 2017, London, England Étienne André

More information

Approximately Bisimilar Finite Abstractions of Stable Linear Systems

Approximately Bisimilar Finite Abstractions of Stable Linear Systems Approximately Bisimilar Finite Abstractions of Stable Linear Systems Antoine Girard Université Joseph Fourier Laboratoire de Modélisation et Calcul B.P. 53, 38041 Grenoble, France Antoine.Girard@imag.fr

More information

arxiv: v1 [q-bio.qm] 27 Oct 2014

arxiv: v1 [q-bio.qm] 27 Oct 2014 Towards Persalized Cancer Therapy Using Delta-Reachability Analysis arxiv:141.7346v1 [q-bio.qm] 27 Oct 214 Bing Liu School of Medicine University of Pittsburgh liubing@pitt.edu Paolo Zuliani School of

More information

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete.

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete. Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete. Yevgeny Kazakov and Hans de Nivelle MPI für Informatik, Saarbrücken, Germany E-mail:

More information

A Survey of Partial-Observation Stochastic Parity Games

A Survey of Partial-Observation Stochastic Parity Games Noname manuscript No. (will be inserted by the editor) A Survey of Partial-Observation Stochastic Parity Games Krishnendu Chatterjee Laurent Doyen Thomas A. Henzinger the date of receipt and acceptance

More information

Modeling & Control of Hybrid Systems. Chapter 7 Model Checking and Timed Automata

Modeling & Control of Hybrid Systems. Chapter 7 Model Checking and Timed Automata Modeling & Control of Hybrid Systems Chapter 7 Model Checking and Timed Automata Overview 1. Introduction 2. Transition systems 3. Bisimulation 4. Timed automata hs check.1 1. Introduction Model checking

More information

for System Modeling, Analysis, and Optimization

for System Modeling, Analysis, and Optimization Fundamental Algorithms for System Modeling, Analysis, and Optimization Stavros Tripakis UC Berkeley EECS 144/244 Fall 2013 Copyright 2013, E. A. Lee, J. Roydhowdhury, S. A. Seshia, S. Tripakis All rights

More information

The algorithmic analysis of hybrid system

The algorithmic analysis of hybrid system The algorithmic analysis of hybrid system Authors: R.Alur, C. Courcoubetis etc. Course teacher: Prof. Ugo Buy Xin Li, Huiyong Xiao Nov. 13, 2002 Summary What s a hybrid system? Definition of Hybrid Automaton

More information

Computability and Complexity CISC462, Fall 2018, Space complexity 1

Computability and Complexity CISC462, Fall 2018, Space complexity 1 Computability and Complexity CISC462, Fall 2018, Space complexity 1 SPACE COMPLEXITY This material is covered in Chapter 8 of the textbook. For simplicity, we define the space used by a Turing machine

More information

Verifying Safety Properties of Hybrid Systems.

Verifying Safety Properties of Hybrid Systems. Verifying Safety Properties of Hybrid Systems. Sriram Sankaranarayanan University of Colorado, Boulder, CO. October 22, 2010. Talk Outline 1. Formal Verification 2. Hybrid Systems 3. Invariant Synthesis

More information

6-1 Computational Complexity

6-1 Computational Complexity 6-1 Computational Complexity 6. Computational Complexity Computational models Turing Machines Time complexity Non-determinism, witnesses, and short proofs. Complexity classes: P, NP, conp Polynomial-time

More information

Hybrid systems and computer science a short tutorial

Hybrid systems and computer science a short tutorial Hybrid systems and computer science a short tutorial Eugene Asarin Université Paris 7 - LIAFA SFM 04 - RT, Bertinoro p. 1/4 Introductory equations Hybrid Systems = Discrete+Continuous SFM 04 - RT, Bertinoro

More information

Exam Computability and Complexity

Exam Computability and Complexity Total number of points:... Number of extra sheets of paper:... Exam Computability and Complexity by Jiri Srba, January 2009 Student s full name CPR number Study number Before you start, fill in the three

More information

δ-complete Decision Procedures for Satisfiability over the Reals

δ-complete Decision Procedures for Satisfiability over the Reals δ-complete Decision Procedures for Satisfiability over the Reals Sicun Gao, Jeremy Avigad, and Edmund M. Clarke Carnegie Mellon University, Pittsburgh, PA 15213 Abstract. We introduce the notion of δ-complete

More information

Notes for Lecture Notes 2

Notes for Lecture Notes 2 Stanford University CS254: Computational Complexity Notes 2 Luca Trevisan January 11, 2012 Notes for Lecture Notes 2 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation

More information

Lecture 6: Reachability Analysis of Timed and Hybrid Automata

Lecture 6: Reachability Analysis of Timed and Hybrid Automata University of Illinois at Urbana-Champaign Lecture 6: Reachability Analysis of Timed and Hybrid Automata Sayan Mitra Special Classes of Hybrid Automata Timed Automata ß Rectangular Initialized HA Rectangular

More information

The Target Discounted-Sum Problem

The Target Discounted-Sum Problem The Target Discounted-Sum Problem Udi Boker The Interdisciplinary Center (IDC), Herzliya, Israel Email: udiboker@idc.ac.il Thomas A. Henzinger and Jan Otop IST Austria Klosterneuburg, Austria Email: {tah,

More information

Linear Variable coefficient equations (Sect. 2.1) Review: Linear constant coefficient equations

Linear Variable coefficient equations (Sect. 2.1) Review: Linear constant coefficient equations Linear Variable coefficient equations (Sect. 2.1) Review: Linear constant coefficient equations. The Initial Value Problem. Linear variable coefficients equations. The Bernoulli equation: A nonlinear equation.

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

Logic Model Checking

Logic Model Checking Logic Model Checking Lecture Notes 10:18 Caltech 101b.2 January-March 2004 Course Text: The Spin Model Checker: Primer and Reference Manual Addison-Wesley 2003, ISBN 0-321-22862-6, 608 pgs. the assignment

More information

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in Oracle Turing Machines Nondeterministic OTM defined in the same way (transition relation, rather than function) oracle is like a subroutine, or function in your favorite PL but each call counts as single

More information

Models for Efficient Timed Verification

Models for Efficient Timed Verification Models for Efficient Timed Verification François Laroussinie LSV / ENS de Cachan CNRS UMR 8643 Monterey Workshop - Composition of embedded systems Model checking System Properties Formalizing step? ϕ Model

More information

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class CSE 105 THEORY OF COMPUTATION Spring 2018 review class Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with confidence. Identify areas to focus

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

On decision problems for timed automata

On decision problems for timed automata On decision problems for timed automata Olivier Finkel Equipe de Logique Mathématique, U.F.R. de Mathématiques, Université Paris 7 2 Place Jussieu 75251 Paris cedex 05, France. finkel@logique.jussieu.fr

More information

Large Numbers, Busy Beavers, Noncomputability and Incompleteness

Large Numbers, Busy Beavers, Noncomputability and Incompleteness Large Numbers, Busy Beavers, Noncomputability and Incompleteness Food For Thought November 1, 2007 Sam Buss Department of Mathematics U.C. San Diego PART I Large Numbers, Busy Beavers, and Undecidability

More information

Synthesis weakness of standard approach. Rational Synthesis

Synthesis weakness of standard approach. Rational Synthesis 1 Synthesis weakness of standard approach Rational Synthesis 3 Overview Introduction to formal verification Reactive systems Verification Synthesis Introduction to Formal Verification of Reactive Systems

More information

Tutorial 1: Modern SMT Solvers and Verification

Tutorial 1: Modern SMT Solvers and Verification University of Illinois at Urbana-Champaign Tutorial 1: Modern SMT Solvers and Verification Sayan Mitra Electrical & Computer Engineering Coordinated Science Laboratory University of Illinois at Urbana

More information

Lecture 20: conp and Friends, Oracles in Complexity Theory

Lecture 20: conp and Friends, Oracles in Complexity Theory 6.045 Lecture 20: conp and Friends, Oracles in Complexity Theory 1 Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode:

More information

1 Lyapunov theory of stability

1 Lyapunov theory of stability M.Kawski, APM 581 Diff Equns Intro to Lyapunov theory. November 15, 29 1 1 Lyapunov theory of stability Introduction. Lyapunov s second (or direct) method provides tools for studying (asymptotic) stability

More information

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano

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

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

Notes for Lecture 3... x 4

Notes for Lecture 3... x 4 Stanford University CS254: Computational Complexity Notes 3 Luca Trevisan January 14, 2014 Notes for Lecture 3 In this lecture we introduce the computational model of boolean circuits and prove that polynomial

More information

Intro to Theory of Computation

Intro to Theory of Computation Intro to Theory of Computation LECTURE 25 Last time Class NP Today Polynomial-time reductions Adam Smith; Sofya Raskhodnikova 4/18/2016 L25.1 The classes P and NP P is the class of languages decidable

More information

Hybrid Systems Modeling, Analysis and Control

Hybrid Systems Modeling, Analysis and Control Hybrid Systems Modeling, Analysis and Control Radu Grosu Vienna University of Technology Lecture 6 Continuous AND Discrete Systems Control Theory Continuous systems approximation, stability control, robustness

More information

1 Computational Problems

1 Computational Problems Stanford University CS254: Computational Complexity Handout 2 Luca Trevisan March 31, 2010 Last revised 4/29/2010 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation

More information

analysis Bjorn Poonen Rademacher Lecture 2 November 7, 2017 Undecidability in group theory, topology, and analysis Bjorn Poonen Group theory Topology

analysis Bjorn Poonen Rademacher Lecture 2 November 7, 2017 Undecidability in group theory, topology, and analysis Bjorn Poonen Group theory Topology Rademacher Lecture 2 November 7, 2017 Word Complex Question Can a computer decide whether two given elements of a group are equal? Word Complex Question Can a computer decide whether two given elements

More information

Timo Latvala. March 7, 2004

Timo Latvala. March 7, 2004 Reactive Systems: Safety, Liveness, and Fairness Timo Latvala March 7, 2004 Reactive Systems: Safety, Liveness, and Fairness 14-1 Safety Safety properties are a very useful subclass of specifications.

More information

Modular SMT-Based Analysis of Nonlinear Hybrid Systems

Modular SMT-Based Analysis of Nonlinear Hybrid Systems Modular SMT-Based Analysis of Nonlinear Hybrid Systems Kyungmin Bae POSTECH, Republic of Korea kmbae@postech.ac.kr Sicun Gao University of California, San Diego, USA sicung@ucsd.edu Abstract We present

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

Answers to the CSCE 551 Final Exam, April 30, 2008

Answers to the CSCE 551 Final Exam, April 30, 2008 Answers to the CSCE 55 Final Exam, April 3, 28. (5 points) Use the Pumping Lemma to show that the language L = {x {, } the number of s and s in x differ (in either direction) by at most 28} is not regular.

More information

From Monadic Second-Order Definable String Transformations to Transducers

From Monadic Second-Order Definable String Transformations to Transducers From Monadic Second-Order Definable String Transformations to Transducers Rajeev Alur 1 Antoine Durand-Gasselin 2 Ashutosh Trivedi 3 1 University of Pennsylvania 2 LIAFA, Université Paris Diderot 3 Indian

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

More information

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d T-79.5103 / Autumn 2008 Polynomial Space 1 T-79.5103 / Autumn 2008 Polynomial Space 3 POLYNOMIAL SPACE Polynomial space cont d Polynomial space-bounded computation has a variety of alternative characterizations

More information

Timed Automata with Observers under Energy Constraints

Timed Automata with Observers under Energy Constraints Timed Automata with Observers under Energy Constraints Patricia Bouyer-Decitre Uli Fahrenberg Kim G. Larsen Nicolas Markey LSV, CNRS & ENS Cachan, France Aalborg Universitet, Danmark /9 Introduction The

More information

CSCI3390-Lecture 14: The class NP

CSCI3390-Lecture 14: The class NP CSCI3390-Lecture 14: The class NP 1 Problems and Witnesses All of the decision problems described below have the form: Is there a solution to X? where X is the given problem instance. If the instance is

More information

A An Overview of Complexity Theory for the Algorithm Designer

A An Overview of Complexity Theory for the Algorithm Designer A An Overview of Complexity Theory for the Algorithm Designer A.1 Certificates and the class NP A decision problem is one whose answer is either yes or no. Two examples are: SAT: Given a Boolean formula

More information

Stability of Deterministic Finite State Machines

Stability of Deterministic Finite State Machines 2005 American Control Conference June 8-10, 2005. Portland, OR, USA FrA17.3 Stability of Deterministic Finite State Machines Danielle C. Tarraf 1 Munther A. Dahleh 2 Alexandre Megretski 3 Abstract We approach

More information

Turing s Legacy Continues

Turing s Legacy Continues 15-251: Great Theoretical Ideas in Computer Science Lecture 6 Turing s Legacy Continues Solvable with Python = Solvable with C = Solvable with Java = Solvable with SML = Decidable Languages (decidable

More information

Complexity. Complexity Theory Lecture 3. Decidability and Complexity. Complexity Classes

Complexity. Complexity Theory Lecture 3. Decidability and Complexity. Complexity Classes Complexity Theory 1 Complexity Theory 2 Complexity Theory Lecture 3 Complexity For any function f : IN IN, we say that a language L is in TIME(f(n)) if there is a machine M = (Q, Σ, s, δ), such that: L

More information

Introduction to Languages and Computation

Introduction to Languages and Computation Introduction to Languages and Computation George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 400 George Voutsadakis (LSSU) Languages and Computation July 2014

More information

Temporal logics and model checking for fairly correct systems

Temporal logics and model checking for fairly correct systems Temporal logics and model checking for fairly correct systems Hagen Völzer 1 joint work with Daniele Varacca 2 1 Lübeck University, Germany 2 Imperial College London, UK LICS 2006 Introduction Five Philosophers

More information

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees Karsten Lehmann a, Rafael Peñaloza b a Optimisation Research Group, NICTA Artificial Intelligence Group, Australian National

More information

On Rice s theorem. Hans Hüttel. October 2001

On Rice s theorem. Hans Hüttel. October 2001 On Rice s theorem Hans Hüttel October 2001 We have seen that there exist languages that are Turing-acceptable but not Turing-decidable. An important example of such a language was the language of the Halting

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

Analysis and synthesis: a complexity perspective

Analysis and synthesis: a complexity perspective Analysis and synthesis: a complexity perspective Pablo A. Parrilo ETH ZürichZ control.ee.ethz.ch/~parrilo Outline System analysis/design Formal and informal methods SOS/SDP techniques and applications

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2017 http://cseweb.ucsd.edu/classes/sp17/cse105-ab/ Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with

More information

Unbounded, Fully Symbolic Model Checking of Timed Automata using Boolean Methods

Unbounded, Fully Symbolic Model Checking of Timed Automata using Boolean Methods Unbounded, Fully Symbolic Model Checking of Timed Automata using Boolean Methods Sanjit A. Seshia and Randal E. Bryant Computer Science Department Carnegie Mellon University Verifying Timed Embedded Systems

More information

Computability and Complexity Theory: An Introduction

Computability and Complexity Theory: An Introduction Computability and Complexity Theory: An Introduction meena@imsc.res.in http://www.imsc.res.in/ meena IMI-IISc, 20 July 2006 p. 1 Understanding Computation Kinds of questions we seek answers to: Is a given

More information

Hybrid Systems - Lecture n. 3 Lyapunov stability

Hybrid Systems - Lecture n. 3 Lyapunov stability OUTLINE Focus: stability of equilibrium point Hybrid Systems - Lecture n. 3 Lyapunov stability Maria Prandini DEI - Politecnico di Milano E-mail: prandini@elet.polimi.it continuous systems decribed by

More information

Introduction to Turing Machines

Introduction to Turing Machines Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability

More information

Non-emptiness Testing for TMs

Non-emptiness Testing for TMs 180 5. Reducibility The proof of unsolvability of the halting problem is an example of a reduction: a way of converting problem A to problem B in such a way that a solution to problem B can be used to

More information

MTAT Complexity Theory October 13th-14th, Lecture 6

MTAT Complexity Theory October 13th-14th, Lecture 6 MTAT.07.004 Complexity Theory October 13th-14th, 2011 Lecturer: Peeter Laud Lecture 6 Scribe(s): Riivo Talviste 1 Logarithmic memory Turing machines working in logarithmic space become interesting when

More information

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK COMS11700 Undecidability Department of Computer Science, University of Bristol Bristol, UK 4 April 2014 COMS11700: Undecidability Slide 1/29 Decidability We are particularly interested in Turing machines

More information

Symbolic Reachability Analysis of Lazy Linear Hybrid Automata. Susmit Jha, Bryan Brady and Sanjit A. Seshia

Symbolic Reachability Analysis of Lazy Linear Hybrid Automata. Susmit Jha, Bryan Brady and Sanjit A. Seshia Symbolic Reachability Analysis of Lazy Linear Hybrid Automata Susmit Jha, Bryan Brady and Sanjit A. Seshia Traditional Hybrid Automata Traditional Hybrid Automata do not model delay and finite precision

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

Controlling probabilistic systems under partial observation an automata and verification perspective

Controlling probabilistic systems under partial observation an automata and verification perspective Controlling probabilistic systems under partial observation an automata and verification perspective Nathalie Bertrand, Inria Rennes, France Uncertainty in Computation Workshop October 4th 2016, Simons

More information

Foundations of Informatics: a Bridging Course

Foundations of Informatics: a Bridging Course Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html

More information

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005 Complexity Theory Knowledge Representation and Reasoning November 2, 2005 (Knowledge Representation and Reasoning) Complexity Theory November 2, 2005 1 / 22 Outline Motivation Reminder: Basic Notions Algorithms

More information

Notes on State Minimization

Notes on State Minimization U.C. Berkeley CS172: Automata, Computability and Complexity Handout 1 Professor Luca Trevisan 2/3/2015 Notes on State Minimization These notes present a technique to prove a lower bound on the number of

More information

z x = f x (x, y, a, b), z y = f y (x, y, a, b). F(x, y, z, z x, z y ) = 0. This is a PDE for the unknown function of two independent variables.

z x = f x (x, y, a, b), z y = f y (x, y, a, b). F(x, y, z, z x, z y ) = 0. This is a PDE for the unknown function of two independent variables. Chapter 2 First order PDE 2.1 How and Why First order PDE appear? 2.1.1 Physical origins Conservation laws form one of the two fundamental parts of any mathematical model of Continuum Mechanics. These

More information

Lecture 21: Algebraic Computation Models

Lecture 21: Algebraic Computation Models princeton university cos 522: computational complexity Lecture 21: Algebraic Computation Models Lecturer: Sanjeev Arora Scribe:Loukas Georgiadis We think of numerical algorithms root-finding, gaussian

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 26 Computational Intractability Polynomial Time Reductions Sofya Raskhodnikova S. Raskhodnikova; based on slides by A. Smith and K. Wayne L26.1 What algorithms are

More information

17.1 The Halting Problem

17.1 The Halting Problem CS125 Lecture 17 Fall 2016 17.1 The Halting Problem Consider the HALTING PROBLEM (HALT TM ): Given a TM M and w, does M halt on input w? Theorem 17.1 HALT TM is undecidable. Suppose HALT TM = { M,w : M

More information

Lecture 19: Interactive Proofs and the PCP Theorem

Lecture 19: Interactive Proofs and the PCP Theorem Lecture 19: Interactive Proofs and the PCP Theorem Valentine Kabanets November 29, 2016 1 Interactive Proofs In this model, we have an all-powerful Prover (with unlimited computational prover) and a polytime

More information

Timed Automata VINO 2011

Timed Automata VINO 2011 Timed Automata VINO 2011 VeriDis Group - LORIA July 18, 2011 Content 1 Introduction 2 Timed Automata 3 Networks of timed automata Motivation Formalism for modeling and verification of real-time systems.

More information

Lecture 4 : Quest for Structure in Counting Problems

Lecture 4 : Quest for Structure in Counting Problems CS6840: Advanced Complexity Theory Jan 10, 2012 Lecture 4 : Quest for Structure in Counting Problems Lecturer: Jayalal Sarma M.N. Scribe: Dinesh K. Theme: Between P and PSPACE. Lecture Plan:Counting problems

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY YOU NEED TO PICK UP THE SYLLABUS, THE COURSE SCHEDULE, THE PROJECT INFO SHEET, TODAY S CLASS NOTES

More information

First-order resolution for CTL

First-order resolution for CTL First-order resolution for Lan Zhang, Ullrich Hustadt and Clare Dixon Department of Computer Science, University of Liverpool Liverpool, L69 3BX, UK {Lan.Zhang, U.Hustadt, CLDixon}@liverpool.ac.uk Abstract

More information

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

CSE 555 HW 5 SAMPLE SOLUTION. Question 1. CSE 555 HW 5 SAMPLE SOLUTION Question 1. Show that if L is PSPACE-complete, then L is NP-hard. Show that the converse is not true. If L is PSPACE-complete, then for all A PSPACE, A P L. We know SAT PSPACE

More information

JASS 06 Report Summary. Circuit Complexity. Konstantin S. Ushakov. May 14, 2006

JASS 06 Report Summary. Circuit Complexity. Konstantin S. Ushakov. May 14, 2006 JASS 06 Report Summary Circuit Complexity Konstantin S. Ushakov May 14, 2006 Abstract Computer science deals with many computational models. In real life we have normal computers that are constructed using,

More information

About the relationship between formal logic and complexity classes

About the relationship between formal logic and complexity classes About the relationship between formal logic and complexity classes Working paper Comments welcome; my email: armandobcm@yahoo.com Armando B. Matos October 20, 2013 1 Introduction We analyze a particular

More information

: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall October 2007

: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall October 2007 80240233: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall 2007 16 October 2007 Instructor: Andrej Bogdanov Notes by: Jialin Zhang and Pinyan Lu In this lecture, we introduce the complexity

More information