YES Termination proof of rt3-1.trs

(0) Obligation:

Relative term rewrite system:
The relative TRS consists of the following R rules:

f(g(x), y, z) → f(x, y, g(z))

The relative TRS consists of the following S rules:

f(x, y, z) → f(x, y, g(z))
f(x, a, z) → f(x, g(a), z)
f(x, y, g(z)) → f(x, g(y), z)

(1) RelTRStoRelADPProof (EQUIVALENT transformation)

We upgrade the RelTRS problem to an equivalent Relative ADP Problem [IJCAR24].

(2) Obligation:

Relative ADP Problem with
absolute ADPs:

f(g(x), y, z) → F(x, y, g(z))

and relative ADPs:

f(x, y, z) → F(x, y, g(z))
f(x, a, z) → F(x, g(a), z)
f(x, y, g(z)) → F(x, g(y), z)

(3) RelADPReductionPairProof (EQUIVALENT transformation)

We use the reduction pair processor [IJCAR24].
The following rules can be oriented strictly (l^# > ann(r))
and therefore we can remove all of its annotations in the right-hand side:
Relative ADPs:


f(x, a, z) → F(x, g(a), z)


The remaining rules can at least be oriented weakly:
Absolute ADPs:

f(g(x), y, z) → F(x, y, g(z))

Relative ADPs:

f(x, y, g(z)) → F(x, g(y), z)
f(x, y, z) → F(x, y, g(z))


Ordered with Polynomial interpretation [POLO]:

POL(F(x1, x2, x3)) = 2·x2   
POL(a) = 1   
POL(f(x1, x2, x3)) = 2·x2   
POL(g(x1)) = 0   

(4) Obligation:

Relative ADP Problem with
absolute ADPs:

f(g(x), y, z) → F(x, y, g(z))

and relative ADPs:

f(x, y, g(z)) → F(x, g(y), z)
f(x, y, z) → F(x, y, g(z))
f(x, a, z) → f(x, g(a), z)

(5) RelADPReductionPairProof (EQUIVALENT transformation)

We use the reduction pair processor [IJCAR24].
The following rules can be oriented strictly (l^# > ann(r))
and therefore we can remove all of its annotations in the right-hand side:
Absolute ADPs:


f(g(x), y, z) → F(x, y, g(z))

Relative ADPs:

f(x, a, z) → f(x, g(a), z)


The remaining rules can at least be oriented weakly:

Ordered with Polynomial interpretation [POLO]:

POL(F(x1, x2, x3)) = 2 + 3·x1   
POL(a) = 0   
POL(f(x1, x2, x3)) = 0   
POL(g(x1)) = 2 + x1   

(6) Obligation:

Relative ADP Problem with
No absolute ADPs, and relative ADPs:

f(x, y, g(z)) → F(x, g(y), z)
f(x, y, z) → F(x, y, g(z))
f(x, a, z) → f(x, g(a), z)
f(g(x), y, z) → f(x, y, g(z))

(7) DAbsisEmptyProof (EQUIVALENT transformation)

The RDT Problem has an empty P_abs. Hence, no infinite chain exists.

(8) YES