The Flow of ODEs Fabian Immler & Christoph Traut ITP 2016 e l - - PowerPoint PPT Presentation

the flow of odes
SMART_READER_LITE
LIVE PREVIEW

The Flow of ODEs Fabian Immler & Christoph Traut ITP 2016 e l - - PowerPoint PPT Presentation

The Flow of ODEs Fabian Immler & Christoph Traut ITP 2016 e l l e b a s I = Introduction Motivation Lorenz attractor, chaos 1 / 14 Introduction Motivation Lorenz attractor, chaos Tuckers


slide-1
SLIDE 1

The Flow of ODEs

Fabian Immler & Christoph Traut ITP 2016

λ → ∀

=

I s a b e l l e

β α

slide-2
SLIDE 2

Introduction

Motivation

◮ Lorenz attractor, chaos

1 / 14

slide-3
SLIDE 3

Introduction

Motivation

◮ Lorenz attractor, chaos ◮ Tucker’s computer-aided proof

1 / 14

slide-4
SLIDE 4

Introduction

Motivation

◮ Lorenz attractor, chaos ◮ Tucker’s computer-aided proof ◮ goal: formal verification of program (and proof)

1 / 14

slide-5
SLIDE 5

Introduction

Motivation

◮ Lorenz attractor, chaos ◮ Tucker’s computer-aided proof ◮ goal: formal verification of program (and proof) ◮ ODE’s sensitive dependence on initial conditions

1 / 14

slide-6
SLIDE 6

Introduction

Motivation

◮ Lorenz attractor, chaos ◮ Tucker’s computer-aided proof ◮ goal: formal verification of program (and proof) ◮ ODE’s sensitive dependence on initial conditions ◮ numerical bounds from computer program

1 / 14

slide-7
SLIDE 7

Introduction

Motivation

◮ Lorenz attractor, chaos ◮ Tucker’s computer-aided proof ◮ goal: formal verification of program (and proof) ◮ ODE’s sensitive dependence on initial conditions ◮ numerical bounds from computer program

Contribution

1 / 14

slide-8
SLIDE 8

Introduction

Motivation

◮ Lorenz attractor, chaos ◮ Tucker’s computer-aided proof ◮ goal: formal verification of program (and proof) ◮ ODE’s sensitive dependence on initial conditions ◮ numerical bounds from computer program

Contribution

◮ formalization of flow:

general theory for dependence on initial conditions

1 / 14

slide-9
SLIDE 9

Introduction

Motivation

◮ Lorenz attractor, chaos ◮ Tucker’s computer-aided proof ◮ goal: formal verification of program (and proof) ◮ ODE’s sensitive dependence on initial conditions ◮ numerical bounds from computer program

Contribution

◮ formalization of flow:

general theory for dependence on initial conditions

◮ use existing verified ODE-solver [Immler, TACAS 2015]:

bounds on variational equation

1 / 14

slide-10
SLIDE 10

Structure

Flow Dependence on Initial Condition Numerics

2 / 14

slide-11
SLIDE 11

Structure

Flow Dependence on Initial Condition Numerics

3 / 14

slide-12
SLIDE 12

The Flow of ODEs

◮ ordinary differential equation

(ODE) t ∈ R x ∈ Rn ˙ x(t) = f (x(t))

3 / 14

slide-13
SLIDE 13

The Flow of ODEs

◮ ordinary differential equation

(ODE)

◮ [Immler, H¨

  • lzl @ ITP 2012]:

initial value problems t ∈ R x ∈ Rn ˙ x(t) = f (x(t))

3 / 14

slide-14
SLIDE 14

The Flow of ODEs

◮ ordinary differential equation

(ODE)

◮ [Immler, H¨

  • lzl @ ITP 2012]:

initial value problems

◮ formalize flow ϕ(x0, t):

solution w.r.t. initial condition t ∈ R x ∈ Rn ˙ x(t) = f (x(t))

3 / 14

slide-15
SLIDE 15

The Flow of ODEs

◮ ordinary differential equation

(ODE)

◮ [Immler, H¨

  • lzl @ ITP 2012]:

initial value problems

◮ formalize flow ϕ(x0, t):

solution w.r.t. initial condition

◮ formalize dependence on initial

