Decidability of the Reachability for a Family of Linear Vector - - PowerPoint PPT Presentation

decidability of the reachability for a family of linear
SMART_READER_LITE
LIVE PREVIEW

Decidability of the Reachability for a Family of Linear Vector - - PowerPoint PPT Presentation

Background Reachable Sets of LDSs Decision Procedure for T e Isolating Real Roots of PEFs Evaluation Discussions and Conclusions Decidability of the Reachability for a Family of Linear Vector Fields Ting Gan 1 , Mingshuai Chen 2 , Liyun Dai 1


slide-1
SLIDE 1

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decidability of the Reachability for a Family of Linear Vector Fields

Ting Gan1, Mingshuai Chen2, Liyun Dai1, Bican Xia1, and Naijun Zhan2

1LMAM & School of Mathematical Sciences, Peking University 2State Key Lab. of Computer Science, Institute of Software, Chinese Academy of Sciences

Shanghai, October 2015

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 1 / 37

slide-2
SLIDE 2

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Outline

1

Background

2

Computing Reachable Sets of Linear Dynamics Systems (LDSs) with Inputs

3

Decision Procedure for Te

4

Isolating Real Roots of PEFs

5

Evaluation Results

6

Discussions and Conclusions

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 2 / 37

slide-3
SLIDE 3

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Example : Home Heating

x t = Temperature in the attic, x t = Temperature in the living area, x t = Temperature in the basement, t = Time in hours.

x x x x x x x x x x x x x x

with the initial set X x x x

T

x x x . Is it possible for the temperature x getting over than F (unsafe) ? UNBOUNDED.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 3 / 37

slide-4
SLIDE 4

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Example : Home Heating

x t = Temperature in the attic, x t = Temperature in the living area, x t = Temperature in the basement, t = Time in hours.

x x x x x x x x x x x x x x

with the initial set X x x x

T

x x x . Is it possible for the temperature x getting over than F (unsafe) ? UNBOUNDED.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 3 / 37

slide-5
SLIDE 5

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Example : Home Heating

x3(t) = Temperature in the attic, x2(t) = Temperature in the living area, x1(t) = Temperature in the basement, t = Time in hours.

x x x x x x x x x x x x x x

with the initial set X x x x

T

x x x . Is it possible for the temperature x getting over than F (unsafe) ? UNBOUNDED.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 3 / 37

slide-6
SLIDE 6

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Example : Home Heating

x3(t) = Temperature in the attic, x2(t) = Temperature in the living area, x1(t) = Temperature in the basement, t = Time in hours.

˙ x1 = 1 2 (45 − x1) + 1 2 (x2 − x1), ˙ x2 = 1 2 (x1 − x2) + 1 4 (35 − x2) + 1 4 (x3 − x2) + 20, ˙ x3 = 1 4 (x2 − x3) + 3 4 (35 − x3),

with the initial set X x x x

T

x x x . Is it possible for the temperature x getting over than F (unsafe) ? UNBOUNDED.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 3 / 37

slide-7
SLIDE 7

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Example : Home Heating

x3(t) = Temperature in the attic, x2(t) = Temperature in the living area, x1(t) = Temperature in the basement, t = Time in hours.

˙ x1 = 1 2 (45 − x1) + 1 2 (x2 − x1), ˙ x2 = 1 2 (x1 − x2) + 1 4 (35 − x2) + 1 4 (x3 − x2) + 20, ˙ x3 = 1 4 (x2 − x3) + 3 4 (35 − x3),

with the initial set X = {(x1, x2, x3)T | 1 − (x1 − 45)2 − (x2 − 35)2 − (x3 − 35)2 > 0}. Is it possible for the temperature x getting over than F (unsafe) ? UNBOUNDED.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 3 / 37

slide-8
SLIDE 8

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Example : Home Heating

x3(t) = Temperature in the attic, x2(t) = Temperature in the living area, x1(t) = Temperature in the basement, t = Time in hours.

˙ x1 = 1 2 (45 − x1) + 1 2 (x2 − x1), ˙ x2 = 1 2 (x1 − x2) + 1 4 (35 − x2) + 1 4 (x3 − x2) + 20, ˙ x3 = 1 4 (x2 − x3) + 3 4 (35 − x3),

with the initial set X = {(x1, x2, x3)T | 1 − (x1 − 45)2 − (x2 − 35)2 − (x3 − 35)2 > 0}. Is it possible for the temperature x2 getting over than 70◦F (unsafe) ? UNBOUNDED.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 3 / 37

slide-9
SLIDE 9

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Example : Home Heating

x3(t) = Temperature in the attic, x2(t) = Temperature in the living area, x1(t) = Temperature in the basement, t = Time in hours.

˙ x1 = 1 2 (45 − x1) + 1 2 (x2 − x1), ˙ x2 = 1 2 (x1 − x2) + 1 4 (35 − x2) + 1 4 (x3 − x2) + 20, ˙ x3 = 1 4 (x2 − x3) + 3 4 (35 − x3),

with the initial set X = {(x1, x2, x3)T | 1 − (x1 − 45)2 − (x2 − 35)2 − (x3 − 35)2 > 0}. Is it possible for the temperature x2 getting over than 70◦F (unsafe) ? UNBOUNDED.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 3 / 37

slide-10
SLIDE 10

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Hybrid Systems

Hybrid systems exhibit combinations of discrete jumps and continuous evolution, many of which are Safety-critical.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 4 / 37

slide-11
SLIDE 11

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Safety Verification Using Reachable Sets 

System is safe, if no trajectory enters the unsafe set.

  • 1. The figure is taken from [M. Althoff, 2010].

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 5 / 37

slide-12
SLIDE 12

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Tarski Algebra and Quantifier Elimination

Tarski Algebra (T(R))= real numbers with arithmetic and ordering. Example ϕ := ∀x∃y : x2 + xy + b > 0 ∧ x + ay2 + b ≤ 0 Quantifier Elimination : T = Example T = x y x xy b x ay b a b

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 6 / 37

slide-13
SLIDE 13

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Tarski Algebra and Quantifier Elimination

Tarski Algebra (T(R))= real numbers with arithmetic and ordering. Example ϕ := ∀x∃y : x2 + xy + b > 0 ∧ x + ay2 + b ≤ 0 Quantifier Elimination : T(R) | = ϕ ← → ϕ′ Example T(R) | = ∀x∃y(x2 + xy + b > 0 ∧ x + ay2 + b ≤ 0)

  • ϕ

← → a < 0 ∧ b > 0

  • ϕ′

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 6 / 37

slide-14
SLIDE 14

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Quantifier Elimination

Survey of QE Algorithms Tarski's algorithm [Tarski 51] : the first one, but its complexity is nonelementary, impratical, simplified by Seidenberg [Seidenberg 54]. Collins' algorithm [Collins 76] : based on cylindrical algebraic decomposition (CAD), double exponential in the number of variables, improved by Hoon Hong [Hoon Hong 92] by combining with SAT engine partial cylindrical algebraic decomposition (PCAD), implemented in many computer algebra tools, e.g., QEPCAD,REDLOG, . . .. Ben-Or, Kozen and Reif's algorithm [Ben-Or, Kozen & Reif 86] : double exponential in the number of variables using sequential computation, single exponential using parallel computation, based on Sturm sequence and Sturm Theorem. More efficient algorithms [Grigor'ev & Vorobjov 88, Grigor'ev 88], [Renegar 89], [Heintz, Roy & Solerno 89], [Basu,Pollack & Roy 96] : mainly based on BKR's approach, double exponential in the number of quantifier alternation, no implementation yet.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 7 / 37

slide-15
SLIDE 15

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Tarski's Conjecture (TC)

Whether the extension of TA with exponentiation is decidable ? TC is still open. In 2008, Strzebonski showed the decidability of

e, the extension of TA with

polynomial exponential functions (PEFs) : f t x

m i

fi t x e

it Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 8 / 37

slide-16
SLIDE 16

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Tarski's Conjecture (TC)

