SAT Modulo ODE: A Direct SAT Approach to Hybrid Systems

Size: px
Start display at page:

Download "SAT Modulo ODE: A Direct SAT Approach to Hybrid Systems"

Transcription

1 Welcome ATVA 2008 SAT Modulo ODE: A Direct SAT Approach to Hbrid Sstems Andreas Eggers, Martin Fränzle, and Christian Herde DFG Transregional Collaborative Research Center AVACS

2 Outline Motivation Bounded model checking of hbrid sstems SMT formulae and the isat algorithm ODE enclosures as propagators Safel enclosing ODEs Integrated algorithm First benchmark results Conclusions and future work 2/1

3 Motivation Analsis of comple embedded sstems Interaction of discrete and continous dnamics Continuous behavior described b ordinar differential equations (ODEs) 3/1

4 Bounded Model Checking of Hbrid Sstems ϑ i [19, 2] c = 0 Heat off d ϑ i /dt = 0.1 (ϑ i ϑ o ) d c / d t = 0.0 c ϑ i 19 c 0.04 ϑ i 19 c 0.04 ϑ i 21 Heat on d ϑ i /dt = 0.2 (3 ϑ i ) 0.1 (ϑ i ϑ o ) d c / d t = c ϑ i 21 ϑ i [1, 21] c = 0 Bounded Model Checking (BMC): Are there an trajectories leading from an inital to an unsafe state in k steps? 4a/1

5 Bounded Model Checking of Hbrid Sstems ϑ i [19, 2] c = 0 Heat off d ϑ i /dt = 0.1 (ϑ i ϑ o ) d c / d t = 0.0 c ϑ i 19 c 0.04 ϑ i 19 c 0.04 GUARDS & ACTIONS ϑ i 21 Heat on d ϑ i /dt = 0.2 (3 ϑ i ) 0.1 (ϑ i ϑ o ) d c / d t = c ϑ i 21 CONTINUOUS DYNAMICS FLOW FLOW FLOW JUMP JUMP error trace JUMP FLOW JUMP time ϑ i [1, 21] c = 0 Bounded Model Checking (BMC): Are there an trajectories leading from an inital to an unsafe state in k steps? 4b/1

6 Bounded Model Checking of Hbrid Sstems Heat off d ϑ i /dt = 0.1 (ϑ i ϑ o ) d c / d t = 0.0 c ϑ i 19 c 0.04 ϑ i 19 c 0.04 ϑ i [19, 2] c = 0 Heat on d ϑ i /dt = 0.2 (3 ϑ i ) 0.1 (ϑ i ϑ o ) d c / d t = c ϑ i 21 ϑ i [1, 21] c = 0 ϑ i 21 init = ( ϑ o 20 c = 0 ) 19 ϑ i 2 on 1 ϑ i 21 on trans = ( on on ϑ i 19 c 0.04 ϑ i = ϑ i ϑ o = ϑ o c = c) ( on on ϑ i 21 ϑ i = ϑ i ϑ o = ϑ o c = c) ( on on dϑ i dt = 0.1(ϑ i ϑ o ) dc dt = 0.0c (ϑ i 19 c 0.04) ϑ o = ϑ o ) ( on on dϑ i target = (c > 0.1) dt = ϑ i + 0.1ϑ o dc dt = c ϑ i 21 ϑ o = ϑ o ) Bounded Model Checking (BMC): Check satisfiabilit of SMT formula Φ k := init( 0 ) trans( 0, 1 ) trans( k 1, k ) target( k ) 4c/1

7 SAT Modulo Theories Formulae Bounded Model Checking (BMC): Check satisfiabilit of SMT formula Φ k := init( 0 ) trans( 0, 1 ) trans( k 1, k ) target( k ) Boolean combination of potentiall non-linear arithmetic atoms (including transcendental functions and ODEs) over the reals Goal: Determine whether or not there is a satisfing valuation for the variables of this formula Undecidable problem, i.e. method will necessaril be incomplete /1

8 Semantics (intuitive) A valuation satisfies an ODE constraint trajector (solution of the ODE) connecting valuations i and i+1 valuation of i+1 valuation of i 2 = 7 time d dt = 2 1 = 4 t 2 t 1 = 1. 6/1

9 Semantics (more formal) Given an ODE constraint c : d dt (t) = f( ), the valuation v of two successive BMC instances v( i ) and v( i+1 ) satisfies c iff there eists a function : t (t) such that (0) = v( i ) (correct starting point), there eists a point of time τ such that (τ) = v( i+1 ) (correct ending point), and for all t [0, τ] : d dt (t) = f( ) (correct slope in between). 7/1

10 The isat Algorithm in a Nutshell Generalization of DPLL solving manipulating interval bounds [3, 7], [ 2, 2] Deductions: prune off definite non-solutions - Unit propagation: ( > 8 = 2 ) - Interval constraint propagation: Decisions: Split interval (e.g. at its midpoint), propagate resulting bound Conflict-driven Learning: - Deduction can ield empt bo - Learn reasons from implication graph (conflict clause) - Jump back undoing decisions Termination: Stop search when - unresolvable conflict is found or - reasonabl small conflict-free bo found = = Use optimizations from propositional SAT (backjumps, two-watched literal scheme, isomorph inference, restarts,... ) 8a/1

