We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^1)).

Strict Trs:
  { 2nd(cons1(X, cons(Y, Z))) -> Y
  , 2nd(cons(X, X1)) -> 2nd(cons1(X, activate(X1)))
  , activate(X) -> X
  , activate(n__from(X)) -> from(X)
  , from(X) -> cons(X, n__from(s(X)))
  , from(X) -> n__from(X) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

The weightgap principle applies (using the following nonconstant
growth matrix-interpretation)

The following argument positions are usable:
  Uargs(2nd) = {1}, Uargs(cons1) = {2}

TcT has computed the following matrix interpretation satisfying
not(EDA) and not(IDA(1)).

        [2nd](x1) = [1] x1 + [0]         
                                         
  [cons1](x1, x2) = [1] x2 + [0]         
                                         
   [cons](x1, x2) = [1] x1 + [1] x2 + [1]
                                         
   [activate](x1) = [1] x1 + [1]         
                                         
       [from](x1) = [1] x1 + [5]         
                                         
    [n__from](x1) = [1] x1 + [0]         
                                         
          [s](x1) = [0]                  

The order satisfies the following ordering constraints:

  [2nd(cons1(X, cons(Y, Z)))] =  [1] Y + [1] Z + [1]          
                              >  [1] Y + [0]                  
                              =  [Y]                          
                                                              
           [2nd(cons(X, X1))] =  [1] X + [1] X1 + [1]         
                              >= [1] X1 + [1]                 
                              =  [2nd(cons1(X, activate(X1)))]
                                                              
                [activate(X)] =  [1] X + [1]                  
                              >  [1] X + [0]                  
                              =  [X]                          
                                                              
       [activate(n__from(X))] =  [1] X + [1]                  
                              ?  [1] X + [5]                  
                              =  [from(X)]                    
                                                              
                    [from(X)] =  [1] X + [5]                  
                              >  [1] X + [1]                  
                              =  [cons(X, n__from(s(X)))]     
                                                              
                    [from(X)] =  [1] X + [5]                  
                              >  [1] X + [0]                  
                              =  [n__from(X)]                 
                                                              

Further, it can be verified that all rules not oriented are covered by the weightgap condition.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^1)).

Strict Trs:
  { 2nd(cons(X, X1)) -> 2nd(cons1(X, activate(X1)))
  , activate(n__from(X)) -> from(X) }
Weak Trs:
  { 2nd(cons1(X, cons(Y, Z))) -> Y
  , activate(X) -> X
  , from(X) -> cons(X, n__from(s(X)))
  , from(X) -> n__from(X) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

The weightgap principle applies (using the following nonconstant
growth matrix-interpretation)

The following argument positions are usable:
  Uargs(2nd) = {1}, Uargs(cons1) = {2}

TcT has computed the following matrix interpretation satisfying
not(EDA) and not(IDA(1)).

        [2nd](x1) = [1] x1 + [0]         
                                         
  [cons1](x1, x2) = [1] x2 + [0]         
                                         
   [cons](x1, x2) = [1] x1 + [1] x2 + [4]
                                         
   [activate](x1) = [1] x1 + [1]         
                                         
       [from](x1) = [1] x1 + [4]         
                                         
    [n__from](x1) = [1] x1 + [0]         
                                         
          [s](x1) = [0]                  

The order satisfies the following ordering constraints:

  [2nd(cons1(X, cons(Y, Z)))] =  [1] Y + [1] Z + [4]          
                              >  [1] Y + [0]                  
                              =  [Y]                          
                                                              
           [2nd(cons(X, X1))] =  [1] X + [1] X1 + [4]         
                              >  [1] X1 + [1]                 
                              =  [2nd(cons1(X, activate(X1)))]
                                                              
                [activate(X)] =  [1] X + [1]                  
                              >  [1] X + [0]                  
                              =  [X]                          
                                                              
       [activate(n__from(X))] =  [1] X + [1]                  
                              ?  [1] X + [4]                  
                              =  [from(X)]                    
                                                              
                    [from(X)] =  [1] X + [4]                  
                              >= [1] X + [4]                  
                              =  [cons(X, n__from(s(X)))]     
                                                              
                    [from(X)] =  [1] X + [4]                  
                              >  [1] X + [0]                  
                              =  [n__from(X)]                 
                                                              

Further, it can be verified that all rules not oriented are covered by the weightgap condition.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(n^1)).

