We consider the following Problem:

  Strict Trs:
    {  g(s(x)) -> f(x)
     , f(0()) -> s(0())
     , f(s(x)) -> s(s(g(x)))
     , g(0()) -> 0()}
  StartTerms: basic terms
  Strategy: innermost

Certificate: YES(?,O(n^1))

Proof:
  We consider the following Problem:
  
    Strict Trs:
      {  g(s(x)) -> f(x)
       , f(0()) -> s(0())
       , f(s(x)) -> s(s(g(x)))
       , g(0()) -> 0()}
    StartTerms: basic terms
    Strategy: innermost
  
  Certificate: YES(?,O(n^1))
  
  Proof:
    The weightgap principle applies, where following rules are oriented strictly:
    
    TRS Component:
      {  f(0()) -> s(0())
       , g(0()) -> 0()}
    
    Interpretation of nonconstant growth:
    -------------------------------------
      The following argument positions are usable:
        Uargs(g) = {}, Uargs(s) = {1}, Uargs(f) = {}
      We have the following EDA-non-satisfying and IDA(1)-non-satisfying matrix interpretation:
      Interpretation Functions:
       g(x1) = [0 0] x1 + [1]
               [1 0]      [1]
       s(x1) = [1 0] x1 + [0]
               [0 0]      [1]
       f(x1) = [0 0] x1 + [1]
               [0 0]      [1]
       0() = [0]
             [0]
    
    The strictly oriented rules are moved into the weak component.
    
    We consider the following Problem:
    
      Strict Trs:
        {  g(s(x)) -> f(x)
         , f(s(x)) -> s(s(g(x)))}
      Weak Trs:
        {  f(0()) -> s(0())
         , g(0()) -> 0()}
      StartTerms: basic terms
      Strategy: innermost
    
    Certificate: YES(?,O(n^1))
    
    Proof:
      The weightgap principle applies, where following rules are oriented strictly:
      
      TRS Component: {f(s(x)) -> s(s(g(x)))}
      
      Interpretation of nonconstant growth:
      -------------------------------------
        The following argument positions are usable:
          Uargs(g) = {}, Uargs(s) = {1}, Uargs(f) = {}
        We have the following EDA-non-satisfying and IDA(1)-non-satisfying matrix interpretation:
        Interpretation Functions:
         g(x1) = [0 0] x1 + [1]
                 [1 0]      [1]
         s(x1) = [1 0] x1 + [0]
                 [0 0]      [1]
         f(x1) = [0 0] x1 + [3]
                 [0 0]      [1]
         0() = [0]
               [0]
      
      The strictly oriented rules are moved into the weak component.
      
      We consider the following Problem:
      
        Strict Trs: {g(s(x)) -> f(x)}
        Weak Trs:
          {  f(s(x)) -> s(s(g(x)))
           , f(0()) -> s(0())
           , g(0()) -> 0()}
        StartTerms: basic terms
        Strategy: innermost
      
      Certificate: YES(?,O(n^1))
      
      Proof:
        The weightgap principle applies, where following rules are oriented strictly:
        
        TRS Component: {g(s(x)) -> f(x)}
        
        Interpretation of nonconstant growth:
        -------------------------------------
          The following argument positions are usable:
            Uargs(g) = {}, Uargs(s) = {1}, Uargs(f) = {}
          We have the following EDA-non-satisfying and IDA(1)-non-satisfying matrix interpretation:
          Interpretation Functions:
           g(x1) = [0 1] x1 + [3]
                   [0 1]      [1]
           s(x1) = [1 0] x1 + [0]
                   [0 1]      [1]
           f(x1) = [0 1] x1 + [3]
                   [0 1]      [2]
           0() = [0]
                 [1]
        
        The strictly oriented rules are moved into the weak component.
        
        We consider the following Problem:
        
          Weak Trs:
            {  g(s(x)) -> f(x)
             , f(s(x)) -> s(s(g(x)))
             , f(0()) -> s(0())
             , g(0()) -> 0()}
          StartTerms: basic terms
          Strategy: innermost
        
        Certificate: YES(O(1),O(1))
        
        Proof:
          We consider the following Problem:
          
            Weak Trs:
              {  g(s(x)) -> f(x)
               , f(s(x)) -> s(s(g(x)))
               , f(0()) -> s(0())
               , g(0()) -> 0()}
            StartTerms: basic terms
            Strategy: innermost
          
          Certificate: YES(O(1),O(1))
          
          Proof:
            Empty rules are trivially bounded

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