11 The isat Algorithm in a Nutshell Generalization of DPLL solving manipulating interval bounds [3, 7], [ 2, 2] Deductions: prune off definite non-solutions - Unit propagation: ( > 8 = 2 ) - Interval constraint propagation: Decisions: Split interval (e.g. at its midpoint), propagate resulting bound Conflict-driven Learning: - Deduction can ield empt bo Add - Learn a similar reasons deduction from implication mechanism graph for(conflict ODEs that clause) - Jump - works backwith undoing intervals, decisions Goal: Handle ODEs directl Termination: - prunes off definite non-solutions, Stop search and when - unresolvable - safel keeps conflict all solutions. is found or - reasonabl Enclosuresmall mechanism conflict-free for ODEs bo found = = Use optimizations from propositional SAT (backjumps, two-watched literal scheme, isomorph inference, restarts,... ) 8b/1

12 ODE Enclosures as Propagators forward propagation backward propagation (2) postbo prebo (1) time of interest horizon /1

13 Safe Enclosures of ODEs Euler s method: Numerical approimation Euler s method: Numerical approimation t t a/1

14 Safe Enclosures of ODEs Euler s method: Numerical approimation Talor series Talor series Slope of unknown eact solution: d (t) = f((t)) dt Talor epansion of eact solution: (t0 + h) =(t0) + h1 d (t0) (EULER S METHOD) 1! dt + h2 d 2 (t0) ! dt2 + hn d n n! dt (t0) n (LAGRANGE REMAINDER) + hn+1 d n+1 (t0 + θh), with 0 < θ < 1 (n + 1)! dtn+1 t Slope of unknown eact solution: d (t) = f((t)) dt Talor epansion of eact solution: (t 0 + h) =(t 0 ) + h1 1! + h2 2! + hn n! + hn+1 (n + 1)! d dt (t 0) (EULER S METHOD) d 2 dt (t 0) d n dt (t 0) n (LAGRANGE REMAINDER) d n+1 dt (t n θh), with 0 < θ < 1 b/1

