R
↳Removing Redundant Rules for Innermost Termination
app(f, app(app(cons, app(f, app(app(cons, nil), y))), z)) -> app(app(app(copy, n), y), z)
R
↳RRRI
→TRS2
↳Dependency Pair Analysis
APP(app(app(copy, 0), y), z) -> APP(f, z)
APP(app(app(copy, app(s, x)), y), z) -> APP(app(app(copy, x), y), app(app(cons, app(f, y)), z))
APP(app(app(copy, app(s, x)), y), z) -> APP(app(copy, x), y)
APP(app(app(copy, app(s, x)), y), z) -> APP(copy, x)
APP(app(app(copy, app(s, x)), y), z) -> APP(app(cons, app(f, y)), z)
APP(app(app(copy, app(s, x)), y), z) -> APP(cons, app(f, y))
APP(app(app(copy, app(s, x)), y), z) -> APP(f, y)
R
↳RRRI
→TRS2
↳DPs
→DP Problem 1
↳Non-Overlappingness Check
APP(app(app(copy, app(s, x)), y), z) -> APP(app(app(copy, x), y), app(app(cons, app(f, y)), z))
app(f, app(app(cons, nil), y)) -> y
app(app(app(copy, 0), y), z) -> app(f, z)
app(app(app(copy, app(s, x)), y), z) -> app(app(app(copy, x), y), app(app(cons, app(f, y)), z))
R
↳RRRI
→TRS2
↳DPs
→DP Problem 1
↳NOC
...
→DP Problem 2
↳Usable Rules (Innermost)
APP(app(app(copy, app(s, x)), y), z) -> APP(app(app(copy, x), y), app(app(cons, app(f, y)), z))
app(f, app(app(cons, nil), y)) -> y
app(app(app(copy, 0), y), z) -> app(f, z)
app(app(app(copy, app(s, x)), y), z) -> app(app(app(copy, x), y), app(app(cons, app(f, y)), z))
innermost
R
↳RRRI
→TRS2
↳DPs
→DP Problem 1
↳NOC
...
→DP Problem 3
↳A-Transformation
APP(app(app(copy, app(s, x)), y), z) -> APP(app(app(copy, x), y), app(app(cons, app(f, y)), z))
app(f, app(app(cons, nil), y)) -> y
innermost
R
↳RRRI
→TRS2
↳DPs
→DP Problem 1
↳NOC
...
→DP Problem 4
↳Size-Change Principle
COPY(s(x), y, z) -> COPY(x, y, cons(f(y), z))
f(cons(nil, y)) -> y
innermost
|
|
trivial
cons(x1, x2) -> cons(x1, x2)
s(x1) -> s(x1)