* Step 1: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(0(),X) -> nil()
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(0()) -> 0()
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
            mark(from(X)) -> a__from(X)
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [4]                  
              p(a__add) = [1] x1 + [0]         
              p(a__and) = [1] x1 + [0]         
            p(a__first) = [1] x1 + [1] x2 + [0]
             p(a__from) = [0]                  
               p(a__if) = [1] x1 + [0]         
                 p(add) = [1] x1 + [0]         
                 p(and) = [1] x1 + [0]         
                p(cons) = [0]                  
               p(false) = [0]                  
               p(first) = [1] x1 + [1] x2 + [0]
                p(from) = [0]                  
                  p(if) = [1] x1 + [0]         
                p(mark) = [3]                  
                 p(nil) = [0]                  
                   p(s) = [0]                  
                p(true) = [0]                  
          
          Following rules are strictly oriented:
              a__add(0(),X) = [4]        
                            > [3]        
                            = mark(X)    
          
            a__first(0(),X) = [1] X + [4]
                            > [0]        
                            = nil()      
          
          mark(cons(X1,X2)) = [3]        
                            > [0]        
                            = cons(X1,X2)
          
              mark(false()) = [3]        
                            > [0]        
                            = false()    
          
              mark(from(X)) = [3]        
                            > [0]        
                            = a__from(X) 
          
                mark(nil()) = [3]        
                            > [0]        
                            = nil()      
          
                 mark(s(X)) = [3]        
                            > [0]        
                            = s(X)       
          
               mark(true()) = [3]        
                            > [0]        
                            = true()     
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(X1,X2) =  [1] X1 + [0]               
                                   >= [1] X1 + [0]               
                                   =  add(X1,X2)                 
          
                    a__add(s(X),Y) =  [0]                        
                                   >= [0]                        
                                   =  s(add(X,Y))                
          
                     a__and(X1,X2) =  [1] X1 + [0]               
                                   >= [1] X1 + [0]               
                                   =  and(X1,X2)                 
          
                 a__and(false(),Y) =  [0]                        
                                   >= [0]                        
                                   =  false()                    
          
                  a__and(true(),X) =  [0]                        
                                   >= [3]                        
                                   =  mark(X)                    
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [0]      
                                   >= [1] X1 + [1] X2 + [0]      
                                   =  first(X1,X2)               
          
          a__first(s(X),cons(Y,Z)) =  [0]                        
                                   >= [0]                        
                                   =  cons(Y,first(X,Z))         
          
                        a__from(X) =  [0]                        
                                   >= [0]                        
                                   =  cons(X,from(s(X)))         
          
                        a__from(X) =  [0]                        
                                   >= [0]                        
                                   =  from(X)                    
          
                   a__if(X1,X2,X3) =  [1] X1 + [0]               
                                   >= [1] X1 + [0]               
                                   =  if(X1,X2,X3)               
          
                a__if(false(),X,Y) =  [0]                        
                                   >= [3]                        
                                   =  mark(Y)                    
          
                 a__if(true(),X,Y) =  [0]                        
                                   >= [3]                        
                                   =  mark(X)                    
          
                         mark(0()) =  [3]                        
                                   >= [4]                        
                                   =  0()                        
          
                  mark(add(X1,X2)) =  [3]                        
                                   >= [3]                        
                                   =  a__add(mark(X1),X2)        
          
                  mark(and(X1,X2)) =  [3]                        
                                   >= [3]                        
                                   =  a__and(mark(X1),X2)        
          
                mark(first(X1,X2)) =  [3]                        
                                   >= [6]                        
                                   =  a__first(mark(X1),mark(X2))
          
                mark(if(X1,X2,X3)) =  [3]                        
                                   >= [3]                        
                                   =  a__if(mark(X1),X2,X3)      
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 2: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(0()) -> 0()
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
        - Weak TRS:
            a__add(0(),X) -> mark(X)
            a__first(0(),X) -> nil()
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [0]                  
              p(a__add) = [1] x1 + [5]         
              p(a__and) = [1] x1 + [0]         
            p(a__first) = [1] x1 + [1] x2 + [0]
             p(a__from) = [0]                  
               p(a__if) = [1] x1 + [7]         
                 p(add) = [1] x1 + [0]         
                 p(and) = [1] x1 + [0]         
                p(cons) = [0]                  
               p(false) = [0]                  
               p(first) = [1] x1 + [1] x2 + [0]
                p(from) = [0]                  
                  p(if) = [1] x1 + [0]         
                p(mark) = [0]                  
                 p(nil) = [0]                  
                   p(s) = [0]                  
                p(true) = [0]                  
          
          Following rules are strictly oriented:
               a__add(X1,X2) = [1] X1 + [5]
                             > [1] X1 + [0]
                             = add(X1,X2)  
          
              a__add(s(X),Y) = [5]         
                             > [0]         
                             = s(add(X,Y)) 
          
             a__if(X1,X2,X3) = [1] X1 + [7]
                             > [1] X1 + [0]
                             = if(X1,X2,X3)
          
          a__if(false(),X,Y) = [7]         
                             > [0]         
                             = mark(Y)     
          
           a__if(true(),X,Y) = [7]         
                             > [0]         
                             = mark(X)     
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(0(),X) =  [5]                        
                                   >= [0]                        
                                   =  mark(X)                    
          
                     a__and(X1,X2) =  [1] X1 + [0]               
                                   >= [1] X1 + [0]               
                                   =  and(X1,X2)                 
          
                 a__and(false(),Y) =  [0]                        
                                   >= [0]                        
                                   =  false()                    
          
                  a__and(true(),X) =  [0]                        
                                   >= [0]                        
                                   =  mark(X)                    
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [0]      
                                   >= [1] X1 + [1] X2 + [0]      
                                   =  first(X1,X2)               
          
                   a__first(0(),X) =  [1] X + [0]                
                                   >= [0]                        
                                   =  nil()                      
          
          a__first(s(X),cons(Y,Z)) =  [0]                        
                                   >= [0]                        
                                   =  cons(Y,first(X,Z))         
          
                        a__from(X) =  [0]                        
                                   >= [0]                        
                                   =  cons(X,from(s(X)))         
          
                        a__from(X) =  [0]                        
                                   >= [0]                        
                                   =  from(X)                    
          
                         mark(0()) =  [0]                        
                                   >= [0]                        
                                   =  0()                        
          
                  mark(add(X1,X2)) =  [0]                        
                                   >= [5]                        
                                   =  a__add(mark(X1),X2)        
          
                  mark(and(X1,X2)) =  [0]                        
                                   >= [0]                        
                                   =  a__and(mark(X1),X2)        
          
                 mark(cons(X1,X2)) =  [0]                        
                                   >= [0]                        
                                   =  cons(X1,X2)                
          
                     mark(false()) =  [0]                        
                                   >= [0]                        
                                   =  false()                    
          
                mark(first(X1,X2)) =  [0]                        
                                   >= [0]                        
                                   =  a__first(mark(X1),mark(X2))
          
                     mark(from(X)) =  [0]                        
                                   >= [0]                        
                                   =  a__from(X)                 
          
                mark(if(X1,X2,X3)) =  [0]                        
                                   >= [7]                        
                                   =  a__if(mark(X1),X2,X3)      
          
                       mark(nil()) =  [0]                        
                                   >= [0]                        
                                   =  nil()                      
          
                        mark(s(X)) =  [0]                        
                                   >= [0]                        
                                   =  s(X)                       
          
                      mark(true()) =  [0]                        
                                   >= [0]                        
                                   =  true()                     
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 3: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            mark(0()) -> 0()
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__first(0(),X) -> nil()
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [2]                  
              p(a__add) = [1] x1 + [5]         
              p(a__and) = [1] x1 + [2]         
            p(a__first) = [1] x1 + [1] x2 + [0]
             p(a__from) = [0]                  
               p(a__if) = [1] x1 + [3]         
                 p(add) = [1] x1 + [0]         
                 p(and) = [1] x1 + [0]         
                p(cons) = [0]                  
               p(false) = [0]                  
               p(first) = [1] x1 + [1] x2 + [0]
                p(from) = [0]                  
                  p(if) = [1] x1 + [0]         
                p(mark) = [0]                  
                 p(nil) = [0]                  
                   p(s) = [0]                  
                p(true) = [0]                  
          
          Following rules are strictly oriented:
              a__and(X1,X2) = [1] X1 + [2]
                            > [1] X1 + [0]
                            = and(X1,X2)  
          
          a__and(false(),Y) = [2]         
                            > [0]         
                            = false()     
          
           a__and(true(),X) = [2]         
                            > [0]         
                            = mark(X)     
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(X1,X2) =  [1] X1 + [5]               
                                   >= [1] X1 + [0]               
                                   =  add(X1,X2)                 
          
                     a__add(0(),X) =  [7]                        
                                   >= [0]                        
                                   =  mark(X)                    
          
                    a__add(s(X),Y) =  [5]                        
                                   >= [0]                        
                                   =  s(add(X,Y))                
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [0]      
                                   >= [1] X1 + [1] X2 + [0]      
                                   =  first(X1,X2)               
          
                   a__first(0(),X) =  [1] X + [2]                
                                   >= [0]                        
                                   =  nil()                      
          
          a__first(s(X),cons(Y,Z)) =  [0]                        
                                   >= [0]                        
                                   =  cons(Y,first(X,Z))         
          
                        a__from(X) =  [0]                        
                                   >= [0]                        
                                   =  cons(X,from(s(X)))         
          
                        a__from(X) =  [0]                        
                                   >= [0]                        
                                   =  from(X)                    
          
                   a__if(X1,X2,X3) =  [1] X1 + [3]               
                                   >= [1] X1 + [0]               
                                   =  if(X1,X2,X3)               
          
                a__if(false(),X,Y) =  [3]                        
                                   >= [0]                        
                                   =  mark(Y)                    
          
                 a__if(true(),X,Y) =  [3]                        
                                   >= [0]                        
                                   =  mark(X)                    
          
                         mark(0()) =  [0]                        
                                   >= [2]                        
                                   =  0()                        
          
                  mark(add(X1,X2)) =  [0]                        
                                   >= [5]                        
                                   =  a__add(mark(X1),X2)        
          
                  mark(and(X1,X2)) =  [0]                        
                                   >= [2]                        
                                   =  a__and(mark(X1),X2)        
          
                 mark(cons(X1,X2)) =  [0]                        
                                   >= [0]                        
                                   =  cons(X1,X2)                
          
                     mark(false()) =  [0]                        
                                   >= [0]                        
                                   =  false()                    
          
                mark(first(X1,X2)) =  [0]                        
                                   >= [0]                        
                                   =  a__first(mark(X1),mark(X2))
          
                     mark(from(X)) =  [0]                        
                                   >= [0]                        
                                   =  a__from(X)                 
          
                mark(if(X1,X2,X3)) =  [0]                        
                                   >= [3]                        
                                   =  a__if(mark(X1),X2,X3)      
          
                       mark(nil()) =  [0]                        
                                   >= [0]                        
                                   =  nil()                      
          
                        mark(s(X)) =  [0]                        
                                   >= [0]                        
                                   =  s(X)                       
          
                      mark(true()) =  [0]                        
                                   >= [0]                        
                                   =  true()                     
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 4: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            a__first(X1,X2) -> first(X1,X2)
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            mark(0()) -> 0()
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(0(),X) -> nil()
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [2]                  
              p(a__add) = [1] x1 + [0]         
              p(a__and) = [1] x1 + [6]         
            p(a__first) = [1] x1 + [1] x2 + [6]
             p(a__from) = [2]                  
               p(a__if) = [1] x1 + [4]         
                 p(add) = [1] x1 + [0]         
                 p(and) = [1] x1 + [0]         
                p(cons) = [0]                  
               p(false) = [2]                  
               p(first) = [1] x1 + [1] x2 + [0]
                p(from) = [0]                  
                  p(if) = [1] x1 + [0]         
                p(mark) = [2]                  
                 p(nil) = [0]                  
                   p(s) = [0]                  
                p(true) = [1]                  
          
          Following rules are strictly oriented:
                   a__first(X1,X2) = [1] X1 + [1] X2 + [6]
                                   > [1] X1 + [1] X2 + [0]
                                   = first(X1,X2)         
          
          a__first(s(X),cons(Y,Z)) = [6]                  
                                   > [0]                  
                                   = cons(Y,first(X,Z))   
          
                        a__from(X) = [2]                  
                                   > [0]                  
                                   = cons(X,from(s(X)))   
          
                        a__from(X) = [2]                  
                                   > [0]                  
                                   = from(X)              
          
          
          Following rules are (at-least) weakly oriented:
               a__add(X1,X2) =  [1] X1 + [0]               
                             >= [1] X1 + [0]               
                             =  add(X1,X2)                 
          
               a__add(0(),X) =  [2]                        
                             >= [2]                        
                             =  mark(X)                    
          
              a__add(s(X),Y) =  [0]                        
                             >= [0]                        
                             =  s(add(X,Y))                
          
               a__and(X1,X2) =  [1] X1 + [6]               
                             >= [1] X1 + [0]               
                             =  and(X1,X2)                 
          
           a__and(false(),Y) =  [8]                        
                             >= [2]                        
                             =  false()                    
          
            a__and(true(),X) =  [7]                        
                             >= [2]                        
                             =  mark(X)                    
          
             a__first(0(),X) =  [1] X + [8]                
                             >= [0]                        
                             =  nil()                      
          
             a__if(X1,X2,X3) =  [1] X1 + [4]               
                             >= [1] X1 + [0]               
                             =  if(X1,X2,X3)               
          
          a__if(false(),X,Y) =  [6]                        
                             >= [2]                        
                             =  mark(Y)                    
          
           a__if(true(),X,Y) =  [5]                        
                             >= [2]                        
                             =  mark(X)                    
          
                   mark(0()) =  [2]                        
                             >= [2]                        
                             =  0()                        
          
            mark(add(X1,X2)) =  [2]                        
                             >= [2]                        
                             =  a__add(mark(X1),X2)        
          
            mark(and(X1,X2)) =  [2]                        
                             >= [8]                        
                             =  a__and(mark(X1),X2)        
          
           mark(cons(X1,X2)) =  [2]                        
                             >= [0]                        
                             =  cons(X1,X2)                
          
               mark(false()) =  [2]                        
                             >= [2]                        
                             =  false()                    
          
          mark(first(X1,X2)) =  [2]                        
                             >= [10]                       
                             =  a__first(mark(X1),mark(X2))
          
               mark(from(X)) =  [2]                        
                             >= [2]                        
                             =  a__from(X)                 
          
          mark(if(X1,X2,X3)) =  [2]                        
                             >= [6]                        
                             =  a__if(mark(X1),X2,X3)      
          
                 mark(nil()) =  [2]                        
                             >= [0]                        
                             =  nil()                      
          
                  mark(s(X)) =  [2]                        
                             >= [0]                        
                             =  s(X)                       
          
                mark(true()) =  [2]                        
                             >= [1]                        
                             =  true()                     
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 5: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            mark(0()) -> 0()
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(0(),X) -> nil()
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [0]                  
              p(a__add) = [1] x1 + [1]         
              p(a__and) = [1] x1 + [0]         
            p(a__first) = [1] x1 + [1] x2 + [3]
             p(a__from) = [1]                  
               p(a__if) = [1] x1 + [2]         
                 p(add) = [1] x1 + [0]         
                 p(and) = [1] x1 + [0]         
                p(cons) = [0]                  
               p(false) = [1]                  
               p(first) = [1] x1 + [1] x2 + [0]
                p(from) = [0]                  
                  p(if) = [1] x1 + [0]         
                p(mark) = [1]                  
                 p(nil) = [0]                  
                   p(s) = [0]                  
                p(true) = [1]                  
          
          Following rules are strictly oriented:
          mark(0()) = [1]
                    > [0]
                    = 0()
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(X1,X2) =  [1] X1 + [1]               
                                   >= [1] X1 + [0]               
                                   =  add(X1,X2)                 
          
                     a__add(0(),X) =  [1]                        
                                   >= [1]                        
                                   =  mark(X)                    
          
                    a__add(s(X),Y) =  [1]                        
                                   >= [0]                        
                                   =  s(add(X,Y))                
          
                     a__and(X1,X2) =  [1] X1 + [0]               
                                   >= [1] X1 + [0]               
                                   =  and(X1,X2)                 
          
                 a__and(false(),Y) =  [1]                        
                                   >= [1]                        
                                   =  false()                    
          
                  a__and(true(),X) =  [1]                        
                                   >= [1]                        
                                   =  mark(X)                    
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [3]      
                                   >= [1] X1 + [1] X2 + [0]      
                                   =  first(X1,X2)               
          
                   a__first(0(),X) =  [1] X + [3]                
                                   >= [0]                        
                                   =  nil()                      
          
          a__first(s(X),cons(Y,Z)) =  [3]                        
                                   >= [0]                        
                                   =  cons(Y,first(X,Z))         
          
                        a__from(X) =  [1]                        
                                   >= [0]                        
                                   =  cons(X,from(s(X)))         
          
                        a__from(X) =  [1]                        
                                   >= [0]                        
                                   =  from(X)                    
          
                   a__if(X1,X2,X3) =  [1] X1 + [2]               
                                   >= [1] X1 + [0]               
                                   =  if(X1,X2,X3)               
          
                a__if(false(),X,Y) =  [3]                        
                                   >= [1]                        
                                   =  mark(Y)                    
          
                 a__if(true(),X,Y) =  [3]                        
                                   >= [1]                        
                                   =  mark(X)                    
          
                  mark(add(X1,X2)) =  [1]                        
                                   >= [2]                        
                                   =  a__add(mark(X1),X2)        
          
                  mark(and(X1,X2)) =  [1]                        
                                   >= [1]                        
                                   =  a__and(mark(X1),X2)        
          
                 mark(cons(X1,X2)) =  [1]                        
                                   >= [0]                        
                                   =  cons(X1,X2)                
          
                     mark(false()) =  [1]                        
                                   >= [1]                        
                                   =  false()                    
          
                mark(first(X1,X2)) =  [1]                        
                                   >= [5]                        
                                   =  a__first(mark(X1),mark(X2))
          
                     mark(from(X)) =  [1]                        
                                   >= [1]                        
                                   =  a__from(X)                 
          
                mark(if(X1,X2,X3)) =  [1]                        
                                   >= [3]                        
                                   =  a__if(mark(X1),X2,X3)      
          
                       mark(nil()) =  [1]                        
                                   >= [0]                        
                                   =  nil()                      
          
                        mark(s(X)) =  [1]                        
                                   >= [0]                        
                                   =  s(X)                       
          
                      mark(true()) =  [1]                        
                                   >= [1]                        
                                   =  true()                     
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 6: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(0(),X) -> nil()
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(0()) -> 0()
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [2]                           
              p(a__add) = [1] x1 + [4] x2 + [0]         
              p(a__and) = [1] x1 + [4] x2 + [2]         
            p(a__first) = [1] x1 + [1] x2 + [0]         
             p(a__from) = [0]                           
               p(a__if) = [1] x1 + [4] x2 + [4] x3 + [2]
                 p(add) = [1] x1 + [1] x2 + [0]         
                 p(and) = [1] x1 + [1] x2 + [0]         
                p(cons) = [0]                           
               p(false) = [2]                           
               p(first) = [1] x1 + [1] x2 + [0]         
                p(from) = [0]                           
                  p(if) = [1] x1 + [1] x2 + [1] x3 + [2]
                p(mark) = [4] x1 + [0]                  
                 p(nil) = [0]                           
                   p(s) = [2]                           
                p(true) = [0]                           
          
          Following rules are strictly oriented:
          mark(if(X1,X2,X3)) = [4] X1 + [4] X2 + [4] X3 + [8]
                             > [4] X1 + [4] X2 + [4] X3 + [2]
                             = a__if(mark(X1),X2,X3)         
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(X1,X2) =  [1] X1 + [4] X2 + [0]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  add(X1,X2)                    
          
                     a__add(0(),X) =  [4] X + [2]                   
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                    a__add(s(X),Y) =  [4] Y + [2]                   
                                   >= [2]                           
                                   =  s(add(X,Y))                   
          
                     a__and(X1,X2) =  [1] X1 + [4] X2 + [2]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  and(X1,X2)                    
          
                 a__and(false(),Y) =  [4] Y + [4]                   
                                   >= [2]                           
                                   =  false()                       
          
                  a__and(true(),X) =  [4] X + [2]                   
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [0]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  first(X1,X2)                  
          
                   a__first(0(),X) =  [1] X + [2]                   
                                   >= [0]                           
                                   =  nil()                         
          
          a__first(s(X),cons(Y,Z)) =  [2]                           
                                   >= [0]                           
                                   =  cons(Y,first(X,Z))            
          
                        a__from(X) =  [0]                           
                                   >= [0]                           
                                   =  cons(X,from(s(X)))            
          
                        a__from(X) =  [0]                           
                                   >= [0]                           
                                   =  from(X)                       
          
                   a__if(X1,X2,X3) =  [1] X1 + [4] X2 + [4] X3 + [2]
                                   >= [1] X1 + [1] X2 + [1] X3 + [2]
                                   =  if(X1,X2,X3)                  
          
                a__if(false(),X,Y) =  [4] X + [4] Y + [4]           
                                   >= [4] Y + [0]                   
                                   =  mark(Y)                       
          
                 a__if(true(),X,Y) =  [4] X + [4] Y + [2]           
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                         mark(0()) =  [8]                           
                                   >= [2]                           
                                   =  0()                           
          
                  mark(add(X1,X2)) =  [4] X1 + [4] X2 + [0]         
                                   >= [4] X1 + [4] X2 + [0]         
                                   =  a__add(mark(X1),X2)           
          
                  mark(and(X1,X2)) =  [4] X1 + [4] X2 + [0]         
                                   >= [4] X1 + [4] X2 + [2]         
                                   =  a__and(mark(X1),X2)           
          
                 mark(cons(X1,X2)) =  [0]                           
                                   >= [0]                           
                                   =  cons(X1,X2)                   
          
                     mark(false()) =  [8]                           
                                   >= [2]                           
                                   =  false()                       
          
                mark(first(X1,X2)) =  [4] X1 + [4] X2 + [0]         
                                   >= [4] X1 + [4] X2 + [0]         
                                   =  a__first(mark(X1),mark(X2))   
          
                     mark(from(X)) =  [0]                           
                                   >= [0]                           
                                   =  a__from(X)                    
          
                       mark(nil()) =  [0]                           
                                   >= [0]                           
                                   =  nil()                         
          
                        mark(s(X)) =  [8]                           
                                   >= [2]                           
                                   =  s(X)                          
          
                      mark(true()) =  [0]                           
                                   >= [0]                           
                                   =  true()                        
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 7: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(0(),X) -> nil()
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(0()) -> 0()
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [2]                           
              p(a__add) = [1] x1 + [4] x2 + [1]         
              p(a__and) = [1] x1 + [4] x2 + [1]         
            p(a__first) = [1] x1 + [1] x2 + [0]         
             p(a__from) = [1] x1 + [3]                  
               p(a__if) = [1] x1 + [4] x2 + [4] x3 + [4]
                 p(add) = [1] x1 + [1] x2 + [0]         
                 p(and) = [1] x1 + [1] x2 + [1]         
                p(cons) = [0]                           
               p(false) = [1]                           
               p(first) = [1] x1 + [1] x2 + [0]         
                p(from) = [1] x1 + [1]                  
                  p(if) = [1] x1 + [1] x2 + [1] x3 + [1]
                p(mark) = [4] x1 + [0]                  
                 p(nil) = [1]                           
                   p(s) = [1]                           
                p(true) = [0]                           
          
          Following rules are strictly oriented:
          mark(and(X1,X2)) = [4] X1 + [4] X2 + [4]
                           > [4] X1 + [4] X2 + [1]
                           = a__and(mark(X1),X2)  
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(X1,X2) =  [1] X1 + [4] X2 + [1]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  add(X1,X2)                    
          
                     a__add(0(),X) =  [4] X + [3]                   
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                    a__add(s(X),Y) =  [4] Y + [2]                   
                                   >= [1]                           
                                   =  s(add(X,Y))                   
          
                     a__and(X1,X2) =  [1] X1 + [4] X2 + [1]         
                                   >= [1] X1 + [1] X2 + [1]         
                                   =  and(X1,X2)                    
          
                 a__and(false(),Y) =  [4] Y + [2]                   
                                   >= [1]                           
                                   =  false()                       
          
                  a__and(true(),X) =  [4] X + [1]                   
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [0]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  first(X1,X2)                  
          
                   a__first(0(),X) =  [1] X + [2]                   
                                   >= [1]                           
                                   =  nil()                         
          
          a__first(s(X),cons(Y,Z)) =  [1]                           
                                   >= [0]                           
                                   =  cons(Y,first(X,Z))            
          
                        a__from(X) =  [1] X + [3]                   
                                   >= [0]                           
                                   =  cons(X,from(s(X)))            
          
                        a__from(X) =  [1] X + [3]                   
                                   >= [1] X + [1]                   
                                   =  from(X)                       
          
                   a__if(X1,X2,X3) =  [1] X1 + [4] X2 + [4] X3 + [4]
                                   >= [1] X1 + [1] X2 + [1] X3 + [1]
                                   =  if(X1,X2,X3)                  
          
                a__if(false(),X,Y) =  [4] X + [4] Y + [5]           
                                   >= [4] Y + [0]                   
                                   =  mark(Y)                       
          
                 a__if(true(),X,Y) =  [4] X + [4] Y + [4]           
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                         mark(0()) =  [8]                           
                                   >= [2]                           
                                   =  0()                           
          
                  mark(add(X1,X2)) =  [4] X1 + [4] X2 + [0]         
                                   >= [4] X1 + [4] X2 + [1]         
                                   =  a__add(mark(X1),X2)           
          
                 mark(cons(X1,X2)) =  [0]                           
                                   >= [0]                           
                                   =  cons(X1,X2)                   
          
                     mark(false()) =  [4]                           
                                   >= [1]                           
                                   =  false()                       
          
                mark(first(X1,X2)) =  [4] X1 + [4] X2 + [0]         
                                   >= [4] X1 + [4] X2 + [0]         
                                   =  a__first(mark(X1),mark(X2))   
          
                     mark(from(X)) =  [4] X + [4]                   
                                   >= [1] X + [3]                   
                                   =  a__from(X)                    
          
                mark(if(X1,X2,X3)) =  [4] X1 + [4] X2 + [4] X3 + [4]
                                   >= [4] X1 + [4] X2 + [4] X3 + [4]
                                   =  a__if(mark(X1),X2,X3)         
          
                       mark(nil()) =  [4]                           
                                   >= [1]                           
                                   =  nil()                         
          
                        mark(s(X)) =  [4]                           
                                   >= [1]                           
                                   =  s(X)                          
          
                      mark(true()) =  [0]                           
                                   >= [0]                           
                                   =  true()                        
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 8: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(0(),X) -> nil()
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(0()) -> 0()
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [0]                           
              p(a__add) = [1] x1 + [4] x2 + [2]         
              p(a__and) = [1] x1 + [4] x2 + [1]         
            p(a__first) = [1] x1 + [1] x2 + [0]         
             p(a__from) = [2]                           
               p(a__if) = [1] x1 + [4] x2 + [4] x3 + [4]
                 p(add) = [1] x1 + [1] x2 + [2]         
                 p(and) = [1] x1 + [1] x2 + [1]         
                p(cons) = [1]                           
               p(false) = [1]                           
               p(first) = [1] x1 + [1] x2 + [0]         
                p(from) = [2]                           
                  p(if) = [1] x1 + [1] x2 + [1] x3 + [1]
                p(mark) = [4] x1 + [0]                  
                 p(nil) = [0]                           
                   p(s) = [0]                           
                p(true) = [1]                           
          
          Following rules are strictly oriented:
          mark(add(X1,X2)) = [4] X1 + [4] X2 + [8]
                           > [4] X1 + [4] X2 + [2]
                           = a__add(mark(X1),X2)  
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(X1,X2) =  [1] X1 + [4] X2 + [2]         
                                   >= [1] X1 + [1] X2 + [2]         
                                   =  add(X1,X2)                    
          
                     a__add(0(),X) =  [4] X + [2]                   
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                    a__add(s(X),Y) =  [4] Y + [2]                   
                                   >= [0]                           
                                   =  s(add(X,Y))                   
          
                     a__and(X1,X2) =  [1] X1 + [4] X2 + [1]         
                                   >= [1] X1 + [1] X2 + [1]         
                                   =  and(X1,X2)                    
          
                 a__and(false(),Y) =  [4] Y + [2]                   
                                   >= [1]                           
                                   =  false()                       
          
                  a__and(true(),X) =  [4] X + [2]                   
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [0]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  first(X1,X2)                  
          
                   a__first(0(),X) =  [1] X + [0]                   
                                   >= [0]                           
                                   =  nil()                         
          
          a__first(s(X),cons(Y,Z)) =  [1]                           
                                   >= [1]                           
                                   =  cons(Y,first(X,Z))            
          
                        a__from(X) =  [2]                           
                                   >= [1]                           
                                   =  cons(X,from(s(X)))            
          
                        a__from(X) =  [2]                           
                                   >= [2]                           
                                   =  from(X)                       
          
                   a__if(X1,X2,X3) =  [1] X1 + [4] X2 + [4] X3 + [4]
                                   >= [1] X1 + [1] X2 + [1] X3 + [1]
                                   =  if(X1,X2,X3)                  
          
                a__if(false(),X,Y) =  [4] X + [4] Y + [5]           
                                   >= [4] Y + [0]                   
                                   =  mark(Y)                       
          
                 a__if(true(),X,Y) =  [4] X + [4] Y + [5]           
                                   >= [4] X + [0]                   
                                   =  mark(X)                       
          
                         mark(0()) =  [0]                           
                                   >= [0]                           
                                   =  0()                           
          
                  mark(and(X1,X2)) =  [4] X1 + [4] X2 + [4]         
                                   >= [4] X1 + [4] X2 + [1]         
                                   =  a__and(mark(X1),X2)           
          
                 mark(cons(X1,X2)) =  [4]                           
                                   >= [1]                           
                                   =  cons(X1,X2)                   
          
                     mark(false()) =  [4]                           
                                   >= [1]                           
                                   =  false()                       
          
                mark(first(X1,X2)) =  [4] X1 + [4] X2 + [0]         
                                   >= [4] X1 + [4] X2 + [0]         
                                   =  a__first(mark(X1),mark(X2))   
          
                     mark(from(X)) =  [8]                           
                                   >= [2]                           
                                   =  a__from(X)                    
          
                mark(if(X1,X2,X3)) =  [4] X1 + [4] X2 + [4] X3 + [4]
                                   >= [4] X1 + [4] X2 + [4] X3 + [4]
                                   =  a__if(mark(X1),X2,X3)         
          
                       mark(nil()) =  [0]                           
                                   >= [0]                           
                                   =  nil()                         
          
                        mark(s(X)) =  [0]                           
                                   >= [0]                           
                                   =  s(X)                          
          
                      mark(true()) =  [4]                           
                                   >= [1]                           
                                   =  true()                        
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 9: WeightGap WORST_CASE(?,O(n^1))
    + Considered Problem:
        - Strict TRS:
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(0(),X) -> nil()
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(0()) -> 0()
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(from(X)) -> a__from(X)
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny}
    + Details:
        The weightgap principle applies using the following nonconstant growth matrix-interpretation:
          We apply a matrix interpretation of kind constructor based matrix interpretation:
          The following argument positions are considered usable:
            uargs(a__add) = {1},
            uargs(a__and) = {1},
            uargs(a__first) = {1,2},
            uargs(a__if) = {1},
            uargs(add) = {1},
            uargs(and) = {1},
            uargs(first) = {1,2},
            uargs(if) = {1}
          
          Following symbols are considered usable:
            all
          TcT has computed the following interpretation:
                   p(0) = [0]                           
              p(a__add) = [1] x1 + [2] x2 + [0]         
              p(a__and) = [1] x1 + [2] x2 + [0]         
            p(a__first) = [1] x1 + [1] x2 + [1]         
             p(a__from) = [0]                           
               p(a__if) = [1] x1 + [2] x2 + [2] x3 + [0]
                 p(add) = [1] x1 + [1] x2 + [0]         
                 p(and) = [1] x1 + [1] x2 + [0]         
                p(cons) = [0]                           
               p(false) = [0]                           
               p(first) = [1] x1 + [1] x2 + [1]         
                p(from) = [0]                           
                  p(if) = [1] x1 + [1] x2 + [1] x3 + [0]
                p(mark) = [2] x1 + [0]                  
                 p(nil) = [0]                           
                   p(s) = [7]                           
                p(true) = [0]                           
          
          Following rules are strictly oriented:
          mark(first(X1,X2)) = [2] X1 + [2] X2 + [2]      
                             > [2] X1 + [2] X2 + [1]      
                             = a__first(mark(X1),mark(X2))
          
          
          Following rules are (at-least) weakly oriented:
                     a__add(X1,X2) =  [1] X1 + [2] X2 + [0]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  add(X1,X2)                    
          
                     a__add(0(),X) =  [2] X + [0]                   
                                   >= [2] X + [0]                   
                                   =  mark(X)                       
          
                    a__add(s(X),Y) =  [2] Y + [7]                   
                                   >= [7]                           
                                   =  s(add(X,Y))                   
          
                     a__and(X1,X2) =  [1] X1 + [2] X2 + [0]         
                                   >= [1] X1 + [1] X2 + [0]         
                                   =  and(X1,X2)                    
          
                 a__and(false(),Y) =  [2] Y + [0]                   
                                   >= [0]                           
                                   =  false()                       
          
                  a__and(true(),X) =  [2] X + [0]                   
                                   >= [2] X + [0]                   
                                   =  mark(X)                       
          
                   a__first(X1,X2) =  [1] X1 + [1] X2 + [1]         
                                   >= [1] X1 + [1] X2 + [1]         
                                   =  first(X1,X2)                  
          
                   a__first(0(),X) =  [1] X + [1]                   
                                   >= [0]                           
                                   =  nil()                         
          
          a__first(s(X),cons(Y,Z)) =  [8]                           
                                   >= [0]                           
                                   =  cons(Y,first(X,Z))            
          
                        a__from(X) =  [0]                           
                                   >= [0]                           
                                   =  cons(X,from(s(X)))            
          
                        a__from(X) =  [0]                           
                                   >= [0]                           
                                   =  from(X)                       
          
                   a__if(X1,X2,X3) =  [1] X1 + [2] X2 + [2] X3 + [0]
                                   >= [1] X1 + [1] X2 + [1] X3 + [0]
                                   =  if(X1,X2,X3)                  
          
                a__if(false(),X,Y) =  [2] X + [2] Y + [0]           
                                   >= [2] Y + [0]                   
                                   =  mark(Y)                       
          
                 a__if(true(),X,Y) =  [2] X + [2] Y + [0]           
                                   >= [2] X + [0]                   
                                   =  mark(X)                       
          
                         mark(0()) =  [0]                           
                                   >= [0]                           
                                   =  0()                           
          
                  mark(add(X1,X2)) =  [2] X1 + [2] X2 + [0]         
                                   >= [2] X1 + [2] X2 + [0]         
                                   =  a__add(mark(X1),X2)           
          
                  mark(and(X1,X2)) =  [2] X1 + [2] X2 + [0]         
                                   >= [2] X1 + [2] X2 + [0]         
                                   =  a__and(mark(X1),X2)           
          
                 mark(cons(X1,X2)) =  [0]                           
                                   >= [0]                           
                                   =  cons(X1,X2)                   
          
                     mark(false()) =  [0]                           
                                   >= [0]                           
                                   =  false()                       
          
                     mark(from(X)) =  [0]                           
                                   >= [0]                           
                                   =  a__from(X)                    
          
                mark(if(X1,X2,X3)) =  [2] X1 + [2] X2 + [2] X3 + [0]
                                   >= [2] X1 + [2] X2 + [2] X3 + [0]
                                   =  a__if(mark(X1),X2,X3)         
          
                       mark(nil()) =  [0]                           
                                   >= [0]                           
                                   =  nil()                         
          
                        mark(s(X)) =  [14]                          
                                   >= [7]                           
                                   =  s(X)                          
          
                      mark(true()) =  [0]                           
                                   >= [0]                           
                                   =  true()                        
          
        Further, it can be verified that all rules not oriented are covered by the weightgap condition.
