Certification Problem

Input (TPDB TRS_Standard/SK90/2.44)

The rewrite relation of the following TRS is considered.

del(.(x,.(y,z))) f(=(x,y),x,y,z) (1)
f(true,x,y,z) del(.(y,z)) (2)
f(false,x,y,z) .(x,del(.(y,z))) (3)
=(nil,nil) true (4)
=(.(x,y),nil) false (5)
=(nil,.(y,z)) false (6)
=(.(x,y),.(u,v)) and(=(x,u),=(y,v)) (7)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by ttt2 @ termCOMP 2023)

1 Rule Removal

Using the linear polynomial interpretation over (2 x 2)-matrices with strict dimension 1 over the naturals
[true] =
4 0
0 0
[v] =
1 0
0 0
[del(x1)] =
1 1
0 1
· x1 +
3 0
0 0
[f(x1,...,x4)] =
2 0
0 0
· x1 +
4 0
2 0
· x2 +
6 0
4 0
· x3 +
1 2
0 4
· x4 +
5 0
0 0
[false] =
5 0
0 0
[.(x1, x2)] =
4 0
2 0
· x1 +
1 0
0 2
· x2 +
5 0
0 0
[u] =
0 0
3 0
[and(x1, x2)] =
1 1
0 0
· x1 +
1 0
0 0
· x2 +
2 0
0 0
[nil] =
6 0
4 0
[=(x1, x2)] =
1 0
1 0
· x1 +
1 0
0 1
· x2 +
0 0
5 0
all of the following rules can be deleted.
del(.(x,.(y,z))) f(=(x,y),x,y,z) (1)
f(true,x,y,z) del(.(y,z)) (2)
f(false,x,y,z) .(x,del(.(y,z))) (3)
=(nil,nil) true (4)
=(.(x,y),nil) false (5)
=(nil,.(y,z)) false (6)

1.1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(and) = 0 weight(and) = 6
prec(v) = 7 weight(v) = 1
prec(u) = 3 weight(u) = 1
prec(=) = 1 weight(=) = 2
prec(.) = 2 weight(.) = 4
all of the following rules can be deleted.
=(.(x,y),.(u,v)) and(=(x,u),=(y,v)) (7)

1.1.1 R is empty

There are no rules in the TRS. Hence, it is terminating.