0.61/0.67 YES 0.61/0.70 We consider the system theBenchmark. 0.61/0.70 0.61/0.70 Alphabet: 0.61/0.70 0.61/0.70 0 : [] --> a 0.61/0.70 cons : [a * b] --> b 0.61/0.70 double : [b] --> b 0.61/0.70 inc : [b] --> b 0.61/0.70 map : [a -> a * b] --> b 0.61/0.70 nil : [] --> b 0.61/0.70 plus : [a] --> a -> a 0.61/0.70 s : [a] --> a 0.61/0.70 times : [a] --> a -> a 0.61/0.70 0.61/0.70 Rules: 0.61/0.70 0.61/0.70 plus(0) x => x 0.61/0.70 plus(s(x)) y => s(plus(x) y) 0.61/0.70 times(0) x => 0 0.61/0.70 times(s(x)) y => plus(times(x) y) y 0.61/0.70 inc(x) => map(plus(s(0)), x) 0.61/0.70 double(x) => map(times(s(s(0))), x) 0.61/0.70 map(f, nil) => nil 0.61/0.70 map(f, cons(x, y)) => cons(f x, map(f, y)) 0.61/0.70 0.61/0.70 This AFS is converted to an AFSM simply by replacing all free variables by meta-variables (with arity 0). 0.61/0.70 0.61/0.70 We use rule removal, following [Kop12, Theorem 2.23]. 0.61/0.70 0.61/0.70 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.61/0.70 0.61/0.70 plus(0) X >? X 0.61/0.70 plus(s(X)) Y >? s(plus(X) Y) 0.61/0.70 times(0) X >? 0 0.61/0.70 times(s(X)) Y >? plus(times(X) Y) Y 0.61/0.70 inc(X) >? map(plus(s(0)), X) 0.61/0.70 double(X) >? map(times(s(s(0))), X) 0.61/0.70 map(F, nil) >? nil 0.61/0.70 map(F, cons(X, Y)) >? cons(F X, map(F, Y)) 0.61/0.70 0.61/0.70 We use a recursive path ordering as defined in [Kop12, Chapter 5]. 0.61/0.70 0.61/0.70 Argument functions: 0.61/0.70 0.61/0.70 [[0]] = _|_ 0.61/0.70 [[nil]] = _|_ 0.61/0.70 0.61/0.70 We choose Lex = {} and Mul = {@_{o -> o}, cons, double, inc, map, plus, s, times}, and the following precedence: double > inc > map > cons > times > plus > @_{o -> o} > s 0.61/0.70 0.61/0.70 Taking the argument function into account, and fixing the greater / greater equal choices, the constraints can be denoted as follows: 0.61/0.70 0.61/0.70 @_{o -> o}(plus(_|_), X) > X 0.61/0.70 @_{o -> o}(plus(s(X)), Y) > s(@_{o -> o}(plus(X), Y)) 0.61/0.70 @_{o -> o}(times(_|_), X) >= _|_ 0.61/0.70 @_{o -> o}(times(s(X)), Y) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) 0.61/0.70 inc(X) >= map(plus(s(_|_)), X) 0.61/0.70 double(X) >= map(times(s(s(_|_))), X) 0.61/0.70 map(F, _|_) >= _|_ 0.61/0.70 map(F, cons(X, Y)) >= cons(@_{o -> o}(F, X), map(F, Y)) 0.61/0.70 0.61/0.70 With these choices, we have: 0.61/0.70 0.61/0.70 1] @_{o -> o}(plus(_|_), X) > X because [2], by definition 0.61/0.70 2] @_{o -> o}*(plus(_|_), X) >= X because [3], by (Select) 0.61/0.70 3] X >= X by (Meta) 0.61/0.70 0.61/0.70 4] @_{o -> o}(plus(s(X)), Y) > s(@_{o -> o}(plus(X), Y)) because [5], by definition 0.61/0.70 5] @_{o -> o}*(plus(s(X)), Y) >= s(@_{o -> o}(plus(X), Y)) because [6], by (Select) 0.61/0.70 6] plus(s(X)) @_{o -> o}*(plus(s(X)), Y) >= s(@_{o -> o}(plus(X), Y)) because [7] 0.61/0.70 7] plus*(s(X), @_{o -> o}*(plus(s(X)), Y)) >= s(@_{o -> o}(plus(X), Y)) because plus > s and [8], by (Copy) 0.61/0.70 8] plus*(s(X), @_{o -> o}*(plus(s(X)), Y)) >= @_{o -> o}(plus(X), Y) because plus > @_{o -> o}, [9] and [13], by (Copy) 0.61/0.70 9] plus*(s(X), @_{o -> o}*(plus(s(X)), Y)) >= plus(X) because plus in Mul and [10], by (Stat) 0.61/0.70 10] s(X) > X because [11], by definition 0.61/0.70 11] s*(X) >= X because [12], by (Select) 0.61/0.70 12] X >= X by (Meta) 0.61/0.70 13] plus*(s(X), @_{o -> o}*(plus(s(X)), Y)) >= Y because [14], by (Select) 0.61/0.70 14] @_{o -> o}*(plus(s(X)), Y) >= Y because [15], by (Select) 0.61/0.70 15] Y >= Y by (Meta) 0.61/0.70 0.61/0.70 16] @_{o -> o}(times(_|_), X) >= _|_ by (Bot) 0.61/0.70 0.61/0.70 17] @_{o -> o}(times(s(X)), Y) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because [18], by (Star) 0.61/0.70 18] @_{o -> o}*(times(s(X)), Y) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because [19], by (Select) 0.61/0.70 19] times(s(X)) @_{o -> o}*(times(s(X)), Y) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because [20] 0.61/0.70 20] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because times > @_{o -> o}, [21] and [27], by (Copy) 0.61/0.70 21] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= plus(@_{o -> o}(times(X), Y)) because times > plus and [22], by (Copy) 0.61/0.70 22] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= @_{o -> o}(times(X), Y) because times > @_{o -> o}, [23] and [27], by (Copy) 0.61/0.70 23] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= times(X) because times in Mul and [24], by (Stat) 0.61/0.70 24] s(X) > X because [25], by definition 0.61/0.70 25] s*(X) >= X because [26], by (Select) 0.61/0.70 26] X >= X by (Meta) 0.61/0.70 27] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= Y because [28], by (Select) 0.61/0.70 28] @_{o -> o}*(times(s(X)), Y) >= Y because [29], by (Select) 0.61/0.70 29] Y >= Y by (Meta) 0.61/0.70 0.61/0.70 30] inc(X) >= map(plus(s(_|_)), X) because [31], by (Star) 0.61/0.70 31] inc*(X) >= map(plus(s(_|_)), X) because inc > map, [32] and [35], by (Copy) 0.61/0.70 32] inc*(X) >= plus(s(_|_)) because inc > plus and [33], by (Copy) 0.61/0.70 33] inc*(X) >= s(_|_) because inc > s and [34], by (Copy) 0.61/0.70 34] inc*(X) >= _|_ by (Bot) 0.61/0.70 35] inc*(X) >= X because [36], by (Select) 0.61/0.70 36] X >= X by (Meta) 0.61/0.70 0.61/0.70 37] double(X) >= map(times(s(s(_|_))), X) because [38], by (Star) 0.61/0.70 38] double*(X) >= map(times(s(s(_|_))), X) because double > map, [39] and [43], by (Copy) 0.61/0.70 39] double*(X) >= times(s(s(_|_))) because double > times and [40], by (Copy) 0.61/0.70 40] double*(X) >= s(s(_|_)) because double > s and [41], by (Copy) 0.61/0.70 41] double*(X) >= s(_|_) because double > s and [42], by (Copy) 0.61/0.70 42] double*(X) >= _|_ by (Bot) 0.61/0.70 43] double*(X) >= X because [44], by (Select) 0.61/0.70 44] X >= X by (Meta) 0.61/0.70 0.61/0.70 45] map(F, _|_) >= _|_ by (Bot) 0.61/0.70 0.61/0.70 46] map(F, cons(X, Y)) >= cons(@_{o -> o}(F, X), map(F, Y)) because [47], by (Star) 0.61/0.70 47] map*(F, cons(X, Y)) >= cons(@_{o -> o}(F, X), map(F, Y)) because map > cons, [48] and [55], by (Copy) 0.61/0.70 48] map*(F, cons(X, Y)) >= @_{o -> o}(F, X) because map > @_{o -> o}, [49] and [51], by (Copy) 0.61/0.70 49] map*(F, cons(X, Y)) >= F because [50], by (Select) 0.61/0.70 50] F >= F by (Meta) 0.61/0.70 51] map*(F, cons(X, Y)) >= X because [52], by (Select) 0.61/0.70 52] cons(X, Y) >= X because [53], by (Star) 0.61/0.70 53] cons*(X, Y) >= X because [54], by (Select) 0.61/0.70 54] X >= X by (Meta) 0.61/0.70 55] map*(F, cons(X, Y)) >= map(F, Y) because map in Mul, [56] and [57], by (Stat) 0.61/0.70 56] F >= F by (Meta) 0.61/0.70 57] cons(X, Y) > Y because [58], by definition 0.61/0.70 58] cons*(X, Y) >= Y because [59], by (Select) 0.61/0.70 59] Y >= Y by (Meta) 0.61/0.70 0.61/0.70 We can thus remove the following rules: 0.61/0.70 0.61/0.70 plus(0) X => X 0.61/0.70 plus(s(X)) Y => s(plus(X) Y) 0.61/0.70 0.61/0.70 We use rule removal, following [Kop12, Theorem 2.23]. 0.61/0.70 0.61/0.70 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.61/0.70 0.61/0.70 times(0) X >? 0 0.61/0.70 times(s(X)) Y >? plus(times(X) Y) Y 0.61/0.70 inc(X) >? map(plus(s(0)), X) 0.61/0.70 double(X) >? map(times(s(s(0))), X) 0.61/0.70 map(F, nil) >? nil 0.61/0.70 map(F, cons(X, Y)) >? cons(F X, map(F, Y)) 0.61/0.70 0.61/0.70 We use a recursive path ordering as defined in [Kop12, Chapter 5]. 0.61/0.70 0.61/0.70 Argument functions: 0.61/0.70 0.61/0.70 [[0]] = _|_ 0.61/0.70 [[nil]] = _|_ 0.61/0.70 0.61/0.70 We choose Lex = {} and Mul = {@_{o -> o}, cons, double, inc, map, plus, s, times}, and the following precedence: double > inc > s > times > @_{o -> o} = map > cons > plus 0.61/0.70 0.61/0.70 Taking the argument function into account, and fixing the greater / greater equal choices, the constraints can be denoted as follows: 0.61/0.70 0.61/0.70 @_{o -> o}(times(_|_), X) >= _|_ 0.61/0.70 @_{o -> o}(times(s(X)), Y) > @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) 0.61/0.70 inc(X) >= map(plus(s(_|_)), X) 0.61/0.70 double(X) >= map(times(s(s(_|_))), X) 0.61/0.70 map(F, _|_) >= _|_ 0.61/0.70 map(F, cons(X, Y)) > cons(@_{o -> o}(F, X), map(F, Y)) 0.61/0.70 0.61/0.70 With these choices, we have: 0.61/0.70 0.61/0.70 1] @_{o -> o}(times(_|_), X) >= _|_ by (Bot) 0.61/0.70 0.61/0.70 2] @_{o -> o}(times(s(X)), Y) > @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because [3], by definition 0.61/0.70 3] @_{o -> o}*(times(s(X)), Y) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because [4], by (Select) 0.61/0.70 4] times(s(X)) @_{o -> o}*(times(s(X)), Y) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because [5] 0.61/0.70 5] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= @_{o -> o}(plus(@_{o -> o}(times(X), Y)), Y) because times > @_{o -> o}, [6] and [12], by (Copy) 0.61/0.70 6] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= plus(@_{o -> o}(times(X), Y)) because times > plus and [7], by (Copy) 0.61/0.70 7] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= @_{o -> o}(times(X), Y) because times > @_{o -> o}, [8] and [12], by (Copy) 0.61/0.70 8] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= times(X) because times in Mul and [9], by (Stat) 0.61/0.70 9] s(X) > X because [10], by definition 0.61/0.70 10] s*(X) >= X because [11], by (Select) 0.61/0.70 11] X >= X by (Meta) 0.61/0.70 12] times*(s(X), @_{o -> o}*(times(s(X)), Y)) >= Y because [13], by (Select) 0.61/0.70 13] @_{o -> o}*(times(s(X)), Y) >= Y because [14], by (Select) 0.61/0.70 14] Y >= Y by (Meta) 0.61/0.70 0.61/0.70 15] inc(X) >= map(plus(s(_|_)), X) because [16], by (Star) 0.61/0.70 16] inc*(X) >= map(plus(s(_|_)), X) because inc > map, [17] and [20], by (Copy) 0.61/0.70 17] inc*(X) >= plus(s(_|_)) because inc > plus and [18], by (Copy) 0.61/0.70 18] inc*(X) >= s(_|_) because inc > s and [19], by (Copy) 0.61/0.70 19] inc*(X) >= _|_ by (Bot) 0.61/0.70 20] inc*(X) >= X because [21], by (Select) 0.61/0.70 21] X >= X by (Meta) 0.61/0.70 0.61/0.70 22] double(X) >= map(times(s(s(_|_))), X) because [23], by (Star) 0.61/0.70 23] double*(X) >= map(times(s(s(_|_))), X) because double > map, [24] and [28], by (Copy) 0.61/0.70 24] double*(X) >= times(s(s(_|_))) because double > times and [25], by (Copy) 0.61/0.70 25] double*(X) >= s(s(_|_)) because double > s and [26], by (Copy) 0.61/0.70 26] double*(X) >= s(_|_) because double > s and [27], by (Copy) 0.61/0.70 27] double*(X) >= _|_ by (Bot) 0.61/0.70 28] double*(X) >= X because [29], by (Select) 0.61/0.70 29] X >= X by (Meta) 0.61/0.70 0.61/0.70 30] map(F, _|_) >= _|_ by (Bot) 0.61/0.70 0.61/0.70 31] map(F, cons(X, Y)) > cons(@_{o -> o}(F, X), map(F, Y)) because [32], by definition 0.61/0.70 32] map*(F, cons(X, Y)) >= cons(@_{o -> o}(F, X), map(F, Y)) because map > cons, [33] and [38], by (Copy) 0.61/0.70 33] map*(F, cons(X, Y)) >= @_{o -> o}(F, X) because map = @_{o -> o}, map in Mul, [34] and [35], by (Stat) 0.61/0.70 34] F >= F by (Meta) 0.61/0.70 35] cons(X, Y) > X because [36], by definition 0.61/0.70 36] cons*(X, Y) >= X because [37], by (Select) 0.61/0.70 37] X >= X by (Meta) 0.61/0.70 38] map*(F, cons(X, Y)) >= map(F, Y) because map in Mul, [34] and [39], by (Stat) 0.61/0.70 39] cons(X, Y) > Y because [40], by definition 0.61/0.70 40] cons*(X, Y) >= Y because [41], by (Select) 0.61/0.70 41] Y >= Y by (Meta) 0.61/0.70 0.61/0.70 We can thus remove the following rules: 0.61/0.70 0.61/0.70 times(s(X)) Y => plus(times(X) Y) Y 0.61/0.70 map(F, cons(X, Y)) => cons(F X, map(F, Y)) 0.61/0.70 0.61/0.70 We use rule removal, following [Kop12, Theorem 2.23]. 0.61/0.70 0.61/0.70 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.61/0.70 0.61/0.70 times(0) X >? 0 0.61/0.70 inc(X) >? map(plus(s(0)), X) 0.61/0.70 double(X) >? map(times(s(s(0))), X) 0.61/0.70 map(F, nil) >? nil 0.61/0.70 0.61/0.70 We orient these requirements with a polynomial interpretation in the natural numbers. 0.61/0.70 0.61/0.70 The following interpretation satisfies the requirements: 0.61/0.70 0.61/0.70 0 = 0 0.61/0.70 double = \y0.3 + 3y0 0.61/0.70 inc = \y0.3 + 3y0 0.61/0.70 map = \G0y1.3y1 + 2G0(y1) 0.61/0.70 nil = 2 0.61/0.70 plus = \y0y1.y0 0.61/0.70 s = \y0.y0 0.61/0.70 times = \y0y1.2y0 0.61/0.70 0.61/0.70 Using this interpretation, the requirements translate to: 0.61/0.70 0.61/0.70 [[times(0) _x0]] = x0 >= 0 = [[0]] 0.61/0.70 [[inc(_x0)]] = 3 + 3x0 > 3x0 = [[map(plus(s(0)), _x0)]] 0.61/0.70 [[double(_x0)]] = 3 + 3x0 > 3x0 = [[map(times(s(s(0))), _x0)]] 0.61/0.70 [[map(_F0, nil)]] = 6 + 2F0(2) > 2 = [[nil]] 0.61/0.70 0.61/0.70 We can thus remove the following rules: 0.61/0.70 0.61/0.70 inc(X) => map(plus(s(0)), X) 0.61/0.70 double(X) => map(times(s(s(0))), X) 0.61/0.70 map(F, nil) => nil 0.61/0.70 0.61/0.70 We use rule removal, following [Kop12, Theorem 2.23]. 0.61/0.70 0.61/0.70 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.61/0.70 0.61/0.70 times(0, X) >? 0 0.61/0.70 0.61/0.70 We orient these requirements with a polynomial interpretation in the natural numbers. 0.61/0.70 0.61/0.70 The following interpretation satisfies the requirements: 0.61/0.70 0.61/0.70 0 = 0 0.61/0.70 times = \y0y1.3 + y1 + 3y0 0.61/0.70 0.61/0.70 Using this interpretation, the requirements translate to: 0.61/0.70 0.61/0.70 [[times(0, _x0)]] = 3 + x0 > 0 = [[0]] 0.61/0.70 0.61/0.70 We can thus remove the following rules: 0.61/0.70 0.61/0.70 times(0, X) => 0 0.61/0.70 0.61/0.70 All rules were succesfully removed. Thus, termination of the original system has been reduced to termination of the beta-rule, which is well-known to hold. 0.61/0.70 0.61/0.70 0.61/0.70 +++ Citations +++ 0.61/0.70 0.61/0.70 [Kop12] C. Kop. Higher Order Termination. PhD Thesis, 2012. 0.61/0.70 EOF