zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
zeros: empty set
cons: {1}
0: empty set
U11: {1}
tt: empty set
U12: {1}
s: {1}
length: {1}
nil: empty set
↳ CSR
↳ CSRInnermostProof
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
zeros: empty set
cons: {1}
0: empty set
U11: {1}
tt: empty set
U12: {1}
s: {1}
length: {1}
nil: empty set
The CSR is orthogonal. By [10] we can switch to innermost.
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
zeros: empty set
cons: {1}
0: empty set
U11: {1}
tt: empty set
U12: {1}
s: {1}
length: {1}
nil: empty set
Innermost Strategy.
Using Improved CS-DPs we result in the following initial Q-CSDP problem.
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ QCSDP
↳ QCSDependencyGraphProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U111(tt, L) → U121(tt, L)
U121(tt, L) → LENGTH(L)
LENGTH(cons(N, L)) → U111(tt, L)
U121(tt, L) → L
zeros
U121(tt, L) → U(L)
U(zeros) → ZEROS
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
zeros
U11(tt, x0)
U12(tt, x0)
length(nil)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ QCSDP
↳ QCSDependencyGraphProof
↳ QCSDP
↳ ConvertedToQDPProblemProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U121(tt, L) → LENGTH(L)
LENGTH(cons(N, L)) → U111(tt, L)
U111(tt, L) → U121(tt, L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
zeros
U11(tt, x0)
U12(tt, x0)
length(nil)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ QCSDP
↳ QCSDependencyGraphProof
↳ QCSDP
↳ ConvertedToQDPProblemProof
↳ QDP
↳ RuleRemovalProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(cons(N, L)) → U111(tt, L)
U111(tt, L) → U121(tt, L)
U121(tt, L) → LENGTH(L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
length(nil) → 0
POL(0) = 0
POL(LENGTH(x1)) = x1
POL(U11(x1, x2)) = 2·x1 + 2·x2
POL(U111(x1, x2)) = 2·x1 + 2·x2
POL(U12(x1, x2)) = 2·x1 + 2·x2
POL(U121(x1, x2)) = x1 + 2·x2
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(length(x1)) = x1
POL(nil) = 1
POL(s(x1)) = 2·x1
POL(tt) = 0
POL(zeros) = 0
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ QCSDP
↳ QCSDependencyGraphProof
↳ QCSDP
↳ ConvertedToQDPProblemProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ NonTerminationProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(cons(N, L)) → U111(tt, L)
U121(tt, L) → LENGTH(L)
U111(tt, L) → U121(tt, L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
LENGTH(cons(N, L)) → U111(tt, L)
U121(tt, L) → LENGTH(L)
U111(tt, L) → U121(tt, L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(nil) → 0
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(nil) → 0
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
Used ordering:
length(nil) → 0
POL(0) = 0
POL(U11(x1, x2)) = x1 + 2·x2
POL(U12(x1, x2)) = x1 + 2·x2
POL(a(x1)) = x1
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(length(x1)) = x1
POL(nil) = 2
POL(s(x1)) = x1
POL(tt) = 0
POL(zeros) = 0
POL(zerosInact) = 0
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
A(zerosInact) → ZEROS
LENGTH(cons(N, L)) → A(L)
U121(tt, L) → A(L)
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → A(L)
U121(tt, L) → LENGTH(a(L))
U111(tt, L) → U121(tt, a(L))
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
A(zerosInact) → ZEROS
LENGTH(cons(N, L)) → A(L)
U121(tt, L) → A(L)
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → A(L)
U121(tt, L) → LENGTH(a(L))
U111(tt, L) → U121(tt, a(L))
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → U121(tt, a(L))
U121(tt, L) → LENGTH(a(L))
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, L) → LENGTH(a(L))
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
U121(tt, zerosInact) → LENGTH(zeros)
U121(tt, x0) → LENGTH(x0)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U121(tt, zerosInact) → LENGTH(zeros)
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, x0) → LENGTH(x0)
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
U121(tt, zerosInact) → LENGTH(zerosInact)
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
U121(tt, zerosInact) → LENGTH(zerosInact)
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → U121(tt, a(L))
U121(tt, x0) → LENGTH(x0)
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ NonTerminationProof
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, x0) → LENGTH(x0)
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, x0) → LENGTH(x0)
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
Used ordering:
active(length(nil)) → mark(0)
POL(0) = 0
POL(U11(x1, x2)) = 2·x1 + 2·x2
POL(U12(x1, x2)) = x1 + 2·x2
POL(active(x1)) = x1
POL(cons(x1, x2)) = 2·x1 + x2
POL(length(x1)) = 2·x1
POL(mark(x1)) = x1
POL(nil) = 2
POL(s(x1)) = x1
POL(tt) = 0
POL(zeros) = 0
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
CONS(mark(x1), x2) → CONS(x1, x2)
ACTIVE(U11(tt, L)) → U121(tt, L)
MARK(tt) → ACTIVE(tt)
MARK(U11(x1, x2)) → MARK(x1)
MARK(s(x1)) → MARK(x1)
MARK(cons(x1, x2)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(U11(x1, x2)) → U111(mark(x1), x2)
ACTIVE(U12(tt, L)) → S(length(L))
MARK(length(x1)) → MARK(x1)
MARK(U12(x1, x2)) → U121(mark(x1), x2)
MARK(s(x1)) → ACTIVE(s(mark(x1)))
ACTIVE(zeros) → CONS(0, zeros)
LENGTH(mark(x1)) → LENGTH(x1)
U121(active(x1), x2) → U121(x1, x2)
LENGTH(active(x1)) → LENGTH(x1)
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
U111(active(x1), x2) → U111(x1, x2)
S(mark(x1)) → S(x1)
S(active(x1)) → S(x1)
MARK(s(x1)) → S(mark(x1))
MARK(U12(x1, x2)) → MARK(x1)
MARK(cons(x1, x2)) → CONS(mark(x1), x2)
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(length(cons(N, L))) → U111(tt, L)
MARK(length(x1)) → LENGTH(mark(x1))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(0) → ACTIVE(0)
U121(mark(x1), x2) → U121(x1, x2)
CONS(active(x1), x2) → CONS(x1, x2)
U111(mark(x1), x2) → U111(x1, x2)
MARK(nil) → ACTIVE(nil)
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → LENGTH(L)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
CONS(mark(x1), x2) → CONS(x1, x2)
ACTIVE(U11(tt, L)) → U121(tt, L)
MARK(tt) → ACTIVE(tt)
MARK(U11(x1, x2)) → MARK(x1)
MARK(s(x1)) → MARK(x1)
MARK(cons(x1, x2)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(U11(x1, x2)) → U111(mark(x1), x2)
ACTIVE(U12(tt, L)) → S(length(L))
MARK(length(x1)) → MARK(x1)
MARK(U12(x1, x2)) → U121(mark(x1), x2)
MARK(s(x1)) → ACTIVE(s(mark(x1)))
ACTIVE(zeros) → CONS(0, zeros)
LENGTH(mark(x1)) → LENGTH(x1)
U121(active(x1), x2) → U121(x1, x2)
LENGTH(active(x1)) → LENGTH(x1)
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
U111(active(x1), x2) → U111(x1, x2)
S(mark(x1)) → S(x1)
S(active(x1)) → S(x1)
MARK(s(x1)) → S(mark(x1))
MARK(U12(x1, x2)) → MARK(x1)
MARK(cons(x1, x2)) → CONS(mark(x1), x2)
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(length(cons(N, L))) → U111(tt, L)
MARK(length(x1)) → LENGTH(mark(x1))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(0) → ACTIVE(0)
U121(mark(x1), x2) → U121(x1, x2)
CONS(active(x1), x2) → CONS(x1, x2)
U111(mark(x1), x2) → U111(x1, x2)
MARK(nil) → ACTIVE(nil)
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → LENGTH(L)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(mark(x1)) → LENGTH(x1)
LENGTH(active(x1)) → LENGTH(x1)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(mark(x1)) → LENGTH(x1)
LENGTH(active(x1)) → LENGTH(x1)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
cons(active(x0), x1)
cons(mark(x0), x1)
U11(active(x0), x1)
U11(mark(x0), x1)
U12(active(x0), x1)
U12(mark(x0), x1)
s(active(x0))
s(mark(x0))
length(active(x0))
length(mark(x0))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(mark(x1)) → LENGTH(x1)
LENGTH(active(x1)) → LENGTH(x1)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
mark(0)
mark(U11(x0, x1))
mark(tt)
mark(U12(x0, x1))
mark(s(x0))
mark(length(x0))
mark(nil)
From the DPs we obtained the following set of size-change graphs:
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
S(active(x1)) → S(x1)
S(mark(x1)) → S(x1)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
S(active(x1)) → S(x1)
S(mark(x1)) → S(x1)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
cons(active(x0), x1)
cons(mark(x0), x1)
U11(active(x0), x1)
U11(mark(x0), x1)
U12(active(x0), x1)
U12(mark(x0), x1)
s(active(x0))
s(mark(x0))
length(active(x0))
length(mark(x0))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
S(mark(x1)) → S(x1)
S(active(x1)) → S(x1)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
mark(0)
mark(U11(x0, x1))
mark(tt)
mark(U12(x0, x1))
mark(s(x0))
mark(length(x0))
mark(nil)
From the DPs we obtained the following set of size-change graphs:
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U121(mark(x1), x2) → U121(x1, x2)
U121(active(x1), x2) → U121(x1, x2)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U121(mark(x1), x2) → U121(x1, x2)
U121(active(x1), x2) → U121(x1, x2)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
cons(active(x0), x1)
cons(mark(x0), x1)
U11(active(x0), x1)
U11(mark(x0), x1)
U12(active(x0), x1)
U12(mark(x0), x1)
s(active(x0))
s(mark(x0))
length(active(x0))
length(mark(x0))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U121(mark(x1), x2) → U121(x1, x2)
U121(active(x1), x2) → U121(x1, x2)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
mark(0)
mark(U11(x0, x1))
mark(tt)
mark(U12(x0, x1))
mark(s(x0))
mark(length(x0))
mark(nil)
From the DPs we obtained the following set of size-change graphs:
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U111(active(x1), x2) → U111(x1, x2)
U111(mark(x1), x2) → U111(x1, x2)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U111(active(x1), x2) → U111(x1, x2)
U111(mark(x1), x2) → U111(x1, x2)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
cons(active(x0), x1)
cons(mark(x0), x1)
U11(active(x0), x1)
U11(mark(x0), x1)
U12(active(x0), x1)
U12(mark(x0), x1)
s(active(x0))
s(mark(x0))
length(active(x0))
length(mark(x0))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
U111(active(x1), x2) → U111(x1, x2)
U111(mark(x1), x2) → U111(x1, x2)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
mark(0)
mark(U11(x0, x1))
mark(tt)
mark(U12(x0, x1))
mark(s(x0))
mark(length(x0))
mark(nil)
From the DPs we obtained the following set of size-change graphs:
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
CONS(mark(x1), x2) → CONS(x1, x2)
CONS(active(x1), x2) → CONS(x1, x2)
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
CONS(mark(x1), x2) → CONS(x1, x2)
CONS(active(x1), x2) → CONS(x1, x2)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
cons(active(x0), x1)
cons(mark(x0), x1)
U11(active(x0), x1)
U11(mark(x0), x1)
U12(active(x0), x1)
U12(mark(x0), x1)
s(active(x0))
s(mark(x0))
length(active(x0))
length(mark(x0))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
CONS(mark(x1), x2) → CONS(x1, x2)
CONS(active(x1), x2) → CONS(x1, x2)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
mark(0)
mark(U11(x0, x1))
mark(tt)
mark(U12(x0, x1))
mark(s(x0))
mark(length(x0))
mark(nil)
From the DPs we obtained the following set of size-change graphs:
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ RuleRemovalProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
MARK(U12(x1, x2)) → MARK(x1)
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(U11(x1, x2)) → MARK(x1)
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
MARK(s(x1)) → MARK(x1)
MARK(cons(x1, x2)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
MARK(length(x1)) → MARK(x1)
MARK(s(x1)) → ACTIVE(s(mark(x1)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
MARK(U12(x1, x2)) → MARK(x1)
MARK(U11(x1, x2)) → MARK(x1)
MARK(length(x1)) → MARK(x1)
POL(0) = 0
POL(ACTIVE(x1)) = 2·x1
POL(MARK(x1)) = 2·x1
POL(U11(x1, x2)) = 1 + 2·x1 + x2
POL(U12(x1, x2)) = 1 + x1 + x2
POL(active(x1)) = x1
POL(cons(x1, x2)) = 2·x1 + x2
POL(length(x1)) = 1 + x1
POL(mark(x1)) = x1
POL(nil) = 0
POL(s(x1)) = x1
POL(tt) = 0
POL(zeros) = 0
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPOrderProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(zeros) → ACTIVE(zeros)
MARK(s(x1)) → ACTIVE(s(mark(x1)))
MARK(s(x1)) → MARK(x1)
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(cons(x1, x2)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(zeros) → ACTIVE(zeros)
Used ordering: Polynomial interpretation with max and min functions [25]:
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(s(x1)) → ACTIVE(s(mark(x1)))
MARK(s(x1)) → MARK(x1)
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(cons(x1, x2)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
POL(0) = 0
POL(ACTIVE(x1)) = 0
POL(MARK(x1)) = x1
POL(U11(x1, x2)) = 0
POL(U12(x1, x2)) = 0
POL(active(x1)) = x1
POL(cons(x1, x2)) = x1
POL(length(x1)) = 0
POL(mark(x1)) = x1
POL(nil) = 0
POL(s(x1)) = x1
POL(tt) = 0
POL(zeros) = 1
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
s(mark(x1)) → s(x1)
s(active(x1)) → s(x1)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
MARK(s(x1)) → MARK(x1)
MARK(s(x1)) → ACTIVE(s(mark(x1)))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(cons(x1, x2)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
MARK(s(x1)) → MARK(x1)
MARK(s(x1)) → ACTIVE(s(mark(x1)))
MARK(cons(x1, x2)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(cons(x1, x2)) → ACTIVE(cons(mark(x1), x2))
MARK(cons(x1, x2)) → MARK(x1)
Used ordering: Polynomial interpretation with max and min functions [25]:
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(s(x1)) → MARK(x1)
MARK(s(x1)) → ACTIVE(s(mark(x1)))
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
POL(0) = 0
POL(ACTIVE(x1)) = 0
POL(MARK(x1)) = x1
POL(U11(x1, x2)) = 0
POL(U12(x1, x2)) = x1
POL(active(x1)) = x1
POL(cons(x1, x2)) = 1 + x1
POL(length(x1)) = 0
POL(mark(x1)) = x1
POL(nil) = 0
POL(s(x1)) = x1
POL(tt) = 0
POL(zeros) = 0
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
s(mark(x1)) → s(x1)
s(active(x1)) → s(x1)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDPOrderProof
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(s(x1)) → ACTIVE(s(mark(x1)))
MARK(s(x1)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(s(x1)) → ACTIVE(s(mark(x1)))
Used ordering: Polynomial interpretation with max and min functions [25]:
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(s(x1)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
POL(0) = 0
POL(ACTIVE(x1)) = x1
POL(MARK(x1)) = 1
POL(U11(x1, x2)) = 1
POL(U12(x1, x2)) = 1
POL(active(x1)) = 0
POL(cons(x1, x2)) = 0
POL(length(x1)) = 1
POL(mark(x1)) = 0
POL(nil) = 0
POL(s(x1)) = 0
POL(tt) = 0
POL(zeros) = 0
U11(mark(x1), x2) → U11(x1, x2)
U11(active(x1), x2) → U11(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
U12(active(x1), x2) → U12(x1, x2)
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
s(mark(x1)) → s(x1)
s(active(x1)) → s(x1)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
MARK(U11(x1, x2)) → ACTIVE(U11(mark(x1), x2))
ACTIVE(length(cons(N, L))) → MARK(U11(tt, L))
MARK(s(x1)) → MARK(x1)
MARK(U12(x1, x2)) → ACTIVE(U12(mark(x1), x2))
MARK(length(x1)) → ACTIVE(length(mark(x1)))
ACTIVE(U11(tt, L)) → MARK(U12(tt, L))
ACTIVE(U12(tt, L)) → MARK(s(length(L)))
active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(U12(tt, L))
active(U12(tt, L)) → mark(s(length(L)))
active(length(cons(N, L))) → mark(U11(tt, L))
mark(zeros) → active(zeros)
mark(cons(x1, x2)) → active(cons(mark(x1), x2))
cons(active(x1), x2) → cons(x1, x2)
cons(mark(x1), x2) → cons(x1, x2)
mark(0) → active(0)
mark(U11(x1, x2)) → active(U11(mark(x1), x2))
U11(active(x1), x2) → U11(x1, x2)
U11(mark(x1), x2) → U11(x1, x2)
mark(tt) → active(tt)
mark(U12(x1, x2)) → active(U12(mark(x1), x2))
U12(active(x1), x2) → U12(x1, x2)
U12(mark(x1), x2) → U12(x1, x2)
mark(s(x1)) → active(s(mark(x1)))
s(active(x1)) → s(x1)
s(mark(x1)) → s(x1)
mark(length(x1)) → active(length(mark(x1)))
length(active(x1)) → length(x1)
length(mark(x1)) → length(x1)
mark(nil) → active(nil)
active(zeros)
active(U11(tt, x0))
active(U12(tt, x0))
active(length(nil))
active(length(cons(x0, x1)))
mark(zeros)
mark(cons(x0, x1))
cons(active(x0), x1)
cons(mark(x0), x1)
mark(0)
mark(U11(x0, x1))
U11(active(x0), x1)
U11(mark(x0), x1)
mark(tt)
mark(U12(x0, x1))
U12(active(x0), x1)
U12(mark(x0), x1)
mark(s(x0))
s(active(x0))
s(mark(x0))
mark(length(x0))
length(active(x0))
length(mark(x0))
mark(nil)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ Improved Ferreira Ribeiro-Transformation
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(nil) → 0
length(cons(N, L)) → U11(tt, L)
Used ordering:
length(nil) → 0
POL(0) = 0
POL(U11(x1, x2)) = 2 + 2·x1 + 2·x2
POL(U12(x1, x2)) = 2 + x1 + x2
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(length(x1)) = 2 + x1
POL(nil) = 1
POL(s(x1)) = x1
POL(tt) = 0
POL(zeros) = 0
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ Improved Ferreira Ribeiro-Transformation
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ Improved Ferreira Ribeiro-Transformation
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
ZEROS → ZEROS
LENGTH(cons(N, L)) → U111(tt, L)
U121(tt, L) → LENGTH(L)
U111(tt, L) → U121(tt, L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ Improved Ferreira Ribeiro-Transformation
ZEROS → ZEROS
LENGTH(cons(N, L)) → U111(tt, L)
U121(tt, L) → LENGTH(L)
U111(tt, L) → U121(tt, L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(cons(N, L)) → U111(tt, L)
U111(tt, L) → U121(tt, L)
U121(tt, L) → LENGTH(L)
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(cons(N, L)) → U111(tt, L)
U111(tt, L) → U121(tt, L)
U121(tt, L) → LENGTH(L)
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ Improved Ferreira Ribeiro-Transformation
LENGTH(cons(N, L)) → U111(tt, L)
U121(tt, L) → LENGTH(L)
U111(tt, L) → U121(tt, L)
From the DPs we obtained the following set of size-change graphs:
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ Improved Ferreira Ribeiro-Transformation
ZEROS → ZEROS
zeros → cons(0, zeros)
U11(tt, L) → U12(tt, L)
U12(tt, L) → s(length(L))
length(cons(N, L)) → U11(tt, L)
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ Improved Ferreira Ribeiro-Transformation
ZEROS → ZEROS
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
zeros
U11(tt, x0)
U12(tt, x0)
length(cons(x0, x1))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonTerminationProof
↳ Improved Ferreira Ribeiro-Transformation
ZEROS → ZEROS
ZEROS → ZEROS
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(nil) → 0
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(nil) → 0
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
Used ordering:
length(nil) → 0
POL(0) = 0
POL(U11(x1, x2)) = x1 + 2·x2
POL(U12(x1, x2)) = x1 + 2·x2
POL(a(x1)) = x1
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(length(x1)) = x1
POL(nil) = 2
POL(s(x1)) = x1
POL(tt) = 0
POL(zeros) = 0
POL(zerosInact) = 0
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
A(zerosInact) → ZEROS
LENGTH(cons(N, L)) → A(L)
U121(tt, L) → A(L)
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → A(L)
U121(tt, L) → LENGTH(a(L))
U111(tt, L) → U121(tt, a(L))
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
A(zerosInact) → ZEROS
LENGTH(cons(N, L)) → A(L)
U121(tt, L) → A(L)
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → A(L)
U121(tt, L) → LENGTH(a(L))
U111(tt, L) → U121(tt, a(L))
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → U121(tt, a(L))
U121(tt, L) → LENGTH(a(L))
zeros → cons(0, zerosInact)
U11(tt, L) → U12(tt, a(L))
U12(tt, L) → s(length(a(L)))
length(cons(N, L)) → U11(tt, a(L))
a(x) → x
zeros → zerosInact
a(zerosInact) → zeros
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, L) → LENGTH(a(L))
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
U121(tt, zerosInact) → LENGTH(zeros)
U121(tt, x0) → LENGTH(x0)
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
U121(tt, zerosInact) → LENGTH(zeros)
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, x0) → LENGTH(x0)
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
U121(tt, zerosInact) → LENGTH(zerosInact)
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
U121(tt, zerosInact) → LENGTH(zerosInact)
LENGTH(cons(N, L)) → U111(tt, a(L))
U111(tt, L) → U121(tt, a(L))
U121(tt, x0) → LENGTH(x0)
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
↳ CSR
↳ CSRInnermostProof
↳ CSR
↳ CSDependencyPairsProof
↳ Zantema-Transformation
↳ Innermost Giesl Middeldorp-Transformation
↳ Trivial-Transformation
↳ Improved Ferreira Ribeiro-Transformation
↳ QTRS
↳ RRRPoloQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ NonTerminationProof
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, x0) → LENGTH(x0)
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact
U121(tt, zerosInact) → LENGTH(cons(0, zerosInact))
LENGTH(cons(N, L)) → U111(tt, a(L))
U121(tt, x0) → LENGTH(x0)
U111(tt, L) → U121(tt, a(L))
a(x) → x
a(zerosInact) → zeros
zeros → cons(0, zerosInact)
zeros → zerosInact