Dynamical Systems: Computability, Verification, Analysis Amaury - - PowerPoint PPT Presentation

dynamical systems computability verification analysis
SMART_READER_LITE
LIVE PREVIEW

Dynamical Systems: Computability, Verification, Analysis Amaury - - PowerPoint PPT Presentation

Dynamical Systems: Computability, Verification, Analysis Amaury Pouly Journe des nouveaux arrivants, IRIF 15 october 2018 1 / 22 Trajectory 2011 Master : ENS Lyon 2015 PhD : LIX, Polytechnique and University of Algarve, Portugal Olivier


slide-1
SLIDE 1

Dynamical Systems: Computability, Verification, Analysis

Amaury Pouly

Journée des nouveaux arrivants, IRIF

15 october 2018

1 / 22

slide-2
SLIDE 2
slide-3
SLIDE 3

Trajectory

2011 Master : ENS Lyon 2015 PhD : LIX, Polytechnique and University of Algarve, Portugal Olivier Bournez and Daniel S. Graça 2016 Postdoc : Oxford Joel Ouaknine and James Worrell 2017 Postdoc : Max Planck Institute for Software Systems Joel Ouaknine

3 / 22

slide-4
SLIDE 4

Trajectory

2011 Master : ENS Lyon 2015 PhD : LIX, Polytechnique and University of Algarve, Portugal Olivier Bournez and Daniel S. Graça 2016 Postdoc : Oxford Joel Ouaknine and James Worrell 2017 Postdoc : Max Planck Institute for Software Systems Joel Ouaknine 2018 Attracted to IRIF : starting 1st January

3 / 22

slide-5
SLIDE 5

Research Interests

Dynamical Systems Computable Analysis Models of Computation Verification

Decidability Complexity

  • questions in

with continuous space

4 / 22

slide-6
SLIDE 6

Research Interests

Dynamical Systems Computable Analysis Models of Computation Verification

Decidability Complexity

  • questions in

with continuous space

4 / 22

slide-7
SLIDE 7

What is a computer?

5 / 22

slide-8
SLIDE 8

What is a computer?

5 / 22

slide-9
SLIDE 9

What is a computer?

VS Differential Analyser “Mathematica of the 1920s” Admiralty Fire Control Table British Navy ships (WW2)

5 / 22

slide-10
SLIDE 10

Church Thesis

Computability discrete Turing machine boolean circuits logic recursive functions lambda calculus quantum analog continuous

Church Thesis

All reasonable models of computation are equivalent.

6 / 22

slide-11
SLIDE 11

Church Thesis

Complexity discrete Turing machine boolean circuits logic recursive functions lambda calculus quantum analog continuous

  • ?

?

Effective Church Thesis

All reasonable models of computation are equivalent for complexity.

6 / 22

slide-12
SLIDE 12

Polynomial Differential Equations

k

k

+

u+v u v

×

uv u v

  • u

u

General Purpose Analog Computer Differential Analyzer Reaction networks : ◮ chemical ◮ enzymatic Newton mechanics polynomial differential equations : y(0)= y0 y′(t)= p(y(t)) ◮ Rich class ◮ Stable (+,×,◦,/,ED) ◮ No closed-form solution

7 / 22

slide-13
SLIDE 13

Example of dynamical system

θ ℓ

m

g ¨ θ + g

ℓ sin(θ) = 0

8 / 22

slide-14
SLIDE 14

Example of dynamical system

θ ℓ

m

g ¨ θ + g

ℓ sin(θ) = 0

       y′

1 = y2

y′

2 = − g l y3

y′

3 = y2y4

y′

4 = −y2y3

⇔        y1 = θ y2 = ˙ θ y3 = sin(θ) y4 = cos(θ)

8 / 22

slide-15
SLIDE 15

Example of dynamical system

θ ℓ

m

g ×

  • ×
  • −g

× ×

−1

  • y1

y2 y3 y4 ¨ θ + g

ℓ sin(θ) = 0

       y′

1 = y2

y′

2 = − g l y3

y′

3 = y2y4

y′

4 = −y2y3

⇔        y1 = θ y2 = ˙ θ y3 = sin(θ) y4 = cos(θ)

8 / 22

slide-16
SLIDE 16

Computing with differential equations

Generable functions y(0)= y0 y′(x)= p(y(x)) x ∈ R f(x) = y1(x) x

y1(x)

Shannon’s notion

9 / 22

slide-17
SLIDE 17

Computing with differential equations

Generable functions y(0)= y0 y′(x)= p(y(x)) x ∈ R f(x) = y1(x) x

y1(x)

Shannon’s notion sin, cos, exp, log, ... Strictly weaker than Turing machines [Shannon, 1941]

9 / 22

slide-18
SLIDE 18

Computing with differential equations

Generable functions y(0)= y0 y′(x)= p(y(x)) x ∈ R f(x) = y1(x) x

y1(x)

Shannon’s notion sin, cos, exp, log, ... Strictly weaker than Turing machines [Shannon, 1941] Computable y(0)= q(x) y′(t)= p(y(t)) x ∈ R t ∈ R+ f(x) = lim

t→∞ y1(t)

t

f(x) x y1(t)

Modern notion

9 / 22

slide-19
SLIDE 19

Computing with differential equations

Generable functions y(0)= y0 y′(x)= p(y(x)) x ∈ R f(x) = y1(x) x

y1(x)

Shannon’s notion sin, cos, exp, log, ... Strictly weaker than Turing machines [Shannon, 1941] Computable y(0)= q(x) y′(t)= p(y(t)) x ∈ R t ∈ R+ f(x) = lim

t→∞ y1(t)

t

f(x) x y1(t)

Modern notion sin, cos, exp, log, Γ, ζ, ... Turing powerful [Bournez et al., 2007]

9 / 22

slide-20
SLIDE 20

Highlights of some results

ANALOG-PTIME ANALOG-PR

ℓ(t)

1 −1

poly(|w|) w∈L w / ∈L y1(t) y1(t) y1(t) ψ(w) ℓ(t) f(x) x y1(t)

Theorem

◮ PTIME = ANALOG-PTIME ◮ f : [a, b] → R computable in polynomial time ⇔ f ∈ ANALOG-PR ◮ Analog complexity theory based on length ◮ Time of Turing machine ⇔ length of the GPAC ◮ Purely continuous characterization of PTIME

10 / 22

slide-21
SLIDE 21

Research Interests

Dynamical Systems Computable Analysis Models of Computation Verification

Decidability Complexity

  • questions in

with continuous space

11 / 22

slide-22
SLIDE 22

A word on computability for real functions

Classical computability (Turing machine) : compute on words, integers, rationals, ...

12 / 22

slide-23
SLIDE 23

A word on computability for real functions

Classical computability (Turing machine) : compute on words, integers, rationals, ... Real computability :

12 / 22

slide-24
SLIDE 24

A word on computability for real functions

Classical computability (Turing machine) : compute on words, integers, rationals, ... Real computability :at least two different notions ◮ BSS (Blum-Shub-Smale) machine : register machine that can store arbitrary real numbers and that can compute rational functions over reals at unit cost. Comparisons between reals are allowed.

12 / 22

slide-25
SLIDE 25

A word on computability for real functions

Classical computability (Turing machine) : compute on words, integers, rationals, ... Real computability :at least two different notions ◮ BSS (Blum-Shub-Smale) machine : register machine that can store arbitrary real numbers and that can compute rational functions over reals at unit cost. Comparisons between reals are allowed. ◮ Computable Analysis : reals are represented as converging Cauchy sequences, computations are carried out by rational approximations using Turing machines. Comparisons between reals is not decidable in general. Computable implies continuous.

12 / 22

slide-26
SLIDE 26

Computable Analysis : differential equations

Let f : Rn → Rn continuous, consider y(0) = x, y′ = f(y) (1)

Question

When is y computable? What about its complexity? x y(t) x y(t)

13 / 22

slide-27
SLIDE 27

Computable Analysis : differential equations

Let f : Rn → Rn continuous, consider y(0) = x, y′ = f(y) (1) It can be very bad :

Theorem (Pour-El and Richards)

There exists a computable (hence continuous) f such that none of the solutions to (1) is computable. x y(t) x y(t)

13 / 22

slide-28
SLIDE 28

Computable Analysis : differential equations

Let f : Rn → Rn continuous, consider y(0) = x, y′ = f(y) (1) Some good news :

