/export/starexec/sandbox/solver/bin/starexec_run_ttt2-1.17+nonreach /export/starexec/sandbox/benchmark/theBenchmark.xml /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES Problem: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Proof: DP Processor: DPs: minus#(s(x),s(y)) -> minus#(x,y) double#(s(x)) -> double#(x) plus#(s(x),s(y)) -> id#(y) plus#(s(x),s(y)) -> id#(x) plus#(s(x),s(y)) -> not#(gt(x,y)) plus#(s(x),s(y)) -> if#(not(gt(x,y)),id(x),id(y)) plus#(s(x),s(y)) -> gt#(x,y) plus#(s(x),s(y)) -> if#(gt(x,y),x,y) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(s(x),x) -> id#(x) plus#(s(x),x) -> gt#(x,x) plus#(s(x),x) -> if#(gt(x,x),id(x),id(x)) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) plus#(id(x),s(y)) -> gt#(s(y),y) plus#(id(x),s(y)) -> if#(gt(s(y),y),y,s(y)) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) not#(x) -> if#(x,false(),true()) gt#(s(x),s(y)) -> gt#(x,y) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) TDG Processor: DPs: minus#(s(x),s(y)) -> minus#(x,y) double#(s(x)) -> double#(x) plus#(s(x),s(y)) -> id#(y) plus#(s(x),s(y)) -> id#(x) plus#(s(x),s(y)) -> not#(gt(x,y)) plus#(s(x),s(y)) -> if#(not(gt(x,y)),id(x),id(y)) plus#(s(x),s(y)) -> gt#(x,y) plus#(s(x),s(y)) -> if#(gt(x,y),x,y) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(s(x),x) -> id#(x) plus#(s(x),x) -> gt#(x,x) plus#(s(x),x) -> if#(gt(x,x),id(x),id(x)) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) plus#(id(x),s(y)) -> gt#(s(y),y) plus#(id(x),s(y)) -> if#(gt(s(y),y),y,s(y)) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) not#(x) -> if#(x,false(),true()) gt#(s(x),s(y)) -> gt#(x,y) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) graph: gt#(s(x),s(y)) -> gt#(x,y) -> gt#(s(x),s(y)) -> gt#(x,y) plus#(id(x),s(y)) -> gt#(s(y),y) -> gt#(s(x),s(y)) -> gt#(x,y) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(id(x),s(y)) -> if#(gt(s(y),y),y,s(y)) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(id(x),s(y)) -> gt#(s(y),y) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),x) -> if#(gt(x,x),id(x),id(x)) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),x) -> gt#(x,x) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),x) -> id#(x) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),s(y)) -> if#(gt(x,y),x,y) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),s(y)) -> gt#(x,y) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),s(y)) -> if#(not(gt(x,y)),id(x),id(y)) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),s(y)) -> not#(gt(x,y)) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),s(y)) -> id#(x) plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) -> plus#(s(x),s(y)) -> id#(y) plus#(s(x),s(y)) -> gt#(x,y) -> gt#(s(x),s(y)) -> gt#(x,y) plus#(s(x),s(y)) -> not#(gt(x,y)) -> not#(x) -> if#(x,false(),true()) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(id(x),s(y)) -> if#(gt(s(y),y),y,s(y)) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(id(x),s(y)) -> gt#(s(y),y) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),x) -> if#(gt(x,x),id(x),id(x)) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),x) -> gt#(x,x) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),x) -> id#(x) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),s(y)) -> if#(gt(x,y),x,y) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),s(y)) -> gt#(x,y) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),s(y)) -> if#(not(gt(x,y)),id(x),id(y)) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),s(y)) -> not#(gt(x,y)) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),s(y)) -> id#(x) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) -> plus#(s(x),s(y)) -> id#(y) plus#(s(x),x) -> gt#(x,x) -> gt#(s(x),s(y)) -> gt#(x,y) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(id(x),s(y)) -> if#(gt(s(y),y),y,s(y)) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(id(x),s(y)) -> gt#(s(y),y) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),x) -> if#(gt(x,x),id(x),id(x)) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),x) -> gt#(x,x) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),x) -> id#(x) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),s(y)) -> if#(gt(x,y),x,y) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),s(y)) -> gt#(x,y) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),s(y)) -> if#(not(gt(x,y)),id(x),id(y)) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),s(y)) -> not#(gt(x,y)) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),s(y)) -> id#(x) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) -> plus#(s(x),s(y)) -> id#(y) double#(s(x)) -> double#(x) -> double#(s(x)) -> double#(x) minus#(s(x),s(y)) -> minus#(x,y) -> minus#(s(x),s(y)) -> minus#(x,y) SCC Processor: #sccs: 4 #rules: 6 #arcs: 49/324 DPs: minus#(s(x),s(y)) -> minus#(x,y) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Subterm Criterion Processor: simple projection: pi(minus#) = 0 problem: DPs: TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Qed DPs: double#(s(x)) -> double#(x) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Subterm Criterion Processor: simple projection: pi(double#) = 0 problem: DPs: TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Qed DPs: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Usable Rule Processor: DPs: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),s(y)) -> plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) TRS: gt(s(x),zero()) -> true() gt(s(x),s(y)) -> gt(x,y) gt(zero(),y) -> false() if(true(),x,y) -> x if(false(),x,y) -> y id(x) -> x not(x) -> if(x,false(),true()) Arctic Interpretation Processor: dimension: 1 usable rules: if(true(),x,y) -> x if(false(),x,y) -> y id(x) -> x interpretation: [plus#](x0, x1) = x0 + x1, [false] = 0, [true] = 0, [zero] = 0, [id](x0) = x0, [not](x0) = -2x0 + 0, [if](x0, x1, x2) = x1 + x2, [gt](x0, x1) = 2x0 + 1x1 + 2, [s](x0) = 1x0 + 2 orientation: plus#(id(x),s(y)) = x + 1y + 2 >= x + 1y + 2 = plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),s(y)) = 1x + 1y + 2 >= x + y = plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) plus#(s(x),x) = 1x + 2 >= 1x + 2 = plus#(if(gt(x,x),id(x),id(x)),s(x)) gt(s(x),zero()) = 3x + 4 >= 0 = true() gt(s(x),s(y)) = 3x + 2y + 4 >= 2x + 1y + 2 = gt(x,y) gt(zero(),y) = 1y + 2 >= 0 = false() if(true(),x,y) = x + y >= x = x if(false(),x,y) = x + y >= y = y id(x) = x >= x = x not(x) = -2x + 0 >= 0 = if(x,false(),true()) problem: DPs: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) TRS: gt(s(x),zero()) -> true() gt(s(x),s(y)) -> gt(x,y) gt(zero(),y) -> false() if(true(),x,y) -> x if(false(),x,y) -> y id(x) -> x not(x) -> if(x,false(),true()) Restore Modifier: DPs: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Usable Rule Processor: DPs: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),x) -> plus#(if(gt(x,x),id(x),id(x)),s(x)) TRS: gt(s(x),zero()) -> true() gt(s(x),s(y)) -> gt(x,y) gt(zero(),y) -> false() if(true(),x,y) -> x if(false(),x,y) -> y id(x) -> x Arctic Interpretation Processor: dimension: 1 usable rules: if(true(),x,y) -> x if(false(),x,y) -> y id(x) -> x interpretation: [plus#](x0, x1) = x0 + 6, [false] = 1, [true] = 2, [zero] = 7, [id](x0) = 2x0 + 2, [if](x0, x1, x2) = 2x1 + x2 + 0, [gt](x0, x1) = x0 + x1 + 0, [s](x0) = 7x0 + 7 orientation: plus#(id(x),s(y)) = 2x + 6 >= x + 6 = plus#(x,if(gt(s(y),y),y,s(y))) plus#(s(x),x) = 7x + 7 >= 4x + 6 = plus#(if(gt(x,x),id(x),id(x)),s(x)) gt(s(x),zero()) = 7x + 7 >= 2 = true() gt(s(x),s(y)) = 7x + 7y + 7 >= x + y + 0 = gt(x,y) gt(zero(),y) = y + 7 >= 1 = false() if(true(),x,y) = 2x + y + 0 >= x = x if(false(),x,y) = 2x + y + 0 >= y = y id(x) = 2x + 2 >= x = x problem: DPs: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) TRS: gt(s(x),zero()) -> true() gt(s(x),s(y)) -> gt(x,y) gt(zero(),y) -> false() if(true(),x,y) -> x if(false(),x,y) -> y id(x) -> x Restore Modifier: DPs: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Size-Change Termination Processor: DPs: TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) The DP: plus#(id(x),s(y)) -> plus#(x,if(gt(s(y),y),y,s(y))) has the edges: 0 > 0 Qed DPs: gt#(s(x),s(y)) -> gt#(x,y) TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Subterm Criterion Processor: simple projection: pi(gt#) = 0 problem: DPs: TRS: minus(x,0()) -> x minus(s(x),s(y)) -> minus(x,y) double(0()) -> 0() double(s(x)) -> s(s(double(x))) plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) plus(zero(),y) -> y plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) id(x) -> x if(true(),x,y) -> x if(false(),x,y) -> y not(x) -> if(x,false(),true()) gt(s(x),zero()) -> true() gt(zero(),y) -> false() gt(s(x),s(y)) -> gt(x,y) Qed