Certification Problem

Input (TPDB Runtime_Complexity_Innermost_Rewriting/Frederiksen_Glenstrup/game)

The rewrite relation of the following TRS is considered.

@(Cons(x,xs),ys) Cons(x,@(xs,ys)) (1)
@(Nil,ys) ys (2)
game(p1,Cons(x',xs'),Cons(Capture,xs)) game(Cons(x',p1),xs',xs) (3)
game(p1,p2,Cons(Swap,xs)) game(p2,p1,xs) (4)
equal(Capture,Capture) True (5)
equal(Capture,Swap) False (6)
equal(Swap,Capture) False (7)
equal(Swap,Swap) True (8)
game(p1,p2,Nil) @(p1,p2) (9)
goal(p1,p2,moves) game(p1,p2,moves) (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 2. This is shown by the following automaton.