Please use the back button of your browser to get back to the web interface.

Termination w.r.t. Q proof of /tmp/aproveUyQFNp.trs

(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

d0(0) → 0
d1(0) → 1
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
times(x, 0) → 0
times(x, 1) → x
times(x, d0(y)) → plus(d0(times(x, y)), times(x, 0))
times(x, d1(y)) → plus(d0(times(x, y)), times(x, 1))
m(0) → 0
m(m(x)) → x
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
d0(m(x)) → m(d0(x))
d1(m(x)) → m(d1(p(x)))
plus(x, m(y)) → m(plus(m(x), y))
times(x, m(y)) → m(times(x, y))
2s(1)
3s(2)
4s(3)
5s(4)
6s(5)
7s(6)
8s(7)
9s(8)
dd0(x) → plus(times(x, s(9)), 0)
dd1(x) → plus(times(x, s(9)), 1)
dd2(x) → plus(times(x, s(9)), 2)
dd3(x) → plus(times(x, s(9)), 3)
dd4(x) → plus(times(x, s(9)), 4)
dd5(x) → plus(times(x, s(9)), 5)
dd6(x) → plus(times(x, s(9)), 6)
dd7(x) → plus(times(x, s(9)), 7)
dd8(x) → plus(times(x, s(9)), 8)
dd9(x) → plus(times(x, s(9)), 9)

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(1) → D0(1)
S(d0(x)) → D1(x)
S(d1(x)) → D0(s(x))
S(d1(x)) → S(x)
PLUS(x, 1) → S(x)
PLUS(x, d0(y)) → PLUS(plus(x, y), y)
PLUS(x, d0(y)) → PLUS(x, y)
PLUS(x, d1(y)) → S(plus(x, d0(y)))
PLUS(x, d1(y)) → PLUS(x, d0(y))
PLUS(x, d1(y)) → D0(y)
TIMES(x, d0(y)) → PLUS(d0(times(x, y)), times(x, 0))
TIMES(x, d0(y)) → D0(times(x, y))
TIMES(x, d0(y)) → TIMES(x, y)
TIMES(x, d0(y)) → TIMES(x, 0)
TIMES(x, d1(y)) → PLUS(d0(times(x, y)), times(x, 1))
TIMES(x, d1(y)) → D0(times(x, y))
TIMES(x, d1(y)) → TIMES(x, y)
TIMES(x, d1(y)) → TIMES(x, 1)
P(0) → M(1)
P(d0(x)) → D1(p(x))
P(d0(x)) → P(x)
P(d1(x)) → D0(x)
P(m(x)) → M(s(x))
P(m(x)) → S(x)
S(m(d0(x))) → M(d1(p(x)))
S(m(d0(x))) → D1(p(x))
S(m(d0(x))) → P(x)
S(m(d1(x))) → M(d0(x))
S(m(d1(x))) → D0(x)
D0(m(x)) → M(d0(x))
D0(m(x)) → D0(x)
D1(m(x)) → M(d1(p(x)))
D1(m(x)) → D1(p(x))
D1(m(x)) → P(x)
PLUS(x, m(y)) → M(plus(m(x), y))
PLUS(x, m(y)) → PLUS(m(x), y)
PLUS(x, m(y)) → M(x)
TIMES(x, m(y)) → M(times(x, y))
TIMES(x, m(y)) → TIMES(x, y)
21S(1)
31S(2)
3121
41S(3)
4131
51S(4)
5141
61S(5)
6151
71S(6)
7161
81S(7)
8171
91S(8)
9181
DD0(x) → PLUS(times(x, s(9)), 0)
DD0(x) → TIMES(x, s(9))
DD0(x) → S(9)
DD0(x) → 91
DD1(x) → PLUS(times(x, s(9)), 1)
DD1(x) → TIMES(x, s(9))
DD1(x) → S(9)
DD1(x) → 91
DD2(x) → PLUS(times(x, s(9)), 2)
DD2(x) → TIMES(x, s(9))
DD2(x) → S(9)
DD2(x) → 91
DD2(x) → 21
DD3(x) → PLUS(times(x, s(9)), 3)
DD3(x) → TIMES(x, s(9))
DD3(x) → S(9)
DD3(x) → 91
DD3(x) → 31
DD4(x) → PLUS(times(x, s(9)), 4)
DD4(x) → TIMES(x, s(9))
DD4(x) → S(9)
DD4(x) → 91
DD4(x) → 41
DD5(x) → PLUS(times(x, s(9)), 5)
DD5(x) → TIMES(x, s(9))
DD5(x) → S(9)
DD5(x) → 91
DD5(x) → 51
DD6(x) → PLUS(times(x, s(9)), 6)
DD6(x) → TIMES(x, s(9))
DD6(x) → S(9)
DD6(x) → 91
DD6(x) → 61
DD7(x) → PLUS(times(x, s(9)), 7)
DD7(x) → TIMES(x, s(9))
DD7(x) → S(9)
DD7(x) → 91
DD7(x) → 71
DD8(x) → PLUS(times(x, s(9)), 8)
DD8(x) → TIMES(x, s(9))
DD8(x) → S(9)
DD8(x) → 91
DD8(x) → 81
DD9(x) → PLUS(times(x, s(9)), 9)
DD9(x) → TIMES(x, s(9))
DD9(x) → S(9)
DD9(x) → 91

The TRS R consists of the following rules:

d0(0) → 0
d1(0) → 1
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
times(x, 0) → 0
times(x, 1) → x
times(x, d0(y)) → plus(d0(times(x, y)), times(x, 0))
times(x, d1(y)) → plus(d0(times(x, y)), times(x, 1))
m(0) → 0
m(m(x)) → x
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
d0(m(x)) → m(d0(x))
d1(m(x)) → m(d1(p(x)))
plus(x, m(y)) → m(plus(m(x), y))
times(x, m(y)) → m(times(x, y))
2s(1)
3s(2)
4s(3)
5s(4)
6s(5)
7s(6)
8s(7)
9s(8)
dd0(x) → plus(times(x, s(9)), 0)
dd1(x) → plus(times(x, s(9)), 1)
dd2(x) → plus(times(x, s(9)), 2)
dd3(x) → plus(times(x, s(9)), 3)
dd4(x) → plus(times(x, s(9)), 4)
dd5(x) → plus(times(x, s(9)), 5)
dd6(x) → plus(times(x, s(9)), 6)
dd7(x) → plus(times(x, s(9)), 7)
dd8(x) → plus(times(x, s(9)), 8)
dd9(x) → plus(times(x, s(9)), 9)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(3) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 4 SCCs with 84 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D0(m(x)) → D0(x)

The TRS R consists of the following rules:

d0(0) → 0
d1(0) → 1
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
times(x, 0) → 0
times(x, 1) → x
times(x, d0(y)) → plus(d0(times(x, y)), times(x, 0))
times(x, d1(y)) → plus(d0(times(x, y)), times(x, 1))
m(0) → 0
m(m(x)) → x
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
d0(m(x)) → m(d0(x))
d1(m(x)) → m(d1(p(x)))
plus(x, m(y)) → m(plus(m(x), y))
times(x, m(y)) → m(times(x, y))
2s(1)
3s(2)
4s(3)
5s(4)
6s(5)
7s(6)
8s(7)
9s(8)
dd0(x) → plus(times(x, s(9)), 0)
dd1(x) → plus(times(x, s(9)), 1)
dd2(x) → plus(times(x, s(9)), 2)
dd3(x) → plus(times(x, s(9)), 3)
dd4(x) → plus(times(x, s(9)), 4)
dd5(x) → plus(times(x, s(9)), 5)
dd6(x) → plus(times(x, s(9)), 6)
dd7(x) → plus(times(x, s(9)), 7)
dd8(x) → plus(times(x, s(9)), 8)
dd9(x) → plus(times(x, s(9)), 9)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(6) UsableRulesProof (EQUIVALENT transformation)

We can use the usable rules and reduction pair processor [LPAR04] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its arguments. Then, we can delete all non-usable rules [FROCOS05] from R.

(7) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D0(m(x)) → D0(x)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(8) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • D0(m(x)) → D0(x)
    The graph contains the following edges 1 > 1

(9) YES

(10) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(d0(x)) → D1(x)
D1(m(x)) → D1(p(x))
D1(m(x)) → P(x)
P(d0(x)) → D1(p(x))
P(d0(x)) → P(x)
P(m(x)) → S(x)
S(d1(x)) → S(x)
S(m(d0(x))) → D1(p(x))
S(m(d0(x))) → P(x)

The TRS R consists of the following rules:

d0(0) → 0
d1(0) → 1
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
times(x, 0) → 0
times(x, 1) → x
times(x, d0(y)) → plus(d0(times(x, y)), times(x, 0))
times(x, d1(y)) → plus(d0(times(x, y)), times(x, 1))
m(0) → 0
m(m(x)) → x
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
d0(m(x)) → m(d0(x))
d1(m(x)) → m(d1(p(x)))
plus(x, m(y)) → m(plus(m(x), y))
times(x, m(y)) → m(times(x, y))
2s(1)
3s(2)
4s(3)
5s(4)
6s(5)
7s(6)
8s(7)
9s(8)
dd0(x) → plus(times(x, s(9)), 0)
dd1(x) → plus(times(x, s(9)), 1)
dd2(x) → plus(times(x, s(9)), 2)
dd3(x) → plus(times(x, s(9)), 3)
dd4(x) → plus(times(x, s(9)), 4)
dd5(x) → plus(times(x, s(9)), 5)
dd6(x) → plus(times(x, s(9)), 6)
dd7(x) → plus(times(x, s(9)), 7)
dd8(x) → plus(times(x, s(9)), 8)
dd9(x) → plus(times(x, s(9)), 9)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(11) UsableRulesProof (EQUIVALENT transformation)

We can use the usable rules and reduction pair processor [LPAR04] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its arguments. Then, we can delete all non-usable rules [FROCOS05] from R.

(12) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(d0(x)) → D1(x)
D1(m(x)) → D1(p(x))
D1(m(x)) → P(x)
P(d0(x)) → D1(p(x))
P(d0(x)) → P(x)
P(m(x)) → S(x)
S(d1(x)) → S(x)
S(m(d0(x))) → D1(p(x))
S(m(d0(x))) → P(x)

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(13) TransformationProof (EQUIVALENT transformation)

By narrowing [LPAR04] the rule D1(m(x)) → D1(p(x)) at position [0] we obtained the following new rules [LPAR04]:

D1(m(0)) → D1(m(1)) → D1(m(0)) → D1(m(1))
D1(m(1)) → D1(0) → D1(m(1)) → D1(0)
D1(m(d0(x0))) → D1(d1(p(x0))) → D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0)) → D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0))) → D1(m(m(x0))) → D1(m(s(x0)))

