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