A Survey of Program Termination: Practical and Theoretical - - PowerPoint PPT Presentation

a survey of program termination practical and theoretical
SMART_READER_LITE
LIVE PREVIEW

A Survey of Program Termination: Practical and Theoretical - - PowerPoint PPT Presentation

A Survey of Program Termination: Practical and Theoretical Challenges Jo el Ouaknine Department of Computer Science, Oxford University VTSA 2014 Luxembourg, October 2014 Termination of Linear Programs x := a ; while u x 0 do x := M


slide-1
SLIDE 1

A Survey of Program Termination: Practical and Theoretical Challenges

Jo¨ el Ouaknine

Department of Computer Science, Oxford University

VTSA 2014 Luxembourg, October 2014

slide-2
SLIDE 2

Termination of Linear Programs

x := a; while u · x ≥ 0 do x := M · x;

slide-3
SLIDE 3

Termination of Linear Programs

x := a; while u · x ≥ 0 do x := M · x; Termination Problem Instance: a; u; M over Z or Q Question: Does this program terminate?

slide-4
SLIDE 4

Termination of Linear Programs

Much work on this and related problems in the literature over the last three decades: Manna, Pnueli, Kannan, Lipton, Sagiv, Podelski, Rybalchenko, Cook, Dershowitz, Tiwari, Braverman, Kov´ acs, Ben-Amram, Genaim, . . . Approaches include:

linear ranking functions size-change termination methods spectral techniques . . .

Tools include:

slide-5
SLIDE 5
slide-6
SLIDE 6

Termination of Linear Programs

Much work on this and related problems in the literature over the last three decades: Manna, Pnueli, Kannan, Lipton, Sagiv, Podelski, Rybalchenko, Cook, Dershowitz, Tiwari, Braverman, Kov´ acs, Ben-Amram, Genaim, . . . Approaches include:

linear ranking functions size-change termination methods spectral techniques . . .

Tools include:

slide-7
SLIDE 7

Termination of Linear Programs

x := a; while u · x ≥ 0 do x := M · x; Termination Problem Instance: a; u; M over Z or Q Question: Does this program terminate?

slide-8
SLIDE 8

Termination of Linear Programs

x := a; while u · x ≥ 0 do x := M · x; Termination Problem Instance: a; u; M over Z or Q Question: Does this program terminate? Theorem If M has dimension 5×5 or less, Termination is decidable.

slide-9
SLIDE 9

Termination of Linear Programs

x := a; while u · x ≥ 0 do x := M · x; Termination Problem Instance: a; u; M over Z or Q Question: Does this program terminate? Theorem If M has dimension 5×5 or less, Termination is decidable. Theorem If M is diagonalisable and has dimension 9×9 or less, Termination is decidable.

slide-10
SLIDE 10

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk

slide-11
SLIDE 11

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ?

slide-12
SLIDE 12

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0)

slide-13
SLIDE 13

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3)

slide-14
SLIDE 14

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34)

slide-15
SLIDE 15

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34) · M = (0.318, 0.08, 0.032, 0.57)

slide-16
SLIDE 16

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34) · M = (0.318, 0.08, 0.032, 0.57) · M = (0.13, 0.159, 0.1436, 0.5374)

slide-17
SLIDE 17

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34) · M = (0.318, 0.08, 0.032, 0.57) · M = (0.13, 0.159, 0.1436, 0.5374) · M = (0.18528, 0.065, 0.185, 0.51472)

slide-18
SLIDE 18

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34) · M = (0.318, 0.08, 0.032, 0.57) · M = (0.13, 0.159, 0.1436, 0.5374) · M = (0.18528, 0.065, 0.185, 0.51472) · M = (0.205444, 0.09264, 0.102056, 0.50386)

slide-19
SLIDE 19

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34) · M = (0.318, 0.08, 0.032, 0.57) · M = (0.13, 0.159, 0.1436, 0.5374) · M = (0.18528, 0.065, 0.185, 0.51472) · M = (0.205444, 0.09264, 0.102056, 0.50386) · M = (0.171, 0.102722, 0.133729, 0.500149)

slide-20
SLIDE 20

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34) · M = (0.318, 0.08, 0.032, 0.57) · M = (0.13, 0.159, 0.1436, 0.5374) · M = (0.18528, 0.065, 0.185, 0.51472) · M = (0.205444, 0.09264, 0.102056, 0.50386) · M = (0.171, 0.102722, 0.133729, 0.500149) · M = (0.185374, 0.0855, 0.136922, 0.500004)