condition t ∈ R x ∈ Rn ˙ x(t) = f (x(t))

3 / 14

slide-16
SLIDE 16

The Flow of ODEs

◮ ordinary differential equation

(ODE)

◮ [Immler, H¨

  • lzl @ ITP 2012]:

initial value problems

◮ formalize flow ϕ(x0, t):

solution w.r.t. initial condition

◮ formalize dependence on initial

condition

◮ qualitative: continuous

t ∈ R x ∈ Rn ˙ x(t) = f (x(t))

3 / 14

slide-17
SLIDE 17

The Flow of ODEs

◮ ordinary differential equation

(ODE)

◮ [Immler, H¨

  • lzl @ ITP 2012]:

initial value problems

◮ formalize flow ϕ(x0, t):

solution w.r.t. initial condition

◮ formalize dependence on initial

condition

◮ qualitative: continuous ◮ quantitative: differentiable

t ∈ R x ∈ Rn ˙ x(t) = f (x(t))

3 / 14

slide-18
SLIDE 18

The Flow of ODEs

◮ ordinary differential equation

(ODE)

◮ [Immler, H¨

  • lzl @ ITP 2012]:

initial value problems

◮ formalize flow ϕ(x0, t):

solution w.r.t. initial condition

◮ formalize dependence on initial

condition

◮ qualitative: continuous ◮ quantitative: differentiable

t ∈ R x ∈ Rn ˙ x(t) = f (x(t))

3 / 14

slide-19
SLIDE 19

Formalization

◮ continuity and differentiability are

“natural” properties (chapter 7):

4 / 14

slide-20
SLIDE 20

Formalization

◮ continuity and differentiability are

“natural” properties (chapter 7):

◮ continuous ϕ 4 / 14

slide-21
SLIDE 21

Formalization

◮ continuity and differentiability are

“natural” properties (chapter 7):

◮ continuous ϕ ◮ differentiable ϕ 4 / 14

slide-22
SLIDE 22

Formalization

◮ continuity and differentiability are

“natural” properties (chapter 7):

◮ continuous ϕ ◮ differentiable ϕ

◮ technicalities demand “a firm and

extensive background in the principles of real analysis.”

4 / 14

slide-23
SLIDE 23

Formalization

◮ continuity and differentiability are

“natural” properties (chapter 7):

◮ continuous ϕ ◮ differentiable ϕ

◮ technicalities demand “a firm and

extensive background in the principles of real analysis.”

◮ proofs in chapter 17 4 / 14

slide-24
SLIDE 24

Formalization

◮ continuity and differentiability are

“natural” properties (chapter 7):

◮ continuous ϕ ◮ differentiable ϕ

◮ technicalities demand “a firm and

extensive background in the principles of real analysis.”

◮ proofs in chapter 17

◮ interface to the rest of the theory

that hides technical constructions

4 / 14

slide-25
SLIDE 25

The Interface: ex-ivl and ϕ

◮ locally Lipschitz continuous

f : Rn → Rn (on open set X) t x0 ϕ(x0, t) ˙ x(t) = f (x(t))

5 / 14

slide-26
SLIDE 26

The Interface: ex-ivl and ϕ

◮ locally Lipschitz continuous

f : Rn → Rn (on open set X)

◮ ϕ(x0, t) :=

“unique solution of IVP ˙ x(t) = f (x(t)) ∧ x(0) = x0”

t x0 ϕ(x0, t) ˙ x(t) = f (x(t))

5 / 14

slide-27
SLIDE 27

The Interface: ex-ivl and ϕ

◮ locally Lipschitz continuous

f : Rn → Rn (on open set X)

◮ ϕ(x0, t) :=

“unique solution of IVP ˙ x(t) = f (x(t)) ∧ x(0) = x0”

◮ maximal existence interval ex-ivl

t x0 ϕ(x0, t) ˙ x(t) = f (x(t))

5 / 14

slide-28
SLIDE 28

The Interface: ex-ivl and ϕ

◮ locally Lipschitz continuous

f : Rn → Rn (on open set X)

◮ ϕ(x0, t) :=

“unique solution of IVP ˙ x(t) = f (x(t)) ∧ x(0) = x0”

◮ maximal existence interval ex-ivl

◮ t∗ ∈ ex-ivl(x1) ◮ t∗ ∈ ex-ivl(x2)

