Certification Problem

Input (TPDB Runtime_Complexity_Innermost_Rewriting/Frederiksen_Glenstrup/deeprev_typed)

The rewrite relation of the following TRS is considered.

revconsapp(C(x1,x2),r) revconsapp(x2,C(x1,r)) (1)
deeprevapp(C(x1,x2),rest) deeprevapp(x2,C(x1,rest)) (2)
deeprevapp(V(n),rest) revconsapp(rest,V(n)) (3)
deeprevapp(N,rest) rest (4)
revconsapp(V(n),r) r (5)
revconsapp(N,r) r (6)
deeprev(C(x1,x2)) deeprevapp(C(x1,x2),N) (7)
deeprev(V(n)) V(n) (8)
deeprev(N) N (9)
second(V(n)) N (10)
second(C(x1,x2)) x2 (11)
isVal(C(x1,x2)) False (12)
isVal(V(n)) True (13)
isVal(N) False (14)
isNotEmptyT(C(x1,x2)) True (15)
isNotEmptyT(V(n)) False (16)
isNotEmptyT(N) False (17)
isEmptyT(C(x1,x2)) False (18)
isEmptyT(V(n)) False (19)
isEmptyT(N) True (20)
first(V(n)) N (21)
first(C(x1,x2)) x1 (22)
goal(x) deeprev(x) (23)
The evaluation strategy is innermost.

Property / Task

Determine bounds on the runtime complexity.

Answer / Result

An upperbound for the complexity is O(n).

Proof (by AProVE @ termCOMP 2023)

1 Bounds

The given TRS is match-(raise)-bounded by 3. This is shown by the following automaton.