(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following 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)

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

Q DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following 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)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(3) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 4 less nodes.

(4) Obligation:

Q DP problem:
The TRS P consists of the following rules:

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(app(fold, f), t), 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)

The TRS R consists of the following 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)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.