YES
0 QTRS
↳1 QTRSRRRProof (⇔, 72 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 0 ms)
↳4 QTRS
↳5 RisEmptyProof (⇔, 0 ms)
↳6 YES
fib(N) → sel(N, fib1(s(0), s(0)))
fib1(X, Y) → cons(X, n__fib1(Y, n__add(X, Y)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
sel(0, cons(X, XS)) → X
sel(s(N), cons(X, XS)) → sel(N, activate(XS))
fib1(X1, X2) → n__fib1(X1, X2)
add(X1, X2) → n__add(X1, X2)
activate(n__fib1(X1, X2)) → fib1(activate(X1), activate(X2))
activate(n__add(X1, X2)) → add(activate(X1), activate(X2))
activate(X) → X
[fib1, 0] > sel2 > activate1 > fib12 > nfib12 > [s1, cons2]
[fib1, 0] > sel2 > activate1 > fib12 > [nadd2, add2] > [s1, cons2]
fib1: multiset
sel2: [1,2]
fib12: multiset
s1: multiset
0: multiset
cons2: multiset
nfib12: multiset
nadd2: [1,2]
add2: [1,2]
activate1: multiset
fib(N) → sel(N, fib1(s(0), s(0)))
fib1(X, Y) → cons(X, n__fib1(Y, n__add(X, Y)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
sel(0, cons(X, XS)) → X
sel(s(N), cons(X, XS)) → sel(N, activate(XS))
fib1(X1, X2) → n__fib1(X1, X2)
activate(n__fib1(X1, X2)) → fib1(activate(X1), activate(X2))
activate(n__add(X1, X2)) → add(activate(X1), activate(X2))
activate(X) → X
add(X1, X2) → n__add(X1, X2)
add2 > nadd2
add_2=0
n__add_2=0
add(X1, X2) → n__add(X1, X2)