Term Rewriting System R:
[f, x, h, t, l]
app(app(app(fold, f), nil), x) -> x
app(app(app(fold, f), app(app(cons, h), t)), x) -> app(app(app(fold, f), t), app(app(f, x), h))
app(sum, l) -> app(app(app(fold, add), l), 0)
app(app(app(fold, mul), l), 1) -> app(prod, l)

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(app(app(fold, f), t), app(app(f, x), h))
APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(app(fold, f), t)
APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(app(f, x), h)
APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(f, x)
APP(sum, l) -> APP(app(app(fold, add), l), 0)
APP(sum, l) -> APP(app(fold, add), l)
APP(sum, l) -> APP(fold, add)
APP(app(app(fold, mul), l), 1) -> APP(prod, l)

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Remaining Obligation(s)




The following remains to be proven:
Dependency Pairs:

APP(sum, l) -> APP(app(fold, add), l)
APP(sum, l) -> APP(app(app(fold, add), l), 0)
APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(f, x)
APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(app(f, x), h)
APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(app(fold, f), t)
APP(app(app(fold, f), app(app(cons, h), t)), x) -> APP(app(app(fold, f), t), app(app(f, x), h))


Rules:


app(app(app(fold, f), nil), x) -> x
app(app(app(fold, f), app(app(cons, h), t)), x) -> app(app(app(fold, f), t), app(app(f, x), h))
app(sum, l) -> app(app(app(fold, add), l), 0)
app(app(app(fold, mul), l), 1) -> app(prod, l)




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