R
↳Dependency Pair Analysis
FACT(s(x)) -> *'(s(x), fact(p(s(x))))
FACT(s(x)) -> FACT(p(s(x)))
FACT(s(x)) -> P(s(x))
*'(s(x), y) -> +'(*(x, y), y)
*'(s(x), y) -> *'(x, y)
+'(x, s(y)) -> +'(x, y)
R
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
+'(x, s(y)) -> +'(x, y)
p(s(x)) -> x
fact(0) -> s(0)
fact(s(x)) -> *(s(x), fact(p(s(x))))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
+(x, 0) -> x
+(x, s(y)) -> s(+(x, y))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 4
↳Size-Change Principle
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
+'(x, s(y)) -> +'(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Usable Rules (Innermost)
→DP Problem 3
↳UsableRules
*'(s(x), y) -> *'(x, y)
p(s(x)) -> x
fact(0) -> s(0)
fact(s(x)) -> *(s(x), fact(p(s(x))))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
+(x, 0) -> x
+(x, s(y)) -> s(+(x, y))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 5
↳Size-Change Principle
→DP Problem 3
↳UsableRules
*'(s(x), y) -> *'(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳Usable Rules (Innermost)
FACT(s(x)) -> FACT(p(s(x)))
p(s(x)) -> x
fact(0) -> s(0)
fact(s(x)) -> *(s(x), fact(p(s(x))))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
+(x, 0) -> x
+(x, s(y)) -> s(+(x, y))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Rewriting Transformation
FACT(s(x)) -> FACT(p(s(x)))
p(s(x)) -> x
innermost
one new Dependency Pair is created:
FACT(s(x)) -> FACT(p(s(x)))
FACT(s(x)) -> FACT(x)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Rw
...
→DP Problem 7
↳Usable Rules (Innermost)
FACT(s(x)) -> FACT(x)
p(s(x)) -> x
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Rw
...
→DP Problem 8
↳Size-Change Principle
FACT(s(x)) -> FACT(x)
none
innermost
|
|
trivial
s(x1) -> s(x1)