YES We show the termination of the TRS R: +(x,|0|()) -> x +(|0|(),x) -> x +(s(x),s(y)) -> s(s(+(x,y))) +(+(x,y),z) -> +(x,+(y,z)) *(x,|0|()) -> |0|() *(|0|(),x) -> |0|() *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) *(*(x,y),z) -> *(x,*(y,z)) app(nil(),l) -> l app(cons(x,l1),l2) -> cons(x,app(l1,l2)) sum(nil()) -> |0|() sum(cons(x,l)) -> +(x,sum(l)) sum(app(l1,l2)) -> +(sum(l1),sum(l2)) prod(nil()) -> s(|0|()) prod(cons(x,l)) -> *(x,prod(l)) prod(app(l1,l2)) -> *(prod(l1),prod(l2)) -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: +#(s(x),s(y)) -> +#(x,y) p2: +#(+(x,y),z) -> +#(x,+(y,z)) p3: +#(+(x,y),z) -> +#(y,z) p4: *#(s(x),s(y)) -> +#(*(x,y),+(x,y)) p5: *#(s(x),s(y)) -> *#(x,y) p6: *#(s(x),s(y)) -> +#(x,y) p7: *#(*(x,y),z) -> *#(x,*(y,z)) p8: *#(*(x,y),z) -> *#(y,z) p9: app#(cons(x,l1),l2) -> app#(l1,l2) p10: sum#(cons(x,l)) -> +#(x,sum(l)) p11: sum#(cons(x,l)) -> sum#(l) p12: sum#(app(l1,l2)) -> +#(sum(l1),sum(l2)) p13: sum#(app(l1,l2)) -> sum#(l1) p14: sum#(app(l1,l2)) -> sum#(l2) p15: prod#(cons(x,l)) -> *#(x,prod(l)) p16: prod#(cons(x,l)) -> prod#(l) p17: prod#(app(l1,l2)) -> *#(prod(l1),prod(l2)) p18: prod#(app(l1,l2)) -> prod#(l1) p19: prod#(app(l1,l2)) -> prod#(l2) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p11, p13, p14} {p16, p18, p19} {p5, p7, p8} {p1, p2, p3} {p9} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: sum#(app(l1,l2)) -> sum#(l2) p2: sum#(app(l1,l2)) -> sum#(l1) p3: sum#(cons(x,l)) -> sum#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: sum#_A(x1) = x1 app_A(x1,x2) = x1 + x2 + 10 cons_A(x1,x2) = x1 + x2 + 8 +_A(x1,x2) = x1 + x2 + 5 |0|_A() = 3 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 2 nil_A() = 2 prod_A(x1) = x1 + 2 base order 2: precedence: app > prod > sum# = * > cons > sum > + = |0| > nil > s partial status: pi(sum#) = [] pi(app) = [2] pi(cons) = [2] pi(+) = [] pi(|0|) = [] pi(s) = [] pi(*) = [] pi(sum) = [] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: sum#(app(l1,l2)) -> sum#(l1) p2: sum#(cons(x,l)) -> sum#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1, p2} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: sum#(app(l1,l2)) -> sum#(l1) p2: sum#(cons(x,l)) -> sum#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r3, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: sum#_A(x1) = x1 app_A(x1,x2) = x1 + x2 + 8 cons_A(x1,x2) = x1 + x2 + 6 +_A(x1,x2) = 5 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 |0|_A() = 1 sum_A(x1) = x1 + 7 nil_A() = 2 prod_A(x1) = x1 + 1 base order 2: precedence: sum > app > + > cons > sum# = nil = prod > s = * > |0| partial status: pi(sum#) = [] pi(app) = [2] pi(cons) = [2] pi(+) = [] pi(s) = [] pi(*) = [] pi(|0|) = [] pi(sum) = [1] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: sum#(cons(x,l)) -> sum#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: sum#(cons(x,l)) -> sum#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: sum#_A(x1) = x1 cons_A(x1,x2) = x1 + x2 + 7 +_A(x1,x2) = x1 + x2 + 5 |0|_A() = 1 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 1 nil_A() = 2 prod_A(x1) = x1 + 1 base order 2: precedence: sum > cons > sum# = + = prod > * = nil > |0| = s partial status: pi(sum#) = [] pi(cons) = [1, 2] pi(+) = [1] pi(|0|) = [] pi(s) = [] pi(*) = [] pi(sum) = [1] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 Then no dependency pair remains. -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: prod#(app(l1,l2)) -> prod#(l2) p2: prod#(app(l1,l2)) -> prod#(l1) p3: prod#(cons(x,l)) -> prod#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: prod#_A(x1) = x1 app_A(x1,x2) = x1 + x2 + 10 cons_A(x1,x2) = x1 + x2 + 8 +_A(x1,x2) = x1 + x2 + 5 |0|_A() = 3 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 2 nil_A() = 2 prod_A(x1) = x1 + 2 base order 2: precedence: app > prod > prod# = * > cons > sum > + = |0| > nil > s partial status: pi(prod#) = [] pi(app) = [2] pi(cons) = [2] pi(+) = [] pi(|0|) = [] pi(s) = [] pi(*) = [] pi(sum) = [] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: prod#(app(l1,l2)) -> prod#(l1) p2: prod#(cons(x,l)) -> prod#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1, p2} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: prod#(app(l1,l2)) -> prod#(l1) p2: prod#(cons(x,l)) -> prod#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r3, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: prod#_A(x1) = x1 app_A(x1,x2) = x1 + x2 + 8 cons_A(x1,x2) = x1 + x2 + 6 +_A(x1,x2) = 5 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 |0|_A() = 1 sum_A(x1) = x1 + 7 nil_A() = 2 prod_A(x1) = x1 + 1 base order 2: precedence: sum > app > + > cons > prod# = nil = prod > s = * > |0| partial status: pi(prod#) = [] pi(app) = [2] pi(cons) = [2] pi(+) = [] pi(s) = [] pi(*) = [] pi(|0|) = [] pi(sum) = [1] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: prod#(cons(x,l)) -> prod#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: prod#(cons(x,l)) -> prod#(l) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: prod#_A(x1) = x1 cons_A(x1,x2) = x1 + x2 + 7 +_A(x1,x2) = x1 + x2 + 5 |0|_A() = 1 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 1 nil_A() = 2 prod_A(x1) = x1 + 1 base order 2: precedence: sum > cons > prod# = + = prod > * = nil > |0| = s partial status: pi(prod#) = [] pi(cons) = [1, 2] pi(+) = [1] pi(|0|) = [] pi(s) = [] pi(*) = [] pi(sum) = [1] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 Then no dependency pair remains. -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: *#(*(x,y),z) -> *#(y,z) p2: *#(*(x,y),z) -> *#(x,*(y,z)) p3: *#(s(x),s(y)) -> *#(x,y) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: *#_A(x1,x2) = x1 + 1 *_A(x1,x2) = x1 + x2 + 3 s_A(x1) = x1 + 2 +_A(x1,x2) = x1 + x2 + 3 |0|_A() = 1 sum_A(x1) = x1 + 1 nil_A() = 4 prod_A(x1) = x1 + 1 base order 2: precedence: * = + > *# = sum > prod > s > nil > |0| partial status: pi(*#) = [1] pi(*) = [1] pi(s) = [1] pi(+) = [] pi(|0|) = [] pi(sum) = [] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: *#(*(x,y),z) -> *#(x,*(y,z)) p2: *#(s(x),s(y)) -> *#(x,y) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1, p2} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: *#(*(x,y),z) -> *#(x,*(y,z)) p2: *#(s(x),s(y)) -> *#(x,y) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: *#_A(x1,x2) = x1 + 1 *_A(x1,x2) = x1 + 3 s_A(x1) = x1 + 2 +_A(x1,x2) = x1 + x2 + 6 |0|_A() = 1 sum_A(x1) = x1 + 1 nil_A() = 4 prod_A(x1) = x1 + 1 base order 2: precedence: * > sum = prod > *# = + > s > nil > |0| partial status: pi(*#) = [1] pi(*) = [1] pi(s) = [1] pi(+) = [] pi(|0|) = [] pi(sum) = [] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: *#(s(x),s(y)) -> *#(x,y) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: *#(s(x),s(y)) -> *#(x,y) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: *#_A(x1,x2) = x1 + x2 + 2 s_A(x1) = x1 + 1 +_A(x1,x2) = x1 + x2 + 2 |0|_A() = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 1 nil_A() = 3 prod_A(x1) = x1 + 1 base order 2: precedence: prod > *# = * = sum = nil > + = |0| > s partial status: pi(*#) = [2] pi(s) = [] pi(+) = [] pi(|0|) = [] pi(*) = [] pi(sum) = [] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 Then no dependency pair remains. -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: +#(s(x),s(y)) -> +#(x,y) p2: +#(+(x,y),z) -> +#(y,z) p3: +#(+(x,y),z) -> +#(x,+(y,z)) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r11, r14 Take the monotone reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: +#_A(x1,x2) = x1 + x2 + 3 s_A(x1) = x1 + 1 +_A(x1,x2) = x1 + x2 + 2 |0|_A() = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 1 nil_A() = 3 prod_A(x1) = x1 + 1 base order 2: precedence: +# = sum > prod > + = * = nil > s = |0| partial status: pi(+#) = [1, 2] pi(s) = [1] pi(+) = [1, 2] pi(|0|) = [] pi(*) = [1, 2] pi(sum) = [1] pi(nil) = [] pi(prod) = [1] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: +#(+(x,y),z) -> +#(y,z) p2: +#(+(x,y),z) -> +#(x,+(y,z)) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1, p2} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: +#(+(x,y),z) -> +#(y,z) p2: +#(+(x,y),z) -> +#(x,+(y,z)) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: +#_A(x1,x2) = x1 + x2 + 6 +_A(x1,x2) = x1 + x2 + 5 |0|_A() = 1 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 1 nil_A() = 2 prod_A(x1) = x1 + 1 base order 2: precedence: prod > +# > sum > + > * = nil > |0| = s partial status: pi(+#) = [] pi(+) = [] pi(|0|) = [] pi(s) = [] pi(*) = [] pi(sum) = [] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: +#(+(x,y),z) -> +#(x,+(y,z)) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: +#(+(x,y),z) -> +#(x,+(y,z)) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: +#_A(x1,x2) = x1 + x2 + 1 +_A(x1,x2) = x1 + x2 + 1 |0|_A() = 1 s_A(x1) = x1 + 3 *_A(x1,x2) = x1 + x2 + 4 sum_A(x1) = x1 + 1 nil_A() = 5 prod_A(x1) = x1 + 1 base order 2: precedence: +# = + = * = prod > s > nil > |0| > sum partial status: pi(+#) = [1] pi(+) = [] pi(|0|) = [] pi(s) = [1] pi(*) = [2] pi(sum) = [] pi(nil) = [] pi(prod) = [] The following rules are removed: p1 Then no dependency pair remains. -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: app#(cons(x,l1),l2) -> app#(l1,l2) and R consists of: r1: +(x,|0|()) -> x r2: +(|0|(),x) -> x r3: +(s(x),s(y)) -> s(s(+(x,y))) r4: +(+(x,y),z) -> +(x,+(y,z)) r5: *(x,|0|()) -> |0|() r6: *(|0|(),x) -> |0|() r7: *(s(x),s(y)) -> s(+(*(x,y),+(x,y))) r8: *(*(x,y),z) -> *(x,*(y,z)) r9: app(nil(),l) -> l r10: app(cons(x,l1),l2) -> cons(x,app(l1,l2)) r11: sum(nil()) -> |0|() r12: sum(cons(x,l)) -> +(x,sum(l)) r13: sum(app(l1,l2)) -> +(sum(l1),sum(l2)) r14: prod(nil()) -> s(|0|()) r15: prod(cons(x,l)) -> *(x,prod(l)) r16: prod(app(l1,l2)) -> *(prod(l1),prod(l2)) The set of usable rules consists of r1, r2, r3, r4, r5, r6, r7, r8, r11, r14 Take the reduction pair: generalized weighted path order (>=MG, >MG) base order 1: matrix interpretation with standard point-wise order: carrier: N^1 order: standard order interpretations: app#_A(x1,x2) = x1 + x2 + 8 cons_A(x1,x2) = x1 + x2 + 7 +_A(x1,x2) = x1 + x2 + 5 |0|_A() = 1 s_A(x1) = 1 *_A(x1,x2) = x1 + x2 + 2 sum_A(x1) = x1 + 1 nil_A() = 2 prod_A(x1) = x1 + 1 base order 2: precedence: app# > cons > sum > + = nil = prod > s = * > |0| partial status: pi(app#) = [1, 2] pi(cons) = [] pi(+) = [] pi(|0|) = [] pi(s) = [] pi(*) = [] pi(sum) = [1] pi(nil) = [] pi(prod) = [1] The following rules are removed: p1 Then no dependency pair remains.