Term Rewriting System R:
[X, Y]
zeros -> cons(0, zeros)
incr(cons(X, Y)) -> cons(s(X), incr(Y))
hd(cons(X, Y)) -> X
tl(cons(X, Y)) -> Y

Termination of R to be shown.

`   R`
`     ↳Dependency Pair Analysis`

R contains the following Dependency Pairs:

NATS -> ZEROS
ZEROS -> ZEROS
INCR(cons(X, Y)) -> INCR(Y)

Furthermore, R contains three SCCs.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Polynomial Ordering`
`       →DP Problem 2`
`         ↳Remaining`
`       →DP Problem 3`
`         ↳Remaining`

Dependency Pair:

INCR(cons(X, Y)) -> INCR(Y)

Rules:

zeros -> cons(0, zeros)
incr(cons(X, Y)) -> cons(s(X), incr(Y))
hd(cons(X, Y)) -> X
tl(cons(X, Y)) -> Y

The following dependency pair can be strictly oriented:

INCR(cons(X, Y)) -> INCR(Y)

There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
 POL(cons(x1, x2)) =  1 + x2 POL(INCR(x1)) =  x1

resulting in one new DP problem.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Polo`
`           →DP Problem 4`
`             ↳Dependency Graph`
`       →DP Problem 2`
`         ↳Remaining`
`       →DP Problem 3`
`         ↳Remaining`

Dependency Pair:

Rules:

zeros -> cons(0, zeros)
incr(cons(X, Y)) -> cons(s(X), incr(Y))
hd(cons(X, Y)) -> X
tl(cons(X, Y)) -> Y

Using the Dependency Graph resulted in no new DP problems.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Polo`
`       →DP Problem 2`
`         ↳Remaining Obligation(s)`
`       →DP Problem 3`
`         ↳Remaining Obligation(s)`

The following remains to be proven:
• Dependency Pair:

ZEROS -> ZEROS

Rules:

zeros -> cons(0, zeros)
incr(cons(X, Y)) -> cons(s(X), incr(Y))
hd(cons(X, Y)) -> X
tl(cons(X, Y)) -> Y

• Dependency Pair:

Rules:

zeros -> cons(0, zeros)
incr(cons(X, Y)) -> cons(s(X), incr(Y))
hd(cons(X, Y)) -> X
tl(cons(X, Y)) -> Y

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Polo`
`       →DP Problem 2`
`         ↳Remaining Obligation(s)`
`       →DP Problem 3`
`         ↳Remaining Obligation(s)`

The following remains to be proven:
• Dependency Pair:

ZEROS -> ZEROS

Rules:

zeros -> cons(0, zeros)
incr(cons(X, Y)) -> cons(s(X), incr(Y))
hd(cons(X, Y)) -> X
tl(cons(X, Y)) -> Y

• Dependency Pair:

Rules: