0 QTRS
↳1 DependencyPairsProof (⇔)
↳2 QDP
↳3 DependencyGraphProof (⇔)
↳4 AND
↳5 QDP
↳6 QDPOrderProof (⇔)
↳7 QDP
↳8 QDPOrderProof (⇔)
↳9 QDP
↳10 QDPOrderProof (⇔)
↳11 QDP
↳12 QDPOrderProof (⇔)
↳13 QDP
↳14 PisEmptyProof (⇔)
↳15 TRUE
↳16 QDP
↳17 QDPOrderProof (⇔)
↳18 QDP
↳19 QDPOrderProof (⇔)
↳20 QDP
↳21 PisEmptyProof (⇔)
↳22 TRUE
↳23 QDP
↳24 QDPOrderProof (⇔)
↳25 QDP
↳26 QDPOrderProof (⇔)
↳27 QDP
↳28 QDPOrderProof (⇔)
↳29 QDP
↳30 QDPOrderProof (⇔)
↳31 QDP
↳32 PisEmptyProof (⇔)
↳33 TRUE
↳34 QDP
↳35 QDPOrderProof (⇔)
↳36 QDP
↳37 QDPOrderProof (⇔)
↳38 QDP
↳39 PisEmptyProof (⇔)
↳40 TRUE
↳41 QDP
↳42 QDPOrderProof (⇔)
↳43 QDP
↳44 QDPOrderProof (⇔)
↳45 QDP
↳46 PisEmptyProof (⇔)
↳47 TRUE
↳48 QDP
↳49 QDPOrderProof (⇔)
↳50 QDP
↳51 QDPOrderProof (⇔)
↳52 QDP
↳53 QDPOrderProof (⇔)
↳54 QDP
↳55 QDPOrderProof (⇔)
↳56 QDP
↳57 QDPOrderProof (⇔)
↳58 QDP
↳59 QDPOrderProof (⇔)
↳60 QDP
↳61 PisEmptyProof (⇔)
↳62 TRUE
↳63 QDP
↳64 QDPOrderProof (⇔)
↳65 QDP
↳66 QDPOrderProof (⇔)
↳67 QDP
↳68 PisEmptyProof (⇔)
↳69 TRUE
↳70 QDP
↳71 QDPOrderProof (⇔)
↳72 QDP
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
ACTIVE(fact(X)) → IF(zero(X), s(0), prod(X, fact(p(X))))
ACTIVE(fact(X)) → ZERO(X)
ACTIVE(fact(X)) → S(0)
ACTIVE(fact(X)) → PROD(X, fact(p(X)))
ACTIVE(fact(X)) → FACT(p(X))
ACTIVE(fact(X)) → P(X)
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
ACTIVE(add(s(X), Y)) → S(add(X, Y))
ACTIVE(add(s(X), Y)) → ADD(X, Y)
ACTIVE(prod(0, X)) → MARK(0)
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(prod(s(X), Y)) → ADD(Y, prod(X, Y))
ACTIVE(prod(s(X), Y)) → PROD(X, Y)
ACTIVE(if(true, X, Y)) → MARK(X)
ACTIVE(if(false, X, Y)) → MARK(Y)
ACTIVE(zero(0)) → MARK(true)
ACTIVE(zero(s(X))) → MARK(false)
ACTIVE(p(s(X))) → MARK(X)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(fact(X)) → FACT(mark(X))
MARK(fact(X)) → MARK(X)
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
MARK(if(X1, X2, X3)) → IF(mark(X1), X2, X3)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(zero(X)) → ACTIVE(zero(mark(X)))
MARK(zero(X)) → ZERO(mark(X))
MARK(zero(X)) → MARK(X)
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(s(X)) → S(mark(X))
MARK(s(X)) → MARK(X)
MARK(0) → ACTIVE(0)
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
MARK(prod(X1, X2)) → PROD(mark(X1), mark(X2))
MARK(prod(X1, X2)) → MARK(X1)
MARK(prod(X1, X2)) → MARK(X2)
MARK(p(X)) → ACTIVE(p(mark(X)))
MARK(p(X)) → P(mark(X))
MARK(p(X)) → MARK(X)
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
MARK(add(X1, X2)) → ADD(mark(X1), mark(X2))
MARK(add(X1, X2)) → MARK(X1)
MARK(add(X1, X2)) → MARK(X2)
MARK(true) → ACTIVE(true)
MARK(false) → ACTIVE(false)
FACT(mark(X)) → FACT(X)
FACT(active(X)) → FACT(X)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, mark(X3)) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
ZERO(mark(X)) → ZERO(X)
ZERO(active(X)) → ZERO(X)
S(mark(X)) → S(X)
S(active(X)) → S(X)
PROD(mark(X1), X2) → PROD(X1, X2)
PROD(X1, mark(X2)) → PROD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
PROD(X1, active(X2)) → PROD(X1, X2)
P(mark(X)) → P(X)
P(active(X)) → P(X)
ADD(mark(X1), X2) → ADD(X1, X2)
ADD(X1, mark(X2)) → ADD(X1, X2)
ADD(active(X1), X2) → ADD(X1, X2)
ADD(X1, active(X2)) → ADD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
ADD(X1, mark(X2)) → ADD(X1, X2)
ADD(mark(X1), X2) → ADD(X1, X2)
ADD(active(X1), X2) → ADD(X1, X2)
ADD(X1, active(X2)) → ADD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ADD(X1, mark(X2)) → ADD(X1, X2)
mark1 > ADD1
ADD(mark(X1), X2) → ADD(X1, X2)
ADD(active(X1), X2) → ADD(X1, X2)
ADD(X1, active(X2)) → ADD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ADD(X1, active(X2)) → ADD(X1, X2)
trivial
ADD(mark(X1), X2) → ADD(X1, X2)
ADD(active(X1), X2) → ADD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ADD(active(X1), X2) → ADD(X1, X2)
trivial
ADD(mark(X1), X2) → ADD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ADD(mark(X1), X2) → ADD(X1, X2)
trivial
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
P(active(X)) → P(X)
P(mark(X)) → P(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
P(active(X)) → P(X)
[P1, active1]
P(mark(X)) → P(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
P(mark(X)) → P(X)
trivial
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
PROD(X1, mark(X2)) → PROD(X1, X2)
PROD(mark(X1), X2) → PROD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
PROD(X1, active(X2)) → PROD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PROD(X1, mark(X2)) → PROD(X1, X2)
mark1 > PROD1
PROD(mark(X1), X2) → PROD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
PROD(X1, active(X2)) → PROD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PROD(X1, active(X2)) → PROD(X1, X2)
trivial
PROD(mark(X1), X2) → PROD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PROD(active(X1), X2) → PROD(X1, X2)
trivial
PROD(mark(X1), X2) → PROD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PROD(mark(X1), X2) → PROD(X1, X2)
trivial
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
S(active(X)) → S(X)
S(mark(X)) → S(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
S(active(X)) → S(X)
[S1, active1]
S(mark(X)) → S(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
S(mark(X)) → S(X)
trivial
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
ZERO(active(X)) → ZERO(X)
ZERO(mark(X)) → ZERO(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ZERO(active(X)) → ZERO(X)
[ZERO1, active1]
ZERO(mark(X)) → ZERO(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ZERO(mark(X)) → ZERO(X)
trivial
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
IF(X1, X2, mark(X3)) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(X1, X2, mark(X3)) → IF(X1, X2, X3)
mark1 > IF1
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
trivial
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(X1, active(X2), X3) → IF(X1, X2, X3)
[IF2, active1]
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
trivial
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
[IF2, mark1]
IF(active(X1), X2, X3) → IF(X1, X2, X3)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(active(X1), X2, X3) → IF(X1, X2, X3)
trivial
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
FACT(active(X)) → FACT(X)
FACT(mark(X)) → FACT(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
FACT(active(X)) → FACT(X)
[FACT1, active1]
FACT(mark(X)) → FACT(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
FACT(mark(X)) → FACT(X)
trivial
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(fact(X)) → MARK(X)
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
ACTIVE(add(0, X)) → MARK(X)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(zero(X)) → ACTIVE(zero(mark(X)))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(zero(X)) → MARK(X)
MARK(s(X)) → ACTIVE(s(mark(X)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
MARK(s(X)) → MARK(X)
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(prod(X1, X2)) → MARK(X1)
MARK(prod(X1, X2)) → MARK(X2)
MARK(p(X)) → ACTIVE(p(mark(X)))
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(p(X)) → MARK(X)
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
ACTIVE(p(s(X))) → MARK(X)
MARK(add(X1, X2)) → MARK(X1)
MARK(add(X1, X2)) → MARK(X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(zero(X)) → ACTIVE(zero(mark(X)))
MARK(s(X)) → ACTIVE(s(mark(X)))
mark1 > [0, true] > [MARK, fact, if, prod, p, add] > zero
mark1 > [0, true] > [MARK, fact, if, prod, p, add] > s
mark1 > false > [MARK, fact, if, prod, p, add] > zero
mark1 > false > [MARK, fact, if, prod, p, add] > s
fact(active(X)) → fact(X)
fact(mark(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
prod(mark(X1), X2) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(mark(X1), X2) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
p(active(X)) → p(X)
p(mark(X)) → p(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(fact(X)) → MARK(X)
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
ACTIVE(add(0, X)) → MARK(X)
MARK(if(X1, X2, X3)) → MARK(X1)
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(zero(X)) → MARK(X)
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
MARK(s(X)) → MARK(X)
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(prod(X1, X2)) → MARK(X1)
MARK(prod(X1, X2)) → MARK(X2)
MARK(p(X)) → ACTIVE(p(mark(X)))
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(p(X)) → MARK(X)
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
ACTIVE(p(s(X))) → MARK(X)
MARK(add(X1, X2)) → MARK(X1)
MARK(add(X1, X2)) → MARK(X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)