slide-21
SLIDE 21

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34) · M = (0.318, 0.08, 0.032, 0.57) · M = (0.13, 0.159, 0.1436, 0.5374) · M = (0.18528, 0.065, 0.185, 0.51472) · M = (0.205444, 0.09264, 0.102056, 0.50386) · M = (0.171, 0.102722, 0.133729, 0.500149) · M = (0.185374, 0.0855, 0.136922, 0.500004)

slide-22
SLIDE 22

Reachability/Invariance/Approximation in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case that, starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Markov Chain Problem Instance: stochastic matrix M; r ∈ (0, 1] Question: Does ∃T s.t. ∀n ≥ T, (1, 0, . . . , 0) · Mn ·      . . . 1      ≥ r ?

slide-23
SLIDE 23

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1 un+2 = un+1 + un

slide-24
SLIDE 24

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1 un+2 = un+1 + un

slide-25
SLIDE 25

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1 un+2 = un+1 + un 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, . . .

slide-26
SLIDE 26

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1 un+5 = un+4 + un+3 − 1

3un

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, . . .

slide-27
SLIDE 27

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1, u2 = 1, u3 = 2, u4 = 3 un+5 = un+4 + un+3 − 1

3un

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, . . .

slide-28
SLIDE 28

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1, u2 = 1, u3 = 2, u4 = 3 un+5 = un+4 + un+3 − 1

3un − 10wn+5

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, . . .

slide-29
SLIDE 29

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1, u2 = 1, u3 = 2, u4 = 3 un+5 = un+4 + un+3 − 1

3un − 10wn+5

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, . . . Positivity Problem Instance: A linear recurrence sequence un Question: Is it the case that ∀n, un ≥ 0 ?

slide-30
SLIDE 30

Positivity and Zeros of Linear Recurrence Sequences

u0 = 0, u1 = 1, u2 = 1, u3 = 2, u4 = 3 un+5 = un+4 + un+3 − 1

3un − 10wn+5

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, . . . Positivity Problem Instance: A linear recurrence sequence un Question: Is it the case that ∀n, un ≥ 0 ? Skolem Problem Instance: A linear recurrence sequence un Question: Does ∃n such that un = 0 ?

slide-31
SLIDE 31

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un

slide-32
SLIDE 32

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2

slide-33
SLIDE 33

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2 Its characteristic polynomial is p(x) = x2 − x − 1

slide-34
SLIDE 34

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2 Its characteristic polynomial is p(x) = x2 − x − 1 The characteristic roots are λ1 = 1+

√ 5 2

and λ2 = 1−

√ 5 2

slide-35
SLIDE 35

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2 Its characteristic polynomial is p(x) = x2 − x − 1 The characteristic roots are λ1 = 1+

√ 5 2

and λ2 = 1−

√ 5 2

No repeated roots ⇒ Fibonacci sequence is simple

slide-36
SLIDE 36

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2 Its characteristic polynomial is p(x) = x2 − x − 1 The characteristic roots are λ1 = 1+

√ 5 2

and λ2 = 1−

√ 5 2

No repeated roots ⇒ Fibonacci sequence is simple un = 1 √ 5

  • 1 +

√ 5 2 n − 1 √ 5

  • 1 −

√ 5 2 n = c1λn

1 + c2λn 2

slide-37
SLIDE 37

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2 Its characteristic polynomial is p(x) = x2 − x − 1 The characteristic roots are λ1 = 1+

√ 5 2

and λ2 = 1−

√ 5 2

No repeated roots ⇒ Fibonacci sequence is simple un = 1 √ 5

  • 1 +

√ 5 2 n − 1 √ 5

  • 1 −

√ 5 2 n = c1λn

1 + c2λn 2

un =

  • 1

1 1 1 n 0 1

  • = vTMnw
slide-38
SLIDE 38

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2 Its characteristic polynomial is p(x) = x2 − x − 1 The characteristic roots are λ1 = 1+

√ 5 2

and λ2 = 1−

√ 5 2

No repeated roots ⇒ Fibonacci sequence is simple un = 1 √ 5

  • 1 +

√ 5 2 n − 1 √ 5

  • 1 −

√ 5 2 n = c1λn

1 + c2λn 2

un =

  • 1

1 1 1 n 0 1

  • = vTMnw

Fibonacci has order 2 ⇐ ⇒ matrix M has dimension 2×2

slide-39
SLIDE 39

Fibonacci: A Closer Look

u0 = 0, u1 = 1 un+2 = un+1 + un The Fibonacci sequence has order 2 Its characteristic polynomial is p(x) = x2 − x − 1 The characteristic roots are λ1 = 1+

