YES We show the termination of the TRS R: app(app(app(if(),true()),x),y) -> x app(app(app(if(),false()),x),y) -> y app(app(filter(),f),nil()) -> nil() app(app(filter(),f),app(app(cons(),x),xs)) -> app(app(app(if(),app(f,x)),app(app(cons(),x),app(app(filter(),f),xs))),app(app(filter(),f),xs)) -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(app(app(if(),app(f,x)),app(app(cons(),x),app(app(filter(),f),xs))),app(app(filter(),f),xs)) p2: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(app(if(),app(f,x)),app(app(cons(),x),app(app(filter(),f),xs))) p3: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(if(),app(f,x)) p4: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(f,x) p5: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(app(cons(),x),app(app(filter(),f),xs)) p6: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(app(filter(),f),xs) and R consists of: r1: app(app(app(if(),true()),x),y) -> x r2: app(app(app(if(),false()),x),y) -> y r3: app(app(filter(),f),nil()) -> nil() r4: app(app(filter(),f),app(app(cons(),x),xs)) -> app(app(app(if(),app(f,x)),app(app(cons(),x),app(app(filter(),f),xs))),app(app(filter(),f),xs)) The estimated dependency graph contains the following SCCs: {p4, p6} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(f,x) p2: app#(app(filter(),f),app(app(cons(),x),xs)) -> app#(app(filter(),f),xs) and R consists of: r1: app(app(app(if(),true()),x),y) -> x r2: app(app(app(if(),false()),x),y) -> y r3: app(app(filter(),f),nil()) -> nil() r4: app(app(filter(),f),app(app(cons(),x),xs)) -> app(app(app(if(),app(f,x)),app(app(cons(),x),app(app(filter(),f),xs))),app(app(filter(),f),xs)) The set of usable rules consists of (no rules) Take the reduction pair: lexicographic combination of reduction pairs: 1. matrix interpretations: carrier: N^2 order: lexicographic order interpretations: app#_A(x1,x2) = ((1,0),(1,1)) x1 + ((1,0),(1,1)) x2 app_A(x1,x2) = ((1,0),(1,1)) x1 + ((1,0),(1,1)) x2 filter_A() = (1,1) cons_A() = (1,0) 2. lexicographic path order with precedence: precedence: filter > app > app# > cons argument filter: pi(app#) = [1] pi(app) = 2 pi(filter) = [] pi(cons) = [] The next rules are strictly ordered: p1, p2 We remove them from the problem. Then no dependency pair remains.