Vector Barrier Certificates and Comparison Systems Andrew Sogokon 1 - - PowerPoint PPT Presentation

vector barrier certificates and comparison systems
SMART_READER_LITE
LIVE PREVIEW

Vector Barrier Certificates and Comparison Systems Andrew Sogokon 1 - - PowerPoint PPT Presentation

Vector Barrier Certificates and Comparison Systems Andrew Sogokon 1 Khalil Ghorbal 2 Yong Kiam Tan 1 Andr Platzer 1 1 - Carnegie Mellon University, Pittsburgh, USA 2 - Inria, Rennes, France 16 July 2018 , FM 2018, Oxford, UK 1/26


slide-1
SLIDE 1

1/26

Vector Barrier Certificates and Comparison Systems

Andrew Sogokon1 Khalil Ghorbal2 Yong Kiam Tan1 André Platzer1

1 - Carnegie Mellon University, Pittsburgh, USA 2 - Inria, Rennes, France 16 July 2018, FM 2018, Oxford, UK

slide-2
SLIDE 2

2/26

Preliminaries: Systems of ODEs

An autonomous n-dimensional system of ODEs has the general form: x′

1 = f1(x1, . . . , xn),

. . . x′

n = fn(x1, . . . , xn),

where x′

i denotes the time derivative dxi dt and fi are continuous functions.

slide-3
SLIDE 3

2/26

Preliminaries: Systems of ODEs

An autonomous n-dimensional system of ODEs has the general form: x′

1 = f1(x1, . . . , xn),

. . . x′

n = fn(x1, . . . , xn),

where x′

i denotes the time derivative dxi dt and fi are continuous functions.

We write x′ = f(x). The vector field f : Rn → Rn gives the direction of motion at each point in space.

slide-4
SLIDE 4

2/26

Preliminaries: Systems of ODEs

An autonomous n-dimensional system of ODEs has the general form: x′

1 = f1(x1, . . . , xn),

. . . x′

n = fn(x1, . . . , xn),

where x′

i denotes the time derivative dxi dt and fi are continuous functions.

We write x′ = f(x). The vector field f : Rn → Rn gives the direction of motion at each point in space. A solution x(x0, t) : Rn × R → Rn exactly describes the motion of a particle x0 under the influence of the vector field.

slide-5
SLIDE 5

3/26

Example: Van der Pol oscillator

The Van der Pol system oscillator evolves according to the following ODEs: x′

1 = x2,

x′

2 = (1 − x2 1)x2 − x1

slide-6
SLIDE 6

3/26

Example: Van der Pol oscillator

The Van der Pol system oscillator evolves according to the following ODEs: x′

1 = x2,

x′

2 = (1 − x2 1)x2 − x1

x0

slide-7
SLIDE 7

3/26

Example: Van der Pol oscillator

The Van der Pol system oscillator evolves according to the following ODEs: x′

1 = x2,

x′

2 = (1 − x2 1)x2 − x1

x0 x(x0, t)

slide-8
SLIDE 8

4/26

Barrier certificates

Lyapunov-like safety verification method, due to Prajna & Jadbabaie (2004). MAIN IDEA: Find a differentiable function B : Rn → R such that B(x) > 0 holds for every x ∈ Unsafe, For all x0 ∈ Init, B(x(x0, t)) ≤ 0 holds for all future t.

slide-9
SLIDE 9

4/26

Barrier certificates

Lyapunov-like safety verification method, due to Prajna & Jadbabaie (2004). MAIN IDEA: Find a differentiable function B : Rn → R such that B(x) > 0 holds for every x ∈ Unsafe, For all x0 ∈ Init, B(x(x0, t)) ≤ 0 holds for all future t.

x1 x2

Init

Unsafe

slide-10
SLIDE 10

4/26

Barrier certificates

Lyapunov-like safety verification method, due to Prajna & Jadbabaie (2004). MAIN IDEA: Find a differentiable function B : Rn → R such that B(x) > 0 holds for every x ∈ Unsafe, For all x0 ∈ Init, B(x(x0, t)) ≤ 0 holds for all future t.

x1 x2

Init

Unsafe

B ≤ 0 B > 0 B > 0

slide-11
SLIDE 11

5/26