t∗ x1 x2 ˙ x(t) = f (x(t))

5 / 14

slide-29
SLIDE 29

The Interface: ex-ivl and ϕ

◮ locally Lipschitz continuous

f : Rn → Rn (on open set X)

◮ ϕ(x0, t) :=

“unique solution of IVP ˙ x(t) = f (x(t)) ∧ x(0) = x0”

◮ maximal existence interval ex-ivl

◮ t∗ ∈ ex-ivl(x1) ◮ t∗ ∈ ex-ivl(x2)

Theorem (flow solves IVP)

For t ∈ ex-ivl(x0): t x0 ϕ(x0, t) ˙ x(t) = f (x(t))

5 / 14

slide-30
SLIDE 30

The Interface: ex-ivl and ϕ

◮ locally Lipschitz continuous

f : Rn → Rn (on open set X)

◮ ϕ(x0, t) :=

“unique solution of IVP ˙ x(t) = f (x(t)) ∧ x(0) = x0”

◮ maximal existence interval ex-ivl

◮ t∗ ∈ ex-ivl(x1) ◮ t∗ ∈ ex-ivl(x2)

Theorem (flow solves IVP)

For t ∈ ex-ivl(x0):

◮ ˙

ϕ(x0, t) = f (ϕ(x0, t)) t x0 ϕ(x0, t) ˙ x(t) = f (x(t))

5 / 14

slide-31
SLIDE 31

The Interface: ex-ivl and ϕ

◮ locally Lipschitz continuous

f : Rn → Rn (on open set X)

◮ ϕ(x0, t) :=

“unique solution of IVP ˙ x(t) = f (x(t)) ∧ x(0) = x0”

◮ maximal existence interval ex-ivl

◮ t∗ ∈ ex-ivl(x1) ◮ t∗ ∈ ex-ivl(x2)

Theorem (flow solves IVP)

For t ∈ ex-ivl(x0):

◮ ˙

ϕ(x0, t) = f (ϕ(x0, t))

◮ ϕ(x0, 0) = x0

t x0 ϕ(x0, t) ˙ x(t) = f (x(t))

5 / 14

slide-32
SLIDE 32

Flow property

t t + s x

Theorem (Flow property)

(t ∈ ex-ivl(x) ∧ s ∈ ex-ivl(ϕ(x, t))) = ⇒ ϕ(x, t + s) = ϕ(ϕ(x, t), s)

6 / 14

slide-33
SLIDE 33

Structure

Flow Dependence on Initial Condition Numerics

7 / 14

slide-34
SLIDE 34

Structure

Flow Dependence on Initial Condition Numerics

8 / 14

slide-35
SLIDE 35

Technical Lemmas

◮ Gr¨

  • nwall lemma

continuous-on [0; a] g = ⇒ ∀t. 0 ≤ g(t) ≤ C + K · t g(s) ds = ⇒ ∀t ∈ [0; a]. g(t) ≤ C · eK·t

8 / 14

slide-36
SLIDE 36

Technical Lemmas

◮ Gr¨

  • nwall lemma

◮ exponential sensitivity

O(et) x1 x2 t ∈ ex-ivl(x1) ∩ ex-ivl(x2) = ⇒ |ϕ(x1, t) − ϕ(x2, t)| ∈ O(et)

8 / 14

slide-37
SLIDE 37

Technical Lemmas

◮ Gr¨

  • nwall lemma

◮ exponential sensitivity ◮ same existence interval in neighborhood

t∗ x1 x2

8 / 14

slide-38
SLIDE 38

Technical Lemmas

◮ Gr¨

  • nwall lemma

◮ exponential sensitivity ◮ same existence interval in neighborhood

t∗ x1

8 / 14

slide-39
SLIDE 39

Technical Lemmas

◮ Gr¨

  • nwall lemma

◮ exponential sensitivity ◮ same existence interval in neighborhood ◮ continuous ϕ at (x1, t∗)

t∗ x1 ∀ε > 0. ∃δ. ϕ(Uδ(x1, t∗)) ⊆ Uε(ϕ(x1, t∗))

8 / 14

slide-40
SLIDE 40

Technical Lemmas

◮ Gr¨

  • nwall lemma

