(0) Obligation:

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

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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:

B(x, y) → A(c(y), a(0, x))
B(x, y) → A(0, x)
A(y, c(b(a(0, x), 0))) → B(a(c(b(0, y)), x), 0)
A(y, c(b(a(0, x), 0))) → A(c(b(0, y)), x)
A(y, c(b(a(0, x), 0))) → B(0, y)

The TRS R consists of the following rules:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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

(3) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule B(x, y) → A(c(y), a(0, x)) we obtained the following new rules [LPAR04]:

B(y_3, 0) → A(c(0), a(0, y_3))
B(0, y_0) → A(c(y_0), a(0, 0))

(4) Obligation:

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

B(x, y) → A(0, x)
A(y, c(b(a(0, x), 0))) → B(a(c(b(0, y)), x), 0)
A(y, c(b(a(0, x), 0))) → A(c(b(0, y)), x)
A(y, c(b(a(0, x), 0))) → B(0, y)
B(y_3, 0) → A(c(0), a(0, y_3))
B(0, y_0) → A(c(y_0), a(0, 0))

The TRS R consists of the following rules:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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

(5) Narrowing (EQUIVALENT transformation)

By narrowing [LPAR04] the rule B(0, y_0) → A(c(y_0), a(0, 0)) at position [1] we obtained the following new rules [LPAR04]:

B(0, y0) → A(c(y0), 0)

(6) Obligation:

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

B(x, y) → A(0, x)
A(y, c(b(a(0, x), 0))) → B(a(c(b(0, y)), x), 0)
A(y, c(b(a(0, x), 0))) → A(c(b(0, y)), x)
A(y, c(b(a(0, x), 0))) → B(0, y)
B(y_3, 0) → A(c(0), a(0, y_3))
B(0, y0) → A(c(y0), 0)

The TRS R consists of the following rules:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

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

(8) Obligation:

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

A(y, c(b(a(0, x), 0))) → B(a(c(b(0, y)), x), 0)
B(x, y) → A(0, x)
A(y, c(b(a(0, x), 0))) → A(c(b(0, y)), x)
A(y, c(b(a(0, x), 0))) → B(0, y)
B(y_3, 0) → A(c(0), a(0, y_3))

The TRS R consists of the following rules:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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

(9) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule B(x, y) → A(0, x) we obtained the following new rules [LPAR04]:

B(y_3, 0) → A(0, y_3)
B(0, y_0) → A(0, 0)

(10) Obligation:

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

A(y, c(b(a(0, x), 0))) → B(a(c(b(0, y)), x), 0)
A(y, c(b(a(0, x), 0))) → A(c(b(0, y)), x)
A(y, c(b(a(0, x), 0))) → B(0, y)
B(y_3, 0) → A(c(0), a(0, y_3))
B(y_3, 0) → A(0, y_3)
B(0, y_0) → A(0, 0)

The TRS R consists of the following rules:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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

(11) DependencyGraphProof (EQUIVALENT transformation)

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

(12) Obligation:

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

B(y_3, 0) → A(c(0), a(0, y_3))
A(y, c(b(a(0, x), 0))) → B(a(c(b(0, y)), x), 0)
B(y_3, 0) → A(0, y_3)
A(y, c(b(a(0, x), 0))) → A(c(b(0, y)), x)
A(y, c(b(a(0, x), 0))) → B(0, y)

The TRS R consists of the following rules:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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

(13) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


A(y, c(b(a(0, x), 0))) → B(a(c(b(0, y)), x), 0)
A(y, c(b(a(0, x), 0))) → A(c(b(0, y)), x)
A(y, c(b(a(0, x), 0))) → B(0, y)
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(B(x1, x2)) =
/0\
\1/
+
/10\
\11/
·x1 +
/00\
\00/
·x2

POL(0) =
/0\
\0/

POL(A(x1, x2)) =
/0\
\1/
+
/00\
\00/
·x1 +
/10\
\10/
·x2

POL(c(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(a(x1, x2)) =
/0\
\1/
+
/10\
\01/
·x1 +
/10\
\10/
·x2

POL(b(x1, x2)) =
/1\
\0/
+
/10\
\11/
·x1 +
/01\
\00/
·x2

The following usable rules [FROCOS05] were oriented:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

(14) Obligation:

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

B(y_3, 0) → A(c(0), a(0, y_3))
B(y_3, 0) → A(0, y_3)

The TRS R consists of the following rules:

b(x, y) → c(a(c(y), a(0, x)))
a(y, x) → y
a(y, c(b(a(0, x), 0))) → b(a(c(b(0, y)), x), 0)

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 0 SCCs with 2 less nodes.

(16) TRUE