Theorem (Ruohonen)

If f is computable and (1) has a unique solution, then it is computable. But complexity can be unbounded x y(t) x y(t)

13 / 22

slide-29
SLIDE 29

Computable Analysis : differential equations

Let f : Rn → Rn continuous, consider y(0) = x, y′ = f(y) (1) Still things are bad :

Theorem (Buescu, Campagnolo and Graça)

Computing the maximum interval of life (or deciding if it is bounded) is undecidable, even if f is a polynomial. x y(t) x y(t)

13 / 22

slide-30
SLIDE 30

Computable Analysis : differential equations

Let f : Rn → Rn continuous, consider y(0) = x, y′ = f(y) (1) A new hope :

Theorem

If y(t) exists, we can compute r ∈ Q such |r − y(t)| 2−n in time poly (size of x and p, n, ℓ(t)) where ℓ(t) ≈ length of the curve y (between x and y(t)) x y(t) x y(t)

13 / 22

slide-31
SLIDE 31

Research Interests

Dynamical Systems Computable Analysis Models of Computation Verification

Decidability Complexity

  • questions in

with continuous space

14 / 22

slide-32
SLIDE 32

Example : 2D robot

θ ℓ Available actions : ◮ rotate arm ◮ change arm length

15 / 22

slide-33
SLIDE 33

Example : 2D robot

(xθ,yθ) (x,y)

θ ℓ Available actions : ◮ rotate arm ◮ change arm length State : X = (xθ, yθ, x, y) ∈ R4

15 / 22

slide-34
SLIDE 34

Example : 2D robot

(xθ,yθ) (x,y)

θ ℓ Available actions : ◮ rotate arm ◮ change arm length State : X = (xθ, yθ, x, y) ∈ R4 Rotate arm (increase θ) : x y ′ = −1 1 x y

yθ ′ = −1 1 xθ yθ

  • 15 / 22
slide-35
SLIDE 35

Example : 2D robot

(xθ,yθ) (x,y)

θ ℓ Available actions : ◮ rotate arm ◮ change arm length State : X = (xθ, yθ, x, y) ∈ R4 Rotate arm (increase θ) : x y ′ = −1 1 x y

yθ ′ = −1 1 xθ yθ

  • Change arm length (increase ℓ) :

x y ′ = xθ yθ

  • 15 / 22
slide-36
SLIDE 36

Example : 2D robot

(xθ,yθ) (x,y)

θ ℓ Available actions : ◮ rotate arm ◮ change arm length → Switched linear system : X ′ = AX where A ∈ {Arot, Aarm}. State : X = (xθ, yθ, x, y) ∈ R4 Rotate arm (increase θ) : x y ′ = −1 1 x y

yθ ′ = −1 1 xθ yθ

  • Change arm length (increase ℓ) :

x y ′ = xθ yθ

  • 15 / 22
slide-37
SLIDE 37

Example : mass-spring-damper system

m k b u(t) Model with external input u(t) State : X = z ∈ R Equation of motion : mz′′ = −kz − bz′ + mg + u

16 / 22

slide-38
SLIDE 38

Example : mass-spring-damper system

m k b u(t) z Model with external input u(t) State : X = z ∈ R Equation of motion : mz′′ = −kz − bz′ + mg + u

16 / 22

slide-39
SLIDE 39

Example : mass-spring-damper system

m k b u(t) z Model with external input u(t) State : X = z ∈ R Equation of motion : mz′′ = −kz − bz′ + mg + u → Affine but not first order

16 / 22

slide-40
SLIDE 40

Example : mass-spring-damper system

m k b u(t) z Model with external input u(t) State : X = z ∈ R Equation of motion : mz′′ = −kz − bz′ + mg + u → Affine but not first order State : X = (z, z′, 1) ∈ R3 Equation of motion :   z z′ 1  

=   z′ − k

mz − b mz′ + g + 1 mu

 

16 / 22

slide-41
SLIDE 41

Example : mass-spring-damper system

m k b u(t) z Model with external input u(t) Linear time invariant system : X ′ = AX + Bu with some constraints on u. State : X = z ∈ R Equation of motion : mz′′ = −kz − bz′ + mg + u → Affine but not first order State : X = (z, z′, 1) ∈ R3 Equation of motion :   z z′ 1  

