YES We show the termination of the TRS R: f(X) -> if(X,c(),n__f(true())) if(true(),X,Y) -> X if(false(),X,Y) -> activate(Y) f(X) -> n__f(X) activate(n__f(X)) -> f(X) activate(X) -> X -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: f#(X) -> if#(X,c(),n__f(true())) p2: if#(false(),X,Y) -> activate#(Y) p3: activate#(n__f(X)) -> f#(X) and R consists of: r1: f(X) -> if(X,c(),n__f(true())) r2: if(true(),X,Y) -> X r3: if(false(),X,Y) -> activate(Y) r4: f(X) -> n__f(X) r5: activate(n__f(X)) -> f(X) r6: activate(X) -> X 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#(X) -> if#(X,c(),n__f(true())) p2: if#(false(),X,Y) -> activate#(Y) p3: activate#(n__f(X)) -> f#(X) and R consists of: r1: f(X) -> if(X,c(),n__f(true())) r2: if(true(),X,Y) -> X r3: if(false(),X,Y) -> activate(Y) r4: f(X) -> n__f(X) r5: activate(n__f(X)) -> f(X) r6: activate(X) -> X The set of usable rules consists of (no rules) Take the reduction pair: max/plus interpretations on natural numbers: f#_A(x1) = max{1, x1 - 1} if#_A(x1,x2,x3) = max{0, x1 - 2, x2 - 2, x3 - 2} c_A = 0 n__f_A(x1) = x1 + 2 true_A = 0 false_A = 5 activate#_A(x1) = max{2, x1 - 3} 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: activate#(n__f(X)) -> f#(X) and R consists of: r1: f(X) -> if(X,c(),n__f(true())) r2: if(true(),X,Y) -> X r3: if(false(),X,Y) -> activate(Y) r4: f(X) -> n__f(X) r5: activate(n__f(X)) -> f(X) r6: activate(X) -> X The estimated dependency graph contains the following SCCs: (no SCCs)