YES

The TRS could be proven terminating. The proof took 1292 ms.

The following DP Processors were used


Problem 1 was processed with processor DependencyGraph (43ms).
 | – Problem 2 was processed with processor PolynomialLinearRange4iUR (273ms).
 | – Problem 3 was processed with processor PolynomialLinearRange4iUR (891ms).
 | – Problem 4 was processed with processor SubtermCriterion (1ms).
 | – Problem 5 was processed with processor SubtermCriterion (1ms).

Problem 1: DependencyGraph



Dependency Pair Problem

Dependency Pairs

sum#(plus(cons(0, x), cons(y, l))) → sum#(cons(s(x), cons(y, l)))sum#(app(l, cons(x, cons(y, k)))) → app#(l, sum(cons(x, cons(y, k))))
sum#(plus(cons(0, x), cons(y, l))) → pred#(sum(cons(s(x), cons(y, l))))sum#(cons(x, cons(y, l))) → sum#(cons(plus(x, y), l))
sum#(cons(x, cons(y, l))) → plus#(x, y)sum#(app(l, cons(x, cons(y, k)))) → sum#(app(l, sum(cons(x, cons(y, k)))))
sum#(app(l, cons(x, cons(y, k)))) → sum#(cons(x, cons(y, k)))plus#(s(x), y) → plus#(x, y)
app#(cons(x, l), k) → app#(l, k)

Rewrite Rules

app(nil, k) → kapp(l, nil) → l
app(cons(x, l), k) → cons(x, app(l, k))sum(cons(x, nil)) → cons(x, nil)
sum(cons(x, cons(y, l))) → sum(cons(plus(x, y), l))sum(app(l, cons(x, cons(y, k)))) → sum(app(l, sum(cons(x, cons(y, k)))))
plus(0, y) → yplus(s(x), y) → s(plus(x, y))
sum(plus(cons(0, x), cons(y, l))) → pred(sum(cons(s(x), cons(y, l))))pred(cons(s(x), nil)) → cons(x, nil)

Original Signature

Termination of terms over the following signature is verified: app, plus, 0, s, sum, pred, nil, cons

Strategy


The following SCCs where found

sum#(cons(x, cons(y, l))) → sum#(cons(plus(x, y), l))

sum#(app(l, cons(x, cons(y, k)))) → sum#(app(l, sum(cons(x, cons(y, k)))))

plus#(s(x), y) → plus#(x, y)

app#(cons(x, l), k) → app#(l, k)

Problem 2: PolynomialLinearRange4iUR



Dependency Pair Problem

Dependency Pairs

sum#(cons(x, cons(y, l))) → sum#(cons(plus(x, y), l))

Rewrite Rules

app(nil, k) → kapp(l, nil) → l
app(cons(x, l), k) → cons(x, app(l, k))sum(cons(x, nil)) → cons(x, nil)
sum(cons(x, cons(y, l))) → sum(cons(plus(x, y), l))sum(app(l, cons(x, cons(y, k)))) → sum(app(l, sum(cons(x, cons(y, k)))))
plus(0, y) → yplus(s(x), y) → s(plus(x, y))
sum(plus(cons(0, x), cons(y, l))) → pred(sum(cons(s(x), cons(y, l))))pred(cons(s(x), nil)) → cons(x, nil)

Original Signature

Termination of terms over the following signature is verified: app, plus, 0, s, sum, pred, nil, cons

Strategy


Polynomial Interpretation

Improved Usable rules

The following dependency pairs are strictly oriented by an ordering on the given polynomial interpretation, thus they are removed:

sum#(cons(x, cons(y, l))) → sum#(cons(plus(x, y), l))

Problem 3: PolynomialLinearRange4iUR



Dependency Pair Problem

Dependency Pairs

sum#(app(l, cons(x, cons(y, k)))) → sum#(app(l, sum(cons(x, cons(y, k)))))

Rewrite Rules

app(nil, k) → kapp(l, nil) → l
app(cons(x, l), k) → cons(x, app(l, k))sum(cons(x, nil)) → cons(x, nil)
sum(cons(x, cons(y, l))) → sum(cons(plus(x, y), l))sum(app(l, cons(x, cons(y, k)))) → sum(app(l, sum(cons(x, cons(y, k)))))
plus(0, y) → yplus(s(x), y) → s(plus(x, y))
sum(plus(cons(0, x), cons(y, l))) → pred(sum(cons(s(x), cons(y, l))))pred(cons(s(x), nil)) → cons(x, nil)

Original Signature

Termination of terms over the following signature is verified: app, plus, 0, s, sum, pred, nil, cons

Strategy


Polynomial Interpretation

Improved Usable rules

app(l, nil) → lapp(cons(x, l), k) → cons(x, app(l, k))
pred(cons(s(x), nil)) → cons(x, nil)app(nil, k) → k
sum(cons(x, cons(y, l))) → sum(cons(plus(x, y), l))sum(cons(x, nil)) → cons(x, nil)
sum(app(l, cons(x, cons(y, k)))) → sum(app(l, sum(cons(x, cons(y, k)))))sum(plus(cons(0, x), cons(y, l))) → pred(sum(cons(s(x), cons(y, l))))

The following dependency pairs are strictly oriented by an ordering on the given polynomial interpretation, thus they are removed:

sum#(app(l, cons(x, cons(y, k)))) → sum#(app(l, sum(cons(x, cons(y, k)))))

Problem 4: SubtermCriterion



Dependency Pair Problem

Dependency Pairs

app#(cons(x, l), k) → app#(l, k)

Rewrite Rules

app(nil, k) → kapp(l, nil) → l
app(cons(x, l), k) → cons(x, app(l, k))sum(cons(x, nil)) → cons(x, nil)
sum(cons(x, cons(y, l))) → sum(cons(plus(x, y), l))sum(app(l, cons(x, cons(y, k)))) → sum(app(l, sum(cons(x, cons(y, k)))))
plus(0, y) → yplus(s(x), y) → s(plus(x, y))
sum(plus(cons(0, x), cons(y, l))) → pred(sum(cons(s(x), cons(y, l))))pred(cons(s(x), nil)) → cons(x, nil)

Original Signature

Termination of terms over the following signature is verified: app, plus, 0, s, sum, pred, nil, cons

Strategy


Projection

The following projection was used:

Thus, the following dependency pairs are removed:

app#(cons(x, l), k) → app#(l, k)

Problem 5: SubtermCriterion



Dependency Pair Problem

Dependency Pairs

plus#(s(x), y) → plus#(x, y)

Rewrite Rules

app(nil, k) → kapp(l, nil) → l
app(cons(x, l), k) → cons(x, app(l, k))sum(cons(x, nil)) → cons(x, nil)
sum(cons(x, cons(y, l))) → sum(cons(plus(x, y), l))sum(app(l, cons(x, cons(y, k)))) → sum(app(l, sum(cons(x, cons(y, k)))))
plus(0, y) → yplus(s(x), y) → s(plus(x, y))
sum(plus(cons(0, x), cons(y, l))) → pred(sum(cons(s(x), cons(y, l))))pred(cons(s(x), nil)) → cons(x, nil)

Original Signature

Termination of terms over the following signature is verified: app, plus, 0, s, sum, pred, nil, cons

Strategy


Projection

The following projection was used:

Thus, the following dependency pairs are removed:

plus#(s(x), y) → plus#(x, y)