0 QTRS
↳1 QTRSRRRProof (⇔, 82 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 23 ms)
↳4 QTRS
↳5 QTRSRRRProof (⇔, 0 ms)
↳6 QTRS
↳7 QTRSRRRProof (⇔, 0 ms)
↳8 QTRS
↳9 QTRSRRRProof (⇔, 13 ms)
↳10 QTRS
↳11 DependencyPairsProof (⇔, 0 ms)
↳12 QDP
↳13 DependencyGraphProof (⇔, 0 ms)
↳14 AND
↳15 QDP
↳16 QDPSizeChangeProof (⇔, 0 ms)
↳17 YES
↳18 QDP
↳19 NonLoopProof (⇔, 133 ms)
↳20 NO
a__zeros → cons(0, zeros)
a__and(tt, X) → mark(X)
a__length(nil) → 0
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(nil) → nil
mark(s(X)) → s(mark(X))
a__zeros → zeros
a__and(X1, X2) → and(X1, X2)
a__length(X) → length(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__and(x1, x2)) = 1 + x1 + 2·x2
POL(a__length(x1)) = x1
POL(a__zeros) = 0
POL(and(x1, x2)) = 1 + x1 + 2·x2
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(length(x1)) = x1
POL(mark(x1)) = 2·x1
POL(nil) = 2
POL(s(x1)) = x1
POL(tt) = 2
POL(zeros) = 0
a__and(tt, X) → mark(X)
a__length(nil) → 0
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(tt) → tt
mark(nil) → nil
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__zeros → zeros
a__and(X1, X2) → and(X1, X2)
a__length(X) → length(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__and(x1, x2)) = 2 + 2·x1 + x2
POL(a__length(x1)) = 2 + 2·x1
POL(a__zeros) = 2
POL(and(x1, x2)) = 1 + x1 + x2
POL(cons(x1, x2)) = x1 + 2·x2
POL(length(x1)) = 1 + 2·x1
POL(mark(x1)) = 2·x1
POL(s(x1)) = x1
POL(zeros) = 1
a__zeros → zeros
a__and(X1, X2) → and(X1, X2)
a__length(X) → length(X)
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(length(X)) → a__length(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(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__length(x1)) = x1
POL(a__zeros) = 0
POL(cons(x1, x2)) = x1 + 2·x2
POL(length(x1)) = 1 + 2·x1
POL(mark(x1)) = x1
POL(s(x1)) = 2·x1
POL(zeros) = 0
mark(length(X)) → a__length(mark(X))
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(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__length(x1)) = 2·x1
POL(a__zeros) = 2
POL(cons(x1, x2)) = 2 + x1 + x2
POL(mark(x1)) = 2 + x1
POL(s(x1)) = x1
POL(zeros) = 0
mark(0) → 0
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(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__length(x1)) = 2·x1
POL(a__zeros) = 2
POL(cons(x1, x2)) = 2 + x1 + 2·x2
POL(mark(x1)) = 2 + 2·x1
POL(s(x1)) = x1
POL(zeros) = 0
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
A__LENGTH(cons(N, L)) → A__LENGTH(mark(L))
A__LENGTH(cons(N, L)) → MARK(L)
MARK(zeros) → A__ZEROS
MARK(s(X)) → MARK(X)
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
MARK(s(X)) → MARK(X)
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))
From the DPs we obtained the following set of size-change graphs:
A__LENGTH(cons(N, L)) → A__LENGTH(mark(L))
a__zeros → cons(0, zeros)
a__length(cons(N, L)) → s(a__length(mark(L)))
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))