Whether the extension of TA with exponentiation is decidable ? TC is still open. In 2008, Strzebonski showed the decidability of

e, the extension of TA with

polynomial exponential functions (PEFs) : f t x

m i

fi t x e

it Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 8 / 37

slide-17
SLIDE 17

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Tarski's Conjecture (TC)

Whether the extension of TA with exponentiation is decidable ? TC is still open. In 2008, Strzebonski showed the decidability of Te, the extension of TA with polynomial exponential functions (PEFs) : f(t, x) =

m

i=0

fi(t, x)eλit

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 8 / 37

slide-18
SLIDE 18

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

LDSs with Inputs

Linear dymamical systems (LDSs) with inputs are differential equations of the form ˙ ξ = Aξ + u, (1) where ξ(t) ∈ Rn, A ∈ Rn×n, and u : R → Rn is a continuous function vector which is called the input. The forward reachable set : Post X y

n

x t x X t x t y (2) Reachability problem : X Y x y t x X y Y t x t y

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 9 / 37

slide-19
SLIDE 19

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

LDSs with Inputs

Linear dymamical systems (LDSs) with inputs are differential equations of the form ˙ ξ = Aξ + u, (1) where ξ(t) ∈ Rn, A ∈ Rn×n, and u : R → Rn is a continuous function vector which is called the input. The forward reachable set : Post(X) = {y ∈ Rn | ∃x∃t : x ∈ X ∧ t ≥ 0 ∧ Φ(x, t) = y} (2) Reachability problem : X Y x y t x X y Y t x t y

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 9 / 37

slide-20
SLIDE 20

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

LDSs with Inputs

Linear dymamical systems (LDSs) with inputs are differential equations of the form ˙ ξ = Aξ + u, (1) where ξ(t) ∈ Rn, A ∈ Rn×n, and u : R → Rn is a continuous function vector which is called the input. The forward reachable set : Post(X) = {y ∈ Rn | ∃x∃t : x ∈ X ∧ t ≥ 0 ∧ Φ(x, t) = y} (2) Reachability problem : F(X, Y) := ∃x∃y∃t : x ∈ X ∧ y ∈ Y ∧ t ≥ 0 ∧ Φ(x, t) = y.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 9 / 37

slide-21
SLIDE 21

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decidability Results of the Reachability of LDSs

In [LPY 2001], Lafferriere, Pappas and Yovine proved the decidability of the reachability problems of the following three families of LDSs :

1 A is nilpotent, i.e. An = 0, and each component of u is a polynomial ; 2 A is diagonalizable with rational eigenvalues, and each component of u is of the

form ∑m

i=1 cieλit, where λis are rational and cis are subject to semi-algebraic

constraints ;

3 A is diagonalizable with purely imaginary eigenvalues, and each component of u

  • f the form ∑m

i=1 ci sin(λit) + di cos(λit), where λis are rationals and cis and dis

are subject to semi-algebraic constraints.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 10 / 37

slide-22
SLIDE 22

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decidability Results of the Reachability of LDSs

In [LPY 2001], Lafferriere, Pappas and Yovine proved the decidability of the reachability problems of the following three families of LDSs :

1 A is nilpotent, i.e. An = 0, and each component of u is a polynomial ; 2 A is diagonalizable with real eigenvalues, and each component of u is of the form

∑m

i=1 cieλit, where λis are reals and cis are subject to semi-algebraic constraints ;

3 A is diagonalizable with purely imaginary eigenvalues, and each component of u

  • f the form ∑m

i=1 ci sin(λit) + di cos(λit), where λis are rationals and cis and dis

are subject to semi-algebraic constraints.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 11 / 37

slide-23
SLIDE 23

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decidability of the Reachability for a Family of LDSPEF

Definition (LDSPEF) A Family of LDSs with diagonalizable matrices with real eigenvalues, and polynomial-exponential inputs (LDSPEF) : ˙ ξ = Aξ + u, where A = QDQ−1, where D = diag(λ1, · · · , λn), and λ1, · · · , λn ∈ R ; u = (u1, u2, · · · , un)T, ui = ∑ri

