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

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

F(X) -> IF(X, c, nf(ntrue))
IF(false, X, Y) -> ACTIVATE(Y)
ACTIVATE(nf(X)) -> F(activate(X))
ACTIVATE(nf(X)) -> ACTIVATE(X)
ACTIVATE(ntrue) -> TRUE

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Instantiation Transformation


Dependency Pairs:

ACTIVATE(nf(X)) -> ACTIVATE(X)
ACTIVATE(nf(X)) -> F(activate(X))
IF(false, X, Y) -> ACTIVATE(Y)
F(X) -> IF(X, c, nf(ntrue))


Rules:


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





On this DP problem, an Instantiation SCC transformation can be performed.
As a result of transforming the rule

IF(false, X, Y) -> ACTIVATE(Y)
one new Dependency Pair is created:

IF(false, c, nf(ntrue)) -> ACTIVATE(nf(ntrue))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Inst
           →DP Problem 2
Argument Filtering and Ordering


Dependency Pairs:

IF(false, c, nf(ntrue)) -> ACTIVATE(nf(ntrue))
F(X) -> IF(X, c, nf(ntrue))
ACTIVATE(nf(X)) -> F(activate(X))
ACTIVATE(nf(X)) -> ACTIVATE(X)


Rules:


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





The following dependency pair can be strictly oriented:

ACTIVATE(nf(X)) -> ACTIVATE(X)


The following rules can be oriented:

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


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(n__f(x1))=  1 + x1  
  POL(activate(x1))=  x1  
  POL(n__true)=  0  
  POL(c)=  0  
  POL(if(x1, x2, x3))=  x1 + x2 + x3  
  POL(false)=  0  
  POL(true)=  0  
  POL(ACTIVATE(x1))=  x1  
  POL(F(x1))=  1 + x1  
  POL(IF(x1, x2, x3))=  x1 + x2 + x3  
  POL(f(x1))=  1 + x1  

resulting in one new DP problem.
Used Argument Filtering System:
ACTIVATE(x1) -> ACTIVATE(x1)
nf(x1) -> nf(x1)
F(x1) -> F(x1)
activate(x1) -> activate(x1)
IF(x1, x2, x3) -> IF(x1, x2, x3)
f(x1) -> f(x1)
true -> true
if(x1, x2, x3) -> if(x1, x2, x3)


   R
DPs
       →DP Problem 1
Inst
           →DP Problem 2
AFS
             ...
               →DP Problem 3
Instantiation Transformation


Dependency Pairs:

IF(false, c, nf(ntrue)) -> ACTIVATE(nf(ntrue))
F(X) -> IF(X, c, nf(ntrue))
ACTIVATE(nf(X)) -> F(activate(X))


Rules:


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





On this DP problem, an Instantiation SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(nf(X)) -> F(activate(X))
one new Dependency Pair is created:

ACTIVATE(nf(ntrue)) -> F(activate(ntrue))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Inst
           →DP Problem 2
AFS
             ...
               →DP Problem 4
Argument Filtering and Ordering


Dependency Pairs:

F(X) -> IF(X, c, nf(ntrue))
ACTIVATE(nf(ntrue)) -> F(activate(ntrue))
IF(false, c, nf(ntrue)) -> ACTIVATE(nf(ntrue))


Rules:


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





The following dependency pair can be strictly oriented:

ACTIVATE(nf(ntrue)) -> F(activate(ntrue))


The following rules can be oriented:

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


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(n__f(x1))=  x1  
  POL(n__true)=  0  
  POL(activate(x1))=  x1  
  POL(c)=  0  
  POL(if(x1, x2, x3))=  x1 + x2 + x3  
  POL(false)=  1  
  POL(true)=  0  
  POL(ACTIVATE(x1))=  1 + x1  
  POL(F(x1))=  x1  
  POL(IF(x1, x2, x3))=  x1 + x2 + x3  
  POL(f(x1))=  x1  

resulting in one new DP problem.
Used Argument Filtering System:
ACTIVATE(x1) -> ACTIVATE(x1)
F(x1) -> F(x1)
nf(x1) -> nf(x1)
activate(x1) -> activate(x1)
IF(x1, x2, x3) -> IF(x1, x2, x3)
f(x1) -> f(x1)
true -> true
if(x1, x2, x3) -> if(x1, x2, x3)


   R
DPs
       →DP Problem 1
Inst
           →DP Problem 2
AFS
             ...
               →DP Problem 5
Dependency Graph


Dependency Pairs:

F(X) -> IF(X, c, nf(ntrue))
IF(false, c, nf(ntrue)) -> ACTIVATE(nf(ntrue))


Rules:


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





Using the Dependency Graph resulted in no new DP problems.

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