Certification Problem

Input (TPDB TRS_Standard/AProVE_06/sizeChange)

The rewrite relation of the following TRS is considered.

r(xs,ys,zs,nil) xs (1)
r(xs,nil,zs,cons(w,ws)) r(xs,xs,cons(succ(zero),zs),ws) (2)
r(xs,cons(y,ys),nil,cons(w,ws)) r(xs,xs,cons(succ(zero),nil),ws) (3)
r(xs,cons(y,ys),cons(z,zs),cons(w,ws)) r(ys,cons(y,ys),zs,cons(succ(zero),cons(w,ws))) (4)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Switch to Innermost Termination

The TRS is overlay and locally confluent:

10

Hence, it suffices to show innermost termination in the following.

1.1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
r#(xs,nil,zs,cons(w,ws)) r#(xs,xs,cons(succ(zero),zs),ws) (5)
r#(xs,cons(y,ys),nil,cons(w,ws)) r#(xs,xs,cons(succ(zero),nil),ws) (6)
r#(xs,cons(y,ys),cons(z,zs),cons(w,ws)) r#(ys,cons(y,ys),zs,cons(succ(zero),cons(w,ws))) (7)

1.1.1 Usable Rules Processor

We restrict the rewrite rules to the following usable rules of the DP problem.

There are no rules.

1.1.1.1 Innermost Lhss Removal Processor

We restrict the innermost strategy to the following left hand sides.

There are no lhss.

1.1.1.1.1 Size-Change Termination

Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.

r#(xs,nil,zs,cons(w,ws)) r#(xs,xs,cons(succ(zero),zs),ws) (5)
1 1
1 2
4 > 4
r#(xs,cons(y,ys),cons(z,zs),cons(w,ws)) r#(ys,cons(y,ys),zs,cons(succ(zero),cons(w,ws))) (7)
2 > 1
2 2
3 > 3
r#(xs,cons(y,ys),nil,cons(w,ws)) r#(xs,xs,cons(succ(zero),nil),ws) (6)
1 1
1 2
4 > 4

As there is no critical graph in the transitive closure, there are no infinite chains.