k=0 gik(t)eµikt, i = 1, 2, · · · , n

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 12 / 37

slide-24
SLIDE 24

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Computing Reachable Sets

ξ(t) = Φ(x, t) = eAtx + ∫ t eA(t−τ)u(τ)dτ, (3) eAt = eQDQ−1t = Q      eλ1t ... eλnt      Q−1, (4) (eAt)ij =

n

k=1

qikq−

kj eλkt,

(5) (eAtx)i =

n

j=1

(eAt)ijxj =

n

j=1 n

k=1

qikq−

kj xjeλkt

(6) =

n

k=1

(

n

j=1

qikq−

kj xj)eλkt = n

k=1

αik(x)eλkt, (7)

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 13 / 37

slide-25
SLIDE 25

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Computing Reachable Sets

(Φ(x, t))i = ∑n

k=1 αik(x)eλkt + ∑ci j=0 ψij(t)eθijt.

The solution Φ(x, t)i can be reduced to Φ(x, t)i =

si

j=1

φij(x, t)eνijt, Forward Reachable Sets Revisited Post X y x t x X t

n i si j ij x t e ijt

yi

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 14 / 37

slide-26
SLIDE 26

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Computing Reachable Sets

(Φ(x, t))i = ∑n

k=1 αik(x)eλkt + ∑ci j=0 ψij(t)eθijt.

The solution Φ(x, t)i can be reduced to Φ(x, t)i =

si

j=1

φij(x, t)eνijt, Forward Reachable Sets Revisited Post(X) ={y | ∃x∃t : x ∈ X ∧ t ≥ 0 ∧

n

i=1 si

j=1

φij(x, t)eνijt = yi}

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 14 / 37

slide-27
SLIDE 27

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Computing Reachable Sets

The Reachability Revisited Given two semi-algebraic sets X = {x ∈ Rn | p1(x) > 0, · · · , pJ1(x) > 0}, Y = {y ∈ Rn | pJ1+1(y) > 0, · · · , pJ(y) > 0}, F(X, Y) := ∃x∃y∃t : x ∈ X ∧ y ∈ Y ∧ t ≥ 0 ∧

n

i=1 si

j=1

φij(x, t)eνijt = yi (8) Theorem (Decidability of the Reachability of LDSPEF) The reachability problem of LDSPEF is decidable if Te is decidable.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 15 / 37

slide-28
SLIDE 28

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Cylindrical Algebraic Decomposition (CAD) 

∃x1∃x2∃x3 : f1 > 0 ∧ f2 ≥ 0 ∧ f3 > 0 ∧ f4 ≤ 0? f1 = x12 + x22 + x32 − 4 f2 = x12 + x22 − 4 f3 = x1 + 2 f4 = x1 − 2

  • 2. Taken from Thomas Sturm.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 16 / 37

slide-29
SLIDE 29

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Cylindrical Algebraic Decomposition (CAD)

∃x1∃x2∃x3 : f1 > 0 ∧ f2 ≥ 0 ∧ f3 > 0 ∧ f4 ≤ 0? f1 = x12 + x22 + x32 − 4 f2 = x12 + x22 − 4 f3 = x1 + 2 f4 = x1 − 2

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 17 / 37

slide-30
SLIDE 30

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Cylindrical Algebraic Decomposition (CAD)

∃x1∃x2∃x3 : f1 > 0 ∧ f2 ≥ 0 ∧ f3 > 0 ∧ f4 ≤ 0? f1 = x12 + x22 + x32 − 4 f2 = x12 + x22 − 4 f3 = x1 + 2 f4 = x1 − 2

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 18 / 37

slide-31
SLIDE 31

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Cylindrical Algebraic Decomposition (CAD)

∃x1∃x2∃x3 : f1 > 0 ∧ f2 ≥ 0 ∧ f3 > 0 ∧ f4 ≤ 0? f1 = x12 + x22 + x32 − 4 f2 = x12 + x22 − 4 f3 = x1 + 2 f4 = x1 − 2

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 19 / 37

