YES(?,O(n^1)) 886.72/297.12 YES(?,O(n^1)) 886.72/297.12 886.72/297.12 We are left with following problem, upon which TcT provides the 886.72/297.12 certificate YES(?,O(n^1)). 886.72/297.12 886.72/297.12 Strict Trs: 886.72/297.12 { active(zeros()) -> mark(cons(0(), zeros())) 886.72/297.12 , active(cons(X1, X2)) -> cons(active(X1), X2) 886.72/297.12 , active(and(X1, X2)) -> and(active(X1), X2) 886.72/297.12 , active(and(tt(), X)) -> mark(X) 886.72/297.12 , active(length(X)) -> length(active(X)) 886.72/297.12 , active(length(cons(N, L))) -> mark(s(length(L))) 886.72/297.12 , active(length(nil())) -> mark(0()) 886.72/297.12 , active(s(X)) -> s(active(X)) 886.72/297.12 , cons(mark(X1), X2) -> mark(cons(X1, X2)) 886.72/297.12 , cons(ok(X1), ok(X2)) -> ok(cons(X1, X2)) 886.72/297.12 , and(mark(X1), X2) -> mark(and(X1, X2)) 886.72/297.12 , and(ok(X1), ok(X2)) -> ok(and(X1, X2)) 886.72/297.12 , length(mark(X)) -> mark(length(X)) 886.72/297.12 , length(ok(X)) -> ok(length(X)) 886.72/297.12 , s(mark(X)) -> mark(s(X)) 886.72/297.12 , s(ok(X)) -> ok(s(X)) 886.72/297.12 , proper(zeros()) -> ok(zeros()) 886.72/297.12 , proper(cons(X1, X2)) -> cons(proper(X1), proper(X2)) 886.72/297.12 , proper(0()) -> ok(0()) 886.72/297.12 , proper(and(X1, X2)) -> and(proper(X1), proper(X2)) 886.72/297.12 , proper(tt()) -> ok(tt()) 886.72/297.12 , proper(length(X)) -> length(proper(X)) 886.72/297.12 , proper(nil()) -> ok(nil()) 886.72/297.12 , proper(s(X)) -> s(proper(X)) 886.72/297.12 , top(mark(X)) -> top(proper(X)) 886.72/297.12 , top(ok(X)) -> top(active(X)) } 886.72/297.12 Obligation: 886.72/297.12 runtime complexity 886.72/297.12 Answer: 886.72/297.12 YES(?,O(n^1)) 886.72/297.12 886.72/297.12 The problem is match-bounded by 5. The enriched problem is 886.72/297.12 compatible with the following automaton. 886.72/297.12 { active_0(2) -> 1 886.72/297.12 , active_0(3) -> 1 886.72/297.12 , active_0(5) -> 1 886.72/297.12 , active_0(7) -> 1 886.72/297.12 , active_0(9) -> 1 886.72/297.12 , active_0(12) -> 1 886.72/297.12 , active_1(2) -> 21 886.72/297.12 , active_1(3) -> 21 886.72/297.12 , active_1(5) -> 21 886.72/297.12 , active_1(7) -> 21 886.72/297.12 , active_1(9) -> 21 886.72/297.12 , active_1(12) -> 21 886.72/297.12 , active_2(15) -> 22 886.72/297.12 , active_2(16) -> 22 886.72/297.12 , active_3(32) -> 28 886.72/297.12 , active_4(24) -> 34 886.72/297.12 , active_4(35) -> 36 886.72/297.12 , active_5(31) -> 37 886.72/297.12 , zeros_0() -> 2 886.72/297.12 , zeros_1() -> 16 886.72/297.12 , zeros_2() -> 25 886.72/297.12 , zeros_3() -> 33 886.72/297.12 , mark_0(2) -> 3 886.72/297.12 , mark_0(3) -> 3 886.72/297.12 , mark_0(5) -> 3 886.72/297.12 , mark_0(7) -> 3 886.72/297.12 , mark_0(9) -> 3 886.72/297.12 , mark_0(12) -> 3 886.72/297.12 , mark_1(14) -> 1 886.72/297.12 , mark_1(14) -> 21 886.72/297.12 , mark_1(17) -> 4 886.72/297.12 , mark_1(17) -> 17 886.72/297.12 , mark_1(18) -> 6 886.72/297.12 , mark_1(18) -> 18 886.72/297.12 , mark_1(19) -> 8 886.72/297.12 , mark_1(19) -> 19 886.72/297.12 , mark_1(20) -> 10 886.72/297.12 , mark_1(20) -> 20 886.72/297.12 , mark_2(23) -> 22 886.72/297.12 , cons_0(2, 2) -> 4 886.72/297.12 , cons_0(2, 3) -> 4 886.72/297.12 , cons_0(2, 5) -> 4 886.72/297.12 , cons_0(2, 7) -> 4 886.72/297.12 , cons_0(2, 9) -> 4 886.72/297.12 , cons_0(2, 12) -> 4 886.72/297.12 , cons_0(3, 2) -> 4 886.72/297.12 , cons_0(3, 3) -> 4 886.72/297.12 , cons_0(3, 5) -> 4 886.72/297.12 , cons_0(3, 7) -> 4 886.72/297.12 , cons_0(3, 9) -> 4 886.72/297.12 , cons_0(3, 12) -> 4 886.72/297.12 , cons_0(5, 2) -> 4 886.72/297.12 , cons_0(5, 3) -> 4 886.72/297.12 , cons_0(5, 5) -> 4 886.72/297.12 , cons_0(5, 7) -> 4 886.72/297.12 , cons_0(5, 9) -> 4 886.72/297.12 , cons_0(5, 12) -> 4 886.72/297.12 , cons_0(7, 2) -> 4 886.72/297.12 , cons_0(7, 3) -> 4 886.72/297.12 , cons_0(7, 5) -> 4 886.72/297.12 , cons_0(7, 7) -> 4 886.72/297.12 , cons_0(7, 9) -> 4 886.72/297.12 , cons_0(7, 12) -> 4 886.72/297.12 , cons_0(9, 2) -> 4 886.72/297.12 , cons_0(9, 3) -> 4 886.72/297.12 , cons_0(9, 5) -> 4 886.72/297.12 , cons_0(9, 7) -> 4 886.72/297.12 , cons_0(9, 9) -> 4 886.72/297.12 , cons_0(9, 12) -> 4 886.72/297.12 , cons_0(12, 2) -> 4 886.72/297.12 , cons_0(12, 3) -> 4 886.72/297.12 , cons_0(12, 5) -> 4 886.72/297.12 , cons_0(12, 7) -> 4 886.72/297.12 , cons_0(12, 9) -> 4 886.72/297.12 , cons_0(12, 12) -> 4 886.72/297.12 , cons_1(2, 2) -> 17 886.72/297.12 , cons_1(2, 3) -> 17 886.72/297.12 , cons_1(2, 5) -> 17 886.72/297.12 , cons_1(2, 7) -> 17 886.72/297.12 , cons_1(2, 9) -> 17 886.72/297.12 , cons_1(2, 12) -> 17 886.72/297.12 , cons_1(3, 2) -> 17 886.72/297.12 , cons_1(3, 3) -> 17 886.72/297.12 , cons_1(3, 5) -> 17 886.72/297.12 , cons_1(3, 7) -> 17 886.72/297.12 , cons_1(3, 9) -> 17 886.72/297.12 , cons_1(3, 12) -> 17 886.72/297.12 , cons_1(5, 2) -> 17 886.72/297.12 , cons_1(5, 3) -> 17 886.72/297.12 , cons_1(5, 5) -> 17 886.72/297.12 , cons_1(5, 7) -> 17 886.72/297.12 , cons_1(5, 9) -> 17 886.72/297.12 , cons_1(5, 12) -> 17 886.72/297.12 , cons_1(7, 2) -> 17 886.72/297.12 , cons_1(7, 3) -> 17 886.72/297.12 , cons_1(7, 5) -> 17 886.72/297.12 , cons_1(7, 7) -> 17 886.72/297.12 , cons_1(7, 9) -> 17 886.72/297.12 , cons_1(7, 12) -> 17 886.72/297.12 , cons_1(9, 2) -> 17 886.72/297.12 , cons_1(9, 3) -> 17 886.72/297.12 , cons_1(9, 5) -> 17 886.72/297.12 , cons_1(9, 7) -> 17 886.72/297.12 , cons_1(9, 9) -> 17 886.72/297.12 , cons_1(9, 12) -> 17 886.72/297.12 , cons_1(12, 2) -> 17 886.72/297.12 , cons_1(12, 3) -> 17 886.72/297.12 , cons_1(12, 5) -> 17 886.72/297.12 , cons_1(12, 7) -> 17 886.72/297.12 , cons_1(12, 9) -> 17 886.72/297.12 , cons_1(12, 12) -> 17 886.72/297.12 , cons_1(15, 16) -> 14 886.72/297.12 , cons_2(24, 25) -> 23 886.72/297.12 , cons_2(26, 27) -> 22 886.72/297.12 , cons_3(24, 25) -> 32 886.72/297.12 , cons_3(29, 30) -> 28 886.72/297.12 , cons_4(31, 33) -> 35 886.72/297.12 , cons_4(34, 25) -> 28 886.72/297.12 , cons_5(37, 33) -> 36 886.72/297.12 , 0_0() -> 5 886.72/297.12 , 0_1() -> 15 886.72/297.12 , 0_2() -> 24 886.72/297.12 , 0_3() -> 31 886.72/297.12 , and_0(2, 2) -> 6 886.72/297.12 , and_0(2, 3) -> 6 886.72/297.12 , and_0(2, 5) -> 6 886.72/297.12 , and_0(2, 7) -> 6 886.72/297.12 , and_0(2, 9) -> 6 886.72/297.12 , and_0(2, 12) -> 6 886.72/297.12 , and_0(3, 2) -> 6 886.72/297.12 , and_0(3, 3) -> 6 886.72/297.12 , and_0(3, 5) -> 6 886.72/297.12 , and_0(3, 7) -> 6 886.72/297.12 , and_0(3, 9) -> 6 886.72/297.12 , and_0(3, 12) -> 6 886.72/297.12 , and_0(5, 2) -> 6 886.72/297.12 , and_0(5, 3) -> 6 886.72/297.12 , and_0(5, 5) -> 6 886.72/297.12 , and_0(5, 7) -> 6 886.72/297.12 , and_0(5, 9) -> 6 886.72/297.12 , and_0(5, 12) -> 6 886.72/297.12 , and_0(7, 2) -> 6 886.72/297.12 , and_0(7, 3) -> 6 886.72/297.12 , and_0(7, 5) -> 6 886.72/297.12 , and_0(7, 7) -> 6 886.72/297.12 , and_0(7, 9) -> 6 886.72/297.12 , and_0(7, 12) -> 6 886.72/297.12 , and_0(9, 2) -> 6 886.72/297.12 , and_0(9, 3) -> 6 886.72/297.12 , and_0(9, 5) -> 6 886.72/297.12 , and_0(9, 7) -> 6 886.72/297.12 , and_0(9, 9) -> 6 886.72/297.12 , and_0(9, 12) -> 6 886.72/297.12 , and_0(12, 2) -> 6 886.72/297.12 , and_0(12, 3) -> 6 886.72/297.12 , and_0(12, 5) -> 6 886.72/297.12 , and_0(12, 7) -> 6 886.72/297.12 , and_0(12, 9) -> 6 886.72/297.12 , and_0(12, 12) -> 6 886.72/297.12 , and_1(2, 2) -> 18 886.72/297.12 , and_1(2, 3) -> 18 886.72/297.12 , and_1(2, 5) -> 18 886.72/297.12 , and_1(2, 7) -> 18 886.72/297.12 , and_1(2, 9) -> 18 886.72/297.12 , and_1(2, 12) -> 18 886.72/297.12 , and_1(3, 2) -> 18 886.72/297.12 , and_1(3, 3) -> 18 886.72/297.12 , and_1(3, 5) -> 18 886.72/297.12 , and_1(3, 7) -> 18 886.72/297.12 , and_1(3, 9) -> 18 886.72/297.12 , and_1(3, 12) -> 18 886.72/297.12 , and_1(5, 2) -> 18 886.72/297.12 , and_1(5, 3) -> 18 886.72/297.12 , and_1(5, 5) -> 18 886.72/297.12 , and_1(5, 7) -> 18 886.72/297.12 , and_1(5, 9) -> 18 886.72/297.12 , and_1(5, 12) -> 18 886.72/297.12 , and_1(7, 2) -> 18 886.72/297.12 , and_1(7, 3) -> 18 886.72/297.12 , and_1(7, 5) -> 18 886.72/297.12 , and_1(7, 7) -> 18 886.72/297.12 , and_1(7, 9) -> 18 886.72/297.12 , and_1(7, 12) -> 18 886.72/297.12 , and_1(9, 2) -> 18 886.72/297.12 , and_1(9, 3) -> 18 886.72/297.12 , and_1(9, 5) -> 18 886.72/297.12 , and_1(9, 7) -> 18 886.72/297.12 , and_1(9, 9) -> 18 886.72/297.12 , and_1(9, 12) -> 18 886.72/297.12 , and_1(12, 2) -> 18 886.72/297.12 , and_1(12, 3) -> 18 886.72/297.12 , and_1(12, 5) -> 18 886.72/297.12 , and_1(12, 7) -> 18 886.72/297.12 , and_1(12, 9) -> 18 886.72/297.12 , and_1(12, 12) -> 18 886.72/297.12 , tt_0() -> 7 886.72/297.12 , tt_1() -> 15 886.72/297.12 , tt_2() -> 24 886.72/297.12 , tt_3() -> 31 886.72/297.12 , length_0(2) -> 8 886.72/297.12 , length_0(3) -> 8 886.72/297.12 , length_0(5) -> 8 886.72/297.12 , length_0(7) -> 8 886.72/297.12 , length_0(9) -> 8 886.72/297.12 , length_0(12) -> 8 886.72/297.12 , length_1(2) -> 19 886.72/297.12 , length_1(3) -> 19 886.72/297.12 , length_1(5) -> 19 886.72/297.12 , length_1(7) -> 19 886.72/297.12 , length_1(9) -> 19 886.72/297.12 , length_1(12) -> 19 886.72/297.12 , nil_0() -> 9 886.72/297.12 , nil_1() -> 15 886.72/297.12 , nil_2() -> 24 886.72/297.12 , nil_3() -> 31 886.72/297.12 , s_0(2) -> 10 886.72/297.12 , s_0(3) -> 10 886.72/297.12 , s_0(5) -> 10 886.72/297.12 , s_0(7) -> 10 886.72/297.12 , s_0(9) -> 10 886.72/297.12 , s_0(12) -> 10 886.72/297.12 , s_1(2) -> 20 886.72/297.12 , s_1(3) -> 20 886.72/297.12 , s_1(5) -> 20 886.72/297.12 , s_1(7) -> 20 886.72/297.12 , s_1(9) -> 20 886.72/297.12 , s_1(12) -> 20 886.72/297.12 , proper_0(2) -> 11 886.72/297.12 , proper_0(3) -> 11 886.72/297.12 , proper_0(5) -> 11 886.72/297.12 , proper_0(7) -> 11 886.72/297.12 , proper_0(9) -> 11 886.72/297.12 , proper_0(12) -> 11 886.72/297.12 , proper_1(2) -> 21 886.72/297.12 , proper_1(3) -> 21 886.72/297.12 , proper_1(5) -> 21 886.72/297.12 , proper_1(7) -> 21 886.72/297.12 , proper_1(9) -> 21 886.72/297.12 , proper_1(12) -> 21 886.72/297.12 , proper_2(14) -> 22 886.72/297.12 , proper_2(15) -> 26 886.72/297.12 , proper_2(16) -> 27 886.72/297.12 , proper_3(23) -> 28 886.72/297.12 , proper_3(24) -> 29 886.72/297.12 , proper_3(25) -> 30 886.72/297.12 , ok_0(2) -> 12 886.72/297.12 , ok_0(3) -> 12 886.72/297.12 , ok_0(5) -> 12 886.72/297.12 , ok_0(7) -> 12 886.72/297.12 , ok_0(9) -> 12 886.72/297.12 , ok_0(12) -> 12 886.72/297.12 , ok_1(15) -> 11 886.72/297.12 , ok_1(15) -> 21 886.72/297.12 , ok_1(16) -> 11 886.72/297.12 , ok_1(16) -> 21 886.72/297.12 , ok_1(17) -> 4 886.72/297.12 , ok_1(17) -> 17 886.72/297.12 , ok_1(18) -> 6 886.72/297.12 , ok_1(18) -> 18 886.72/297.12 , ok_1(19) -> 8 886.72/297.12 , ok_1(19) -> 19 886.72/297.12 , ok_1(20) -> 10 886.72/297.12 , ok_1(20) -> 20 886.72/297.12 , ok_2(24) -> 26 886.72/297.12 , ok_2(25) -> 27 886.72/297.12 , ok_3(31) -> 29 886.72/297.12 , ok_3(32) -> 22 886.72/297.12 , ok_3(33) -> 30 886.72/297.12 , ok_4(35) -> 28 886.72/297.12 , top_0(2) -> 13 886.72/297.12 , top_0(3) -> 13 886.72/297.12 , top_0(5) -> 13 886.72/297.12 , top_0(7) -> 13 886.72/297.12 , top_0(9) -> 13 886.72/297.12 , top_0(12) -> 13 886.72/297.12 , top_1(21) -> 13 886.72/297.12 , top_2(22) -> 13 886.72/297.12 , top_3(28) -> 13 886.72/297.12 , top_4(36) -> 13 } 886.72/297.12 886.72/297.12 Hurray, we answered YES(?,O(n^1)) 886.86/297.20 EOF