Barrier certificates (more formally)

Lemma (Safety with semantic barrier certificates)

Given : a system of n first-order ODEs x′ = f(x),

slide-12
SLIDE 12

5/26

Barrier certificates (more formally)

Lemma (Safety with semantic barrier certificates)

Given : a system of n first-order ODEs x′ = f(x), possibly an evolution constraint Q ⊆ Rn,

slide-13
SLIDE 13

5/26

Barrier certificates (more formally)

Lemma (Safety with semantic barrier certificates)

Given : a system of n first-order ODEs x′ = f(x), possibly an evolution constraint Q ⊆ Rn, a set of initial states Init ⊆ Rn,

slide-14
SLIDE 14

5/26

Barrier certificates (more formally)

Lemma (Safety with semantic barrier certificates)

Given : a system of n first-order ODEs x′ = f(x), possibly an evolution constraint Q ⊆ Rn, a set of initial states Init ⊆ Rn, and a set of unsafe states Unsafe ⊆ Rn,

slide-15
SLIDE 15

5/26

Barrier certificates (more formally)

Lemma (Safety with semantic barrier certificates)

Given : a system of n first-order ODEs x′ = f(x), possibly an evolution constraint Q ⊆ Rn, a set of initial states Init ⊆ Rn, and a set of unsafe states Unsafe ⊆ Rn, if a differentiable (barrier) function B : Rn → R satisfies the following conditions, then the system is safe:

1

∀ x ∈ Unsafe. B(x) > 0,

2

∀ x0 ∈ Init. ∀ t ≥ 0.

  • (∀ τ ∈ [0, t]. x(x0, τ) ∈ Q) ⇒ B(x(x0, t)) ≤ 0
  • .
slide-16
SLIDE 16

6/26

Kinds of barrier certificates

Recall the (semantic) conditions:

1

∀ x ∈ Unsafe. B(x) > 0,

2

∀ x0 ∈ Init. ∀ t ≥ 0.

  • (∀ τ ∈ [0, t]. x(x0, τ) ∈ Q) ⇒ B(x(x0, t)) ≤ 0
  • .
slide-17
SLIDE 17

6/26

Kinds of barrier certificates

Recall the (semantic) conditions:

1

∀ x ∈ Unsafe. B(x) > 0,

2

∀ x0 ∈ Init. ∀ t ≥ 0.

  • (∀ τ ∈ [0, t]. x(x0, τ) ∈ Q) ⇒ B(x(x0, t)) ≤ 0
  • .

Several direct sufficient conditions have been proposed to ensure the last

  • requirement. Observe that the solutions x(x0, t) are not explicit.

Convex (Prajna & Jadbabaie, 2004) Q → B′ ≤ 0. Exponential-type (Kong et al., 2013) Q → B′ ≤ λB. ‘General’ (Dai et al., 2017) Q → B′ ≤ ω(B), ∀t ≥ 0. b(t) ≤ 0, b is the solution to b′ = ω(b).

slide-18
SLIDE 18

6/26

Kinds of barrier certificates

Recall the (semantic) conditions:

1

∀ x ∈ Unsafe. B(x) > 0,

2

∀ x0 ∈ Init. ∀ t ≥ 0.

  • (∀ τ ∈ [0, t]. x(x0, τ) ∈ Q) ⇒ B(x(x0, t)) ≤ 0
  • .

Several direct sufficient conditions have been proposed to ensure the last

  • requirement. Observe that the solutions x(x0, t) are not explicit.

Convex (Prajna & Jadbabaie, 2004) Q → B′ ≤ 0. Exponential-type (Kong et al., 2013) Q → B′ ≤ λB. ‘General’ (Dai et al., 2017) Q → B′ ≤ ω(B), ∀t ≥ 0. b(t) ≤ 0, b is the solution to b′ = ω(b). All these conditions are instantiations of the comparison principle.

slide-19
SLIDE 19

7/26

Comparison principle

Used by R. Conti (1956), F. Brauer, C. Corduneanu (1960s), many others. Not a new idea in applied mathematics; used in stability theory.

slide-20
SLIDE 20

7/26

Comparison principle

