YES We show the termination of the TRS R: app(app(app(uncurry(),f),x),y) -> app(app(f,x),y) Instead we prove termination of the uncurried system: app(uncurry_0(),y) -> uncurry_1(y) app(uncurry_1(x1),y) -> uncurry_2(x1,y) app(uncurry_2(x1,x2),y) -> uncurry_3(x1,x2,y) uncurry_3(f,x,y) -> app(app(f,x),y) -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: app#(uncurry_2(x1,x2),y) -> uncurry_3#(x1,x2,y) p2: uncurry_3#(f,x,y) -> app#(app(f,x),y) p3: uncurry_3#(f,x,y) -> app#(f,x) and R consists of: r1: app(uncurry_0(),y) -> uncurry_1(y) r2: app(uncurry_1(x1),y) -> uncurry_2(x1,y) r3: app(uncurry_2(x1,x2),y) -> uncurry_3(x1,x2,y) r4: uncurry_3(f,x,y) -> app(app(f,x),y) 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: app#(uncurry_2(x1,x2),y) -> uncurry_3#(x1,x2,y) p2: uncurry_3#(f,x,y) -> app#(f,x) p3: uncurry_3#(f,x,y) -> app#(app(f,x),y) and R consists of: r1: app(uncurry_0(),y) -> uncurry_1(y) r2: app(uncurry_1(x1),y) -> uncurry_2(x1,y) r3: app(uncurry_2(x1,x2),y) -> uncurry_3(x1,x2,y) r4: uncurry_3(f,x,y) -> app(app(f,x),y) The set of usable rules consists of r1, r2, r3, r4 Take the reduction pair: generalized weighted path order (>=MG, >G) base order 1: max/plus interpretation on natural numbers: app#_A(x1,x2) = 1 uncurry_2_A(x1,x2) = 0 uncurry_3#_A(x1,x2,x3) = 1 app_A(x1,x2) = max{2, x2 - 3} uncurry_0_A = 2 uncurry_1_A(x1) = 1 uncurry_3_A(x1,x2,x3) = max{2, x3 - 3} base order 2: marked-algebra reduction triple (>=A, >=A!, >A!): max/plus interpretation on natural numbers: app#_A(x1,x2) = max{5, x1 - 9} uncurry_2_A(x1,x2) = max{13, x1 + 12, x2 + 10} uncurry_3#_A(x1,x2,x3) = max{5, x1 + 1, x2 + 1} app_A(x1,x2) = max{12, x1 + 2, x2 + 10} uncurry_0_A = 0 uncurry_1_A(x1) = max{11, x1 + 10} uncurry_3_A(x1,x2,x3) = max{15, x1 + 4, x2 + 12, x3 + 10} app#!_A(x1,x2) = max{6, x1 - 3} uncurry_2!_A(x1,x2) = max{x1 - 1, x2 + 3} uncurry_3#!_A(x1,x2,x3) = max{x1 + 9, x2 + 7} app!_A(x1,x2) = max{10, x1 - 7, x2 + 6} uncurry_0!_A = 2 uncurry_1!_A(x1) = 1 uncurry_3!_A(x1,x2,x3) = max{10, x1 - 5, x2 + 3, x3 + 6} partial status: pi(app#) = [] pi(uncurry_2) = [] pi(uncurry_3#) = [] pi(app) = [] pi(uncurry_0) = [] pi(uncurry_1) = [] pi(uncurry_3) = [] The following rules are removed: p2 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: app#(uncurry_2(x1,x2),y) -> uncurry_3#(x1,x2,y) p2: uncurry_3#(f,x,y) -> app#(app(f,x),y) and R consists of: r1: app(uncurry_0(),y) -> uncurry_1(y) r2: app(uncurry_1(x1),y) -> uncurry_2(x1,y) r3: app(uncurry_2(x1,x2),y) -> uncurry_3(x1,x2,y) r4: uncurry_3(f,x,y) -> app(app(f,x),y) The estimated dependency graph contains the following SCCs: {p1, p2} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: app#(uncurry_2(x1,x2),y) -> uncurry_3#(x1,x2,y) p2: uncurry_3#(f,x,y) -> app#(app(f,x),y) and R consists of: r1: app(uncurry_0(),y) -> uncurry_1(y) r2: app(uncurry_1(x1),y) -> uncurry_2(x1,y) r3: app(uncurry_2(x1,x2),y) -> uncurry_3(x1,x2,y) r4: uncurry_3(f,x,y) -> app(app(f,x),y) The set of usable rules consists of r1, r2, r3, r4 Take the reduction pair: generalized weighted path order (>=MG, >G) base order 1: max/plus interpretation on natural numbers: app#_A(x1,x2) = max{9, x1} uncurry_2_A(x1,x2) = 9 uncurry_3#_A(x1,x2,x3) = 9 app_A(x1,x2) = 9 uncurry_0_A = 9 uncurry_1_A(x1) = 8 uncurry_3_A(x1,x2,x3) = 9 base order 2: marked-algebra reduction triple (>=A, >=A!, >A!): max/plus interpretation on natural numbers: app#_A(x1,x2) = max{2, x1 - 9, x2 - 1} uncurry_2_A(x1,x2) = max{10, x1 + 2, x2 + 8} uncurry_3#_A(x1,x2,x3) = max{2, x1 - 7, x2 - 1, x3 - 1} app_A(x1,x2) = max{10, x1 - 2, x2 + 8} uncurry_0_A = 2 uncurry_1_A(x1) = x1 + 8 uncurry_3_A(x1,x2,x3) = max{10, x1, x2 + 6, x3 + 8} app#!_A(x1,x2) = 3 uncurry_2!_A(x1,x2) = x1 + 5 uncurry_3#!_A(x1,x2,x3) = x1 + 4 app!_A(x1,x2) = max{0, x1 - 2} uncurry_0!_A = 2 uncurry_1!_A(x1) = 1 uncurry_3!_A(x1,x2,x3) = max{8, x1 - 1, x2 + 6} partial status: pi(app#) = [1] pi(uncurry_2) = [] pi(uncurry_3#) = [] pi(app) = [] pi(uncurry_0) = [] pi(uncurry_1) = [] pi(uncurry_3) = [] The following rules are removed: p1, p2 Then no dependency pair remains.