(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(nil) → 0
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(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(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.

(1) QTRSRRRProof (EQUIVALENT transformation)

Used ordering:
Polynomial interpretation [POLO]:

POL(0) = 0   
POL(U11(x1, x2)) = x1 + 2·x2   
POL(U12(x1, x2)) = x1 + 2·x2   
POL(a__U11(x1, x2)) = x1 + 2·x2   
POL(a__U12(x1, x2)) = x1 + 2·x2   
POL(a__length(x1)) = 2·x1   
POL(a__zeros) = 0   
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   
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:

a__length(nil) → 0


(2) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(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(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.

(3) QTRSRRRProof (EQUIVALENT transformation)

Used ordering:
Polynomial interpretation [POLO]:

POL(0) = 0   
POL(U11(x1, x2)) = 1 + x1 + 2·x2   
POL(U12(x1, x2)) = 1 + 2·x1 + x2   
POL(a__U11(x1, x2)) = 1 + x1 + 2·x2   
POL(a__U12(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__length(x1)) = 1 + x1   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = x1 + 2·x2   
POL(length(x1)) = 1 + x1   
POL(mark(x1)) = 2·x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:

mark(U11(X1, X2)) → a__U11(mark(X1), X2)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(length(X)) → a__length(mark(X))


(4) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros
a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)

Q is empty.

(5) QTRSRRRProof (EQUIVALENT transformation)

Used ordering:
Polynomial interpretation [POLO]:

POL(0) = 0   
POL(U11(x1, x2)) = x1 + x2   
POL(U12(x1, x2)) = x1 + 2·x2   
POL(a__U11(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__U12(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__length(x1)) = 1 + 2·x1   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = 2·x1 + x2   
POL(length(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:

a__U11(X1, X2) → U11(X1, X2)
a__U12(X1, X2) → U12(X1, X2)
a__length(X) → length(X)


(6) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeroszeros

Q is empty.

(7) QTRSRRRProof (EQUIVALENT transformation)

Used ordering:
Polynomial interpretation [POLO]:

POL(0) = 0   
POL(a__U11(x1, x2)) = x1 + 2·x2   
POL(a__U12(x1, x2)) = 2·x1 + 2·x2   
POL(a__length(x1)) = x1   
POL(a__zeros) = 0   
POL(cons(x1, x2)) = 2·x1 + 2·x2   
POL(mark(x1)) = 2·x1   
POL(nil) = 1   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:

mark(nil) → nil


(8) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
a__zeroszeros

Q is empty.

(9) QTRSRRRProof (EQUIVALENT transformation)

Used ordering:
Polynomial interpretation [POLO]:

POL(0) = 0   
POL(a__U11(x1, x2)) = x1 + 2·x2   
POL(a__U12(x1, x2)) = 2·x1 + 2·x2   
POL(a__length(x1)) = x1   
POL(a__zeros) = 2   
POL(cons(x1, x2)) = x1 + 2·x2   
POL(mark(x1)) = 2·x1   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 1   
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:

a__zeroszeros


(10) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))

Q is empty.

(11) QTRSRRRProof (EQUIVALENT transformation)

Used ordering:
Polynomial interpretation [POLO]:

POL(0) = 0   
POL(a__U11(x1, x2)) = 1 + x1 + 2·x2   
POL(a__U12(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(a__length(x1)) = x1   
POL(a__zeros) = 1   
POL(cons(x1, x2)) = 1 + x1 + 2·x2   
POL(mark(x1)) = 1 + 2·x1   
POL(s(x1)) = x1   
POL(tt) = 0   
POL(zeros) = 0   
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:

mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt


(12) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

Q is empty.

(13) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(14) Obligation:

Q DP problem:
The TRS P consists of the following rules:

A__U11(tt, L) → A__U12(tt, L)
A__U12(tt, L) → A__LENGTH(mark(L))
A__U12(tt, L) → MARK(L)
A__LENGTH(cons(N, L)) → A__U11(tt, L)
MARK(zeros) → A__ZEROS
MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(15) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 2 SCCs with 2 less nodes.

(16) Complex Obligation (AND)

(17) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(18) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • MARK(s(X)) → MARK(X)
    The graph contains the following edges 1 > 1

(19) YES

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

A__U12(tt, L) → A__LENGTH(mark(L))
A__LENGTH(cons(N, L)) → A__U11(tt, L)
A__U11(tt, L) → A__U12(tt, L)

The TRS R consists of the following rules:

a__zeroscons(0, zeros)
a__U11(tt, L) → a__U12(tt, L)
a__U12(tt, L) → s(a__length(mark(L)))
a__length(cons(N, L)) → a__U11(tt, L)
mark(zeros) → a__zeros
mark(s(X)) → s(mark(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(21) NonLoopProof (EQUIVALENT transformation)

By Theorem 8 [NONLOOP] we deduce infiniteness of the QDP.
We apply the theorem with m = 1, b = 0,
σ' = [ ], and μ' = [ ] on the rule
A__U11(tt, zeros)[ ]n[ ] → A__U11(tt, zeros)[ ]n[ ]
This rule is correct for the QDP as the following derivation shows:

A__U11(tt, zeros)[ ]n[ ] → A__U11(tt, zeros)[ ]n[ ]
    by Narrowing at position: []
        intermediate steps: Instantiation - Instantiation
        A__U11(tt, L)[ ]n[ ] → A__U12(tt, L)[ ]n[ ]
            by OriginalRule from TRS P

        A__U12(tt, zeros)[ ]n[ ] → A__U11(tt, zeros)[ ]n[ ]
            by Narrowing at position: []
                A__U12(tt, zeros)[ ]n[ ] → A__LENGTH(cons(0, zeros))[ ]n[ ]
                    by Narrowing at position: [0]
                        A__U12(tt, zeros)[ ]n[ ] → A__LENGTH(a__zeros)[ ]n[ ]
                            by Narrowing at position: [0]
                                intermediate steps: Instantiation - Instantiation
                                A__U12(tt, L)[ ]n[ ] → A__LENGTH(mark(L))[ ]n[ ]
                                    by OriginalRule from TRS P

                                mark(zeros)[ ]n[ ] → a__zeros[ ]n[ ]
                                    by OriginalRule from TRS R

                        a__zeros[ ]n[ ] → cons(0, zeros)[ ]n[ ]
                            by OriginalRule from TRS R

                intermediate steps: Instantiation - Instantiation - Instantiation
                A__LENGTH(cons(N, L))[ ]n[ ] → A__U11(tt, L)[ ]n[ ]
                    by OriginalRule from TRS P

(22) NO