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

Strict Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true()
  , gcd(s(X), s(Y)) -> if(le(Y, X), s(X), s(Y))
  , gcd(s(X), 0()) -> s(X)
  , gcd(0(), Y) -> 0()
  , if(false(), s(X), s(Y)) -> gcd(minus(Y, X), s(X))
  , if(true(), s(X), s(Y)) -> gcd(minus(X, Y), s(Y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We add the following dependency tuples:

Strict DPs:
  { minus^#(X, s(Y)) -> c_1(pred^#(minus(X, Y)), minus^#(X, Y))
  , minus^#(X, 0()) -> c_2()
  , pred^#(s(X)) -> c_3()
  , le^#(s(X), s(Y)) -> c_4(le^#(X, Y))
  , le^#(s(X), 0()) -> c_5()
  , le^#(0(), Y) -> c_6()
  , gcd^#(s(X), s(Y)) -> c_7(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , gcd^#(s(X), 0()) -> c_8()
  , gcd^#(0(), Y) -> c_9()
  , if^#(false(), s(X), s(Y)) ->
    c_10(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_11(gcd^#(minus(X, Y), s(Y)), minus^#(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^2)).

Strict DPs:
  { minus^#(X, s(Y)) -> c_1(pred^#(minus(X, Y)), minus^#(X, Y))
  , minus^#(X, 0()) -> c_2()
  , pred^#(s(X)) -> c_3()
  , le^#(s(X), s(Y)) -> c_4(le^#(X, Y))
  , le^#(s(X), 0()) -> c_5()
  , le^#(0(), Y) -> c_6()
  , gcd^#(s(X), s(Y)) -> c_7(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , gcd^#(s(X), 0()) -> c_8()
  , gcd^#(0(), Y) -> c_9()
  , if^#(false(), s(X), s(Y)) ->
    c_10(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_11(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true()
  , gcd(s(X), s(Y)) -> if(le(Y, X), s(X), s(Y))
  , gcd(s(X), 0()) -> s(X)
  , gcd(0(), Y) -> 0()
  , if(false(), s(X), s(Y)) -> gcd(minus(Y, X), s(X))
  , if(true(), s(X), s(Y)) -> gcd(minus(X, Y), s(Y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We estimate the number of application of {2,3,5,6,8,9} by
applications of Pre({2,3,5,6,8,9}) = {1,4,7,10,11}. Here rules are
labeled as follows:

  DPs:
    { 1: minus^#(X, s(Y)) -> c_1(pred^#(minus(X, Y)), minus^#(X, Y))
    , 2: minus^#(X, 0()) -> c_2()
    , 3: pred^#(s(X)) -> c_3()
    , 4: le^#(s(X), s(Y)) -> c_4(le^#(X, Y))
    , 5: le^#(s(X), 0()) -> c_5()
    , 6: le^#(0(), Y) -> c_6()
    , 7: gcd^#(s(X), s(Y)) ->
         c_7(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
    , 8: gcd^#(s(X), 0()) -> c_8()
    , 9: gcd^#(0(), Y) -> c_9()
    , 10: if^#(false(), s(X), s(Y)) ->
          c_10(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
    , 11: if^#(true(), s(X), s(Y)) ->
          c_11(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }

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

Strict DPs:
  { minus^#(X, s(Y)) -> c_1(pred^#(minus(X, Y)), minus^#(X, Y))
  , le^#(s(X), s(Y)) -> c_4(le^#(X, Y))
  , gcd^#(s(X), s(Y)) -> c_7(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , if^#(false(), s(X), s(Y)) ->
    c_10(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_11(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
Weak DPs:
  { minus^#(X, 0()) -> c_2()
  , pred^#(s(X)) -> c_3()
  , le^#(s(X), 0()) -> c_5()
  , le^#(0(), Y) -> c_6()
  , gcd^#(s(X), 0()) -> c_8()
  , gcd^#(0(), Y) -> c_9() }
Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true()
  , gcd(s(X), s(Y)) -> if(le(Y, X), s(X), s(Y))
  , gcd(s(X), 0()) -> s(X)
  , gcd(0(), Y) -> 0()
  , if(false(), s(X), s(Y)) -> gcd(minus(Y, X), s(X))
  , if(true(), s(X), s(Y)) -> gcd(minus(X, Y), s(Y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

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

{ minus^#(X, 0()) -> c_2()
, pred^#(s(X)) -> c_3()
, le^#(s(X), 0()) -> c_5()
, le^#(0(), Y) -> c_6()
, gcd^#(s(X), 0()) -> c_8()
, gcd^#(0(), Y) -> c_9() }

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

Strict DPs:
  { minus^#(X, s(Y)) -> c_1(pred^#(minus(X, Y)), minus^#(X, Y))
  , le^#(s(X), s(Y)) -> c_4(le^#(X, Y))
  , gcd^#(s(X), s(Y)) -> c_7(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , if^#(false(), s(X), s(Y)) ->
    c_10(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_11(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true()
  , gcd(s(X), s(Y)) -> if(le(Y, X), s(X), s(Y))
  , gcd(s(X), 0()) -> s(X)
  , gcd(0(), Y) -> 0()
  , if(false(), s(X), s(Y)) -> gcd(minus(Y, X), s(X))
  , if(true(), s(X), s(Y)) -> gcd(minus(X, Y), s(Y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

Due to missing edges in the dependency-graph, the right-hand sides
of following rules could be simplified:

  { minus^#(X, s(Y)) -> c_1(pred^#(minus(X, Y)), minus^#(X, Y)) }

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

Strict DPs:
  { minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
  , le^#(s(X), s(Y)) -> c_2(le^#(X, Y))
  , gcd^#(s(X), s(Y)) -> c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , if^#(false(), s(X), s(Y)) ->
    c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_5(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true()
  , gcd(s(X), s(Y)) -> if(le(Y, X), s(X), s(Y))
  , gcd(s(X), 0()) -> s(X)
  , gcd(0(), Y) -> 0()
  , if(false(), s(X), s(Y)) -> gcd(minus(Y, X), s(X))
  , if(true(), s(X), s(Y)) -> gcd(minus(X, Y), s(Y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We replace rewrite rules by usable rules:

  Weak Usable Rules:
    { minus(X, s(Y)) -> pred(minus(X, Y))
    , minus(X, 0()) -> X
    , pred(s(X)) -> X
    , le(s(X), s(Y)) -> le(X, Y)
    , le(s(X), 0()) -> false()
    , le(0(), Y) -> true() }

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

Strict DPs:
  { minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
  , le^#(s(X), s(Y)) -> c_2(le^#(X, Y))
  , gcd^#(s(X), s(Y)) -> c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , if^#(false(), s(X), s(Y)) ->
    c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_5(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We decompose the input problem according to the dependency graph
into the upper component

  { gcd^#(s(X), s(Y)) -> c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , if^#(false(), s(X), s(Y)) ->
    c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_5(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }

and lower component

  { minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
  , le^#(s(X), s(Y)) -> c_2(le^#(X, Y)) }

Further, following extension rules are added to the lower
component.

{ gcd^#(s(X), s(Y)) -> le^#(Y, X)
, gcd^#(s(X), s(Y)) -> if^#(le(Y, X), s(X), s(Y))
, if^#(false(), s(X), s(Y)) -> minus^#(Y, X)
, if^#(false(), s(X), s(Y)) -> gcd^#(minus(Y, X), s(X))
, if^#(true(), s(X), s(Y)) -> minus^#(X, Y)
, if^#(true(), s(X), s(Y)) -> gcd^#(minus(X, Y), s(Y)) }

TcT solves the upper component with certificate YES(O(1),O(n^1)).

Sub-proof:
----------
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(n^1)).
  
  Strict DPs:
    { gcd^#(s(X), s(Y)) -> c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
    , if^#(false(), s(X), s(Y)) ->
      c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
    , if^#(true(), s(X), s(Y)) ->
      c_5(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
  Weak Trs:
    { minus(X, s(Y)) -> pred(minus(X, Y))
    , minus(X, 0()) -> X
    , pred(s(X)) -> X
    , le(s(X), s(Y)) -> le(X, Y)
    , le(s(X), 0()) -> false()
    , le(0(), Y) -> true() }
  Obligation:
    innermost 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: gcd^#(s(X), s(Y)) ->
         c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
    , 2: if^#(false(), s(X), s(Y)) ->
         c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
    , 3: if^#(true(), s(X), s(Y)) ->
         c_5(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
  Trs: { pred(s(X)) -> X }
  
  Sub-proof:
  ----------
    The following argument positions are usable:
      Uargs(c_3) = {1}, Uargs(c_4) = {1}, Uargs(c_5) = {1}
    
    TcT has computed the following constructor-based matrix
    interpretation satisfying not(EDA).
    
         [minus](x1, x2) = [1] x1 + [0]                  
                                                         
                 [s](x1) = [1] x1 + [2]                  
                                                         
              [pred](x1) = [1] x1 + [0]                  
                                                         
                     [0] = [1]                           
                                                         
            [le](x1, x2) = [0]                           
                                                         
                 [false] = [0]                           
                                                         
                  [true] = [0]                           
                                                         
       [minus^#](x1, x2) = [2]                           
                                                         
          [le^#](x1, x2) = [2]                           
                                                         
         [gcd^#](x1, x2) = [3] x1 + [3] x2 + [3]         
                                                         
      [if^#](x1, x2, x3) = [3] x1 + [3] x2 + [3] x3 + [0]
                                                         
           [c_3](x1, x2) = [1] x1 + [1] x2 + [0]         
                                                         
           [c_4](x1, x2) = [1] x1 + [1] x2 + [0]         
                                                         
           [c_5](x1, x2) = [1] x1 + [1] x2 + [0]         
    
    The order satisfies the following ordering constraints:
    
                 [minus(X, s(Y))] =  [1] X + [0]                                   
                                  >= [1] X + [0]                                   
                                  =  [pred(minus(X, Y))]                           
                                                                                   
                  [minus(X, 0())] =  [1] X + [0]                                   
                                  >= [1] X + [0]                                   
                                  =  [X]                                           
                                                                                   
                     [pred(s(X))] =  [1] X + [2]                                   
                                  >  [1] X + [0]                                   
                                  =  [X]                                           
                                                                                   
                 [le(s(X), s(Y))] =  [0]                                           
                                  >= [0]                                           
                                  =  [le(X, Y)]                                    
                                                                                   
                  [le(s(X), 0())] =  [0]                                           
                                  >= [0]                                           
                                  =  [false()]                                     
                                                                                   
                     [le(0(), Y)] =  [0]                                           
                                  >= [0]                                           
                                  =  [true()]                                      
                                                                                   
              [gcd^#(s(X), s(Y))] =  [3] X + [3] Y + [15]                          
                                  >  [3] X + [3] Y + [14]                          
                                  =  [c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))] 
                                                                                   
      [if^#(false(), s(X), s(Y))] =  [3] X + [3] Y + [12]                          
                                  >  [3] X + [3] Y + [11]                          
                                  =  [c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))]
                                                                                   
       [if^#(true(), s(X), s(Y))] =  [3] X + [3] Y + [12]                          
                                  >  [3] X + [3] Y + [11]                          
                                  =  [c_5(gcd^#(minus(X, Y), s(Y)), minus^#(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(1)).
  
  Weak DPs:
    { gcd^#(s(X), s(Y)) -> c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
    , if^#(false(), s(X), s(Y)) ->
      c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
    , if^#(true(), s(X), s(Y)) ->
      c_5(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
  Weak Trs:
    { minus(X, s(Y)) -> pred(minus(X, Y))
    , minus(X, 0()) -> X
    , pred(s(X)) -> X
    , le(s(X), s(Y)) -> le(X, Y)
    , le(s(X), 0()) -> false()
    , le(0(), Y) -> true() }
  Obligation:
    innermost 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.
  
  { gcd^#(s(X), s(Y)) -> c_3(if^#(le(Y, X), s(X), s(Y)), le^#(Y, X))
  , if^#(false(), s(X), s(Y)) ->
    c_4(gcd^#(minus(Y, X), s(X)), minus^#(Y, X))
  , if^#(true(), s(X), s(Y)) ->
    c_5(gcd^#(minus(X, Y), s(Y)), minus^#(X, Y)) }
  
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(1)).
  
  Weak Trs:
    { minus(X, s(Y)) -> pred(minus(X, Y))
    , minus(X, 0()) -> X
    , pred(s(X)) -> X
    , le(s(X), s(Y)) -> le(X, Y)
    , le(s(X), 0()) -> false()
    , le(0(), Y) -> true() }
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(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(1)).
  
  Rules: Empty
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(1))
  
  Empty rules are trivially bounded

We return to the main proof.

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

Strict DPs:
  { minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
  , le^#(s(X), s(Y)) -> c_2(le^#(X, Y)) }
Weak DPs:
  { gcd^#(s(X), s(Y)) -> le^#(Y, X)
  , gcd^#(s(X), s(Y)) -> if^#(le(Y, X), s(X), s(Y))
  , if^#(false(), s(X), s(Y)) -> minus^#(Y, X)
  , if^#(false(), s(X), s(Y)) -> gcd^#(minus(Y, X), s(X))
  , if^#(true(), s(X), s(Y)) -> minus^#(X, Y)
  , if^#(true(), s(X), s(Y)) -> gcd^#(minus(X, Y), s(Y)) }
Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

We use the processor 'Small Polynomial Path Order (PS,1-bounded)'
to orient following rules strictly.

DPs:
  { 1: minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
  , 2: le^#(s(X), s(Y)) -> c_2(le^#(X, Y))
  , 3: gcd^#(s(X), s(Y)) -> le^#(Y, X)
  , 5: if^#(false(), s(X), s(Y)) -> minus^#(Y, X)
  , 6: if^#(false(), s(X), s(Y)) -> gcd^#(minus(Y, X), s(X))
  , 7: if^#(true(), s(X), s(Y)) -> minus^#(X, Y)
  , 8: if^#(true(), s(X), s(Y)) -> gcd^#(minus(X, Y), s(Y)) }
Trs: { pred(s(X)) -> X }

Sub-proof:
----------
  The input was oriented with the instance of 'Small Polynomial Path
  Order (PS,1-bounded)' as induced by the safe mapping
  
   safe(minus) = {}, safe(s) = {1}, safe(pred) = {}, safe(0) = {},
   safe(le) = {1}, safe(false) = {}, safe(true) = {},
   safe(minus^#) = {1}, safe(le^#) = {2}, safe(gcd^#) = {},
   safe(if^#) = {1}, safe(c_1) = {}, safe(c_2) = {}
  
  and precedence
  
   minus > pred, gcd^# > le, minus^# ~ if^#, le^# ~ gcd^#,
   gcd^# ~ if^# .
  
  Following symbols are considered recursive:
  
   {minus^#, le^#, gcd^#, if^#}
  
  The recursion depth is 1.
  
  Further, following argument filtering is employed:
  
   pi(minus) = 1, pi(s) = [1], pi(pred) = 1, pi(0) = [], pi(le) = [1],
   pi(false) = [], pi(true) = [], pi(minus^#) = [2],
   pi(le^#) = [1, 2], pi(gcd^#) = [1, 2], pi(if^#) = [2, 3],
   pi(c_1) = [1], pi(c_2) = [1]
  
  Usable defined function symbols are a subset of:
  
   {minus, pred, minus^#, le^#, gcd^#, if^#}
  
  For your convenience, here are the satisfied ordering constraints:
  
             pi(minus^#(X, s(Y))) =  minus^#(s(; Y);)              
                                  >  c_1(minus^#(Y;);)             
                                  =  pi(c_1(minus^#(X, Y)))        
                                                                   
             pi(le^#(s(X), s(Y))) =  le^#(s(; X); s(; Y))          
                                  >  c_2(le^#(X; Y);)              
                                  =  pi(c_2(le^#(X, Y)))           
                                                                   
            pi(gcd^#(s(X), s(Y))) =  gcd^#(s(; X),  s(; Y);)       
                                  >  le^#(Y; X)                    
                                  =  pi(le^#(Y, X))                
                                                                   
            pi(gcd^#(s(X), s(Y))) =  gcd^#(s(; X),  s(; Y);)       
                                  >= if^#(s(; X),  s(; Y);)        
                                  =  pi(if^#(le(Y, X), s(X), s(Y)))
                                                                   
    pi(if^#(false(), s(X), s(Y))) =  if^#(s(; X),  s(; Y);)        
                                  >  minus^#(X;)                   
                                  =  pi(minus^#(Y, X))             
                                                                   
    pi(if^#(false(), s(X), s(Y))) =  if^#(s(; X),  s(; Y);)        
                                  >  gcd^#(Y,  s(; X);)            
                                  =  pi(gcd^#(minus(Y, X), s(X)))  
                                                                   
     pi(if^#(true(), s(X), s(Y))) =  if^#(s(; X),  s(; Y);)        
                                  >  minus^#(Y;)                   
                                  =  pi(minus^#(X, Y))             
                                                                   
     pi(if^#(true(), s(X), s(Y))) =  if^#(s(; X),  s(; Y);)        
                                  >  gcd^#(X,  s(; Y);)            
                                  =  pi(gcd^#(minus(X, Y), s(Y)))  
                                                                   
               pi(minus(X, s(Y))) =  X                             
                                  >= X                             
                                  =  pi(pred(minus(X, Y)))         
                                                                   
                pi(minus(X, 0())) =  X                             
                                  >= X                             
                                  =  pi(X)                         
                                                                   
                   pi(pred(s(X))) =  s(; X)                        
                                  >  X                             
                                  =  pi(X)                         
                                                                   

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

:
  { 1: minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
  , 2: le^#(s(X), s(Y)) -> c_2(le^#(X, Y))
  , 3: gcd^#(s(X), s(Y)) -> le^#(Y, X)
  , 4: gcd^#(s(X), s(Y)) -> if^#(le(Y, X), s(X), s(Y))
  , 5: if^#(false(), s(X), s(Y)) -> minus^#(Y, X)
  , 6: if^#(false(), s(X), s(Y)) -> gcd^#(minus(Y, X), s(X))
  , 7: if^#(true(), s(X), s(Y)) -> minus^#(X, Y)
  , 8: if^#(true(), s(X), s(Y)) -> gcd^#(minus(X, Y), s(Y)) }

Processor 'Small Polynomial Path Order (PS,1-bounded)' induces the
complexity certificate YES(?,O(n^1)) on application of dependency
pairs {1,2,3,5,6,7,8}. These cover all (indirect) predecessors of
dependency pairs {1,2,3,4,5,6,7,8}, 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:
  { minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
  , le^#(s(X), s(Y)) -> c_2(le^#(X, Y))
  , gcd^#(s(X), s(Y)) -> le^#(Y, X)
  , gcd^#(s(X), s(Y)) -> if^#(le(Y, X), s(X), s(Y))
  , if^#(false(), s(X), s(Y)) -> minus^#(Y, X)
  , if^#(false(), s(X), s(Y)) -> gcd^#(minus(Y, X), s(X))
  , if^#(true(), s(X), s(Y)) -> minus^#(X, Y)
  , if^#(true(), s(X), s(Y)) -> gcd^#(minus(X, Y), s(Y)) }
Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true() }
Obligation:
  innermost 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.

{ minus^#(X, s(Y)) -> c_1(minus^#(X, Y))
, le^#(s(X), s(Y)) -> c_2(le^#(X, Y))
, gcd^#(s(X), s(Y)) -> le^#(Y, X)
, gcd^#(s(X), s(Y)) -> if^#(le(Y, X), s(X), s(Y))
, if^#(false(), s(X), s(Y)) -> minus^#(Y, X)
, if^#(false(), s(X), s(Y)) -> gcd^#(minus(Y, X), s(X))
, if^#(true(), s(X), s(Y)) -> minus^#(X, Y)
, if^#(true(), s(X), s(Y)) -> gcd^#(minus(X, Y), s(Y)) }

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

Weak Trs:
  { minus(X, s(Y)) -> pred(minus(X, Y))
  , minus(X, 0()) -> X
  , pred(s(X)) -> X
  , le(s(X), s(Y)) -> le(X, Y)
  , le(s(X), 0()) -> false()
  , le(0(), Y) -> true() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(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(1)).

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

Empty rules are trivially bounded

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