=   z′ − k

mz − b mz′ + g + 1 mu

 

16 / 22

slide-42
SLIDE 42

Linear dynamical systems

Discrete case x(n + 1) = Ax(n) ◮ biology, ◮ software verification, ◮ probabilistic model checking, ◮ combinatorics, ◮ .... Continuous case x′(t) = Ax(t) ◮ biology, ◮ physics, ◮ probabilistic model checking, ◮ electrical circuits, ◮ ....

Typical questions

◮ reachability : does the trajectory reach some states? ◮ safety : does it always avoid the bad(unsafe) states?

17 / 22

slide-43
SLIDE 43

Linear dynamical systems

Discrete case x(n + 1) = Ax(n) + Bu(n) ◮ biology, ◮ software verification, ◮ probabilistic model checking, ◮ combinatorics, ◮ .... Continuous case x′(t) = Ax(t) + Bu(t) ◮ biology, ◮ physics, ◮ probabilistic model checking, ◮ electrical circuits, ◮ ....

Typical questions

◮ reachability : does the trajectory reach some states? ◮ safety : does it always avoid the bad(unsafe) states? ◮ controllability : can we control it to some state?

17 / 22

slide-44
SLIDE 44

Hybrid/Cyber-physical systems

x′ = F1(x) x′ = F2(x) φ(x) x ← R(x) guard discrete update state continuous dynamics

18 / 22

slide-45
SLIDE 45

Hybrid/Cyber-physical systems

x′ = F1(x) x′ = F2(x) φ(x) x ← R(x) guard discrete update state continuous dynamics ◮ Fi(x) = 1 : timed automata ◮ Fi(x) = ci : rectangular hybrid automata ◮ Fi(x) = Aix : linear hybrid automata

18 / 22

slide-46
SLIDE 46

Hybrid/Cyber-physical systems

x′ = F1(x) x′ = F2(x) φ(x) x ← R(x) guard discrete update state continuous dynamics ◮ Fi(x) = 1 : timed automata ◮ Fi(x) = ci : rectangular hybrid automata ◮ Fi(x) = Aix : linear hybrid automata

Typical question

Verify some temporal specification : G(P1 ⇒ (P2UP3))

“When the trajectory enters P1, it must remain within P2 until it reaches P3”

18 / 22

slide-47
SLIDE 47

Exact verification is unfeasible

x:=x0

x := M1x x := M2x . . . x := Mkx

S

19 / 22

slide-48
SLIDE 48

Exact verification is unfeasible

x:=x0

x := M1x x := M2x . . . x := Mkx

S Theorem (Markov 1947 1)

There is a fixed set of 6 × 6 integer matrices M1, . . . , Mk such that the reachability problem “y is reachable from x0 ?” is undecidable.

  • 1. Original theorems about semigroups, reformulated with hybrid systems.

19 / 22

slide-49
SLIDE 49

Exact verification is unfeasible

x:=x0

x := M1x x := M2x . . . x := Mkx

S Theorem (Markov 1947 1)

There is a fixed set of 6 × 6 integer matrices M1, . . . , Mk such that the reachability problem “y is reachable from x0 ?” is undecidable.

Theorem (Paterson 1970 1)

The mortality problem “ 0 is reachable from x0 with M1, . . . , Mk ?” is undecidable for 3 × 3 matrices.

  • 1. Original theorems about semigroups, reformulated with hybrid systems.

19 / 22

slide-50
SLIDE 50

Invariants

invariant = overapproximation of the reachable states

20 / 22

slide-51
SLIDE 51

Invariants

invariant = overapproximation of the reachable states inductive invariant = invariant preserved by the transition relation transition

20 / 22

slide-52
SLIDE 52

Invariants : example result

affine program : nondeterministic branching, no guards, affine assignments 1 2 3 x := 3x − 7y + 1 f2 f3 y := ∗ f5

Theorem

There is an algorithm which computes, for any given affine program

  • ver Q, its strongest polynomial inductive invariant.

21 / 22

slide-53
SLIDE 53

Research Interests

Dynamical Systems Computable Analysis Models of Computation Verification

Decidability Complexity

  • questions in

with continuous space

22 / 22

slide-54
SLIDE 54

Universal differential equations

Generable functions x

y1(x)

subclass of analytic functions Computable functions t

f(x) x y1(t)

any computable function

23 / 22

slide-55
SLIDE 55

Universal differential equations

Generable functions x

y1(x)

subclass of analytic functions Computable functions t

f(x) x y1(t)

any computable function x

y1(x)

23 / 22

slide-56
SLIDE 56

Universal differential algebraic equation (DAE)

x

y(x)

Theorem (Rubel, 1981)

For any continuous functions f and ε, there exists y : R → R solution to 3y′4y

′′y ′′′′2

−4y′4y

′′′2y ′′′′ + 6y′3y ′′2y ′′′y ′′′′ + 24y′2y ′′4y ′′′′

−12y′3y

′′y ′′′3 − 29y′2y ′′3y ′′′2 + 12y ′′7

= 0 such that ∀t ∈ R, |y(t) − f(t)| ε(t).

24 / 22

slide-57
SLIDE 57

Universal differential algebraic equation (DAE)

x

y(x)

Theorem (Rubel, 1981)

There exists a fixed polynomial p and k ∈ N such that for any conti- nuous functions f and ε, there exists a solution y : R → R to p(y, y′, . . . , y(k)) = 0 such that ∀t ∈ R, |y(t) − f(t)| ε(t).

24 / 22

slide-58
SLIDE 58

Universal differential algebraic equation (DAE)

x

y(x)

Theorem (Rubel, 1981)

There exists a fixed polynomial p and k ∈ N such that for any conti- nuous functions f and ε, there exists a solution y : R → R to p(y, y′, . . . , y(k)) = 0 such that ∀t ∈ R, |y(t) − f(t)| ε(t). Problem : this is «weak» result.

24 / 22

slide-59
SLIDE 59

The problem with Rubel’s DAE

The solution y is not unique, even with added initial conditions : p(y, y′, . . . , y(k)) = 0, y(0) = α0, y′(0) = α1, . . . , y(k)(0) = αk In fact, this is fundamental for Rubel’s proof to work!

25 / 22

slide-60
SLIDE 60

The problem with Rubel’s DAE

The solution y is not unique, even with added initial conditions : p(y, y′, . . . , y(k)) = 0, y(0) = α0, y′(0) = α1, . . . , y(k)(0) = αk In fact, this is fundamental for Rubel’s proof to work! ◮ Rubel’s statement : this DAE is universal ◮ More realistic interpretation : this DAE allows almost anything

Open Problem (Rubel, 1981)

Is there a universal ODE y′ = p(y)? Note : explicit polynomial ODE ⇒ unique solution

25 / 22

slide-61
SLIDE 61

Universal initial value problem (IVP)

x

y1(x)

Theorem

There exists a fixed (vector of) polynomial p such that for any continuous functions f and ε, there exists α ∈ Rd such that y(0) = α, y′(t) = p(y(t)) has a unique solution y : R → Rd and ∀t ∈ R, |y1(t) − f(t)| ε(t).

26 / 22

slide-62
SLIDE 62

Universal initial value problem (IVP)

x

y1(x)

Notes : ◮ system of ODEs, ◮ y is analytic, ◮ we need d ≈ 300.

Theorem

There exists a fixed (vector of) polynomial p such that for any continuous functions f and ε, there exists α ∈ Rd such that y(0) = α, y′(t) = p(y(t)) has a unique solution y : R → Rd and ∀t ∈ R, |y1(t) − f(t)| ε(t).

26 / 22

slide-63
SLIDE 63

Universal initial value problem (IVP)

x

y1(x)

Notes : ◮ system of ODEs, ◮ y is analytic, ◮ we need d ≈ 300.

Theorem

There exists a fixed (vector of) polynomial p such that for any continuous functions f and ε, there exists α ∈ Rd such that y(0) = α, y′(t) = p(y(t)) has a unique solution y : R → Rd and ∀t ∈ R, |y1(t) − f(t)| ε(t). Remark : α is usually transcendental, but computable from f and ε

26 / 22

slide-64
SLIDE 64

Rubel’s proof in one slide

◮ Take f(t) = e

−1 1−t2 for −1 < t < 1 and f(t) = 0 otherwise.

It satisfies (1 − t2)2f