Used by R. Conti (1956), F. Brauer, C. Corduneanu (1960s), many others. Not a new idea in applied mathematics; used in stability theory. MAIN IDEA: Given x′ = f(x), if a positive definite differentiable function V : Rn → R satisfies the differential inequality V ′ ≤ ω(V ), where ω : R → R is an appropriate scalar function, one may infer the stability of x′ = f(x) from the stability of the one-dimensional system v′ = ω(v).

slide-21
SLIDE 21

7/26

Comparison principle

Used by R. Conti (1956), F. Brauer, C. Corduneanu (1960s), many others. Not a new idea in applied mathematics; used in stability theory. MAIN IDEA: Given x′ = f(x), if a positive definite differentiable function V : Rn → R satisfies the differential inequality V ′ ≤ ω(V ), where ω : R → R is an appropriate scalar function, one may infer the stability of x′ = f(x) from the stability of the one-dimensional system v′ = ω(v). One obtains an abstraction of the system by another one-dimensional system.

slide-22
SLIDE 22

8/26

Comparison theorem (scalar majorization)

The comparison principle hinges on an appropriate comparison theorem.

Theorem (Scalar comparison theorem)

Let V (t) and v(t) be real valued functions differentiable on [0, T]. If V ′ ≤ ω(V ) and v′ = ω(v) holds on [0, T] for some locally Lipschitz continuous function ω and if V (0) = v(0), then for all t ∈ [0, T] one has V (t) ≤ v(t).

Informally, Solutions to the ODE v′ = ω(v) act as upper bounds (i.e. majorize) solutions to V ′ ≤ ω(V ) .

slide-23
SLIDE 23

9/26

Comparison principle

  • 1. Introduce a fresh variable v (really a function of time v(t)),
slide-24
SLIDE 24

9/26

Comparison principle

  • 1. Introduce a fresh variable v (really a function of time v(t)),
  • 2. Replace the scalar differential inequality V ′ ≤ ω(V ) by an equality.
slide-25
SLIDE 25

9/26

Comparison principle

  • 1. Introduce a fresh variable v (really a function of time v(t)),
  • 2. Replace the scalar differential inequality V ′ ≤ ω(V ) by an equality.

V ′ ≤ ω(V ) − − − − − − − − − − − → v′ = ω(v)

slide-26
SLIDE 26

9/26

Comparison principle

  • 1. Introduce a fresh variable v (really a function of time v(t)),
  • 2. Replace the scalar differential inequality V ′ ≤ ω(V ) by an equality.

V ′ ≤ ω(V ) − − − − − − − − − − − → v′ = ω(v) Obtain one-dimensional abstraction; 1-d systems are easy to study.

v ω(v)

slide-27
SLIDE 27

10/26

Kinds of barrier certificates

Recall the (semantic) conditions:

1

∀ x ∈ Unsafe. B(x) > 0,

2

∀ x0 ∈ Init. ∀ t ≥ 0.

  • (∀ τ ∈ [0, t]. x(x0, τ) ∈ Q) ⇒ B(x(x0, t)) ≤ 0
  • .

Several direct sufficient conditions have been proposed to ensure the last

  • requirement. Observe that the solutions x(x0, t) are not explicit.

Convex (Prajna & Jadbabaie, 2004) Q → B′ ≤ 0. Exponential-type (Kong et al., 2013) Q → B′ ≤ λB. ‘General’ (Dai et al., 2017) Q → B′ ≤ ω(B), ∀t ≥ 0. b(t) ≤ 0, b is the solution to b′ = ω(b). All these conditions are instantiations of the comparison principle.

slide-28
SLIDE 28

11/26

Convex barrier certificates (Prajna & Jadbabaie, 2004)

B ω(B) b

Differential inequality B′ ≤ 0 Comparison system b′ = 0

slide-29
SLIDE 29

12/26

Exponential-type barrier certificates (Kong et al., 2013)

B ω(B) λB b

Differential inequality B′ ≤ λB Comparison system b′ = λb

slide-30
SLIDE 30

13/26

General barrier certificates (Dai, et al., 2017)

B ω(B) r1 r2 ω(B) b r1 r2

Differential inequality B′ ≤ ω(B) Comparison system b′ = ω(b)

slide-31
SLIDE 31

14/26

Scalar barrier certificates as comparison systems