slide-32
SLIDE 32

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decision Procedure for Te

Definition (CAD(openCAD)) For a polynomial f(x1, ..., xn) ∈ R[x1, ..., xn], a CAD (openCAD) defined by f under the

  • rder x1 ≺ x2 ≺ · · · ≺ xn is a set of sample points in Rn obtained through the

following three phases : Projection : Apply CAD (openCAD) projection operator on f to get a set of projection polynomials {fn = f(x1, ..., xn), fn−1(x1, ..., xn−1), . . . , f1(x1)}; Base : Choose a rational point in each of the (open) intervals defined by the real roots of f1 ; Lifting : Substitute each sample point in Ri−1 for (x1, ..., xi−1) in fi to get a univariate polynomial f′

i(xi), and then, as in Base phase, choose

sample points for f′

i (xi). Repeat this process for i from 2 to n.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 20 / 37

slide-33
SLIDE 33

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decision Procedure for Te

Step 1 Check whether X ∩ Y = ∅, if not ⇒ unsafe. Step 2 Translate the problem to an openCAD solvable problem if X and Y are

  • pen sets (otherwise a CAD solvable problem) :

x t

J j

pj x t t Step 3 Eliminate x xn one by one using CAD (openCAD) projection

  • perator on

J j

pj and obtain a set of projection polynomials qn x xn t

J j

pj qn x xn t q t .

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 21 / 37

slide-34
SLIDE 34

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decision Procedure for Te

Step 1 Check whether X ∩ Y = ∅, if not ⇒ unsafe. Step 2 Translate the problem to an openCAD solvable problem if X and Y are

  • pen sets (otherwise a CAD solvable problem) :

F := ∃x∃t

J

j=1

pj(x, t) > 0 ∧ t > 0. Step 3 Eliminate x xn one by one using CAD (openCAD) projection

  • perator on

J j

pj and obtain a set of projection polynomials qn x xn t

J j

pj qn x xn t q t .

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 21 / 37

slide-35
SLIDE 35

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decision Procedure for Te

Step 1 Check whether X ∩ Y = ∅, if not ⇒ unsafe. Step 2 Translate the problem to an openCAD solvable problem if X and Y are

  • pen sets (otherwise a CAD solvable problem) :

F := ∃x∃t

J

j=1

pj(x, t) > 0 ∧ t > 0. Step 3 Eliminate x1, · · · , xn one by one using CAD (openCAD) projection

  • perator on ∏J

j=1 pj and obtain a set of projection polynomials

{qn(x1, . . . , xn, t) = ∏J

j=1 pj, qn−1(x2, . . . , xn, t)}, . . . , q0(t)}.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 21 / 37

slide-36
SLIDE 36

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decision Procedure for Te

Step 4 Isolate the real roots of the resulted PEF q0 based on Rolle's theorem. Step 5 Lift the solution using openCAD or CAD lifting procedure according to the order t xn x based on the projection factor q qn , and obtain a set S of sample points. Step 6 Check if holds by testing if there exists in S such that

J j

pj .

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 22 / 37

slide-37
SLIDE 37

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decision Procedure for Te

Step 4 Isolate the real roots of the resulted PEF q0 based on Rolle's theorem. Step 5 Lift the solution using openCAD or CAD lifting procedure according to the order t, xn, · · · , x1 based on the projection factor {q0, · · · , qn}, and obtain a set S of sample points. Step 6 Check if holds by testing if there exists in S such that

J j

pj .

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 22 / 37

slide-38
SLIDE 38

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Decision Procedure for Te

Step 4 Isolate the real roots of the resulted PEF q0 based on Rolle's theorem. Step 5 Lift the solution using openCAD or CAD lifting procedure according to the order t, xn, · · · , x1 based on the projection factor {q0, · · · , qn}, and obtain a set S of sample points. Step 6 Check if F holds by testing if there exists α in S such that ∧J

j=1pj(α) ▷ 0.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 22 / 37

