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