YES Termination proof of AG_#3.35_rand.trs

(0) Obligation:

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

g(s(x)) → f(x)
f(0) → s(0)
f(s(x)) → s(s(g(x)))
g(0) → 0

The relative TRS consists of the following S rules:

rand(x) → rand(s(x))
rand(x) → x

(1) RelTRS Reverse (SOUND transformation)

We have reversed the following relative TRS [REVERSE]:
The set of rules R is

g(s(x)) → f(x)
f(0) → s(0)
f(s(x)) → s(s(g(x)))
g(0) → 0

The set of rules S is

rand(x) → rand(s(x))
rand(x) → x

We have obtained the following relative TRS:
The set of rules R is

s(g(x)) → f(x)
0'(f(x)) → 0'(s(x))
s(f(x)) → g(s(s(x)))
0'(g(x)) → 0'(x)

The set of rules S is

rand(x) → s(rand(x))
rand(x) → x

(2) Obligation:

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

s(g(x)) → f(x)
0'(f(x)) → 0'(s(x))
s(f(x)) → g(s(s(x)))
0'(g(x)) → 0'(x)

The relative TRS consists of the following S rules:

rand(x) → s(rand(x))
rand(x) → x

(3) RelTRSRRRProof (EQUIVALENT transformation)

We used the following monotonic ordering for rule removal:
Polynomial interpretation [POLO]:

POL(0'(x1)) = x1   
POL(f(x1)) = 1 + x1   
POL(g(x1)) = 1 + x1   
POL(rand(x1)) = 1 + x1   
POL(s(x1)) = x1   
With this ordering the following rules can be removed [MATRO] because they are oriented strictly:
Rules from R:

0'(f(x)) → 0'(s(x))
0'(g(x)) → 0'(x)
Rules from S:

rand(x) → x


(4) Obligation:

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

s(g(x)) → f(x)
s(f(x)) → g(s(s(x)))

The relative TRS consists of the following S rules:

rand(x) → s(rand(x))

(5) RelTRSRRRProof (EQUIVALENT transformation)

We used the following monotonic ordering for rule removal:
Matrix interpretation [MATRO] to (N^2, +, *, >=, >) :

POL(s(x1)) =
/0\
\0/
+
/12\
\01/
·x1

POL(g(x1)) =
/0\
\2/
+
/10\
\01/
·x1

POL(f(x1)) =
/1\
\2/
+
/12\
\01/
·x1

POL(rand(x1)) =
/0\
\0/
+
/10\
\00/
·x1
With this ordering the following rules can be removed [MATRO] because they are oriented strictly:
Rules from R:

s(g(x)) → f(x)
s(f(x)) → g(s(s(x)))
Rules from S:
none


(6) Obligation:

Relative term rewrite system:
R is empty.
The relative TRS consists of the following S rules:

rand(x) → s(rand(x))

(7) RIsEmptyProof (EQUIVALENT transformation)

The TRS R is empty. Hence, termination is trivially proven.

(8) YES