YES We show the termination of the TRS R: 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)) -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: fib#(s(s(x))) -> +#(fib(s(x)),fib(x)) p2: fib#(s(s(x))) -> fib#(s(x)) p3: fib#(s(s(x))) -> fib#(x) p4: +#(x,s(y)) -> +#(x,y) and R consists of: r1: fib(|0|()) -> |0|() r2: fib(s(|0|())) -> s(|0|()) r3: fib(s(s(x))) -> +(fib(s(x)),fib(x)) r4: +(x,|0|()) -> x r5: +(x,s(y)) -> s(+(x,y)) The estimated dependency graph contains the following SCCs: {p2, p3} {p4} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: fib#(s(s(x))) -> fib#(x) p2: fib#(s(s(x))) -> fib#(s(x)) and R consists of: r1: fib(|0|()) -> |0|() r2: fib(s(|0|())) -> s(|0|()) r3: fib(s(s(x))) -> +(fib(s(x)),fib(x)) r4: +(x,|0|()) -> x r5: +(x,s(y)) -> s(+(x,y)) The set of usable rules consists of (no rules) Take the reduction pair: weighted path order base order: max/plus interpretations on natural numbers: fib#_A(x1) = max{1, x1} s_A(x1) = max{5, x1 + 2} precedence: fib# = s partial status: pi(fib#) = [] pi(s) = [1] The next rules are strictly ordered: p1 We remove them from the problem. -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: fib#(s(s(x))) -> fib#(s(x)) and R consists of: r1: fib(|0|()) -> |0|() r2: fib(s(|0|())) -> s(|0|()) r3: fib(s(s(x))) -> +(fib(s(x)),fib(x)) r4: +(x,|0|()) -> x r5: +(x,s(y)) -> s(+(x,y)) The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: fib#(s(s(x))) -> fib#(s(x)) and R consists of: r1: fib(|0|()) -> |0|() r2: fib(s(|0|())) -> s(|0|()) r3: fib(s(s(x))) -> +(fib(s(x)),fib(x)) r4: +(x,|0|()) -> x r5: +(x,s(y)) -> s(+(x,y)) The set of usable rules consists of (no rules) Take the reduction pair: weighted path order base order: max/plus interpretations on natural numbers: fib#_A(x1) = max{1, x1 - 5} s_A(x1) = max{7, x1 + 4} precedence: fib# = s partial status: pi(fib#) = [] pi(s) = [1] The next rules are strictly ordered: p1 We remove them from the problem. Then no dependency pair remains. -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: +#(x,s(y)) -> +#(x,y) and R consists of: r1: fib(|0|()) -> |0|() r2: fib(s(|0|())) -> s(|0|()) r3: fib(s(s(x))) -> +(fib(s(x)),fib(x)) r4: +(x,|0|()) -> x r5: +(x,s(y)) -> s(+(x,y)) The set of usable rules consists of (no rules) Take the monotone reduction pair: weighted path order base order: max/plus interpretations on natural numbers: +#_A(x1,x2) = max{1, x1, x2} s_A(x1) = x1 + 1 precedence: +# = s partial status: pi(+#) = [1, 2] pi(s) = [1] The next rules are strictly ordered: p1 We remove them from the problem. Then no dependency pair remains.