B ω(B) b

(a) Constant (zero) Convex

B ω(B) λB b

(b) Linear Exponential

B ω(B) r1 r2 ω(B) b r1 r2

(c) Non-linear General

slide-32
SLIDE 32

14/26

Scalar barrier certificates as comparison systems

B ω(B) b

(a) Constant (zero) Convex

B ω(B) λB b

(b) Linear Exponential

B ω(B) r1 r2 ω(B) b r1 r2

(c) Non-linear General

Can we leverage the comparison principle to go beyond the scalar case?

slide-33
SLIDE 33

15/26

Vector comparison systems

R.E. Bellman introduced vector Lyapunov functions in 1962.

slide-34
SLIDE 34

15/26

Vector comparison systems

R.E. Bellman introduced vector Lyapunov functions in 1962. MAIN IDEA: Given x′ = f(x), if a positive definite differentiable function V : Rn → Rm satisfies the differential inequality V ′ ≤ ω(V ), where ω : Rm → Rm is an appropriate vector function, one may infer the stability of x′ = f(x) from the stability of the m-dimensional system v′ = ω(v).

slide-35
SLIDE 35

15/26

Vector comparison systems

R.E. Bellman introduced vector Lyapunov functions in 1962. MAIN IDEA: Given x′ = f(x), if a positive definite differentiable function V : Rn → Rm satisfies the differential inequality V ′ ≤ ω(V ), where ω : Rm → Rm is an appropriate vector function, one may infer the stability of x′ = f(x) from the stability of the m-dimensional system v′ = ω(v). One obtains an abstraction of the system by another m-dimensional system.

slide-36
SLIDE 36

15/26

Vector comparison systems

R.E. Bellman introduced vector Lyapunov functions in 1962. MAIN IDEA: Given x′ = f(x), if a positive definite differentiable function V : Rn → Rm satisfies the differential inequality V ′ ≤ ω(V ), where ω : Rm → Rm is an appropriate vector function, one may infer the stability of x′ = f(x) from the stability of the m-dimensional system v′ = ω(v). One obtains an abstraction of the system by another m-dimensional system. !!! CAVEAT: The vector function ω needs to be quasi-monotone increasing.

slide-37
SLIDE 37

16/26

Quasi-monotone increasing functions

Definition

A function ω : Rm → Rm is said to be quasi-monotone increasing if ωi(x) ≤ ωi(y) for all i = 1, . . . , m and all x, y such that xi = yi, and xk ≤ yk for all k = i.

slide-38
SLIDE 38

16/26

Quasi-monotone increasing functions

Definition

A function ω : Rm → Rm is said to be quasi-monotone increasing if ωi(x) ≤ ωi(y) for all i = 1, . . . , m and all x, y such that xi = yi, and xk ≤ yk for all k = i.

Every scalar function is (trivially) quasi-monotone increasing.

slide-39
SLIDE 39

16/26

Quasi-monotone increasing functions

Definition

A function ω : Rm → Rm is said to be quasi-monotone increasing if ωi(x) ≤ ωi(y) for all i = 1, . . . , m and all x, y such that xi = yi, and xk ≤ yk for all k = i.

Every scalar function is (trivially) quasi-monotone increasing. A linear function ω(x) = Ax is quasi-monotone increasing if and only if A is essentially non-negative, i.e. all off-diagonal entries of A are non-negative.

slide-40
SLIDE 40

16/26

Quasi-monotone increasing functions

Definition

A function ω : Rm → Rm is said to be quasi-monotone increasing if ωi(x) ≤ ωi(y) for all i = 1, . . . , m and all x, y such that xi = yi, and xk ≤ yk for all k = i.

Every scalar function is (trivially) quasi-monotone increasing. A linear function ω(x) = Ax is quasi-monotone increasing if and only if A is essentially non-negative, i.e. all off-diagonal entries of A are non-negative. Matrices with this property are also known as Metzler matrices.

slide-41
SLIDE 41

17/26

Vector comparison principle

  • 1. Introduce a fresh vector of variables v (vector function of time v(t)),
slide-42
SLIDE 42

17/26

Vector comparison principle

  • 1. Introduce a fresh vector of variables v (vector function of time v(t)),
  • 2. Replace the vector differential inequality V ′ ≤ ω(V ) by an equality.