′′(t) + 2tf ′(t) = 0.

t

27 / 22

slide-65
SLIDE 65

Rubel’s proof in one slide

◮ Take f(t) = e

−1 1−t2 for −1 < t < 1 and f(t) = 0 otherwise.

It satisfies (1 − t2)2f

′′(t) + 2tf ′(t) = 0.

◮ For any a, b, c ∈ R, y(t) = cf(at + b) satisfies 3y′4y′′y′′′′2 −4y′4y′′2y′′′′ + 6y′3y′′2y′′′y′′′′ + 24y′2y′′4y′′′′ −12y′3y′′y′′′3 − 29y′2y′′3y′′′2 + 12y′′7 = 0 Translation and rescaling : t

27 / 22

slide-66
SLIDE 66

Rubel’s proof in one slide

◮ Take f(t) = e

−1 1−t2 for −1 < t < 1 and f(t) = 0 otherwise.

It satisfies (1 − t2)2f

′′(t) + 2tf ′(t) = 0.

◮ For any a, b, c ∈ R, y(t) = cf(at + b) satisfies

3y′4y′′y′′′′2−4y′4y′′2y′′′′+6y′3y′′2y′′′y′′′′+24y′2y′′4y′′′′−12y′3y′′y′′′3−29y′2y′′3y′′′2+12y′′7=0

◮ Can glue together arbitrary many such pieces t

27 / 22

slide-67
SLIDE 67

Rubel’s proof in one slide

◮ Take f(t) = e

−1 1−t2 for −1 < t < 1 and f(t) = 0 otherwise.

It satisfies (1 − t2)2f

′′(t) + 2tf ′(t) = 0.

◮ For any a, b, c ∈ R, y(t) = cf(at + b) satisfies

3y′4y′′y′′′′2−4y′4y′′2y′′′′+6y′3y′′2y′′′y′′′′+24y′2y′′4y′′′′−12y′3y′′y′′′3−29y′2y′′3y′′′2+12y′′7=0

◮ Can glue together arbitrary many such pieces ◮ Can arrange so that

  • f is solution : piecewise pseudo-linear

t

27 / 22

slide-68
SLIDE 68

Rubel’s proof in one slide

◮ Take f(t) = e

−1 1−t2 for −1 < t < 1 and f(t) = 0 otherwise.

It satisfies (1 − t2)2f

′′(t) + 2tf ′(t) = 0.

◮ For any a, b, c ∈ R, y(t) = cf(at + b) satisfies

3y′4y′′y′′′′2−4y′4y′′2y′′′′+6y′3y′′2y′′′y′′′′+24y′2y′′4y′′′′−12y′3y′′y′′′3−29y′2y′′3y′′′2+12y′′7=0

◮ Can glue together arbitrary many such pieces ◮ Can arrange so that

  • f is solution : piecewise pseudo-linear

t Conclusion : Rubel’s equation allows any piecewise pseudo-linear functions, and those are dense in C0

27 / 22

slide-69
SLIDE 69

Universal DAE revisited

x

y1(x)

Theorem

There exists a fixed polynomial p and k ∈ N such that for any continuous functions f and ε, there exists α0, . . . , αk ∈ R such that p(y, y′, . . . , y(k)) = 0, y(0) = α0, y′(0) = α1, . . . , y(k)(0) = αk has a unique analytic solution and this solution satisfies such that |y(t) − f(t)| ε(t).

28 / 22

slide-70
SLIDE 70

Characterization of polynomial time

Definition : L ∈ ANALOG-PTIME ⇔ ∃p polynomial, ∀ word w y(0) = (ψ(w), |w|, 0, . . . , 0) y′ = p(y) ψ(w) =

|w|

  • i=1

wi2−i ℓ(t) = length of y 1 −1

y1(t) ψ(w)

29 / 22

slide-71
SLIDE 71

Characterization of polynomial time

Definition : L ∈ ANALOG-PTIME ⇔ ∃p polynomial, ∀ word w y(0) = (ψ(w), |w|, 0, . . . , 0) y′ = p(y) ψ(w) =

|w|

  • i=1

wi2−i ℓ(t) = length of y 1 −1 accept : w ∈ L computing

y1(t) ψ(w)

satisfies

  • 1. if y1(t) 1 then w ∈ L

29 / 22

slide-72
SLIDE 72

Characterization of polynomial time

Definition : L ∈ ANALOG-PTIME ⇔ ∃p polynomial, ∀ word w y(0) = (ψ(w), |w|, 0, . . . , 0) y′ = p(y) ψ(w) =

|w|

  • i=1

wi2−i ℓ(t) = length of y 1 −1 accept : w ∈ L reject : w / ∈ L computing

y1(t) ψ(w)

satisfies

  • 2. if y1(t) −1 then w /

∈ L

29 / 22

slide-73
SLIDE 73

Characterization of polynomial time

Definition : L ∈ ANALOG-PTIME ⇔ ∃p polynomial, ∀ word w y(0) = (ψ(w), |w|, 0, . . . , 0) y′ = p(y) ψ(w) =

|w|

  • i=1

wi2−i ℓ(t) = length of y 1 −1

poly(|w|)

accept : w ∈ L reject : w / ∈ L computing forbidden

y1(t) ψ(w)

satisfies

  • 3. if ℓ(t) poly(|w|) then |y1(t)| 1

29 / 22

slide-74
SLIDE 74

Characterization of polynomial time

Definition : L ∈ ANALOG-PTIME ⇔ ∃p polynomial, ∀ word w y(0) = (ψ(w), |w|, 0, . . . , 0) y′ = p(y) ψ(w) =

|w|

  • i=1

wi2−i ℓ(t) = length of y 1 −1

poly(|w|)

accept : w ∈ L reject : w / ∈ L computing forbidden

y1(t) y1(t) y1(t) ψ(w)

Theorem

PTIME = ANALOG-PTIME

29 / 22

slide-75
SLIDE 75

Characterization of real polynomial time

Definition : f : [a, b] → R in ANALOG-PR ⇔ ∃p polynomial, ∀x ∈ [a, b] y(0) = (x, 0, . . . , 0) y′ = p(y) ℓ(t)

f(x) x y1(t)

30 / 22

slide-76
SLIDE 76

Characterization of real polynomial time

Definition : f : [a, b] → R in ANALOG-PR ⇔ ∃p polynomial, ∀x ∈ [a, b] y(0) = (x, 0, . . . , 0) y′ = p(y) satisfies :

  • 1. |y1(t) − f(x)| 2−ℓ(t)

«greater length ⇒ greater precision»

  • 2. ℓ(t) t

«length increases with time» ℓ(t)

f(x) x y1(t)

30 / 22

slide-77
SLIDE 77

Characterization of real polynomial time

Definition : f : [a, b] → R in ANALOG-PR ⇔ ∃p polynomial, ∀x ∈ [a, b] y(0) = (x, 0, . . . , 0) y′ = p(y) satisfies :

  • 1. |y1(t) − f(x)| 2−ℓ(t)

«greater length ⇒ greater precision»

  • 2. ℓ(t) t

«length increases with time» ℓ(t)

f(x) x y1(t)

Theorem

f : [a, b] → R computable in polynomial time ⇔ f ∈ ANALOG-PR.

30 / 22

slide-78
SLIDE 78

Inductive invariants : example

1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-79
SLIDE 79

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-80
SLIDE 80

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-81
SLIDE 81

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-82
SLIDE 82

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-83
SLIDE 83

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-84
SLIDE 84

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-85
SLIDE 85

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-86
SLIDE 86

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-87
SLIDE 87

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-88
SLIDE 88

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-89
SLIDE 89

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-90
SLIDE 90

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

31 / 22

slide-91
SLIDE 91

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

S1 S2 S3

S1,S2,S3 is an invariant

31 / 22

slide-92
SLIDE 92

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

S1 S2 S3

S1,S2,S3 is an inductive invariant

31 / 22

slide-93
SLIDE 93

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

I1 S1 I2 S2 I3 S3

I1,I2,I3 is an invariant

31 / 22

slide-94
SLIDE 94

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

I1 I2 I3

I1,I2,I3 is NOT an inductive invariant

31 / 22

slide-95
SLIDE 95

Inductive invariants : example

x, y, z range over Q fi : R3 → R3 1 2 3 f1 f2 f3 f4 f5

I1 I2 I3

I1,I2,I3 is an inductive invariant

31 / 22