◮ exponential sensitivity ◮ same existence interval in neighborhood ◮ continuous ϕ at (x1, t∗) ◮ continuity w.r.t. right-hand side of ODE

˙ x(t) = f (x(t)); ˙ x(t) = g(x(t)) |f − g| < ε = ⇒ |ϕf (x1, t) − ϕg(x1, t)| ∈ O(et)

8 / 14

slide-41
SLIDE 41

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

9 / 14

slide-42
SLIDE 42

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1 u(t) ϕ(x0, t) t x0

9 / 14

slide-43
SLIDE 43

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

9 / 14

slide-44
SLIDE 44

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

9 / 14

slide-45
SLIDE 45

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

9 / 14

slide-46
SLIDE 46

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

9 / 14

slide-47
SLIDE 47

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

9 / 14

slide-48
SLIDE 48

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) derivative of f : R → R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

Theorem (derivative of flow)

∂ϕ ∂x (x0, t) = u(t)

9 / 14

slide-49
SLIDE 49

Differentiability

ODE ˙ x(t) = f (x(t)) with f ′(x) : R

Variational Equation (R)

  • ˙

u(t) = f ′(ϕ(x0, t)) · u(t) u(0) = 1

10 / 14

slide-50
SLIDE 50

Differentiability

ODE ˙ x(t) = f (x(t)) with Df |x : Rn×n

Variational Equation (Rn)

  • ˙

u(t) = Df |ϕ(x0,t)·u(t) u(0) = 1L

10 / 14

slide-51
SLIDE 51

Differentiability

ODE ˙ x(t) = f (x(t)) with Df |x : Rn×n

Variational Equation (Rn)

  • ˙

u(t) = Df |ϕ(x0,t)·u(t) u(0) = 1L

requires: normed vector space of linear functions

◮ mathematics in Isabelle/HOL is type class based

◮ topological, metric, vector, normed spaces are type classes 10 / 14

slide-52
SLIDE 52

Differentiability

ODE ˙ x(t) = f (x(t)) with Df |x : Rn×n

Variational Equation (Rn)

  • ˙

u(t) = Df |ϕ(x0,t)·u(t) u(0) = 1L

requires: normed vector space of linear functions

◮ mathematics in Isabelle/HOL is type class based

◮ topological, metric, vector, normed spaces are type classes ◮ type of (bounded/continuous) linear functions 10 / 14

slide-53
SLIDE 53

Structure

Flow Dependence on Initial Condition Numerics

11 / 14

slide-54
SLIDE 54

Structure

Flow Dependence on Initial Condition Numerics

12 / 14

slide-55
SLIDE 55

Numerics

◮ encode derivative of flow as linear ODE

12 / 14

slide-56
SLIDE 56

Numerics

◮ encode derivative of flow as linear ODE ◮ [Immler, NFM2013/TACAS 2015]:

verified numerical enclosures for solutions of ODEs

12 / 14

slide-57
SLIDE 57

Numerics

◮ encode derivative of flow as linear ODE ◮ [Immler, NFM2013/TACAS 2015]:

verified numerical enclosures for solutions of ODEs

◮ van der Pol equations:

˙ x = y ˙ y = (1 − x2)y − x (x0, y0) = (1.25, 2.27)

12 / 14

slide-58
SLIDE 58
  • 13 / 14
slide-59
SLIDE 59
  • 13 / 14
slide-60
SLIDE 60
  • 13 / 14
slide-61
SLIDE 61
  • 13 / 14
slide-62
SLIDE 62

Conclusion

◮ clean interface: flow ϕ, ex-ivl

14 / 14

slide-63
SLIDE 63

Conclusion

◮ clean interface: flow ϕ, ex-ivl ◮ hides tedious technical constructions

14 / 14

slide-64
SLIDE 64

Conclusion

◮ clean interface: flow ϕ, ex-ivl ◮ hides tedious technical constructions ◮ employ existing verified algorithm for numerical enclosures

14 / 14

slide-65
SLIDE 65

Conclusion

◮ clean interface: flow ϕ, ex-ivl ◮ hides tedious technical constructions ◮ employ existing verified algorithm for numerical enclosures ◮ general theory with concrete application:

◮ Lorenz attractor ◮ step towards formal verification of Tucker’s proof 14 / 14