fact(X) → if(zero(X), n__s(0), n__prod(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))
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) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X
↳ QTRS
↳ DependencyPairsProof
fact(X) → if(zero(X), n__s(0), n__prod(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))
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) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X
PROD(s(X), Y) → ADD(Y, prod(X, Y))
ADD(s(X), Y) → S(add(X, Y))
ACTIVATE(n__prod(X1, X2)) → PROD(X1, X2)
FACT(X) → IF(zero(X), n__s(0), n__prod(X, fact(p(X))))
ACTIVATE(n__s(X)) → S(X)
FACT(X) → P(X)
IF(true, X, Y) → ACTIVATE(X)
ADD(s(X), Y) → ADD(X, Y)
FACT(X) → FACT(p(X))
IF(false, X, Y) → ACTIVATE(Y)
PROD(s(X), Y) → PROD(X, Y)
FACT(X) → ZERO(X)
fact(X) → if(zero(X), n__s(0), n__prod(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))
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) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
PROD(s(X), Y) → ADD(Y, prod(X, Y))
ADD(s(X), Y) → S(add(X, Y))
ACTIVATE(n__prod(X1, X2)) → PROD(X1, X2)
FACT(X) → IF(zero(X), n__s(0), n__prod(X, fact(p(X))))
ACTIVATE(n__s(X)) → S(X)
FACT(X) → P(X)
IF(true, X, Y) → ACTIVATE(X)
ADD(s(X), Y) → ADD(X, Y)
FACT(X) → FACT(p(X))
IF(false, X, Y) → ACTIVATE(Y)
PROD(s(X), Y) → PROD(X, Y)
FACT(X) → ZERO(X)
fact(X) → if(zero(X), n__s(0), n__prod(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))
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) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
ADD(s(X), Y) → ADD(X, Y)
fact(X) → if(zero(X), n__s(0), n__prod(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))
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) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
ADD(s(X), Y) → ADD(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
PROD(s(X), Y) → PROD(X, Y)
fact(X) → if(zero(X), n__s(0), n__prod(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))
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) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
PROD(s(X), Y) → PROD(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
FACT(X) → FACT(p(X))
fact(X) → if(zero(X), n__s(0), n__prod(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))
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) → n__s(X)
prod(X1, X2) → n__prod(X1, X2)
activate(n__s(X)) → s(X)
activate(n__prod(X1, X2)) → prod(X1, X2)
activate(X) → X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ MNOCProof
FACT(X) → FACT(p(X))
p(s(X)) → X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ MNOCProof
↳ QDP
↳ UsableRulesReductionPairsProof
FACT(X) → FACT(p(X))
p(s(X)) → X
p(s(x0))
Used ordering: POLO with Polynomial interpretation [25]:
p(s(X)) → X
POL(FACT(x1)) = 2·x1
POL(p(x1)) = x1
POL(s(x1)) = x1
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ MNOCProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ Instantiation
FACT(X) → FACT(p(X))
p(s(x0))
FACT(p(z0)) → FACT(p(p(z0)))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ MNOCProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ Instantiation
↳ QDP
↳ Instantiation
FACT(p(z0)) → FACT(p(p(z0)))
p(s(x0))
FACT(p(p(z0))) → FACT(p(p(p(z0))))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ MNOCProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ Instantiation
↳ QDP
↳ Instantiation
↳ QDP
↳ QReductionProof
FACT(p(p(z0))) → FACT(p(p(p(z0))))
p(s(x0))
p(s(x0))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ MNOCProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ Instantiation
↳ QDP
↳ Instantiation
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonTerminationProof
FACT(p(p(z0))) → FACT(p(p(p(z0))))
FACT(p(p(z0))) → FACT(p(p(p(z0))))