√ 5 2

and λ2 = 1−

√ 5 2

No repeated roots ⇒ Fibonacci sequence is simple un = 1 √ 5

  • 1 +

√ 5 2 n − 1 √ 5

  • 1 −

√ 5 2 n = c1λn

1 + c2λn 2

un =

  • 1

1 1 1 n 0 1

  • = vTMnw

Fibonacci has order 2 ⇐ ⇒ matrix M has dimension 2×2 Fibonacci sequence is simple ⇐ ⇒ M is diagonalisable

slide-40
SLIDE 40

Linear Recurrence Sequences

Numbers u0, u1, u2, . . . form a linear recurrence sequence if there exist k and constants a1, . . . , ak, such that ∀n ≥ 0, un+k = a1un+k−1 + a2un+k−2 + . . . + akun

slide-41
SLIDE 41

Linear Recurrence Sequences

Numbers u0, u1, u2, . . . form a linear recurrence sequence if there exist k and constants a1, . . . , ak, such that ∀n ≥ 0, un+k = a1un+k−1 + a2un+k−2 + . . . + akun k is the order of the sequence

slide-42
SLIDE 42

Linear Recurrence Sequences

Numbers u0, u1, u2, . . . form a linear recurrence sequence if there exist k and constants a1, . . . , ak, such that ∀n ≥ 0, un+k = a1un+k−1 + a2un+k−2 + . . . + akun k is the order of the sequence Its characteristic polynomial is p(x) = xk − a1xk−1 − a2xk−2 − . . . − ak

slide-43
SLIDE 43

Linear Recurrence Sequences

Numbers u0, u1, u2, . . . form a linear recurrence sequence if there exist k and constants a1, . . . , ak, such that ∀n ≥ 0, un+k = a1un+k−1 + a2un+k−2 + . . . + akun k is the order of the sequence Its characteristic polynomial is p(x) = xk − a1xk−1 − a2xk−2 − . . . − ak The linear recurrence sequence is simple if its characteristic polynomial has no repeated roots

slide-44
SLIDE 44

Linear Recurrence Sequences

Numbers u0, u1, u2, . . . form a linear recurrence sequence if there exist k and constants a1, . . . , ak, such that ∀n ≥ 0, un+k = a1un+k−1 + a2un+k−2 + . . . + akun k is the order of the sequence Its characteristic polynomial is p(x) = xk − a1xk−1 − a2xk−2 − . . . − ak The linear recurrence sequence is simple if its characteristic polynomial has no repeated roots Let λ1, λ2, . . . , λm ∈ C be the characteristic roots. There exist polynomials p1(x), p2(x), . . . , pm(x) ∈ C[x] such that un = p1(n)λn

1 + p2(n)λn 2 + . . . + pm(n)λn m

In general λ1, . . . , λk and all coefficients of p1(x), . . . , pm(x) are algebraic numbers

slide-45
SLIDE 45

Linear Recurrence Sequences

Numbers u0, u1, u2, . . . form a linear recurrence sequence if there exist k and constants a1, . . . , ak, such that ∀n ≥ 0, un+k = a1un+k−1 + a2un+k−2 + . . . + akun k is the order of the sequence Its characteristic polynomial is p(x) = xk − a1xk−1 − a2xk−2 − . . . − ak The linear recurrence sequence is simple if its characteristic polynomial has no repeated roots Let λ1, λ2, . . . , λm ∈ C be the characteristic roots. There exist polynomials p1(x), p2(x), . . . , pm(x) ∈ C[x] such that un = p1(n)λn

1 + p2(n)λn 2 + . . . + pm(n)λn m

In general λ1, . . . , λk and all coefficients of p1(x), . . . , pm(x) are algebraic numbers If the linear recurrence sequence is simple then the polynomials p1(x), . . . , pm(x) are all constant

slide-46
SLIDE 46

Decision Problems for Linear Recurrence Sequences

Let un be a linear recurrence sequence Skolem Problem Does ∃n such that un = 0 ?

slide-47
SLIDE 47

Decision Problems for Linear Recurrence Sequences

Let un be a linear recurrence sequence Skolem Problem Does ∃n such that un = 0 ? Positivity Problem Is it the case that ∀n, un ≥ 0 ?

slide-48
SLIDE 48

Decision Problems for Linear Recurrence Sequences

Let un be a linear recurrence sequence Skolem Problem Does ∃n such that un = 0 ? Positivity Problem Is it the case that ∀n, un ≥ 0 ? Ultimate Positivity Problem Does ∃T such that, ∀n ≥ T, un ≥ 0 ?

