SMT Solving for Nonlinear Theories over the Reals Edmund M. Clarke School of Computer Science Carnegie Mellon University
Joint Work with Sicun Gao, Soonho Kong, and Jeremy Avigad Special thanks to Lenore Blum for her insightful comments.
1/40
SMT Solving for Nonlinear Theories over the Reals Edmund M. Clarke - - PowerPoint PPT Presentation
SMT Solving for Nonlinear Theories over the Reals Edmund M. Clarke School of Computer Science Carnegie Mellon University Joint Work with Sicun Gao, Soonho Kong, and Jeremy Avigad Special thanks to Lenore Blum for her insightful comments. 1/40
1/40
2/40
◮ Often time consuming or needs manual intervention. ◮ Sometimes, no space efficient variable ordering exists.
3/40
4/40
5/40
6/40
7/40
8/40
9/40
10/40
11/40
◮ E is the existential path quantifier, and ◮ f is a temporal formula with no path quantifiers.
12/40
◮ S is a finite set of states and I a set of initial states, ◮ T ⊆ S × S is the transition relation,
◮ ℓ: S → P(A) is the state labeling.
13/40
~ Start ~ Close ~ Heat ~ Error Start ~ Close ~ Heat Error ~ Start Close ~ Heat ~ Error ~ Start Close Heat ~ Error Start Close Heat ~ Error Start Close ~ Heat ~ Error Start Close ~ Heat Error
14/40
◮ fI(s) iff s ∈ I, ◮ fT (s, t) iff (s, t) ∈ T, and ◮ fp(s) iff p ∈ ℓ(s).
15/40
16/40
◮ State s is reachable in j steps:
◮ Thus, k is greater or equal than the diameter d if
17/40
18/40
◮ Reachability for simple systems is undecidable. ◮ Existing tools do not scale on realistic systems.
19/40
◮ Each mode q is equipped with differential equations d
◮ The system can be switched from (q,
20/40
21/40
◮ The solution curve:
◮ Define the predicate
◮ ∃
22/40
k, t. [Reachk(
k) ∧ Flow(
k, t,
23/40
◮ Polynomials ◮ Exponentiation and trigonometric functions ◮ Solutions of ODEs, mostly no closed forms
24/40
25/40
◮ 0.33...,
◮ There are only countably many Turing machines while there
26/40
◮ A. M. Turing, On Computable Numbers with an Application to the
27/40
... ... ...
M . . . k input tapes work tapes
fM(y1, . . . , yk) = y y y1 yk
... ...
. . .
... ...
28/40
◮ exp, sin, ODEs are all Type 2 computable functions.
◮ [Gao, Avigad, Clarke LICS2012, IJCAR2012].
29/40
◮ Inequalities are turned into interval bounds on slack variables.
30/40
31/40
◮ NP-complete for existential formulas in {+, ×, exp, sin, ...}. ◮ PSPACE-complete for existential formulas with ODEs.
32/40
Bad States
Reachable States
Bad States
Reachable States
Bad States
Reachable States
33/40
34/40
35/40
36/40
◮ No existing formal
37/40
38/40
39/40
◮ Completing formal proofs for the Kepler Conjecture ◮ Finding parameters for cancer treatment models ◮ Verifying safety of autonomous vehicles
40/40