(14) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(d0(x)) → D1(x)
D1(m(x)) → P(x)
P(d0(x)) → D1(p(x))
P(d0(x)) → P(x)
P(m(x)) → S(x)
S(d1(x)) → S(x)
S(m(d0(x))) → D1(p(x))
S(m(d0(x))) → P(x)
D1(m(0)) → D1(m(1))
D1(m(1)) → D1(0)
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(15) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node.

(16) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D1(m(x)) → P(x)
P(d0(x)) → D1(p(x))
D1(m(0)) → D1(m(1))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(x)) → P(x)
P(m(x)) → S(x)
S(d0(x)) → D1(x)
S(d1(x)) → S(x)
S(m(d0(x))) → D1(p(x))
S(m(d0(x))) → P(x)

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(17) TransformationProof (EQUIVALENT transformation)

By narrowing [LPAR04] the rule P(d0(x)) → D1(p(x)) at position [0] we obtained the following new rules [LPAR04]:

P(d0(0)) → D1(m(1)) → P(d0(0)) → D1(m(1))
P(d0(1)) → D1(0) → P(d0(1)) → D1(0)
P(d0(d0(x0))) → D1(d1(p(x0))) → P(d0(d0(x0))) → D1(d1(p(x0)))
P(d0(d1(x0))) → D1(d0(x0)) → P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0))) → P(d0(m(x0))) → D1(m(s(x0)))

