(0) Obligation:

Clauses:

average(0, 0, Z) :- ','(!, eq(Z, 0)).
average(0, s(0), Z) :- ','(!, eq(Z, 0)).
average(0, s(s(0)), Z) :- ','(!, eq(Z, s(0))).
average(X, Y, Z) :- ','(p(X, P), average(P, s(Y), Z)).
average(X, Y, Z) :- ','(p(Y, P1), ','(p(P1, P2), ','(p(P2, P3), ','(average(s(X), P3, U), p(Z, U))))).
p(0, 0).
p(s(X), X).
eq(X, X).

Queries:

average(g,g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

average1(0, 0, 0).
average1(0, s(0), 0).
average1(0, s(s(0)), s(0)).
average1(0, T14, T16) :- average1(0, s(T14), T16).
average1(s(T17), T14, T16) :- average1(T17, s(T14), T16).
average1(T18, 0, T21) :- average1(s(T18), 0, X35).
average1(T18, 0, 0) :- average1(s(T18), 0, 0).
average1(T18, 0, s(0)) :- average1(s(T18), 0, 0).
average1(T18, 0, s(T24)) :- average1(s(T18), 0, T24).
average1(T18, s(0), T21) :- average1(s(T18), 0, X35).
average1(T18, s(0), 0) :- average1(s(T18), 0, 0).
average1(T18, s(0), s(0)) :- average1(s(T18), 0, 0).
average1(T18, s(0), s(T28)) :- average1(s(T18), 0, T28).
average1(T18, s(s(0)), T21) :- average1(s(T18), 0, X35).
average1(T18, s(s(0)), 0) :- average1(s(T18), 0, 0).
average1(T18, s(s(0)), s(0)) :- average1(s(T18), 0, 0).
average1(T18, s(s(0)), s(T32)) :- average1(s(T18), 0, T32).
average1(T18, s(s(s(T33))), T21) :- average1(s(T18), T33, X35).
average1(T18, s(s(s(T33))), 0) :- average1(s(T18), T33, 0).
average1(T18, s(s(s(T33))), s(0)) :- average1(s(T18), T33, 0).
average1(T18, s(s(s(T33))), s(T36)) :- average1(s(T18), T33, T36).

Queries:

average1(g,g,a).

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
average1_in: (b,b,f) (b,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga(x1, x2)
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x1, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U3_gga(x1, x2, x3)  =  U3_gga(x1, x3)
U4_gga(x1, x2)  =  U4_gga(x1, x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg(x1, x2, x3)
U1_ggg(x1, x2, x3)  =  U1_ggg(x1, x2, x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x1, x2, x3, x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x1, x2, x3)
U5_gga(x1, x2)  =  U5_gga(x1, x2)
U4_ggg(x1, x2)  =  U4_ggg(x1, x2)
U5_ggg(x1, x2)  =  U5_ggg(x1, x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x1, x2, x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x1, x2, x3)
U6_gga(x1, x2, x3)  =  U6_gga(x1, x3)
U7_gga(x1, x2, x3)  =  U7_gga(x1, x3)
U8_gga(x1, x2)  =  U8_gga(x1, x2)
U8_ggg(x1, x2)  =  U8_ggg(x1, x2)
U9_ggg(x1, x2)  =  U9_ggg(x1, x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x1, x2, x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x1, x2, x3)
U9_gga(x1, x2)  =  U9_gga(x1, x2)
U12_ggg(x1, x2)  =  U12_ggg(x1, x2)
U13_ggg(x1, x2)  =  U13_ggg(x1, x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x1, x2, x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x1, x2, x3, x4)
U10_gga(x1, x2, x3)  =  U10_gga(x1, x3)
U11_gga(x1, x2, x3)  =  U11_gga(x1, x3)
U12_gga(x1, x2)  =  U12_gga(x1, x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x1, x2, x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
U13_gga(x1, x2)  =  U13_gga(x1, x2)
U14_gga(x1, x2, x3)  =  U14_gga(x1, x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x1, x2, x4)
U16_gga(x1, x2, x3)  =  U16_gga(x1, x2, x3)
U17_gga(x1, x2, x3)  =  U17_gga(x1, x2, x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x1, x2, x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga(x1, x2)
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x1, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U3_gga(x1, x2, x3)  =  U3_gga(x1, x3)
U4_gga(x1, x2)  =  U4_gga(x1, x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg(x1, x2, x3)
U1_ggg(x1, x2, x3)  =  U1_ggg(x1, x2, x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x1, x2, x3, x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x1, x2, x3)
U5_gga(x1, x2)  =  U5_gga(x1, x2)
U4_ggg(x1, x2)  =  U4_ggg(x1, x2)
U5_ggg(x1, x2)  =  U5_ggg(x1, x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x1, x2, x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x1, x2, x3)
U6_gga(x1, x2, x3)  =  U6_gga(x1, x3)
U7_gga(x1, x2, x3)  =  U7_gga(x1, x3)
U8_gga(x1, x2)  =  U8_gga(x1, x2)
U8_ggg(x1, x2)  =  U8_ggg(x1, x2)
U9_ggg(x1, x2)  =  U9_ggg(x1, x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x1, x2, x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x1, x2, x3)
U9_gga(x1, x2)  =  U9_gga(x1, x2)
U12_ggg(x1, x2)  =  U12_ggg(x1, x2)
U13_ggg(x1, x2)  =  U13_ggg(x1, x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x1, x2, x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x1, x2, x3, x4)
U10_gga(x1, x2, x3)  =  U10_gga(x1, x3)
U11_gga(x1, x2, x3)  =  U11_gga(x1, x3)
U12_gga(x1, x2)  =  U12_gga(x1, x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x1, x2, x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
U13_gga(x1, x2)  =  U13_gga(x1, x2)
U14_gga(x1, x2, x3)  =  U14_gga(x1, x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x1, x2, x4)
U16_gga(x1, x2, x3)  =  U16_gga(x1, x2, x3)
U17_gga(x1, x2, x3)  =  U17_gga(x1, x2, x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x1, x2, x4)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(0, T14, T16) → U1_GGA(T14, T16, average1_in_gga(0, s(T14), T16))
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(s(T17), T14, T16) → U2_GGA(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(T18, 0, T21) → U3_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → U4_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(0, T14, T16) → U1_GGG(T14, T16, average1_in_ggg(0, s(T14), T16))
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(s(T17), T14, T16) → U2_GGG(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(T18, 0, T21) → U3_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → U5_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → U4_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(0)) → U5_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → U6_GGG(T18, T24, average1_in_ggg(s(T18), 0, T24))
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), T21) → U7_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → U6_GGA(T18, T24, average1_in_gga(s(T18), 0, T24))
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGA(T18, s(0), T21) → U7_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), 0) → U8_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → U8_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → U9_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → U10_GGG(T18, T28, average1_in_ggg(s(T18), 0, T28))
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → U11_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → U9_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → U12_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → U13_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → U14_GGG(T18, T32, average1_in_ggg(s(T18), 0, T32))
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → U15_GGG(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → U10_GGA(T18, T28, average1_in_gga(s(T18), 0, T28))
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → U11_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → U12_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → U16_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → U17_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → U18_GGG(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → U13_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → U14_GGA(T18, T32, average1_in_gga(s(T18), 0, T32))
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → U15_GGA(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → U16_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → U17_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → U18_GGA(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)

The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga(x1, x2)
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x1, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U3_gga(x1, x2, x3)  =  U3_gga(x1, x3)
U4_gga(x1, x2)  =  U4_gga(x1, x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg(x1, x2, x3)
U1_ggg(x1, x2, x3)  =  U1_ggg(x1, x2, x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x1, x2, x3, x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x1, x2, x3)
U5_gga(x1, x2)  =  U5_gga(x1, x2)
U4_ggg(x1, x2)  =  U4_ggg(x1, x2)
U5_ggg(x1, x2)  =  U5_ggg(x1, x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x1, x2, x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x1, x2, x3)
U6_gga(x1, x2, x3)  =  U6_gga(x1, x3)
U7_gga(x1, x2, x3)  =  U7_gga(x1, x3)
U8_gga(x1, x2)  =  U8_gga(x1, x2)
U8_ggg(x1, x2)  =  U8_ggg(x1, x2)
U9_ggg(x1, x2)  =  U9_ggg(x1, x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x1, x2, x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x1, x2, x3)
U9_gga(x1, x2)  =  U9_gga(x1, x2)
U12_ggg(x1, x2)  =  U12_ggg(x1, x2)
U13_ggg(x1, x2)  =  U13_ggg(x1, x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x1, x2, x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x1, x2, x3, x4)
U10_gga(x1, x2, x3)  =  U10_gga(x1, x3)
U11_gga(x1, x2, x3)  =  U11_gga(x1, x3)
U12_gga(x1, x2)  =  U12_gga(x1, x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x1, x2, x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
U13_gga(x1, x2)  =  U13_gga(x1, x2)
U14_gga(x1, x2, x3)  =  U14_gga(x1, x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x1, x2, x4)
U16_gga(x1, x2, x3)  =  U16_gga(x1, x2, x3)
U17_gga(x1, x2, x3)  =  U17_gga(x1, x2, x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x1, x2, x4)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3)  =  U1_GGA(x1, x3)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x1, x2, x4)
U3_GGA(x1, x2, x3)  =  U3_GGA(x1, x3)
U4_GGA(x1, x2)  =  U4_GGA(x1, x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)
U1_GGG(x1, x2, x3)  =  U1_GGG(x1, x2, x3)
U2_GGG(x1, x2, x3, x4)  =  U2_GGG(x1, x2, x3, x4)
U3_GGG(x1, x2, x3)  =  U3_GGG(x1, x2, x3)
U5_GGA(x1, x2)  =  U5_GGA(x1, x2)
U4_GGG(x1, x2)  =  U4_GGG(x1, x2)
U5_GGG(x1, x2)  =  U5_GGG(x1, x2)
U6_GGG(x1, x2, x3)  =  U6_GGG(x1, x2, x3)
U7_GGG(x1, x2, x3)  =  U7_GGG(x1, x2, x3)
U6_GGA(x1, x2, x3)  =  U6_GGA(x1, x3)
U7_GGA(x1, x2, x3)  =  U7_GGA(x1, x3)
U8_GGA(x1, x2)  =  U8_GGA(x1, x2)
U8_GGG(x1, x2)  =  U8_GGG(x1, x2)
U9_GGG(x1, x2)  =  U9_GGG(x1, x2)
U10_GGG(x1, x2, x3)  =  U10_GGG(x1, x2, x3)
U11_GGG(x1, x2, x3)  =  U11_GGG(x1, x2, x3)
U9_GGA(x1, x2)  =  U9_GGA(x1, x2)
U12_GGG(x1, x2)  =  U12_GGG(x1, x2)
U13_GGG(x1, x2)  =  U13_GGG(x1, x2)
U14_GGG(x1, x2, x3)  =  U14_GGG(x1, x2, x3)
U15_GGG(x1, x2, x3, x4)  =  U15_GGG(x1, x2, x3, x4)
U10_GGA(x1, x2, x3)  =  U10_GGA(x1, x3)
U11_GGA(x1, x2, x3)  =  U11_GGA(x1, x3)
U12_GGA(x1, x2)  =  U12_GGA(x1, x2)
U16_GGG(x1, x2, x3)  =  U16_GGG(x1, x2, x3)
U17_GGG(x1, x2, x3)  =  U17_GGG(x1, x2, x3)
U18_GGG(x1, x2, x3, x4)  =  U18_GGG(x1, x2, x3, x4)
U13_GGA(x1, x2)  =  U13_GGA(x1, x2)
U14_GGA(x1, x2, x3)  =  U14_GGA(x1, x3)
U15_GGA(x1, x2, x3, x4)  =  U15_GGA(x1, x2, x4)
U16_GGA(x1, x2, x3)  =  U16_GGA(x1, x2, x3)
U17_GGA(x1, x2, x3)  =  U17_GGA(x1, x2, x3)
U18_GGA(x1, x2, x3, x4)  =  U18_GGA(x1, x2, x4)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(0, T14, T16) → U1_GGA(T14, T16, average1_in_gga(0, s(T14), T16))
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(s(T17), T14, T16) → U2_GGA(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(T18, 0, T21) → U3_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → U4_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(0, T14, T16) → U1_GGG(T14, T16, average1_in_ggg(0, s(T14), T16))
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(s(T17), T14, T16) → U2_GGG(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(T18, 0, T21) → U3_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → U5_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → U4_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(0)) → U5_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → U6_GGG(T18, T24, average1_in_ggg(s(T18), 0, T24))
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), T21) → U7_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → U6_GGA(T18, T24, average1_in_gga(s(T18), 0, T24))
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGA(T18, s(0), T21) → U7_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), 0) → U8_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → U8_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → U9_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → U10_GGG(T18, T28, average1_in_ggg(s(T18), 0, T28))
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → U11_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → U9_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → U12_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → U13_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → U14_GGG(T18, T32, average1_in_ggg(s(T18), 0, T32))
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → U15_GGG(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → U10_GGA(T18, T28, average1_in_gga(s(T18), 0, T28))
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → U11_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → U12_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → U16_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → U17_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → U18_GGG(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → U13_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → U14_GGA(T18, T32, average1_in_gga(s(T18), 0, T32))
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → U15_GGA(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → U16_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → U17_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → U18_GGA(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)

The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga(x1, x2)
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x1, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U3_gga(x1, x2, x3)  =  U3_gga(x1, x3)
U4_gga(x1, x2)  =  U4_gga(x1, x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg(x1, x2, x3)
U1_ggg(x1, x2, x3)  =  U1_ggg(x1, x2, x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x1, x2, x3, x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x1, x2, x3)
U5_gga(x1, x2)  =  U5_gga(x1, x2)
U4_ggg(x1, x2)  =  U4_ggg(x1, x2)
U5_ggg(x1, x2)  =  U5_ggg(x1, x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x1, x2, x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x1, x2, x3)
U6_gga(x1, x2, x3)  =  U6_gga(x1, x3)
U7_gga(x1, x2, x3)  =  U7_gga(x1, x3)
U8_gga(x1, x2)  =  U8_gga(x1, x2)
U8_ggg(x1, x2)  =  U8_ggg(x1, x2)
U9_ggg(x1, x2)  =  U9_ggg(x1, x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x1, x2, x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x1, x2, x3)
U9_gga(x1, x2)  =  U9_gga(x1, x2)
U12_ggg(x1, x2)  =  U12_ggg(x1, x2)
U13_ggg(x1, x2)  =  U13_ggg(x1, x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x1, x2, x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x1, x2, x3, x4)
U10_gga(x1, x2, x3)  =  U10_gga(x1, x3)
U11_gga(x1, x2, x3)  =  U11_gga(x1, x3)
U12_gga(x1, x2)  =  U12_gga(x1, x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x1, x2, x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
U13_gga(x1, x2)  =  U13_gga(x1, x2)
U14_gga(x1, x2, x3)  =  U14_gga(x1, x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x1, x2, x4)
U16_gga(x1, x2, x3)  =  U16_gga(x1, x2, x3)
U17_gga(x1, x2, x3)  =  U17_gga(x1, x2, x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x1, x2, x4)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3)  =  U1_GGA(x1, x3)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x1, x2, x4)
U3_GGA(x1, x2, x3)  =  U3_GGA(x1, x3)
U4_GGA(x1, x2)  =  U4_GGA(x1, x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)
U1_GGG(x1, x2, x3)  =  U1_GGG(x1, x2, x3)
U2_GGG(x1, x2, x3, x4)  =  U2_GGG(x1, x2, x3, x4)
U3_GGG(x1, x2, x3)  =  U3_GGG(x1, x2, x3)
U5_GGA(x1, x2)  =  U5_GGA(x1, x2)
U4_GGG(x1, x2)  =  U4_GGG(x1, x2)
U5_GGG(x1, x2)  =  U5_GGG(x1, x2)
U6_GGG(x1, x2, x3)  =  U6_GGG(x1, x2, x3)
U7_GGG(x1, x2, x3)  =  U7_GGG(x1, x2, x3)
U6_GGA(x1, x2, x3)  =  U6_GGA(x1, x3)
U7_GGA(x1, x2, x3)  =  U7_GGA(x1, x3)
U8_GGA(x1, x2)  =  U8_GGA(x1, x2)
U8_GGG(x1, x2)  =  U8_GGG(x1, x2)
U9_GGG(x1, x2)  =  U9_GGG(x1, x2)
U10_GGG(x1, x2, x3)  =  U10_GGG(x1, x2, x3)
U11_GGG(x1, x2, x3)  =  U11_GGG(x1, x2, x3)
U9_GGA(x1, x2)  =  U9_GGA(x1, x2)
U12_GGG(x1, x2)  =  U12_GGG(x1, x2)
U13_GGG(x1, x2)  =  U13_GGG(x1, x2)
U14_GGG(x1, x2, x3)  =  U14_GGG(x1, x2, x3)
U15_GGG(x1, x2, x3, x4)  =  U15_GGG(x1, x2, x3, x4)
U10_GGA(x1, x2, x3)  =  U10_GGA(x1, x3)
U11_GGA(x1, x2, x3)  =  U11_GGA(x1, x3)
U12_GGA(x1, x2)  =  U12_GGA(x1, x2)
U16_GGG(x1, x2, x3)  =  U16_GGG(x1, x2, x3)
U17_GGG(x1, x2, x3)  =  U17_GGG(x1, x2, x3)
U18_GGG(x1, x2, x3, x4)  =  U18_GGG(x1, x2, x3, x4)
U13_GGA(x1, x2)  =  U13_GGA(x1, x2)
U14_GGA(x1, x2, x3)  =  U14_GGA(x1, x3)
U15_GGA(x1, x2, x3, x4)  =  U15_GGA(x1, x2, x4)
U16_GGA(x1, x2, x3)  =  U16_GGA(x1, x2, x3)
U17_GGA(x1, x2, x3)  =  U17_GGA(x1, x2, x3)
U18_GGA(x1, x2, x3, x4)  =  U18_GGA(x1, x2, x4)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 36 less nodes.

(8) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)

The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga(x1, x2)
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x1, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U3_gga(x1, x2, x3)  =  U3_gga(x1, x3)
U4_gga(x1, x2)  =  U4_gga(x1, x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg(x1, x2, x3)
U1_ggg(x1, x2, x3)  =  U1_ggg(x1, x2, x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x1, x2, x3, x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x1, x2, x3)
U5_gga(x1, x2)  =  U5_gga(x1, x2)
U4_ggg(x1, x2)  =  U4_ggg(x1, x2)
U5_ggg(x1, x2)  =  U5_ggg(x1, x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x1, x2, x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x1, x2, x3)
U6_gga(x1, x2, x3)  =  U6_gga(x1, x3)
U7_gga(x1, x2, x3)  =  U7_gga(x1, x3)
U8_gga(x1, x2)  =  U8_gga(x1, x2)
U8_ggg(x1, x2)  =  U8_ggg(x1, x2)
U9_ggg(x1, x2)  =  U9_ggg(x1, x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x1, x2, x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x1, x2, x3)
U9_gga(x1, x2)  =  U9_gga(x1, x2)
U12_ggg(x1, x2)  =  U12_ggg(x1, x2)
U13_ggg(x1, x2)  =  U13_ggg(x1, x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x1, x2, x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x1, x2, x3, x4)
U10_gga(x1, x2, x3)  =  U10_gga(x1, x3)
U11_gga(x1, x2, x3)  =  U11_gga(x1, x3)
U12_gga(x1, x2)  =  U12_gga(x1, x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x1, x2, x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
U13_gga(x1, x2)  =  U13_gga(x1, x2)
U14_gga(x1, x2, x3)  =  U14_gga(x1, x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x1, x2, x4)
U16_gga(x1, x2, x3)  =  U16_gga(x1, x2, x3)
U17_gga(x1, x2, x3)  =  U17_gga(x1, x2, x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x1, x2, x4)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(9) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(10) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)

R is empty.
The argument filtering Pi contains the following mapping:
0  =  0
s(x1)  =  s(x1)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(11) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(12) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(13) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(0) = 0   
POL(AVERAGE1_IN_GGA(x1, x2)) = 0   
POL(AVERAGE1_IN_GGG(x1, x2, x3)) = x3   
POL(s(x1)) = 1 + x1   

The following usable rules [FROCOS05] were oriented: none

(14) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(15) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)

(16) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(17) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14)) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))

(18) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(19) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)

(22) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(23) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)

