Decision Problems for Linear Recurrence Sequences Jo el Ouaknine - - PowerPoint PPT Presentation

decision problems for linear recurrence sequences
SMART_READER_LITE
LIVE PREVIEW

Decision Problems for Linear Recurrence Sequences Jo el Ouaknine - - PowerPoint PPT Presentation

Decision Problems for Linear Recurrence Sequences Jo el Ouaknine Department of Computer Science, Oxford University (Joint work with James Worrell and Matt Daws) RP 2012 Bordeaux, September 2012 Termination of Simple Linear Programs x := a


slide-1
SLIDE 1

Decision Problems for Linear Recurrence Sequences

Jo¨ el Ouaknine

Department of Computer Science, Oxford University (Joint work with James Worrell and Matt Daws)

RP 2012 Bordeaux, September 2012

slide-2
SLIDE 2

Termination of Simple Linear Programs

x := a; while cond(x) do x := M · x + b;

slide-3
SLIDE 3

Termination of Simple Linear Programs

x := a; while cond(x) do x := M · x + b; where cond(x) is linear, e.g. ‘u · x = 0’ or ‘u · x ≥ 5’.

slide-4
SLIDE 4

Termination of Simple Linear Programs

x := a; while cond(x) do x := M · x + b; where cond(x) is linear, e.g. ‘u · x = 0’ or ‘u · x ≥ 5’. Termination Problem Instance: a; cond; M; b Question: Does this program terminate?

slide-5
SLIDE 5

Termination of Simple 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, Ben-Amram, Genaim, . . . Approaches include:

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

Tools include:

slide-6
SLIDE 6

Reachability and Invariance in Markov Chains

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

slide-7
SLIDE 7

Reachability and Invariance in Markov Chains

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

slide-8
SLIDE 8

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 1/2 ?

slide-9
SLIDE 9

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 1/2 ? (1, 0, 0, 0)

slide-10
SLIDE 10

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3)

slide-11
SLIDE 11

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 1/2 ? (1, 0, 0, 0) · M = (0, 0.5, 0.2, 0.3) · M = (0.16, 0, 0.5, 0.34)

slide-12
SLIDE 12

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 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-13
SLIDE 13

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 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.5674)

slide-14
SLIDE 14

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 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.5674) · M = (0.18528, 0.065, 0.185, 0.56472)

slide-15
SLIDE 15

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 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.5674) · M = (0.18528, 0.065, 0.185, 0.56472) · M = (0.205444, 0.09264, 0.102056, 0.59986)

slide-16
SLIDE 16

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 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.5674) · M = (0.18528, 0.065, 0.185, 0.56472) · M = (0.205444, 0.09264, 0.102056, 0.59986) · M = (0.171, 0.102722, 0.133729, 0.592549)

slide-17
SLIDE 17

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 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.5674) · M = (0.18528, 0.065, 0.185, 0.56472) · M = (0.205444, 0.09264, 0.102056, 0.59986) · M = (0.171, 0.102722, 0.133729, 0.592549) · M = (0.185374, 0.0855, 0.136922, 0.592204)

slide-18
SLIDE 18

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 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.5674) · M = (0.18528, 0.065, 0.185, 0.56472) · M = (0.205444, 0.09264, 0.102056, 0.59986) · M = (0.171, 0.102722, 0.133729, 0.592549) · M = (0.185374, 0.0855, 0.136922, 0.592204)

slide-19
SLIDE 19

Reachability and Invariance in Markov Chains

M: Markov chain over states s1, . . . , sk Is it the case, say, that starting in state s1, ultimately I am in state sk with probability at least 1/2 ? Does there exist T such that, for all n ≥ T Prob(‘being in sk after n steps’) ≥ 1/2 ? Ultimate Invariance Problem Instance: stochastic matrix M; r ∈ (0, 1] Question: Does ∃T s.t. ∀n ≥ T, (1, 0, . . . , 0) · Mn ·      . . . 1      ≥ r ?

slide-20
SLIDE 20

Positivity of Linear Recurrence Sequences

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

slide-21
SLIDE 21

Positivity of Linear Recurrence Sequences

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

slide-22
SLIDE 22

Positivity of Linear Recurrence Sequences

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

slide-23
SLIDE 23

Positivity of Linear Recurrence Sequences

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

3un

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

slide-24
SLIDE 24

