Term Rewriting System R:
[X, Y]
f(X) -> if(X, c, nf(true))
f(X) -> nf(X)
if(true, X, Y) -> X
if(false, X, Y) -> activate(Y)
activate(nf(X)) -> f(X)
activate(X) -> X

Termination of R to be shown.



   R
Removing Redundant Rules



Removing the following rules from R which fullfill a polynomial ordering:

f(X) -> if(X, c, nf(true))
f(X) -> nf(X)
activate(X) -> X

where the Polynomial interpretation:
  POL(n__f(x1))=  x1  
  POL(activate(x1))=  1 + x1  
  POL(if(x1, x2, x3))=  x1 + x2 + x3  
  POL(c)=  0  
  POL(false)=  1  
  POL(true)=  0  
  POL(f(x1))=  1 + x1  
was used.

Not all Rules of R can be deleted, so we still have to regard a part of R.


   R
RRRPolo
       →TRS2
Removing Redundant Rules



Removing the following rules from R which fullfill a polynomial ordering:

if(false, X, Y) -> activate(Y)
if(true, X, Y) -> X

where the Polynomial interpretation:
  POL(activate(x1))=  x1  
  POL(n__f(x1))=  x1  
  POL(if(x1, x2, x3))=  1 + x1 + x2 + x3  
  POL(false)=  0  
  POL(true)=  0  
  POL(f(x1))=  x1  
was used.

Not all Rules of R can be deleted, so we still have to regard a part of R.


   R
RRRPolo
       →TRS2
RRRPolo
           →TRS3
Removing Redundant Rules



Removing the following rules from R which fullfill a polynomial ordering:

activate(nf(X)) -> f(X)

where the Polynomial interpretation:
  POL(activate(x1))=  1 + x1  
  POL(n__f(x1))=  x1  
  POL(f(x1))=  x1  
was used.

All Rules of R can be deleted.


   R
RRRPolo
       →TRS2
RRRPolo
           →TRS3
RRRPolo
             ...
               →TRS4
Overlay and local confluence Check



The TRS is overlay and locally confluent (all critical pairs are trivially joinable).Hence, we can switch to innermost.


   R
RRRPolo
       →TRS2
RRRPolo
           →TRS3
RRRPolo
             ...
               →TRS5
Dependency Pair Analysis



R contains no Dependency Pairs and therefore no SCCs.

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