Verification of Delayed Differential Dynamics Based on Validated - - PowerPoint PPT Presentation

verification of delayed differential dynamics
SMART_READER_LITE
LIVE PREVIEW

Verification of Delayed Differential Dynamics Based on Validated - - PowerPoint PPT Presentation

Problem Formulation Verification Shell Validated Simulation Experimental Results Concluding Remarks . . . . . . . . . . . . Verification of Delayed Differential Dynamics Based on Validated Simulation Mingshuai Chen 1 , Martin Frnzle 2 ,


slide-1
SLIDE 1

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Verification of Delayed Differential Dynamics

Based on Validated Simulation Mingshuai Chen1, Martin Fränzle2, Yangjia Li1, Peter N. Mosaad2, Naijun Zhan1

1State Key Lab. of Computer Science, Institute of Software, Chinese Academy of Sciences

  • 2Dpt. of Computing Science, C. v. Ossietzky Universität Oldenburg

Limassol, November 2016

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 1 / 21

slide-2
SLIDE 2

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Motivation : Why Delays ?

{ ˙ x(t) = −x(t) x(0) = 1

5 10 15 −0.5 0.5 1 t x

x t x t x

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 2 / 21

slide-3
SLIDE 3

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Motivation : Why Delays ?

{ ˙ x(t) = −x(t) x(0) = 1

5 10 15 −0.5 0.5 1 t x

{ ˙ x(t) = −x(t−1) x([−1, 0]) ≡ 1

5 10 15 −0.5 0.5 1 t x Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 2 / 21

slide-4
SLIDE 4

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Motivation : Why Delays ?

Delayed logistic equation [G. Hutchinson, 1948] : ˙ N(t) = N(t)[1 − N(t − r)]

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 3 / 21

slide-5
SLIDE 5

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Motivation : Why Delays ?

Delayed logistic equation [G. Hutchinson, 1948] : ˙ N(t) = N(t)[1 − N(t − r)]

50 100 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 r=0.25 t N 50 100 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 r=1.52 t N 50 100 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 r=1.65 t N

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 3 / 21

slide-6
SLIDE 6

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Outline

1

Problem Formulation

2

Simulation-Based Verification

3

Validated Simulation of Delayed Differential Dynamics

4

Experimental Results

5

Concluding Remarks

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 4 / 21

slide-7
SLIDE 7

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Outline

1

Problem Formulation Delayed Dynamical Systems Safety Verification Problem

2

Simulation-Based Verification Basic Idea Verification Algorithm

3

Validated Simulation of Delayed Differential Dynamics Local Error Bounds Simulation Algorithm Solving Optimization Correctness and Completeness

4

Experimental Results Delayed Logistic Equation Delayed Microbial Growth

5

Concluding Remarks Conclusions

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 5 / 21

slide-8
SLIDE 8

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Delayed Dynamical Systems

Delayed Dynamical Systems

Delayed Dynamical Systems { ˙ x (t) = f (x (t) , x (t − r1) , . . . , x (t − rk)) , t ∈ [0, ∞) x (t) ≡ x0 ∈ Θ, t ∈ [−rmax, 0] The unique solution (trajectory) : ξx0(t) : [−rmax, ∞) → Rn.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 6 / 21

slide-9
SLIDE 9

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Safety Verification Problem

Safety Verification Problem 

Given T ∈ R, X0 ⊆ Θ, U ⊆ Rn, whether ∀x0 ∈ X0 : (∪

t≤T ξx0(t)

) ∩ U = ∅ ? 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 Verification of Delayed Differential Dynamics Limassol, FM 2016 7 / 21

slide-10
SLIDE 10

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Safety Verification Problem

Safety Verification Problem 

Given T ∈ R, X0 ⊆ Θ, U ⊆ Rn, whether ∀x0 ∈ X0 : (∪

t≤T ξx0(t)

) ∩ U = ∅ ? 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 Verification of Delayed Differential Dynamics Limassol, FM 2016 7 / 21

slide-11
SLIDE 11

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Outline

1

Problem Formulation Delayed Dynamical Systems Safety Verification Problem

2

Simulation-Based Verification Basic Idea Verification Algorithm

3

Validated Simulation of Delayed Differential Dynamics Local Error Bounds Simulation Algorithm Solving Optimization Correctness and Completeness

4

Experimental Results Delayed Logistic Equation Delayed Microbial Growth

5

Concluding Remarks Conclusions

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 8 / 21

slide-12
SLIDE 12

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Basic Idea

Basic Idea 

e d ) ǫ imply consists in finding

Figure : A finite ϵ-cover of the initial set of states.

)

  • e

l

  • x0

ξx0(t) ǫ Reach=t

  • B(x0)
  • Ex0,(t)
  • Figure : An Over-approximation of the reachable set by

bloating the simulation.

  • 2. Figures are taken from [A. DonzDonzé & O. Maler, 2007].

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 9 / 21

slide-13
SLIDE 13

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Verification Algorithm

Verification Algorithm

Algorithm 1: Simulation-based Verification for Delayed Dynamical Systems

input : The dynamics f(x, u), delay term r, initial set X0, unsafe set U, time bound T , precision ǫ. /* initialization */

1 R ← ∅; δ ← dia(X0)/2; τ ← τ0; 2 X ← δ-Partition(X0); 3 while X = ∅ do 4

if δ < ǫ then

5

return (UNKNOWN, R);

6

for Bδ(x0) ∈ X do

7

t, y, d ← Simulation(Bδ(x0), f(x, u), r, τ, T );

8

T ← N−1

n=0 conv(Bdn(yn) ∪ Bdn+1(yn+1)); 9

if T ∩ U = ∅ then

10

X ← X\Bδ(x0); R ← R ∪ T ;

11

else if ∃i. Bdi(yi) ⊆ U then

12

return (UNSAFE, T );

13

else

14

X ← X\Bδ(x0); X ← X ∪ δ

2 -Partition(Bδ(x0)); 15

δ ← δ/2;

16 return (SAFE, R);

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 10 / 21

slide-14
SLIDE 14

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Outline

1

Problem Formulation Delayed Dynamical Systems Safety Verification Problem

2

Simulation-Based Verification Basic Idea Verification Algorithm

3

Validated Simulation of Delayed Differential Dynamics Local Error Bounds Simulation Algorithm Solving Optimization Correctness and Completeness

4

Experimental Results Delayed Logistic Equation Delayed Microbial Growth

5

Concluding Remarks Conclusions

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 11 / 21

slide-15
SLIDE 15

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Local Error Bounds

Local Error Bounds

E(t) = { d0, if t = 0, E(ti) + (t − ti)ei+1, if t ∈ [ti, ti+1]. Validation Property :

x

t

E t

t ti yi ti t yi ti ti for each t ti ti

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 12 / 21

slide-16
SLIDE 16

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Local Error Bounds

Local Error Bounds

E(t) = { d0, if t = 0, E(ti) + (t − ti)ei+1, if t ∈ [ti, ti+1]. Validation Property : ξx0(t) ∈ BE(t) ( (t − ti)yi + (ti+1 − t)yi+1 ti+1 − ti ) , for each t ∈ [ti, ti+1].

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 12 / 21

slide-17
SLIDE 17

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Simulation Algorithm

Simulation Algorithm

Algorithm 2: Simulation: a validated DDE solver producing rigorous bounds

input : The initial set Bδ(x0), dynamics f(x, u), delay term r, stepsize τ, time bound T .

  • utput: A triple t, y, d, where the components represent lists, with the same length, respectively for the

time points, numerical approximations (possibly multi-dimensional), and the rigorous local error bounds. /* initializing the lists, whose indices start from -1 */

1 t ← −τ, 0; y ← x0, x0; d ← 0, δ;

/* r has to be divisible by τ (in FP numbers) */

2 n ← 0; m ← r/τ; 3 while tn < T do 4

tn+1 ← tn + τ; /* approximating yn+1 using forward Euler method */

5

yn+1 ← yn + f(yn, yn−m) ∗ τ; /* computing error slope by constrained optimization, where σ is a positive slack constant */ en ← Find minimum e s.t.                f(x + t ∗ f, u + t ∗ g) − f(yn, yn−m) ≤ e − σ, for ∀t ∈ [0, τ] ∀x ∈ Bdn(yn) ∀u ∈ Bdn−m(yn−m) ∀f ∈ Be(f(yn, yn−m)) ∀g ∈ Ben−m(f(yn−m, yn−2m)); dn+1 ← dn + τen; /* updating the lists by appending the extrapolation */

6

t ← t, tn+1; y ← y, yn+1; d ← d, dn+1;

7

n ← n + 1;

8 return t, y, d;

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 13 / 21

slide-18
SLIDE 18

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Solving Optimization

Solving the Optimization by HySAT-II

find min{e ≥ 0 | ∀x : φ(x, e) = ⇒ ψ(x, e)} find max e x x e x e

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 14 / 21

slide-19
SLIDE 19

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Solving Optimization

Solving the Optimization by HySAT-II

find min{e ≥ 0 | ∀x : φ(x, e) = ⇒ ψ(x, e)} ⇓ find max{e ≥ 0 | ∃x : φ(x, e) ∧ ¬ψ(x, e)}

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 14 / 21

slide-20
SLIDE 20

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Correctness and Completeness

Simulation Algorithm

Theorem (Correctness) Suppose the maximum index of the lists is N, then ∀t ∈ [0, T] and ∀x ∈ Bδ(x0), ξx(t) ⊆ ∪N−1

n=0 conv(Bdn(yn) ∪ Bdn+1(yn+1)).

Theorem (Completeness) Suppose the function f is continuously differentiable in both arguments and the dynamical system is solvable for time interval T , then for any , there exists , and such that the optimization problem has a solution en for all n

T , and moreover

dn . Further extension to simulations with variable stepsize.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 15 / 21

slide-21
SLIDE 21

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Correctness and Completeness

Simulation Algorithm

Theorem (Correctness) Suppose the maximum index of the lists is N, then ∀t ∈ [0, T] and ∀x ∈ Bδ(x0), ξx(t) ⊆ ∪N−1

n=0 conv(Bdn(yn) ∪ Bdn+1(yn+1)).

Theorem (Completeness) Suppose the function f is continuously differentiable in both arguments and the dynamical system is solvable for time interval [0, T], then for any ε > 0, there exists δ, τ and σ such that the optimization problem has a solution en for all n ≤ T

τ , and moreover

dn ≤ ε. Further extension to simulations with variable stepsize.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 15 / 21

slide-22
SLIDE 22

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Correctness and Completeness

Simulation Algorithm

Theorem (Correctness) Suppose the maximum index of the lists is N, then ∀t ∈ [0, T] and ∀x ∈ Bδ(x0), ξx(t) ⊆ ∪N−1

n=0 conv(Bdn(yn) ∪ Bdn+1(yn+1)).

Theorem (Completeness) Suppose the function f is continuously differentiable in both arguments and the dynamical system is solvable for time interval [0, T], then for any ε > 0, there exists δ, τ and σ such that the optimization problem has a solution en for all n ≤ T

τ , and moreover

dn ≤ ε. Further extension to simulations with variable stepsize.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 15 / 21

slide-23
SLIDE 23

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Outline

1

Problem Formulation Delayed Dynamical Systems Safety Verification Problem

2

Simulation-Based Verification Basic Idea Verification Algorithm

3

Validated Simulation of Delayed Differential Dynamics Local Error Bounds Simulation Algorithm Solving Optimization Correctness and Completeness

4

Experimental Results Delayed Logistic Equation Delayed Microbial Growth

5

Concluding Remarks Conclusions

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 16 / 21

slide-24
SLIDE 24

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Delayed Logistic Equation

Delayed Logistic Equation

˙ N(t) = N(t)[1 − N(t − r)]

Figure :

, r , , T s.

Figure : Over-approximation rigorously proving unsafe,

with r , , , T s, N N .

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 17 / 21

slide-25
SLIDE 25

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Delayed Logistic Equation

Delayed Logistic Equation

˙ N(t) = N(t)[1 − N(t − r)]

2 4 6 8 10 0.6 0.8 1 1.2 1.4 1.6

t N

numerical solution N(t)

  • ver−approximation by bloating factor d(t)

Figure : X0 = B0.01(1.49), r = 1.3, τ0 = 0.01,

T = 10s.

Figure : Over-approximation rigorously proving unsafe,

with r , , , T s, N N .

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 17 / 21

slide-26
SLIDE 26

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Delayed Logistic Equation

Delayed Logistic Equation

˙ N(t) = N(t)[1 − N(t − r)]

2 4 6 8 10 0.6 0.8 1 1.2 1.4 1.6

t N

numerical solution N(t)

  • ver−approximation by bloating factor d(t)

Figure : X0 = B0.01(1.49), r = 1.3, τ0 = 0.01,

T = 10s.

1 2 3 4 5 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 2.2

t N

numerical solution N(t)

  • ver−approximation by bloating factor d(t)

lower bound of the unsafe set

Figure : Over-approximation rigorously proving unsafe,

with r = 1.7, X0 = B0.025(0.425), τ0 = 0.1, T = 5s, U = {N|N > 1.6}.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 17 / 21

slide-27
SLIDE 27

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Delayed Logistic Equation

Delayed Logistic Equation

1 2 3 4 5 0.4 0.6 0.8 1 1.2 1.4 1.6 t N

(a) An initial over-approximaion of trajectories start-

ing from B0.225(1.25). It overlaps with the unsafe set (s. circle). Initial set is consequently split (cf. Figs. 3b, 3c). 1 2 3 4 5 0.4 0.6 0.8 1 1.2 1.4 1.6 t N

(b) All trajectories starting from B0.125(1.375)

are proven safe within the time bound, as the over- approximation does not intersect with the unsafe set. 1 2 3 4 5 0.4 0.6 0.8 1 1.2 1.4 1.6 t N

(c) Initial state set B0.125(1.125) is verified to be safe

as well. 1 2 3 4 5 0.4 0.6 0.8 1 1.2 1.4 1.6 t N

(d) B0.25(0.75) yields overlap w. unsafe; the ball is

partitioned again (Figs. 3e, 3f). 1 2 3 4 5 0.4 0.6 0.8 1 1.2 1.4 1.6 t N

(e) All trajectories originating from B0.125(0.875)

are provably safe. 1 2 3 4 5 0.4 0.6 0.8 1 1.2 1.4 1.6 t N

(f) All trajectories originating from B0.125(0.625)

are provably safe as well.

  • Fig. 3: The logistic system is proven safe through 6 rounds of simulation with base stepsize τ0 = 0.1. Delay r = 1.3,

initial state set X0 = {N|N ∈ [0.5, 1.5]}, time bound T = 5s, unsafe set {N|N > 1.6}.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 18 / 21

slide-28
SLIDE 28

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Delayed Microbial Growth

Delayed Microbial Growth

{ ˙ S(t) = 1 − S(t) − f(S(t))x(t) ˙ x(t) = e−rf(S(t − r))x(t − r) − x(t)

Figure : The microbial system is proven safe by 17 rounds of simulation with

. Here, f S eS S , r , , S x S x , T s.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 19 / 21

slide-29
SLIDE 29

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Delayed Microbial Growth

Delayed Microbial Growth

{ ˙ S(t) = 1 − S(t) − f(S(t))x(t) ˙ x(t) = e−rf(S(t − r))x(t − r) − x(t)

−0.4 −0.2 0.2 0.4 0.6 0.8 1 1.2 1.4 −0.5 0.5 1

S x

upper bound of the unsafe set numerical solution (S;x)

  • ver−approximation around sampling point

initial state space

Figure : The microbial system is proven safe by 17 rounds of simulation with τ0 = 0.45. Here, f(S) = 2eS/(1+S),

r = 0.9, X0 = B0.3((1; 0.5)), U = {(S; x)|S + x < 0}, T = 8s.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 19 / 21

slide-30
SLIDE 30

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks

Outline

1

Problem Formulation Delayed Dynamical Systems Safety Verification Problem

2

Simulation-Based Verification Basic Idea Verification Algorithm

3

Validated Simulation of Delayed Differential Dynamics Local Error Bounds Simulation Algorithm Solving Optimization Correctness and Completeness

4

Experimental Results Delayed Logistic Equation Delayed Microbial Growth

5

Concluding Remarks Conclusions

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 20 / 21

slide-31
SLIDE 31

. . Problem Formulation . . Verification Shell . . . . Validated Simulation . . . Experimental Results . Concluding Remarks Conclusions

Concluding Remarks

A validated numerical solver for delay differential equations. A sound and robustly complete algorithm for automated formal verification of time-bounded reachability properties of a class of systems that feature delayed differential dynamics governed by DDEs with multiple delays. A prototypical implementation of the simulator, by which we have successfully demonstrated the method on several benchmark systems involving delayed differential dynamics. Forthcoming research : higher-order Runge-Kutta methods ; unbounded verification by Taylor-enclosures ; conformance testing.

Mingshuai Chen Institute of Software, CAS Verification of Delayed Differential Dynamics Limassol, FM 2016 21 / 21