(18) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D1(m(x)) → P(x)
D1(m(0)) → D1(m(1))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(x)) → P(x)
P(m(x)) → S(x)
S(d0(x)) → D1(x)
S(d1(x)) → S(x)
S(m(d0(x))) → D1(p(x))
S(m(d0(x))) → P(x)
P(d0(0)) → D1(m(1))
P(d0(1)) → D1(0)
P(d0(d0(x0))) → D1(d1(p(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(19) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(d0(x)) → P(x)
P(m(x)) → S(x)
S(d0(x)) → D1(x)
D1(m(x)) → P(x)
P(d0(0)) → D1(m(1))
P(d0(d0(x0))) → D1(d1(p(x0)))
D1(m(0)) → D1(m(1))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))
S(d1(x)) → S(x)
S(m(d0(x))) → D1(p(x))
S(m(d0(x))) → P(x)

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(21) TransformationProof (EQUIVALENT transformation)

By narrowing [LPAR04] the rule S(m(d0(x))) → D1(p(x)) at position [0] we obtained the following new rules [LPAR04]:

S(m(d0(0))) → D1(m(1)) → S(m(d0(0))) → D1(m(1))
S(m(d0(1))) → D1(0) → S(m(d0(1))) → D1(0)
S(m(d0(d0(x0)))) → D1(d1(p(x0))) → S(m(d0(d0(x0)))) → D1(d1(p(x0)))
S(m(d0(d1(x0)))) → D1(d0(x0)) → S(m(d0(d1(x0)))) → D1(d0(x0))
S(m(d0(m(x0)))) → D1(m(s(x0))) → S(m(d0(m(x0)))) → D1(m(s(x0)))

(22) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(d0(x)) → P(x)
P(m(x)) → S(x)
S(d0(x)) → D1(x)
D1(m(x)) → P(x)
P(d0(0)) → D1(m(1))
P(d0(d0(x0))) → D1(d1(p(x0)))
D1(m(0)) → D1(m(1))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))
S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
S(m(d0(0))) → D1(m(1))
S(m(d0(1))) → D1(0)
S(m(d0(d0(x0)))) → D1(d1(p(x0)))
S(m(d0(d1(x0)))) → D1(d0(x0))
S(m(d0(m(x0)))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(23) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node.

(24) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(m(x)) → S(x)
S(d0(x)) → D1(x)
D1(m(x)) → P(x)
P(d0(x)) → P(x)
P(d0(0)) → D1(m(1))
P(d0(d0(x0))) → D1(d1(p(x0)))
D1(m(0)) → D1(m(1))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))
S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
S(m(d0(0))) → D1(m(1))
S(m(d0(d0(x0)))) → D1(d1(p(x0)))
S(m(d0(d1(x0)))) → D1(d0(x0))
S(m(d0(m(x0)))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(25) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


D1(m(0)) → D1(m(1))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(P(x1)) = 0A +
[-I,-I,0A]
·x1

POL(m(x1)) =
/0A\
|-I|
\0A/
+
/0A-I0A\
|-I-I0A|
\0A0A0A/
·x1

POL(S(x1)) = 0A +
[-I,0A,-I]
·x1

POL(d0(x1)) =
/-I\
|0A|
\0A/
+
/0A-I0A\
|0A0A0A|
\-I0A0A/
·x1

POL(D1(x1)) = 0A +
[0A,0A,-I]
·x1

POL(0) =
/1A\
|0A|
\0A/

POL(1) =
/0A\
|1A|
\-I/

POL(d1(x1)) =
/0A\
|-I|
\0A/
+
/0A0A0A\
|0A0A0A|
\0A0A0A/
·x1

POL(p(x1)) =
/0A\
|0A|
\0A/
+
/-I0A0A\
|0A0A0A|
\0A0A0A/
·x1

POL(s(x1)) =
/0A\
|0A|
\0A/
+
/0A0A0A\
|0A0A0A|
\0A0A0A/
·x1

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))
d0(0) → 0
d0(m(x)) → m(d0(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x

(26) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(m(x)) → S(x)
S(d0(x)) → D1(x)
D1(m(x)) → P(x)
P(d0(x)) → P(x)
P(d0(0)) → D1(m(1))
P(d0(d0(x0))) → D1(d1(p(x0)))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))
S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
S(m(d0(0))) → D1(m(1))
S(m(d0(d0(x0)))) → D1(d1(p(x0)))
S(m(d0(d1(x0)))) → D1(d0(x0))
S(m(d0(m(x0)))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(27) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


S(m(d0(0))) → D1(m(1))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(P(x1)) = 0A +
[-I,-I,0A]
·x1

POL(m(x1)) =
/-I\
|1A|
\-I/
+
/0A-I0A\
|0A-I0A|
\-I0A-I/
·x1

POL(S(x1)) = 0A +
[-I,0A,-I]
·x1

POL(d0(x1)) =
/0A\
|1A|
\0A/
+
/-I0A0A\
|0A0A0A|
\0A0A0A/
·x1

POL(D1(x1)) = 0A +
[0A,-I,0A]
·x1

POL(0) =
/0A\
|-I|
\-I/

POL(1) =
/0A\
|-I|
\0A/

POL(d1(x1)) =
/0A\
|0A|
\1A/
+
/0A0A0A\
|0A0A-I|
\0A0A-I/
·x1

POL(p(x1)) =
/1A\
|1A|
\1A/
+
/0A-I0A\
|0A-I0A|
\0A-I0A/
·x1

POL(s(x1)) =
/-I\
|1A|
\0A/
+
/0A0A0A\
|0A0A-I|
\0A0A0A/
·x1

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))
d0(0) → 0
d0(m(x)) → m(d0(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x

(28) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(m(x)) → S(x)
S(d0(x)) → D1(x)
D1(m(x)) → P(x)
P(d0(x)) → P(x)
P(d0(0)) → D1(m(1))
P(d0(d0(x0))) → D1(d1(p(x0)))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))
S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
S(m(d0(d0(x0)))) → D1(d1(p(x0)))
S(m(d0(d1(x0)))) → D1(d0(x0))
S(m(d0(m(x0)))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(29) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


P(d0(0)) → D1(m(1))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(P(x1)) = 0A +
[0A,-I,0A]
·x1

POL(m(x1)) =
/1A\
|-I|
\-I/
+
/0A0A0A\
|0A0A0A|
\0A0A-I/
·x1

POL(S(x1)) = 0A +
[-I,-I,0A]
·x1

POL(d0(x1)) =
/-I\
|1A|
\0A/
+
/0A-I0A\
|0A-I0A|
\0A0A0A/
·x1

POL(D1(x1)) = 0A +
[-I,0A,0A]
·x1

POL(0) =
/1A\
|0A|
\-I/

POL(1) =
/0A\
|0A|
\-I/

POL(d1(x1)) =
/0A\
|0A|
\1A/
+
/0A0A0A\
|0A-I0A|
\0A0A0A/
·x1

POL(p(x1)) =
/1A\
|0A|
\0A/
+
/0A0A0A\
|0A0A0A|
\0A0A0A/
·x1

POL(s(x1)) =
/-I\
|1A|
\0A/
+
/0A-I0A\
|0A0A0A|
\-I0A0A/
·x1

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))
d0(0) → 0
d0(m(x)) → m(d0(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x

(30) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(m(x)) → S(x)
S(d0(x)) → D1(x)
D1(m(x)) → P(x)
P(d0(x)) → P(x)
P(d0(d0(x0))) → D1(d1(p(x0)))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))
S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
S(m(d0(d0(x0)))) → D1(d1(p(x0)))
S(m(d0(d1(x0)))) → D1(d0(x0))
S(m(d0(m(x0)))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(31) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


D1(m(x)) → P(x)
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(P(x1)) = 0A +
[0A,0A,0A,-I]
·x1

POL(m(x1)) =
/-I\
|-I|
|0A|
\0A/
+
/0A-I-I-I\
|0A0A-I-I|
|0A-I-I0A|
\0A-I0A-I/
·x1

POL(S(x1)) = 0A +
[0A,0A,-I,0A]
·x1

POL(d0(x1)) =
/0A\
|0A|
|0A|
\0A/
+
/-I0A0A0A\
|0A0A0A0A|
|0A1A1A0A|
\0A1A0A1A/
·x1

POL(D1(x1)) = -I +
[0A,1A,0A,1A]
·x1

POL(d1(x1)) =
/0A\
|0A|
|0A|
\0A/
+
/0A0A-I0A\
|0A1A0A1A|
|0A0A-I0A|
\0A0A-I0A/
·x1

POL(p(x1)) =
/-I\
|-I|
|0A|
\-I/
+
/0A0A0A-I\
|-I0A0A-I|
|0A1A1A0A|
\-I0A0A-I/
·x1

POL(s(x1)) =
/0A\
|-I|
|-I|
\0A/
+
/0A0A-I0A\
|-I0A-I0A|
|-I0A-I0A|
\0A1A0A1A/
·x1

POL(0) =
/0A\
|-I|
|0A|
\-I/

POL(1) =
/0A\
|-I|
|-I|
\0A/

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))
d0(0) → 0
d0(m(x)) → m(d0(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x

(32) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(m(x)) → S(x)
S(d0(x)) → D1(x)
P(d0(x)) → P(x)
P(d0(d0(x0))) → D1(d1(p(x0)))
D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))
P(d0(d1(x0))) → D1(d0(x0))
P(d0(m(x0))) → D1(m(s(x0)))
S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
S(m(d0(d0(x0)))) → D1(d1(p(x0)))
S(m(d0(d1(x0)))) → D1(d0(x0))
S(m(d0(m(x0)))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(33) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 2 SCCs with 7 less nodes.

(34) Complex Obligation (AND)

(35) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))
D1(m(m(x0))) → D1(m(s(x0)))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(36) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