* Step 10: EmptyProcessor WORST_CASE(?,O(1))
    + Considered Problem:
        - Weak TRS:
            a__add(X1,X2) -> add(X1,X2)
            a__add(0(),X) -> mark(X)
            a__add(s(X),Y) -> s(add(X,Y))
            a__and(X1,X2) -> and(X1,X2)
            a__and(false(),Y) -> false()
            a__and(true(),X) -> mark(X)
            a__first(X1,X2) -> first(X1,X2)
            a__first(0(),X) -> nil()
            a__first(s(X),cons(Y,Z)) -> cons(Y,first(X,Z))
            a__from(X) -> cons(X,from(s(X)))
            a__from(X) -> from(X)
            a__if(X1,X2,X3) -> if(X1,X2,X3)
            a__if(false(),X,Y) -> mark(Y)
            a__if(true(),X,Y) -> mark(X)
            mark(0()) -> 0()
            mark(add(X1,X2)) -> a__add(mark(X1),X2)
            mark(and(X1,X2)) -> a__and(mark(X1),X2)
            mark(cons(X1,X2)) -> cons(X1,X2)
            mark(false()) -> false()
            mark(first(X1,X2)) -> a__first(mark(X1),mark(X2))
            mark(from(X)) -> a__from(X)
            mark(if(X1,X2,X3)) -> a__if(mark(X1),X2,X3)
            mark(nil()) -> nil()
            mark(s(X)) -> s(X)
            mark(true()) -> true()
        - Signature:
            {a__add/2,a__and/2,a__first/2,a__from/1,a__if/3,mark/1} / {0/0,add/2,and/2,cons/2,false/0,first/2,from/1
            ,if/3,nil/0,s/1,true/0}
        - Obligation:
             runtime complexity wrt. defined symbols {a__add,a__and,a__first,a__from,a__if,mark} and constructors {0,add
            ,and,cons,false,first,from,if,nil,s,true}
    + Applied Processor:
        EmptyProcessor
    + Details:
        The problem is already closed. The intended complexity is O(1).

WORST_CASE(?,O(n^1))