15 Safe Enclosures of ODEs Euler s method: Numerical approimation Error enclosures using bounding bo Talor series Slope of unknown eact solution: d (t) = f((t)) dt Talor epansion of eact solution: (t0 + h) =(t0) + h1 d (t0) (EULER S METHOD) 1! dt + h2 d 2 (t0) ! dt2 + hn d n n! dt (t0) n (LAGRANGE REMAINDER) + hn+1 d n+1 (t0 + θh), with 0 < θ < 1 (n + 1)! dtn+1 Error enclosures using bounding bo h n+1 d n+1 (t0 + θh) (n + 1)! dt, with 0 < θ < 1 n+1 }{{} - Value of (n + 1)-th derivative of unknown function at unknown position. - Need bounds for the (n + 1)-th derivative of an unknown function for a known interval. - Need bounds for the (n)-th derivative of f(1,...,n) for an unknown bo. Need bo which encloses eact solution. t h n+1 (n + 1)! d n+1 dt (t n θh), with 0 < θ < 1 }{{} - Value of (n + 1)-th derivative of unknown function at unknown position. - Need bounds for the (n + 1)-th derivative of an unknown function for a known interval. - Need bounds for the (n)-th derivative of f( 1,..., n ) for an unknown bo. Need bo which encloses eact solution. c/1

16 u2 u1 Safe Enclosures of ODEs Euler s method: Numerical approimation t Wrapping effect & coordinate transformation Talor series Slope of unknown eact solution: d (t) = f((t)) dt Talor epansion of eact solution: (t0 + h) =(t0) + h1 d (t0) (EULER S METHOD) 1! dt + h2 d 2 (t0) ! dt2 + hn d n n! dt (t0) n (LAGRANGE REMAINDER) + hn+1 d n+1 (t0 + θh), with 0 < θ < 1 (n + 1)! dtn+1 u 2 q [t, u] p Error enclosures using bounding bo h n+1 d n+1 (t0 + θh) (n + 1)! dt, with 0 < θ < 1 n+1 }{{} [c, d] - Value of (n + 1)-th derivative of unknown function at unknown position. - Need bounds for the (n + 1)-th derivative of an unknown function for a known interval. - Need bounds for the (n)-th derivative of f(1,...,n) for an unknown bo. Need bo which encloses eact solution. [r, s] Wrapping effect & coordinate transformation [c,d] q [t, u] p u 1 [a, b] [r, s] [a, b] d/1

17 u t u t 6 Safe Enclosures of ODEs Euler s method: Numerical approimation Talor series Slope of unknown eact solution: d (t) = f((t)) dt Talor epansion of eact solution: (t0 + h) =(t0) + h1 d (t0) (EULER S METHOD) 1! dt + h2 d 2 (t0) ! dt2 + hn d n n! dt (t0) n (LAGRANGE REMAINDER) + hn+1 d n+1 (t0 + θh), with 0 < θ < 1 (n + 1)! dtn+1 Error enclosures using bounding bo h n+1 d n+1 (t0 + θh) (n + 1)! dt, with 0 < θ < 1 n+1 }{{} - Value of (n + 1)-th derivative of unknown function at unknown position. - Need bounds for the (n + 1)-th derivative of an unknown function for a known interval. - Need bounds for the (n)-th derivative of f(1,...,n) for an unknown bo. Need bo which encloses eact solution. Wrapping effect & coordinate transformation q [t, u] t p Enclosure over intervals of time t t 6 [c,d] [r, s] [a, b] Enclosure over intervals of time 11 e/1

18 u t u t 6 Safe Enclosures of ODEs Euler s method: Numerical approimation Talor series Slope of unknown eact solution: d (t) = f((t)) dt Talor epansion of eact solution: (t0 + h) =(t0) + h1 d (t0) (EULER S METHOD) 1! dt + h2 d 2 (t0) ! dt2 + hn d n n! dt (t0) n (LAGRANGE REMAINDER) + hn+1 d n+1 (t0 + θh), with 0 < θ < 1 (n + 1)! dtn+1 Error enclosures using bounding bo h n+1 d n+1 (t0 + θh) (n + 1)! dt, with 0 < θ < 1 n+1 }{{} - Value of (n + 1)-th derivative of unknown function at unknown position. - Need bounds for the (n + 1)-th derivative of an unknown function for a known interval. - Need bounds for the (n)-th derivative of f(1,...,n) for an unknown bo. Need bo which encloses eact solution. Wrapping effect & coordinate transformation [c,d] [a, b] Enclosure over intervals of time 11 q [t, u] [r, s] t p Essentiall using method described b Moore, Lohner, Stauning: Determine rough first enclosure (bounding bo) Use Talor series and remainder term evaluation over bounding bo for tighter enclosure Use interval evaluation to enclose trajectories over intervals of time Use coordinate transformations to avoid wrapping effect f/1

19 Using the ODE Enclosures initial postbo t 14 11a/1

20 Using the ODE Enclosures tightened postbo and TOI initial postbo t 14 11b/1

21 Integrated Algorithm (Eample) ( > ) ( 28 a) ( a d dt = 3 20 a {0, 1}, 1 [, 20], 2 [, 7], [0, 30] (3 )) a/1

22 Integrated Algorithm (Eample) ( > ) ( 28 a) ( a d dt = 3 20 a {0, 1}, 1 [, 20], 2 [, 7], [0, 30] (3 )) b/1

23 Integrated Algorithm (Eample) ( > ) ( 28 a) ( a d dt = 3 20 a {0, 1}, 1 [, 20], 2 [, 7], [0, 27] (3 )) < 30 < > 1 [, 20] 2 [, 7] < c/1

24 Integrated Algorithm (Eample) ( > ) ( 28 a) ( a d dt = 3 20 a {0, 1}, 1 [, 20], 2 [, 7], [0, 27] (3 )) d/1

25 Integrated Algorithm (Eample) ( > ) ( 28 a ) ( a d dt = 3 20 a { 1}, 1 [, 20], 2 [, 7], [0, 27] (3 )) e/1

26 Integrated Algorithm (Eample) ( > ) ( 28 a) ( a d dt = 3 20 a { 1}, 1 [, 20], 2 [, 7], [0, 27] (3 )) f/1

27 Integrated Algorithm (Eample) ( > ) ( 28 a) ( a d dt = 3 20 a { 1}, 1 [, 20], 2 [3, 7], [0, 27] (3 ) ) g/1

28 Integrated Algorithm ODE deductions can ield new bounds for variables... which can be propagated b the other deduction mechanisms... which can cause conflicts... reasons for conflicts can be added as conflict clauses ODE deductions are wa more epensive Heuristics: Run ODE deductions after other deductions 13/1

29 First Benchmark Results Fehnker s room heating benchmark : Two heaters, three rooms, fied initial temperature, reach a temperature below threshold runtime in seconds number of conflicts 97% of this time spent with enclosing ODEs! BMC unwinding depth Throwing too man results awa on backtracking. 14/1

30 Conclusions & Future Work Directl use ODE enclosures as propagation method within DPLL-based arithmetic constraint solving Implemented first prototpe using Lohner s method as enclosure method (coordinate transformation in general onl effective for linear ODEs) Other enclosure methods possible: e.g. Talor models [Makino, Berz] (fight wrapping effect for non-linear cases) Benchmark results: Need to improve persistent learning of results Using cheaper knowledge (monotonicit, stabilit) as redundant encodings ma reduce number of necessar enclosures 1/1

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing

More information

Satisfiability Modulo Theories

Satisfiability Modulo Theories Satisfiability Modulo Theories Bruno Dutertre SRI International Leonardo de Moura Microsoft Research Satisfiability a > b + 2, a = 2c + 10, c + b 1000 SAT a = 0, b = 3, c = 5 Model 0 > 3 + 2, 0 = 2 5 +

More information

From SAT To SMT: Part 1. Vijay Ganesh MIT

From SAT To SMT: Part 1. Vijay Ganesh MIT From SAT To SMT: Part 1 Vijay Ganesh MIT Software Engineering & SMT Solvers An Indispensable Tactic for Any Strategy Formal Methods Program Analysis SE Goal: Reliable/Secure Software Automatic Testing

More information

Set- membership es-ma-on of hybrid dynamical systems.

Set- membership es-ma-on of hybrid dynamical systems. Set- membership es-ma-on of hybrid dynamical systems. Towards model- based FDI for hybrid systems Prof. Nacim RAMDANI Université d Orléans, Bourges. France. nacim.ramdani@univ- orleans.fr!! ECC14 Pre-

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

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

Satisfiability Modulo Theories (SMT)

Satisfiability Modulo Theories (SMT) Satisfiability Modulo Theories (SMT) Sylvain Conchon Cours 7 / 9 avril 2014 1 Road map The SMT problem Modern efficient SAT solvers CDCL(T) Examples of decision procedures: equality (CC) and difference

More information

Logical Agents. Chapter 7

Logical Agents. Chapter 7 Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber 15-414 Aug 31, 2011 Why study SAT solvers? Many problems reduce to SAT. Formal verification CAD, VLSI Optimization AI, planning, automated

More information

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson SAT Solving 1 / 36 Review: Propositional

More information

Engineering Constraint Solvers for the Automatic Analysis of Hybrid Systems

Engineering Constraint Solvers for the Automatic Analysis of Hybrid Systems Engineering Constraint Solvers for the Automatic Analysis of Hybrid Systems Martin Fränzle 1 with results, slides, L A TEX source, etc., by Andreas Eggers 2 Christian Herde 2 Tino Teige 2 Nacim Ramdani

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 8. Satisfiability and Model Construction Davis-Putnam-Logemann-Loveland Procedure, Phase Transitions, GSAT Joschka Boedecker and Wolfram Burgard and Bernhard Nebel

More information

Initial Value Problems for. Ordinary Differential Equations

Initial Value Problems for. Ordinary Differential Equations Initial Value Problems for Ordinar Differential Equations INTRODUCTION Equations which are composed of an unnown function and its derivatives are called differential equations. It becomes an initial value

More information

Lecture Notes on SAT Solvers & DPLL

Lecture Notes on SAT Solvers & DPLL 15-414: Bug Catching: Automated Program Verification Lecture Notes on SAT Solvers & DPLL Matt Fredrikson André Platzer Carnegie Mellon University Lecture 10 1 Introduction In this lecture we will switch

More information

Solving SAT Modulo Theories

Solving SAT Modulo Theories Solving SAT Modulo Theories R. Nieuwenhuis, A. Oliveras, and C.Tinelli. Solving SAT and SAT Modulo Theories: from an Abstract Davis-Putnam-Logemann-Loveland Procedure to DPLL(T) Mooly Sagiv Motivation

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional

More information

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 10, 5/9/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Logical Agents Chapter 7

More information

Topics in Model-Based Reasoning

Topics in Model-Based Reasoning Towards Integration of Proving and Solving Dipartimento di Informatica Università degli Studi di Verona Verona, Italy March, 2014 Automated reasoning Artificial Intelligence Automated Reasoning Computational

More information

Satisfiability Modulo Theories

Satisfiability Modulo Theories Satisfiability Modulo Theories Summer School on Formal Methods Menlo College, 2011 Bruno Dutertre and Leonardo de Moura bruno@csl.sri.com, leonardo@microsoft.com SRI International, Microsoft Research SAT/SMT

More information

Intelligent Agents. Pınar Yolum Utrecht University

Intelligent Agents. Pınar Yolum Utrecht University Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in

More information

NONLINEAR DYNAMICS AND CHAOS. Numerical integration. Stability analysis

NONLINEAR DYNAMICS AND CHAOS. Numerical integration. Stability analysis LECTURE 3: FLOWS NONLINEAR DYNAMICS AND CHAOS Patrick E McSharr Sstems Analsis, Modelling & Prediction Group www.eng.o.ac.uk/samp patrick@mcsharr.net Tel: +44 83 74 Numerical integration Stabilit analsis

More information

Efficient Solving of Large Non-linear Arithmetic Constraint Systems with Complex Boolean Structure

Efficient Solving of Large Non-linear Arithmetic Constraint Systems with Complex Boolean Structure Journal on Satisfiability, Boolean Modeling and Computation (2007) Efficient Solving of Large Non-linear Arithmetic Constraint Systems with Complex Boolean Structure Martin Fränzle Christian Herde Tino

More information

Foundations of Databases

Foundations of Databases Foundations of Databases (Slides adapted from Thomas Eiter, Leonid Libkin and Werner Nutt) Foundations of Databases 1 Quer optimization: finding a good wa to evaluate a quer Queries are declarative, and

More information

Lessons from MIP Search. John Hooker Carnegie Mellon University November 2009

Lessons from MIP Search. John Hooker Carnegie Mellon University November 2009 Lessons from MIP Search John Hooker Carnegie Mellon University November 2009 Outline MIP search The main ideas Duality and nogoods From MIP to AI (and back) Binary decision diagrams From MIP to constraint

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 32. Propositional Logic: Local Search and Outlook Martin Wehrle Universität Basel April 29, 2016 Propositional Logic: Overview Chapter overview: propositional logic

More information

Binary Decision Diagrams

Binary Decision Diagrams Binar Decision Diagrams Ma 3, 2004 1 Overview Boolean functions Possible representations Binar decision trees Binar decision diagrams Ordered binar decision diagrams Reduced ordered binar decision diagrams

More information

Ordinary Differential Equations n

Ordinary Differential Equations n Numerical Analsis MTH63 Ordinar Differential Equations Introduction Talor Series Euler Method Runge-Kutta Method Predictor Corrector Method Introduction Man problems in science and engineering when formulated

More information

AVACS Automatic Verification and Analysis of Complex Systems REPORTS. of SFB/TR 14 AVACS. Editors: Board of SFB/TR 14 AVACS

AVACS Automatic Verification and Analysis of Complex Systems REPORTS. of SFB/TR 14 AVACS. Editors: Board of SFB/TR 14 AVACS AVACS Technical Report No. 34 January 2008 ISSN: 1860-9821 AVACS Automatic Verification and Analysis of Complex Systems REPORTS of SFB/TR 14 AVACS Editors: Board of SFB/TR 14 AVACS Conflict Analysis and

More information

An instance of SAT is defined as (X, S)

An instance of SAT is defined as (X, S) SAT: Propositional Satisfiability 22c:45 Artificial Intelligence Russell & Norvig, Ch. 7.6 Validity vs. Satisfiability Validity: A sentence is valid if it is true in every interpretation (every interpretation

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.6-7.8)

More information

Math 214 Spring problem set (a) Consider these two first order equations. (I) dy dx = x + 1 dy

Math 214 Spring problem set (a) Consider these two first order equations. (I) dy dx = x + 1 dy Math 4 Spring 08 problem set. (a) Consider these two first order equations. (I) d d = + d (II) d = Below are four direction fields. Match the differential equations above to their direction fields. Provide

More information

Introduction Algorithms Applications MINISAT. Niklas Sörensson Chalmers University of Technology and Göteborg University

Introduction Algorithms Applications MINISAT. Niklas Sörensson Chalmers University of Technology and Göteborg University SAT ALGORITHMS AND APPLICATIONS nik@cschalmersse Chalmers University of Technology and Göteborg University Empirically Successful Classical Automated Reasoning a CADE-20 Workshop 22nd - 23th July, 2005

More information

Course An Introduction to SAT and SMT. Cap. 2: Satisfiability Modulo Theories

Course An Introduction to SAT and SMT. Cap. 2: Satisfiability Modulo Theories Course An Introduction to SAT and SMT Chapter 2: Satisfiability Modulo Theories Roberto Sebastiani DISI, Università di Trento, Italy roberto.sebastiani@unitn.it URL: http://disi.unitn.it/rseba/didattica/sat_based18/

More information

(2.5) 1. Solve the following compound inequality and graph the solution set.

(2.5) 1. Solve the following compound inequality and graph the solution set. Intermediate Algebra Practice Final Math 0 (7 th ed.) (Ch. -) (.5). Solve the following compound inequalit and graph the solution set. 0 and and > or or (.7). Solve the following absolute value inequalities.

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

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

Planning Graphs and Knowledge Compilation

Planning Graphs and Knowledge Compilation Planning Graphs and Knowledge Compilation Héctor Geffner ICREA and Universitat Pompeu Fabra Barcelona, SPAIN 6/2004 Hector Geffner, Planning Graphs and Knowledge Compilation, 6/2004 1 Planning as SAT (Kautz

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

Classical Propositional Logic

Classical Propositional Logic Classical Propositional Logic Peter Baumgartner http://users.cecs.anu.edu.au/~baumgart/ Ph: 02 6218 3717 Data61/CSIRO and ANU July 2017 1 / 71 Classical Logic and Reasoning Problems A 1 : Socrates is a

More information

CHAPTER 2: Partial Derivatives. 2.2 Increments and Differential

CHAPTER 2: Partial Derivatives. 2.2 Increments and Differential CHAPTER : Partial Derivatives.1 Definition of a Partial Derivative. Increments and Differential.3 Chain Rules.4 Local Etrema.5 Absolute Etrema 1 Chapter : Partial Derivatives.1 Definition of a Partial

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

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT I LL TALK ABOUT Propositional Logic Terminology, Satisfiability, Decision Procedure First-Order Logic Terminology, Background Theories Satisfiability

More information

Integrating ICP and LRA Solvers for Deciding Nonlinear Real Arithmetic Problems

Integrating ICP and LRA Solvers for Deciding Nonlinear Real Arithmetic Problems Integrating ICP and LRA Solvers for Deciding Nonlinear Real Arithmetic Problems Sicun Gao 1,2, Malay Ganai 1, Franjo Ivančić 1, Aarti Gupta 1, Sriram Sankaranarayanan 3, and Edmund M. Clarke 2 1 NEC Labs

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

Machine Learning and Logic: Fast and Slow Thinking

Machine Learning and Logic: Fast and Slow Thinking Machine Learning and Logic: Fast and Slow Thinking Moshe Y. Vardi Rice University Is Computer Science Fundamentally Changing? Formal Science vs Data Science We are at peak hype about machine learning and

More information

Heuristics for Efficient SAT Solving. As implemented in GRASP, Chaff and GSAT.

Heuristics for Efficient SAT Solving. As implemented in GRASP, Chaff and GSAT. Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT. Formulation of famous problems as SAT: k-coloring (1/2) The K-Coloring problem: Given an undirected graph G(V,E) and a natural

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Propositional logic. Programming and Modal Logic

Propositional logic. Programming and Modal Logic Propositional logic Programming and Modal Logic 2006-2007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness

More information

Foundations of Lazy SMT and DPLL(T)

Foundations of Lazy SMT and DPLL(T) Foundations of Lazy SMT and DPLL(T) Cesare Tinelli The University of Iowa Foundations of Lazy SMT and DPLL(T) p.1/86 Acknowledgments: Many thanks to Albert Oliveras for contributing some of the material

More information

CS:4420 Artificial Intelligence

CS:4420 Artificial Intelligence CS:4420 Artificial Intelligence Spring 2018 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart

More information

Logical Agents. Outline

Logical Agents. Outline Logical Agents *(Chapter 7 (Russel & Norvig, 2004)) Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability

More information

= 1 2 x (x 1) + 1 {x} (1 {x}). [t] dt = 1 x (x 1) + O (1), [t] dt = 1 2 x2 + O (x), (where the error is not now zero when x is an integer.

= 1 2 x (x 1) + 1 {x} (1 {x}). [t] dt = 1 x (x 1) + O (1), [t] dt = 1 2 x2 + O (x), (where the error is not now zero when x is an integer. Problem Sheet,. i) Draw the graphs for [] and {}. ii) Show that for α R, α+ α [t] dt = α and α+ α {t} dt =. Hint Split these integrals at the integer which must lie in any interval of length, such as [α,

More information

IntSat: From SAT to Integer Linear Programming

IntSat: From SAT to Integer Linear Programming IntSat: From SAT to Integer Linear Programming CPAIOR 2015 (invited talk) Robert Nieuwenhuis Barcelogic.com - Computer Science Department BarcelonaTech (UPC) 1 Proposed travel arrangements (next time):

More information

Towards Understanding and Harnessing the Potential of Clause Learning

Towards Understanding and Harnessing the Potential of Clause Learning Journal of Artificial Intelligence Research 22 (2004) 319-351 Submitted 12/03; published 12/04 Towards Understanding and Harnessing the Potential of Clause Learning Paul Beame Henry Kautz Ashish Sabharwal

More information

Introduction to Artificial Intelligence. Logical Agents

Introduction to Artificial Intelligence. Logical Agents Introduction to Artificial Intelligence Logical Agents (Logic, Deduction, Knowledge Representation) Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Knowledge-based

More information

Propositional Logic: Evaluating the Formulas

Propositional Logic: Evaluating the Formulas Institute for Formal Models and Verification Johannes Kepler University Linz VL Logik (LVA-Nr. 342208) Winter Semester 2015/2016 Propositional Logic: Evaluating the Formulas Version 2015.2 Armin Biere

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

Introduction to Differential Equations. National Chiao Tung University Chun-Jen Tsai 9/14/2011

Introduction to Differential Equations. National Chiao Tung University Chun-Jen Tsai 9/14/2011 Introduction to Differential Equations National Chiao Tung Universit Chun-Jen Tsai 9/14/011 Differential Equations Definition: An equation containing the derivatives of one or more dependent variables,

More information

Contents: V.1 Ordinary Differential Equations - Basics

Contents: V.1 Ordinary Differential Equations - Basics Chapter V ODE V. ODE Basics V. First Order Ordinar Differential Equations September 4, 7 35 CHAPTER V ORDINARY DIFFERENTIAL EQUATIONS Contents: V. Ordinar Differential Equations - Basics V. st Order Ordinar

More information

Slopes and Rates of Change

Slopes and Rates of Change Slopes and Rates of Change If a particle is moving in a straight line at a constant velocity, then the graph of the function of distance versus time is as follows s s = f(t) t s s t t = average velocity

More information

Propositional Logic: Methods of Proof. Chapter 7, Part II

Propositional Logic: Methods of Proof. Chapter 7, Part II Propositional Logic: Methods of Proof Chapter 7, Part II Inference in Formal Symbol Systems: Ontology, Representation, ti Inference Formal Symbol Systems Symbols correspond to things/ideas in the world

More information

In applications, we encounter many constrained optimization problems. Examples Basis pursuit: exact sparse recovery problem

In applications, we encounter many constrained optimization problems. Examples Basis pursuit: exact sparse recovery problem 1 Conve Analsis Main references: Vandenberghe UCLA): EECS236C - Optimiation methods for large scale sstems, http://www.seas.ucla.edu/ vandenbe/ee236c.html Parikh and Bod, Proimal algorithms, slides and

More information

Constraint Solving for Finite Model Finding in SMT Solvers

Constraint Solving for Finite Model Finding in SMT Solvers myjournal manuscript No. (will be inserted by the editor) Constraint Solving for Finite Model Finding in SMT Solvers Andrew Reynolds Cesare Tinelli Clark Barrett Received: date / Accepted: date Abstract

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

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificial Intelligence Spring 2007 Lecture 8: Logical Agents - I 2/8/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore

More information

The SAT Revolution: Solving, Sampling, and Counting

The SAT Revolution: Solving, Sampling, and Counting The SAT Revolution: Solving, Sampling, and Counting Moshe Y. Vardi Rice University Boolean Satisfiability Boolean Satisfiability (SAT); Given a Boolean expression, using and ( ) or, ( ) and not ( ), is

More information

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that

More information

8. BOOLEAN ALGEBRAS x x

8. BOOLEAN ALGEBRAS x x 8. BOOLEAN ALGEBRAS 8.1. Definition of a Boolean Algebra There are man sstems of interest to computing scientists that have a common underling structure. It makes sense to describe such a mathematical

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

Fast SAT-based Answer Set Solver

Fast SAT-based Answer Set Solver Fast SAT-based Answer Set Solver Zhijun Lin and Yuanlin Zhang and Hector Hernandez Computer Science Department Texas Tech University 2500 Broadway, Lubbock, TX 79409 USA {lin, yzhang, hector}@cs.ttu.edu

More information

Euler s Method applied to the control of switched systems

Euler s Method applied to the control of switched systems Euler s Method applied to the control of switched systems FORMATS 2017 - Berlin Laurent Fribourg 1 September 6, 2017 1 LSV - CNRS & ENS Cachan L. Fribourg Euler s method and switched systems September

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

SAT based BDD solver for Quantified Boolean Formulas

SAT based BDD solver for Quantified Boolean Formulas SAT based BDD solver for Quantified Boolean Formulas Gilles Audemard and Lakhdar Saïs CRIL CNRS Université d Artois rue Jean Souvraz SP-8 F-62307 Lens Cede France {audemard,sais}@cril.univ-artois.fr Abstract

More information

Lecture 2 Propositional Logic & SAT

Lecture 2 Propositional Logic & SAT CS 5110/6110 Rigorous System Design Spring 2017 Jan-17 Lecture 2 Propositional Logic & SAT Zvonimir Rakamarić University of Utah Announcements Homework 1 will be posted soon Propositional logic: Chapter

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

RELATIONS AND FUNCTIONS through

RELATIONS AND FUNCTIONS through RELATIONS AND FUNCTIONS 11.1.2 through 11.1. Relations and Functions establish a correspondence between the input values (usuall ) and the output values (usuall ) according to the particular relation or

More information

Computational Methods CMSC/AMSC/MAPL 460. Ordinary differential equations

Computational Methods CMSC/AMSC/MAPL 460. Ordinary differential equations Computational Methods CMSC/AMSC/MAPL 460 Ordinar differential equations Ramani Duraiswami, Dept. of Computer Science Several slides adapted from Prof. ERIC SANDT, TAMU ODE: Previous class Standard form

More information

Conservative fields and potential functions. (Sect. 16.3) The line integral of a vector field along a curve.

Conservative fields and potential functions. (Sect. 16.3) The line integral of a vector field along a curve. onservative fields and potential functions. (Sect. 16.3) eview: Line integral of a vector field. onservative fields. The line integral of conservative fields. Finding the potential of a conservative field.

More information

Exact Differential Equations. The general solution of the equation is f x, y C. If f has continuous second partials, then M y 2 f

Exact Differential Equations. The general solution of the equation is f x, y C. If f has continuous second partials, then M y 2 f APPENDIX C Additional Topics in Differential Equations APPENDIX C. Eact First-Order Equations Eact Differential Equations Integrating Factors Eact Differential Equations In Chapter 6, ou studied applications

More information

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT 1 Algebraic Methods In an algebraic system Boolean constraints are expressed as a system of algebraic equations or inequalities which has a solution if and only if the constraints are satisfiable. Equations

More information

Interval Methods and Taylor Model Methods for ODEs

Interval Methods and Taylor Model Methods for ODEs Interval Methods and Taylor Model Methods for ODEs Markus Neher, Dept. of Mathematics KARLSRUHE INSTITUTE OF TECHNOLOGY (KIT) 0 TM VII, Key West KIT University of the State of Baden-Wuerttemberg and Interval

More information

Deliberative Agents Knowledge Representation I. Deliberative Agents

Deliberative Agents Knowledge Representation I. Deliberative Agents Deliberative Agents Knowledge Representation I Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/

More information

Logical Agents. Chapter 7

Logical Agents. Chapter 7 Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

Introduction to SAT (constraint) solving. Justyna Petke

Introduction to SAT (constraint) solving. Justyna Petke Introduction to SAT (constraint) solving Justyna Petke SAT, SMT and CSP solvers are used for solving problems involving constraints. The term constraint solver, however, usually refers to a CSP solver.

More information

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World School of Informatics, University of Edinburgh 26/01/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Outline Knowledge-based

More information

Warm-Up Problem. Is the following true or false? 1/35

Warm-Up Problem. Is the following true or false? 1/35 Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,

More information

5.4 dividing POlynOmIAlS

5.4 dividing POlynOmIAlS SECTION 5.4 dividing PolNomiAls 3 9 3 learning ObjeCTIveS In this section, ou will: Use long division to divide polnomials. Use snthetic division to divide polnomials. 5.4 dividing POlnOmIAlS Figure 1

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2016/17 (slides based on Stuart Russell s AI course) Motivation: Most students will have learnt about propositional

More information

MA2264 -NUMERICAL METHODS UNIT V : INITIAL VALUE PROBLEMS FOR ORDINARY DIFFERENTIAL. By Dr.T.Kulandaivel Department of Applied Mathematics SVCE

MA2264 -NUMERICAL METHODS UNIT V : INITIAL VALUE PROBLEMS FOR ORDINARY DIFFERENTIAL. By Dr.T.Kulandaivel Department of Applied Mathematics SVCE MA64 -NUMERICAL METHODS UNIT V : INITIAL VALUE PROBLEMS FOR ORDINARY DIFFERENTIAL EQUATIONS B Dr.T.Kulandaivel Department of Applied Matematics SVCE Numerical ordinar differential equations is te part

More information

Artificial Intelligence

Artificial Intelligence Torralba and Wahlster Artificial Intelligence Chapter 11: Propositional Reasoning, Part II 1/69 Artificial Intelligence 11. Propositional Reasoning, Part II: SAT Solvers How to Efficiently Think About

More information

Logical agents. Chapter 7. Chapter 7 1

Logical agents. Chapter 7. Chapter 7 1 Logical agents Chapter 7 Chapter 7 1 Outline Knowledge-based agents Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

Systems of Linear Equations: Solving by Graphing

Systems of Linear Equations: Solving by Graphing 8.1 Sstems of Linear Equations: Solving b Graphing 8.1 OBJECTIVE 1. Find the solution(s) for a set of linear equations b graphing NOTE There is no other ordered pair that satisfies both equations. From

More information

Solving SAT and SAT Modulo Theories: From an Abstract Davis Putnam Logemann Loveland Procedure to DPLL(T)

Solving SAT and SAT Modulo Theories: From an Abstract Davis Putnam Logemann Loveland Procedure to DPLL(T) Solving SAT and SAT Modulo Theories: From an Abstract Davis Putnam Logemann Loveland Procedure to DPLL(T) ROBERT NIEUWENHUIS AND ALBERT OLIVERAS Technical University of Catalonia, Barcelona, Spain AND

More information

Second-Order Linear Differential Equations C 2

Second-Order Linear Differential Equations C 2 C8 APPENDIX C Additional Topics in Differential Equations APPENDIX C. Second-Order Homogeneous Linear Equations Second-Order Linear Differential Equations Higher-Order Linear Differential Equations Application

More information

Functions of Several Variables

Functions of Several Variables Chapter 1 Functions of Several Variables 1.1 Introduction A real valued function of n variables is a function f : R, where the domain is a subset of R n. So: for each ( 1,,..., n ) in, the value of f is

More information

Validated Explicit and Implicit Runge-Kutta Methods

Validated Explicit and Implicit Runge-Kutta Methods Validated Explicit and Implicit Runge-Kutta Methods Alexandre Chapoutot joint work with Julien Alexandre dit Sandretto and Olivier Mullier U2IS, ENSTA ParisTech 8th Small Workshop on Interval Methods,

More information

4 The Cartesian Coordinate System- Pictures of Equations

4 The Cartesian Coordinate System- Pictures of Equations The Cartesian Coordinate Sstem- Pictures of Equations Concepts: The Cartesian Coordinate Sstem Graphs of Equations in Two Variables -intercepts and -intercepts Distance in Two Dimensions and the Pthagorean

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

Test Automation for Hybrid Systems

Test Automation for Hybrid Systems Test Automation for Hybrid Systems Bahareh Badban Department of Computing Science C. v. Ossietzky Universität, Oldenburg, Germany Bahareh.Badban@uni-oldenburg.de Jan Peleska TZI Center for Computer Technologies

More information

C. Non-linear Difference and Differential Equations: Linearization and Phase Diagram Technique

C. Non-linear Difference and Differential Equations: Linearization and Phase Diagram Technique C. Non-linear Difference and Differential Equations: Linearization and Phase Diaram Technique So far we have discussed methods of solvin linear difference and differential equations. Let us now discuss

More information