The rewrite relation of the following TRS is considered.
The dependency pairs are split into 3
components.
-
The
1st
component contains the
pair
if#(true,s(X),s(Y)) |
→ |
gcd#(minus(X,Y),s(Y)) |
(18) |
gcd#(s(X),s(Y)) |
→ |
if#(le(Y,X),s(X),s(Y)) |
(16) |
if#(false,s(X),s(Y)) |
→ |
gcd#(minus(Y,X),s(X)) |
(20) |
1.1.1 Subterm Criterion Processor
We use the projection to multisets
π(if#)
|
= |
{
2, 2, 3
}
|
π(gcd#)
|
= |
{
1, 1, 1, 2
}
|
π(pred)
|
= |
{
1
}
|
π(minus)
|
= |
{
1, 1, 1
}
|
to remove the pairs:
if#(true,s(X),s(Y)) |
→ |
gcd#(minus(X,Y),s(Y)) |
(18) |
gcd#(s(X),s(Y)) |
→ |
if#(le(Y,X),s(X),s(Y)) |
(16) |
if#(false,s(X),s(Y)) |
→ |
gcd#(minus(Y,X),s(X)) |
(20) |
1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
minus#(X,s(Y)) |
→ |
minus#(X,Y) |
(12) |
1.1.2 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
minus#(X,s(Y)) |
→ |
minus#(X,Y) |
(12) |
|
2 |
> |
2 |
1 |
≥ |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
le#(s(X),s(Y)) |
→ |
le#(X,Y) |
(14) |
1.1.3 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
le#(s(X),s(Y)) |
→ |
le#(X,Y) |
(14) |
|
2 |
> |
2 |
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.