Term Rewriting System R: [y, x] ack(0, y) -> s(y) ack(s(x), 0) -> ack(x, s(0)) ack(s(x), s(y)) -> ack(x, ack(s(x), y)) Termination of R to be shown. This program has no overlaps, so it is sufficient to show innermost termination. R contains the following Dependency Pairs: ACK(s(x), s(y)) -> ACK(x, ack(s(x), y)) ACK(s(x), s(y)) -> ACK(s(x), y) ACK(s(x), 0) -> ACK(x, s(0)) Furthermore, R contains one SCC. SCC1: ACK(s(x), 0) -> ACK(x, s(0)) ACK(s(x), s(y)) -> ACK(s(x), y) ACK(s(x), s(y)) -> ACK(x, ack(s(x), y)) By using a polynomial ordering, at least one Dependency Pair of this SCC can be strictly oriented. No rules need to be oriented. Used ordering: Polynomial ordering with Polynomial interpretation: POL(s(x_1)) = 1 + x_1 POL(ack(x_1, x_2)) = 0 POL(ACK(x_1, x_2)) = x_1 POL(0) = 0 resulting in one subcycle. SCC1.Polo1: ACK(s(x), s(y)) -> ACK(s(x), y) Removing rules from R by ordering and analyzing Dependency Pairs, Usable Rules, and Usable Equations. This is possible by using the following (C_E-compatible) Polynomial ordering. Polynomial interpretation: POL(s(x_1)) = 1 + x_1 POL(ACK(x_1, x_2)) = 1 + x_1 + x_2 The following Dependency Pairs can be deleted: ACK(s(x), s(y)) -> ACK(s(x), y) This transformation is resulting in no new subcycles. Termination of R successfully shown. Duration: 0.612 seconds.