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