slide-49
SLIDE 49

Related Work and Applications

Theoretical biology

Analysis of L-systems Population dynamics

Software verification

Termination of linear programs

Probabilistic model checking

Reachability, invariance, and approximation in Markov chains Stochastic logics

Quantum computing

Threshold problems for quantum automata

Economics Combinatorics Discrete linear dynamical systems Statistical physics . . .

slide-50
SLIDE 50

The Skolem Problem

Skolem Problem Does ∃n such that un = 0 ? Open for about 80 years!

slide-51
SLIDE 51

The Skolem Problem

Skolem Problem Does ∃n such that un = 0 ? Open for about 80 years! “It is faintly outrageous that this problem is still open; it is saying that we do not know how to decide the Halting Problem even for ‘linear’ automata!” Terence Tao

slide-52
SLIDE 52

The Skolem Problem

Skolem Problem Does ∃n such that un = 0 ? Open for about 80 years! “It is faintly outrageous that this problem is still open; it is saying that we do not know how to decide the Halting Problem even for ‘linear’ automata!” Terence Tao “. . . a mathematical embarrassment . . . ” Richard Lipton

slide-53
SLIDE 53

The Skolem-Mahler-Lech Theorem

Theorem (Skolem 1934; Mahler 1935, 1956; Lech 1953) The set of zeros of a linear recurrence sequence is semilinear: {n : un = 0} = F ∪ A1 ∪ . . . ∪ Aℓ where F is finite and each Ai is a full arithmetic progression.

slide-54
SLIDE 54

The Skolem-Mahler-Lech Theorem

Theorem (Skolem 1934; Mahler 1935, 1956; Lech 1953) The set of zeros of a linear recurrence sequence is semilinear: {n : un = 0} = F ∪ A1 ∪ . . . ∪ Aℓ where F is finite and each Ai is a full arithmetic progression. All known proofs make essential use of p-adic techniques

slide-55
SLIDE 55

The Skolem-Mahler-Lech Theorem

Theorem (Skolem 1934; Mahler 1935, 1956; Lech 1953) The set of zeros of a linear recurrence sequence is semilinear: {n : un = 0} = F ∪ A1 ∪ . . . ∪ Aℓ where F is finite and each Ai is a full arithmetic progression. All known proofs make essential use of p-adic techniques Theorem (Berstel and Mignotte 1976) In Skolem-Mahler-Lech, the infinite part (arithmetic progressions A1, . . . , Aℓ) is fully constructive.

slide-56
SLIDE 56

The Skolem Problem at Low Orders

Skolem Problem Does ∃n such that un = 0 ? Let un be a linear recurrence sequence of fixed order

slide-57
SLIDE 57

The Skolem Problem at Low Orders

Skolem Problem Does ∃n such that un = 0 ? Let un be a linear recurrence sequence of fixed order Theorem (folklore) For orders 1 and 2, Skolem is decidable.

slide-58
SLIDE 58

The Skolem Problem at Low Orders

Skolem Problem Does ∃n such that un = 0 ? Let un be a linear recurrence sequence of fixed order Theorem (folklore) For orders 1 and 2, Skolem is decidable. Theorem (Mignotte, Shorey, Tijdeman 1984; Vereshchagin 1985) For orders 3 and 4, Skolem is decidable.

slide-59
SLIDE 59

The Skolem Problem at Low Orders

Skolem Problem Does ∃n such that un = 0 ? Let un be a linear recurrence sequence of fixed order Theorem (folklore) For orders 1 and 2, Skolem is decidable. Theorem (Mignotte, Shorey, Tijdeman 1984; Vereshchagin 1985) For orders 3 and 4, Skolem is decidable. Critical ingredient is Baker’s theorem for linear forms in logarithms, which earned Baker the Fields Medal in 1970.

slide-60
SLIDE 60

The Skolem Problem at Low Orders

Skolem Problem Does ∃n such that un = 0 ? Let un be a linear recurrence sequence of fixed order Theorem (folklore) For orders 1 and 2, Skolem is decidable. Theorem (Mignotte, Shorey, Tijdeman 1984; Vereshchagin 1985) For orders 3 and 4, Skolem is decidable. Decidability for order 5 was announced in 2005 by four Finnish mathematicians in a technical report (as yet unpublished). Their proof appears to have a serious gap.

slide-61
SLIDE 61

The Positivity and Ultimate Positivity Problems

Positivity and Ultimate Positivity open since at least 1970s “In our estimation, these will be very difficult problems.” Matti Soittola

slide-62
SLIDE 62