D1(m(m(x0))) → D1(m(s(x0)))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(D1(x1)) = -I +
[0A,0A,0A,-I]
·x1

POL(m(x1)) =
/0A\
|0A|
|0A|
\0A/
+
/0A0A-I0A\
|0A0A0A1A|
|0A0A-I0A|
\0A1A-I-I/
·x1

POL(d0(x1)) =
/0A\
|0A|
|1A|
\0A/
+
/0A0A0A0A\
|-I1A-I0A|
|0A1A0A-I|
\0A0A0A1A/
·x1

POL(d1(x1)) =
/-I\
|0A|
|1A|
\0A/
+
/0A0A0A-I\
|0A1A0A-I|
|0A0A0A0A|
\-I1A-I0A/
·x1

POL(p(x1)) =
/0A\
|-I|
|0A|
\0A/
+
/0A0A0A0A\
|-I-I-I0A|
|0A0A0A0A|
\0A0A0A1A/
·x1

POL(s(x1)) =
/-I\
|-I|
|0A|
\-I/
+
/0A0A-I-I\
|0A1A-I-I|
|0A1A-I-I|
\-I0A-I-I/
·x1

POL(0) =
/0A\
|-I|
|0A|
\0A/

POL(1) =
/0A\
|0A|
|0A|
\-I/

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))
d0(0) → 0
d0(m(x)) → m(d0(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x

(37) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D1(m(d0(x0))) → D1(d1(p(x0)))
D1(m(d1(x0))) → D1(d0(x0))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(38) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


D1(m(d0(x0))) → D1(d1(p(x0)))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(D1(x1)) = -I +
[0A,-I,0A]
·x1

POL(m(x1)) =
/1A\
|2A|
\1A/
+
/0A0A1A\
|1A0A0A|
\1A0A0A/
·x1

POL(d0(x1)) =
/-I\
|0A|
\-I/
+
/0A-I-I\
|0A0A0A|
\-I-I0A/
·x1

POL(d1(x1)) =
/0A\
|-I|
\0A/
+
/-I-I0A\
|0A0A-I|
\-I-I0A/
·x1

POL(p(x1)) =
/-I\
|0A|
\0A/
+
/1A0A0A\
|1A0A-I|
\0A-I-I/
·x1

POL(0) =
/1A\
|0A|
\0A/

POL(1) =
/0A\
|-I|
\-I/

POL(s(x1)) =
/0A\
|0A|
\1A/
+
/-I-I0A\
|0A0A1A|
\0A0A1A/
·x1

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))
d0(0) → 0
d0(m(x)) → m(d0(x))
s(0) → 1
s(1) → d0(1)
s(m(1)) → 0
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(d0(x))) → m(d1(p(x)))