slide-39
SLIDE 39

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Isolating Real Roots of PEFs

Theorem 1. Let f(t) be a PEF, f′(t) the derivative of f(t) w.r.t. t, I = (a, b) a non-empty open interval, and LI(f′) = {Ij|j = 1, . . . , J} a real root isolation of f′ in I, in which Ij = (aj, bj) with a = b0 < a1 < b1 < · · · < aJ < bJ < aJ+1 = b. Furthermore, there is no real root of f(t) = 0 in any closed interval [aj, bj], 1 ≤ j ≤ J. Then, { (bj, aj+1) | f(bj)f(aj+1) < 0, 0 ≤ j ≤ J } is a real root isolation of f(t) = 0 in I. Proof. Attributes to Rolle's theorem (cf. differential mean value theorem).

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 23 / 37

slide-40
SLIDE 40

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Basic Idea

Example (A Running Example) f(t) = t + 1 + e

√ 2t − (t + 2)e √ 5t

Step 1 Computing Lower and Upper Bounds : L f U f

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 24 / 37

slide-41
SLIDE 41

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Basic Idea

Example (A Running Example) f(t) = t + 1 + e

√ 2t − (t + 2)e √ 5t

Step 1 Computing Lower and Upper Bounds : L(f) = −4, U(f) = 12.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 24 / 37

slide-42
SLIDE 42

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Basic Idea

Step 2 Constructing a sequence of derivatives : S0 = f(t) = t + 1 + e

√ 2t − (t + 2)e √ 5t

S1 = f′(t) = 1 + √ 2e

√ 2t − (

√ 5t + 2 √ 5 + 1)e

√ 5t

f′′(t) = 0 + 2e

√ 2t − (5t + 2

√ 5 + 10)e

√ 5t

S2 = f′′(t)e−

√ 2t = 2 − (5t + 2

√ 5 + 10)e(

√ 5− √ 2)t

S3 = S′

2 = 0 + 0 + he( √ 5− √ 2)t

where h = −(5( √ 5 − √ 2)t + 15 + 10 √ 5 − 2 √ 10 − 10 √ 2). S if and only if h , while the real zeros of h can be easily achieved by any real root isolation procedure for polynomials.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 25 / 37

slide-43
SLIDE 43

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Basic Idea

Step 2 Constructing a sequence of derivatives : S0 = f(t) = t + 1 + e

√ 2t − (t + 2)e √ 5t

S1 = f′(t) = 1 + √ 2e

√ 2t − (

√ 5t + 2 √ 5 + 1)e

√ 5t

f′′(t) = 0 + 2e

√ 2t − (5t + 2

√ 5 + 10)e

√ 5t

S2 = f′′(t)e−

√ 2t = 2 − (5t + 2

√ 5 + 10)e(

√ 5− √ 2)t

S3 = S′

2 = 0 + 0 + he( √ 5− √ 2)t

where h = −(5( √ 5 − √ 2)t + 15 + 10 √ 5 − 2 √ 10 − 10 √ 2). S3 = 0 if and only if h = 0, while the real zeros of h can be easily achieved by any real root isolation procedure for polynomials.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 25 / 37

slide-44
SLIDE 44

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Basic Idea

Step 3 Isolating all real roots of the sequence of derivatives : For h(t) = 0, t = − 15 + 10 √ 5 − 2 √ 10 − 10 √ 2 5( √ 5 − √ 2) ∈ (−5, −4). As , there is no real root of S in . Hence, we have S . S . S . f .

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 26 / 37

slide-45
SLIDE 45

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Basic Idea

Step 3 Isolating all real roots of the sequence of derivatives : For h(t) = 0, t = − 15 + 10 √ 5 − 2 √ 10 − 10 √ 2 5( √ 5 − √ 2) ∈ (−5, −4). As (−5, −4) ∩ (−4, 12) = ∅, there is no real root of S3 = 0 in (−4, 12). Hence, we have L(−4,12)(S3) = ∅. S . S . f .

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 26 / 37

slide-46
SLIDE 46

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Basic Idea

