Reachability problems for Markov chains
S Akshay
Dept of CSE, IIT Bombay
1st CMI Alumni Conference, Chennai 10 Jan 2015
Markov chains The Skolem problem Links Related problems
Markov chains: a basic model for probabilistic systems
1 4
2 3
1 3
M
2 3
1 2
2 5
3 5 1 2
1
1
3 0 23 0 0 0 1 0
1
2 0 0 12
2 5
3
5 0 0
transition system/automaton with probabilities
stochastic transition matrix, linear algebraic properties
Markov chains The Skolem problem Links Related problems
Markov chains
Basic reachability question
Can you reach a given targetstate from a giveninitial state with some given probability r?
in the limit, asntends to∞. innsteps, for somen.
That is, given statess,t of a Markov chainM and rational r, does there exist integern such that 1s·Mn·1t =r? (respy. >r)
– Open! In other words,
given a row-stochastic matrix M,r∈Q, does there exist n ∈N, s.t.,Mn[i,j] =r?
That is, can you give a procedure/algorithm to check if such an n exists (Decision problem)?
Markov chains The Skolem problem Links Related problems
Markov chains
Basic reachability question
Can you reach a given targetstate from a giveninitial state with some given probability r?
innsteps, wherenis given.
in the limit, asntends to∞. innsteps, for somen.
That is, given statess,t of a Markov chainM and rational r, does there exist integern such that 1s·Mn·1t =r? (respy. >r)
– Open! In other words,
given a row-stochastic matrix M,r∈Q, does there exist n ∈N, s.t.,Mn[i,j] =r?
That is, can you give a procedure/algorithm to check if such an n exists (Decision problem)?
Markov chains The Skolem problem Links Related problems
Markov chains
Basic reachability question
Can you reach a given targetstate from a giveninitial state with some given probability r?
innsteps, wherenis given.
in the limit, asntends to∞.
That is, given statess,t of a Markov chainM and rational r, does there exist integern such that 1s·Mn·1t =r? (respy. >r)
– Open! In other words,
given a row-stochastic matrix M,r∈Q, does there exist n ∈N, s.t.,Mn[i,j] =r?
That is, can you give a procedure/algorithm to check if such an n exists (Decision problem)?
Markov chains The Skolem problem Links Related problems
Markov chains
Basic reachability question
Can you reach a given targetstate from a giveninitial state with some given probability r?
innsteps, wherenis given.
in the limit, asntends to∞.
innsteps, for somen.
That is, given statess,t of a Markov chainM and rational r, does there exist integern such that 1s·Mn·1t =r? (respy. >r)
– Open! In other words,
given a row-stochastic matrix M,r∈Q, does there exist n ∈N, s.t.,Mn[i,j] =r?
That is, can you give a procedure/algorithm to check if such an n exists (Decision problem)?
Markov chains The Skolem problem Links Related problems
Markov chains
Basic reachability question
Can you reach a given targetstate from a giveninitial state with some given probability r?
innsteps, wherenis given.
in the limit, asntends to∞.
innsteps, for somen.
That is, given statess,t of a Markov chainM and rational r, does there exist integern such that 1s·Mn·1t =r? (respy. >r)
In other words,
given a row-stochastic matrix M,r∈Q, does there exist n ∈N, s.t.,Mn[i,j] =r?
That is, can you give a procedure/algorithm to check if such an n exists (Decision problem)?
Markov chains The Skolem problem Links Related problems
Markov chains
Basic reachability question
Can you reach a given targetstate from a giveninitial state with some given probability r?
innsteps, wherenis given.
in the limit, asntends to∞.
innsteps, for somen.
That is, given statess,t of a Markov chainM and rational r, does there exist integern such that 1s·Mn·1t =r? (respy. >r)
– Open!
In other words,
given a row-stochastic matrix M,r∈Q, does there exist n ∈N, s.t.,Mn[i,j] =r?
That is, can you give a procedure/algorithm to check if such an n exists (Decision problem)?
Markov chains
Basic reachability question
Can you reach a given targetstate from a giveninitial state with some given probability r?
innsteps, wherenis given.
in the limit, asntends to∞.
innsteps, for somen.
That is, given statess,t of a Markov chainM and rational r, does there exist integern such that 1s·Mn·1t =r? (respy. >r)
– Open!
In other words,
given a row-stochastic matrix M,r ∈Q, does there exist n ∈N, s.t.,Mn[i,j] =r?
That is, can you give a procedure/algorithm to check if such an n exists (Decision problem)?
Markov chains The Skolem problem Links Related problems
Some basic UG probability theory
If the Markov chain is irreducible and aperiodic, then from any initial state/distribution, the Markov chain will tend to a unique stationary distribution.
In general, break into BSCCs (Bottom strongly connected components) and analyze the probabilities in the limit.
Easy to reason about most states/distributions...
1 4
2 3
1 3
M
0.35 0.08
0.12 0.45
2 3
1 2
2 5
3 5 1 2
1
1
3 0 23 0 0 0 1 0
1
2 0 0 12
2 5
3
5 0 0
Hard part: Is the limit point attained in finite time?!
Markov chains The Skolem problem Links Related problems
Some basic UG probability theory
If the Markov chain is irreducible and aperiodic, then from any initial state/distribution, the Markov chain will tend to a unique stationary distribution.
In general, break into BSCCs (Bottom strongly connected components) and analyze the probabilities in the limit.
Easy to reason about most states/distributions...
1 2
2 5
7 10 3
5
3 10
Fixpoint= (117,
4 11)
M =
3 5
2 5 7 10
3 10
Markov chains The Skolem problem Links Related problems
Some basic UG probability theory
If the Markov chain is irreducible and aperiodic, then from any initial state/distribution, the Markov chain will tend to a unique stationary distribution.
In general, break into BSCCs (Bottom strongly connected components) and analyze the probabilities in the limit.
Easy to reason about most states/distributions...
1 2
2 5
7 10 3
5
3 10
Fixpoint= (117,
4 11)
M =
3 5
2 5 7 10
3 10
Markov chains The Skolem problem Links Related problems
Outline
Our goal
To understand the source of this difficulty.
Or at least to confirm whether it is difficult!
2 Another seemingly easy but hard problem: The Skolem problem
3 Links between reachability for Markov chains and Skolem problem.
4 Other related problems and applications
Markov chains The Skolem problem Links Related problems
Outline
Our goal
To understand the source of this difficulty.
Or at least to confirm whether it is difficult!
1 Why it is important : applications to probabilistic verification
2 Another seemingly easy but hard problem: The Skolem problem
3 Links between reachability for Markov chains and Skolem problem.
4 Other related problems and applications
Application to verification in biopathways
Consider a Markov chainM over statess1, . . . ,st. Question
Starting from a given initial probability distribution~v, is it the case that eventually the probability of staying in statest will be within [0,1/2]?
For e.g., states could be protein concentrations, and the Markov chain a model of biochemical reactions and we want to check for high conc.
Prob(Gluc6P>2,time=0.1) = high Biological experiment
Markov chains The Skolem problem Links Related problems
Application to verification and related problems
Example: Consider~v = (1/4,1/4,1/2) and M =
0.6 0.1 0.3 0.3 0.6 0.1 0.1 0.3 0.6
Then, does ∃N s.t., for alln >N, ~v·Mn·(1 0 0)>1/3?
Then, does ∃n s.t.,~v·Mn·(1 0 −1) = 0?
Theorem
All these problems are (sort of) inter-reducible: Reachability problem for Markov chains.
Given stochastic vector~v, vector w, row-stochastic matrixM, does∃n s.t.,~v·Mnw~ = 1/2
Given stochastic vectors~v, ~w, row-stochastic matrixM, rationalr, does∃n s.t.,~v·Mnw~ =r
Application to verification and related problems
Example: Consider~v = (1/4,1/4,1/2) and M =
0.6 0.1 0.3 0.3 0.6 0.1 0.1 0.3 0.6
Then, does ∃N s.t., for alln >N, ~v·Mn·(1 0 0)>1/3?
Then, does ∃n s.t.,~v·Mn·(1 0 −1) = 0?
Theorem
All these problems are (sort of) inter-reducible:
Reachability problem for Markov chains.
Given stochastic vector~v, vector w, row-stochastic matrixM, does∃n s.t.,~v·Mnw~ = 1/2
Given stochastic vectors~v, ~w, row-stochastic matrixM, rationalr, does∃n s.t.,~v·Mnw~ =r
Markov chains The Skolem problem Links Related problems
Outline
Our goal
To understand the source of this difficulty.
Or at least to confirm whether it is difficult!
1 Why it is important : applications to probabilistic verification
2 Another seemingly easy but hard problem: The Skolem problem
3 Links between reachability for Markov chains and Skolem problem.
4 Other related problems and applications
Outline
Our goal
To understand the source of this difficulty.
Or at least to confirm whether it is difficult!
1 Why it is important : applications to probabilistic verification
2 Another seemingly easy but hard problem: The Skolem problem
3 Links between reachability for Markov chains and Skolem problem.
4 Other related problems and applications
Markov chains The Skolem problem Links Related problems
The Fibonacci Sequence
Fibonacci sequence: 1,1,2,3,5,8,13,21, . . .
Fibonacci sequence: un=un−1+un−2 whereu1=u0 = 1
But rabbits die! So,un=un−1+un−2−un−3 where u2= 2,u1=u0 = 1Question: Can they ever die out?
The Fibonacci Sequence
Fibonacci sequence: 1,1,2,3,5,8,13,21, . . .
Fibonacci sequence: un=un−1+un−2 whereu1=u0 = 1 But rabbits die! So,un=un−1+un−2−un−3 where u2= 2,u1=u0 = 1Question: Can they ever die out?
Markov chains The Skolem problem Links Related problems
Linear Recurrence Sequences (LRS)
Definition
A sequencehu0,u1, . . .i of numbers is called an LRSif there exists k∈Nand constantsa0, . . . ,ak−1 s.t., for alln ≥k,
un=ak−1un−1+. . .+a1un−k+1+a0un−k
k is called the order/depth of the sequence.
The first k elements u0, . . . ,uk−1 are called initial conditions and they determine the whole sequence.
We can define the sequences and constants to be over integers orrationals or reals.
Markov chains The Skolem problem Links Related problems
The Skolem Problem
Skolem 1934: Also called the Skolem Pisot problem
Given a linear recurrence sequence (with initial conditions) over integers, does it have a zero? Does∃n such thatun= 0?
i.e., do the rabbits ever die out?
Well, in 1934 decidability wasn’t as relevant... but definitely since 1952.
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, blog entry 2007
Variant: (Ultimate) Positivity Problem
Given an LRShu1,u2, . . .i,∀n,(n≥T) is un≥0?
Markov chains The Skolem problem Links Related problems
The Skolem Problem
Skolem 1934: Also called the Skolem Pisot problem
Given a linear recurrence sequence (with initial conditions) over integers, does it have a zero? Does∃n such thatun= 0?
i.e., do the rabbits ever die out?
Surprisingly, this problem has been open for 80 years!
Well, in 1934 decidability wasn’t as relevant... but definitely since 1952.
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, blog entry 2007
Variant: (Ultimate) Positivity Problem
Given an LRShu1,u2, . . .i,∀n,(n≥T) is un≥0?
Markov chains The Skolem problem Links Related problems
The Skolem Problem
Skolem 1934: Also called the Skolem Pisot problem
Given a linear recurrence sequence (with initial conditions) over integers, does it have a zero? Does∃n such thatun= 0?
i.e., do the rabbits ever die out?
Surprisingly, this problem has been open for 80 years!
Well, in 1934 decidability wasn’t as relevant... but definitely since 1952.
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, blog entry 2007
Given an LRShu1,u2, . . .i,∀n,(n≥T) is un≥0?
Markov chains The Skolem problem Links Related problems
The Skolem Problem
Skolem 1934: Also called the Skolem Pisot problem
Given a linear recurrence sequence (with initial conditions) over integers, does it have a zero? Does∃n such thatun= 0?
i.e., do the rabbits ever die out?
Surprisingly, this problem has been open for 80 years!
Well, in 1934 decidability wasn’t as relevant... but definitely since 1952.
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, blog entry 2007
Equivalent formulations of the Skolem Problem
Linear recurrence sequence form
Given an LRShu1,u2, . . .i (with initial conditions), does∃n s.t., un= 0?
Matrix Form
Given ak×k matrixM, does ∃n s.t.,Mn(1,k) = 0?
Dot Product Form
Given ak×k matrixM,k-dim vectors~v, ~w, does∃n s.t.,
~v·Mn·w~T = 0?
Markov chains The Skolem problem Links Related problems
Results on Skolem/Positivity problems
Skolem-Mahler-Lech Theorem (1934, 1935, 1953) Theorem
The set of zeros of any LRS is the union of a finite set and a finite number of arithmetic progressions (periodic sets). Further, it is decidable to check whether or not the set of zeros is infinite!
In other words, the hardness is in characterizing the finite set.
All known proofs usep-adic numbers.
Results on Skolem/Positivity problems
Skolem-Mahler-Lech Theorem (1934, 1935, 1953)
Decidability of Skolem/Positivity for 2,3,4... in 1981, ’85, ’05,
’06, ’09 by various authors.
Markov chains The Skolem problem Links Related problems
Results on Skolem/Positivity problems
Skolem-Mahler-Lech Theorem (1934, 1935, 1953)
Decidability of Skolem/Positivity for 2,3,4... in 1981, ’85, ’05,
’06, ’09 by various authors.
Several of these proofs use results on linear logarithms by Baker and van der Poorten.
This theory fetched Baker the Field’s medal in 1970!
Results on Skolem/Positivity problems
Skolem-Mahler-Lech Theorem (1934, 1935, 1953)
Decidability of Skolem/Positivity for 2,3,4... in 1981, ’85, ’05,
’06, ’09 by various authors.
Recently Ouaknine, Worrell from Oxford have published several new results - SODA’14, ICALP’14 (best paper).
1 positivity for LRS of order≤5 is decidable with complexity
coNPPP PP
PP
.
2 ultimate positivity for LRS of order 5 or less is decidable inP and decidable in general for “simple” LRS.
3 decidability for order 6 would imply major breakthroughs in analytic number theory (Diophantine approx of transcendental numbers).
Markov chains The Skolem problem Links Related problems
Results on Skolem/Positivity problems
Skolem-Mahler-Lech Theorem (1934, 1935, 1953)
Decidability of Skolem/Positivity for 2,3,4... in 1981, ’85, ’05,
’06, ’09 by various authors.
Recently Ouaknine, Worrell from Oxford have published several new results - SODA’14, ICALP’14 (best paper).
1 positivity for LRS of order≤5 is decidable with complexity
coNPPP PP
PP
.
2 ultimate positivity for LRS of order 5 or less is decidable inP and decidable in general for “simple” LRS.
3 decidability for order 6 would imply major breakthroughs in analytic number theory (Diophantine approx of transcendental numbers).
The general problem is still open!
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Markov Reachability. Given a finite stochastic matrix M with rational entries and a rational number r , does there exist n∈N such that(Mn)1,2 =r ?
Skolem Problem. Given a k×k integer matrix M, does there exist n such that(Mn)1,2 = 0?
Theorem [A., Antonopoulos, Ouaknine, Worrell’14.]
The Markov Reachability Problem is at least as hard as the Skolem problem
In particular, we show that the Skolem problem can be reduced to the reachability problem for Markov chains in polynomial time.
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Recall:
Markov Reachability.Given a finite stochastic matrix M with rational entries and a rational number r , does there exist n∈N such that(Mn)1,2 =r ?
Skolem Problem. Given a k×k integer matrix M, does there exist n such that(Mn)1,2 = 0?
Theorem [A., Antonopoulos, Ouaknine, Worrell’14.]
The Markov Reachability Problem is at least as hard as the Skolem problem
In particular, we show that the Skolem problem can be reduced to the reachability problem for Markov chains in polynomial time.
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Recall:
Markov Reachability.Given a finite stochastic matrix M with rational entries and a rational number r , does there exist n∈N such that(Mn)1,2 =r ?
Skolem Problem. Given a k×k integer matrix M, does there exist n such that(Mn)1,2 = 0?
Theorem [A., Antonopoulos, Ouaknine, Worrell’14.]
The Markov Reachability Problem is at least as hard as the Skolem problem
the reachability problem for Markov chains in polynomial time.
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Recall:
Markov Reachability.Given a finite stochastic matrix M with rational entries and a rational number r , does there exist n∈N such that(Mn)1,2 =r ?
Skolem Problem. Given a k×k integer matrix M, does there exist n such that(Mn)1,2 = 0?
Theorem [A., Antonopoulos, Ouaknine, Worrell’14.]
The Markov Reachability Problem is at least as hard as the Skolem problem
In particular, we show that the Skolem problem can be reduced to
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Proof sketch
Take instance of Skolem, i.e., ak×k integer matrixM.
1 Remove negative entries inM.
Note that any rationalr can be written as the difference of two positive rationalsr1−r2.
pij qij
qij pij , such thatpij−qij=mi,j.
Then(M)1,2=~eTP1v~1, where~e= (1,0, . . . ,0)T and
~
v1= (0,0,1,−1,0, . . . ,0)T are 2k-dimensional vectors. By induction,(Mn)1,2=~eTP1nv~1.
- the map sending a b
b a
toa−bis a homomorphism from the ring of 2×2 symmetric integer matrices toZ
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Proof sketch
Take instance of Skolem, i.e., ak×k integer matrixM.
1 Remove negative entries inM.
Note that any rationalr can be written as the difference of two positive rationalsr1−r2.
Replace each entrymij ofM by the symmetric 2×2 matrix pij qij
qij pij
, such thatpij−qij=mi,j.
Then(M)1,2=~eTP1v~1, where~e= (1,0, . . . ,0)T and
~
v1= (0,0,1,−1,0, . . . ,0)T are 2k-dimensional vectors. By induction,(Mn)1,2=~eTP1nv~1.
- the map sending a b
b a
toa−bis a homomorphism from the ring of 2×2 symmetric integer matrices toZ
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Proof sketch
Take instance of Skolem, i.e., ak×k integer matrixM.
1 Remove negative entries inM.
Note that any rationalr can be written as the difference of two positive rationalsr1−r2.
Replace each entrymij ofM by the symmetric 2×2 matrix pij qij
qij pij
, such thatpij−qij=mi,j.
Then(M)1,2=~eTP1v~1, where~e= (1,0, . . . ,0)T and
~
v1= (0,0,1,−1,0, . . . ,0)T are 2k-dimensional vectors.
- the map sending a b
b a toa−bis a homomorphism from the ring of 2×2 symmetric integer matrices toZ
Markov chains The Skolem problem Links Related problems
Links between Skolem and Markov reachability
Proof sketch
Take instance of Skolem, i.e., ak×k integer matrixM.
1 Remove negative entries inM.
Note that any rationalr can be written as the difference of two positive rationalsr1−r2.
Replace each entrymij ofM by the symmetric 2×2 matrix pij qij
qij pij
, such thatpij−qij=mi,j.
Then(M)1,2=~eTP1v~1, where~e= (1,0, . . . ,0)T and
~
v1= (0,0,1,−1,0, . . . ,0)T are 2k-dimensional vectors.
By induction,(Mn)1,2=~eTP1nv~1.
- the map sending a b
b a
toa−bis a homomorphism from the ring of 2×2 symmetric integer matrices toZ
Proof Sketch contd.
Step 2: Re-scale entries to obtain stochastic matrix Pick biggest entry in P1 and divide and then put the
remaining mass in a new column. Also add all 1’s vector to v1
to get v2 pause
Thus, we have (Mn)1,2 = 0 iff~eTP2nv~2 = 1, whereP2 is stochastic 2k+ 1-dim matrix andv~2 has only 0,1,2 entries.
Markov chains The Skolem problem Links Related problems
Final Step: Obtaining a co-ordinate vector
Construct a new Markov chain with double the nodes (+3).
1 2
3 4
1
3
2 2
4 1
3 4
b
c
a
~2−~y 4
~ y 4
1
1 4
1
3 4
Final Step: Obtaining a co-ordinate vector
Construct a new Markov chain with double the nodes (+3).
(Qe2n+1)1,2k+1= 2n+21 (2n−1 +~eTQn~y) and we conclude that
~eTQn~y = 1 if and only if (Qe2n+1)1,2k+1 = 14.
1 2
3 4
1
3
2 2
4 1
3 4
b
c
a
~2−~y 4
~ y 4
1
1 4
1
3 4
Markov chains The Skolem problem Links Related problems
Corollaries
Thus, we reduced Skolem to Markov reachability with quadratic size blow-up.
Same reduction works for Positivity.
What about the behaviour of the trajectories?
Many probabilistic logics have been defined over trajectories of a Markov chain.
PMLO (Beaquier, Rabinovich, Slissenko, 2002), iLTL(Kwon, Agha, 2004)
LTLI (Agrawal, A., Genest, Thiagarajan, 2012)
Corollary
Model checking (i.e., checking whether the system satisfies a property written in the logic) for all these logics is “Skolem-hard”.
Markov chains The Skolem problem Links Related problems
Corollaries
Thus, we reduced Skolem to Markov reachability with quadratic size blow-up.
Same reduction works for Positivity.
What about the behaviour of the trajectories?
of a Markov chain.
PMLO (Beaquier, Rabinovich, Slissenko, 2002), iLTL(Kwon, Agha, 2004)
LTLI (Agrawal, A., Genest, Thiagarajan, 2012)
Corollary
Model checking (i.e., checking whether the system satisfies a property written in the logic) for all these logics is “Skolem-hard”.
Markov chains The Skolem problem Links Related problems
Corollaries
Thus, we reduced Skolem to Markov reachability with quadratic size blow-up.
Same reduction works for Positivity.
What about the behaviour of the trajectories?
Many probabilistic logics have been defined over trajectories of a Markov chain.
PMLO (Beaquier, Rabinovich, Slissenko, 2002), iLTL(Kwon, Agha, 2004)
LTLI (Agrawal, A., Genest, Thiagarajan, 2012)
Corollary
Model checking (i.e., checking whether the system satisfies a property written in the logic) for all these logics is “Skolem-hard”.
Corollaries
Thus, we reduced Skolem to Markov reachability with quadratic size blow-up.
Same reduction works for Positivity.
What about the behaviour of the trajectories?
Many probabilistic logics have been defined over trajectories of a Markov chain.
PMLO (Beaquier, Rabinovich, Slissenko, 2002), iLTL(Kwon, Agha, 2004)
LTLI (Agrawal, A., Genest, Thiagarajan, 2012)
Corollary
Model checking (i.e., checking whether the system satisfies a property written in the logic) for all these logics is “Skolem-hard”.
Markov chains The Skolem problem Links Related problems
Other related problems - The Orbit Problem
The Orbit Problem
Given a k×k matrix M,k-dim vectors~x and~y, does∃n s.t.,
~x·Mn=~y?
Stochastic variant: Given a k×k stochastic matrixM and k-dim stochastic vectors~x and~y, does∃n s.t.,~x·Mn=~y?
Higher Order Orbit Problem: Given k×k matrixM,k-dim vector~x, a subspaceV of dim ≤k, does∃n s.t.,~x·Mn ∈V?
Markov chains The Skolem problem Links Related problems
Other related problems - The Orbit Problem
The Orbit Problem
Given a k×k matrix M,k-dim vectors~x and~y, does∃n s.t.,
~x·Mn=~y?
Stochastic variant: Given a k×k stochastic matrixM and k-dim stochastic vectors~x and~y, does∃n s.t.,~x·Mn=~y?
vector~x, a subspaceV of dim ≤k, does∃n s.t.,~x·Mn ∈V?
Kannan, Lipton – STOC’80, JACM’86 The Orbit problem is decidable
Markov chains The Skolem problem Links Related problems
Other related problems - The Orbit Problem
The Orbit Problem
Given a k×k matrix M,k-dim vectors~x and~y, does∃n s.t.,
~x·Mn=~y?
Stochastic variant: Given a k×k stochastic matrixM and k-dim stochastic vectors~x and~y, does∃n s.t.,~x·Mn=~y?
Higher Order Orbit Problem: Given k×k matrixM,k-dim vector~x, a subspaceV of dim ≤k, does∃n s.t.,~x·Mn ∈V?
Kannan, Lipton – STOC’80, JACM’86
The Orbit problem is decidable in Polynomial time.
Other related problems - The Orbit Problem
The Orbit Problem
Given a k×k matrix M,k-dim vectors~x and~y, does∃n s.t.,
~x·Mn=~y?
Stochastic variant: Given a k×k stochastic matrixM and k-dim stochastic vectors~x and~y, does∃n s.t.,~x·Mn=~y?
Higher Order Orbit Problem: Given k×k matrixM,k-dim vector~x, a subspaceV of dim ≤k, does∃n s.t.,~x·Mn∈V? Kannan, Lipton – STOC’80, JACM’86
The Orbit problem is decidable in Polynomial time.
Markov chains The Skolem problem Links Related problems
Other related problems - The Orbit Problem
The Orbit Problem
Given a k×k matrix M,k-dim vectors~x and~y, does∃n s.t.,
~x·Mn=~y?
Stochastic variant: Given a k×k stochastic matrixM and k-dim stochastic vectors~x and~y, does∃n s.t.,~x·Mn=~y?
Higher Order Orbit Problem: Given k×k matrixM,k-dim vector~x, a subspaceV of dim ≤k, does∃n s.t.,~x·Mn∈V? Kannan, Lipton – STOC’80, JACM’86
The Orbit problem is decidable in Polynomial time.
Other related problems - The Orbit Problem
The Orbit Problem
Given a k×k matrix M,k-dim vectors~x and~y, does∃n s.t.,
~x·Mn=~y?
Stochastic variant: Given a k×k stochastic matrixM and k-dim stochastic vectors~x and~y, does∃n s.t.,~x·Mn=~y?
Higher Order Orbit Problem: Given k×k matrixM,k-dim vector~x, a subspaceV of dim ≤k, does∃n s.t.,~x·Mn∈V? Kannan, Lipton – STOC’80, JACM’86
The Orbit problem is decidable in Polynomial time.
Chonev,Ouaknine, Worrell– STOC’12
High dim Orbit Problem for dim 2 or 3 is inNPRP
Markov chains The Skolem problem Links Related problems
Other related problems - Program Termination
Basic undecidability result – Turing 1936
Termination of a generic program with a loop is undecidable:
while (conditions) {commands}
But now, let us consider a much simpler case: An initialized homogeneous linear program
~x:=~b; while (~cT~x > ~0) {~x :=A~x}
Termination problem for simple linear programs
Does an instance of the above program i.e.,h~b;~c;Ai, terminate? This problem is equivalent to the positivity problem!
– Can rewrite as ∀n≥0, is~cT ·An·~b >0?
Markov chains The Skolem problem Links Related problems
Other related problems - Program Termination
Basic undecidability result – Turing 1936
Termination of a generic program with a loop is undecidable:
while (conditions) {commands} But now, let us consider a much simpler case:
An initialized homogeneous linear program
~x:=~b; while (~cT~x> ~0) {~x :=A~x}
Does an instance of the above program i.e.,h~b;~c;Ai, terminate? This problem is equivalent to the positivity problem!
– Can rewrite as ∀n≥0, is~cT ·An·~b >0?
Markov chains The Skolem problem Links Related problems
Other related problems - Program Termination
Basic undecidability result – Turing 1936
Termination of a generic program with a loop is undecidable:
while (conditions) {commands} But now, let us consider a much simpler case:
An initialized homogeneous linear program
~x:=~b; while (~cT~x> ~0) {~x :=A~x}
Termination problem for simple linear programs
Does an instance of the above program i.e.,h~b;~c;Ai, terminate?
This problem is equivalent to the positivity problem! – Can rewrite as ∀n≥0, is~cT ·An·~b >0?
Markov chains The Skolem problem Links Related problems
Other related problems - Program Termination
Basic undecidability result – Turing 1936
Termination of a generic program with a loop is undecidable:
while (conditions) {commands} But now, let us consider a much simpler case:
An initialized homogeneous linear program
~x:=~b; while (~cT~x> ~0) {~x :=A~x}
Termination problem for simple linear programs
Does an instance of the above program i.e.,h~b;~c;Ai, terminate?
This problem is equivalent to the positivity problem!
Markov chains The Skolem problem Links Related problems
Other related problems - Program Termination
Basic undecidability result – Turing 1936
Termination of a generic program with a loop is undecidable:
while (conditions) {commands} But now, let us consider a much simpler case:
An initialized homogeneous linear program
~x:=~b; while (~cT~x> ~0) {~x :=A~x}
Termination problem for simple linear programs
Does an instance of the above program i.e.,h~b;~c;Ai, terminate?
Markov chains The Skolem problem Links Related problems
Termination of Linear Programs
Thus, termination for initialized homogenous linear programs
~x:=~b; while (~cT~x> ~0) {~x :=A~x} = positivity
~x :=~b; while(B~x > ~e) {~x:=A~x+~d} By adding a new scalar variable z,
~x:=~b,z = 1; while (B~x−~ez >0) {~x:=A~x+~d z;z =z}
What about the uninitialized case? while(B~x>0) {~x :=A~x}
Tiwari CAV’04 : termination is decidable (in P) over reals. Braverman CAV’06: decidable over rationals.
Markov chains The Skolem problem Links Related problems
Termination of Linear Programs
Thus, termination for initialized homogenous linear programs
~x:=~b; while (~cT~x> ~0) {~x :=A~x} = positivity A non-homogenous (initialized) linear program
~x :=~b; while(B~x > ~e) {~x:=A~x+~d}
By adding a new scalar variable z,
~x:=~b,z = 1; while (B~x−~ez >0) {~x:=A~x+~d z;z =z}
What about the uninitialized case? while(B~x>0) {~x :=A~x}
Tiwari CAV’04 : termination is decidable (in P) over reals. Braverman CAV’06: decidable over rationals.
Markov chains The Skolem problem Links Related problems
Termination of Linear Programs
Thus, termination for initialized homogenous linear programs
~x:=~b; while (~cT~x> ~0) {~x :=A~x} = positivity A non-homogenous (initialized) linear program
~x :=~b; while(B~x > ~e) {~x:=A~x+~d} By adding a new scalar variable z,
~x:=~b,z = 1; while (B~x−~ez >0) {~x:=A~x+~d z;z =z}
while(B~x>0) {~x :=A~x}
Tiwari CAV’04 : termination is decidable (in P) over reals. Braverman CAV’06: decidable over rationals.
Markov chains The Skolem problem Links Related problems
Termination of Linear Programs
Thus, termination for initialized homogenous linear programs
~x:=~b; while (~cT~x> ~0) {~x :=A~x} = positivity A non-homogenous (initialized) linear program
~x :=~b; while(B~x > ~e) {~x:=A~x+~d} By adding a new scalar variable z,
~x:=~b,z = 1; while (B~x−~ez >0) {~x:=A~x+~d z;z =z}
What about the uninitialized case?
while(B~x>0) {~x :=A~x}
Tiwari CAV’04 : termination is decidable (in P) over reals. Braverman CAV’06: decidable over rationals.
Termination of Linear Programs
Thus, termination for initialized homogenous linear programs
~x:=~b; while (~cT~x> ~0) {~x :=A~x} = positivity A non-homogenous (initialized) linear program
~x :=~b; while(B~x > ~e) {~x:=A~x+~d} By adding a new scalar variable z,
~x:=~b,z = 1; while (B~x−~ez >0) {~x:=A~x+~d z;z =z}
What about the uninitialized case?
while(B~x>0) {~x :=A~x}
Tiwari CAV’04 : termination is decidable (in P) over reals.
Braverman CAV’06: decidable over rationals.
Markov chains The Skolem problem Links Related problems
Conclusion
Implication for probabilistic verification... several hardness results.
Future implications for Skolem problem?
Regularity results - define languages based on reachability, behavior of trajectories.
Links to yet other problems - e.g., Petri net reachability! Simple problems with hard solutions
Interplay of Markov chain theory, algorithmic complexity theory, number theory...
And many applications: probabilistic verification, program termination.
Markov chains The Skolem problem Links Related problems
Conclusion
Implication for probabilistic verification... several hardness results.
Future implications for Skolem problem?
Regularity results - define languages based on reachability, behavior of trajectories.
Simple problems with hard solutions
Interplay of Markov chain theory, algorithmic complexity theory, number theory...
And many applications: probabilistic verification, program termination.
Markov chains The Skolem problem Links Related problems
Conclusion
Implication for probabilistic verification... several hardness results.
Future implications for Skolem problem?
Regularity results - define languages based on reachability, behavior of trajectories.
Links to yet other problems - e.g., Petri net reachability!
Simple problems with hard solutions
Interplay of Markov chain theory, algorithmic complexity theory, number theory...
And many applications: probabilistic verification, program termination.
Conclusion
Implication for probabilistic verification... several hardness results.
Future implications for Skolem problem?
Regularity results - define languages based on reachability, behavior of trajectories.
Links to yet other problems - e.g., Petri net reachability!
Simple problems with hard solutions
Interplay of Markov chain theory, algorithmic complexity theory, number theory...
And many applications: probabilistic verification, program termination.
Markov chains The Skolem problem Links Related problems
References
1 Akshay, Antonopoulos, Ouaknine, Worrell. Reachability problems for Markov chains. Inf. Proc. Letters, 2015.
2 Havala, Harju, Hirvensalo, Karhum¨aki, Skolem’s Problem – On the borders of decidability and undecidability, TUCS Tech report, 2005.
3 Ouaknine, Worrell, Decision Problems for Linear Recurrence Sequences, RP 2012.
4 Chonev, Ouaknine, Worrell, The Orbit Problem in Higher Dimensions, STOC 2012.
5a Ouaknine, Worrell, On the positivity problems for simple Linear Recurrence Sequences, ICALP’14.
5b Ouaknine, Worrell, Ultimate positivity is decidable for simple
Markov chains The Skolem problem Links Related problems
References, Contd
6 Tiwari, Termination of Linear Programs, CAV 2004.
7 Braverman, Termination of Integer Linear Programs, CAV’06.
8 Kannan, Lipton, Polynomial time Algorithm for the Orbit Problem, JACM,1986.
9 Chakraborty, Singh, Termination of Initialized Rational Linear Programs, Unpublished Manuscript.
linear recurrent sequence is NP-hard to decide, Linear Algebra and Its Applications, 2002.
11 Burke and Webb, Asymptotic behaviour of linear recurrences. Fib. Quart., 19(4), 1981.
12 Havala, Harju, Hirvensalo, Positivity of second order linear recurrent sequences. Disc. App. Math. 154(3), 2006.
13 Laohakosol, Tangsupphathawat, Positivity of third order linear recurrence sequences. Disc. App. Math. 157(3), 2009. 14 Vereshchagin, The problem of appearance of a zero in a linear
recurrence sequence (in Russian),Mat. Zamestki, 38(2),1985.
Markov chains The Skolem problem Links Related problems
References, Contd
6 Tiwari, Termination of Linear Programs, CAV 2004.
7 Braverman, Termination of Integer Linear Programs, CAV’06.
8 Kannan, Lipton, Polynomial time Algorithm for the Orbit Problem, JACM,1986.
9 Chakraborty, Singh, Termination of Initialized Rational Linear Programs, Unpublished Manuscript.
10 Blondel and Portier, The presence of a zero in an integer linear recurrent sequence is NP-hard to decide, Linear Algebra and Its Applications, 2002.
11 Burke and Webb, Asymptotic behaviour of linear recurrences.
Fib. Quart., 19(4), 1981.
12 Havala, Harju, Hirvensalo, Positivity of second order linear recurrent sequences. Disc. App. Math. 154(3), 2006.