Strict Trs: { activate(n__from(X)) -> from(X) }
Weak Trs:
  { 2nd(cons1(X, cons(Y, Z))) -> Y
  , 2nd(cons(X, X1)) -> 2nd(cons1(X, activate(X1)))
  , activate(X) -> X
  , from(X) -> cons(X, n__from(s(X)))
  , from(X) -> n__from(X) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

We use the processor 'matrix interpretation of dimension 2' to
orient following rules strictly.

Trs: { activate(n__from(X)) -> from(X) }

The induced complexity on above rules (modulo remaining rules) is
YES(?,O(n^1)) . These rules are moved into the corresponding weak
component(s).

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(2nd) = {1}, Uargs(cons1) = {2}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA) and not(IDA(1)).
  
          [2nd](x1) = [1 4] x1 + [0]           
                      [4 5]      [0]           
                                               
    [cons1](x1, x2) = [1 0] x2 + [0]           
                      [0 0]      [0]           
                                               
     [cons](x1, x2) = [1 1] x1 + [0 0] x2 + [3]
                      [0 0]      [1 1]      [0]
                                               
     [activate](x1) = [1 1] x1 + [2]           
                      [1 1]      [1]           
                                               
         [from](x1) = [1 1] x1 + [7]           
                      [1 1]      [7]           
                                               
      [n__from](x1) = [1 1] x1 + [3]           
                      [0 0]      [3]           
                                               
            [s](x1) = [1 0] x1 + [0]           
                      [0 1]      [1]           
  
  The order satisfies the following ordering constraints:
  
    [2nd(cons1(X, cons(Y, Z)))] = [1 1] Y + [3]                
                                  [4 4]     [12]               
                                > [1 0] Y + [0]                
                                  [0 1]     [0]                
                                = [Y]                          
                                                               
             [2nd(cons(X, X1))] = [1 1] X + [4 4] X1 + [3]     
                                  [4 4]     [5 5]      [12]    
                                > [1 1] X1 + [2]               
                                  [4 4]      [8]               
                                = [2nd(cons1(X, activate(X1)))]
                                                               
                  [activate(X)] = [1 1] X + [2]                
                                  [1 1]     [1]                
                                > [1 0] X + [0]                
                                  [0 1]     [0]                
                                = [X]                          
                                                               
         [activate(n__from(X))] = [1 1] X + [8]                
                                  [1 1]     [7]                
                                > [1 1] X + [7]                
                                  [1 1]     [7]                
                                = [from(X)]                    
                                                               
                      [from(X)] = [1 1] X + [7]                
                                  [1 1]     [7]                
                                > [1 1] X + [3]                
                                  [1 1]     [7]                
                                = [cons(X, n__from(s(X)))]     
                                                               
                      [from(X)] = [1 1] X + [7]                
                                  [1 1]     [7]                
                                > [1 1] X + [3]                
                                  [0 0]     [3]                
                                = [n__from(X)]                 
                                                               

We return to the main proof.

We are left with following problem, upon which TcT provides the
certificate YES(O(1),O(1)).

Weak Trs:
  { 2nd(cons1(X, cons(Y, Z))) -> Y
  , 2nd(cons(X, X1)) -> 2nd(cons1(X, activate(X1)))
  , activate(X) -> X
  , activate(n__from(X)) -> from(X)
  , from(X) -> cons(X, n__from(s(X)))
  , from(X) -> n__from(X) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(1))

Empty rules are trivially bounded

Hurray, we answered YES(O(1),O(n^1))