(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

half(0) → 0
half(s(s(x))) → s(half(x))
log(s(0)) → 0
log(s(s(x))) → s(log(s(half(x))))

Q is empty.

(1) DirectTerminationProof (EQUIVALENT transformation)

We use [DIRECT_TERMINATION] with the following order to prove termination.

Knuth-Bendix order [KBO] with precedence:
half1 > log1 > s1 > 0

and weight map:

0=1
half_1=0
s_1=1
log_1=2

The variable weight is 1

(2) TRUE