Term Rewriting System R: [x, y] fib(0) -> 0 fib(s(0)) -> s(0) fib(s(s(x))) -> +(fib(s(x)), fib(x)) +(x, 0) -> x +(x, s(y)) -> 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: FIB(s(s(x))) -> +'(fib(s(x)), fib(x)) FIB(s(s(x))) -> FIB(s(x)) FIB(s(s(x))) -> FIB(x) +'(x, s(y)) -> +'(x, y) Furthermore, R contains two SCCs. SCC1: +'(x, s(y)) -> +'(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(+'(x_1, x_2)) = 1 + x_1 + x_2 The following Dependency Pairs can be deleted: +'(x, s(y)) -> +'(x, y) This transformation is resulting in no new subcycles. SCC2: FIB(s(s(x))) -> FIB(x) FIB(s(s(x))) -> FIB(s(x)) 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(FIB(x_1)) = 1 + x_1 The following Dependency Pairs can be deleted: FIB(s(s(x))) -> FIB(x) FIB(s(s(x))) -> FIB(s(x)) This transformation is resulting in no new subcycles. Termination of R successfully shown. Duration: 0.544 seconds.