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