(39) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D1(m(d1(x0))) → D1(d0(x0))

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(40) UsableRulesProof (EQUIVALENT transformation)

We can use the usable rules and reduction pair processor [LPAR04] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its arguments. Then, we can delete all non-usable rules [FROCOS05] from R.

(41) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D1(m(d1(x0))) → D1(d0(x0))

The TRS R consists of the following rules:

d0(0) → 0
d0(m(x)) → m(d0(x))
m(0) → 0
m(m(x)) → x

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(42) MNOCProof (EQUIVALENT transformation)

We use the modular non-overlap check [LPAR04] to enlarge Q to all left-hand sides of R.

(43) Obligation:

Q DP problem:
The TRS P consists of the following rules:

D1(m(d1(x0))) → D1(d0(x0))

The TRS R consists of the following rules:

d0(0) → 0
d0(m(x)) → m(d0(x))
m(0) → 0
m(m(x)) → x

The set Q consists of the following terms:

d0(0)
d0(m(x0))
m(0)
m(m(x0))

We have to consider all minimal (P,Q,R)-chains.

(44) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(45) TRUE

(46) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
P(d0(x)) → P(x)
P(m(x)) → S(x)

The TRS R consists of the following rules:

p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(47) UsableRulesProof (EQUIVALENT transformation)

