0 QTRS
↳1 QTRSRRRProof (⇔, 86 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 0 ms)
↳4 QTRS
↳5 DependencyPairsProof (⇔, 0 ms)
↳6 QDP
↳7 DependencyGraphProof (⇔, 0 ms)
↳8 AND
↳9 QDP
↳10 QDPSizeChangeProof (⇔, 0 ms)
↳11 YES
↳12 QDP
↳13 NonLoopProof (⇔, 41 ms)
↳14 NO
↳15 QDP
↳16 NonLoopProof (⇔, 0 ms)
↳17 NO
nats → cons(0, n__incr(nats))
pairs → cons(0, n__incr(odds))
odds → incr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
head(cons(X, XS)) → X
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(0) = 0
POL(activate(x1)) = x1
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(head(x1)) = 2 + 2·x1
POL(incr(x1)) = x1
POL(n__incr(x1)) = x1
POL(nats) = 0
POL(odds) = 0
POL(pairs) = 0
POL(s(x1)) = x1
POL(tail(x1)) = 2·x1
head(cons(X, XS)) → X
nats → cons(0, n__incr(nats))
pairs → cons(0, n__incr(odds))
odds → incr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(0) = 0
POL(activate(x1)) = x1
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(incr(x1)) = 2·x1
POL(n__incr(x1)) = 2·x1
POL(nats) = 0
POL(odds) = 0
POL(pairs) = 0
POL(s(x1)) = 2·x1
POL(tail(x1)) = 2 + 2·x1
tail(cons(X, XS)) → activate(XS)
nats → cons(0, n__incr(nats))
pairs → cons(0, n__incr(odds))
odds → incr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X
NATS → NATS
PAIRS → ODDS
ODDS → INCR(pairs)
ODDS → PAIRS
INCR(cons(X, XS)) → ACTIVATE(XS)
ACTIVATE(n__incr(X)) → INCR(X)
nats → cons(0, n__incr(nats))
pairs → cons(0, n__incr(odds))
odds → incr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X
ACTIVATE(n__incr(X)) → INCR(X)
INCR(cons(X, XS)) → ACTIVATE(XS)
nats → cons(0, n__incr(nats))
pairs → cons(0, n__incr(odds))
odds → incr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X
From the DPs we obtained the following set of size-change graphs:
ODDS → PAIRS
PAIRS → ODDS
nats → cons(0, n__incr(nats))
pairs → cons(0, n__incr(odds))
odds → incr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X
NATS → NATS
nats → cons(0, n__incr(nats))
pairs → cons(0, n__incr(odds))
odds → incr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X