The Positivity and Ultimate Positivity Problems

Positivity and Ultimate Positivity open since at least 1970s “In our estimation, these will be very difficult problems.” Matti Soittola Theorem (folklore) Decidability of Positivity ⇒ decidability of Skolem.

slide-63
SLIDE 63

The Positivity and Ultimate Positivity Problems

Theorem (Burke, Webb 1981) For order 2, Ultimate Positivity is decidable.

slide-64
SLIDE 64

The Positivity and Ultimate Positivity Problems

Theorem (Burke, Webb 1981) For order 2, Ultimate Positivity is decidable. Theorem (Nagasaka, Shiue 1990) For order 3 with repeated roots, Ultimate Positivity is decidable.

slide-65
SLIDE 65

The Positivity and Ultimate Positivity Problems

Theorem (Burke, Webb 1981) For order 2, Ultimate Positivity is decidable. Theorem (Nagasaka, Shiue 1990) For order 3 with repeated roots, Ultimate Positivity is decidable. Theorem (Halava, Harju, Hirvensalo 2006) For order 2, Positivity is decidable.

slide-66
SLIDE 66

The Positivity and Ultimate Positivity Problems

Theorem (Burke, Webb 1981) For order 2, Ultimate Positivity is decidable. Theorem (Nagasaka, Shiue 1990) For order 3 with repeated roots, Ultimate Positivity is decidable. Theorem (Halava, Harju, Hirvensalo 2006) For order 2, Positivity is decidable. Theorem (Laohakosol and Tangsupphathawat 2009) For order 3, Positivity and Ultimate Positivity are decidable.

slide-67
SLIDE 67

The Positivity and Ultimate Positivity Problems

Theorem (Burke, Webb 1981) For order 2, Ultimate Positivity is decidable. Theorem (Nagasaka, Shiue 1990) For order 3 with repeated roots, Ultimate Positivity is decidable. Theorem (Halava, Harju, Hirvensalo 2006) For order 2, Positivity is decidable. Theorem (Laohakosol and Tangsupphathawat 2009) For order 3, Positivity and Ultimate Positivity are decidable. In Colloquium Mathematicum 128:1 (2012), Tangsupphathawat, Punnim, and Laohakosol claimed decidability of Positivity and Ultimate Positivity for order 4 (and noted being stuck for order 5). Unfortunately, their proof contains a major error.

slide-68
SLIDE 68

Some Recent Results (I)

Theorem Positivity is decidable for order 5 or less.

slide-69
SLIDE 69

Some Recent Results (I)

Theorem Positivity is decidable for order 5 or less. The complexity is in coNPPPPPPP (⊆ PSPACE).

slide-70
SLIDE 70

Some Recent Results (I)

Theorem Positivity is decidable for order 5 or less. The complexity is in coNPPPPPPP (⊆ PSPACE). Theorem Ultimate Positivity is decidable for order 5 or less. The complexity is in P.

slide-71
SLIDE 71

Some Recent Results (I)

Theorem Positivity is decidable for order 5 or less. The complexity is in coNPPPPPPP (⊆ PSPACE). Theorem Ultimate Positivity is decidable for order 5 or less. The complexity is in P. Theorem At order 6, for both Positivity and Ultimate Positivity, proof of decidability would entail major breakthroughs in analytic number theory (Diophantine approximation of transcendental numbers).

slide-72
SLIDE 72

Some Recent Results (II)

Theorem For simple linear recurrence sequences of order 9 or less, Positivity is decidable. The complexity is in coNPPPPPPP (⊆ PSPACE).

slide-73
SLIDE 73

Some Recent Results (II)

Theorem For simple linear recurrence sequences of order 9 or less, Positivity is decidable. The complexity is in coNPPPPPPP (⊆ PSPACE). We don’t know what happens at order 10. But:

slide-74
SLIDE 74

Some Recent Results (II)

Theorem For simple linear recurrence sequences of order 9 or less, Positivity is decidable. The complexity is in coNPPPPPPP (⊆ PSPACE). We don’t know what happens at order 10. But: Proposition Decidability of Positivity for simple linear recurrence sequences of

  • rder 14 ⇒ decidability of general Skolem Problem at order 5.
slide-75
SLIDE 75

Some Recent Results (II)

Theorem For simple linear recurrence sequences of order 9 or less, Positivity is decidable. The complexity is in coNPPPPPPP (⊆ PSPACE). We don’t know what happens at order 10. But: Proposition Decidability of Positivity for simple linear recurrence sequences of

  • rder 14 ⇒ decidability of general Skolem Problem at order 5.