We can use the usable rules and reduction pair processor [LPAR04] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its arguments. Then, we can delete all non-usable rules [FROCOS05] from R.

(48) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(d1(x)) → S(x)
S(m(d0(x))) → P(x)
P(d0(x)) → P(x)
P(m(x)) → S(x)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(49) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • S(d1(x)) → S(x)
    The graph contains the following edges 1 > 1

  • S(m(d0(x))) → P(x)
    The graph contains the following edges 1 > 1

  • P(m(x)) → S(x)
    The graph contains the following edges 1 > 1

  • P(d0(x)) → P(x)
    The graph contains the following edges 1 > 1

(50) YES

(51) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PLUS(x, d0(y)) → PLUS(x, y)
PLUS(x, d0(y)) → PLUS(plus(x, y), y)
PLUS(x, d1(y)) → PLUS(x, d0(y))
PLUS(x, m(y)) → PLUS(m(x), y)

The TRS R consists of the following rules:

d0(0) → 0
d1(0) → 1
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
times(x, 0) → 0
times(x, 1) → x
times(x, d0(y)) → plus(d0(times(x, y)), times(x, 0))
times(x, d1(y)) → plus(d0(times(x, y)), times(x, 1))
m(0) → 0
m(m(x)) → x
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
d0(m(x)) → m(d0(x))
d1(m(x)) → m(d1(p(x)))
plus(x, m(y)) → m(plus(m(x), y))
times(x, m(y)) → m(times(x, y))
2s(1)
3s(2)
4s(3)
5s(4)
6s(5)
7s(6)
8s(7)
9s(8)
dd0(x) → plus(times(x, s(9)), 0)
dd1(x) → plus(times(x, s(9)), 1)
dd2(x) → plus(times(x, s(9)), 2)
dd3(x) → plus(times(x, s(9)), 3)
dd4(x) → plus(times(x, s(9)), 4)
dd5(x) → plus(times(x, s(9)), 5)
dd6(x) → plus(times(x, s(9)), 6)
dd7(x) → plus(times(x, s(9)), 7)
dd8(x) → plus(times(x, s(9)), 8)
dd9(x) → plus(times(x, s(9)), 9)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(52) UsableRulesReductionPairsProof (EQUIVALENT transformation)

