YES We show the termination of the TRS R: ack_in(|0|(),n) -> ack_out(s(n)) ack_in(s(m),|0|()) -> u11(ack_in(m,s(|0|()))) u11(ack_out(n)) -> ack_out(n) ack_in(s(m),s(n)) -> u21(ack_in(s(m),n),m) u21(ack_out(n),m) -> u22(ack_in(m,n)) u22(ack_out(n)) -> ack_out(n) -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: ack_in#(s(m),|0|()) -> u11#(ack_in(m,s(|0|()))) p2: ack_in#(s(m),|0|()) -> ack_in#(m,s(|0|())) p3: ack_in#(s(m),s(n)) -> u21#(ack_in(s(m),n),m) p4: ack_in#(s(m),s(n)) -> ack_in#(s(m),n) p5: u21#(ack_out(n),m) -> u22#(ack_in(m,n)) p6: u21#(ack_out(n),m) -> ack_in#(m,n) and R consists of: r1: ack_in(|0|(),n) -> ack_out(s(n)) r2: ack_in(s(m),|0|()) -> u11(ack_in(m,s(|0|()))) r3: u11(ack_out(n)) -> ack_out(n) r4: ack_in(s(m),s(n)) -> u21(ack_in(s(m),n),m) r5: u21(ack_out(n),m) -> u22(ack_in(m,n)) r6: u22(ack_out(n)) -> ack_out(n) The estimated dependency graph contains the following SCCs: {p2, p3, p4, p6} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: ack_in#(s(m),|0|()) -> ack_in#(m,s(|0|())) p2: ack_in#(s(m),s(n)) -> ack_in#(s(m),n) p3: ack_in#(s(m),s(n)) -> u21#(ack_in(s(m),n),m) p4: u21#(ack_out(n),m) -> ack_in#(m,n) and R consists of: r1: ack_in(|0|(),n) -> ack_out(s(n)) r2: ack_in(s(m),|0|()) -> u11(ack_in(m,s(|0|()))) r3: u11(ack_out(n)) -> ack_out(n) r4: ack_in(s(m),s(n)) -> u21(ack_in(s(m),n),m) r5: u21(ack_out(n),m) -> u22(ack_in(m,n)) r6: u22(ack_out(n)) -> ack_out(n) The set of usable rules consists of r3 Take the reduction pair: generalized weighted path order (>=MG, >G) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: ack_in#_A(x1,x2) = x1 + 3 s_A(x1) = x1 |0|_A() = 2 u21#_A(x1,x2) = x2 + 3 ack_in_A(x1,x2) = 0 ack_out_A(x1) = x1 u11_A(x1) = x1 + 1 base order 2: marked-algebra reduction triple (>=A, >=A!, >A!): max/plus interpretation on natural numbers: ack_in#_A(x1,x2) = max{1, x1 - 17} s_A(x1) = x1 + 16 |0|_A = 15 u21#_A(x1,x2) = max{1, x2 - 1} ack_in_A(x1,x2) = max{28, x2 - 17} ack_out_A(x1) = max{11, x1 - 33} u11_A(x1) = x1 + 14 ack_in#!_A(x1,x2) = max{1, x1 - 1} s!_A(x1) = 64 |0|!_A = 64 u21#!_A(x1,x2) = x2 + 15 ack_in!_A(x1,x2) = max{51, x1 + 48, x2 - 5} ack_out!_A(x1) = 65 u11!_A(x1) = max{66, x1 + 22} partial status: pi(ack_in#) = [1] pi(s) = [1] pi(|0|) = [] pi(u21#) = [] pi(ack_in) = [] pi(ack_out) = [1] pi(u11) = [1] The following rules are removed: p1, p3, p4 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: ack_in#(s(m),s(n)) -> ack_in#(s(m),n) and R consists of: r1: ack_in(|0|(),n) -> ack_out(s(n)) r2: ack_in(s(m),|0|()) -> u11(ack_in(m,s(|0|()))) r3: u11(ack_out(n)) -> ack_out(n) r4: ack_in(s(m),s(n)) -> u21(ack_in(s(m),n),m) r5: u21(ack_out(n),m) -> u22(ack_in(m,n)) r6: u22(ack_out(n)) -> ack_out(n) The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: ack_in#(s(m),s(n)) -> ack_in#(s(m),n) and R consists of: r1: ack_in(|0|(),n) -> ack_out(s(n)) r2: ack_in(s(m),|0|()) -> u11(ack_in(m,s(|0|()))) r3: u11(ack_out(n)) -> ack_out(n) r4: ack_in(s(m),s(n)) -> u21(ack_in(s(m),n),m) r5: u21(ack_out(n),m) -> u22(ack_in(m,n)) r6: u22(ack_out(n)) -> ack_out(n) The set of usable rules consists of (no rules) Take the reduction pair: generalized weighted path order (>=MG, >G) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: ack_in#_A(x1,x2) = 0 s_A(x1) = 1 base order 2: marked-algebra reduction triple (>=A, >=A!, >A!): max/plus interpretation on natural numbers: ack_in#_A(x1,x2) = x2 s_A(x1) = max{89, x1 + 52} ack_in#!_A(x1,x2) = max{1, x2 - 53} s!_A(x1) = max{2, x1 - 225} partial status: pi(ack_in#) = [] pi(s) = [] The following rules are removed: p1 Then no dependency pair remains.