Theorem For simple linear recurrence sequences, Ultimate Positivity is decidable for all orders.

slide-76
SLIDE 76

Some Recent Results (II)

Theorem For simple linear recurrence sequences of order 9 or less, Positivity is decidable. The complexity is in coNPPPPPPP (⊆ PSPACE). We don’t know what happens at order 10. But: Proposition Decidability of Positivity for simple linear recurrence sequences of

  • rder 14 ⇒ decidability of general Skolem Problem at order 5.

Theorem For simple linear recurrence sequences, Ultimate Positivity is decidable for all orders. For each fixed order k, complexity is in P (but depends on k).

slide-77
SLIDE 77

Some Recent Results (II)

Theorem For simple linear recurrence sequences of order 9 or less, Positivity is decidable. The complexity is in coNPPPPPPP (⊆ PSPACE). We don’t know what happens at order 10. But: Proposition Decidability of Positivity for simple linear recurrence sequences of

  • rder 14 ⇒ decidability of general Skolem Problem at order 5.

Theorem For simple linear recurrence sequences, Ultimate Positivity is decidable for all orders. For each fixed order k, complexity is in P (but depends on k). In the general case, complexity is in PSPACE and co∃R-hard.

slide-78
SLIDE 78

Known Unknowns

“There are things that we know we don’t know. . . ” Donald Rumsfeld

slide-79
SLIDE 79

Diophantine Approximation

How well can one approximate a real number x with rationals?

  • x − p

q

slide-80
SLIDE 80

Diophantine Approximation

How well can one approximate a real number x with rationals?

  • x − p

q

  • Theorem (Dirichlet 1842)

There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 .

slide-81
SLIDE 81

Diophantine Approximation

How well can one approximate a real number x with rationals?

  • x − p

q

  • Theorem (Dirichlet 1842)

There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 . Theorem (Hurwitz 1891) There are infinitely many integers p, q such that

  • x − p

q

  • <

1 √ 5q2 .

slide-82
SLIDE 82

Diophantine Approximation

How well can one approximate a real number x with rationals?

  • x − p

q

  • Theorem (Dirichlet 1842)

There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 . Theorem (Hurwitz 1891) There are infinitely many integers p, q such that

  • x − p

q

  • <

1 √ 5q2 . Moreover,

1 √ 5 is the best possible constant that will work for all

real numbers x.

slide-83
SLIDE 83

Diophantine Approximation

Definition Let x ∈ R. The Lagrange constant L∞(x) is: L∞(x) = inf

  • c :
  • x − p

q

  • < c

q2 has infinitely many solutions

  • .
slide-84
SLIDE 84

Diophantine Approximation

Definition Let x ∈ R. The Lagrange constant L∞(x) is: L∞(x) = inf

  • c :
  • x − p

q

  • < c

q2 has infinitely many solutions

  • .

L∞(x) is closely related to the continued fraction expansion of x

slide-85
SLIDE 85

Diophantine Approximation

Definition Let x ∈ R. The Lagrange constant L∞(x) is: L∞(x) = inf

  • c :
  • x − p

q

  • < c

q2 has infinitely many solutions

  • .

L∞(x) is closely related to the continued fraction expansion of x Almost all reals x have L∞(x) = 0 [Khinchin 1926]

slide-86
SLIDE 86

Diophantine Approximation

Definition Let x ∈ R. The Lagrange constant L∞(x) is: L∞(x) = inf

  • c :
  • x − p

q

  • < c

q2 has infinitely many solutions

  • .

L∞(x) is closely related to the continued fraction expansion of x Almost all reals x have L∞(x) = 0 [Khinchin 1926] However if x is a real algebraic number of degree 2, L∞(x) = 0 [Euler, Lagrange]

slide-87
SLIDE 87

Diophantine Approximation

Definition Let x ∈ R. The Lagrange constant L∞(x) is: L∞(x) = inf

  • c :
  • x − p

q

  • < c

q2 has infinitely many solutions

  • .

L∞(x) is closely related to the continued fraction expansion of x Almost all reals x have L∞(x) = 0 [Khinchin 1926] However if x is a real algebraic number of degree 2, L∞(x) = 0 [Euler, Lagrange] All transcendental numbers x have 0 ≤ L∞(x) ≤ 1/3 [Markov 1879]

slide-88
SLIDE 88

Diophantine Approximation

Definition Let x ∈ R. The Lagrange constant L∞(x) is: L∞(x) = inf

  • c :
  • x − p

q

  • < c

q2 has infinitely many solutions

  • .

