0.00/0.08 YES 0.00/0.09 We consider the system theBenchmark. 0.00/0.09 0.00/0.09 Alphabet: 0.00/0.09 0.00/0.09 and : [c * c] --> c 0.00/0.09 cons : [a * b] --> b 0.00/0.09 false : [] --> c 0.00/0.09 forall : [a -> c * b] --> c 0.00/0.09 forsome : [a -> c * b] --> c 0.00/0.09 nil : [] --> b 0.00/0.09 or : [c * c] --> c 0.00/0.09 true : [] --> c 0.00/0.09 0.00/0.09 Rules: 0.00/0.09 0.00/0.09 and(true, true) => true 0.00/0.09 and(x, false) => false 0.00/0.09 and(false, x) => false 0.00/0.09 or(true, x) => true 0.00/0.09 or(x, true) => true 0.00/0.09 or(false, false) => false 0.00/0.09 forall(f, nil) => true 0.00/0.09 forall(f, cons(x, y)) => and(f x, forall(f, y)) 0.00/0.09 forsome(f, nil) => false 0.00/0.09 forsome(f, cons(x, y)) => or(f x, forsome(f, y)) 0.00/0.09 0.00/0.09 This AFS is converted to an AFSM simply by replacing all free variables by meta-variables (with arity 0). 0.00/0.09 0.00/0.09 We use rule removal, following [Kop12, Theorem 2.23]. 0.00/0.09 0.00/0.09 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.00/0.09 0.00/0.09 and(true, true) >? true 0.00/0.09 and(X, false) >? false 0.00/0.09 and(false, X) >? false 0.00/0.09 or(true, X) >? true 0.00/0.09 or(X, true) >? true 0.00/0.09 or(false, false) >? false 0.00/0.09 forall(F, nil) >? true 0.00/0.09 forall(F, cons(X, Y)) >? and(F X, forall(F, Y)) 0.00/0.09 forsome(F, nil) >? false 0.00/0.09 forsome(F, cons(X, Y)) >? or(F X, forsome(F, Y)) 0.00/0.09 0.00/0.09 We orient these requirements with a polynomial interpretation in the natural numbers. 0.00/0.09 0.00/0.09 The following interpretation satisfies the requirements: 0.00/0.09 0.00/0.09 and = \y0y1.1 + y0 + y1 0.00/0.09 cons = \y0y1.3 + 3y0 + 3y1 0.00/0.09 false = 0 0.00/0.09 forall = \G0y1.3y1 + 2G0(y1) + 3y1G0(y1) 0.00/0.09 forsome = \G0y1.3y1 + G0(0) + 3y1G0(y1) + 3G0(y1) 0.00/0.09 nil = 3 0.00/0.09 or = \y0y1.y1 + 2y0 0.00/0.09 true = 0 0.00/0.09 0.00/0.09 Using this interpretation, the requirements translate to: 0.00/0.09 0.00/0.09 [[and(true, true)]] = 1 > 0 = [[true]] 0.00/0.09 [[and(_x0, false)]] = 1 + x0 > 0 = [[false]] 0.00/0.09 [[and(false, _x0)]] = 1 + x0 > 0 = [[false]] 0.00/0.09 [[or(true, _x0)]] = x0 >= 0 = [[true]] 0.00/0.09 [[or(_x0, true)]] = 2x0 >= 0 = [[true]] 0.00/0.09 [[or(false, false)]] = 0 >= 0 = [[false]] 0.00/0.09 [[forall(_F0, nil)]] = 9 + 11F0(3) > 0 = [[true]] 0.00/0.09 [[forall(_F0, cons(_x1, _x2))]] = 9 + 9x1 + 9x2 + 9x1F0(3 + 3x1 + 3x2) + 9x2F0(3 + 3x1 + 3x2) + 11F0(3 + 3x1 + 3x2) > 1 + x1 + 3x2 + F0(x1) + 2F0(x2) + 3x2F0(x2) = [[and(_F0 _x1, forall(_F0, _x2))]] 0.00/0.09 [[forsome(_F0, nil)]] = 9 + F0(0) + 12F0(3) > 0 = [[false]] 0.00/0.09 [[forsome(_F0, cons(_x1, _x2))]] = 9 + 9x1 + 9x2 + F0(0) + 9x1F0(3 + 3x1 + 3x2) + 9x2F0(3 + 3x1 + 3x2) + 12F0(3 + 3x1 + 3x2) > 2x1 + 3x2 + F0(0) + 2F0(x1) + 3x2F0(x2) + 3F0(x2) = [[or(_F0 _x1, forsome(_F0, _x2))]] 0.00/0.09 0.00/0.09 We can thus remove the following rules: 0.00/0.09 0.00/0.09 and(true, true) => true 0.00/0.09 and(X, false) => false 0.00/0.09 and(false, X) => false 0.00/0.09 forall(F, nil) => true 0.00/0.09 forall(F, cons(X, Y)) => and(F X, forall(F, Y)) 0.00/0.09 forsome(F, nil) => false 0.00/0.09 forsome(F, cons(X, Y)) => or(F X, forsome(F, Y)) 0.00/0.09 0.00/0.09 We use rule removal, following [Kop12, Theorem 2.23]. 0.00/0.09 0.00/0.09 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.00/0.09 0.00/0.09 or(true, X) >? true 0.00/0.09 or(X, true) >? true 0.00/0.09 or(false, false) >? false 0.00/0.09 0.00/0.09 We orient these requirements with a polynomial interpretation in the natural numbers. 0.00/0.09 0.00/0.09 The following interpretation satisfies the requirements: 0.00/0.09 0.00/0.09 false = 0 0.00/0.09 or = \y0y1.3 + 3y0 + 3y1 0.00/0.09 true = 0 0.00/0.09 0.00/0.09 Using this interpretation, the requirements translate to: 0.00/0.09 0.00/0.09 [[or(true, _x0)]] = 3 + 3x0 > 0 = [[true]] 0.00/0.09 [[or(_x0, true)]] = 3 + 3x0 > 0 = [[true]] 0.00/0.09 [[or(false, false)]] = 3 > 0 = [[false]] 0.00/0.09 0.00/0.09 We can thus remove the following rules: 0.00/0.09 0.00/0.09 or(true, X) => true 0.00/0.09 or(X, true) => true 0.00/0.09 or(false, false) => false 0.00/0.09 0.00/0.09 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.00/0.09 0.00/0.09 0.00/0.09 +++ Citations +++ 0.00/0.09 0.00/0.09 [Kop12] C. Kop. Higher Order Termination. PhD Thesis, 2012. 0.00/0.09 EOF