Step 3 Isolating all real roots of the sequence of derivatives : For h(t) = 0, t = − 15 + 10 √ 5 − 2 √ 10 − 10 √ 2 5( √ 5 − √ 2) ∈ (−5, −4). As (−5, −4) ∩ (−4, 12) = ∅, there is no real root of S3 = 0 in (−4, 12). Hence, we have L(−4,12)(S3) = ∅. L(−4,12)(S2) = {(−2, −1)}. L(−4,12)(S1) = {(−0.59375, −0.390625)}. L(−4,12)(f) = {(−4, −0.59375), (−0.390625, 12)}.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 26 / 37

slide-47
SLIDE 47

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Implementation

A prototype in Mathematica, called LinR, which takes a specific LDS reachability problem as input, and gives either False if the problem is not satisfiable, or True

  • therwise associated with some counterexamples.

Both the tool and the forthcoming case studies can be found at http://lcs.ios.ac.cn/~chenms/tools/LinR.tar.bz2

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 27 / 37

slide-48
SLIDE 48

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Illustrating Examples

Example (Constructed) Consider the following LDS ˙ ξ =    √ 2 − √ 2 −1    ξ +    1 − t tet e−t    . Let X = {(x1, x2, x3)T | 1 − x2

1 − x2 2 − x2 3 > 0},

Y = {(y1, y2, y3)T | y1 + y2 + y3 + 2 < 0}. The safety property to be verified is to check if some state in Y is reachable from X.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 28 / 37

slide-49
SLIDE 49

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Illustrating Examples

Obviously, X ∩ Y = ∅. ξ(t) =     x1e

√ 2t + √ 2t− √ 2+1 2

+

√ 2−1 2

e

√ 2t

x2e−

√ 2t + (1+ √ 2)t−1 3+2 √ 2

et + e−

√ 2t

3+2 √ 2

x3e−t + te−t     . The reachability problem becomes F = ∃x1∃x2∃x3∃t. Φ(x1, x2, x3, t); Φ(x1, x2, x3, t) = 1 − x2

1 − x2 2 − x2 3 > 0

∧ x1e

√ 2t + x2e− √ 2t + x3e−t + h(t) < 0 ∧ t > 0,

where h(t) =

e−

√ 2t

3+2 √ 2 + te−t + √ 2t− √ 2+5 2

+ (1+

√ 2)t−1 3+2 √ 2

et +

√ 2−1 2

e

√ 2t.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 29 / 37

slide-50
SLIDE 50

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Illustrating Examples

Using the projection operator to eliminate x1, x2, x3 successively (Step 3), we have

q3(x1, x2, x3, t) = (x2

1 + x2 2 + x2 3 − 1)(ax1 + bx2 + cx3 + h)

q2(x2, x3, t) = a(x2

2 + x2 3 − 1)

(−a2 + a2x2

2 + a2x2 3 + b2x2 2 + 2bcx2x3 + 2bhx2 + c2x2 3 + 2chx3 + h2),

q1(x3, t) = a(x3 − 1)(x3 + 1)(a2 + b2)(2chx3 + h2 − b2 + b2x2

3 + c2x2 3)

(−a2 + a2x2

3 + 2chx3 + h2 − b2 + b2x2 3 + c2x2 3),

q0(t) = ab(c − h)(c + h)(a2 + b2)(b2 + c2)(b2 + c2 − h2)(a2 + b2 + c2) (a2 + b2 + c2 − h2),

where a = e

√ 2t, b = e− √ 2t and c = e−t.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 30 / 37

slide-51
SLIDE 51

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Illustrating Examples

Isolate all real roots of q0(t) = 0 in (0, +∞) (Step 4) L(q0) = {(1.08, 1.29)} Lift the real root isolation in the order t, x3, x2, x1 (Step 5), and we finally obtain 48 sample points in which the sample point {−0.835, −0.212, 0.184, 2.} satisfies Φ, which implies that the safety property is not satisfied with the counter example starting from (−0.835, −0.212, 0.184) ∈ X, and ending at time t = 2.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 31 / 37