L∞(x) is closely related to the continued fraction expansion of x Almost all reals x have L∞(x) = 0 [Khinchin 1926] However if x is a real algebraic number of degree 2, L∞(x) = 0 [Euler, Lagrange] All transcendental numbers x have 0 ≤ L∞(x) ≤ 1/3 [Markov 1879] Almost nothing else is known about any specific irrational number!

slide-89
SLIDE 89

Hardness

Let T = {θ ∈ (0, 1) : e2πiθ ∈ Q(i)} \ {1

4, 1 2, 3 4}

slide-90
SLIDE 90

Hardness

Let T = {θ ∈ (0, 1) : e2πiθ ∈ Q(i)} \ {1

4, 1 2, 3 4} e 2 θ πi 2πθ a+bi =

slide-91
SLIDE 91

Hardness

Let T = {θ ∈ (0, 1) : e2πiθ ∈ Q(i)} \ {1

4, 1 2, 3 4} e 2 θ πi 2πθ a+bi =

T is a countable set of transcendental numbers

slide-92
SLIDE 92

Hardness

Let T = {θ ∈ (0, 1) : e2πiθ ∈ Q(i)} \ {1

4, 1 2, 3 4} e 2 θ πi 2πθ a+bi =

T is a countable set of transcendental numbers Theorem Suppose that Ultimate Positivity is decidable for integer linear recurrence sequences of order 6. Then for any θ ∈ T , L∞(θ) is computable.

slide-93
SLIDE 93

Positivity of Simple LRS: Algorithm Sketch

Theorem For simple linear recurrence sequences: Ultimate Positivity is decidable for all orders. Positivity is decidable for orders 9 or less.

slide-94
SLIDE 94

Positivity of Simple LRS: Algorithm Sketch

Theorem For simple linear recurrence sequences: Ultimate Positivity is decidable for all orders. Positivity is decidable for orders 9 or less. Input: a simple linear recurrence sequence un∞

n=0 of order ≤ 9

slide-95
SLIDE 95

Positivity of Simple LRS: Algorithm Sketch

Theorem For simple linear recurrence sequences: Ultimate Positivity is decidable for all orders. Positivity is decidable for orders 9 or less. Input: a simple linear recurrence sequence un∞

n=0 of order ≤ 9

1 Decide if un∞

n=0 is ultimately positive.

If it isn’t, un∞

n=0 is not positive. Otherwise:

slide-96
SLIDE 96

Positivity of Simple LRS: Algorithm Sketch

Theorem For simple linear recurrence sequences: Ultimate Positivity is decidable for all orders. Positivity is decidable for orders 9 or less. Input: a simple linear recurrence sequence un∞

n=0 of order ≤ 9

1 Decide if un∞

n=0 is ultimately positive.

If it isn’t, un∞

n=0 is not positive. Otherwise:

2 Compute a threshold T such that un∞

n=T is positive.

slide-97
SLIDE 97

Positivity of Simple LRS: Algorithm Sketch

Theorem For simple linear recurrence sequences: Ultimate Positivity is decidable for all orders. Positivity is decidable for orders 9 or less. Input: a simple linear recurrence sequence un∞

n=0 of order ≤ 9

1 Decide if un∞

n=0 is ultimately positive.

If it isn’t, un∞

n=0 is not positive. Otherwise:

2 Compute a threshold T such that un∞

n=T is positive.

3 Check individually whether u0 ≥ 0, u1 ≥ 0, . . . , uT−1 ≥ 0.

slide-98
SLIDE 98

Lower Bounds in Diophantine Approximation

Theorem (Dirichlet 1842) There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 .

slide-99
SLIDE 99

Lower Bounds in Diophantine Approximation

Theorem (Dirichlet 1842) There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 . Theorem (Roth 1955) Let x ∈ R be algebraic. Then for any ε > 0 there are finitely many integers p, q such that

  • x − p

q

  • <

1 q2+ε .

slide-100
SLIDE 100

Lower Bounds in Diophantine Approximation

Theorem (Dirichlet 1842) There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 . Theorem (Roth 1955) Let x ∈ R be algebraic. Then for any ε > 0 there are finitely many integers p, q such that

  • x − p

q

  • <

1 q2+ε . Non-effective!

slide-101
SLIDE 101

Lower Bounds in Diophantine Approximation

Theorem (Dirichlet 1842) There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 . Theorem (Roth 1955) Let x ∈ R be algebraic. Then for any ε > 0 there are finitely many integers p, q such that

  • x − p

q

  • <

1 q2+ε . Non-effective! Subsequent vast higher-dimensional generalisations:

Schmidt’s Subspace Theorem (1965–1972)