By using the usable rules with reduction pair processor [LPAR04] with a polynomial ordering [POLO], all dependency pairs and the corresponding usable rules [FROCOS05] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

No dependency pairs are removed.

The following rules are removed from R:

times(x, 0) → 0
times(x, 1) → x
times(x, d0(y)) → plus(d0(times(x, y)), times(x, 0))
times(x, d1(y)) → plus(d0(times(x, y)), times(x, 1))
times(x, m(y)) → m(times(x, y))
2s(1)
3s(2)
4s(3)
5s(4)
6s(5)
7s(6)
8s(7)
9s(8)
dd0(x) → plus(times(x, s(9)), 0)
dd1(x) → plus(times(x, s(9)), 1)
dd2(x) → plus(times(x, s(9)), 2)
dd3(x) → plus(times(x, s(9)), 3)
dd4(x) → plus(times(x, s(9)), 4)
dd5(x) → plus(times(x, s(9)), 5)
dd6(x) → plus(times(x, s(9)), 6)
dd7(x) → plus(times(x, s(9)), 7)
dd8(x) → plus(times(x, s(9)), 8)
dd9(x) → plus(times(x, s(9)), 9)
Used ordering: POLO with Polynomial interpretation [POLO]:

POL(0) = 0   
POL(1) = 0   
POL(PLUS(x1, x2)) = x1 + x2   
POL(d0(x1)) = 2·x1   
POL(d1(x1)) = 2·x1   
POL(m(x1)) = x1   
POL(p(x1)) = x1   
POL(plus(x1, x2)) = x1 + x2   
POL(s(x1)) = x1   

(53) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PLUS(x, d0(y)) → PLUS(x, y)
PLUS(x, d0(y)) → PLUS(plus(x, y), y)
PLUS(x, d1(y)) → PLUS(x, d0(y))
PLUS(x, m(y)) → PLUS(m(x), y)

The TRS R consists of the following rules:

m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
plus(x, m(y)) → m(plus(m(x), y))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(54) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


PLUS(x, m(y)) → PLUS(m(x), y)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PLUS(x1, x2)  =  x2
d0(x1)  =  x1
d1(x1)  =  x1
m(x1)  =  m(x1)
0  =  0

Knuth-Bendix order [KBO] with precedence:
trivial

and weight map:

0=1
m_1=1

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

d0(0) → 0
d0(m(x)) → m(d0(x))
m(0) → 0
m(m(x)) → x

