Certification Problem

Input (TPDB TRS_Relative/Relative_05/rtL-me2)

The relative rewrite relation R/S is considered where R is the following TRS

topB(i,N1,y) topA(1,T1,y) (1)
topA(i,x,N2) topB(0,x,T2) (2)
topB(i,S1,y) topA(i,N1,y) (3)
topA(i,x,S2) topB(i,x,N2) (4)
topA(i,N1,T2) topB(i,N1,S2) (5)
topA(1,T1,T2) topB(1,T1,S2) (6)

and S is the following TRS.

topB(i,N1,T2) topB(i,N1,S2) (7)
topA(i,S1,y) topA(i,N1,y) (8)
topB(1,T1,T2) topB(1,T1,S2) (9)
topB(i,x,S2) topB(i,x,N2) (10)
topB(i,x,N2) topB(0,x,T2) (11)
topA(i,N1,y) topA(1,T1,y) (12)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Rule Removal

Using the linear polynomial interpretation over the naturals
[topB(x1, x2, x3)] = 1 · x1 + 1 · x2 + 1 · x3
[N1] = 1
[topA(x1, x2, x3)] = 1 · x1 + 1 · x2 + 1 · x3
[1] = 0
[T1] = 0
[N2] = 0
[0] = 0
[T2] = 0
[S1] = 1
[S2] = 0
all of the following rules can be deleted.
topB(i,N1,y) topA(1,T1,y) (1)
topA(i,N1,y) topA(1,T1,y) (12)

1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[topA(x1, x2, x3)] = 1 · x1 + 1 · x2 + 1 · x3
[N2] = 0
[topB(x1, x2, x3)] = 1 · x1 + 1 · x2 + 1 · x3
[0] = 0
[T2] = 0
[S1] = 1
[N1] = 0
[S2] = 0
[1] = 0
[T1] = 0
all of the following rules can be deleted.
topB(i,S1,y) topA(i,N1,y) (3)
topA(i,S1,y) topA(i,N1,y) (8)

1.1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[topA(x1, x2, x3)] = 1 + 1 · x1 + 1 · x2 + 1 · x3
[N2] = 0
[topB(x1, x2, x3)] = 1 · x1 + 1 · x2 + 1 · x3
[0] = 0
[T2] = 0
[S2] = 0
[N1] = 0
[1] = 0
[T1] = 0
all of the following rules can be deleted.
topA(i,x,N2) topB(0,x,T2) (2)
topA(i,x,S2) topB(i,x,N2) (4)
topA(i,N1,T2) topB(i,N1,S2) (5)
topA(1,T1,T2) topB(1,T1,S2) (6)

1.1.1.1 R is empty

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