Termination w.r.t. Q of the following Term Rewriting System could be proven:

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

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.


QTRS
  ↳ DependencyPairsProof
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

A(b(a(x1))) → B(b(a(a(x1))))
A(b(a(x1))) → A(a(b(b(a(a(x1))))))
B(a(a(b(x1)))) → B(a(b(x1)))
A(b(a(x1))) → A(b(b(a(a(x1)))))
A(b(a(x1))) → A(a(x1))
A(b(a(x1))) → B(a(a(x1)))

The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

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

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

A(b(a(x1))) → B(b(a(a(x1))))
A(b(a(x1))) → A(a(b(b(a(a(x1))))))
B(a(a(b(x1)))) → B(a(b(x1)))
A(b(a(x1))) → A(b(b(a(a(x1)))))
A(b(a(x1))) → A(a(x1))
A(b(a(x1))) → B(a(a(x1)))

The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 2 SCCs with 2 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ Narrowing
          ↳ QDP
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

B(a(a(b(x1)))) → B(a(b(x1)))

The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule B(a(a(b(x1)))) → B(a(b(x1))) at position [0] we obtained the following new rules:

B(a(a(b(a(a(b(x0))))))) → B(a(b(a(b(x0)))))
B(a(a(b(a(x0))))) → B(a(a(b(b(a(a(x0)))))))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ Narrowing
QDP
                ↳ SemLabProof
                ↳ SemLabProof2
          ↳ QDP
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

B(a(a(b(a(a(b(x0))))))) → B(a(b(a(b(x0)))))
B(a(a(b(a(x0))))) → B(a(a(b(b(a(a(x0)))))))

The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We found the following model for the rules of the TRS R. Interpretation over the domain with elements from 0 to 1.B: 0
a: 0
b: 1
By semantic labelling [33] we obtain the following labelled TRS:Q DP problem:
The TRS P consists of the following rules:

B.0(a.0(a.1(b.0(a.0(a.1(b.0(x0))))))) → B.0(a.1(b.0(a.1(b.0(x0)))))
B.0(a.0(a.1(b.0(a.0(x0))))) → B.0(a.0(a.1(b.1(b.0(a.0(a.0(x0)))))))
B.0(a.0(a.1(b.0(a.0(a.1(b.1(x0))))))) → B.0(a.1(b.0(a.1(b.1(x0)))))
B.0(a.0(a.1(b.0(a.1(x0))))) → B.0(a.0(a.1(b.1(b.0(a.0(a.1(x0)))))))

The TRS R consists of the following rules:

a.1(b.0(a.0(x1))) → a.0(a.1(b.1(b.0(a.0(a.0(x1))))))
a.1(b.0(a.1(x1))) → a.0(a.1(b.1(b.0(a.0(a.1(x1))))))
b.0(a.0(a.1(b.1(x1)))) → b.0(a.1(b.1(x1)))
b.0(a.0(a.1(b.0(x1)))) → b.0(a.1(b.0(x1)))

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

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ Narrowing
              ↳ QDP
                ↳ SemLabProof
QDP
                    ↳ DependencyGraphProof
                ↳ SemLabProof2
          ↳ QDP
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

B.0(a.0(a.1(b.0(a.0(a.1(b.0(x0))))))) → B.0(a.1(b.0(a.1(b.0(x0)))))
B.0(a.0(a.1(b.0(a.0(x0))))) → B.0(a.0(a.1(b.1(b.0(a.0(a.0(x0)))))))
B.0(a.0(a.1(b.0(a.0(a.1(b.1(x0))))))) → B.0(a.1(b.0(a.1(b.1(x0)))))
B.0(a.0(a.1(b.0(a.1(x0))))) → B.0(a.0(a.1(b.1(b.0(a.0(a.1(x0)))))))

The TRS R consists of the following rules:

a.1(b.0(a.0(x1))) → a.0(a.1(b.1(b.0(a.0(a.0(x1))))))
a.1(b.0(a.1(x1))) → a.0(a.1(b.1(b.0(a.0(a.1(x1))))))
b.0(a.0(a.1(b.1(x1)))) → b.0(a.1(b.1(x1)))
b.0(a.0(a.1(b.0(x1)))) → b.0(a.1(b.0(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 2 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ Narrowing
              ↳ QDP
                ↳ SemLabProof
                  ↳ QDP
                    ↳ DependencyGraphProof
QDP
                ↳ SemLabProof2
          ↳ QDP
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

B.0(a.0(a.1(b.0(a.0(a.1(b.0(x0))))))) → B.0(a.1(b.0(a.1(b.0(x0)))))
B.0(a.0(a.1(b.0(a.0(a.1(b.1(x0))))))) → B.0(a.1(b.0(a.1(b.1(x0)))))

The TRS R consists of the following rules:

a.1(b.0(a.0(x1))) → a.0(a.1(b.1(b.0(a.0(a.0(x1))))))
a.1(b.0(a.1(x1))) → a.0(a.1(b.1(b.0(a.0(a.1(x1))))))
b.0(a.0(a.1(b.1(x1)))) → b.0(a.1(b.1(x1)))
b.0(a.0(a.1(b.0(x1)))) → b.0(a.1(b.0(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
As can be seen after transforming the QDP problem by semantic labelling [33] and then some rule deleting processors, only certain labelled rules and pairs can be used. Hence, we only have to consider all unlabelled pairs and rules (without the decreasing rules for quasi-models).

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ Narrowing
              ↳ QDP
                ↳ SemLabProof
                ↳ SemLabProof2
QDP
                    ↳ RFCMatchBoundsDPProof
          ↳ QDP
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

B(a(a(b(a(a(b(x0))))))) → B(a(b(a(b(x0)))))

The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
Finiteness of the DP problem can be shown by a matchbound of 4.
As the DP problem is minimal we only have to initialize the certificate graph by the rules of P:

B(a(a(b(a(a(b(x0))))))) → B(a(b(a(b(x0)))))

To find matches we regarded all rules of R and P:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))
B(a(a(b(a(a(b(x0))))))) → B(a(b(a(b(x0)))))

The certificate found is represented by the following graph.

The certificate consists of the following enumerated nodes:

443, 444, 448, 446, 447, 445, 450, 449, 453, 454, 452, 455, 451, 458, 459, 457, 460, 456, 463, 464, 462, 465, 461, 467, 466, 469, 468, 472, 473, 471, 474, 470, 476, 475, 478, 477, 479, 480, 481, 482

Node 443 is start node and node 444 is final node.

Those nodes are connect through the following edges:




↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ QDPOrderProof
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

A(b(a(x1))) → A(a(b(b(a(a(x1))))))
A(b(a(x1))) → A(b(b(a(a(x1)))))
A(b(a(x1))) → A(a(x1))

The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


A(b(a(x1))) → A(a(b(b(a(a(x1))))))
A(b(a(x1))) → A(a(x1))
The remaining pairs can at least be oriented weakly.

A(b(a(x1))) → A(b(b(a(a(x1)))))
Used ordering: Polynomial Order [21,25] with Interpretation:

POL( A(x1) ) = x1


POL( a(x1) ) = 0


POL( b(x1) ) = 1



The following usable rules [17] were oriented:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
  ↳ QTRS Reverse
  ↳ QTRS Reverse

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

A(b(a(x1))) → A(b(b(a(a(x1)))))

The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


A(b(a(x1))) → A(b(b(a(a(x1)))))
The remaining pairs can at least be oriented weakly.
none
Used ordering: Polynomial interpretation [25,35]:

POL(a(x1)) = 1/4   
POL(A(x1)) = (4)x_1   
POL(b(x1)) = (1/2)x_1   
The value of delta used in the strict ordering is 1/4.
The following usable rules [17] were oriented:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
  ↳ QTRS Reverse
  ↳ QTRS Reverse

Q DP problem:
P is empty.
The TRS R consists of the following rules:

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.
We have reversed the following QTRS:
The set of rules R is

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

The set Q is empty.
We have obtained the following QTRS:

a(b(a(x))) → a(a(b(b(a(a(x))))))
b(a(a(b(x)))) → b(a(b(x)))

The set Q is empty.

↳ QTRS
  ↳ DependencyPairsProof
  ↳ QTRS Reverse
QTRS
  ↳ QTRS Reverse

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

a(b(a(x))) → a(a(b(b(a(a(x))))))
b(a(a(b(x)))) → b(a(b(x)))

Q is empty.

We have reversed the following QTRS:
The set of rules R is

a(b(a(x1))) → a(a(b(b(a(a(x1))))))
b(a(a(b(x1)))) → b(a(b(x1)))

The set Q is empty.
We have obtained the following QTRS:

a(b(a(x))) → a(a(b(b(a(a(x))))))
b(a(a(b(x)))) → b(a(b(x)))

The set Q is empty.

↳ QTRS
  ↳ DependencyPairsProof
  ↳ QTRS Reverse
  ↳ QTRS Reverse
QTRS

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

a(b(a(x))) → a(a(b(b(a(a(x))))))
b(a(a(b(x)))) → b(a(b(x)))

Q is empty.