slide-43
SLIDE 43

17/26

Vector comparison principle

  • 1. Introduce a fresh vector of variables v (vector function of time v(t)),
  • 2. Replace the vector differential inequality V ′ ≤ ω(V ) by an equality.

V ′ ≤ ω(V ) − − − − − − − − − − − → v′ = ω(v)

slide-44
SLIDE 44

17/26

Vector comparison principle

  • 1. Introduce a fresh vector of variables v (vector function of time v(t)),
  • 2. Replace the vector differential inequality V ′ ≤ ω(V ) by an equality.

V ′ ≤ ω(V ) − − − − − − − − − − − → v′ = ω(v) Obtain an m-dimensional abstraction. More general than the scalar principle.

v v

slide-45
SLIDE 45

18/26

Vector comparison principle

Theorem (Linear vector comparison theorem)

For a given system of ODEs x′ = f(x) and a Metzler matrix, A ∈ Rm×m, if V = (V1, V2, . . . , Vm) satisfies the system of differential inequalities V ′ ≤ AV , then for all t ≥ 0 the inequality V (t) ≤ v(t) holds component-wise, where v(t) is the solution to the comparison system v′ = Av, and v(0) = V (0).

slide-46
SLIDE 46

18/26

Vector comparison principle

Theorem (Linear vector comparison theorem)

For a given system of ODEs x′ = f(x) and a Metzler matrix, A ∈ Rm×m, if V = (V1, V2, . . . , Vm) satisfies the system of differential inequalities V ′ ≤ AV , then for all t ≥ 0 the inequality V (t) ≤ v(t) holds component-wise, where v(t) is the solution to the comparison system v′ = Av, and v(0) = V (0).

Metzler matrices have another important property:

Lemma

If A ∈ Rm×m is a Metzler matrix, then for any v0 ≤ 0, the solution v(t) to the linear system v′ = Av is such that v(t) ≤ 0 for all t ≥ 0.

slide-47
SLIDE 47

19/26

Vector barrier certificates

Theorem

Given an m-vector of functions B = (B1, B2, . . . , Bm) and some essentially non-negative m × m matrix A, if the following conditions hold, then the system is safe: VBC∧1. ∀ x ∈ Rn. (Init → m

i=1 Bi ≤ 0),

VBC∧2. ∀ x ∈ Rn. (Unsafe → m

i=1 Bi > 0),

VBC∧3. ∀ x ∈ Rn. (Q → B′ ≤ AB).

slide-48
SLIDE 48

19/26

Vector barrier certificates

Theorem

Given an m-vector of functions B = (B1, B2, . . . , Bm) and some essentially non-negative m × m matrix A, if the following conditions hold, then the system is safe: VBC∧1. ∀ x ∈ Rn. (Init → m

i=1 Bi ≤ 0),

VBC∧2. ∀ x ∈ Rn. (Unsafe → m

i=1 Bi > 0),

VBC∧3. ∀ x ∈ Rn. (Q → B′ ≤ AB).

Generation?

slide-49
SLIDE 49

19/26

Vector barrier certificates

Theorem

Given an m-vector of functions B = (B1, B2, . . . , Bm) and some essentially non-negative m × m matrix A, if the following conditions hold, then the system is safe: VBC∧1. ∀ x ∈ Rn. (Init → m

i=1 Bi ≤ 0),

VBC∧2. ∀ x ∈ Rn. (Unsafe → m

i=1 Bi > 0),

VBC∧3. ∀ x ∈ Rn. (Q → B′ ≤ AB).

Generation?

Unfortunately VBC∧2 leads to non-convexity. Convexity enables the use of efficient semidefinite solvers.

slide-50
SLIDE 50

20/26

Vector barrier certificate (convex)

Theorem

Given an m-vector of functions B = (B1, B2, . . . , Bm) and some essentially non-negative m × m matrix A, if for some i∗ ∈ {1, . . . , m} the following conditions hold, then the system is safe: VBC 1. ∀ x ∈ Rn. (Init → m

i=1 Bi ≤ 0),

VBC 2. ∀ x ∈ Rn. (Unsafe → Bi∗ > 0), VBC 3. ∀ x ∈ Rn. (Q → B′ ≤ AB).