(55) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PLUS(x, d0(y)) → PLUS(x, y)
PLUS(x, d0(y)) → PLUS(plus(x, y), y)
PLUS(x, d1(y)) → PLUS(x, d0(y))

The TRS R consists of the following rules:

m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
plus(x, m(y)) → m(plus(m(x), y))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(56) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


PLUS(x, d1(y)) → PLUS(x, d0(y))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PLUS(x1, x2)  =  x2
d0(x1)  =  x1
d1(x1)  =  d1(x1)
0  =  0
m(x1)  =  x1

Knuth-Bendix order [KBO] with precedence:
trivial

and weight map:

0=1
d1_1=1

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

d0(0) → 0
d0(m(x)) → m(d0(x))
m(0) → 0
m(m(x)) → x

(57) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PLUS(x, d0(y)) → PLUS(x, y)
PLUS(x, d0(y)) → PLUS(plus(x, y), y)

The TRS R consists of the following rules:

m(0) → 0
m(m(x)) → x
d0(0) → 0
d0(m(x)) → m(d0(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
plus(x, m(y)) → m(plus(m(x), y))
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
d1(0) → 1
d1(m(x)) → m(d1(p(x)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(58) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • PLUS(x, d0(y)) → PLUS(x, y)
    The graph contains the following edges 1 >= 1, 2 > 2

  • PLUS(x, d0(y)) → PLUS(plus(x, y), y)
    The graph contains the following edges 2 > 2

(59) YES

(60) Obligation:

Q DP problem:
The TRS P consists of the following rules:

TIMES(x, d1(y)) → TIMES(x, y)
TIMES(x, d0(y)) → TIMES(x, y)
TIMES(x, m(y)) → TIMES(x, y)

The TRS R consists of the following rules:

d0(0) → 0
d1(0) → 1
s(0) → 1
s(1) → d0(1)
s(d0(x)) → d1(x)
s(d1(x)) → d0(s(x))
plus(x, 0) → x
plus(x, 1) → s(x)
plus(x, d0(y)) → plus(plus(x, y), y)
plus(x, d1(y)) → s(plus(x, d0(y)))
times(x, 0) → 0
times(x, 1) → x
times(x, d0(y)) → plus(d0(times(x, y)), times(x, 0))
times(x, d1(y)) → plus(d0(times(x, y)), times(x, 1))
m(0) → 0
m(m(x)) → x
p(0) → m(1)
p(1) → 0
p(d0(x)) → d1(p(x))
p(d1(x)) → d0(x)
p(m(x)) → m(s(x))
s(m(1)) → 0
s(m(d0(x))) → m(d1(p(x)))
s(m(d1(x))) → m(d0(x))
d0(m(x)) → m(d0(x))
d1(m(x)) → m(d1(p(x)))
plus(x, m(y)) → m(plus(m(x), y))
times(x, m(y)) → m(times(x, y))
2s(1)
3s(2)
4s(3)
5s(4)
6s(5)
7s(6)
8s(7)
9s(8)
dd0(x) → plus(times(x, s(9)), 0)
dd1(x) → plus(times(x, s(9)), 1)
dd2(x) → plus(times(x, s(9)), 2)
dd3(x) → plus(times(x, s(9)), 3)
dd4(x) → plus(times(x, s(9)), 4)
dd5(x) → plus(times(x, s(9)), 5)
dd6(x) → plus(times(x, s(9)), 6)
dd7(x) → plus(times(x, s(9)), 7)
dd8(x) → plus(times(x, s(9)), 8)
dd9(x) → plus(times(x, s(9)), 9)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(61) UsableRulesProof (EQUIVALENT transformation)

We can use the usable rules and reduction pair processor [LPAR04] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its arguments. Then, we can delete all non-usable rules [FROCOS05] from R.

(62) Obligation:

Q DP problem:
The TRS P consists of the following rules:

TIMES(x, d1(y)) → TIMES(x, y)
TIMES(x, d0(y)) → TIMES(x, y)
TIMES(x, m(y)) → TIMES(x, y)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(63) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • TIMES(x, d1(y)) → TIMES(x, y)
    The graph contains the following edges 1 >= 1, 2 > 2

  • TIMES(x, d0(y)) → TIMES(x, y)
    The graph contains the following edges 1 >= 1, 2 > 2

  • TIMES(x, m(y)) → TIMES(x, y)
    The graph contains the following edges 1 >= 1, 2 > 2

(64) YES