slide-52
SLIDE 52

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Illustrating Examples

Example (Biochemical : nutrient flow in an aquarium) Consider a vessel of water containing a radioactive isotope, to be used as a tracer for the food chain, which consists of aquatic plankton varieties phytoplankton A and zooplankton B. Let ξ1(t) be the isotope concentration in the water, ξ2(t) the isotope concentration in A and ξ3(t) the isotope concentration in B. The dynamics of the vessel is modeled by the following LDS ˙ ξ = Aξ, where A =    −3 6 5 2 −12 1 6 −5    . The initial radioactive isotope concentrations ξ1(0) = x1 > 0, ξ2(0) = 0, ξ3(0) = 0. The safety property of our concern is whether ∀t > 0 ξ1(t) ≥ ξ2(t) + ξ3(t). A more general problem : For which n1, n2 ∈ N such that F(n1, n2) = ∃x1 > 0 ∃t > 0 ξ1(t) < n1ξ2(t) + n2ξ3(t) holds.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 32 / 37

slide-53
SLIDE 53

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Illustrating Examples

Example (Physics : home heating) Consider a typical home with attic, basement and insulated main floor. Let x3(t), x2(t), x1(t) be the temperature in the attic, main living area and basement respectively, and t is the time in hours. Assume it is winter time, the outside temperature is nearly 35◦F, and the basement earth temperature is nearly 45◦F. Suppose a small electric heater is turned on, and it provides a 20◦F rise per hour. We want to verify that the temperature in main living area will never reach too high (maybe 70◦F). Analyze the changing temperatures in the three levels using Newton's cooling law and given the value of the cooling constants, we obtain the model as follows :

˙ x1 = 1 2 (45 − x1) + 1 2 (x2 − x1), ˙ x2 = 1 2 (x1 − x2) + 1 4 (35 − x2) + 1 4 (x3 − x2) + 20, ˙ x3 = 1 4 (x2 − x3) + 3 4 (35 − x3),

with the initial set X = {(x1, x2, x3)T | 1 − (x1 − 45)2 − (x2 − 35)2 − (x3 − 35)2 > 0} and the unsafe set Y = {(y1, y2, y3)T | y2 − 70 > 0}.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 33 / 37

slide-54
SLIDE 54

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Evaluation Results for Open Constraints

LDS Time (sec) Memory (kb) LinR CT1D dReach HSolver Flow* LinR CT1D dReach HSolver Flow* Constructed 1.35 × 37.36 – – 112 × 3812 – – Biochemical 0.03 0.20 0.71 – – 131 2018 3816 – – Physics 1.68 × 0.05 0.72 16.50 166 × 3812 1076932 113492 × : the verification fails by non-termination within reasonable amount of time (10 hours) – : the verification fails because of giving an answer as ”safety unknown” Table 1. Evaluation results of different methods

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 34 / 37

slide-55
SLIDE 55

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Evaluation Results for Closed Constraints

LinR CT1D QEPCAD dReach HSolver Flow* 39 33 57 110

  • Table : Time consumption (in milliseconds) on Example 3.4 from [LPY2001]

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 35 / 37

slide-56
SLIDE 56

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Comparison with Strzebonski's Decision Procedure

Strzebonski's Ours CAD complete CAD

  • penCAD

real root isolation weak Fourier sequence Rolle's theorem assumption Schanuel's Conjecture no multiple real root of PEFs

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 36 / 37

slide-57
SLIDE 57

Background Reachable Sets of LDSs Decision Procedure for Te Isolating Real Roots of PEFs Evaluation Discussions and Conclusions

Concluding Remarks

The decidability of the reachability problem of a family of LDSs, whose state parts are linear, and input parts are possibly with exponential expressions. The decidability is achieved by showing the decidability of the extension of TA. A sound and complete decision procedure for unbounded verification under the assumption that PEFs have no multiple real roots.

Mingshuai Chen Institute of Software, CAS Decidability of the Reachability for LDSs Shanghai, ATVA 2015 37 / 37