R
↳Dependency Pair Analysis
FACT(X) -> IF(zero(X), ns(0), nprod(X, fact(p(X))))
FACT(X) -> ZERO(X)
FACT(X) -> FACT(p(X))
FACT(X) -> P(X)
ADD(s(X), Y) -> S(add(X, Y))
ADD(s(X), Y) -> ADD(X, Y)
PROD(s(X), Y) -> ADD(Y, prod(X, Y))
PROD(s(X), Y) -> PROD(X, Y)
IF(true, X, Y) -> ACTIVATE(X)
IF(false, X, Y) -> ACTIVATE(Y)
ACTIVATE(ns(X)) -> S(X)
ACTIVATE(nprod(X1, X2)) -> PROD(X1, X2)
R
↳DPs
→DP Problem 1
↳Remaining Obligation(s)
→DP Problem 2
↳Remaining Obligation(s)
→DP Problem 3
↳Remaining Obligation(s)
ADD(s(X), Y) -> ADD(X, Y)
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
PROD(s(X), Y) -> PROD(X, Y)
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
FACT(X) -> FACT(p(X))
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
R
↳DPs
→DP Problem 1
↳Remaining Obligation(s)
→DP Problem 2
↳Remaining Obligation(s)
→DP Problem 3
↳Remaining Obligation(s)
ADD(s(X), Y) -> ADD(X, Y)
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
PROD(s(X), Y) -> PROD(X, Y)
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
FACT(X) -> FACT(p(X))
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
R
↳DPs
→DP Problem 1
↳Remaining Obligation(s)
→DP Problem 2
↳Remaining Obligation(s)
→DP Problem 3
↳Remaining Obligation(s)
ADD(s(X), Y) -> ADD(X, Y)
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
PROD(s(X), Y) -> PROD(X, Y)
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X
FACT(X) -> FACT(p(X))
fact(X) -> if(zero(X), ns(0), nprod(X, fact(p(X))))
add(0, X) -> X
add(s(X), Y) -> s(add(X, Y))
prod(0, X) -> 0
prod(s(X), Y) -> add(Y, prod(X, Y))
prod(X1, X2) -> nprod(X1, X2)
if(true, X, Y) -> activate(X)
if(false, X, Y) -> activate(Y)
zero(0) -> true
zero(s(X)) -> false
p(s(X)) -> X
s(X) -> ns(X)
activate(ns(X)) -> s(X)
activate(nprod(X1, X2)) -> prod(X1, X2)
activate(X) -> X