Term Rewriting System R:
[x]
a(f, a(g, a(f, x))) -> a(f, a(g, a(g, a(f, x))))
a(g, a(f, a(g, x))) -> a(g, a(f, a(f, a(g, x))))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

A(f, a(g, a(f, x))) -> A(f, a(g, a(g, a(f, x))))
A(f, a(g, a(f, x))) -> A(g, a(g, a(f, x)))
A(g, a(f, a(g, x))) -> A(g, a(f, a(f, a(g, x))))
A(g, a(f, a(g, x))) -> A(f, a(f, a(g, x)))

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Modular Removal of Rules


Dependency Pairs:

A(g, a(f, a(g, x))) -> A(f, a(f, a(g, x)))
A(g, a(f, a(g, x))) -> A(g, a(f, a(f, a(g, x))))
A(f, a(g, a(f, x))) -> A(g, a(g, a(f, x)))
A(f, a(g, a(f, x))) -> A(f, a(g, a(g, a(f, x))))


Rules:


a(f, a(g, a(f, x))) -> a(f, a(g, a(g, a(f, x))))
a(g, a(f, a(g, x))) -> a(g, a(f, a(f, a(g, x))))





The original DP problem is in applicative form. Its DPs and usable rules are the following.

A(g, a(f, a(g, x))) -> A(f, a(f, a(g, x)))
A(g, a(f, a(g, x))) -> A(g, a(f, a(f, a(g, x))))
A(f, a(g, a(f, x))) -> A(g, a(g, a(f, x)))
A(f, a(g, a(f, x))) -> A(f, a(g, a(g, a(f, x))))


a(f, a(g, a(f, x))) -> a(f, a(g, a(g, a(f, x))))
a(g, a(f, a(g, x))) -> a(g, a(f, a(f, a(g, x))))


It is proper and hence, it can be A-transformed which results in the DP problem

G(f(g(x))) -> F(f(g(x)))
G(f(g(x))) -> G(f(f(g(x))))
F(g(f(x))) -> G(g(f(x)))
F(g(f(x))) -> F(g(g(f(x))))


f(g(f(x))) -> f(g(g(f(x))))
g(f(g(x))) -> g(f(f(g(x))))


To remove rules and DPs from this DP problem we used the following monotonic and CE-compatible order: Polynomial ordering.
Polynomial interpretation:
  POL(g(x1))=  x1  
  POL(G(x1))=  x1  
  POL(f(x1))=  x1  
  POL(F(x1))=  x1  

We have the following set D of usable symbols: {g, G, F, f}
No Dependency Pairs can be deleted.
No Rules can be deleted.

The result of this processor delivers one new DP problem.
Note that we keep the A-transformed DP problem as result of this processor.



   R
DPs
       →DP Problem 1
MRR
           →DP Problem 2
Negative Polynomial Order


Dependency Pairs:

G(f(g(x))) -> F(f(g(x)))
G(f(g(x))) -> G(f(f(g(x))))
F(g(f(x))) -> G(g(f(x)))
F(g(f(x))) -> F(g(g(f(x))))


Rules:


f(g(f(x))) -> f(g(g(f(x))))
g(f(g(x))) -> g(f(f(g(x))))





The following Dependency Pair can be strictly oriented using the given order.

G(f(g(x))) -> F(f(g(x)))


Moreover, the following usable rules (regarding the implicit AFS) are oriented.

f(g(f(x))) -> f(g(g(f(x))))
g(f(g(x))) -> g(f(f(g(x))))


Used ordering:
Polynomial Order with Interpretation:

POL( G(x1) ) = 1

POL( F(x1) ) = x1

POL( f(x1) ) = 0

POL( g(x1) ) = 1


This results in one new DP problem.


   R
DPs
       →DP Problem 1
MRR
           →DP Problem 2
Neg POLO
             ...
               →DP Problem 3
Dependency Graph


Dependency Pairs:

G(f(g(x))) -> G(f(f(g(x))))
F(g(f(x))) -> G(g(f(x)))
F(g(f(x))) -> F(g(g(f(x))))


Rules:


f(g(f(x))) -> f(g(g(f(x))))
g(f(g(x))) -> g(f(f(g(x))))





Using the Dependency Graph the DP problem was split into 2 DP problems.


   R
DPs
       →DP Problem 1
MRR
           →DP Problem 2
Neg POLO
             ...
               →DP Problem 4
RFC Match Bounds


Dependency Pair:

G(f(g(x))) -> G(f(f(g(x))))


Rules:


f(g(f(x))) -> f(g(g(f(x))))
g(f(g(x))) -> g(f(f(g(x))))





Using RFC Match Bounds, the DP problem could be solved. The Match Bound was 2.
The certificate found is represented by the following graph.

The certificate consists of the following enumerated nodes:

49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65

Node 49 is start node and node 50 is final node.

Those nodes are connect through the following edges:




   R
DPs
       →DP Problem 1
MRR
           →DP Problem 2
Neg POLO
             ...
               →DP Problem 5
RFC Match Bounds


Dependency Pair:

F(g(f(x))) -> F(g(g(f(x))))


Rules:


f(g(f(x))) -> f(g(g(f(x))))
g(f(g(x))) -> g(f(f(g(x))))





Using RFC Match Bounds, the DP problem could be solved. The Match Bound was 2.
The certificate found is represented by the following graph.

The certificate consists of the following enumerated nodes:

66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82

Node 66 is start node and node 67 is final node.

Those nodes are connect through the following edges:



Termination of R successfully shown.
Duration:
0:00 minutes