Term Rewriting System R:
[f, x, xs, y, ys]
app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(le, 0), y) -> true
app(app(le, app(s, x)), 0) -> false
app(app(le, app(s, x)), app(s, y)) -> app(app(le, x), y)
app(app(maxlist, x), app(app(cons, y), ys)) -> app(app(if, app(app(le, x), y)), app(app(maxlist, y), ys))
app(app(maxlist, x), nil) -> x
app(height, app(app(node, x), xs)) -> app(s, app(app(maxlist, 0), app(app(map, height), xs)))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(app(map, f), app(app(cons, x), xs)) -> APP(cons, app(f, x))
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(le, app(s, x)), app(s, y)) -> APP(app(le, x), y)
APP(app(le, app(s, x)), app(s, y)) -> APP(le, x)
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(app(if, app(app(le, x), y)), app(app(maxlist, y), ys))
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(if, app(app(le, x), y))
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(app(le, x), y)
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(le, x)
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(app(maxlist, y), ys)
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(maxlist, y)
APP(height, app(app(node, x), xs)) -> APP(s, app(app(maxlist, 0), app(app(map, height), xs)))
APP(height, app(app(node, x), xs)) -> APP(app(maxlist, 0), app(app(map, height), xs))
APP(height, app(app(node, x), xs)) -> APP(maxlist, 0)
APP(height, app(app(node, x), xs)) -> APP(app(map, height), xs)
APP(height, app(app(node, x), xs)) -> APP(map, height)

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Remaining Obligation(s)




The following remains to be proven:
Dependency Pairs:

APP(height, app(app(node, x), xs)) -> APP(app(map, height), xs)
APP(height, app(app(node, x), xs)) -> APP(app(maxlist, 0), app(app(map, height), xs))
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(app(maxlist, y), ys)
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(app(le, x), y)
APP(app(maxlist, x), app(app(cons, y), ys)) -> APP(app(if, app(app(le, x), y)), app(app(maxlist, y), ys))
APP(app(le, app(s, x)), app(s, y)) -> APP(app(le, x), y)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(le, 0), y) -> true
app(app(le, app(s, x)), 0) -> false
app(app(le, app(s, x)), app(s, y)) -> app(app(le, x), y)
app(app(maxlist, x), app(app(cons, y), ys)) -> app(app(if, app(app(le, x), y)), app(app(maxlist, y), ys))
app(app(maxlist, x), nil) -> x
app(height, app(app(node, x), xs)) -> app(s, app(app(maxlist, 0), app(app(map, height), xs)))




Termination of R could not be shown.
Duration:
0:00 minutes