slide-102
SLIDE 102

Lower Bounds in Diophantine Approximation

Theorem (Dirichlet 1842) There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 . Theorem (Roth 1955) Let x ∈ R be algebraic. Then for any ε > 0 there are finitely many integers p, q such that

  • x − p

q

  • <

1 q2+ε . Non-effective! Subsequent vast higher-dimensional generalisations:

Schmidt’s Subspace Theorem (1965–1972) Schlickewei’s p-adic Subspace Theorem (1977)

slide-103
SLIDE 103

Lower Bounds in Diophantine Approximation

Theorem (Dirichlet 1842) There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 . Theorem (Roth 1955) Let x ∈ R be algebraic. Then for any ε > 0 there are finitely many integers p, q such that

  • x − p

q

  • <

1 q2+ε . Non-effective! Subsequent vast higher-dimensional generalisations:

Schmidt’s Subspace Theorem (1965–1972) Schlickewei’s p-adic Subspace Theorem (1977)

⇒ Evertse, van der Poorten, and Schlickewei’s ⇒ lower bounds on sums of S-units (1984–1985)

slide-104
SLIDE 104

Lower Bounds on Sums of S-Units: A Simple Example

How small can the following expression get? |3x − 7y| where x, y ∈ N

slide-105
SLIDE 105

Lower Bounds on Sums of S-Units: A Simple Example

How small can the following expression get? |3x − 7y| where x, y ∈ N For all ε > 0, if x and y are ‘large enough’, then |3x − 7y| > M1−ε where M = max{3x, 7y}

slide-106
SLIDE 106

Lower Bounds on Sums of S-Units: A Simple Example

How small can the following expression get? |3x − 7y| where x, y ∈ N For all ε > 0, if x and y are ‘large enough’, then |3x − 7y| > M1−ε where M = max{3x, 7y} Constructive proof requires Baker’s Theorem (!)

slide-107
SLIDE 107

Lower Bounds on Sums of S-Units: A Simple Example

How about | 3x ± 7y ± 13z | where x, y, z ∈ N

slide-108
SLIDE 108

Lower Bounds on Sums of S-Units: A Simple Example

How about | 3x ± 7y ± 13z | where x, y, z ∈ N For all ε > 0, if x, y, and z are ‘large enough’, then | 3x ± 7y ± 13z | > M1−ε where M = max{3x, 7y, 13z}

slide-109
SLIDE 109

Lower Bounds on Sums of S-Units: A Simple Example

How about | 3x ± 7y ± 13z | where x, y, z ∈ N For all ε > 0, if x, y, and z are ‘large enough’, then | 3x ± 7y ± 13z | > M1−ε where M = max{3x, 7y, 13z} No constructive proof is known !

slide-110
SLIDE 110

Lower Bounds on Sums of S-Units and Simple Linear Recurrence Sequences

We use complex algebraic-integer extensions of such results to study expressions of the form: un = c1λn

1 + c2λn 2 + . . . + ckλn k + r(n)

slide-111
SLIDE 111

Lower Bounds on Sums of S-Units and Simple Linear Recurrence Sequences

We use complex algebraic-integer extensions of such results to study expressions of the form: un = c1λn

1 + c2λn 2 + . . . + ckλn k + r(n)

slide-112
SLIDE 112

Lower Bounds on Sums of S-Units and Simple Linear Recurrence Sequences

We use complex algebraic-integer extensions of such results to study expressions of the form: un = c1λn

1 + c2λn 2 + . . . + ckλn k + r(n)

slide-113
SLIDE 113

Lower Bounds on Sums of S-Units and Simple Linear Recurrence Sequences

We use complex algebraic-integer extensions of such results to study expressions of the form: un = c1λn

1 + c2λn 2 + . . . + ckλn k + r(n)

f (z1, z2, . . . , zk) = c1z1 + c2z2 + . . . + ckzk

slide-114
SLIDE 114

Main Tools and Techniques

Algebraic and analytic number theory, Diophantine geometry

p-adic techniques Baker’s theorem on linear forms in logarithms Kronecker’s theorem on simultaneous Diophantine approximation Masser’s results on multiplicative relationships among algebraic numbers Schmidt’s Subspace theorem and Schlickewei’s p-adic extension Sums of S-units techniques Gelfond-Schneider theorem Other Diophantine geometry and approximation techniques

Real algebraic geometry

slide-115
SLIDE 115

Decision and Synthesis Problems for Linear Dynamical Systems

A fresh look at an old area Lots of cool problems Lots of interesting mathematics Many connections to variety of other fields