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