(24) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(25) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)

(26) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(27) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)

(28) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(29) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)

(30) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(31) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)

(32) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(33) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)

(34) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(35) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(0, s(s(z0)), z1) → AVERAGE1_IN_GGG(0, s(s(s(z0))), z1)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)

(36) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(37) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(s(x0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(x0))), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)

(38) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(39) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)

(40) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(41) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14)) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))

(42) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(43) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)

(44) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(45) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)

(46) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(47) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(x0), 0, 0) → AVERAGE1_IN_GGG(x0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)

(48) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(49) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

(50) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(51) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

(52) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(53) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(x1), 0) → AVERAGE1_IN_GGG(0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(x1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)

(54) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(55) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(0), s(s(x1)), 0) → AVERAGE1_IN_GGG(0, s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(0)), x2) → AVERAGE1_IN_GGG(x0, s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)

(56) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(0)), x2) → AVERAGE1_IN_GGG(x0, s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(57) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(x0), s(s(0)), x2) → AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0)

(58) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(59) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), z2) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

(60) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(61) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(s(x0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0)

(62) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(63) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(s(s(x0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(x0)), s(s(s(0))), 0)

(64) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(65) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = AVERAGE1_IN_GGA(0, s(z1)) evaluates to t =AVERAGE1_IN_GGA(0, s(s(z1)))

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Semiunifier: [ ]
  • Matcher: [z1 / s(z1)]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from AVERAGE1_IN_GGA(0, s(z1)) to AVERAGE1_IN_GGA(0, s(s(z1))).



(66) FALSE

(67) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
average1_in: (b,b,f) (b,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x4)
U3_gga(x1, x2, x3)  =  U3_gga(x3)
U4_gga(x1, x2)  =  U4_gga(x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg
U1_ggg(x1, x2, x3)  =  U1_ggg(x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x3)
U5_gga(x1, x2)  =  U5_gga(x2)
U4_ggg(x1, x2)  =  U4_ggg(x2)
U5_ggg(x1, x2)  =  U5_ggg(x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x3)
U6_gga(x1, x2, x3)  =  U6_gga(x3)
U7_gga(x1, x2, x3)  =  U7_gga(x3)
U8_gga(x1, x2)  =  U8_gga(x2)
U8_ggg(x1, x2)  =  U8_ggg(x2)
U9_ggg(x1, x2)  =  U9_ggg(x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x3)
U9_gga(x1, x2)  =  U9_gga(x2)
U12_ggg(x1, x2)  =  U12_ggg(x2)
U13_ggg(x1, x2)  =  U13_ggg(x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x4)
U10_gga(x1, x2, x3)  =  U10_gga(x3)
U11_gga(x1, x2, x3)  =  U11_gga(x3)
U12_gga(x1, x2)  =  U12_gga(x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x4)
U13_gga(x1, x2)  =  U13_gga(x2)
U14_gga(x1, x2, x3)  =  U14_gga(x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x4)
U16_gga(x1, x2, x3)  =  U16_gga(x3)
U17_gga(x1, x2, x3)  =  U17_gga(x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(68) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x4)
U3_gga(x1, x2, x3)  =  U3_gga(x3)
U4_gga(x1, x2)  =  U4_gga(x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg
U1_ggg(x1, x2, x3)  =  U1_ggg(x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x3)
U5_gga(x1, x2)  =  U5_gga(x2)
U4_ggg(x1, x2)  =  U4_ggg(x2)
U5_ggg(x1, x2)  =  U5_ggg(x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x3)
U6_gga(x1, x2, x3)  =  U6_gga(x3)
U7_gga(x1, x2, x3)  =  U7_gga(x3)
U8_gga(x1, x2)  =  U8_gga(x2)
U8_ggg(x1, x2)  =  U8_ggg(x2)
U9_ggg(x1, x2)  =  U9_ggg(x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x3)
U9_gga(x1, x2)  =  U9_gga(x2)
U12_ggg(x1, x2)  =  U12_ggg(x2)
U13_ggg(x1, x2)  =  U13_ggg(x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x4)
U10_gga(x1, x2, x3)  =  U10_gga(x3)
U11_gga(x1, x2, x3)  =  U11_gga(x3)
U12_gga(x1, x2)  =  U12_gga(x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x4)
U13_gga(x1, x2)  =  U13_gga(x2)
U14_gga(x1, x2, x3)  =  U14_gga(x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x4)
U16_gga(x1, x2, x3)  =  U16_gga(x3)
U17_gga(x1, x2, x3)  =  U17_gga(x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x4)

(69) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(0, T14, T16) → U1_GGA(T14, T16, average1_in_gga(0, s(T14), T16))
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(s(T17), T14, T16) → U2_GGA(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(T18, 0, T21) → U3_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → U4_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(0, T14, T16) → U1_GGG(T14, T16, average1_in_ggg(0, s(T14), T16))
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(s(T17), T14, T16) → U2_GGG(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(T18, 0, T21) → U3_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → U5_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → U4_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(0)) → U5_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → U6_GGG(T18, T24, average1_in_ggg(s(T18), 0, T24))
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), T21) → U7_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → U6_GGA(T18, T24, average1_in_gga(s(T18), 0, T24))
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGA(T18, s(0), T21) → U7_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), 0) → U8_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → U8_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → U9_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → U10_GGG(T18, T28, average1_in_ggg(s(T18), 0, T28))
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → U11_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → U9_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → U12_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → U13_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → U14_GGG(T18, T32, average1_in_ggg(s(T18), 0, T32))
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → U15_GGG(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → U10_GGA(T18, T28, average1_in_gga(s(T18), 0, T28))
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → U11_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → U12_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → U16_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → U17_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → U18_GGG(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → U13_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → U14_GGA(T18, T32, average1_in_gga(s(T18), 0, T32))
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → U15_GGA(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → U16_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → U17_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → U18_GGA(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)

The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x4)
U3_gga(x1, x2, x3)  =  U3_gga(x3)
U4_gga(x1, x2)  =  U4_gga(x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg
U1_ggg(x1, x2, x3)  =  U1_ggg(x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x3)
U5_gga(x1, x2)  =  U5_gga(x2)
U4_ggg(x1, x2)  =  U4_ggg(x2)
U5_ggg(x1, x2)  =  U5_ggg(x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x3)
U6_gga(x1, x2, x3)  =  U6_gga(x3)
U7_gga(x1, x2, x3)  =  U7_gga(x3)
U8_gga(x1, x2)  =  U8_gga(x2)
U8_ggg(x1, x2)  =  U8_ggg(x2)
U9_ggg(x1, x2)  =  U9_ggg(x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x3)
U9_gga(x1, x2)  =  U9_gga(x2)
U12_ggg(x1, x2)  =  U12_ggg(x2)
U13_ggg(x1, x2)  =  U13_ggg(x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x4)
U10_gga(x1, x2, x3)  =  U10_gga(x3)
U11_gga(x1, x2, x3)  =  U11_gga(x3)
U12_gga(x1, x2)  =  U12_gga(x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x4)
U13_gga(x1, x2)  =  U13_gga(x2)
U14_gga(x1, x2, x3)  =  U14_gga(x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x4)
U16_gga(x1, x2, x3)  =  U16_gga(x3)
U17_gga(x1, x2, x3)  =  U17_gga(x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x4)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3)  =  U1_GGA(x3)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x4)
U3_GGA(x1, x2, x3)  =  U3_GGA(x3)
U4_GGA(x1, x2)  =  U4_GGA(x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)
U1_GGG(x1, x2, x3)  =  U1_GGG(x3)
U2_GGG(x1, x2, x3, x4)  =  U2_GGG(x4)
U3_GGG(x1, x2, x3)  =  U3_GGG(x3)
U5_GGA(x1, x2)  =  U5_GGA(x2)
U4_GGG(x1, x2)  =  U4_GGG(x2)
U5_GGG(x1, x2)  =  U5_GGG(x2)
U6_GGG(x1, x2, x3)  =  U6_GGG(x3)
U7_GGG(x1, x2, x3)  =  U7_GGG(x3)
U6_GGA(x1, x2, x3)  =  U6_GGA(x3)
U7_GGA(x1, x2, x3)  =  U7_GGA(x3)
U8_GGA(x1, x2)  =  U8_GGA(x2)
U8_GGG(x1, x2)  =  U8_GGG(x2)
U9_GGG(x1, x2)  =  U9_GGG(x2)
U10_GGG(x1, x2, x3)  =  U10_GGG(x3)
U11_GGG(x1, x2, x3)  =  U11_GGG(x3)
U9_GGA(x1, x2)  =  U9_GGA(x2)
U12_GGG(x1, x2)  =  U12_GGG(x2)
U13_GGG(x1, x2)  =  U13_GGG(x2)
U14_GGG(x1, x2, x3)  =  U14_GGG(x3)
U15_GGG(x1, x2, x3, x4)  =  U15_GGG(x4)
U10_GGA(x1, x2, x3)  =  U10_GGA(x3)
U11_GGA(x1, x2, x3)  =  U11_GGA(x3)
U12_GGA(x1, x2)  =  U12_GGA(x2)
U16_GGG(x1, x2, x3)  =  U16_GGG(x3)
U17_GGG(x1, x2, x3)  =  U17_GGG(x3)
U18_GGG(x1, x2, x3, x4)  =  U18_GGG(x4)
U13_GGA(x1, x2)  =  U13_GGA(x2)
U14_GGA(x1, x2, x3)  =  U14_GGA(x3)
U15_GGA(x1, x2, x3, x4)  =  U15_GGA(x4)
U16_GGA(x1, x2, x3)  =  U16_GGA(x3)
U17_GGA(x1, x2, x3)  =  U17_GGA(x3)
U18_GGA(x1, x2, x3, x4)  =  U18_GGA(x4)

We have to consider all (P,R,Pi)-chains

(70) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(0, T14, T16) → U1_GGA(T14, T16, average1_in_gga(0, s(T14), T16))
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(s(T17), T14, T16) → U2_GGA(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(T18, 0, T21) → U3_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → U4_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(0, T14, T16) → U1_GGG(T14, T16, average1_in_ggg(0, s(T14), T16))
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(s(T17), T14, T16) → U2_GGG(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(T18, 0, T21) → U3_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → U5_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → U4_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(0)) → U5_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → U6_GGG(T18, T24, average1_in_ggg(s(T18), 0, T24))
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), T21) → U7_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → U6_GGA(T18, T24, average1_in_gga(s(T18), 0, T24))
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGA(T18, s(0), T21) → U7_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), 0) → U8_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → U8_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → U9_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → U10_GGG(T18, T28, average1_in_ggg(s(T18), 0, T28))
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → U11_GGG(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → U9_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → U12_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → U13_GGG(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → U14_GGG(T18, T32, average1_in_ggg(s(T18), 0, T32))
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → U15_GGG(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → U10_GGA(T18, T28, average1_in_gga(s(T18), 0, T28))
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → U11_GGA(T18, T21, average1_in_gga(s(T18), 0, X35))
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → U12_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → U16_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → U17_GGG(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → U18_GGG(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → U13_GGA(T18, average1_in_ggg(s(T18), 0, 0))
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → U14_GGA(T18, T32, average1_in_gga(s(T18), 0, T32))
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → U15_GGA(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → U16_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → U17_GGA(T18, T33, average1_in_ggg(s(T18), T33, 0))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → U18_GGA(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)

The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x4)
U3_gga(x1, x2, x3)  =  U3_gga(x3)
U4_gga(x1, x2)  =  U4_gga(x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg
U1_ggg(x1, x2, x3)  =  U1_ggg(x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x3)
U5_gga(x1, x2)  =  U5_gga(x2)
U4_ggg(x1, x2)  =  U4_ggg(x2)
U5_ggg(x1, x2)  =  U5_ggg(x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x3)
U6_gga(x1, x2, x3)  =  U6_gga(x3)
U7_gga(x1, x2, x3)  =  U7_gga(x3)
U8_gga(x1, x2)  =  U8_gga(x2)
U8_ggg(x1, x2)  =  U8_ggg(x2)
U9_ggg(x1, x2)  =  U9_ggg(x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x3)
U9_gga(x1, x2)  =  U9_gga(x2)
U12_ggg(x1, x2)  =  U12_ggg(x2)
U13_ggg(x1, x2)  =  U13_ggg(x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x4)
U10_gga(x1, x2, x3)  =  U10_gga(x3)
U11_gga(x1, x2, x3)  =  U11_gga(x3)
U12_gga(x1, x2)  =  U12_gga(x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x4)
U13_gga(x1, x2)  =  U13_gga(x2)
U14_gga(x1, x2, x3)  =  U14_gga(x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x4)
U16_gga(x1, x2, x3)  =  U16_gga(x3)
U17_gga(x1, x2, x3)  =  U17_gga(x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x4)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3)  =  U1_GGA(x3)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x4)
U3_GGA(x1, x2, x3)  =  U3_GGA(x3)
U4_GGA(x1, x2)  =  U4_GGA(x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)
U1_GGG(x1, x2, x3)  =  U1_GGG(x3)
U2_GGG(x1, x2, x3, x4)  =  U2_GGG(x4)
U3_GGG(x1, x2, x3)  =  U3_GGG(x3)
U5_GGA(x1, x2)  =  U5_GGA(x2)
U4_GGG(x1, x2)  =  U4_GGG(x2)
U5_GGG(x1, x2)  =  U5_GGG(x2)
U6_GGG(x1, x2, x3)  =  U6_GGG(x3)
U7_GGG(x1, x2, x3)  =  U7_GGG(x3)
U6_GGA(x1, x2, x3)  =  U6_GGA(x3)
U7_GGA(x1, x2, x3)  =  U7_GGA(x3)
U8_GGA(x1, x2)  =  U8_GGA(x2)
U8_GGG(x1, x2)  =  U8_GGG(x2)
U9_GGG(x1, x2)  =  U9_GGG(x2)
U10_GGG(x1, x2, x3)  =  U10_GGG(x3)
U11_GGG(x1, x2, x3)  =  U11_GGG(x3)
U9_GGA(x1, x2)  =  U9_GGA(x2)
U12_GGG(x1, x2)  =  U12_GGG(x2)
U13_GGG(x1, x2)  =  U13_GGG(x2)
U14_GGG(x1, x2, x3)  =  U14_GGG(x3)
U15_GGG(x1, x2, x3, x4)  =  U15_GGG(x4)
U10_GGA(x1, x2, x3)  =  U10_GGA(x3)
U11_GGA(x1, x2, x3)  =  U11_GGA(x3)
U12_GGA(x1, x2)  =  U12_GGA(x2)
U16_GGG(x1, x2, x3)  =  U16_GGG(x3)
U17_GGG(x1, x2, x3)  =  U17_GGG(x3)
U18_GGG(x1, x2, x3, x4)  =  U18_GGG(x4)
U13_GGA(x1, x2)  =  U13_GGA(x2)
U14_GGA(x1, x2, x3)  =  U14_GGA(x3)
U15_GGA(x1, x2, x3, x4)  =  U15_GGA(x4)
U16_GGA(x1, x2, x3)  =  U16_GGA(x3)
U17_GGA(x1, x2, x3)  =  U17_GGA(x3)
U18_GGA(x1, x2, x3, x4)  =  U18_GGA(x4)

We have to consider all (P,R,Pi)-chains

(71) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 36 less nodes.

(72) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)

The TRS R consists of the following rules:

average1_in_gga(0, 0, 0) → average1_out_gga(0, 0, 0)
average1_in_gga(0, s(0), 0) → average1_out_gga(0, s(0), 0)
average1_in_gga(0, s(s(0)), s(0)) → average1_out_gga(0, s(s(0)), s(0))
average1_in_gga(0, T14, T16) → U1_gga(T14, T16, average1_in_gga(0, s(T14), T16))
average1_in_gga(s(T17), T14, T16) → U2_gga(T17, T14, T16, average1_in_gga(T17, s(T14), T16))
average1_in_gga(T18, 0, T21) → U3_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, 0) → U4_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(0, 0, 0) → average1_out_ggg(0, 0, 0)
average1_in_ggg(0, s(0), 0) → average1_out_ggg(0, s(0), 0)
average1_in_ggg(0, s(s(0)), s(0)) → average1_out_ggg(0, s(s(0)), s(0))
average1_in_ggg(0, T14, T16) → U1_ggg(T14, T16, average1_in_ggg(0, s(T14), T16))
average1_in_ggg(s(T17), T14, T16) → U2_ggg(T17, T14, T16, average1_in_ggg(T17, s(T14), T16))
average1_in_ggg(T18, 0, T21) → U3_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(0)) → U5_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, 0) → U4_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(0)) → U5_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, 0, s(T24)) → U6_ggg(T18, T24, average1_in_ggg(s(T18), 0, T24))
average1_in_ggg(T18, s(0), T21) → U7_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, 0, s(T24)) → U6_gga(T18, T24, average1_in_gga(s(T18), 0, T24))
average1_in_gga(T18, s(0), T21) → U7_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), 0) → U8_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), 0) → U8_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(0)) → U9_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(0), s(T28)) → U10_ggg(T18, T28, average1_in_ggg(s(T18), 0, T28))
average1_in_ggg(T18, s(s(0)), T21) → U11_ggg(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(0), s(0)) → U9_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), 0) → U12_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(0)) → U13_ggg(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(0)), s(T32)) → U14_ggg(T18, T32, average1_in_ggg(s(T18), 0, T32))
average1_in_ggg(T18, s(s(s(T33))), T21) → U15_ggg(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(0), s(T28)) → U10_gga(T18, T28, average1_in_gga(s(T18), 0, T28))
average1_in_gga(T18, s(s(0)), T21) → U11_gga(T18, T21, average1_in_gga(s(T18), 0, X35))
average1_in_gga(T18, s(s(0)), 0) → U12_gga(T18, average1_in_ggg(s(T18), 0, 0))
average1_in_ggg(T18, s(s(s(T33))), 0) → U16_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(0)) → U17_ggg(T18, T33, average1_in_ggg(s(T18), T33, 0))
average1_in_ggg(T18, s(s(s(T33))), s(T36)) → U18_ggg(T18, T33, T36, average1_in_ggg(s(T18), T33, T36))
U18_ggg(T18, T33, T36, average1_out_ggg(s(T18), T33, T36)) → average1_out_ggg(T18, s(s(s(T33))), s(T36))
U17_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), s(0))
U16_ggg(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_ggg(T18, s(s(s(T33))), 0)
U12_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), 0)
average1_in_gga(T18, s(s(0)), s(0)) → U13_gga(T18, average1_in_ggg(s(T18), 0, 0))
U13_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(s(0)), s(0))
average1_in_gga(T18, s(s(0)), s(T32)) → U14_gga(T18, T32, average1_in_gga(s(T18), 0, T32))
average1_in_gga(T18, s(s(s(T33))), T21) → U15_gga(T18, T33, T21, average1_in_gga(s(T18), T33, X35))
average1_in_gga(T18, s(s(s(T33))), 0) → U16_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U16_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), 0)
average1_in_gga(T18, s(s(s(T33))), s(0)) → U17_gga(T18, T33, average1_in_ggg(s(T18), T33, 0))
U17_gga(T18, T33, average1_out_ggg(s(T18), T33, 0)) → average1_out_gga(T18, s(s(s(T33))), s(0))
average1_in_gga(T18, s(s(s(T33))), s(T36)) → U18_gga(T18, T33, T36, average1_in_gga(s(T18), T33, T36))
U18_gga(T18, T33, T36, average1_out_gga(s(T18), T33, T36)) → average1_out_gga(T18, s(s(s(T33))), s(T36))
U15_gga(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_gga(T18, s(s(s(T33))), T21)
U14_gga(T18, T32, average1_out_gga(s(T18), 0, T32)) → average1_out_gga(T18, s(s(0)), s(T32))
U11_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(s(0)), T21)
U10_gga(T18, T28, average1_out_gga(s(T18), 0, T28)) → average1_out_gga(T18, s(0), s(T28))
U15_ggg(T18, T33, T21, average1_out_gga(s(T18), T33, X35)) → average1_out_ggg(T18, s(s(s(T33))), T21)
U14_ggg(T18, T32, average1_out_ggg(s(T18), 0, T32)) → average1_out_ggg(T18, s(s(0)), s(T32))
U13_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), s(0))
U12_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(s(0)), 0)
U9_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), s(0))
U11_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(s(0)), T21)
U10_ggg(T18, T28, average1_out_ggg(s(T18), 0, T28)) → average1_out_ggg(T18, s(0), s(T28))
U9_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), s(0))
U8_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, s(0), 0)
U8_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, s(0), 0)
U7_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, s(0), T21)
U6_gga(T18, T24, average1_out_gga(s(T18), 0, T24)) → average1_out_gga(T18, 0, s(T24))
U7_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, s(0), T21)
U6_ggg(T18, T24, average1_out_ggg(s(T18), 0, T24)) → average1_out_ggg(T18, 0, s(T24))
U5_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, s(0))
U4_ggg(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_ggg(T18, 0, 0)
U5_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, s(0))
U3_ggg(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_ggg(T18, 0, T21)
U2_ggg(T17, T14, T16, average1_out_ggg(T17, s(T14), T16)) → average1_out_ggg(s(T17), T14, T16)
U1_ggg(T14, T16, average1_out_ggg(0, s(T14), T16)) → average1_out_ggg(0, T14, T16)
U4_gga(T18, average1_out_ggg(s(T18), 0, 0)) → average1_out_gga(T18, 0, 0)
U3_gga(T18, T21, average1_out_gga(s(T18), 0, X35)) → average1_out_gga(T18, 0, T21)
U2_gga(T17, T14, T16, average1_out_gga(T17, s(T14), T16)) → average1_out_gga(s(T17), T14, T16)
U1_gga(T14, T16, average1_out_gga(0, s(T14), T16)) → average1_out_gga(0, T14, T16)

The argument filtering Pi contains the following mapping:
average1_in_gga(x1, x2, x3)  =  average1_in_gga(x1, x2)
0  =  0
average1_out_gga(x1, x2, x3)  =  average1_out_gga
s(x1)  =  s(x1)
U1_gga(x1, x2, x3)  =  U1_gga(x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x4)
U3_gga(x1, x2, x3)  =  U3_gga(x3)
U4_gga(x1, x2)  =  U4_gga(x2)
average1_in_ggg(x1, x2, x3)  =  average1_in_ggg(x1, x2, x3)
average1_out_ggg(x1, x2, x3)  =  average1_out_ggg
U1_ggg(x1, x2, x3)  =  U1_ggg(x3)
U2_ggg(x1, x2, x3, x4)  =  U2_ggg(x4)
U3_ggg(x1, x2, x3)  =  U3_ggg(x3)
U5_gga(x1, x2)  =  U5_gga(x2)
U4_ggg(x1, x2)  =  U4_ggg(x2)
U5_ggg(x1, x2)  =  U5_ggg(x2)
U6_ggg(x1, x2, x3)  =  U6_ggg(x3)
U7_ggg(x1, x2, x3)  =  U7_ggg(x3)
U6_gga(x1, x2, x3)  =  U6_gga(x3)
U7_gga(x1, x2, x3)  =  U7_gga(x3)
U8_gga(x1, x2)  =  U8_gga(x2)
U8_ggg(x1, x2)  =  U8_ggg(x2)
U9_ggg(x1, x2)  =  U9_ggg(x2)
U10_ggg(x1, x2, x3)  =  U10_ggg(x3)
U11_ggg(x1, x2, x3)  =  U11_ggg(x3)
U9_gga(x1, x2)  =  U9_gga(x2)
U12_ggg(x1, x2)  =  U12_ggg(x2)
U13_ggg(x1, x2)  =  U13_ggg(x2)
U14_ggg(x1, x2, x3)  =  U14_ggg(x3)
U15_ggg(x1, x2, x3, x4)  =  U15_ggg(x4)
U10_gga(x1, x2, x3)  =  U10_gga(x3)
U11_gga(x1, x2, x3)  =  U11_gga(x3)
U12_gga(x1, x2)  =  U12_gga(x2)
U16_ggg(x1, x2, x3)  =  U16_ggg(x3)
U17_ggg(x1, x2, x3)  =  U17_ggg(x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x4)
U13_gga(x1, x2)  =  U13_gga(x2)
U14_gga(x1, x2, x3)  =  U14_gga(x3)
U15_gga(x1, x2, x3, x4)  =  U15_gga(x4)
U16_gga(x1, x2, x3)  =  U16_gga(x3)
U17_gga(x1, x2, x3)  =  U17_gga(x3)
U18_gga(x1, x2, x3, x4)  =  U18_gga(x4)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(73) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(74) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(s(T17), T14, T16) → AVERAGE1_IN_GGA(T17, s(T14), T16)
AVERAGE1_IN_GGA(0, T14, T16) → AVERAGE1_IN_GGA(0, s(T14), T16)
AVERAGE1_IN_GGA(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0, s(T24)) → AVERAGE1_IN_GGA(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(0), s(T28)) → AVERAGE1_IN_GGA(s(T18), 0, T28)
AVERAGE1_IN_GGA(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0, X35)
AVERAGE1_IN_GGA(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGA(s(T18), 0, T32)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33, X35)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGA(s(T18), T33, T36)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)

R is empty.
The argument filtering Pi contains the following mapping:
0  =  0
s(x1)  =  s(x1)
AVERAGE1_IN_GGA(x1, x2, x3)  =  AVERAGE1_IN_GGA(x1, x2)
AVERAGE1_IN_GGG(x1, x2, x3)  =  AVERAGE1_IN_GGG(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(75) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(76) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(77) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AVERAGE1_IN_GGG(T18, s(0), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), s(T28)) → AVERAGE1_IN_GGG(s(T18), 0, T28)
AVERAGE1_IN_GGG(T18, 0, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, s(T24)) → AVERAGE1_IN_GGG(s(T18), 0, T24)
AVERAGE1_IN_GGG(T18, s(s(0)), s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), s(T32)) → AVERAGE1_IN_GGG(s(T18), 0, T32)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(0)) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), s(T36)) → AVERAGE1_IN_GGG(s(T18), T33, T36)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(0) = 0   
POL(AVERAGE1_IN_GGA(x1, x2)) = 0   
POL(AVERAGE1_IN_GGG(x1, x2, x3)) = x3   
POL(s(x1)) = 1 + x1   

The following usable rules [FROCOS05] were oriented: none

(78) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(79) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, 0, T21) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)

(80) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(81) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGA(0, T14) → AVERAGE1_IN_GGA(0, s(T14)) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))

(82) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(83) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(T17), T14, T16) → AVERAGE1_IN_GGG(T17, s(T14), T16) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)

(84) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(85) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, T14, T16) → AVERAGE1_IN_GGG(0, s(T14), T16) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)

(86) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(87) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, s(0), T21) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)

(88) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(89) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)

(90) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(91) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGA(T18, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)

(92) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(93) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, 0, 0) → AVERAGE1_IN_GGG(s(T18), 0, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)

(94) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(95) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(x0), s(z1), z2) → AVERAGE1_IN_GGG(x0, s(s(z1)), z2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)

(96) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(97) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(T18, s(s(0)), T21) → AVERAGE1_IN_GGA(s(T18), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)

(98) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(99) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, s(z0), z1) → AVERAGE1_IN_GGG(0, s(s(z0)), z1) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(0, s(s(z0)), z1) → AVERAGE1_IN_GGG(0, s(s(s(z0))), z1)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)

(100) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(101) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, s(s(z1)), z2) → AVERAGE1_IN_GGG(0, s(s(s(z1))), z2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(s(x0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(x0))), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)

(102) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(103) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(0, s(s(0)), z1) → AVERAGE1_IN_GGA(s(0), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)

(104) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14))
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(105) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGA(s(T17), T14) → AVERAGE1_IN_GGA(T17, s(T14)) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))

(106) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(107) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(T18, s(s(s(T33))), T21) → AVERAGE1_IN_GGA(s(T18), T33) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)

(108) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(109) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGA(s(T18), T33) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)

(110) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(111) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(s(z0), z1, 0) → AVERAGE1_IN_GGG(z0, s(z1), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(x0), 0, 0) → AVERAGE1_IN_GGG(x0, s(0), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)

(112) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(113) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGA(T18, s(s(s(T33)))) → AVERAGE1_IN_GGG(s(T18), T33, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

(114) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(115) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(T18, s(s(s(T33))), 0) → AVERAGE1_IN_GGG(s(T18), T33, 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

(116) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(117) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(s(z0), s(x1), 0) → AVERAGE1_IN_GGG(z0, s(s(x1)), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(x1), 0) → AVERAGE1_IN_GGG(0, s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(x1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)

(118) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(119) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule AVERAGE1_IN_GGG(s(x0), s(s(z1)), z2) → AVERAGE1_IN_GGG(x0, s(s(s(z1))), z2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(0), s(s(x1)), 0) → AVERAGE1_IN_GGG(0, s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(0)), x2) → AVERAGE1_IN_GGG(x0, s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)

(120) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(0)), x2) → AVERAGE1_IN_GGG(x0, s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(121) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(x0), s(s(0)), x2) → AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0)

(122) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(123) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(x0, s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(x0), 0) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), z2) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

(124) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(125) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(s(x0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0)

(126) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(127) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), x2) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) we obtained the following new rules [LPAR04]:

AVERAGE1_IN_GGG(s(s(s(x0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(x0)), s(s(s(0))), 0)

(128) Obligation:

Q DP problem:
The TRS P consists of the following rules:

AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(0)) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(0), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(T18, s(s(0)), 0) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGA(s(T18), 0)
AVERAGE1_IN_GGA(T18, s(s(0))) → AVERAGE1_IN_GGG(s(T18), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(0, s(z1)) → AVERAGE1_IN_GGA(0, s(s(z1)))
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(z0, s(0), 0)
AVERAGE1_IN_GGG(0, s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(z1), 0) → AVERAGE1_IN_GGG(0, s(s(z1)), 0)
AVERAGE1_IN_GGG(s(z0), s(0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(0), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGA(s(z0), 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGA(s(s(z0)), 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(z0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(z0), 0, 0) → AVERAGE1_IN_GGG(s(s(z0)), 0, 0)
AVERAGE1_IN_GGG(s(s(z0)), 0, 0) → AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(z0))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(s(z0)))), 0, 0) → AVERAGE1_IN_GGG(s(s(s(s(s(z0))))), 0, 0)
AVERAGE1_IN_GGG(s(x0), s(0), 0) → AVERAGE1_IN_GGG(x0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(z0), s(s(0)), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(z0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(0, s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(z0))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1)
AVERAGE1_IN_GGG(0, s(s(z0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(z0))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), z1) → AVERAGE1_IN_GGG(0, s(s(s(s(s(z0))))), z1)
AVERAGE1_IN_GGG(0, s(s(s(z0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGA(s(x0), 0) → AVERAGE1_IN_GGA(x0, s(0))
AVERAGE1_IN_GGA(s(x0), s(0)) → AVERAGE1_IN_GGA(x0, s(s(0)))
AVERAGE1_IN_GGA(s(x0), s(s(y_1))) → AVERAGE1_IN_GGA(x0, s(s(s(y_1))))
AVERAGE1_IN_GGA(s(s(y_0)), x1) → AVERAGE1_IN_GGA(s(y_0), s(x1))
AVERAGE1_IN_GGA(s(0), x1) → AVERAGE1_IN_GGA(0, s(x1))
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), x2) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGG(0, s(s(s(x1))), x2) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGA(s(x0), s(0))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGA(s(x0), s(s(0)))
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGA(s(x0), s(s(s(y_1))))
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGA(s(x0), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(y_0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGA(s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGA(s(x0), s(s(y_1)))
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGA(s(s(y_0)), x1)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGA(s(0), x1)
AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), x1, 0) → AVERAGE1_IN_GGG(s(y_0), s(x1), 0)
AVERAGE1_IN_GGG(s(0), 0, 0) → AVERAGE1_IN_GGG(0, s(0), 0)
AVERAGE1_IN_GGG(s(0), x1, 0) → AVERAGE1_IN_GGG(0, s(x1), 0)
AVERAGE1_IN_GGG(s(s(y_0)), 0, 0) → AVERAGE1_IN_GGG(s(y_0), s(0), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(0), 0) → AVERAGE1_IN_GGG(0, s(s(0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(0), s(y_0), 0) → AVERAGE1_IN_GGG(0, s(s(y_0)), 0)
AVERAGE1_IN_GGG(s(0), s(s(0)), 0) → AVERAGE1_IN_GGG(0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(0)), 0) → AVERAGE1_IN_GGG(x0, s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(y_1))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGA(s(s(s(y_0))), s(s(s(0)))) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(0)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(0))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(s(y_1)))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(s(0))))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(s(y_1))))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(x1)))) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGA(0, s(s(s(0)))) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGA(0, s(s(s(x1)))) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(y_1))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(0))))) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(y_0)))))) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(y_0))))) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGA(0, s(s(s(s(s(s(y_0))))))) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGA(s(s(y_0)), s(s(s(s(s(0)))))) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGA(x0, s(s(s(s(s(s(s(y_1)))))))) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGA(s(y_0), s(s(s(s(s(y_1)))))) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(x0), s(0), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(x0), 0, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), 0, 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), 0, 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(s(y_0)))), 0, 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(x0), s(y_1), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(y_1)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), x1, 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), 0, 0)
AVERAGE1_IN_GGG(0, s(s(s(x1))), 0) → AVERAGE1_IN_GGG(s(0), x1, 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(y_1), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(0), s(0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(y_0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(y_0), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(y_1)), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(x1), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(x1), 0) → AVERAGE1_IN_GGG(s(0), s(s(x1)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(0), 0) → AVERAGE1_IN_GGG(s(0), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(y_0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(y_1))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(0), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(0), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(0)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(0))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(0)))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(s(y_1)))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(s(y_1))))))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(0)))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0) → AVERAGE1_IN_GGG(0, s(s(s(s(s(s(y_0)))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(0))))), 0)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(x1)), x2) → AVERAGE1_IN_GGG(s(y_0), s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(x1)), x2) → AVERAGE1_IN_GGG(0, s(s(s(x1))), x2)
AVERAGE1_IN_GGG(s(0), s(s(s(y_0))), x2) → AVERAGE1_IN_GGG(0, s(s(s(s(y_0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(0))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(0)))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(0)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(0))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(s(y_1))))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(s(y_1)))))), x2)
AVERAGE1_IN_GGG(s(x0), s(s(s(s(y_1)))), x2) → AVERAGE1_IN_GGG(x0, s(s(s(s(s(y_1))))), x2)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(0))), s(s(x1)), 0) → AVERAGE1_IN_GGG(s(s(0)), s(s(s(x1))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(y_1))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(y_1)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(0)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(0))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(s(y_1))))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(s(y_1)))))))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(s(y_1)))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(s(y_1))))))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(0)), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(y_0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(y_0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(s(y_0)))), 0) → AVERAGE1_IN_GGG(s(0), s(s(s(s(s(y_0))))), 0)
AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(s(s(y_0)))), s(s(s(0))), 0) → AVERAGE1_IN_GGG(s(s(s(y_0))), s(s(s(s(0)))), 0)
AVERAGE1_IN_GGG(s(s(y_0)), s(s(s(s(s(y_1))))), 0) → AVERAGE1_IN_GGG(s(y_0), s(s(s(s(s(s(y_1)))))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(z0, s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(z0), 0)
AVERAGE1_IN_GGG(s(z0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(z0)), 0)
AVERAGE1_IN_GGG(s(s(z0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(z0))), 0)
AVERAGE1_IN_GGG(s(0), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(0)), 0)
AVERAGE1_IN_GGG(s(s(s(z0))), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(s(z0)))), 0)
AVERAGE1_IN_GGG(0, s(s(s(0))), z1) → AVERAGE1_IN_GGA(s(0), 0)
AVERAGE1_IN_GGG(s(s(0)), s(s(s(0))), 0) → AVERAGE1_IN_GGA(s(s(s(0))), 0)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(129) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = AVERAGE1_IN_GGA(0, s(z1)) evaluates to t =AVERAGE1_IN_GGA(0, s(s(z1)))

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Semiunifier: [ ]
  • Matcher: [z1 / s(z1)]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from AVERAGE1_IN_GGA(0, s(z1)) to AVERAGE1_IN_GGA(0, s(s(z1))).



(130) FALSE