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

Strict Trs:
  { double(x) -> +(x, x)
  , double(0()) -> 0()
  , double(s(x)) -> s(s(double(x)))
  , +(x, 0()) -> x
  , +(x, s(y)) -> s(+(x, y))
  , +(s(x), y) -> s(+(x, y)) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

We add the following weak dependency pairs:

Strict DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , double^#(0()) -> c_2()
  , double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x)
  , +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }

and mark the set of starting terms.

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

Strict DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , double^#(0()) -> c_2()
  , double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x)
  , +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Strict Trs:
  { double(x) -> +(x, x)
  , double(0()) -> 0()
  , double(s(x)) -> s(s(double(x)))
  , +(x, 0()) -> x
  , +(x, s(y)) -> s(+(x, y))
  , +(s(x), y) -> s(+(x, y)) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

No rule is usable, rules are removed from the input problem.

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

Strict DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , double^#(0()) -> c_2()
  , double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x)
  , +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

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

The following argument positions are usable:
  Uargs(c_1) = {1}, Uargs(c_3) = {1}, Uargs(c_5) = {1},
  Uargs(c_6) = {1}

TcT has computed the following constructor-restricted matrix
interpretation.

             [0] = [0]           
                   [0]           
                                 
         [s](x1) = [1 0] x1 + [0]
                   [0 0]      [0]
                                 
  [double^#](x1) = [1]           
                   [0]           
                                 
       [c_1](x1) = [1 0] x1 + [0]
                   [0 1]      [0]
                                 
   [+^#](x1, x2) = [0]           
                   [0]           
                                 
           [c_2] = [0]           
                   [0]           
                                 
       [c_3](x1) = [1 0] x1 + [0]
                   [0 1]      [0]
                                 
       [c_4](x1) = [0]           
                   [0]           
                                 
       [c_5](x1) = [1 0] x1 + [0]
                   [0 1]      [0]
                                 
       [c_6](x1) = [1 0] x1 + [0]
                   [0 1]      [0]

The order satisfies the following ordering constraints:

     [double^#(x)] =  [1]               
                      [0]               
                   >  [0]               
                      [0]               
                   =  [c_1(+^#(x, x))]  
                                        
   [double^#(0())] =  [1]               
                      [0]               
                   >  [0]               
                      [0]               
                   =  [c_2()]           
                                        
  [double^#(s(x))] =  [1]               
                      [0]               
                   >= [1]               
                      [0]               
                   =  [c_3(double^#(x))]
                                        
     [+^#(x, 0())] =  [0]               
                      [0]               
                   >= [0]               
                      [0]               
                   =  [c_4(x)]          
                                        
    [+^#(x, s(y))] =  [0]               
                      [0]               
                   >= [0]               
                      [0]               
                   =  [c_5(+^#(x, y))]  
                                        
    [+^#(s(x), y)] =  [0]               
                      [0]               
                   >= [0]               
                      [0]               
                   =  [c_6(+^#(x, y))]  
                                        

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 DPs:
  { double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x)
  , +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Weak DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , double^#(0()) -> c_2() }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

The following weak DPs constitute a sub-graph of the DG that is
closed under successors. The DPs are removed.

{ double^#(0()) -> c_2() }

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

Strict DPs:
  { double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x)
  , +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Weak DPs: { double^#(x) -> c_1(+^#(x, x)) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

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

DPs:
  { 2: +^#(x, 0()) -> c_4(x)
  , 5: double^#(x) -> c_1(+^#(x, x)) }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_1) = {1}, Uargs(c_3) = {1}, Uargs(c_5) = {1},
    Uargs(c_6) = {1}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA).
  
               [0] = [4]         
                                 
           [s](x1) = [1] x1 + [0]
                                 
    [double^#](x1) = [4] x1 + [1]
                                 
         [c_1](x1) = [4] x1 + [0]
                                 
     [+^#](x1, x2) = [1] x2 + [0]
                                 
         [c_3](x1) = [1] x1 + [0]
                                 
         [c_4](x1) = [1]         
                                 
         [c_5](x1) = [1] x1 + [0]
                                 
         [c_6](x1) = [1] x1 + [0]
  
  The order satisfies the following ordering constraints:
  
       [double^#(x)] =  [4] x + [1]       
                     >  [4] x + [0]       
                     =  [c_1(+^#(x, x))]  
                                          
    [double^#(s(x))] =  [4] x + [1]       
                     >= [4] x + [1]       
                     =  [c_3(double^#(x))]
                                          
       [+^#(x, 0())] =  [4]               
                     >  [1]               
                     =  [c_4(x)]          
                                          
      [+^#(x, s(y))] =  [1] y + [0]       
                     >= [1] y + [0]       
                     =  [c_5(+^#(x, y))]  
                                          
      [+^#(s(x), y)] =  [1] y + [0]       
                     >= [1] y + [0]       
                     =  [c_6(+^#(x, y))]  
                                          

The strictly oriented rules are moved into the weak component.

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

Strict DPs:
  { double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Weak DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , +^#(x, 0()) -> c_4(x) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

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

DPs:
  { 1: double^#(s(x)) -> c_3(double^#(x))
  , 5: +^#(x, 0()) -> c_4(x) }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_1) = {1}, Uargs(c_3) = {1}, Uargs(c_5) = {1},
    Uargs(c_6) = {1}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA).
  
               [0] = [0]         
                                 
           [s](x1) = [1] x1 + [4]
                                 
    [double^#](x1) = [1] x1 + [5]
                                 
         [c_1](x1) = [1] x1 + [0]
                                 
     [+^#](x1, x2) = [1] x2 + [5]
                                 
         [c_3](x1) = [1] x1 + [0]
                                 
         [c_4](x1) = [0]         
                                 
         [c_5](x1) = [1] x1 + [4]
                                 
         [c_6](x1) = [1] x1 + [0]
  
  The order satisfies the following ordering constraints:
  
       [double^#(x)] =  [1] x + [5]       
                     >= [1] x + [5]       
                     =  [c_1(+^#(x, x))]  
                                          
    [double^#(s(x))] =  [1] x + [9]       
                     >  [1] x + [5]       
                     =  [c_3(double^#(x))]
                                          
       [+^#(x, 0())] =  [5]               
                     >  [0]               
                     =  [c_4(x)]          
                                          
      [+^#(x, s(y))] =  [1] y + [9]       
                     >= [1] y + [9]       
                     =  [c_5(+^#(x, y))]  
                                          
      [+^#(s(x), y)] =  [1] y + [5]       
                     >= [1] y + [5]       
                     =  [c_6(+^#(x, y))]  
                                          

We return to the main proof. Consider the set of all dependency
pairs

:
  { 1: double^#(s(x)) -> c_3(double^#(x))
  , 2: +^#(x, s(y)) -> c_5(+^#(x, y))
  , 3: +^#(s(x), y) -> c_6(+^#(x, y))
  , 4: double^#(x) -> c_1(+^#(x, x))
  , 5: +^#(x, 0()) -> c_4(x) }

Processor 'matrix interpretation of dimension 1' induces the
complexity certificate YES(?,O(n^1)) on application of dependency
pairs {1,5}. These cover all (indirect) predecessors of dependency
pairs {1,4,5}, their number of application is equally bounded. The
dependency pairs are shifted into the weak component.

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

Strict DPs:
  { +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Weak DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

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

DPs:
  { 2: +^#(s(x), y) -> c_6(+^#(x, y))
  , 4: double^#(s(x)) -> c_3(double^#(x))
  , 5: +^#(x, 0()) -> c_4(x) }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_1) = {1}, Uargs(c_3) = {1}, Uargs(c_5) = {1},
    Uargs(c_6) = {1}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA).
  
               [0] = [0]         
                                 
           [s](x1) = [1] x1 + [4]
                                 
    [double^#](x1) = [2] x1 + [1]
                                 
         [c_1](x1) = [1] x1 + [0]
                                 
     [+^#](x1, x2) = [1] x1 + [1]
                                 
         [c_3](x1) = [1] x1 + [0]
                                 
         [c_4](x1) = [1] x1 + [0]
                                 
         [c_5](x1) = [1] x1 + [0]
                                 
         [c_6](x1) = [1] x1 + [2]
  
  The order satisfies the following ordering constraints:
  
       [double^#(x)] =  [2] x + [1]       
                     >= [1] x + [1]       
                     =  [c_1(+^#(x, x))]  
                                          
    [double^#(s(x))] =  [2] x + [9]       
                     >  [2] x + [1]       
                     =  [c_3(double^#(x))]
                                          
       [+^#(x, 0())] =  [1] x + [1]       
                     >  [1] x + [0]       
                     =  [c_4(x)]          
                                          
      [+^#(x, s(y))] =  [1] x + [1]       
                     >= [1] x + [1]       
                     =  [c_5(+^#(x, y))]  
                                          
      [+^#(s(x), y)] =  [1] x + [5]       
                     >  [1] x + [3]       
                     =  [c_6(+^#(x, y))]  
                                          

We return to the main proof. Consider the set of all dependency
pairs

:
  { 1: +^#(x, s(y)) -> c_5(+^#(x, y))
  , 2: +^#(s(x), y) -> c_6(+^#(x, y))
  , 3: double^#(x) -> c_1(+^#(x, x))
  , 4: double^#(s(x)) -> c_3(double^#(x))
  , 5: +^#(x, 0()) -> c_4(x) }

Processor 'matrix interpretation of dimension 1' induces the
complexity certificate YES(?,O(n^1)) on application of dependency
pairs {2,4,5}. These cover all (indirect) predecessors of
dependency pairs {2,3,4,5}, their number of application is equally
bounded. The dependency pairs are shifted into the weak component.

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

Strict DPs: { +^#(x, s(y)) -> c_5(+^#(x, y)) }
Weak DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x)
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(n^1))

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

DPs:
  { 1: +^#(x, s(y)) -> c_5(+^#(x, y))
  , 3: double^#(s(x)) -> c_3(double^#(x))
  , 4: +^#(x, 0()) -> c_4(x) }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_1) = {1}, Uargs(c_3) = {1}, Uargs(c_5) = {1},
    Uargs(c_6) = {1}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA).
  
               [0] = [0]         
                                 
           [s](x1) = [1] x1 + [4]
                                 
    [double^#](x1) = [2] x1 + [5]
                                 
         [c_1](x1) = [1] x1 + [0]
                                 
     [+^#](x1, x2) = [1] x2 + [5]
                                 
         [c_3](x1) = [1] x1 + [4]
                                 
         [c_4](x1) = [0]         
                                 
         [c_5](x1) = [1] x1 + [0]
                                 
         [c_6](x1) = [1] x1 + [0]
  
  The order satisfies the following ordering constraints:
  
       [double^#(x)] =  [2] x + [5]       
                     >= [1] x + [5]       
                     =  [c_1(+^#(x, x))]  
                                          
    [double^#(s(x))] =  [2] x + [13]      
                     >  [2] x + [9]       
                     =  [c_3(double^#(x))]
                                          
       [+^#(x, 0())] =  [5]               
                     >  [0]               
                     =  [c_4(x)]          
                                          
      [+^#(x, s(y))] =  [1] y + [9]       
                     >  [1] y + [5]       
                     =  [c_5(+^#(x, y))]  
                                          
      [+^#(s(x), y)] =  [1] y + [5]       
                     >= [1] y + [5]       
                     =  [c_6(+^#(x, y))]  
                                          

We return to the main proof. Consider the set of all dependency
pairs

:
  { 1: +^#(x, s(y)) -> c_5(+^#(x, y))
  , 2: double^#(x) -> c_1(+^#(x, x))
  , 3: double^#(s(x)) -> c_3(double^#(x))
  , 4: +^#(x, 0()) -> c_4(x)
  , 5: +^#(s(x), y) -> c_6(+^#(x, y)) }

Processor 'matrix interpretation of dimension 1' induces the
complexity certificate YES(?,O(n^1)) on application of dependency
pairs {1,3,4}. These cover all (indirect) predecessors of
dependency pairs {1,2,3,4}, their number of application is equally
bounded. The dependency pairs are shifted into the weak component.

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

Weak DPs:
  { double^#(x) -> c_1(+^#(x, x))
  , double^#(s(x)) -> c_3(double^#(x))
  , +^#(x, 0()) -> c_4(x)
  , +^#(x, s(y)) -> c_5(+^#(x, y))
  , +^#(s(x), y) -> c_6(+^#(x, y)) }
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(1))

The following weak DPs constitute a sub-graph of the DG that is
closed under successors. The DPs are removed.

{ double^#(x) -> c_1(+^#(x, x))
, double^#(s(x)) -> c_3(double^#(x))
, +^#(x, 0()) -> c_4(x)
, +^#(x, s(y)) -> c_5(+^#(x, y))
, +^#(s(x), y) -> c_6(+^#(x, y)) }

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

Rules: Empty
Obligation:
  runtime complexity
Answer:
  YES(O(1),O(1))

Empty rules are trivially bounded

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