YES
0 QTRS
↳1 QTRSRRRProof (⇔, 0 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 6 ms)
↳4 QTRS
↳5 QTRSRRRProof (⇔, 0 ms)
↳6 QTRS
↳7 QTRSRRRProof (⇔, 0 ms)
↳8 QTRS
↳9 QTRSRRRProof (⇔, 0 ms)
↳10 QTRS
↳11 QTRSRRRProof (⇔, 6 ms)
↳12 QTRS
↳13 QTRSRRRProof (⇔, 0 ms)
↳14 QTRS
↳15 AAECC Innermost (⇔, 0 ms)
↳16 QTRS
↳17 DependencyPairsProof (⇔, 0 ms)
↳18 QDP
↳19 DependencyGraphProof (⇔, 0 ms)
↳20 QDP
↳21 UsableRulesProof (⇔, 0 ms)
↳22 QDP
↳23 QReductionProof (⇔, 0 ms)
↳24 QDP
↳25 QDPSizeChangeProof (⇔, 0 ms)
↳26 YES
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
a__p(s(X)) → mark(X)
mark(f(X)) → a__f(mark(X))
mark(p(X)) → a__p(mark(X))
mark(0) → 0
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__f(X) → f(X)
a__p(X) → p(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(a__f(x1)) = 2 + 2·x1
POL(a__p(x1)) = x1
POL(cons(x1, x2)) = x1 + 2·x2
POL(f(x1)) = 1 + 2·x1
POL(mark(x1)) = 2·x1
POL(p(x1)) = x1
POL(s(x1)) = 2·x1
a__f(X) → f(X)
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
a__p(s(X)) → mark(X)
mark(f(X)) → a__f(mark(X))
mark(p(X)) → a__p(mark(X))
mark(0) → 0
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__p(X) → p(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(a__f(x1)) = 1 + x1
POL(a__p(x1)) = 2·x1
POL(cons(x1, x2)) = x1 + x2
POL(f(x1)) = 1 + x1
POL(mark(x1)) = 2·x1
POL(p(x1)) = 2·x1
POL(s(x1)) = 2·x1
mark(f(X)) → a__f(mark(X))
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
a__p(s(X)) → mark(X)
mark(p(X)) → a__p(mark(X))
mark(0) → 0
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__p(X) → p(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(a__f(x1)) = 2 + x1
POL(a__p(x1)) = x1
POL(cons(x1, x2)) = 2 + 2·x1 + x2
POL(f(x1)) = x1
POL(mark(x1)) = 2·x1
POL(p(x1)) = x1
POL(s(x1)) = 2·x1
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
a__p(s(X)) → mark(X)
mark(p(X)) → a__p(mark(X))
mark(0) → 0
mark(s(X)) → s(mark(X))
a__p(X) → p(X)
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(0) = 2
POL(a__f(x1)) = 2 + 2·x1
POL(a__p(x1)) = x1
POL(cons(x1, x2)) = x1 + x2
POL(f(x1)) = x1
POL(mark(x1)) = 2·x1
POL(p(x1)) = x1
POL(s(x1)) = 2·x1
mark(0) → 0
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
a__p(s(X)) → mark(X)
mark(p(X)) → a__p(mark(X))
mark(s(X)) → s(mark(X))
a__p(X) → p(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(a__f(x1)) = 2 + x1
POL(a__p(x1)) = x1
POL(cons(x1, x2)) = x1 + x2
POL(f(x1)) = 1 + x1
POL(mark(x1)) = x1
POL(p(x1)) = x1
POL(s(x1)) = 1 + 2·x1
a__p(s(X)) → mark(X)
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
mark(p(X)) → a__p(mark(X))
mark(s(X)) → s(mark(X))
a__p(X) → p(X)
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(0) = 2
POL(a__f(x1)) = 2 + 2·x1
POL(a__p(x1)) = x1
POL(cons(x1, x2)) = x1 + x2
POL(f(x1)) = x1
POL(mark(x1)) = 2 + 2·x1
POL(p(x1)) = x1
POL(s(x1)) = 2 + x1
mark(s(X)) → s(mark(X))
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
mark(p(X)) → a__p(mark(X))
a__p(X) → p(X)
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
POL(0) = 1
POL(a__f(x1)) = 2 + 2·x1
POL(a__p(x1)) = x1
POL(cons(x1, x2)) = x1 + x2
POL(f(x1)) = x1
POL(mark(x1)) = 2·x1
POL(p(x1)) = x1
POL(s(x1)) = 1 + x1
a__f(0) → cons(0, f(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
mark(p(X)) → a__p(mark(X))
a__p(X) → p(X)
mark(p(X)) → a__p(mark(X))
a__p(X) → p(X)
a__f(s(0)) → a__f(a__p(s(0)))
a__f(s(0)) → a__f(a__p(s(0)))
mark(p(X)) → a__p(mark(X))
a__p(X) → p(X)
a__f(s(0))
mark(p(x0))
a__p(x0)
A__F(s(0)) → A__F(a__p(s(0)))
A__F(s(0)) → A__P(s(0))
MARK(p(X)) → A__P(mark(X))
MARK(p(X)) → MARK(X)
a__f(s(0)) → a__f(a__p(s(0)))
mark(p(X)) → a__p(mark(X))
a__p(X) → p(X)
a__f(s(0))
mark(p(x0))
a__p(x0)
MARK(p(X)) → MARK(X)
a__f(s(0)) → a__f(a__p(s(0)))
mark(p(X)) → a__p(mark(X))
a__p(X) → p(X)
a__f(s(0))
mark(p(x0))
a__p(x0)
MARK(p(X)) → MARK(X)
a__f(s(0))
mark(p(x0))
a__p(x0)
a__f(s(0))
mark(p(x0))
a__p(x0)
MARK(p(X)) → MARK(X)
From the DPs we obtained the following set of size-change graphs: