Certification Problem

Input (TPDB Runtime_Complexity_Innermost_Rewriting/Transformed_CSR_04/Ex4_7_15_Bor03_GM)

The rewrite relation of the following TRS is considered.

a__f(0) cons(0,f(s(0))) (1)
a__f(s(0)) a__f(a__p(s(0))) (2)
a__p(s(0)) 0 (3)
mark(f(X)) a__f(mark(X)) (4)
mark(p(X)) a__p(mark(X)) (5)
mark(0) 0 (6)
mark(cons(X1,X2)) cons(mark(X1),X2) (7)
mark(s(X)) s(mark(X)) (8)
a__f(X) f(X) (9)
a__p(X) p(X) (10)
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.