Certification Problem

Input (TPDB Runtime_Complexity_Innermost_Rewriting/hoca/rev-dl)

The rewrite relation of the following TRS is considered.

walk#1(Nil) walk_xs (1)
walk#1(Cons(x4,x3)) comp_f_g(walk#1(x3),walk_xs_3(x4)) (2)
comp_f_g#1(comp_f_g(x7,x9),walk_xs_3(x8),x12) comp_f_g#1(x7,x9,Cons(x8,x12)) (3)
comp_f_g#1(walk_xs,walk_xs_3(x8),x12) Cons(x8,x12) (4)
main(Nil) Nil (5)
main(Cons(x4,x5)) comp_f_g#1(walk#1(x5),walk_xs_3(x4),Nil) (6)
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 2. This is shown by the following automaton.