YES
0 QTRS
↳1 QTRSRRRProof (⇔, 77 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 0 ms)
↳4 QTRS
↳5 RisEmptyProof (⇔, 0 ms)
↳6 YES
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0) → 0
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0) → 0
dbl(s(X)) → s(s(dbl(X)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
first(0, X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
half(0) → 0
half(s(0)) → 0
half(s(s(X))) → s(half(X))
half(dbl(X)) → X
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X
[terms1, first2, activate1] > cons2 > nfirst2
[terms1, first2, activate1] > sqr1 > add2 > [s1, half1] > 0
[terms1, first2, activate1] > sqr1 > dbl1 > [s1, half1] > 0
[terms1, first2, activate1] > nil
terms1: multiset
cons2: multiset
sqr1: [1]
s1: multiset
0: multiset
add2: multiset
dbl1: multiset
first2: multiset
nil: multiset
nfirst2: multiset
activate1: multiset
half1: multiset
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0) → 0
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0) → 0
dbl(s(X)) → s(s(dbl(X)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
first(0, X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
half(0) → 0
half(s(0)) → 0
half(s(s(X))) → s(half(X))
half(dbl(X)) → X
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X
activate(n__terms(X)) → terms(X)
activate1 > terms1 > nterms1
activate_1=1
n__terms_1=1
terms_1=2
activate(n__terms(X)) → terms(X)