The above conditions define a convex set.

slide-51
SLIDE 51

21/26

Generating vector barrier certificates using SDP

Solve a sum-of-squares optimization problem for size m vector barrier certificates B1, B2, . . . , Bm, with i∗ ∈ {1, . . . , m}: −Bi − Σa

j=1σIi,jIj ≥ 0 for all i = 1, 2, . . . , m

(VBC 1) Bi∗ − Σb

j=1σUjUj − ǫ ≥ 0

(VBC 2) Σm

j=1AijBj − B′ i − Σc j=1σQi,jQj ≥ 0 for all i = 1, 2, . . . , m

(VBC 3) Possible using e.g. SOSTOOLS toolbox in Matlab, together with a semidefinite solve (e.g. SeDuMi).

slide-52
SLIDE 52

22/26

Vector barrier certificates (deductive power)

Theorem

Polynomial convex or ‘exponential-type’ barrier certificates (trivially) satisfy the conditions VBC∧1-3 (or VBC 1-3). The converse is false.

slide-53
SLIDE 53

22/26

Vector barrier certificates (deductive power)

Theorem

Polynomial convex or ‘exponential-type’ barrier certificates (trivially) satisfy the conditions VBC∧1-3 (or VBC 1-3). The converse is false.

There are vector barrier certificates for some safety properties where scalar barrier certificates do not exist.

slide-54
SLIDE 54

22/26

Vector barrier certificates (deductive power)

Theorem

Polynomial convex or ‘exponential-type’ barrier certificates (trivially) satisfy the conditions VBC∧1-3 (or VBC 1-3). The converse is false.

There are vector barrier certificates for some safety properties where scalar barrier certificates do not exist. Vector barrier certificates can also exist with lower polynomial degrees than is possible with scalar barrier certificates!

slide-55
SLIDE 55

23/26

Vector barrier certificates (example)

x′

1 = x2,

x′

2 = x1,

Vector barrier certificate (B1, B2) = (x1, x2) satisfies

  • B′

1

B′

2

  • 0 1

1 0

  • B1

B2

  • and has polynomial degree 1. No scalar barrier certificate of degree 1 exists.
  • 10
  • 5

5 10

  • 10
  • 5

5 10 x1 x2

slide-56
SLIDE 56

24/26

Summary

The comparison principle is a powerful and fundamental abstraction mechanism for ODEs.

slide-57
SLIDE 57

24/26

Summary

The comparison principle is a powerful and fundamental abstraction mechanism for ODEs. Existing (scalar) notions of barrier certificates follow easily from this principle.

slide-58
SLIDE 58

24/26

Summary

The comparison principle is a powerful and fundamental abstraction mechanism for ODEs. Existing (scalar) notions of barrier certificates follow easily from this principle. A generalization of existing notions of barrier certificates is achieved, following Bellman’s use of the vector comparison principle.

slide-59
SLIDE 59

24/26

Summary

The comparison principle is a powerful and fundamental abstraction mechanism for ODEs. Existing (scalar) notions of barrier certificates follow easily from this principle. A generalization of existing notions of barrier certificates is achieved, following Bellman’s use of the vector comparison principle. Also possible to use time-dependent Metzler matrices, i.e. A(t). Work

  • n this ongoing.
slide-60
SLIDE 60

25/26

Limitations

Choosing an appropriate Metzler matrix A for the comparison system is generally non-trivial.

slide-61
SLIDE 61

25/26

Limitations

Choosing an appropriate Metzler matrix A for the comparison system is generally non-trivial. Numerical inaccuracies in the results (to be expected with existing solvers).

slide-62
SLIDE 62

25/26

Limitations

Choosing an appropriate Metzler matrix A for the comparison system is generally non-trivial. Numerical inaccuracies in the results (to be expected with existing solvers). Trade-off: dimension of the comparison system vs degree of the barrier functions.

slide-63
SLIDE 63

26/26

End

Questions?

Acknowledgments

This work was supported by the National Science Foundation under NSF CPS Award CNS-1739629 and by the AFOSR under grant number FA9550-16-1-0288; the third author was supported by the National Science Scholarship from A*STAR, Singapore.