Positivity of Linear Recurrence Sequences

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

3un

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

slide-25
SLIDE 25

Positivity of Linear Recurrence Sequences

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

3un − 10wn+5

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

slide-26
SLIDE 26

Positivity of Linear Recurrence Sequences

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

3un − 10wn+5

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-27
SLIDE 27

Sample Decision Problems

Termination Problem for Simple Linear Programs Instance: a; u; M; b over Z Question: Does this program terminate? x := a; while u · x = 0 do x := M · x + b; Ultimate Invariance Problem for Markov Chains Instance: A stochastic matrix M over Q Question: Does ∃T s.t. ∀n ≥ T, (1, 0, . . . , 0) · Mn ·      . . . 1      ≥ 1

2 ?

Positivity Problem for Linear Recurrence Sequences Instance: A linear recurrence sequence un over Z or Q Question: Is it the case that ∀n, un ≥ 0 ?

slide-28
SLIDE 28

Linear Recurrence Sequences

Definition A linear recurrence sequence is a sequence u0, u1, u2, . . . of real numbers such that 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-29
SLIDE 29

Linear Recurrence Sequences

Definition A linear recurrence sequence is a sequence u0, u1, u2, . . . of real numbers such that 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 For decision problems, will normally restrict to sequences over integers, rationals, or algebraic numbers

slide-30
SLIDE 30

Decision Problems for Linear Recurrence Sequences

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

slide-31
SLIDE 31

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-32
SLIDE 32

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-33
SLIDE 33

Related Work and Applications

Theoretical biology

Analysis of L-systems Population dynamics

Software verification

Termination of linear programs

Probabilistic model checking

Reachability and invariance in Markov chains Stochatic logics

Quantum computing

Threshold problems for quantum automata

Economics Combinatorics Term rewriting Generating functions . . .

slide-34
SLIDE 34

The Skolem Problem

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

slide-35
SLIDE 35

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-36
SLIDE 36

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-37
SLIDE 37

The Skolem-Mahler-Lech Theorem

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

slide-38
SLIDE 38

The Skolem-Mahler-Lech Theorem

Theorem (Skolem 1934; Mahler 1935, 1956; Lech 1953) The set of zeros of a linear recurrence sequence is semi-linear: {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-39
SLIDE 39

The Skolem-Mahler-Lech Theorem

Theorem (Skolem 1934; Mahler 1935, 1956; Lech 1953) The set of zeros of a linear recurrence sequence is semi-linear: {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 effective.

slide-40
SLIDE 40

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-41
SLIDE 41

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-42
SLIDE 42

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-43
SLIDE 43

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. (Also makes substantial use of p-adic techniques.)

slide-44
SLIDE 44

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. (See proceedings paper for details.)

slide-45
SLIDE 45

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-46
SLIDE 46

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-47
SLIDE 47

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. Theorem (Halava, Harju, Hirvensalo 2006) For order 2, Positivity is decidable.

slide-48
SLIDE 48

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. 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-49
SLIDE 49

Our Main Results

Theorem Positivity is decidable for order 5 or less.

slide-50
SLIDE 50

Our Main Results

Theorem Positivity is decidable for order 5 or less. The complexity is in NPPPPPPP .

slide-51
SLIDE 51

Our Main Results

Theorem Positivity is decidable for order 5 or less. The complexity is in NPPPPPPP . Ultimate Positivity is decidable for order 5 or less. The complexity is in P.

slide-52
SLIDE 52

Our Main Results

Theorem Positivity is decidable for order 5 or less. The complexity is in NPPPPPPP . Ultimate Positivity is decidable for order 5 or less. The complexity is in P. For order 6, in both cases, decidability would imply major breakthroughs in analytic number theory (Diophantine approximation of transcendental numbers).

slide-53
SLIDE 53

Our Main Results

Theorem Positivity is decidable for order 5 or less. The complexity is in NPPPPPPP . Ultimate Positivity is decidable for order 5 or less. The complexity is in P. For order 6, in both cases, decidability would imply major breakthroughs in analytic number theory (Diophantine approximation of transcendental numbers). In the diagonalisable case, Positivity and Ultimate Positivity are decidable for order 9 or less.

slide-54
SLIDE 54

Diophantine Approximation

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

  • x − p

q

slide-55
SLIDE 55

Diophantine Approximation

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

  • x − p

q

  • Theorem (Dirichlet 18??)

There are infinitely many integers p, q such that

  • x − p

q

  • < 1

q2 .

slide-56
SLIDE 56

Diophantine Approximation

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

  • x − p

q

  • Theorem (Dirichlet 18??)

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-57
SLIDE 57

Diophantine Approximation

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

  • x − p

q

  • Theorem (Dirichlet 18??)

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-58
SLIDE 58

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-59
SLIDE 59

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 very closely related to the continued fraction expansion of x

slide-60
SLIDE 60

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 very closely related to the continued fraction expansion of x Almost all reals x have L∞(x) = 0 [Khinchin 1926]

slide-61
SLIDE 61

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 very 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-62
SLIDE 62

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 very 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-63
SLIDE 63

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 very 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-64
SLIDE 64

Our Hardness Result

Let A =

  • a + bi : a, b ∈ Q ∧ a2 + b2 = 1 ∧ ab = 0
slide-65
SLIDE 65

Our Hardness Result

Let A =

  • a + bi : a, b ∈ Q ∧ a2 + b2 = 1 ∧ ab = 0
  • Let T =

arg(z) 2π : z ∈ A

slide-66
SLIDE 66

Our Hardness Result

Let A =

  • a + bi : a, b ∈ Q ∧ a2 + b2 = 1 ∧ ab = 0
  • Let T =

arg(z) 2π : z ∈ A

  • e 2

θ πi 2πθ a+bi =

slide-67
SLIDE 67

Our Hardness Result

Let A =

  • a + bi : a, b ∈ Q ∧ a2 + b2 = 1 ∧ ab = 0
  • Let T =

arg(z) 2π : z ∈ A

  • e 2

θ πi 2πθ a+bi =

T is a countable set of transcendental numbers

slide-68
SLIDE 68

Our Hardness Result

Recall that a real number t is computable if there is an algorithm which, given any rational ε > 0, returns some r ∈ Q with |t − r| < ε.

slide-69
SLIDE 69

Our Hardness Result

Recall that a real number t is computable if there is an algorithm which, given any rational ε > 0, returns some r ∈ Q with |t − r| < ε. Theorem Suppose that Ultimate Positivity is decidable for integer linear recurrence sequences of order 6. Then for any t ∈ T , L∞(t) is computable.

slide-70
SLIDE 70

Our Hardness Result

Recall that a real number t is computable if there is an algorithm which, given any rational ε > 0, returns some r ∈ Q with |t − r| < ε. Theorem Suppose that Ultimate Positivity is decidable for integer linear recurrence sequences of order 6. Then for any t ∈ T , L∞(t) is computable. Several other similar results hold (notably relating to the computability of inhomogeneous Diophantine approximation constants), and likewise for Positivity . . .

slide-71
SLIDE 71

Matrix Formulation

Given M, v, w, let un = vTMnw

slide-72
SLIDE 72

Matrix Formulation

Given M, v, w, let un = vTMnw Then un is a linear recurrence sequence:

slide-73
SLIDE 73

Matrix Formulation

Given M, v, w, let un = vTMnw Then un is a linear recurrence sequence: Mk = b0I + b1M + . . . + bk−1Mk−1

slide-74
SLIDE 74

Matrix Formulation

Given M, v, w, let un = vTMnw Then un is a linear recurrence sequence: Mk = b0I + b1M + . . . + bk−1Mk−1 Mn+k = b0Mn + b1Mn+1 + . . . + bk−1Mn+k−1

slide-75
SLIDE 75

Matrix Formulation

Given M, v, w, let un = vTMnw Then un is a linear recurrence sequence: Mk = b0I + b1M + . . . + bk−1Mk−1 Mn+k = b0Mn + b1Mn+1 + . . . + bk−1Mn+k−1 vTMn+kw = b0vTMnw + b1vTMn+1w + . . . + bk−1vTMn+k−1w

slide-76
SLIDE 76

Matrix Formulation

Given M, v, w, let un = vTMnw Then un is a linear recurrence sequence: Mk = b0I + b1M + . . . + bk−1Mk−1 Mn+k = b0Mn + b1Mn+1 + . . . + bk−1Mn+k−1 vTMn+kw = b0vTMnw + b1vTMn+1w + . . . + bk−1vTMn+k−1w un+k = b0un + b1un+1 + . . . + bk−1un+k−1

slide-77
SLIDE 77

Matrix Formulation

Conversely, any linear recurrence sequence un can be written as un = vTMnw where M is the companion matrix of the characteristic polynomial

  • f un, and v and w are suitably chosen.
slide-78
SLIDE 78

Matrix Formulation

Conversely, any linear recurrence sequence un can be written as un = vTMnw where M is the companion matrix of the characteristic polynomial

  • f un, and v and w are suitably chosen.

For example, un = (1 0) 1 1 1 n 1

  • is the nth

Fibonacci number.

slide-79
SLIDE 79

Matrix Formulation

Conversely, any linear recurrence sequence un can be written as un = vTMnw where M is the companion matrix of the characteristic polynomial

  • f un, and v and w are suitably chosen.

For example, un = (1 0) 1 1 1 n 1

  • is the nth

Fibonacci number. Note that dimension of matrix = order of sequence

slide-80
SLIDE 80

Our Main Results

un = vTMnw Theorem Positivity is decidable for order 5 or less. The complexity is in NPPPPPPP . Ultimate Positivity is decidable for order 5 or less. The complexity is in P. For order 6, in both cases, decidability would imply major breakthroughs in analytic number theory (Diophantine approximation of transcendental numbers). In the diagonalisable case, Positivity and Ultimate Positivity are decidable for order 9 or less.

slide-81
SLIDE 81

Exponential Polynomial Solutions

Let un+k = a1un+k−1 + . . . + akun be a linear recurrence

slide-82
SLIDE 82

Exponential Polynomial Solutions

Let un+k = a1un+k−1 + . . . + akun be a linear recurrence The characteristic polynomial of un is: p(x) = xn − a1xn−1 − . . . − ak−1x − ak

slide-83
SLIDE 83

Exponential Polynomial Solutions

Let un+k = a1un+k−1 + . . . + akun be a linear recurrence The characteristic polynomial of un is: p(x) = xn − a1xn−1 − . . . − ak−1x − ak Let λ1, . . . , λm ∈ C be a list of the distinct (possibly repeated) roots of p.

slide-84
SLIDE 84

Exponential Polynomial Solutions

Let un+k = a1un+k−1 + . . . + akun be a linear recurrence The characteristic polynomial of un is: p(x) = xn − a1xn−1 − . . . − ak−1x − ak Let λ1, . . . , λm ∈ C be a list of the distinct (possibly repeated) roots of p. Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

slide-85
SLIDE 85

Exponential Polynomial Solutions

Let un+k = a1un+k−1 + . . . + akun be a linear recurrence The characteristic polynomial of un is: p(x) = xn − a1xn−1 − . . . − ak−1x − ak Let λ1, . . . , λm ∈ C be a list of the distinct (possibly repeated) roots of p. Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

For example, un = 1+

√ 5 2 √ 5

  • 1+

√ 5 2

n + 1−

√ 5 2 √ 5

  • 1−

√ 5 2

n is the nth Fibonacci number.

slide-86
SLIDE 86

Exponential Polynomial Solutions

Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

slide-87
SLIDE 87

Exponential Polynomial Solutions

Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

To see this, write: un = vTMnw

slide-88
SLIDE 88

Exponential Polynomial Solutions

Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

To see this, write: un = vTMnw = vTP−1JnPw

slide-89
SLIDE 89

Exponential Polynomial Solutions

Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

To see this, write: un = vTMnw = vTP−1JnPw = vTP−1    λn

1

... λn

m

   Pw = c1λn

1 + . . . + cmλn m

slide-90
SLIDE 90

Exponential Polynomial Solutions

Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

To see this, write: un = vTMnw = vTP−1JnPw = vTP−1    λn

1

... λn

m

   Pw = c1λn

1 + . . . + cmλn m

slide-91
SLIDE 91

Exponential Polynomial Solutions

Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

To see this, write: un = vTMnw = vTP−1JnPw = vTP−1    λn

1

... λn

m

   Pw = c1λn

1 + . . . + cmλn m

slide-92
SLIDE 92

Exponential Polynomial Solutions

Theorem There exist polynomials C1, . . . , Cm such that, for all n, un = C1(n)λn

1 + . . . + Cm(n)λn m .

To see this, write: un = vTMnw = vTP−1JnPw = vTP−1    λn

1

... λn

m

   Pw = c1λn

1 + . . . + cmλn m